fix: import from core

This commit is contained in:
Jean-Baptiste Pasquier 2020-11-20 15:57:12 +01:00
parent a8d7c9f263
commit dae6aad0df
No known key found for this signature in database
GPG Key ID: CC04B91B949C163A
3 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,4 @@
import { store } from 'https://cdn.skypack.dev/@startinblox/core@0.13'; import { store, Sib, StoreMixin } from 'https://cdn.skypack.dev/@startinblox/core@0.13';
import { Sib } from "https://cdn.skypack.dev/@startinblox/core@0.13/dist/libs/Sib.js";
import { StoreMixin } from "https://cdn.skypack.dev/@startinblox/core@0.13/dist/mixins/storeMixin.js";
export const HublReactivity = { export const HublReactivity = {
name: 'hubl-reactivity', name: 'hubl-reactivity',

View File

@ -1,4 +1,4 @@
import { widgetFactory } from 'https://cdn.skypack.dev/@startinblox/core@0.13/dist/widgets/widget-factory.js'; import { widgetFactory } from 'https://cdn.skypack.dev/@startinblox/core@0.13';
const HublSearchUsers = widgetFactory( const HublSearchUsers = widgetFactory(
'hubl-search-users', 'hubl-search-users',

View File

@ -1,5 +1,4 @@
import { widgetFactory } from 'https://cdn.skypack.dev/@startinblox/core@0.13/dist/widgets/widget-factory.js'; import { widgetFactory, Helpers } from 'https://cdn.skypack.dev/@startinblox/core@0.13';
import { importCSS } from 'https://cdn.skypack.dev/@startinblox/core@0.13/dist/libs/helpers.js';
import SlimSelect from 'https://cdn.skypack.dev/slim-select@1.23'; import SlimSelect from 'https://cdn.skypack.dev/slim-select@1.23';
const HublStatus = widgetFactory( const HublStatus = widgetFactory(
@ -22,7 +21,7 @@ const HublStatus = widgetFactory(
let select = formWidget.querySelector('select'); let select = formWidget.querySelector('select');
if (!select) return; if (!select) return;
const slimSelect = new SlimSelect({select: select}); const slimSelect = new SlimSelect({select: select});
importCSS('https://dev.jspm.io/slim-select/dist/slimselect.min.css'); Helpers.importCSS('https://dev.jspm.io/slim-select/dist/slimselect.min.css');
select.addEventListener('change', () => slimSelect.render()); select.addEventListener('change', () => slimSelect.render());
}, },
); );