@xplortech/apollo-core 1.0.0-beta.8 → 1.0.0-beta.9
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/build/style.css +55 -4
- package/dist/apollo-core/apollo-core.css +5841 -9
- package/dist/apollo-core/apollo-core.esm.js +163 -1
- package/dist/apollo-core/apollo-core.esm.js.map +1 -0
- package/dist/apollo-core/app-globals-0f993ce5.js +5 -0
- package/dist/apollo-core/app-globals-0f993ce5.js.map +1 -0
- package/dist/apollo-core/css-shim-6210ce77.js +6 -0
- package/dist/apollo-core/css-shim-6210ce77.js.map +1 -0
- package/dist/apollo-core/dom-423bdd70.js +75 -0
- package/dist/apollo-core/dom-423bdd70.js.map +1 -0
- package/dist/apollo-core/index-307c7018.js +3397 -0
- package/dist/apollo-core/index-307c7018.js.map +1 -0
- package/dist/apollo-core/index-912d1a21.js +586 -0
- package/dist/apollo-core/index-912d1a21.js.map +1 -0
- package/dist/apollo-core/index.esm.js +3 -0
- package/dist/apollo-core/index.esm.js.map +1 -0
- package/dist/apollo-core/p-08abab41.entry.js +2 -0
- package/dist/apollo-core/p-08abab41.entry.js.map +1 -0
- package/dist/apollo-core/p-16654189.entry.js +2 -0
- package/dist/apollo-core/p-16654189.entry.js.map +1 -0
- package/dist/apollo-core/p-2f90296c.js +3 -3
- package/dist/apollo-core/p-2f90296c.js.map +1 -0
- package/dist/apollo-core/p-315920cd.entry.js +2 -0
- package/dist/apollo-core/p-315920cd.entry.js.map +1 -0
- package/dist/apollo-core/p-3c934536.entry.js +2 -0
- package/dist/apollo-core/p-3c934536.entry.js.map +1 -0
- package/dist/apollo-core/p-47a55fa9.entry.js +2 -0
- package/dist/apollo-core/p-47a55fa9.entry.js.map +1 -0
- package/dist/apollo-core/p-485d0c40.entry.js +2 -0
- package/dist/apollo-core/p-485d0c40.entry.js.map +1 -0
- package/dist/apollo-core/p-5a038a8e.entry.js +2 -0
- package/dist/apollo-core/p-5a038a8e.entry.js.map +1 -0
- package/dist/apollo-core/p-88135928.entry.js +2 -0
- package/dist/apollo-core/p-88135928.entry.js.map +1 -0
- package/dist/apollo-core/p-91d6572c.entry.js +2 -0
- package/dist/apollo-core/p-91d6572c.entry.js.map +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +2 -1
- package/dist/apollo-core/p-ad90fe4d.js.map +1 -0
- package/dist/apollo-core/p-ae99c266.entry.js +2 -0
- package/dist/apollo-core/p-ae99c266.entry.js.map +1 -0
- package/dist/apollo-core/p-aeef61dd.entry.js +2 -0
- package/dist/apollo-core/p-aeef61dd.entry.js.map +1 -0
- package/dist/apollo-core/p-c1b28f32.entry.js +2 -0
- package/dist/apollo-core/p-c1b28f32.entry.js.map +1 -0
- package/dist/apollo-core/p-ce6cb219.entry.js +2 -0
- package/dist/apollo-core/p-ce6cb219.entry.js.map +1 -0
- package/dist/apollo-core/p-cf2e6132.js +3 -0
- package/dist/apollo-core/p-cf2e6132.js.map +1 -0
- package/dist/apollo-core/p-e9cd309e.entry.js +2 -0
- package/dist/apollo-core/p-e9cd309e.entry.js.map +1 -0
- package/dist/apollo-core/p-f5561238.entry.js +2 -0
- package/dist/apollo-core/p-f5561238.entry.js.map +1 -0
- package/dist/apollo-core/p-ff46d20f.entry.js +2 -0
- package/dist/apollo-core/p-ff46d20f.entry.js.map +1 -0
- package/dist/{custom-elements/index.js → apollo-core/regular-133c23b5.js} +13 -4312
- package/dist/apollo-core/regular-133c23b5.js.map +1 -0
- package/dist/apollo-core/shadow-css-f0279020.js +389 -0
- package/dist/apollo-core/shadow-css-f0279020.js.map +1 -0
- package/dist/apollo-core/xpl-application-shell.entry.js +51 -0
- package/dist/apollo-core/xpl-application-shell.entry.js.map +1 -0
- package/dist/apollo-core/xpl-avatar.entry.js +28 -0
- package/dist/apollo-core/xpl-avatar.entry.js.map +1 -0
- package/dist/apollo-core/xpl-backdrop.entry.js +19 -0
- package/dist/apollo-core/xpl-backdrop.entry.js.map +1 -0
- package/dist/apollo-core/xpl-badge.entry.js +21 -0
- package/dist/apollo-core/xpl-badge.entry.js.map +1 -0
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js +19 -0
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js.map +1 -0
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
- package/dist/apollo-core/xpl-breadcrumbs.entry.js.map +1 -0
- package/dist/apollo-core/xpl-button-row.entry.js +23 -0
- package/dist/apollo-core/xpl-button-row.entry.js.map +1 -0
- package/dist/apollo-core/xpl-button.entry.js +60 -0
- package/dist/apollo-core/xpl-button.entry.js.map +1 -0
- package/dist/apollo-core/xpl-checkbox.entry.js +35 -0
- package/dist/apollo-core/xpl-checkbox.entry.js.map +1 -0
- package/dist/apollo-core/xpl-choicelist.entry.js +48 -0
- package/dist/apollo-core/xpl-choicelist.entry.js.map +1 -0
- package/dist/apollo-core/xpl-content-area.entry.js +15 -0
- package/dist/apollo-core/xpl-content-area.entry.js.map +1 -0
- package/dist/apollo-core/xpl-divider.entry.js +17 -0
- package/dist/apollo-core/xpl-divider.entry.js.map +1 -0
- package/dist/apollo-core/xpl-dropdown-group.entry.js +35 -0
- package/dist/apollo-core/xpl-dropdown-group.entry.js.map +1 -0
- package/dist/apollo-core/xpl-dropdown-heading.entry.js +15 -0
- package/dist/apollo-core/xpl-dropdown-heading.entry.js.map +1 -0
- package/dist/apollo-core/xpl-dropdown-option.entry.js +70 -0
- package/dist/apollo-core/xpl-dropdown-option.entry.js.map +1 -0
- package/dist/apollo-core/xpl-dropdown.entry.js +106 -0
- package/dist/apollo-core/xpl-dropdown.entry.js.map +1 -0
- package/dist/apollo-core/xpl-grid-item.entry.js +23 -0
- package/dist/apollo-core/xpl-grid-item.entry.js.map +1 -0
- package/dist/apollo-core/xpl-grid.entry.js +33 -0
- package/dist/apollo-core/xpl-grid.entry.js.map +1 -0
- package/dist/apollo-core/xpl-input.entry.js +2553 -0
- package/dist/apollo-core/xpl-input.entry.js.map +1 -0
- package/dist/apollo-core/xpl-list.entry.js +37 -0
- package/dist/apollo-core/xpl-list.entry.js.map +1 -0
- package/dist/apollo-core/xpl-main-nav.entry.js +25 -0
- package/dist/apollo-core/xpl-main-nav.entry.js.map +1 -0
- package/dist/apollo-core/xpl-nav-item.entry.js +25 -0
- package/dist/apollo-core/xpl-nav-item.entry.js.map +1 -0
- package/dist/apollo-core/xpl-pagination.entry.js +77 -0
- package/dist/apollo-core/xpl-pagination.entry.js.map +1 -0
- package/dist/apollo-core/xpl-radio.entry.js +34 -0
- package/dist/apollo-core/xpl-radio.entry.js.map +1 -0
- package/dist/apollo-core/xpl-secondary-nav.entry.js +14 -0
- package/dist/apollo-core/xpl-secondary-nav.entry.js.map +1 -0
- package/dist/apollo-core/xpl-select.entry.js +680 -0
- package/dist/apollo-core/xpl-select.entry.js.map +1 -0
- package/dist/apollo-core/xpl-table.entry.js +109 -0
- package/dist/apollo-core/xpl-table.entry.js.map +1 -0
- package/dist/apollo-core/xpl-tag.entry.js +19 -0
- package/dist/apollo-core/xpl-tag.entry.js.map +1 -0
- package/dist/apollo-core/xpl-toggle.entry.js +35 -0
- package/dist/apollo-core/xpl-toggle.entry.js.map +1 -0
- package/dist/apollo-core/xpl-utility-bar.entry.js +31 -0
- package/dist/apollo-core/xpl-utility-bar.entry.js.map +1 -0
- package/dist/cjs/apollo-core.cjs.js +150 -5
- package/dist/cjs/apollo-core.cjs.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/css-shim-0a6fd78d.js +8 -0
- package/dist/cjs/css-shim-0a6fd78d.js.map +1 -0
- package/dist/cjs/dom-2c6adc90.js +77 -0
- package/dist/cjs/dom-2c6adc90.js.map +1 -0
- package/dist/cjs/index-0fdb260e.js +3564 -0
- package/dist/cjs/index-0fdb260e.js.map +1 -0
- package/dist/cjs/index-318d5fc7.js +588 -0
- package/dist/cjs/index-318d5fc7.js.map +1 -0
- package/dist/cjs/{index-2ab4832e.js → index-e53b018b.js} +85 -2
- package/dist/cjs/index-e53b018b.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +23 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/regular-503465f4.js +16056 -0
- package/dist/cjs/regular-503465f4.js.map +1 -0
- package/dist/cjs/regular-872f5226.js +2 -0
- package/dist/cjs/regular-872f5226.js.map +1 -0
- package/dist/cjs/shadow-css-39dfcfae.js +391 -0
- package/dist/cjs/shadow-css-39dfcfae.js.map +1 -0
- package/dist/cjs/v4-14140ff3.js +2 -0
- package/dist/cjs/v4-14140ff3.js.map +1 -0
- package/dist/cjs/xpl-application-shell.cjs.entry.js +3 -1
- package/dist/cjs/xpl-application-shell.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-avatar.cjs.entry.js +32 -0
- package/dist/cjs/xpl-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +3 -1
- package/dist/cjs/xpl-avatar_12.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +3 -1
- package/dist/cjs/xpl-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +25 -0
- package/dist/cjs/xpl-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +23 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +18 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +3 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-button.cjs.entry.js +64 -0
- package/dist/cjs/xpl-button.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-checkbox.cjs.entry.js +39 -0
- package/dist/cjs/xpl-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +3 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js +19 -0
- package/dist/cjs/xpl-content-area.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-divider.cjs.entry.js +3 -1
- package/dist/cjs/xpl-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown-group.cjs.entry.js +39 -0
- package/dist/cjs/xpl-dropdown-group.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +6 -3
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +19 -0
- package/dist/cjs/xpl-dropdown-heading.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown-option.cjs.entry.js +74 -0
- package/dist/cjs/xpl-dropdown-option.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown.cjs.entry.js +110 -0
- package/dist/cjs/xpl-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +6 -2
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-grid-item.cjs.entry.js +3 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-grid.cjs.entry.js +3 -1
- package/dist/cjs/xpl-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-input.cjs.entry.js +509 -600
- package/dist/cjs/xpl-input.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-list.cjs.entry.js +4 -2
- package/dist/cjs/xpl-list.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +3 -1
- package/dist/cjs/xpl-main-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js +29 -0
- package/dist/cjs/xpl-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +3 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-radio.cjs.entry.js +38 -0
- package/dist/cjs/xpl-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +18 -0
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-select.cjs.entry.js +80 -6
- package/dist/cjs/xpl-select.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-table.cjs.entry.js +113 -0
- package/dist/cjs/xpl-table.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-tag.cjs.entry.js +23 -0
- package/dist/cjs/xpl-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +5 -3
- package/dist/cjs/xpl-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +35 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +1 -0
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +1 -0
- package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +1 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +1 -0
- package/dist/collection/components/xpl-badge/xpl-badge.js +1 -0
- package/dist/collection/components/xpl-badge/xpl-badge.js.map +1 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +1 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +1 -0
- package/dist/collection/components/xpl-button/xpl-button.js +1 -0
- package/dist/collection/components/xpl-button/xpl-button.js.map +1 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +1 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +1 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +1 -0
- package/dist/collection/components/xpl-choicelist/choice.js +1 -0
- package/dist/collection/components/xpl-choicelist/choice.js.map +1 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +1 -0
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -0
- package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +1 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js.map +1 -0
- package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
- package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +23 -4
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +8 -11
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +1 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js.map +1 -0
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -0
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +1 -0
- package/dist/collection/components/xpl-input/xpl-input.js +1 -0
- package/dist/collection/components/xpl-input/xpl-input.js.map +1 -0
- package/dist/collection/components/xpl-list/listitem.js +1 -0
- package/dist/collection/components/xpl-list/listitem.js.map +1 -0
- package/dist/collection/components/xpl-list/xpl-list.js +1 -0
- package/dist/collection/components/xpl-list/xpl-list.js.map +1 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +1 -0
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +1 -0
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +1 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +1 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +1 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +1 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js.map +1 -0
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -0
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +1 -0
- package/dist/collection/components/xpl-select/xpl-select.js +95 -9
- package/dist/collection/components/xpl-select/xpl-select.js.map +1 -0
- package/dist/collection/components/xpl-table/xpl-table.js +1 -0
- package/dist/collection/components/xpl-table/xpl-table.js.map +1 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +1 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js.map +1 -0
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +1 -0
- package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +1 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +1 -0
- package/dist/components/index.d.ts +39 -0
- package/dist/components/index.js +81 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +586 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/regular.js +16054 -0
- package/dist/components/regular.js.map +1 -0
- package/dist/components/v4.js +77 -0
- package/dist/components/v4.js.map +1 -0
- package/dist/components/xpl-application-shell.d.ts +11 -0
- package/dist/components/xpl-application-shell.js +80 -0
- package/dist/components/xpl-application-shell.js.map +1 -0
- package/dist/components/xpl-avatar.d.ts +11 -0
- package/dist/components/xpl-avatar.js +8 -0
- package/dist/components/xpl-avatar.js.map +1 -0
- package/dist/components/xpl-avatar2.js +51 -0
- package/dist/components/xpl-avatar2.js.map +1 -0
- package/dist/components/xpl-backdrop.d.ts +11 -0
- package/dist/components/xpl-backdrop.js +8 -0
- package/dist/components/xpl-backdrop.js.map +1 -0
- package/dist/components/xpl-backdrop2.js +35 -0
- package/dist/components/xpl-backdrop2.js.map +1 -0
- package/dist/components/xpl-badge.d.ts +11 -0
- package/dist/components/xpl-badge.js +8 -0
- package/dist/components/xpl-badge.js.map +1 -0
- package/dist/components/xpl-badge2.js +38 -0
- package/dist/components/xpl-badge2.js.map +1 -0
- package/dist/components/xpl-breadcrumb-item.d.ts +11 -0
- package/dist/components/xpl-breadcrumb-item.js +36 -0
- package/dist/components/xpl-breadcrumb-item.js.map +1 -0
- package/dist/components/xpl-breadcrumbs.d.ts +11 -0
- package/dist/components/xpl-breadcrumbs.js +31 -0
- package/dist/components/xpl-breadcrumbs.js.map +1 -0
- package/dist/components/xpl-button-row.d.ts +11 -0
- package/dist/components/xpl-button-row.js +50 -0
- package/dist/components/xpl-button-row.js.map +1 -0
- package/dist/components/xpl-button.d.ts +11 -0
- package/dist/components/xpl-button.js +8 -0
- package/dist/components/xpl-button.js.map +1 -0
- package/dist/components/xpl-button2.js +85 -0
- package/dist/components/xpl-button2.js.map +1 -0
- package/dist/components/xpl-checkbox.d.ts +11 -0
- package/dist/components/xpl-checkbox.js +8 -0
- package/dist/components/xpl-checkbox.js.map +1 -0
- package/dist/components/xpl-checkbox2.js +59 -0
- package/dist/components/xpl-checkbox2.js.map +1 -0
- package/dist/components/xpl-choicelist.d.ts +11 -0
- package/dist/components/xpl-choicelist.js +85 -0
- package/dist/components/xpl-choicelist.js.map +1 -0
- package/dist/components/xpl-content-area.d.ts +11 -0
- package/dist/components/xpl-content-area.js +34 -0
- package/dist/components/xpl-content-area.js.map +1 -0
- package/dist/components/xpl-divider.d.ts +11 -0
- package/dist/components/xpl-divider.js +36 -0
- package/dist/components/xpl-divider.js.map +1 -0
- package/dist/components/xpl-dropdown-group.d.ts +11 -0
- package/dist/components/xpl-dropdown-group.js +8 -0
- package/dist/components/xpl-dropdown-group.js.map +1 -0
- package/dist/components/xpl-dropdown-group2.js +69 -0
- package/dist/components/xpl-dropdown-group2.js.map +1 -0
- package/dist/components/xpl-dropdown-heading.d.ts +11 -0
- package/dist/components/xpl-dropdown-heading.js +8 -0
- package/dist/components/xpl-dropdown-heading.js.map +1 -0
- package/dist/components/xpl-dropdown-heading2.js +31 -0
- package/dist/components/xpl-dropdown-heading2.js.map +1 -0
- package/dist/components/xpl-dropdown-option.d.ts +11 -0
- package/dist/components/xpl-dropdown-option.js +8 -0
- package/dist/components/xpl-dropdown-option.js.map +1 -0
- package/dist/components/xpl-dropdown-option2.js +89 -0
- package/dist/components/xpl-dropdown-option2.js.map +1 -0
- package/dist/components/xpl-dropdown.d.ts +11 -0
- package/dist/components/xpl-dropdown.js +8 -0
- package/dist/components/xpl-dropdown.js.map +1 -0
- package/dist/components/xpl-dropdown2.js +147 -0
- package/dist/components/xpl-dropdown2.js.map +1 -0
- package/dist/components/xpl-grid-item.d.ts +11 -0
- package/dist/components/xpl-grid-item.js +45 -0
- package/dist/components/xpl-grid-item.js.map +1 -0
- package/dist/components/xpl-grid.d.ts +11 -0
- package/dist/components/xpl-grid.js +50 -0
- package/dist/components/xpl-grid.js.map +1 -0
- package/dist/components/xpl-input.d.ts +11 -0
- package/dist/components/xpl-input.js +2594 -0
- package/dist/components/xpl-input.js.map +1 -0
- package/dist/components/xpl-list.d.ts +11 -0
- package/dist/components/xpl-list.js +68 -0
- package/dist/components/xpl-list.js.map +1 -0
- package/dist/components/xpl-main-nav.d.ts +11 -0
- package/dist/components/xpl-main-nav.js +44 -0
- package/dist/components/xpl-main-nav.js.map +1 -0
- package/dist/components/xpl-nav-item.d.ts +11 -0
- package/dist/components/xpl-nav-item.js +44 -0
- package/dist/components/xpl-nav-item.js.map +1 -0
- package/dist/components/xpl-pagination.d.ts +11 -0
- package/dist/components/xpl-pagination.js +100 -0
- package/dist/components/xpl-pagination.js.map +1 -0
- package/dist/components/xpl-radio.d.ts +11 -0
- package/dist/components/xpl-radio.js +8 -0
- package/dist/components/xpl-radio.js.map +1 -0
- package/dist/components/xpl-radio2.js +57 -0
- package/dist/components/xpl-radio2.js.map +1 -0
- package/dist/components/xpl-secondary-nav.d.ts +11 -0
- package/dist/components/xpl-secondary-nav.js +31 -0
- package/dist/components/xpl-secondary-nav.js.map +1 -0
- package/dist/components/xpl-select.d.ts +11 -0
- package/dist/components/xpl-select.js +745 -0
- package/dist/components/xpl-select.js.map +1 -0
- package/dist/components/xpl-table.d.ts +11 -0
- package/dist/components/xpl-table.js +136 -0
- package/dist/components/xpl-table.js.map +1 -0
- package/dist/components/xpl-tag.d.ts +11 -0
- package/dist/components/xpl-tag.js +8 -0
- package/dist/components/xpl-tag.js.map +1 -0
- package/dist/components/xpl-tag2.js +33 -0
- package/dist/components/xpl-tag2.js.map +1 -0
- package/dist/components/xpl-toggle.d.ts +11 -0
- package/dist/components/xpl-toggle.js +61 -0
- package/dist/components/xpl-toggle.js.map +1 -0
- package/dist/components/xpl-utility-bar.d.ts +11 -0
- package/dist/components/xpl-utility-bar.js +52 -0
- package/dist/components/xpl-utility-bar.js.map +1 -0
- package/dist/esm/apollo-core.js +151 -6
- package/dist/esm/apollo-core.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/css-shim-6210ce77.js +6 -0
- package/dist/esm/css-shim-6210ce77.js.map +1 -0
- package/dist/esm/dom-423bdd70.js +75 -0
- package/dist/esm/dom-423bdd70.js.map +1 -0
- package/dist/esm/index-307c7018.js +3526 -0
- package/dist/esm/index-307c7018.js.map +1 -0
- package/dist/esm/index-912d1a21.js +586 -0
- package/dist/esm/index-912d1a21.js.map +1 -0
- package/dist/esm/{index-392b5b96.js → index-df9b48b4.js} +85 -2
- package/dist/esm/index-df9b48b4.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +24 -4
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/regular-133c23b5.js +16054 -0
- package/dist/esm/regular-133c23b5.js.map +1 -0
- package/dist/esm/regular-86225e9d.js +2 -0
- package/dist/esm/regular-86225e9d.js.map +1 -0
- package/dist/esm/shadow-css-f0279020.js +389 -0
- package/dist/esm/shadow-css-f0279020.js.map +1 -0
- package/dist/esm/v4-929670b7.js +2 -0
- package/dist/esm/v4-929670b7.js.map +1 -0
- package/dist/esm/xpl-application-shell.entry.js +3 -1
- package/dist/esm/xpl-application-shell.entry.js.map +1 -0
- package/dist/esm/xpl-avatar.entry.js +28 -0
- package/dist/esm/xpl-avatar.entry.js.map +1 -0
- package/dist/esm/xpl-avatar_12.entry.js +3 -1
- package/dist/esm/xpl-avatar_12.entry.js.map +1 -0
- package/dist/esm/xpl-backdrop.entry.js +3 -1
- package/dist/esm/xpl-backdrop.entry.js.map +1 -0
- package/dist/esm/xpl-badge.entry.js +21 -0
- package/dist/esm/xpl-badge.entry.js.map +1 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +19 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +14 -0
- package/dist/esm/xpl-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/xpl-button-row.entry.js +3 -1
- package/dist/esm/xpl-button-row.entry.js.map +1 -0
- package/dist/esm/xpl-button.entry.js +60 -0
- package/dist/esm/xpl-button.entry.js.map +1 -0
- package/dist/esm/xpl-checkbox.entry.js +35 -0
- package/dist/esm/xpl-checkbox.entry.js.map +1 -0
- package/dist/esm/xpl-choicelist.entry.js +3 -1
- package/dist/esm/xpl-choicelist.entry.js.map +1 -0
- package/dist/esm/xpl-content-area.entry.js +15 -0
- package/dist/esm/xpl-content-area.entry.js.map +1 -0
- package/dist/esm/xpl-divider.entry.js +3 -1
- package/dist/esm/xpl-divider.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown-group.entry.js +35 -0
- package/dist/esm/xpl-dropdown-group.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown-group_3.entry.js +6 -3
- package/dist/esm/xpl-dropdown-group_3.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown-heading.entry.js +15 -0
- package/dist/esm/xpl-dropdown-heading.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown-option.entry.js +70 -0
- package/dist/esm/xpl-dropdown-option.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown.entry.js +106 -0
- package/dist/esm/xpl-dropdown.entry.js.map +1 -0
- package/dist/esm/xpl-dropdown_2.entry.js +6 -2
- package/dist/esm/xpl-dropdown_2.entry.js.map +1 -0
- package/dist/esm/xpl-grid-item.entry.js +3 -1
- package/dist/esm/xpl-grid-item.entry.js.map +1 -0
- package/dist/esm/xpl-grid.entry.js +3 -1
- package/dist/esm/xpl-grid.entry.js.map +1 -0
- package/dist/esm/xpl-input.entry.js +508 -599
- package/dist/esm/xpl-input.entry.js.map +1 -0
- package/dist/esm/xpl-list.entry.js +4 -2
- package/dist/esm/xpl-list.entry.js.map +1 -0
- package/dist/esm/xpl-main-nav.entry.js +3 -1
- package/dist/esm/xpl-main-nav.entry.js.map +1 -0
- package/dist/esm/xpl-nav-item.entry.js +25 -0
- package/dist/esm/xpl-nav-item.entry.js.map +1 -0
- package/dist/esm/xpl-pagination.entry.js +3 -1
- package/dist/esm/xpl-pagination.entry.js.map +1 -0
- package/dist/esm/xpl-radio.entry.js +34 -0
- package/dist/esm/xpl-radio.entry.js.map +1 -0
- package/dist/esm/xpl-secondary-nav.entry.js +14 -0
- package/dist/esm/xpl-secondary-nav.entry.js.map +1 -0
- package/dist/esm/xpl-select.entry.js +79 -5
- package/dist/esm/xpl-select.entry.js.map +1 -0
- package/dist/esm/xpl-table.entry.js +109 -0
- package/dist/esm/xpl-table.entry.js.map +1 -0
- package/dist/esm/xpl-tag.entry.js +19 -0
- package/dist/esm/xpl-tag.entry.js.map +1 -0
- package/dist/esm/xpl-toggle.entry.js +4 -2
- package/dist/esm/xpl-toggle.entry.js.map +1 -0
- package/dist/esm/xpl-utility-bar.entry.js +31 -0
- package/dist/esm/xpl-utility-bar.entry.js.map +1 -0
- package/dist/stories/application-shell.stories.js +1 -0
- package/dist/stories/application-shell.stories.js.map +1 -0
- package/dist/stories/avatar.stories.js +1 -0
- package/dist/stories/avatar.stories.js.map +1 -0
- package/dist/stories/backdrop.stories.js +1 -0
- package/dist/stories/backdrop.stories.js.map +1 -0
- package/dist/stories/badge.stories.js +1 -0
- package/dist/stories/badge.stories.js.map +1 -0
- package/dist/stories/breadcrumbs.stories.js +1 -0
- package/dist/stories/breadcrumbs.stories.js.map +1 -0
- package/dist/stories/button-row.stories.js +1 -0
- package/dist/stories/button-row.stories.js.map +1 -0
- package/dist/stories/button.stories.js +1 -0
- package/dist/stories/button.stories.js.map +1 -0
- package/dist/stories/checkbox.stories.js +1 -0
- package/dist/stories/checkbox.stories.js.map +1 -0
- package/dist/stories/choicelist.stories.js +1 -0
- package/dist/stories/choicelist.stories.js.map +1 -0
- package/dist/stories/content-area.stories.js +1 -0
- package/dist/stories/content-area.stories.js.map +1 -0
- package/dist/stories/divider.stories.js +1 -0
- package/dist/stories/divider.stories.js.map +1 -0
- package/dist/stories/dropdown.stories.js +74 -65
- package/dist/stories/dropdown.stories.js.map +1 -0
- package/dist/stories/grid.stories.js +1 -0
- package/dist/stories/grid.stories.js.map +1 -0
- package/dist/stories/input.stories.js +1 -0
- package/dist/stories/input.stories.js.map +1 -0
- package/dist/stories/list.stories.js +1 -0
- package/dist/stories/list.stories.js.map +1 -0
- package/dist/stories/main-nav.stories.js +1 -0
- package/dist/stories/main-nav.stories.js.map +1 -0
- package/dist/stories/pagination.stories.js +1 -0
- package/dist/stories/pagination.stories.js.map +1 -0
- package/dist/stories/radio.stories.js +1 -0
- package/dist/stories/radio.stories.js.map +1 -0
- package/dist/stories/secondary-nav.stories.js +1 -0
- package/dist/stories/secondary-nav.stories.js.map +1 -0
- package/dist/stories/select.stories.js +109 -32
- package/dist/stories/select.stories.js.map +1 -0
- package/dist/stories/table.stories.js +1 -0
- package/dist/stories/table.stories.js.map +1 -0
- package/dist/stories/tabs.stories.js +1 -0
- package/dist/stories/tabs.stories.js.map +1 -0
- package/dist/stories/toggle.stories.js +1 -0
- package/dist/stories/toggle.stories.js.map +1 -0
- package/dist/stories/utility-bar.stories.js +1 -0
- package/dist/stories/utility-bar.stories.js.map +1 -0
- package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/dropdown.stories.d.ts +17 -1
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +134 -0
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +7 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +2 -2
- package/dist/types/components/xpl-select/xpl-select.d.ts +16 -2
- package/dist/types/components.d.ts +41 -12
- package/dist/types/stencil-public-runtime.d.ts +12 -12
- package/package.json +7 -6
- package/CHANGELOG.md +0 -106
- package/dist/apollo-core/p-10f00380.entry.js +0 -1
- package/dist/apollo-core/p-26ec64fe.entry.js +0 -1
- package/dist/apollo-core/p-31acfdb4.entry.js +0 -1
- package/dist/apollo-core/p-4184ac44.entry.js +0 -1
- package/dist/apollo-core/p-4fa14839.entry.js +0 -1
- package/dist/apollo-core/p-55b87345.js +0 -2
- package/dist/apollo-core/p-63a6c98a.entry.js +0 -1
- package/dist/apollo-core/p-68c33b77.entry.js +0 -1
- package/dist/apollo-core/p-78d07caf.entry.js +0 -1
- package/dist/apollo-core/p-796957d3.entry.js +0 -1
- package/dist/apollo-core/p-88160d68.entry.js +0 -1
- package/dist/apollo-core/p-9ec318bb.entry.js +0 -1
- package/dist/apollo-core/p-a2a34e44.entry.js +0 -1
- package/dist/apollo-core/p-beea2502.entry.js +0 -1
- package/dist/apollo-core/p-d499e43f.entry.js +0 -1
- package/dist/apollo-core/p-d8a3d94c.entry.js +0 -1
- package/dist/apollo-core/p-e047b446.entry.js +0 -1
- package/dist/collection/components/xpl-select/selectchoice.js +0 -1
- package/dist/custom-elements/index.d.ts +0 -219
- package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/select.stories.d.ts +0 -74
- package/dist/types/components/xpl-select/selectchoice.d.ts +0 -4
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Xplor → roc/Sites}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as v4 } from './index2.js';
|
|
3
|
+
import { d as defineCustomElement$6 } from './xpl-dropdown2.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './xpl-dropdown-group2.js';
|
|
5
|
+
import { d as defineCustomElement$4 } from './xpl-dropdown-heading2.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './xpl-dropdown-option2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './xpl-tag2.js';
|
|
8
|
+
|
|
9
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
|
+
|
|
11
|
+
function getDefaultExportFromCjs (x) {
|
|
12
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
16
|
+
return module = {
|
|
17
|
+
path: basedir,
|
|
18
|
+
exports: {},
|
|
19
|
+
require: function (path, base) {
|
|
20
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
21
|
+
}
|
|
22
|
+
}, fn(module, module.exports), module.exports;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
26
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
30
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function getAugmentedNamespace(n) {
|
|
34
|
+
if (n.__esModule) return n;
|
|
35
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
36
|
+
Object.keys(n).forEach(function (k) {
|
|
37
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
38
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return n[k];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
return a;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function commonjsRequire () {
|
|
49
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
54
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
55
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
56
|
+
* Released under MIT license <https://lodash.com/license>
|
|
57
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
58
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
62
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
63
|
+
|
|
64
|
+
/** Used as references for various `Number` constants. */
|
|
65
|
+
var NAN = 0 / 0;
|
|
66
|
+
|
|
67
|
+
/** `Object#toString` result references. */
|
|
68
|
+
var symbolTag = '[object Symbol]';
|
|
69
|
+
|
|
70
|
+
/** Used to match leading and trailing whitespace. */
|
|
71
|
+
var reTrim = /^\s+|\s+$/g;
|
|
72
|
+
|
|
73
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
74
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
75
|
+
|
|
76
|
+
/** Used to detect binary string values. */
|
|
77
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
78
|
+
|
|
79
|
+
/** Used to detect octal string values. */
|
|
80
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
81
|
+
|
|
82
|
+
/** Built-in method references without a dependency on `root`. */
|
|
83
|
+
var freeParseInt = parseInt;
|
|
84
|
+
|
|
85
|
+
/** Detect free variable `global` from Node.js. */
|
|
86
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
87
|
+
|
|
88
|
+
/** Detect free variable `self`. */
|
|
89
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
90
|
+
|
|
91
|
+
/** Used as a reference to the global object. */
|
|
92
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
93
|
+
|
|
94
|
+
/** Used for built-in method references. */
|
|
95
|
+
var objectProto = Object.prototype;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Used to resolve the
|
|
99
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
100
|
+
* of values.
|
|
101
|
+
*/
|
|
102
|
+
var objectToString = objectProto.toString;
|
|
103
|
+
|
|
104
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
105
|
+
var nativeMax = Math.max,
|
|
106
|
+
nativeMin = Math.min;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
110
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
111
|
+
*
|
|
112
|
+
* @static
|
|
113
|
+
* @memberOf _
|
|
114
|
+
* @since 2.4.0
|
|
115
|
+
* @category Date
|
|
116
|
+
* @returns {number} Returns the timestamp.
|
|
117
|
+
* @example
|
|
118
|
+
*
|
|
119
|
+
* _.defer(function(stamp) {
|
|
120
|
+
* console.log(_.now() - stamp);
|
|
121
|
+
* }, _.now());
|
|
122
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
123
|
+
*/
|
|
124
|
+
var now = function() {
|
|
125
|
+
return root.Date.now();
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
130
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
131
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
132
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
133
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
134
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
135
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
136
|
+
* calls to the debounced function return the result of the last `func`
|
|
137
|
+
* invocation.
|
|
138
|
+
*
|
|
139
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
140
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
141
|
+
* is invoked more than once during the `wait` timeout.
|
|
142
|
+
*
|
|
143
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
144
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
145
|
+
*
|
|
146
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
147
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
148
|
+
*
|
|
149
|
+
* @static
|
|
150
|
+
* @memberOf _
|
|
151
|
+
* @since 0.1.0
|
|
152
|
+
* @category Function
|
|
153
|
+
* @param {Function} func The function to debounce.
|
|
154
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
155
|
+
* @param {Object} [options={}] The options object.
|
|
156
|
+
* @param {boolean} [options.leading=false]
|
|
157
|
+
* Specify invoking on the leading edge of the timeout.
|
|
158
|
+
* @param {number} [options.maxWait]
|
|
159
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
160
|
+
* @param {boolean} [options.trailing=true]
|
|
161
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
162
|
+
* @returns {Function} Returns the new debounced function.
|
|
163
|
+
* @example
|
|
164
|
+
*
|
|
165
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
166
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
167
|
+
*
|
|
168
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
169
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
170
|
+
* 'leading': true,
|
|
171
|
+
* 'trailing': false
|
|
172
|
+
* }));
|
|
173
|
+
*
|
|
174
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
175
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
176
|
+
* var source = new EventSource('/stream');
|
|
177
|
+
* jQuery(source).on('message', debounced);
|
|
178
|
+
*
|
|
179
|
+
* // Cancel the trailing debounced invocation.
|
|
180
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
181
|
+
*/
|
|
182
|
+
function debounce(func, wait, options) {
|
|
183
|
+
var lastArgs,
|
|
184
|
+
lastThis,
|
|
185
|
+
maxWait,
|
|
186
|
+
result,
|
|
187
|
+
timerId,
|
|
188
|
+
lastCallTime,
|
|
189
|
+
lastInvokeTime = 0,
|
|
190
|
+
leading = false,
|
|
191
|
+
maxing = false,
|
|
192
|
+
trailing = true;
|
|
193
|
+
|
|
194
|
+
if (typeof func != 'function') {
|
|
195
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
196
|
+
}
|
|
197
|
+
wait = toNumber(wait) || 0;
|
|
198
|
+
if (isObject(options)) {
|
|
199
|
+
leading = !!options.leading;
|
|
200
|
+
maxing = 'maxWait' in options;
|
|
201
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
202
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function invokeFunc(time) {
|
|
206
|
+
var args = lastArgs,
|
|
207
|
+
thisArg = lastThis;
|
|
208
|
+
|
|
209
|
+
lastArgs = lastThis = undefined;
|
|
210
|
+
lastInvokeTime = time;
|
|
211
|
+
result = func.apply(thisArg, args);
|
|
212
|
+
return result;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function leadingEdge(time) {
|
|
216
|
+
// Reset any `maxWait` timer.
|
|
217
|
+
lastInvokeTime = time;
|
|
218
|
+
// Start the timer for the trailing edge.
|
|
219
|
+
timerId = setTimeout(timerExpired, wait);
|
|
220
|
+
// Invoke the leading edge.
|
|
221
|
+
return leading ? invokeFunc(time) : result;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function remainingWait(time) {
|
|
225
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
226
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
227
|
+
result = wait - timeSinceLastCall;
|
|
228
|
+
|
|
229
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function shouldInvoke(time) {
|
|
233
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
234
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
235
|
+
|
|
236
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
237
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
238
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
239
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
240
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
function timerExpired() {
|
|
244
|
+
var time = now();
|
|
245
|
+
if (shouldInvoke(time)) {
|
|
246
|
+
return trailingEdge(time);
|
|
247
|
+
}
|
|
248
|
+
// Restart the timer.
|
|
249
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function trailingEdge(time) {
|
|
253
|
+
timerId = undefined;
|
|
254
|
+
|
|
255
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
256
|
+
// debounced at least once.
|
|
257
|
+
if (trailing && lastArgs) {
|
|
258
|
+
return invokeFunc(time);
|
|
259
|
+
}
|
|
260
|
+
lastArgs = lastThis = undefined;
|
|
261
|
+
return result;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function cancel() {
|
|
265
|
+
if (timerId !== undefined) {
|
|
266
|
+
clearTimeout(timerId);
|
|
267
|
+
}
|
|
268
|
+
lastInvokeTime = 0;
|
|
269
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function flush() {
|
|
273
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function debounced() {
|
|
277
|
+
var time = now(),
|
|
278
|
+
isInvoking = shouldInvoke(time);
|
|
279
|
+
|
|
280
|
+
lastArgs = arguments;
|
|
281
|
+
lastThis = this;
|
|
282
|
+
lastCallTime = time;
|
|
283
|
+
|
|
284
|
+
if (isInvoking) {
|
|
285
|
+
if (timerId === undefined) {
|
|
286
|
+
return leadingEdge(lastCallTime);
|
|
287
|
+
}
|
|
288
|
+
if (maxing) {
|
|
289
|
+
// Handle invocations in a tight loop.
|
|
290
|
+
timerId = setTimeout(timerExpired, wait);
|
|
291
|
+
return invokeFunc(lastCallTime);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (timerId === undefined) {
|
|
295
|
+
timerId = setTimeout(timerExpired, wait);
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
debounced.cancel = cancel;
|
|
300
|
+
debounced.flush = flush;
|
|
301
|
+
return debounced;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Creates a throttled function that only invokes `func` at most once per
|
|
306
|
+
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
307
|
+
* method to cancel delayed `func` invocations and a `flush` method to
|
|
308
|
+
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
309
|
+
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
310
|
+
* timeout. The `func` is invoked with the last arguments provided to the
|
|
311
|
+
* throttled function. Subsequent calls to the throttled function return the
|
|
312
|
+
* result of the last `func` invocation.
|
|
313
|
+
*
|
|
314
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
315
|
+
* invoked on the trailing edge of the timeout only if the throttled function
|
|
316
|
+
* is invoked more than once during the `wait` timeout.
|
|
317
|
+
*
|
|
318
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
319
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
320
|
+
*
|
|
321
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
322
|
+
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
323
|
+
*
|
|
324
|
+
* @static
|
|
325
|
+
* @memberOf _
|
|
326
|
+
* @since 0.1.0
|
|
327
|
+
* @category Function
|
|
328
|
+
* @param {Function} func The function to throttle.
|
|
329
|
+
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
330
|
+
* @param {Object} [options={}] The options object.
|
|
331
|
+
* @param {boolean} [options.leading=true]
|
|
332
|
+
* Specify invoking on the leading edge of the timeout.
|
|
333
|
+
* @param {boolean} [options.trailing=true]
|
|
334
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
335
|
+
* @returns {Function} Returns the new throttled function.
|
|
336
|
+
* @example
|
|
337
|
+
*
|
|
338
|
+
* // Avoid excessively updating the position while scrolling.
|
|
339
|
+
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
340
|
+
*
|
|
341
|
+
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
342
|
+
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
343
|
+
* jQuery(element).on('click', throttled);
|
|
344
|
+
*
|
|
345
|
+
* // Cancel the trailing throttled invocation.
|
|
346
|
+
* jQuery(window).on('popstate', throttled.cancel);
|
|
347
|
+
*/
|
|
348
|
+
function throttle(func, wait, options) {
|
|
349
|
+
var leading = true,
|
|
350
|
+
trailing = true;
|
|
351
|
+
|
|
352
|
+
if (typeof func != 'function') {
|
|
353
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
354
|
+
}
|
|
355
|
+
if (isObject(options)) {
|
|
356
|
+
leading = 'leading' in options ? !!options.leading : leading;
|
|
357
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
358
|
+
}
|
|
359
|
+
return debounce(func, wait, {
|
|
360
|
+
'leading': leading,
|
|
361
|
+
'maxWait': wait,
|
|
362
|
+
'trailing': trailing
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Checks if `value` is the
|
|
368
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
369
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
370
|
+
*
|
|
371
|
+
* @static
|
|
372
|
+
* @memberOf _
|
|
373
|
+
* @since 0.1.0
|
|
374
|
+
* @category Lang
|
|
375
|
+
* @param {*} value The value to check.
|
|
376
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
377
|
+
* @example
|
|
378
|
+
*
|
|
379
|
+
* _.isObject({});
|
|
380
|
+
* // => true
|
|
381
|
+
*
|
|
382
|
+
* _.isObject([1, 2, 3]);
|
|
383
|
+
* // => true
|
|
384
|
+
*
|
|
385
|
+
* _.isObject(_.noop);
|
|
386
|
+
* // => true
|
|
387
|
+
*
|
|
388
|
+
* _.isObject(null);
|
|
389
|
+
* // => false
|
|
390
|
+
*/
|
|
391
|
+
function isObject(value) {
|
|
392
|
+
var type = typeof value;
|
|
393
|
+
return !!value && (type == 'object' || type == 'function');
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
398
|
+
* and has a `typeof` result of "object".
|
|
399
|
+
*
|
|
400
|
+
* @static
|
|
401
|
+
* @memberOf _
|
|
402
|
+
* @since 4.0.0
|
|
403
|
+
* @category Lang
|
|
404
|
+
* @param {*} value The value to check.
|
|
405
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
406
|
+
* @example
|
|
407
|
+
*
|
|
408
|
+
* _.isObjectLike({});
|
|
409
|
+
* // => true
|
|
410
|
+
*
|
|
411
|
+
* _.isObjectLike([1, 2, 3]);
|
|
412
|
+
* // => true
|
|
413
|
+
*
|
|
414
|
+
* _.isObjectLike(_.noop);
|
|
415
|
+
* // => false
|
|
416
|
+
*
|
|
417
|
+
* _.isObjectLike(null);
|
|
418
|
+
* // => false
|
|
419
|
+
*/
|
|
420
|
+
function isObjectLike(value) {
|
|
421
|
+
return !!value && typeof value == 'object';
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
426
|
+
*
|
|
427
|
+
* @static
|
|
428
|
+
* @memberOf _
|
|
429
|
+
* @since 4.0.0
|
|
430
|
+
* @category Lang
|
|
431
|
+
* @param {*} value The value to check.
|
|
432
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
433
|
+
* @example
|
|
434
|
+
*
|
|
435
|
+
* _.isSymbol(Symbol.iterator);
|
|
436
|
+
* // => true
|
|
437
|
+
*
|
|
438
|
+
* _.isSymbol('abc');
|
|
439
|
+
* // => false
|
|
440
|
+
*/
|
|
441
|
+
function isSymbol(value) {
|
|
442
|
+
return typeof value == 'symbol' ||
|
|
443
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Converts `value` to a number.
|
|
448
|
+
*
|
|
449
|
+
* @static
|
|
450
|
+
* @memberOf _
|
|
451
|
+
* @since 4.0.0
|
|
452
|
+
* @category Lang
|
|
453
|
+
* @param {*} value The value to process.
|
|
454
|
+
* @returns {number} Returns the number.
|
|
455
|
+
* @example
|
|
456
|
+
*
|
|
457
|
+
* _.toNumber(3.2);
|
|
458
|
+
* // => 3.2
|
|
459
|
+
*
|
|
460
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
461
|
+
* // => 5e-324
|
|
462
|
+
*
|
|
463
|
+
* _.toNumber(Infinity);
|
|
464
|
+
* // => Infinity
|
|
465
|
+
*
|
|
466
|
+
* _.toNumber('3.2');
|
|
467
|
+
* // => 3.2
|
|
468
|
+
*/
|
|
469
|
+
function toNumber(value) {
|
|
470
|
+
if (typeof value == 'number') {
|
|
471
|
+
return value;
|
|
472
|
+
}
|
|
473
|
+
if (isSymbol(value)) {
|
|
474
|
+
return NAN;
|
|
475
|
+
}
|
|
476
|
+
if (isObject(value)) {
|
|
477
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
478
|
+
value = isObject(other) ? (other + '') : other;
|
|
479
|
+
}
|
|
480
|
+
if (typeof value != 'string') {
|
|
481
|
+
return value === 0 ? value : +value;
|
|
482
|
+
}
|
|
483
|
+
value = value.replace(reTrim, '');
|
|
484
|
+
var isBinary = reIsBinary.test(value);
|
|
485
|
+
return (isBinary || reIsOctal.test(value))
|
|
486
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
487
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
var lodash_throttle = throttle;
|
|
491
|
+
|
|
492
|
+
function tagWidth(text) {
|
|
493
|
+
const context = document.createElement('canvas').getContext('2d');
|
|
494
|
+
context.font =
|
|
495
|
+
"14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif";
|
|
496
|
+
return context.measureText(text).width + 44; // = text + l/r padding + margin-right
|
|
497
|
+
}
|
|
498
|
+
const XplSelect$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
499
|
+
constructor() {
|
|
500
|
+
super();
|
|
501
|
+
this.__registerHost();
|
|
502
|
+
this.selectChange = createEvent(this, "selectChange", 7);
|
|
503
|
+
this.choices = [];
|
|
504
|
+
this.description = undefined;
|
|
505
|
+
this.disabled = undefined;
|
|
506
|
+
this.error = undefined;
|
|
507
|
+
this.label = undefined;
|
|
508
|
+
this.mode = 'single';
|
|
509
|
+
this.name = undefined;
|
|
510
|
+
this.placeholder = undefined;
|
|
511
|
+
this.truncate = true;
|
|
512
|
+
this.selectedValues = undefined;
|
|
513
|
+
this.active = false;
|
|
514
|
+
this.id = v4();
|
|
515
|
+
this.keepFocus = false;
|
|
516
|
+
this.selected = undefined;
|
|
517
|
+
this.value = '';
|
|
518
|
+
this.displayValue = '';
|
|
519
|
+
this.visibleChoices = Infinity;
|
|
520
|
+
}
|
|
521
|
+
componentWillLoad() {
|
|
522
|
+
this.selected =
|
|
523
|
+
this.choices && this.choices.length > 0
|
|
524
|
+
? this.choices.map(() => false)
|
|
525
|
+
: [];
|
|
526
|
+
if (this.selectedValues) {
|
|
527
|
+
const isSingleMode = this.mode === 'single';
|
|
528
|
+
if (isSingleMode) {
|
|
529
|
+
this.choices.forEach((choice) => {
|
|
530
|
+
const shouldBeSelected = choice.value.includes(this.selectedValues) ||
|
|
531
|
+
choice.label.includes(this.selectedValues);
|
|
532
|
+
if (shouldBeSelected)
|
|
533
|
+
choice.isSelected = true;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
this.choices.forEach(({ options }) => {
|
|
538
|
+
options.forEach((option) => {
|
|
539
|
+
const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
|
|
540
|
+
if (shouldBeSelected)
|
|
541
|
+
option.isSelected = true;
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
this.update();
|
|
546
|
+
}
|
|
547
|
+
window.addEventListener('click', (e) => {
|
|
548
|
+
const el = e.target;
|
|
549
|
+
const select = el.closest('.xpl-select');
|
|
550
|
+
if (select === null || select !== this.container) {
|
|
551
|
+
this.active = false;
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
window.addEventListener('resize', lodash_throttle(() => {
|
|
555
|
+
this.maybeTruncateChoices();
|
|
556
|
+
}, 250));
|
|
557
|
+
}
|
|
558
|
+
componentDidLoad() {
|
|
559
|
+
this.dropdown = this.container.querySelector('xpl-dropdown');
|
|
560
|
+
}
|
|
561
|
+
maybeTruncateChoices() {
|
|
562
|
+
if (this.mode === 'single' || !this.truncate)
|
|
563
|
+
return;
|
|
564
|
+
const containerWidth = this.container.getBoundingClientRect().width;
|
|
565
|
+
let visibleChoices = 0;
|
|
566
|
+
let visibleChoicesWidth = 0;
|
|
567
|
+
const actualNumSelected = this.selected.filter((a) => a).length;
|
|
568
|
+
for (let i = 0; i < actualNumSelected; i++) {
|
|
569
|
+
visibleChoicesWidth += tagWidth(this.getDisplayValue(i));
|
|
570
|
+
if (visibleChoicesWidth > containerWidth - 140)
|
|
571
|
+
break;
|
|
572
|
+
visibleChoices++;
|
|
573
|
+
}
|
|
574
|
+
if (visibleChoices >= actualNumSelected)
|
|
575
|
+
visibleChoices = Infinity;
|
|
576
|
+
if (visibleChoices < 1)
|
|
577
|
+
visibleChoices = 1;
|
|
578
|
+
this.visibleChoices = visibleChoices;
|
|
579
|
+
}
|
|
580
|
+
flattenChoices() {
|
|
581
|
+
return this.choices.reduce((acc, curr) => [
|
|
582
|
+
...acc,
|
|
583
|
+
...(curr.groupName ? curr.options : [curr]),
|
|
584
|
+
], []);
|
|
585
|
+
}
|
|
586
|
+
getDisplayValue(i) {
|
|
587
|
+
return this.flattenChoices()[i].label || this.flattenChoices()[i].value;
|
|
588
|
+
}
|
|
589
|
+
getActualValue(i) {
|
|
590
|
+
return this.flattenChoices()[i].value || this.flattenChoices()[i].label;
|
|
591
|
+
}
|
|
592
|
+
update() {
|
|
593
|
+
this.selected = this.flattenChoices().map(({ isSelected }) => isSelected);
|
|
594
|
+
if (this.mode === 'single') {
|
|
595
|
+
const selected = this.selected.findIndex((v) => v);
|
|
596
|
+
this.value = selected >= 0 ? this.getActualValue(selected) : '';
|
|
597
|
+
this.displayValue =
|
|
598
|
+
selected >= 0 ? this.getDisplayValue(selected) : '';
|
|
599
|
+
}
|
|
600
|
+
else if (this.mode === 'multi') {
|
|
601
|
+
this.value = this.selected
|
|
602
|
+
.map((v, i) => {
|
|
603
|
+
return v ? this.getActualValue(i) : '';
|
|
604
|
+
})
|
|
605
|
+
.filter((v) => v.length > 0)
|
|
606
|
+
.join('|');
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
handleValueStateChange(newValue) {
|
|
610
|
+
this.selectChange.emit(newValue);
|
|
611
|
+
}
|
|
612
|
+
render() {
|
|
613
|
+
let visibleChoices = 0;
|
|
614
|
+
return (h(Host, { class: {
|
|
615
|
+
'xpl-select': true,
|
|
616
|
+
'xpl-select--disabled': this.disabled,
|
|
617
|
+
'xpl-select--no-truncate': !this.truncate,
|
|
618
|
+
}, onKeyDown: (e) => {
|
|
619
|
+
if (e.key === 'Escape')
|
|
620
|
+
this.active = false;
|
|
621
|
+
}, ref: (el) => (this.container = el) }, this.label || this.description ? (h("label", { class: {
|
|
622
|
+
'xpl-label': true,
|
|
623
|
+
'xpl-label--disabled': this.disabled,
|
|
624
|
+
}, htmlFor: this.id }, this.label, this.description && (h("small", { class: {
|
|
625
|
+
'xpl-description': true,
|
|
626
|
+
'xpl-description--disabled': this.disabled,
|
|
627
|
+
} }, this.description)))) : null, h("div", { class: {
|
|
628
|
+
'xpl-input': true,
|
|
629
|
+
'xpl-input--disabled': this.disabled,
|
|
630
|
+
'xpl-input--error': this.error !== undefined,
|
|
631
|
+
} }, h("div", { class: "xpl-input-wrapper" }, h("div", { class: {
|
|
632
|
+
'xpl-select-value': true,
|
|
633
|
+
'xpl-select-value--active': this.mode === 'multi' &&
|
|
634
|
+
this.value.length > 0,
|
|
635
|
+
'has-value': this.value.length > 0,
|
|
636
|
+
} }, this.mode === 'single'
|
|
637
|
+
? this.displayValue || this.placeholder
|
|
638
|
+
: this.value.length > 0
|
|
639
|
+
? this.selected.map((v, i) => {
|
|
640
|
+
if (!v)
|
|
641
|
+
return null;
|
|
642
|
+
if (visibleChoices >= this.visibleChoices) {
|
|
643
|
+
return null;
|
|
644
|
+
}
|
|
645
|
+
visibleChoices++;
|
|
646
|
+
return (h("xpl-tag", { onClose: () => {
|
|
647
|
+
this.flattenChoices().forEach((v, j) => {
|
|
648
|
+
if (i === j)
|
|
649
|
+
v.isSelected =
|
|
650
|
+
false;
|
|
651
|
+
});
|
|
652
|
+
const mapOptions = (option) => {
|
|
653
|
+
option.options =
|
|
654
|
+
option.groupName
|
|
655
|
+
? option.options.map(mapOptions)
|
|
656
|
+
: undefined;
|
|
657
|
+
return option;
|
|
658
|
+
};
|
|
659
|
+
this.choices =
|
|
660
|
+
this.choices.map(mapOptions);
|
|
661
|
+
this.update();
|
|
662
|
+
this.maybeTruncateChoices();
|
|
663
|
+
} }, this.getDisplayValue(i)));
|
|
664
|
+
})
|
|
665
|
+
: this.placeholder, this.visibleChoices < Infinity &&
|
|
666
|
+
`+ ${this.selected.filter((a) => a).length -
|
|
667
|
+
this.visibleChoices} more`), h("button", { disabled: this.disabled, id: this.id, onKeyDown: (e) => {
|
|
668
|
+
if (e.key === 'Tab')
|
|
669
|
+
this.keepFocus = true;
|
|
670
|
+
}, onClick: () => {
|
|
671
|
+
const { dropdown } = this;
|
|
672
|
+
if (!this.disabled)
|
|
673
|
+
dropdown.isOpen = !dropdown.isOpen;
|
|
674
|
+
}, type: "button" })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
|
|
675
|
+
this.update();
|
|
676
|
+
this.maybeTruncateChoices();
|
|
677
|
+
} })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", name: this.name, value: this.value })));
|
|
678
|
+
}
|
|
679
|
+
static get watchers() { return {
|
|
680
|
+
"value": ["handleValueStateChange"]
|
|
681
|
+
}; }
|
|
682
|
+
}, [0, "xpl-select", {
|
|
683
|
+
"choices": [16],
|
|
684
|
+
"description": [1],
|
|
685
|
+
"disabled": [4],
|
|
686
|
+
"error": [1],
|
|
687
|
+
"label": [1],
|
|
688
|
+
"mode": [1],
|
|
689
|
+
"name": [1],
|
|
690
|
+
"placeholder": [1],
|
|
691
|
+
"truncate": [4],
|
|
692
|
+
"selectedValues": [1, "selected-values"],
|
|
693
|
+
"active": [32],
|
|
694
|
+
"id": [32],
|
|
695
|
+
"keepFocus": [32],
|
|
696
|
+
"selected": [32],
|
|
697
|
+
"value": [32],
|
|
698
|
+
"displayValue": [32],
|
|
699
|
+
"visibleChoices": [32]
|
|
700
|
+
}]);
|
|
701
|
+
function defineCustomElement$1() {
|
|
702
|
+
if (typeof customElements === "undefined") {
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
const components = ["xpl-select", "xpl-dropdown", "xpl-dropdown-group", "xpl-dropdown-heading", "xpl-dropdown-option", "xpl-tag"];
|
|
706
|
+
components.forEach(tagName => { switch (tagName) {
|
|
707
|
+
case "xpl-select":
|
|
708
|
+
if (!customElements.get(tagName)) {
|
|
709
|
+
customElements.define(tagName, XplSelect$1);
|
|
710
|
+
}
|
|
711
|
+
break;
|
|
712
|
+
case "xpl-dropdown":
|
|
713
|
+
if (!customElements.get(tagName)) {
|
|
714
|
+
defineCustomElement$6();
|
|
715
|
+
}
|
|
716
|
+
break;
|
|
717
|
+
case "xpl-dropdown-group":
|
|
718
|
+
if (!customElements.get(tagName)) {
|
|
719
|
+
defineCustomElement$5();
|
|
720
|
+
}
|
|
721
|
+
break;
|
|
722
|
+
case "xpl-dropdown-heading":
|
|
723
|
+
if (!customElements.get(tagName)) {
|
|
724
|
+
defineCustomElement$4();
|
|
725
|
+
}
|
|
726
|
+
break;
|
|
727
|
+
case "xpl-dropdown-option":
|
|
728
|
+
if (!customElements.get(tagName)) {
|
|
729
|
+
defineCustomElement$3();
|
|
730
|
+
}
|
|
731
|
+
break;
|
|
732
|
+
case "xpl-tag":
|
|
733
|
+
if (!customElements.get(tagName)) {
|
|
734
|
+
defineCustomElement$2();
|
|
735
|
+
}
|
|
736
|
+
break;
|
|
737
|
+
} });
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
const XplSelect = XplSelect$1;
|
|
741
|
+
const defineCustomElement = defineCustomElement$1;
|
|
742
|
+
|
|
743
|
+
export { XplSelect, defineCustomElement };
|
|
744
|
+
|
|
745
|
+
//# sourceMappingURL=xpl-select.js.map
|