fix: import from core
This commit is contained in:
parent
a8d7c9f263
commit
dae6aad0df
@ -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',
|
||||||
|
@ -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',
|
||||||
|
@ -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());
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user