jebamo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/index-d5fa9014.js +1722 -0
- package/dist/cjs/index-d5fa9014.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/je-alert_31.cjs.entry.js +4772 -0
- package/dist/cjs/je-alert_31.cjs.entry.js.map +1 -0
- package/dist/cjs/je-branch.cjs.entry.js +22 -0
- package/dist/cjs/je-branch.cjs.entry.js.map +1 -0
- package/dist/cjs/je-column-group.cjs.entry.js +29 -0
- package/dist/cjs/je-column-group.cjs.entry.js.map +1 -0
- package/dist/cjs/je-column.cjs.entry.js +73 -0
- package/dist/cjs/je-column.cjs.entry.js.map +1 -0
- package/dist/cjs/je-infinite.cjs.entry.js +45 -0
- package/dist/cjs/je-infinite.cjs.entry.js.map +1 -0
- package/dist/cjs/je-menu-option.cjs.entry.js +22 -0
- package/dist/cjs/je-menu-option.cjs.entry.js.map +1 -0
- package/dist/cjs/je-menu.cjs.entry.js +22 -0
- package/dist/cjs/je-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tab.cjs.entry.js +22 -0
- package/dist/cjs/je-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tabs.cjs.entry.js +22 -0
- package/dist/cjs/je-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/je-toast.cjs.entry.js +22 -0
- package/dist/cjs/je-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tree.cjs.entry.js +22 -0
- package/dist/cjs/je-tree.cjs.entry.js.map +1 -0
- package/dist/cjs/jebamo.cjs.js +27 -0
- package/dist/cjs/jebamo.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +52 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.css +10 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.js +141 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.js.map +1 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.css +13 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.js +153 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.js.map +1 -0
- package/dist/collection/components/column/je-column/je-column.css +10 -0
- package/dist/collection/components/column/je-column/je-column.js +187 -0
- package/dist/collection/components/column/je-column/je-column.js.map +1 -0
- package/dist/collection/components/column/je-column-group/je-column-group.css +4 -0
- package/dist/collection/components/column/je-column-group/je-column-group.js +49 -0
- package/dist/collection/components/column/je-column-group/je-column-group.js.map +1 -0
- package/dist/collection/components/je-alert/je-alert.css +84 -0
- package/dist/collection/components/je-alert/je-alert.js +339 -0
- package/dist/collection/components/je-alert/je-alert.js.map +1 -0
- package/dist/collection/components/je-button/je-button.css +180 -0
- package/dist/collection/components/je-button/je-button.js +252 -0
- package/dist/collection/components/je-button/je-button.js.map +1 -0
- package/dist/collection/components/je-card/je-card.css +113 -0
- package/dist/collection/components/je-card/je-card.js +67 -0
- package/dist/collection/components/je-card/je-card.js.map +1 -0
- package/dist/collection/components/je-checkbox/je-checkbox.css +14 -0
- package/dist/collection/components/je-checkbox/je-checkbox.js +191 -0
- package/dist/collection/components/je-checkbox/je-checkbox.js.map +1 -0
- package/dist/collection/components/je-color/je-color.css +39 -0
- package/dist/collection/components/je-color/je-color.js +116 -0
- package/dist/collection/components/je-color/je-color.js.map +1 -0
- package/dist/collection/components/je-datepicker/je-datepicker.css +56 -0
- package/dist/collection/components/je-datepicker/je-datepicker.js +129 -0
- package/dist/collection/components/je-datepicker/je-datepicker.js.map +1 -0
- package/dist/collection/components/je-details/je-details.css +39 -0
- package/dist/collection/components/je-details/je-details.js +63 -0
- package/dist/collection/components/je-details/je-details.js.map +1 -0
- package/dist/collection/components/je-divider/je-divider.css +32 -0
- package/dist/collection/components/je-divider/je-divider.js +63 -0
- package/dist/collection/components/je-divider/je-divider.js.map +1 -0
- package/dist/collection/components/je-drawer/je-drawer.css +51 -0
- package/dist/collection/components/je-drawer/je-drawer.js +71 -0
- package/dist/collection/components/je-drawer/je-drawer.js.map +1 -0
- package/dist/collection/components/je-dropzone/je-dropzone.css +21 -0
- package/dist/collection/components/je-dropzone/je-dropzone.js +86 -0
- package/dist/collection/components/je-dropzone/je-dropzone.js.map +1 -0
- package/dist/collection/components/je-form/je-form.css +12 -0
- package/dist/collection/components/je-form/je-form.js +95 -0
- package/dist/collection/components/je-form/je-form.js.map +1 -0
- package/dist/collection/components/je-icon/je-icon.css +60 -0
- package/dist/collection/components/je-icon/je-icon.js +122 -0
- package/dist/collection/components/je-icon/je-icon.js.map +1 -0
- package/dist/collection/components/je-infinite/je-infinite.css +18 -0
- package/dist/collection/components/je-infinite/je-infinite.js +119 -0
- package/dist/collection/components/je-infinite/je-infinite.js.map +1 -0
- package/dist/collection/components/je-input/je-input.css +96 -0
- package/dist/collection/components/je-input/je-input.js +862 -0
- package/dist/collection/components/je-input/je-input.js.map +1 -0
- package/dist/collection/components/je-link/je-link.css +15 -0
- package/dist/collection/components/je-link/je-link.js +207 -0
- package/dist/collection/components/je-link/je-link.js.map +1 -0
- package/dist/collection/components/je-loading/je-loading.css +50 -0
- package/dist/collection/components/je-loading/je-loading.js +48 -0
- package/dist/collection/components/je-loading/je-loading.js.map +1 -0
- package/dist/collection/components/je-modal/je-modal.css +75 -0
- package/dist/collection/components/je-modal/je-modal.js +220 -0
- package/dist/collection/components/je-modal/je-modal.js.map +1 -0
- package/dist/collection/components/je-page/je-page.css +202 -0
- package/dist/collection/components/je-page/je-page.js +129 -0
- package/dist/collection/components/je-page/je-page.js.map +1 -0
- package/dist/collection/components/je-pill/je-pill.css +43 -0
- package/dist/collection/components/je-pill/je-pill.js +82 -0
- package/dist/collection/components/je-pill/je-pill.js.map +1 -0
- package/dist/collection/components/je-placeholder/je-placeholder.css +39 -0
- package/dist/collection/components/je-placeholder/je-placeholder.js +44 -0
- package/dist/collection/components/je-placeholder/je-placeholder.js.map +1 -0
- package/dist/collection/components/je-popover/je-popover.css +60 -0
- package/dist/collection/components/je-popover/je-popover.js +499 -0
- package/dist/collection/components/je-popover/je-popover.js.map +1 -0
- package/dist/collection/components/je-textarea/je-textarea.css +59 -0
- package/dist/collection/components/je-textarea/je-textarea.js +171 -0
- package/dist/collection/components/je-textarea/je-textarea.js.map +1 -0
- package/dist/collection/components/je-toast/je-toast.css +3 -0
- package/dist/collection/components/je-toast/je-toast.js +19 -0
- package/dist/collection/components/je-toast/je-toast.js.map +1 -0
- package/dist/collection/components/je-toggle/je-toggle.css +48 -0
- package/dist/collection/components/je-toggle/je-toggle.js +105 -0
- package/dist/collection/components/je-toggle/je-toggle.js.map +1 -0
- package/dist/collection/components/je-toolbar/je-toolbar.css +16 -0
- package/dist/collection/components/je-toolbar/je-toolbar.js +19 -0
- package/dist/collection/components/je-toolbar/je-toolbar.js.map +1 -0
- package/dist/collection/components/menu/je-menu/je-menu.css +3 -0
- package/dist/collection/components/menu/je-menu/je-menu.js +19 -0
- package/dist/collection/components/menu/je-menu/je-menu.js.map +1 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.css +3 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.js +19 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.js.map +1 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.css +79 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.js +244 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.js.map +1 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.css +31 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.js +122 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.js.map +1 -0
- package/dist/collection/components/radio/je-radio/je-radio.css +13 -0
- package/dist/collection/components/radio/je-radio/je-radio.js +128 -0
- package/dist/collection/components/radio/je-radio/je-radio.js.map +1 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.css +10 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.js +172 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.js.map +1 -0
- package/dist/collection/components/select/je-select/je-select.css +20 -0
- package/dist/collection/components/select/je-select/je-select.js +289 -0
- package/dist/collection/components/select/je-select/je-select.js.map +1 -0
- package/dist/collection/components/select/je-select-option/je-select-option.css +31 -0
- package/dist/collection/components/select/je-select-option/je-select-option.js +102 -0
- package/dist/collection/components/select/je-select-option/je-select-option.js.map +1 -0
- package/dist/collection/components/tabs/je-tab/je-tab.css +3 -0
- package/dist/collection/components/tabs/je-tab/je-tab.js +19 -0
- package/dist/collection/components/tabs/je-tab/je-tab.js.map +1 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.css +3 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.js +19 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.js.map +1 -0
- package/dist/collection/components/tree/je-branch/je-branch.css +3 -0
- package/dist/collection/components/tree/je-branch/je-branch.js +19 -0
- package/dist/collection/components/tree/je-branch/je-branch.js.map +1 -0
- package/dist/collection/components/tree/je-tree/je-tree.css +3 -0
- package/dist/collection/components/tree/je-tree/je-tree.js +19 -0
- package/dist/collection/components/tree/je-tree/je-tree.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +18 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/je-alert.d.ts +11 -0
- package/dist/components/je-alert.js +146 -0
- package/dist/components/je-alert.js.map +1 -0
- package/dist/components/je-branch.d.ts +11 -0
- package/dist/components/je-branch.js +37 -0
- package/dist/components/je-branch.js.map +1 -0
- package/dist/components/je-button.d.ts +11 -0
- package/dist/components/je-button.js +8 -0
- package/dist/components/je-button.js.map +1 -0
- package/dist/components/je-card.d.ts +11 -0
- package/dist/components/je-card.js +8 -0
- package/dist/components/je-card.js.map +1 -0
- package/dist/components/je-checkbox-group.d.ts +11 -0
- package/dist/components/je-checkbox-group.js +90 -0
- package/dist/components/je-checkbox-group.js.map +1 -0
- package/dist/components/je-checkbox-option.d.ts +11 -0
- package/dist/components/je-checkbox-option.js +65 -0
- package/dist/components/je-checkbox-option.js.map +1 -0
- package/dist/components/je-checkbox.d.ts +11 -0
- package/dist/components/je-checkbox.js +83 -0
- package/dist/components/je-checkbox.js.map +1 -0
- package/dist/components/je-color.d.ts +11 -0
- package/dist/components/je-color.js +8 -0
- package/dist/components/je-color.js.map +1 -0
- package/dist/components/je-column-group.d.ts +11 -0
- package/dist/components/je-column-group.js +46 -0
- package/dist/components/je-column-group.js.map +1 -0
- package/dist/components/je-column.d.ts +11 -0
- package/dist/components/je-column.js +95 -0
- package/dist/components/je-column.js.map +1 -0
- package/dist/components/je-datepicker.d.ts +11 -0
- package/dist/components/je-datepicker.js +3249 -0
- package/dist/components/je-datepicker.js.map +1 -0
- package/dist/components/je-details.d.ts +11 -0
- package/dist/components/je-details.js +49 -0
- package/dist/components/je-details.js.map +1 -0
- package/dist/components/je-divider.d.ts +11 -0
- package/dist/components/je-divider.js +42 -0
- package/dist/components/je-divider.js.map +1 -0
- package/dist/components/je-drawer.d.ts +11 -0
- package/dist/components/je-drawer.js +60 -0
- package/dist/components/je-drawer.js.map +1 -0
- package/dist/components/je-dropzone.d.ts +11 -0
- package/dist/components/je-dropzone.js +55 -0
- package/dist/components/je-dropzone.js.map +1 -0
- package/dist/components/je-form.d.ts +11 -0
- package/dist/components/je-form.js +8 -0
- package/dist/components/je-form.js.map +1 -0
- package/dist/components/je-icon.d.ts +11 -0
- package/dist/components/je-icon.js +8 -0
- package/dist/components/je-icon.js.map +1 -0
- package/dist/components/je-infinite.d.ts +11 -0
- package/dist/components/je-infinite.js +64 -0
- package/dist/components/je-infinite.js.map +1 -0
- package/dist/components/je-input.d.ts +11 -0
- package/dist/components/je-input.js +8 -0
- package/dist/components/je-input.js.map +1 -0
- package/dist/components/je-link.d.ts +11 -0
- package/dist/components/je-link.js +62 -0
- package/dist/components/je-link.js.map +1 -0
- package/dist/components/je-loading.d.ts +11 -0
- package/dist/components/je-loading.js +66 -0
- package/dist/components/je-loading.js.map +1 -0
- package/dist/components/je-menu-option.d.ts +11 -0
- package/dist/components/je-menu-option.js +37 -0
- package/dist/components/je-menu-option.js.map +1 -0
- package/dist/components/je-menu.d.ts +11 -0
- package/dist/components/je-menu.js +37 -0
- package/dist/components/je-menu.js.map +1 -0
- package/dist/components/je-modal.d.ts +11 -0
- package/dist/components/je-modal.js +104 -0
- package/dist/components/je-modal.js.map +1 -0
- package/dist/components/je-multiselect-option.d.ts +11 -0
- package/dist/components/je-multiselect-option.js +62 -0
- package/dist/components/je-multiselect-option.js.map +1 -0
- package/dist/components/je-multiselect.d.ts +11 -0
- package/dist/components/je-multiselect.js +146 -0
- package/dist/components/je-multiselect.js.map +1 -0
- package/dist/components/je-page.d.ts +11 -0
- package/dist/components/je-page.js +61 -0
- package/dist/components/je-page.js.map +1 -0
- package/dist/components/je-pill.d.ts +11 -0
- package/dist/components/je-pill.js +8 -0
- package/dist/components/je-pill.js.map +1 -0
- package/dist/components/je-placeholder.d.ts +11 -0
- package/dist/components/je-placeholder.js +40 -0
- package/dist/components/je-placeholder.js.map +1 -0
- package/dist/components/je-popover.d.ts +11 -0
- package/dist/components/je-popover.js +8 -0
- package/dist/components/je-popover.js.map +1 -0
- package/dist/components/je-radio-group.d.ts +11 -0
- package/dist/components/je-radio-group.js +92 -0
- package/dist/components/je-radio-group.js.map +1 -0
- package/dist/components/je-radio.d.ts +11 -0
- package/dist/components/je-radio.js +68 -0
- package/dist/components/je-radio.js.map +1 -0
- package/dist/components/je-select-option.d.ts +11 -0
- package/dist/components/je-select-option.js +56 -0
- package/dist/components/je-select-option.js.map +1 -0
- package/dist/components/je-select.d.ts +11 -0
- package/dist/components/je-select.js +208 -0
- package/dist/components/je-select.js.map +1 -0
- package/dist/components/je-tab.d.ts +11 -0
- package/dist/components/je-tab.js +37 -0
- package/dist/components/je-tab.js.map +1 -0
- package/dist/components/je-tabs.d.ts +11 -0
- package/dist/components/je-tabs.js +37 -0
- package/dist/components/je-tabs.js.map +1 -0
- package/dist/components/je-textarea.d.ts +11 -0
- package/dist/components/je-textarea.js +55 -0
- package/dist/components/je-textarea.js.map +1 -0
- package/dist/components/je-toast.d.ts +11 -0
- package/dist/components/je-toast.js +37 -0
- package/dist/components/je-toast.js.map +1 -0
- package/dist/components/je-toggle.d.ts +11 -0
- package/dist/components/je-toggle.js +57 -0
- package/dist/components/je-toggle.js.map +1 -0
- package/dist/components/je-toolbar.d.ts +11 -0
- package/dist/components/je-toolbar.js +37 -0
- package/dist/components/je-toolbar.js.map +1 -0
- package/dist/components/je-tree.d.ts +11 -0
- package/dist/components/je-tree.js +37 -0
- package/dist/components/je-tree.js.map +1 -0
- package/dist/components/p-1f3759e7.js +41 -0
- package/dist/components/p-1f3759e7.js.map +1 -0
- package/dist/components/p-243cc91b.js +50 -0
- package/dist/components/p-243cc91b.js.map +1 -0
- package/dist/components/p-2df369c4.js +265 -0
- package/dist/components/p-2df369c4.js.map +1 -0
- package/dist/components/p-41492a72.js +1514 -0
- package/dist/components/p-41492a72.js.map +1 -0
- package/dist/components/p-4b8ae8ef.js +51 -0
- package/dist/components/p-4b8ae8ef.js.map +1 -0
- package/dist/components/p-5dee004d.js +246 -0
- package/dist/components/p-5dee004d.js.map +1 -0
- package/dist/components/p-8401b4e4.js +48 -0
- package/dist/components/p-8401b4e4.js.map +1 -0
- package/dist/components/p-94327b0d.js +39 -0
- package/dist/components/p-94327b0d.js.map +1 -0
- package/dist/components/p-aa4caa39.js +76 -0
- package/dist/components/p-aa4caa39.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/index-a65634db.js +1692 -0
- package/dist/esm/index-a65634db.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/je-alert_31.entry.js +4738 -0
- package/dist/esm/je-alert_31.entry.js.map +1 -0
- package/dist/esm/je-branch.entry.js +18 -0
- package/dist/esm/je-branch.entry.js.map +1 -0
- package/dist/esm/je-column-group.entry.js +25 -0
- package/dist/esm/je-column-group.entry.js.map +1 -0
- package/dist/esm/je-column.entry.js +69 -0
- package/dist/esm/je-column.entry.js.map +1 -0
- package/dist/esm/je-infinite.entry.js +41 -0
- package/dist/esm/je-infinite.entry.js.map +1 -0
- package/dist/esm/je-menu-option.entry.js +18 -0
- package/dist/esm/je-menu-option.entry.js.map +1 -0
- package/dist/esm/je-menu.entry.js +18 -0
- package/dist/esm/je-menu.entry.js.map +1 -0
- package/dist/esm/je-tab.entry.js +18 -0
- package/dist/esm/je-tab.entry.js.map +1 -0
- package/dist/esm/je-tabs.entry.js +18 -0
- package/dist/esm/je-tabs.entry.js.map +1 -0
- package/dist/esm/je-toast.entry.js +18 -0
- package/dist/esm/je-toast.entry.js.map +1 -0
- package/dist/esm/je-tree.entry.js +18 -0
- package/dist/esm/je-tree.entry.js.map +1 -0
- package/dist/esm/jebamo.js +22 -0
- package/dist/esm/jebamo.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/jebamo/index.esm.js +2 -0
- package/dist/jebamo/index.esm.js.map +1 -0
- package/dist/jebamo/jebamo.esm.js +2 -0
- package/dist/jebamo/jebamo.esm.js.map +1 -0
- package/dist/jebamo/p-0d0cb311.entry.js +2 -0
- package/dist/jebamo/p-0d0cb311.entry.js.map +1 -0
- package/dist/jebamo/p-254ac389.entry.js +2 -0
- package/dist/jebamo/p-254ac389.entry.js.map +1 -0
- package/dist/jebamo/p-286807aa.entry.js +2 -0
- package/dist/jebamo/p-286807aa.entry.js.map +1 -0
- package/dist/jebamo/p-44735e2f.entry.js +2 -0
- package/dist/jebamo/p-44735e2f.entry.js.map +1 -0
- package/dist/jebamo/p-456b52ee.js +3 -0
- package/dist/jebamo/p-456b52ee.js.map +1 -0
- package/dist/jebamo/p-5b8d9daf.entry.js +2 -0
- package/dist/jebamo/p-5b8d9daf.entry.js.map +1 -0
- package/dist/jebamo/p-c519a7a4.entry.js +2 -0
- package/dist/jebamo/p-c519a7a4.entry.js.map +1 -0
- package/dist/jebamo/p-c6111d19.entry.js +2 -0
- package/dist/jebamo/p-c6111d19.entry.js.map +1 -0
- package/dist/jebamo/p-c8615128.entry.js +2 -0
- package/dist/jebamo/p-c8615128.entry.js.map +1 -0
- package/dist/jebamo/p-e1255160.js +2 -0
- package/dist/jebamo/p-e1255160.js.map +1 -0
- package/dist/jebamo/p-e330c9bb.entry.js +2 -0
- package/dist/jebamo/p-e330c9bb.entry.js.map +1 -0
- package/dist/jebamo/p-f6e777be.entry.js +2 -0
- package/dist/jebamo/p-f6e777be.entry.js.map +1 -0
- package/dist/jebamo/p-ff27b55f.entry.js +2 -0
- package/dist/jebamo/p-ff27b55f.entry.js.map +1 -0
- package/dist/types/components/checkbox-group/je-checkbox-group/je-checkbox-group.d.ts +25 -0
- package/dist/types/components/checkbox-group/je-checkbox-option/je-checkbox-option.d.ts +30 -0
- package/dist/types/components/column/je-column/je-column.d.ts +31 -0
- package/dist/types/components/column/je-column-group/je-column-group.d.ts +9 -0
- package/dist/types/components/je-alert/je-alert.d.ts +77 -0
- package/dist/types/components/je-button/je-button.d.ts +28 -0
- package/dist/types/components/je-card/je-card.d.ts +6 -0
- package/dist/types/components/je-checkbox/je-checkbox.d.ts +38 -0
- package/dist/types/components/je-color/je-color.d.ts +12 -0
- package/dist/types/components/je-datepicker/je-datepicker.d.ts +18 -0
- package/dist/types/components/je-details/je-details.d.ts +6 -0
- package/dist/types/components/je-divider/je-divider.d.ts +5 -0
- package/dist/types/components/je-drawer/je-drawer.d.ts +10 -0
- package/dist/types/components/je-dropzone/je-dropzone.d.ts +10 -0
- package/dist/types/components/je-form/je-form.d.ts +12 -0
- package/dist/types/components/je-icon/je-icon.d.ts +15 -0
- package/dist/types/components/je-infinite/je-infinite.d.ts +25 -0
- package/dist/types/components/je-input/je-input.d.ts +155 -0
- package/dist/types/components/je-link/je-link.d.ts +22 -0
- package/dist/types/components/je-loading/je-loading.d.ts +22 -0
- package/dist/types/components/je-modal/je-modal.d.ts +28 -0
- package/dist/types/components/je-page/je-page.d.ts +12 -0
- package/dist/types/components/je-pill/je-pill.d.ts +6 -0
- package/dist/types/components/je-placeholder/je-placeholder.d.ts +7 -0
- package/dist/types/components/je-popover/je-popover.d.ts +70 -0
- package/dist/types/components/je-textarea/je-textarea.d.ts +11 -0
- package/dist/types/components/je-toast/je-toast.d.ts +3 -0
- package/dist/types/components/je-toggle/je-toggle.d.ts +18 -0
- package/dist/types/components/je-toolbar/je-toolbar.d.ts +3 -0
- package/dist/types/components/menu/je-menu/je-menu.d.ts +3 -0
- package/dist/types/components/menu/je-menu-option/je-menu-option.d.ts +3 -0
- package/dist/types/components/multiselect/je-multiselect/je-multiselect.d.ts +27 -0
- package/dist/types/components/multiselect/je-multiselect-option/je-multiselect-option.d.ts +11 -0
- package/dist/types/components/radio/je-radio/je-radio.d.ts +25 -0
- package/dist/types/components/radio/je-radio-group/je-radio-group.d.ts +32 -0
- package/dist/types/components/select/je-select/je-select.d.ts +23 -0
- package/dist/types/components/select/je-select-option/je-select-option.d.ts +10 -0
- package/dist/types/components/tabs/je-tab/je-tab.d.ts +3 -0
- package/dist/types/components/tabs/je-tabs/je-tabs.d.ts +3 -0
- package/dist/types/components/tree/je-branch/je-branch.d.ts +3 -0
- package/dist/types/components/tree/je-tree/je-tree.d.ts +3 -0
- package/dist/types/components.d.ts +1846 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +4 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +31 -26
- package/readme.md +114 -0
- package/README.md +0 -24
- package/esm2020/jebamo.mjs +0 -5
- package/esm2020/lib/jebamo.component.mjs +0 -19
- package/esm2020/lib/jebamo.module.mjs +0 -21
- package/esm2020/lib/jebamo.service.mjs +0 -14
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/jebamo.mjs +0 -60
- package/fesm2015/jebamo.mjs.map +0 -1
- package/fesm2020/jebamo.mjs +0 -60
- package/fesm2020/jebamo.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/jebamo.component.d.ts +0 -5
- package/lib/jebamo.module.d.ts +0 -7
- package/lib/jebamo.service.d.ts +0 -6
- package/public-api.d.ts +0 -3
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-41492a72.js';
|
|
2
|
+
|
|
3
|
+
const jeRadioGroupCss = ":host{display:block;width:fit-content}label{display:block;font-weight:var(--je-font-semi-bold);margin-bottom:var(--je-spacing-2xs)}";
|
|
4
|
+
const JeRadioGroupStyle0 = jeRadioGroupCss;
|
|
5
|
+
|
|
6
|
+
const JeRadioGroup$1 = /*@__PURE__*/ proxyCustomElement(class JeRadioGroup extends H {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.valueChange = createEvent(this, "valueChange", 3);
|
|
12
|
+
this.label = undefined;
|
|
13
|
+
this.value = undefined;
|
|
14
|
+
this.readonly = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
if (this.label) {
|
|
19
|
+
this.el.setAttribute('name', this.label);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
this.originalValue = this.value;
|
|
24
|
+
if (this.value) {
|
|
25
|
+
const radios = this.getRadios();
|
|
26
|
+
for (let item of radios) {
|
|
27
|
+
if (item.value === this.value) {
|
|
28
|
+
item.selected = true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
formResetCallback() {
|
|
34
|
+
if (this.value !== this.originalValue) {
|
|
35
|
+
this.value = this.originalValue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
getRadios() {
|
|
39
|
+
const elements = this.el.querySelectorAll('je-radio');
|
|
40
|
+
return Array.from(elements);
|
|
41
|
+
}
|
|
42
|
+
handleValueChange() {
|
|
43
|
+
this.valueChange.emit(this.value);
|
|
44
|
+
const radios = this.getRadios();
|
|
45
|
+
for (let radio of radios) {
|
|
46
|
+
if (radio.value !== this.value && radio.selected !== false)
|
|
47
|
+
radio.selected = false;
|
|
48
|
+
else if (radio.value === this.value && radio.selected !== true)
|
|
49
|
+
radio.selected = true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
handleNewValue(ev) {
|
|
53
|
+
this.value = ev.detail;
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return (h(Host, { key: '70e9947ae0ea7b3747ef0470b0ce0e9491f43129' }, this.label && h("label", { key: 'db3fec8de716f25e8a8cf6dcbcd0d272417940f2' }, this.label), h("slot", { key: 'c2a03fa6a99928087f2815e51e47ab1eb61dcaa8' })));
|
|
57
|
+
}
|
|
58
|
+
static get formAssociated() { return true; }
|
|
59
|
+
get el() { return this; }
|
|
60
|
+
static get watchers() { return {
|
|
61
|
+
"value": ["handleValueChange"]
|
|
62
|
+
}; }
|
|
63
|
+
static get style() { return JeRadioGroupStyle0; }
|
|
64
|
+
}, [65, "je-radio-group", {
|
|
65
|
+
"label": [1],
|
|
66
|
+
"value": [1032],
|
|
67
|
+
"readonly": [4],
|
|
68
|
+
"disabled": [4]
|
|
69
|
+
}, [[0, "radioSelect", "handleNewValue"]], {
|
|
70
|
+
"value": ["handleValueChange"]
|
|
71
|
+
}]);
|
|
72
|
+
function defineCustomElement$1() {
|
|
73
|
+
if (typeof customElements === "undefined") {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const components = ["je-radio-group"];
|
|
77
|
+
components.forEach(tagName => { switch (tagName) {
|
|
78
|
+
case "je-radio-group":
|
|
79
|
+
if (!customElements.get(tagName)) {
|
|
80
|
+
customElements.define(tagName, JeRadioGroup$1);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
} });
|
|
84
|
+
}
|
|
85
|
+
defineCustomElement$1();
|
|
86
|
+
|
|
87
|
+
const JeRadioGroup = JeRadioGroup$1;
|
|
88
|
+
const defineCustomElement = defineCustomElement$1;
|
|
89
|
+
|
|
90
|
+
export { JeRadioGroup, defineCustomElement };
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=je-radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-radio-group.js","mappings":";;AAAA,MAAM,eAAe,GAAG,qIAAqI,CAAC;AAC9J,2BAAe,eAAe;;MCOjBA,cAAY;;;;;;;;wBAiBJ,KAAK;wBAKL,KAAK;;IAOxB,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;SACzC;KACF;IAED,gBAAgB;QACd,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC;QAChC,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAChC,KAAK,IAAI,IAAI,IAAI,MAAM,EAAE;gBACvB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;oBAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;iBACtB;aACF;SACF;KACF;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,EAAE;YACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;SACjC;KACF;IAEO,SAAS;QACf,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAGD,iBAAiB;QACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,KAAK,IAAI,KAAK,IAAI,MAAM,EAAE;YACxB,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK;gBACxD,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;iBACpB,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI;gBAC5D,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;SACzB;KACF;IAGD,cAAc,CAAC,EAAoB;QACjC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,MAAM,CAAC;KACxB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACF,IAAI,CAAC,KAAK,IAAI,gEAAQ,IAAI,CAAC,KAAK,CAAS,EAC1C,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeRadioGroup"],"sources":["src/components/radio/je-radio-group/je-radio-group.scss?tag=je-radio-group&encapsulation=shadow","src/components/radio/je-radio-group/je-radio-group.tsx"],"sourcesContent":[":host {\n display: block;\n width: fit-content;\n}\n\nlabel {\n display: block;\n font-weight: var(--je-font-semi-bold);\n margin-bottom: var(--je-spacing-2xs);\n}\n","import { Component, Host, h, Element, EventEmitter, Prop, Event, Watch, Listen } from '@stencil/core';\n\n@Component({\n tag: 'je-radio-group',\n styleUrl: 'je-radio-group.scss',\n shadow: true,\n formAssociated: true\n})\nexport class JeRadioGroup {\n @Element() el!: HTMLJeRadioGroupElement;\n private originalValue?: any;\n\n /**\n * Label that shows above the controls\n */\n @Prop() label?: string;\n\n /**\n * The currently selected value\n */\n @Prop({ mutable: true }) value?: any;\n\n /**\n * Shows readonly state for all the controls and prevents changes\n */\n @Prop() readonly = false;\n\n /**\n * Shows disabled state for all the controls and prevents changes\n */\n @Prop() disabled = false;\n\n /**\n * Emits the selected value whenever it changes\n */\n @Event({ bubbles: false }) valueChange: EventEmitter<any>;\n\n componentWillLoad() {\n if (this.label) {\n this.el.setAttribute('name', this.label)\n }\n }\n\n componentDidLoad() {\n this.originalValue = this.value;\n if (this.value) {\n const radios = this.getRadios();\n for (let item of radios) {\n if (item.value === this.value) {\n item.selected = true;\n }\n }\n }\n }\n\n formResetCallback() {\n if (this.value !== this.originalValue) {\n this.value = this.originalValue;\n }\n }\n\n private getRadios() {\n const elements = this.el.querySelectorAll('je-radio');\n return Array.from(elements);\n }\n\n @Watch('value')\n handleValueChange() {\n this.valueChange.emit(this.value);\n const radios = this.getRadios();\n for (let radio of radios) {\n if (radio.value !== this.value && radio.selected !== false)\n radio.selected = false;\n else if (radio.value === this.value && radio.selected !== true)\n radio.selected = true;\n }\n }\n\n @Listen('radioSelect')\n handleNewValue(ev: CustomEvent<any>) {\n this.value = ev.detail;\n }\n\n render() {\n return (\n <Host>\n {this.label && <label>{this.label}</label>}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeRadio extends Components.JeRadio, HTMLElement {}
|
|
4
|
+
export const JeRadio: {
|
|
5
|
+
prototype: JeRadio;
|
|
6
|
+
new (): JeRadio;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-41492a72.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-4b8ae8ef.js';
|
|
3
|
+
|
|
4
|
+
const jeRadioCss = ":host{display:flex;align-items:center;gap:var(--je-spacing-2xs, 8px);cursor:pointer;-webkit-user-select:none;user-select:none}je-icon{cursor:pointer;color:var(--je-primary-500)}";
|
|
5
|
+
const JeRadioStyle0 = jeRadioCss;
|
|
6
|
+
|
|
7
|
+
const JeRadio$1 = /*@__PURE__*/ proxyCustomElement(class JeRadio extends H {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.radioSelect = createEvent(this, "radioSelect", 7);
|
|
13
|
+
this.readonly = false;
|
|
14
|
+
this.disabled = false;
|
|
15
|
+
this.value = undefined;
|
|
16
|
+
this.labelPlacement = 'end';
|
|
17
|
+
this.selected = undefined;
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
const parent = this.el.closest('je-radio-group');
|
|
21
|
+
if (parent) {
|
|
22
|
+
this.disabled = parent.disabled;
|
|
23
|
+
this.readonly = parent.readonly;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
handleClick() {
|
|
27
|
+
if (!this.disabled && !this.readonly && this.selected !== true) {
|
|
28
|
+
this.radioSelect.emit(this.value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h(Host, { key: '1a0e6e3ae1a17ac4b29bb44a06de42e6a4a56f9b' }, this.labelPlacement == 'start' && h("slot", { key: 'ed2becb99697e46e485b02ed908a8e88100d58cb' }), h("je-icon", { key: 'c37d5f92ae5f59be880868cc865577bf6aab9b31', icon: this.selected ? 'radio_button_checked' : 'radio_button_unchecked' }), this.labelPlacement == 'end' && h("slot", { key: '3fdf2901786c28a575a8429d37ee79bf30cd9321' })));
|
|
33
|
+
}
|
|
34
|
+
get el() { return this; }
|
|
35
|
+
static get style() { return JeRadioStyle0; }
|
|
36
|
+
}, [1, "je-radio", {
|
|
37
|
+
"value": [8],
|
|
38
|
+
"labelPlacement": [1, "label-placement"],
|
|
39
|
+
"selected": [4],
|
|
40
|
+
"readonly": [32],
|
|
41
|
+
"disabled": [32]
|
|
42
|
+
}, [[0, "click", "handleClick"]]]);
|
|
43
|
+
function defineCustomElement$1() {
|
|
44
|
+
if (typeof customElements === "undefined") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const components = ["je-radio", "je-icon"];
|
|
48
|
+
components.forEach(tagName => { switch (tagName) {
|
|
49
|
+
case "je-radio":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
customElements.define(tagName, JeRadio$1);
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case "je-icon":
|
|
55
|
+
if (!customElements.get(tagName)) {
|
|
56
|
+
defineCustomElement$2();
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
} });
|
|
60
|
+
}
|
|
61
|
+
defineCustomElement$1();
|
|
62
|
+
|
|
63
|
+
const JeRadio = JeRadio$1;
|
|
64
|
+
const defineCustomElement = defineCustomElement$1;
|
|
65
|
+
|
|
66
|
+
export { JeRadio, defineCustomElement };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=je-radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-radio.js","mappings":";;;AAAA,MAAM,UAAU,GAAG,mLAAmL,CAAC;AACvM,sBAAe,UAAU;;MCMZA,SAAO;;;;;;wBAEE,KAAK;wBACL,KAAK;;8BAUiB,KAAK;;;IAY/C,iBAAiB;QACf,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACjD,IAAI,MAAM,EAAE;YACV,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;YAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;SACjC;KACF;IAGD,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC9D,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACF,IAAI,CAAC,cAAc,IAAI,OAAO,IAAI,8DAAa,EAChD,gEAAS,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,sBAAsB,GAAG,wBAAwB,GAAI,EACnF,IAAI,CAAC,cAAc,IAAI,KAAK,IAAI,8DAAa,CACzC,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeRadio"],"sources":["src/components/radio/je-radio/je-radio.scss?tag=je-radio&encapsulation=shadow","src/components/radio/je-radio/je-radio.tsx"],"sourcesContent":[":host {\n display: flex;\n align-items: center;\n gap: var(--je-spacing-2xs, 8px);\n cursor: pointer;\n -webkit-user-select: none;\n user-select: none;\n}\n\nje-icon {\n cursor: pointer;\n color: var(--je-primary-500);\n}\n","import { Component, EventEmitter, Host, Prop, State, h, Element, Event, Listen } from '@stencil/core';\n\n@Component({\n tag: 'je-radio',\n styleUrl: 'je-radio.scss',\n shadow: true,\n})\nexport class JeRadio {\n @Element() el!: HTMLElement;\n @State() readonly = false;\n @State() disabled = false;\n\n /**\n * The value of this option and the radio group will compare against\n */\n @Prop() value: any;\n\n /**\n * Whether or not the label will appear before or after the control\n */\n @Prop() labelPlacement: 'start' | 'end' = 'end';\n\n /**\n * If the option is currently selected\n */\n @Prop() selected: boolean;\n\n /**\n * Emits the value whenever it is selected\n */\n @Event() radioSelect: EventEmitter<any>;\n\n connectedCallback() {\n const parent = this.el.closest('je-radio-group');\n if (parent) {\n this.disabled = parent.disabled;\n this.readonly = parent.readonly;\n }\n }\n\n @Listen('click')\n handleClick() {\n if (!this.disabled && !this.readonly && this.selected !== true) {\n this.radioSelect.emit(this.value);\n }\n }\n\n render() {\n return (\n <Host>\n {this.labelPlacement == 'start' && <slot></slot>}\n <je-icon icon={this.selected ? 'radio_button_checked' : 'radio_button_unchecked'} />\n {this.labelPlacement == 'end' && <slot></slot>}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeSelectOption extends Components.JeSelectOption, HTMLElement {}
|
|
4
|
+
export const JeSelectOption: {
|
|
5
|
+
prototype: JeSelectOption;
|
|
6
|
+
new (): JeSelectOption;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-41492a72.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-4b8ae8ef.js';
|
|
3
|
+
|
|
4
|
+
const jeSelectOptionCss = ":host{display:block;width:100%;--je-option-hover-color:var(--je-primary-100)}:host([darkmode]){--je-option-hover-color:var(--je-medium-850)}:host(:hover) span[part=container],:host(.focus) span[part=container]{background-color:var(--je-option-hover-color)}span[part=container]{display:flex;align-items:center;gap:var(--je-spacing-2xs);user-select:none;-webkit-user-select:none;cursor:pointer;width:100%;padding:var(--je-spacing-xs, 10px);background-color:transparent;color:inherit;transition:background-color 75ms ease-in}je-icon{cursor:pointer}";
|
|
5
|
+
const JeSelectOptionStyle0 = jeSelectOptionCss;
|
|
6
|
+
|
|
7
|
+
const JeSelectOption$1 = /*@__PURE__*/ proxyCustomElement(class JeSelectOption extends H {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.optionSelected = createEvent(this, "optionSelected", 7);
|
|
13
|
+
this.value = undefined;
|
|
14
|
+
this.selected = false;
|
|
15
|
+
}
|
|
16
|
+
handleClick() {
|
|
17
|
+
this.optionSelected.emit(this.value);
|
|
18
|
+
}
|
|
19
|
+
handleThemeChange(e) {
|
|
20
|
+
this.hostEl.toggleAttribute('darkmode', e.detail == 'dark');
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h("span", { key: '2aea5751eefe77f3ad5f1aadd76e5582f1481121', part: 'container' }, h("je-icon", { key: 'e03092f2bb061d9954df0503ca924bf287b683e9', icon: this.selected ? 'radio_button_checked' : 'radio_button_unchecked' }), h("slot", { key: '485755645a3bfa06eb79f4d6fc42501541da1712' })));
|
|
24
|
+
}
|
|
25
|
+
get hostEl() { return this; }
|
|
26
|
+
static get style() { return JeSelectOptionStyle0; }
|
|
27
|
+
}, [1, "je-select-option", {
|
|
28
|
+
"value": [1],
|
|
29
|
+
"selected": [516]
|
|
30
|
+
}, [[0, "click", "handleClick"], [16, "themeChange", "handleThemeChange"]]]);
|
|
31
|
+
function defineCustomElement$1() {
|
|
32
|
+
if (typeof customElements === "undefined") {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const components = ["je-select-option", "je-icon"];
|
|
36
|
+
components.forEach(tagName => { switch (tagName) {
|
|
37
|
+
case "je-select-option":
|
|
38
|
+
if (!customElements.get(tagName)) {
|
|
39
|
+
customElements.define(tagName, JeSelectOption$1);
|
|
40
|
+
}
|
|
41
|
+
break;
|
|
42
|
+
case "je-icon":
|
|
43
|
+
if (!customElements.get(tagName)) {
|
|
44
|
+
defineCustomElement$2();
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
} });
|
|
48
|
+
}
|
|
49
|
+
defineCustomElement$1();
|
|
50
|
+
|
|
51
|
+
const JeSelectOption = JeSelectOption$1;
|
|
52
|
+
const defineCustomElement = defineCustomElement$1;
|
|
53
|
+
|
|
54
|
+
export { JeSelectOption, defineCustomElement };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=je-select-option.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-select-option.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,miBAAmiB,CAAC;AAC9jB,6BAAe,iBAAiB;;MCMnBA,gBAAc;;;;;;;wBAGW,KAAK;;IAIzC,WAAW;QACT,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACtC;IAGD,iBAAiB,CAAC,CAAgC;QAChD,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAA;KAC5D;IAED,MAAM;QACJ,QACE,6DAAM,IAAI,EAAC,WAAW,IACpB,gEAAS,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,sBAAsB,GAAG,wBAAwB,GAAG,EACnF,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeSelectOption"],"sources":["src/components/select/je-select-option/je-select-option.scss?tag=je-select-option&encapsulation=shadow","src/components/select/je-select-option/je-select-option.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n --je-option-hover-color: var(--je-primary-100);\n}\n\n:host([darkmode]) {\n --je-option-hover-color: var(--je-medium-850);\n}\n\n:host(:hover) span[part='container'], :host(.focus) span[part='container'] {\n background-color: var(--je-option-hover-color);\n}\n\nspan[part='container'] {\n display: flex;\n align-items: center;\n gap: var(--je-spacing-2xs);\n user-select: none;\n -webkit-user-select: none;\n cursor: pointer;\n width: 100%;\n padding: var(--je-spacing-xs, 10px);\n background-color: transparent;\n color: inherit;\n transition: background-color 75ms ease-in;\n}\n\nje-icon {\n cursor: pointer;\n}\n","import { Component, Element, Event, EventEmitter, Listen, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'je-select-option',\n styleUrl: 'je-select-option.scss',\n shadow: true,\n})\nexport class JeSelectOption {\n @Element() hostEl!: HTMLElement;\n @Prop() value: string;\n @Prop({ reflect: true }) selected = false;\n @Event() optionSelected: EventEmitter<string>;\n\n @Listen('click')\n handleClick() {\n this.optionSelected.emit(this.value);\n }\n\n @Listen('themeChange', { target: 'body' })\n handleThemeChange(e: CustomEvent<'light' | 'dark'>) {\n this.hostEl.toggleAttribute('darkmode', e.detail == 'dark')\n }\n\n render() {\n return (\n <span part='container'>\n <je-icon icon={this.selected ? 'radio_button_checked' : 'radio_button_unchecked'}/>\n <slot></slot>\n </span>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeSelect extends Components.JeSelect, HTMLElement {}
|
|
4
|
+
export const JeSelect: {
|
|
5
|
+
prototype: JeSelect;
|
|
6
|
+
new (): JeSelect;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-41492a72.js';
|
|
2
|
+
import { d as defineCustomElement$4 } from './p-4b8ae8ef.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-2df369c4.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-5dee004d.js';
|
|
5
|
+
|
|
6
|
+
const jeSelectCss = ":host{display:block;width:fit-content}je-input::part(native-input){cursor:pointer}:host([expand]){width:100%}je-icon{transition:transform 250ms ease}je-icon.open{transform:rotate(180deg)}";
|
|
7
|
+
const JeSelectStyle0 = jeSelectCss;
|
|
8
|
+
|
|
9
|
+
const JeSelect$1 = /*@__PURE__*/ proxyCustomElement(class JeSelect extends H {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.__attachShadow();
|
|
14
|
+
this.open = false;
|
|
15
|
+
this.label = undefined;
|
|
16
|
+
this.placeholder = undefined;
|
|
17
|
+
this.value = undefined;
|
|
18
|
+
this.expand = undefined;
|
|
19
|
+
this.required = undefined;
|
|
20
|
+
}
|
|
21
|
+
componentDidLoad() {
|
|
22
|
+
this.originalValue = this.value;
|
|
23
|
+
}
|
|
24
|
+
componentWillLoad() {
|
|
25
|
+
if (!this.el.getAttribute('name') && this.label) {
|
|
26
|
+
this.el.setAttribute('name', this.label);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
formResetCallback() {
|
|
30
|
+
this.value = this.originalValue;
|
|
31
|
+
const options = Array.from(this.el.querySelectorAll('je-select-option'));
|
|
32
|
+
if (!options.some(t => t.value === this.value)) {
|
|
33
|
+
this.inputEl.value = '';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
handlePopoverPresent() {
|
|
37
|
+
this.open = true;
|
|
38
|
+
}
|
|
39
|
+
handlePopoverDismiss() {
|
|
40
|
+
this.open = false;
|
|
41
|
+
const options = this.el.querySelectorAll('je-select-option');
|
|
42
|
+
options.forEach(option => option.classList.remove('focus'));
|
|
43
|
+
}
|
|
44
|
+
handleOptionSelected(event) {
|
|
45
|
+
this.value = event.detail;
|
|
46
|
+
}
|
|
47
|
+
handleValueChange() {
|
|
48
|
+
const options = this.el.querySelectorAll('je-select-option');
|
|
49
|
+
options.forEach(option => {
|
|
50
|
+
if (option.value === this.value) {
|
|
51
|
+
option.selected = true;
|
|
52
|
+
this.inputEl.value = option.textContent || option.value;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
option.selected = false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
focusOption(option) {
|
|
60
|
+
option.classList.add('focus');
|
|
61
|
+
}
|
|
62
|
+
blurOption(option) {
|
|
63
|
+
option.classList.remove('focus');
|
|
64
|
+
}
|
|
65
|
+
hasFocus(option) {
|
|
66
|
+
return option.classList.contains('focus');
|
|
67
|
+
}
|
|
68
|
+
handleKeyDown(event) {
|
|
69
|
+
var _a;
|
|
70
|
+
if (this.open || (event.key !== 'Tab' && event.key !== 'Enter')) {
|
|
71
|
+
event.preventDefault();
|
|
72
|
+
event.stopPropagation();
|
|
73
|
+
}
|
|
74
|
+
const options = Array.from(this.el.querySelectorAll('je-select-option'));
|
|
75
|
+
if (event.key == 'Enter' && this.open) {
|
|
76
|
+
options.forEach(option => {
|
|
77
|
+
if (this.hasFocus(option)) {
|
|
78
|
+
this.value = option.value;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
this.inputEl.dismissDropdown();
|
|
82
|
+
}
|
|
83
|
+
else if (event.key == 'Escape') {
|
|
84
|
+
this.inputEl.dismissDropdown();
|
|
85
|
+
}
|
|
86
|
+
else if ((event.key == 'ArrowDown' || event.key == 'ArrowUp') && !this.open) {
|
|
87
|
+
this.inputEl.shadowRoot.querySelector("[part='outer-container']").click();
|
|
88
|
+
}
|
|
89
|
+
else if ((event.key == 'ArrowDown' || event.key == 'ArrowUp') && this.open) {
|
|
90
|
+
if (!options.some(t => this.hasFocus(t))) {
|
|
91
|
+
const indexToFocus = options.findIndex(t => t.selected);
|
|
92
|
+
if (indexToFocus > -1) {
|
|
93
|
+
this.focusOption(options[indexToFocus]);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
this.focusOption(options[0]);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (event.key == 'ArrowUp') {
|
|
101
|
+
options.forEach(option => {
|
|
102
|
+
if (this.hasFocus(option)) {
|
|
103
|
+
const prevOption = option.previousElementSibling;
|
|
104
|
+
if (prevOption) {
|
|
105
|
+
this.blurOption(option);
|
|
106
|
+
this.focusOption(prevOption);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const optionToFocus = (_a = options.find(t => this.hasFocus(t))) === null || _a === void 0 ? void 0 : _a.nextElementSibling;
|
|
113
|
+
if (optionToFocus) {
|
|
114
|
+
this.blurOption(options.find(t => this.hasFocus(t)));
|
|
115
|
+
this.focusOption(optionToFocus);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (event.key.length == 1) {
|
|
121
|
+
const currentFocusedOption = options.find(t => this.hasFocus(t));
|
|
122
|
+
const optionsWithKey = options.filter(t => t.textContent.toLowerCase().startsWith(event.key.toLowerCase()));
|
|
123
|
+
if (optionsWithKey.length) {
|
|
124
|
+
const currentFocuedIndex = optionsWithKey.findIndex(t => this.hasFocus(t));
|
|
125
|
+
if (currentFocuedIndex > -1) {
|
|
126
|
+
if (currentFocuedIndex < optionsWithKey.length - 1) {
|
|
127
|
+
this.blurOption(optionsWithKey[currentFocuedIndex]);
|
|
128
|
+
this.focusOption(optionsWithKey[currentFocuedIndex + 1]);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
this.blurOption(optionsWithKey[currentFocuedIndex]);
|
|
132
|
+
this.focusOption(optionsWithKey[0]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
if (currentFocusedOption)
|
|
137
|
+
this.blurOption(currentFocusedOption);
|
|
138
|
+
this.focusOption(optionsWithKey[0]);
|
|
139
|
+
}
|
|
140
|
+
if (!this.open) {
|
|
141
|
+
options.forEach(option => {
|
|
142
|
+
if (this.hasFocus(option)) {
|
|
143
|
+
this.value = option.value;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else if (currentFocusedOption) {
|
|
149
|
+
this.blurOption(currentFocusedOption);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
render() {
|
|
154
|
+
return (h(Host, { key: '66d25d96c778ac0183742b03ba55b104fb542191' }, h("je-input", { key: '01768d4f45c8431cbaee327edba4c97e727df9a9', ref: el => this.inputEl = el, exportparts: 'outer-container, start-container, end-container, native-input, content', dropdown: true, label: this.label, placeholder: this.placeholder, noTyping: true, expand: this.expand, dismissOnClick: true, required: this.required }, h("slot", { key: 'e31cfa87c8148c8ecda310b99ffd668c510a2149', onSlotchange: () => this.handleValueChange(), slot: 'dropdown' }), h("je-icon", { key: 'c3336499f1c8d8ba5150b5c91bb994ece0140c74', slot: 'end', icon: 'expand_more', class: { open: this.open } }))));
|
|
155
|
+
}
|
|
156
|
+
static get delegatesFocus() { return true; }
|
|
157
|
+
static get formAssociated() { return true; }
|
|
158
|
+
get el() { return this; }
|
|
159
|
+
static get watchers() { return {
|
|
160
|
+
"value": ["handleValueChange"]
|
|
161
|
+
}; }
|
|
162
|
+
static get style() { return JeSelectStyle0; }
|
|
163
|
+
}, [81, "je-select", {
|
|
164
|
+
"label": [1],
|
|
165
|
+
"placeholder": [1],
|
|
166
|
+
"value": [1025],
|
|
167
|
+
"expand": [4],
|
|
168
|
+
"required": [4],
|
|
169
|
+
"open": [32]
|
|
170
|
+
}, [[0, "didPresent", "handlePopoverPresent"], [0, "didDismiss", "handlePopoverDismiss"], [0, "optionSelected", "handleOptionSelected"], [2, "keydown", "handleKeyDown"]], {
|
|
171
|
+
"value": ["handleValueChange"]
|
|
172
|
+
}]);
|
|
173
|
+
function defineCustomElement$1() {
|
|
174
|
+
if (typeof customElements === "undefined") {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const components = ["je-select", "je-icon", "je-input", "je-popover"];
|
|
178
|
+
components.forEach(tagName => { switch (tagName) {
|
|
179
|
+
case "je-select":
|
|
180
|
+
if (!customElements.get(tagName)) {
|
|
181
|
+
customElements.define(tagName, JeSelect$1);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
case "je-icon":
|
|
185
|
+
if (!customElements.get(tagName)) {
|
|
186
|
+
defineCustomElement$4();
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case "je-input":
|
|
190
|
+
if (!customElements.get(tagName)) {
|
|
191
|
+
defineCustomElement$3();
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
case "je-popover":
|
|
195
|
+
if (!customElements.get(tagName)) {
|
|
196
|
+
defineCustomElement$2();
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
} });
|
|
200
|
+
}
|
|
201
|
+
defineCustomElement$1();
|
|
202
|
+
|
|
203
|
+
const JeSelect = JeSelect$1;
|
|
204
|
+
const defineCustomElement = defineCustomElement$1;
|
|
205
|
+
|
|
206
|
+
export { JeSelect, defineCustomElement };
|
|
207
|
+
|
|
208
|
+
//# sourceMappingURL=je-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-select.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,6LAA6L,CAAC;AAClN,uBAAe,WAAW;;MCSbA,UAAQ;;;;;oBAIH,KAAK;;;;;;;IAOrB,gBAAgB;QACd,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC;KACjC;IAED,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;YAC/C,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;QAChC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACzE,I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E,EAAE,IAAI,IAAI,CAAC,OAAO,GAAG,EAAE,EACpC,WAAW,EAAC,wEAAwE,EACpF,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,EACd,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,6DAAM,YAAY,EAAE,MAAM,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAC,UAAU,GAAG,EACtE,gEAAS,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,GAAI,CAC5D,CACN,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JeSelect"],"sources":["src/components/select/je-select/je-select.scss?tag=je-select&encapsulation=shadow","src/components/select/je-select/je-select.tsx"],"sourcesContent":[":host {\n display: block;\n width: fit-content;\n}\n\nje-input::part(native-input) {\n cursor: pointer;\n}\n\n:host([expand]) {\n width: 100%;\n}\n\nje-icon {\n transition: transform 250ms ease;\n}\n\nje-icon.open {\n transform: rotate(180deg);\n}\n","import { Component, Host, Prop, h, Element, State, Listen, Watch } from '@stencil/core';\n\n@Component({\n tag: 'je-select',\n styleUrl: 'je-select.scss',\n shadow: {\n delegatesFocus: true\n },\n formAssociated: true\n})\nexport class JeSelect {\n @Element() el: HTMLElement;\n private inputEl!: HTMLJeInputElement;\n private originalValue?: string;\n @State() open = false;\n @Prop() label?: string;\n @Prop() placeholder?: string;\n @Prop({ mutable: true }) value?: string;\n @Prop() expand?: boolean;\n @Prop() required?: boolean;\n\n componentDidLoad() {\n this.originalValue = this.value;\n }\n\n componentWillLoad() {\n if (!this.el.getAttribute('name') && this.label) {\n this.el.setAttribute('name', this.label);\n }\n }\n\n formResetCallback() {\n this.value = this.originalValue;\n const options = Array.from(this.el.querySelectorAll('je-select-option'));\n if (!options.some(t => t.value === this.value)) {\n this.inputEl.value = '';\n }\n }\n\n @Listen('didPresent')\n handlePopoverPresent() {\n this.open = true;\n }\n\n @Listen('didDismiss')\n handlePopoverDismiss() {\n this.open = false;\n const options = this.el.querySelectorAll('je-select-option');\n options.forEach(option => option.classList.remove('focus'));\n }\n\n @Listen('optionSelected')\n handleOptionSelected(event: CustomEvent<string>) {\n this.value = event.detail;\n }\n\n @Watch('value')\n handleValueChange() {\n const options = this.el.querySelectorAll('je-select-option');\n options.forEach(option => {\n if (option.value === this.value) {\n option.selected = true;\n this.inputEl.value = option.textContent || option.value;\n } else {\n option.selected = false;\n }\n });\n }\n\n private focusOption(option: HTMLJeSelectOptionElement) {\n option.classList.add('focus')\n }\n\n private blurOption(option: HTMLJeSelectOptionElement) {\n option.classList.remove('focus')\n }\n\n private hasFocus(option: HTMLJeSelectOptionElement) {\n return option.classList.contains('focus');\n }\n\n @Listen('keydown', { capture: true })\n handleKeyDown(event: KeyboardEvent) {\n if (this.open || (event.key !== 'Tab' && event.key !== 'Enter')) {\n event.preventDefault();\n event.stopPropagation();\n }\n const options = Array.from(this.el.querySelectorAll('je-select-option'));\n if (event.key == 'Enter' && this.open) {\n options.forEach(option => {\n if (this.hasFocus(option)) {\n this.value = option.value;\n }\n });\n this.inputEl.dismissDropdown();\n } else if (event.key == 'Escape') {\n this.inputEl.dismissDropdown()\n } else if ((event.key == 'ArrowDown' || event.key == 'ArrowUp') && !this.open) {\n (this.inputEl.shadowRoot.querySelector(\"[part='outer-container']\") as HTMLElement).click();\n } else if ((event.key == 'ArrowDown' || event.key == 'ArrowUp') && this.open) {\n if (!options.some(t => this.hasFocus(t))) {\n const indexToFocus = options.findIndex(t => t.selected)\n if (indexToFocus > -1) {\n this.focusOption(options[indexToFocus]);\n } else {\n this.focusOption(options[0]);\n }\n } else {\n if (event.key == 'ArrowUp') {\n options.forEach(option => {\n if (this.hasFocus(option)) {\n const prevOption = option.previousElementSibling as HTMLJeSelectOptionElement;\n if (prevOption) {\n this.blurOption(option);\n this.focusOption(prevOption);\n }\n }\n });\n } else {\n const optionToFocus = options.find(t => this.hasFocus(t))?.nextElementSibling;\n if (optionToFocus) {\n this.blurOption(options.find(t => this.hasFocus(t)));\n this.focusOption(optionToFocus as HTMLJeSelectOptionElement);\n }\n }\n }\n } else if (event.key.length == 1) {\n const currentFocusedOption = options.find(t => this.hasFocus(t));\n const optionsWithKey = options.filter(t => t.textContent.toLowerCase().startsWith(event.key.toLowerCase()))\n if (optionsWithKey.length) {\n const currentFocuedIndex = optionsWithKey.findIndex(t => this.hasFocus(t));\n if (currentFocuedIndex > -1) {\n if (currentFocuedIndex < optionsWithKey.length - 1) {\n this.blurOption(optionsWithKey[currentFocuedIndex]);\n this.focusOption(optionsWithKey[currentFocuedIndex + 1]);\n } else {\n this.blurOption(optionsWithKey[currentFocuedIndex]);\n this.focusOption(optionsWithKey[0]);\n }\n } else {\n if (currentFocusedOption) this.blurOption(currentFocusedOption);\n this.focusOption(optionsWithKey[0]);\n }\n if (!this.open) {\n options.forEach(option => {\n if (this.hasFocus(option)) {\n this.value = option.value;\n }\n });\n }\n } else if (currentFocusedOption) {\n this.blurOption(currentFocusedOption);\n }\n }\n }\n\n render() {\n return (\n <Host>\n <je-input ref={el => this.inputEl = el}\n exportparts='outer-container, start-container, end-container, native-input, content'\n dropdown={true}\n label={this.label}\n placeholder={this.placeholder}\n noTyping={true}\n expand={this.expand}\n dismissOnClick={true}\n required={this.required}\n >\n <slot onSlotchange={() => this.handleValueChange()} slot='dropdown' />\n <je-icon slot='end' icon='expand_more' class={{ open: this.open }} />\n </je-input>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeTab extends Components.JeTab, HTMLElement {}
|
|
4
|
+
export const JeTab: {
|
|
5
|
+
prototype: JeTab;
|
|
6
|
+
new (): JeTab;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-41492a72.js';
|
|
2
|
+
|
|
3
|
+
const jeTabCss = ":host{display:block}";
|
|
4
|
+
const JeTabStyle0 = jeTabCss;
|
|
5
|
+
|
|
6
|
+
const JeTab$1 = /*@__PURE__*/ proxyCustomElement(class JeTab extends H {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { key: '8762022920e907b328a6e432e98d5d38054317d9' }, h("slot", { key: '62fcd1082bd27c0dc86d80f417f4659227a78b97' })));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return JeTabStyle0; }
|
|
16
|
+
}, [1, "je-tab"]);
|
|
17
|
+
function defineCustomElement$1() {
|
|
18
|
+
if (typeof customElements === "undefined") {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const components = ["je-tab"];
|
|
22
|
+
components.forEach(tagName => { switch (tagName) {
|
|
23
|
+
case "je-tab":
|
|
24
|
+
if (!customElements.get(tagName)) {
|
|
25
|
+
customElements.define(tagName, JeTab$1);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
} });
|
|
29
|
+
}
|
|
30
|
+
defineCustomElement$1();
|
|
31
|
+
|
|
32
|
+
const JeTab = JeTab$1;
|
|
33
|
+
const defineCustomElement = defineCustomElement$1;
|
|
34
|
+
|
|
35
|
+
export { JeTab, defineCustomElement };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=je-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-tab.js","mappings":";;AAAA,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AACxC,oBAAe,QAAQ;;MCMVA,OAAK;;;;;;IAChB,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":["JeTab"],"sources":["src/components/tabs/je-tab/je-tab.scss?tag=je-tab&encapsulation=shadow","src/components/tabs/je-tab/je-tab.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'je-tab',\n styleUrl: 'je-tab.scss',\n shadow: true,\n})\nexport class JeTab {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeTabs extends Components.JeTabs, HTMLElement {}
|
|
4
|
+
export const JeTabs: {
|
|
5
|
+
prototype: JeTabs;
|
|
6
|
+
new (): JeTabs;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-41492a72.js';
|
|
2
|
+
|
|
3
|
+
const jeTabsCss = ":host{display:block}";
|
|
4
|
+
const JeTabsStyle0 = jeTabsCss;
|
|
5
|
+
|
|
6
|
+
const JeTabs$1 = /*@__PURE__*/ proxyCustomElement(class JeTabs extends H {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { key: 'a3721ce12a8494cc3ee7516a91ef68d003a66028' }, h("slot", { key: 'daa76b66e084b122270d23f64be73d042b50115b' })));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return JeTabsStyle0; }
|
|
16
|
+
}, [1, "je-tabs"]);
|
|
17
|
+
function defineCustomElement$1() {
|
|
18
|
+
if (typeof customElements === "undefined") {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const components = ["je-tabs"];
|
|
22
|
+
components.forEach(tagName => { switch (tagName) {
|
|
23
|
+
case "je-tabs":
|
|
24
|
+
if (!customElements.get(tagName)) {
|
|
25
|
+
customElements.define(tagName, JeTabs$1);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
} });
|
|
29
|
+
}
|
|
30
|
+
defineCustomElement$1();
|
|
31
|
+
|
|
32
|
+
const JeTabs = JeTabs$1;
|
|
33
|
+
const defineCustomElement = defineCustomElement$1;
|
|
34
|
+
|
|
35
|
+
export { JeTabs, defineCustomElement };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=je-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"je-tabs.js","mappings":";;AAAA,MAAM,SAAS,GAAG,sBAAsB,CAAC;AACzC,qBAAe,SAAS;;MCMXA,QAAM;;;;;;IACjB,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":["JeTabs"],"sources":["src/components/tabs/je-tabs/je-tabs.scss?tag=je-tabs&encapsulation=shadow","src/components/tabs/je-tabs/je-tabs.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'je-tabs',\n styleUrl: 'je-tabs.scss',\n shadow: true,\n})\nexport class JeTabs {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JeTextarea extends Components.JeTextarea, HTMLElement {}
|
|
4
|
+
export const JeTextarea: {
|
|
5
|
+
prototype: JeTextarea;
|
|
6
|
+
new (): JeTextarea;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|