@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
6
|
|
|
7
7
|
const XplMainNav = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -25,3 +25,5 @@ const XplMainNav = class {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
exports.xpl_main_nav = XplMainNav;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=xpl-main-nav.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-main-nav.entry.cjs.js","mappings":";;;;;;MAKa,UAAU;;;;iBAIsB,SAAS;;EAO1C,eAAe;IACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAClC;EAED,iBAAiB;IACb,IAAI,CAAC,eAAe,EAAE,CAAC;GAC1B;EAED,kBAAkB;IACd,IAAI,CAAC,eAAe,EAAE,CAAC;GAC1B;EAED,MAAM;IACF,QACIA,QAACC,UAAI,IACD,KAAK,EAAE,8BAA8B,IAAI,CAAC,KAAK,EAAE,gBACtC,SAAS,IAEpBD,qBACIA,kCAAmB,gBAAgB,IAC/BA,kBAAM,IAAI,EAAC,MAAM,GAAQ,EACzBA,kBAAM,IAAI,EAAC,YAAY,GAAQ,CAC1B,EACTA,iBAAK,KAAK,EAAC,4BAA4B,IACnCA,kBAAM,IAAI,EAAC,YAAY,GAAQ,CAC7B,EACNA,oBACI,KAAK,EAAC,sBAAsB,gBACjB,gBAAgB,IAE3BA,kBAAM,IAAI,EAAC,QAAQ,GAAQ,CACtB,CACP,CACH,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-main-nav/xpl-main-nav.tsx"],"sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xpl-main-nav',\n})\nexport class XplMainNav {\n /**\n * @property {string} width - The width of the Main Nav.\n */\n @Prop() width: 'default' | 'md' | 'sm' = 'default';\n\n /**\n * @event {string} navWidth - Emits the `nav-width` prop set by the user\n * when the component is attached to the DOM and when the component is updated.\n */\n @Event() navWidth: EventEmitter<string>;\n private navWidthHandler() {\n this.navWidth.emit(this.width);\n }\n\n connectedCallback() {\n this.navWidthHandler();\n }\n\n componentDidUpdate() {\n this.navWidthHandler();\n }\n\n render() {\n return (\n <Host\n class={`xpl-main-nav xpl-main-nav--${this.width}`}\n aria-label=\"Sidebar\"\n >\n <nav>\n <header aria-label=\"Sidebar Header\">\n <slot name=\"logo\"></slot>\n <slot name=\"brand-name\"></slot>\n </header>\n <div class=\"xpl-main-nav__main_section\">\n <slot name=\"navigation\"></slot>\n </div>\n <footer\n class=\"xpl-main-nav__footer\"\n aria-label=\"Sidebar Footer\"\n >\n <slot name=\"footer\"></slot>\n </footer>\n </nav>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
|
|
7
|
+
const XplNavItem = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
11
|
+
this.navControl = false;
|
|
12
|
+
}
|
|
13
|
+
onNavToggle() {
|
|
14
|
+
if (window.innerWidth <= 640) {
|
|
15
|
+
this.navOpen.emit(false);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (index.h(index.Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
20
|
+
if (this.navControl) {
|
|
21
|
+
this.onNavToggle();
|
|
22
|
+
}
|
|
23
|
+
} }, index.h("slot", { name: "link" }, index.h("slot", { name: "icon" }), index.h("slot", null))));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.xpl_nav_item = XplNavItem;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=xpl-nav-item.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-nav-item.entry.cjs.js","mappings":";;;;;;MAKa,UAAU;;;;sBAIY,KAAK;;EAO5B,WAAW;IACf,IAAI,MAAM,CAAC,UAAU,IAAI,GAAG,EAAE;MAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5B;GACJ;EAED,MAAM;IACF,QACIA,QAACC,UAAI,IACD,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,UAAU,EACf,OAAO,EAAE;QACL,IAAI,IAAI,CAAC,UAAU,EAAE;UACjB,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;OACJ,IAEDD,kBAAM,IAAI,EAAC,MAAM,IACbA,kBAAM,IAAI,EAAC,MAAM,GAAQ,EACzBA,qBAAa,CACV,CACJ,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-nav-item/xpl-nav-item.tsx"],"sourcesContent":["import { Component, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xpl-nav-item',\n})\nexport class XplNavItem {\n /**\n * @property {boolean} - Whether or not the item should control the main nav state on click\n */\n @Prop() navControl?: boolean = false;\n\n /**\n * @event {boolean} - Emits the desired state of the navigation bar (open: true/false)\n */\n @Event() navOpen: EventEmitter<boolean>;\n\n private onNavToggle() {\n if (window.innerWidth <= 640) {\n this.navOpen.emit(false);\n }\n }\n\n render() {\n return (\n <Host\n class=\"xpl-nav-item\"\n role=\"listitem\"\n onClick={() => {\n if (this.navControl) {\n this.onNavToggle();\n }\n }}\n >\n <slot name=\"link\">\n <slot name=\"icon\"></slot>\n <slot></slot>\n </slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
6
|
|
|
7
7
|
const XplPagination = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -77,3 +77,5 @@ const XplPagination = class {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
exports.xpl_pagination = XplPagination;
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=xpl-pagination.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-pagination.entry.cjs.js","mappings":";;;;;;MAca,aAAa;;;;;;;;;;IAyBd,UAAK,GAAG,CAAC,CAAS;MACtB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;MAClB,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;OACpB;KACJ,CAAC;IAEM,WAAM,GAAG;MACb,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC;QAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;KACtD,CAAC;IAEM,WAAM,GAAG;MACb,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;MACtD,IAAI,IAAI,CAAC,OAAO,GAAG,QAAQ;QAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;KAC7D,CAAC;;;;mBAnCyB,CAAC;;;;;;;;EAW5B,MAAM,IAAI,CAAC,CAAS;IAChB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;GACpB;EAwBD,MAAM;IACF,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IAEtD,IAAI,OAAO,GAAuB,CAAC,CAAC,CAAC,CAAC;IACtC,IAAI,QAAQ,GAAG,CAAC;MAAE,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAA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B,EACT;OACL;MACD,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE;QACpB,QACIA,oCACiB,MAAM,EACnB,KAAK,EAAC,wBAAwB,IAE7B,CAAC,CACG,EACX;OACL;MACD,QACIA,oBAAQ,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAC/B,CAAC,CACG,EACX;KACL,CAAC,EACFA,oBACI,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,KAAK,EAAC,qBAAqB,IAE3BA,6BAAiB,EACjBA,iBAAK,OAAO,EAAC,WAAW,iBAAa,MAAM,IACvCA,+BACc,SAAS,EACnB,CAAC,EAAC,oHAAoH,eAC5G,SAAS,GACrB,CACA,CACD,CACP,CACJ,CACJ,CACH,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-pagination/xpl-pagination.tsx"],"sourcesContent":["import {\n Component,\n Host,\n h,\n Event,\n EventEmitter,\n Prop,\n State,\n Method,\n} from '@stencil/core';\n\n@Component({\n tag: 'xpl-pagination',\n})\nexport class XplPagination {\n @Prop() total: number;\n @Prop() perPage: number;\n @Prop() waitForCallback: boolean;\n @State() current: number = 1;\n\n @Event() page: EventEmitter;\n\n /**\n * Calling `goto` with a page number (which should probably be\n * taken from the `page` event) updates the pagination's state\n * and re-renders it, showing the appropriate buttons given the current page.\n * @param n\n */\n @Method()\n async goto(n: number) {\n this.current = n;\n }\n\n /**\n * Private `_goto` method respects the `waitForCallback` prop --\n * it will always emit the `page` event, but won't actually update\n * the state of what the current page is, leaving that to the caller\n * to update once (presumably) some other data has loaded.\n */\n private _goto = (n: number) => {\n this.page.emit(n);\n if (!this.waitForCallback) {\n this.current = n;\n }\n };\n\n private goPrev = () => {\n if (this.current > 1) this._goto(this.current - 1);\n };\n\n private goNext = () => {\n const numPages = Math.ceil(this.total / this.perPage);\n if (this.current < numPages) this._goto(this.current + 1);\n };\n\n render() {\n const numPages = Math.ceil(this.total / this.perPage);\n\n let showing: (number | '...')[] = [1];\n if (numPages < 7) showing = [1, 2, 3, 4, 5, 6];\n if (this.current <= 3 || this.current >= numPages - 2) {\n showing = [1, 2, 3, '...', numPages - 2, numPages - 1, numPages];\n } else {\n showing = [\n 1,\n '...',\n this.current - 1,\n this.current,\n this.current + 1,\n '...',\n numPages,\n ];\n }\n\n const showingFirst = (this.current - 1) * this.perPage + 1;\n const showingLast = Math.min(\n showingFirst + this.perPage - 1,\n this.total\n );\n\n return (\n <Host>\n <div class=\"xpl-pagination\">\n <div>\n <p>\n Showing <span>{showingFirst}</span> to{' '}\n <span>{showingLast}</span> of{' '}\n <span>{this.total}</span> results\n </p>\n </div>\n <div>\n <nav aria-label=\"Pagination\">\n <button\n onClick={this.goPrev}\n class=\"xpl-pagination-prev\"\n >\n <span>Previous</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </button>\n {showing.map((n) => {\n if (n === '...') {\n return (\n <span class=\"xpl-pagination-ellipsis\">\n ...\n </span>\n );\n }\n if (n === this.current) {\n return (\n <button\n aria-current=\"page\"\n class=\"xpl-pagination-current\"\n >\n {n}\n </button>\n );\n }\n return (\n <button onClick={() => this._goto(n)}>\n {n}\n </button>\n );\n })}\n <button\n onClick={this.goNext}\n class=\"xpl-pagination-next\"\n >\n <span>Next</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </button>\n </nav>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
|
+
|
|
8
|
+
const XplRadio = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.radioChange = index.createEvent(this, "radioChange", 7);
|
|
12
|
+
this.checked = undefined;
|
|
13
|
+
this.description = undefined;
|
|
14
|
+
this.disabled = undefined;
|
|
15
|
+
this.name = undefined;
|
|
16
|
+
this.required = undefined;
|
|
17
|
+
this.styled = undefined;
|
|
18
|
+
this.value = undefined;
|
|
19
|
+
this.id = index$1.v4();
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (index.h(index.Host, { class: {
|
|
23
|
+
'xpl-checkbox-radio-container': true,
|
|
24
|
+
styled: this.styled,
|
|
25
|
+
disabled: this.disabled,
|
|
26
|
+
} }, index.h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), index.h("label", { class: {
|
|
27
|
+
'xpl-label': true,
|
|
28
|
+
'xpl-label--disabled': this.disabled,
|
|
29
|
+
}, htmlFor: this.id }, index.h("slot", null), this.description && (index.h("small", { class: {
|
|
30
|
+
'xpl-description': true,
|
|
31
|
+
'xpl-description--disabled': this.disabled,
|
|
32
|
+
} }, this.description)))));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.xpl_radio = XplRadio;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=xpl-radio.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-radio.entry.cjs.js","mappings":";;;;;;;MAca,QAAQ;;;;;;;;;;;cASKA,UAAI,EAAE;;EAK5B,MAAM;IACF,QACIC,QAACC,UAAI,IACD,KAAK,EAAE;QACH,8BAA8B,EAAE,IAAI;QACpC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;OAC1B,IAEDD,mBACI,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GACtC,EACTA,mBACI,KAAK,EAAE;QACH,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,IAAI,CAAC,QAAQ;OACvC,EACD,OAAO,EAAE,IAAI,CAAC,EAAE,IAEhBA,qBAAa,EACZ,IAAI,CAAC,WAAW,KACbA,mBACI,KAAK,EAAE;QACH,iBAAiB,EAAE,IAAI;QACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;OAC7C,IAEA,IAAI,CAAC,WAAW,CACb,CACX,CACG,CACL,EACT;GACL;;;;;","names":["uuid","h","Host"],"sources":["./src/components/components/xpl-radio/xpl-radio.tsx"],"sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\n@Component({\n tag: 'xpl-radio',\n})\nexport class XplRadio {\n @Prop() checked?: boolean;\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n @Prop() name?: string;\n @Prop() required?: boolean;\n @Prop() styled?: boolean;\n @Prop() value?: string;\n\n @State() id: string = uuid();\n\n /** @private */\n @Event() radioChange: EventEmitter;\n\n render() {\n return (\n <Host\n class={{\n 'xpl-checkbox-radio-container': true,\n styled: this.styled,\n disabled: this.disabled,\n }}\n >\n <input\n class=\"xpl-radio\"\n type=\"radio\"\n checked={this.checked}\n disabled={this.disabled}\n id={this.id}\n name={this.name}\n required={this.required}\n value={this.value}\n onChange={() => this.radioChange.emit(true)}\n ></input>\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n <slot></slot>\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
|
|
7
|
+
const XplSecondaryNav = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h(index.Host, { class: "xpl-secondary-nav" }, index.h("nav", { "aria-label": "Secondary Nav" }, index.h("slot", null))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.xpl_secondary_nav = XplSecondaryNav;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=xpl-secondary-nav.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-secondary-nav.entry.cjs.js","mappings":";;;;;;MAKa,eAAe;;;;EACxB,MAAM;IACF,QACIA,QAACC,UAAI,IAAC,KAAK,EAAC,mBAAmB,IAC3BD,+BAAgB,eAAe,IAC3BA,qBAAa,CACX,CACH,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-secondary-nav/xpl-secondary-nav.tsx"],"sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'xpl-secondary-nav',\n})\nexport class XplSecondaryNav {\n render() {\n return (\n <Host class=\"xpl-secondary-nav\">\n <nav aria-label=\"Secondary Nav\">\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,52 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
9
|
|
|
10
|
+
function getDefaultExportFromCjs (x) {
|
|
11
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
15
|
+
return module = {
|
|
16
|
+
path: basedir,
|
|
17
|
+
exports: {},
|
|
18
|
+
require: function (path, base) {
|
|
19
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
20
|
+
}
|
|
21
|
+
}, fn(module, module.exports), module.exports;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
25
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
29
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getAugmentedNamespace(n) {
|
|
33
|
+
if (n.__esModule) return n;
|
|
34
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
35
|
+
Object.keys(n).forEach(function (k) {
|
|
36
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
37
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return n[k];
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
return a;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function commonjsRequire () {
|
|
48
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
49
|
+
}
|
|
50
|
+
|
|
10
51
|
/**
|
|
11
52
|
* lodash (Custom Build) <https://lodash.com/>
|
|
12
53
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -456,16 +497,19 @@ function tagWidth(text) {
|
|
|
456
497
|
const XplSelect = class {
|
|
457
498
|
constructor(hostRef) {
|
|
458
499
|
index.registerInstance(this, hostRef);
|
|
500
|
+
this.selectChange = index.createEvent(this, "selectChange", 7);
|
|
459
501
|
this.choices = [];
|
|
460
502
|
this.description = undefined;
|
|
461
503
|
this.disabled = undefined;
|
|
462
504
|
this.error = undefined;
|
|
463
505
|
this.label = undefined;
|
|
464
506
|
this.mode = 'single';
|
|
507
|
+
this.name = undefined;
|
|
465
508
|
this.placeholder = undefined;
|
|
466
509
|
this.truncate = true;
|
|
510
|
+
this.selectedValues = undefined;
|
|
467
511
|
this.active = false;
|
|
468
|
-
this.id =
|
|
512
|
+
this.id = index$1.v4();
|
|
469
513
|
this.keepFocus = false;
|
|
470
514
|
this.selected = undefined;
|
|
471
515
|
this.value = '';
|
|
@@ -477,6 +521,27 @@ const XplSelect = class {
|
|
|
477
521
|
this.choices && this.choices.length > 0
|
|
478
522
|
? this.choices.map(() => false)
|
|
479
523
|
: [];
|
|
524
|
+
if (this.selectedValues) {
|
|
525
|
+
const isSingleMode = this.mode === 'single';
|
|
526
|
+
if (isSingleMode) {
|
|
527
|
+
this.choices.forEach((choice) => {
|
|
528
|
+
const shouldBeSelected = choice.value.includes(this.selectedValues) ||
|
|
529
|
+
choice.label.includes(this.selectedValues);
|
|
530
|
+
if (shouldBeSelected)
|
|
531
|
+
choice.isSelected = true;
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
this.choices.forEach(({ options }) => {
|
|
536
|
+
options.forEach((option) => {
|
|
537
|
+
const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
|
|
538
|
+
if (shouldBeSelected)
|
|
539
|
+
option.isSelected = true;
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
this.update();
|
|
544
|
+
}
|
|
480
545
|
window.addEventListener('click', (e) => {
|
|
481
546
|
const el = e.target;
|
|
482
547
|
const select = el.closest('.xpl-select');
|
|
@@ -539,6 +604,9 @@ const XplSelect = class {
|
|
|
539
604
|
.join('|');
|
|
540
605
|
}
|
|
541
606
|
}
|
|
607
|
+
handleValueStateChange(newValue) {
|
|
608
|
+
this.selectChange.emit(newValue);
|
|
609
|
+
}
|
|
542
610
|
render() {
|
|
543
611
|
let visibleChoices = 0;
|
|
544
612
|
return (index.h(index.Host, { class: {
|
|
@@ -569,8 +637,9 @@ const XplSelect = class {
|
|
|
569
637
|
? this.selected.map((v, i) => {
|
|
570
638
|
if (!v)
|
|
571
639
|
return null;
|
|
572
|
-
if (visibleChoices >= this.visibleChoices)
|
|
640
|
+
if (visibleChoices >= this.visibleChoices) {
|
|
573
641
|
return null;
|
|
642
|
+
}
|
|
574
643
|
visibleChoices++;
|
|
575
644
|
return (index.h("xpl-tag", { onClose: () => {
|
|
576
645
|
this.flattenChoices().forEach((v, j) => {
|
|
@@ -600,11 +669,16 @@ const XplSelect = class {
|
|
|
600
669
|
const { dropdown } = this;
|
|
601
670
|
if (!this.disabled)
|
|
602
671
|
dropdown.isOpen = !dropdown.isOpen;
|
|
603
|
-
} })), !this.disabled && (index.h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
|
|
672
|
+
}, type: "button" })), !this.disabled && (index.h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
|
|
604
673
|
this.update();
|
|
605
674
|
this.maybeTruncateChoices();
|
|
606
|
-
} })), this.error !== undefined && this.error.length > 0 && (index.h("label", { class: "xpl-input-error", htmlFor: this.id }, index.h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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))), index.h("input", { type: "hidden", value: this.value })));
|
|
675
|
+
} })), this.error !== undefined && this.error.length > 0 && (index.h("label", { class: "xpl-input-error", htmlFor: this.id }, index.h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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))), index.h("input", { type: "hidden", name: this.name, value: this.value })));
|
|
607
676
|
}
|
|
677
|
+
static get watchers() { return {
|
|
678
|
+
"value": ["handleValueStateChange"]
|
|
679
|
+
}; }
|
|
608
680
|
};
|
|
609
681
|
|
|
610
682
|
exports.xpl_select = XplSelect;
|
|
683
|
+
|
|
684
|
+
//# sourceMappingURL=xpl-select.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-select.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,qBAAqB,CAAC;AAC5C;AACA;AACA,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;AAChB;AACA;AACA,IAAI,SAAS,GAAG,iBAAiB,CAAC;AAClC;AACA;AACA,IAAI,MAAM,GAAG,YAAY,CAAC;AAC1B;AACA;AACA,IAAI,UAAU,GAAG,oBAAoB,CAAC;AACtC;AACA;AACA,IAAI,UAAU,GAAG,YAAY,CAAC;AAC9B;AACA;AACA,IAAI,SAAS,GAAG,aAAa,CAAC;AAC9B;AACA;AACA,IAAI,YAAY,GAAG,QAAQ,CAAC;AAC5B;AACA;AACA,IAAI,UAAU,GAAG,OAAOA,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,cAAM,CAAC;AAC3F;AACA;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IA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B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,SAAS,EAAE,IAAI,CAAC,EAAE,EAClB,MAAM,EAAE;QACJ,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,oBAAoB,EAAE,CAAC;OAC/B,GACW,CACnB,EACA,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,KAC9CA,mBAAO,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,IAC3CA,iBACI,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAElCA,kBAAM,CAAC,EAAC,ymBAAymB,GAAG,CAClnB,EACL,IAAI,CAAC,KAAK,CACP,CACX,CACC,EACNA,mBAAO,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CACxD,EACT;GACL;;;;;;;;","names":["global","uuid","throttle","h","Host"],"sources":["./node_modules/lodash.throttle/index.js","./src/components/components/xpl-select/xpl-select.tsx"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n","import { v4 as uuid } from 'uuid';\nimport {\n Component,\n Host,\n h,\n Prop,\n State,\n Event,\n EventEmitter,\n Watch,\n} from '@stencil/core';\nimport throttle from 'lodash.throttle';\nimport type { DropdownItem } from '../xpl-dropdown/dropdownoption';\n\nfunction tagWidth(text: string): number {\n const context = document.createElement('canvas').getContext('2d');\n context.font =\n \"14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif\";\n return context.measureText(text).width + 44; // = text + l/r padding + margin-right\n}\n\n@Component({\n tag: 'xpl-select',\n})\nexport class XplSelect {\n /**\n * An array of choices for the user to choose from.\n * Each choice should be of the form:\n * {\n * label: string;\n * href?: string;\n * value?: string;\n * isGroupHeading?: boolean;\n * }\n */\n @Prop() choices?: DropdownItem[] = [];\n /**\n * Optional text that appears below the input label.\n */\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n /**\n * If an empty string (attribute present with no value),\n * will display visually as an error. If a string is\n * included, will display visually as an error and include\n * the value as an error message.\n */\n @Prop() error?: string;\n\n /**\n * The label that appears above the select dropdown\n */\n @Prop() label?: string;\n /**\n * Whether to allow a single choice or multiple choices.\n */\n @Prop() mode?: 'single' | 'multi' = 'single';\n\n /**\n * The name of the hidden input field that contains the selected option's value(s)\n */\n @Prop() name?: string;\n\n @Prop() placeholder: string;\n /**\n * Only used in multi-choice selects. If `true`,\n * badges representing selections that would overflow the\n * container are replaced with \"+x more\" (where x is the\n * number not shown). If `false`, the container's height will\n * adjust to show all badges representing selections.\n */\n @Prop() truncate?: boolean = true;\n\n @Prop() selectedValues?: string | string[];\n\n /**\n * Emits the value of the selected option in the select menu on change\n */\n @Event() selectChange: EventEmitter<string>;\n\n @State() active: boolean = false;\n @State() id: string = uuid();\n @State() keepFocus: boolean = false;\n @State() selected: boolean[];\n @State() value: string = '';\n @State() displayValue: string = '';\n // infinity isn't real, it's just a mathematical construct, it can't hurt you\n @State() visibleChoices: number = Infinity;\n\n private container!: HTMLElement;\n\n private dropdown: HTMLXplDropdownElement;\n\n componentWillLoad() {\n this.selected =\n this.choices && this.choices.length > 0\n ? this.choices.map(() => false)\n : [];\n\n if (this.selectedValues) {\n const isSingleMode = this.mode === 'single';\n\n if (isSingleMode) {\n this.choices.forEach((choice) => {\n const shouldBeSelected =\n choice.value.includes(this.selectedValues as string) ||\n choice.label.includes(this.selectedValues as string);\n\n if (shouldBeSelected) choice.isSelected = true;\n });\n } else {\n this.choices.forEach(({ options }) => {\n options.forEach((option) => {\n const shouldBeSelected = this.selectedValues.includes(\n option.value || option.label\n );\n\n if (shouldBeSelected) option.isSelected = true;\n });\n });\n }\n\n this.update();\n }\n\n window.addEventListener('click', (e: MouseEvent) => {\n const el = e.target as HTMLElement;\n const select = el.closest('.xpl-select');\n if (select === null || select !== this.container) {\n this.active = false;\n }\n });\n\n window.addEventListener(\n 'resize',\n throttle(() => {\n this.maybeTruncateChoices();\n }, 250)\n );\n }\n componentDidLoad() {\n this.dropdown = this.container.querySelector('xpl-dropdown');\n }\n\n private maybeTruncateChoices(): void {\n if (this.mode === 'single' || !this.truncate) return;\n\n const containerWidth = this.container.getBoundingClientRect().width;\n\n let visibleChoices = 0;\n let visibleChoicesWidth = 0;\n\n const actualNumSelected = this.selected.filter((a) => a).length;\n for (let i = 0; i < actualNumSelected; i++) {\n visibleChoicesWidth += tagWidth(this.getDisplayValue(i));\n if (visibleChoicesWidth > containerWidth - 140) break;\n visibleChoices++;\n }\n\n if (visibleChoices >= actualNumSelected) visibleChoices = Infinity;\n if (visibleChoices < 1) visibleChoices = 1;\n\n this.visibleChoices = visibleChoices;\n }\n\n private flattenChoices(): DropdownItem[] {\n return this.choices.reduce(\n (acc, curr) => [\n ...acc,\n ...(curr.groupName ? curr.options : [curr]),\n ],\n []\n );\n }\n private getDisplayValue(i: number): string {\n return this.flattenChoices()[i].label || this.flattenChoices()[i].value;\n }\n\n private getActualValue(i: number): string {\n return this.flattenChoices()[i].value || this.flattenChoices()[i].label;\n }\n\n private update() {\n this.selected = this.flattenChoices().map(\n ({ isSelected }) => isSelected\n );\n\n if (this.mode === 'single') {\n const selected = this.selected.findIndex((v) => v);\n this.value = selected >= 0 ? this.getActualValue(selected) : '';\n this.displayValue =\n selected >= 0 ? this.getDisplayValue(selected) : '';\n } else if (this.mode === 'multi') {\n this.value = this.selected\n .map((v, i) => {\n return v ? this.getActualValue(i) : '';\n })\n .filter((v) => v.length > 0)\n .join('|');\n }\n }\n\n @Watch('value')\n handleValueStateChange(newValue) {\n this.selectChange.emit(newValue);\n }\n\n render() {\n let visibleChoices = 0;\n return (\n <Host\n class={{\n 'xpl-select': true,\n 'xpl-select--disabled': this.disabled,\n 'xpl-select--no-truncate': !this.truncate,\n }}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.key === 'Escape') this.active = false;\n }}\n ref={(el) => (this.container = el as HTMLElement)}\n >\n {this.label || this.description ? (\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n {this.label}\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n ) : null}\n <div\n class={{\n 'xpl-input': true,\n 'xpl-input--disabled': this.disabled,\n 'xpl-input--error': this.error !== undefined,\n }}\n >\n <div class=\"xpl-input-wrapper\">\n <div\n class={{\n 'xpl-select-value': true,\n 'xpl-select-value--active':\n this.mode === 'multi' &&\n this.value.length > 0,\n 'has-value': this.value.length > 0,\n }}\n >\n {this.mode === 'single'\n ? this.displayValue || this.placeholder\n : this.value.length > 0\n ? this.selected.map((v, i) => {\n if (!v) return null;\n if (\n visibleChoices >= this.visibleChoices\n ) {\n return null;\n }\n visibleChoices++;\n return (\n <xpl-tag\n onClose={() => {\n this.flattenChoices().forEach(\n (v, j) => {\n if (i === j)\n v.isSelected =\n false;\n }\n );\n const mapOptions = (\n option: DropdownItem\n ): DropdownItem => {\n option.options =\n option.groupName\n ? option.options.map(\n mapOptions\n )\n : undefined;\n return option;\n };\n this.choices =\n this.choices.map(\n mapOptions\n );\n\n this.update();\n this.maybeTruncateChoices();\n }}\n >\n {this.getDisplayValue(i)}\n </xpl-tag>\n );\n })\n : this.placeholder}\n {this.visibleChoices < Infinity &&\n `+ ${\n this.selected.filter((a) => a).length -\n this.visibleChoices\n } more`}\n </div>\n <button\n disabled={this.disabled}\n id={this.id}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.key === 'Tab') this.keepFocus = true;\n }}\n onClick={() => {\n const { dropdown } = this;\n if (!this.disabled)\n dropdown.isOpen = !dropdown.isOpen;\n }}\n type=\"button\"\n ></button>\n </div>\n {!this.disabled && (\n <xpl-dropdown\n options={this.choices}\n mode={this.mode}\n triggerId={this.id}\n update={() => {\n this.update();\n this.maybeTruncateChoices();\n }}\n ></xpl-dropdown>\n )}\n {this.error !== undefined && this.error.length > 0 && (\n <label class=\"xpl-input-error\" htmlFor={this.id}>\n <svg\n width=\"10\"\n height=\"11\"\n viewBox=\"0 0 10 11\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <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\" />\n </svg>\n {this.error}\n </label>\n )}\n </div>\n <input type=\"hidden\" name={this.name} value={this.value} />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
|
|
7
|
+
const XplTable = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.tableSelect = index.createEvent(this, "tableSelect", 7);
|
|
11
|
+
this.selectAll = (e) => {
|
|
12
|
+
const { target } = e;
|
|
13
|
+
if (!(target instanceof HTMLInputElement))
|
|
14
|
+
return;
|
|
15
|
+
const { checked } = target;
|
|
16
|
+
this.areAllSelected = checked;
|
|
17
|
+
this.selected = this.selected.map(() => checked);
|
|
18
|
+
this.onChange();
|
|
19
|
+
};
|
|
20
|
+
this.selectOne = (e, i) => {
|
|
21
|
+
const { target } = e;
|
|
22
|
+
if (!(target instanceof HTMLInputElement))
|
|
23
|
+
return;
|
|
24
|
+
const { checked } = target;
|
|
25
|
+
this.areAllSelected = false;
|
|
26
|
+
this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
|
|
27
|
+
this.onChange();
|
|
28
|
+
};
|
|
29
|
+
this.onChange = () => {
|
|
30
|
+
this.tableSelect.emit({
|
|
31
|
+
selected: this.selected,
|
|
32
|
+
areAllSelected: this.areAllSelected,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
this.onScroll = () => {
|
|
36
|
+
this.hasScrolled = this.container.scrollLeft > 0;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* TODO: Need to figure out how this interplays with data
|
|
40
|
+
* received from an API/server
|
|
41
|
+
*/
|
|
42
|
+
// private sortBy = (col: number, ascending = true) => {
|
|
43
|
+
// this.rowData.sort((a, b) => {
|
|
44
|
+
// const A = a[col];
|
|
45
|
+
// const B = b[col];
|
|
46
|
+
// if (typeof A === 'number' && typeof B === 'number') {
|
|
47
|
+
// const f = ascending ? 1 : -1;
|
|
48
|
+
// return A > B ? f : -f;
|
|
49
|
+
// }
|
|
50
|
+
// return -1;
|
|
51
|
+
// });
|
|
52
|
+
// this.rowData = Array.from(this.rowData);
|
|
53
|
+
// this.render();
|
|
54
|
+
// };
|
|
55
|
+
this.setData = () => {
|
|
56
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
57
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
58
|
+
};
|
|
59
|
+
this.columns = undefined;
|
|
60
|
+
this.data = undefined;
|
|
61
|
+
this.freeze = undefined;
|
|
62
|
+
this.multiselect = undefined;
|
|
63
|
+
this.striped = undefined;
|
|
64
|
+
this.areAllSelected = false;
|
|
65
|
+
this.rowData = undefined;
|
|
66
|
+
this.hasScrolled = false;
|
|
67
|
+
this.selected = undefined;
|
|
68
|
+
}
|
|
69
|
+
watchData() {
|
|
70
|
+
this.setData();
|
|
71
|
+
}
|
|
72
|
+
componentWillLoad() {
|
|
73
|
+
this.areAllSelected = false;
|
|
74
|
+
this.setData();
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
let className = 'xpl-table';
|
|
78
|
+
if (this.striped)
|
|
79
|
+
className += ' xpl-table--striped';
|
|
80
|
+
if (this.freeze)
|
|
81
|
+
className += ' xpl-table--freeze';
|
|
82
|
+
if (this.hasScrolled)
|
|
83
|
+
className += ' xpl-table--has-scrolled';
|
|
84
|
+
return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, index.h("table", { class: className }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
|
|
85
|
+
return (index.h("th", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-th" }, index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
86
|
+
// appear indeterminate when at least one but not all
|
|
87
|
+
// are selected
|
|
88
|
+
indeterminate: !this
|
|
89
|
+
.areAllSelected &&
|
|
90
|
+
this.selected.some((a) => a), onChange: (e) => {
|
|
91
|
+
this.selectAll(e);
|
|
92
|
+
}, type: "checkbox" }), column)) : (column)));
|
|
93
|
+
}))), index.h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
94
|
+
return (index.h("tr", { class: this.selected &&
|
|
95
|
+
this.selected[rowNum]
|
|
96
|
+
? 'xpl-table-row-selected'
|
|
97
|
+
: '' }, row.map((cell, i) => {
|
|
98
|
+
return (index.h("td", null, this.multiselect &&
|
|
99
|
+
i === 0 ? (index.h("label", { htmlFor: '__xpl-table-row-' +
|
|
100
|
+
rowNum }, index.h("input", { id: '__xpl-table-row-' +
|
|
101
|
+
rowNum, checked: this
|
|
102
|
+
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))));
|
|
103
|
+
})));
|
|
104
|
+
}))))));
|
|
105
|
+
}
|
|
106
|
+
static get watchers() { return {
|
|
107
|
+
"data": ["watchData"]
|
|
108
|
+
}; }
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
exports.xpl_table = XplTable;
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=xpl-table.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-table.entry.cjs.js","mappings":";;;;;;MAca,QAAQ;;;;IAgBT,cAAS,GAAG,CAAC,CAAQ;MACzB,MAAM,EAAE,MAAM,EAAE,GAAG,CA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ER,MAAM,CACT,CACA,EACP;KACL,CAAC,CACE,CACX,EACDA,uBACK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM;MAC1B,QACIA,gBACI,KAAK,EACD,IAAI,CAAC,QAAQ;UACb,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;YACf,wBAAwB;YACxB,EAAE,IAGX,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACb,QACIA,oBACK,IAAI,CAAC,WAAW;UACjB,CAAC,KAAK,CAAC,IACHA,mBACI,OAAO,EACH,kBAAkB;YAClB,MAAM,IAGVA,mBACI,EAAE,EACE,kBAAkB;YAClB,MAAM,EAEV,OAAO,EACH,IAAI;aACC,QAAQ,CACT,MAAM,CACT,EAEL,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,CAAC,KACR,IAAI,CAAC,SAAS,CACV,CAAC,EACD,MAAM,CACT,GAEP,EACFA,iBACI,SAAS,EAAE,IAAI,GACjB,CACE,KAERA,iBAAK,SAAS,EAAE,IAAI,GAAI,CAC3B,CACA,EACP;OACL,CAAC,CACD,EACP;KACL,CAAC,CACE,CACJ,CACN,CACH,EACT;GACL;;;;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-table/xpl-table.tsx"],"sourcesContent":["import {\n Component,\n Host,\n Prop,\n State,\n Event,\n EventEmitter,\n h,\n Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'xpl-table',\n})\nexport class XplTable {\n @Prop() columns?: string[];\n @Prop() data?: string[][];\n @Prop() freeze?: boolean;\n @Prop() multiselect?: boolean;\n @Prop() striped?: boolean;\n\n @State() areAllSelected: boolean = false;\n @State() rowData: string[][];\n @State() hasScrolled: boolean = false;\n @State() selected: boolean[];\n\n @Event() tableSelect: EventEmitter;\n\n private container!: HTMLDivElement;\n\n private selectAll = (e: Event) => {\n const { target } = e;\n if (!(target instanceof HTMLInputElement)) return;\n const { checked } = target;\n this.areAllSelected = checked;\n this.selected = this.selected.map(() => checked);\n this.onChange();\n };\n\n private selectOne = (e: Event, i: number) => {\n const { target } = e;\n if (!(target instanceof HTMLInputElement)) return;\n const { checked } = target;\n this.areAllSelected = false;\n this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));\n this.onChange();\n };\n\n private onChange = () => {\n this.tableSelect.emit({\n selected: this.selected,\n areAllSelected: this.areAllSelected,\n });\n };\n\n private onScroll = () => {\n this.hasScrolled = this.container.scrollLeft > 0;\n };\n\n /**\n * TODO: Need to figure out how this interplays with data\n * received from an API/server\n */\n // private sortBy = (col: number, ascending = true) => {\n // this.rowData.sort((a, b) => {\n // const A = a[col];\n // const B = b[col];\n // if (typeof A === 'number' && typeof B === 'number') {\n // const f = ascending ? 1 : -1;\n // return A > B ? f : -f;\n // }\n // return -1;\n // });\n // this.rowData = Array.from(this.rowData);\n // this.render();\n // };\n\n private setData = () => {\n this.rowData = this.data !== undefined ? Array.from(this.data) : [];\n this.selected = new Array(this.rowData.length).fill(false);\n };\n\n @Watch('data')\n watchData() {\n this.setData();\n }\n\n componentWillLoad() {\n this.areAllSelected = false;\n this.setData();\n }\n\n render() {\n let className = 'xpl-table';\n if (this.striped) className += ' xpl-table--striped';\n if (this.freeze) className += ' xpl-table--freeze';\n if (this.hasScrolled) className += ' xpl-table--has-scrolled';\n\n return (\n <Host>\n <div\n class=\"xpl-table-container\"\n onScroll={this.onScroll}\n ref={(el) => (this.container = el as HTMLDivElement)}\n >\n <table class={className}>\n {this.columns && (\n <thead>\n {this.columns.map((column, i) => {\n return (\n <th>\n {this.multiselect && i === 0 ? (\n <label htmlFor=\"__xpl-table-th\">\n <input\n checked={\n this.areAllSelected\n }\n id=\"__xpl-table-th\"\n // appear indeterminate when at least one but not all\n // are selected\n indeterminate={\n !this\n .areAllSelected &&\n this.selected.some(\n (a) => a\n )\n }\n onChange={(e) => {\n this.selectAll(e);\n }}\n type=\"checkbox\"\n />\n {column}\n </label>\n ) : (\n column\n )}\n </th>\n );\n })}\n </thead>\n )}\n <tbody>\n {this.rowData.map((row, rowNum) => {\n return (\n <tr\n class={\n this.selected &&\n this.selected[rowNum]\n ? 'xpl-table-row-selected'\n : ''\n }\n >\n {row.map((cell, i) => {\n return (\n <td>\n {this.multiselect &&\n i === 0 ? (\n <label\n htmlFor={\n '__xpl-table-row-' +\n rowNum\n }\n >\n <input\n id={\n '__xpl-table-row-' +\n rowNum\n }\n checked={\n this\n .selected[\n rowNum\n ]\n }\n type=\"checkbox\"\n onChange={(e) =>\n this.selectOne(\n e,\n rowNum\n )\n }\n />\n <div\n innerHTML={cell}\n />\n </label>\n ) : (\n <div innerHTML={cell} />\n )}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
|
|
7
|
+
const XplTag = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.close = index.createEvent(this, "close", 7);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (index.h(index.Host, { class: "xpl-tag-container" }, index.h("button", { class: "xpl-tag", onClick: () => {
|
|
14
|
+
this.close.emit();
|
|
15
|
+
} }, index.h("slot", null)), index.h("button", { class: "xpl-tag__close", onClick: () => {
|
|
16
|
+
this.close.emit();
|
|
17
|
+
} }, "\u00D7")));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.xpl_tag = XplTag;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=xpl-tag.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-tag.entry.cjs.js","mappings":";;;;;;MAKa,MAAM;;;;;EAGf,MAAM;IACF,QACIA,QAACC,UAAI,IAAC,KAAK,EAAC,mBAAmB,IAC3BD,oBACI,KAAK,EAAC,SAAS,EACf,OAAO,EAAE;QACL,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;OACrB,IAEDA,qBAAa,CACR,EACTA,oBACI,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE;QACL,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;OACrB,aAGI,CACN,EACT;GACL;;;;;","names":["h","Host"],"sources":["./src/components/components/xpl-tag/xpl-tag.tsx"],"sourcesContent":["import { Component, Host, h, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xpl-tag',\n})\nexport class XplTag {\n @Event() close: EventEmitter;\n\n render() {\n return (\n <Host class=\"xpl-tag-container\">\n <button\n class=\"xpl-tag\"\n onClick={() => {\n this.close.emit();\n }}\n >\n <slot></slot>\n </button>\n <button\n class=\"xpl-tag__close\"\n onClick={() => {\n this.close.emit();\n }}\n >\n ×\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-0fdb260e.js');
|
|
6
|
+
const index$1 = require('./index-318d5fc7.js');
|
|
7
7
|
|
|
8
8
|
const XplToggle = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -15,7 +15,7 @@ const XplToggle = class {
|
|
|
15
15
|
this.label = undefined;
|
|
16
16
|
this.name = undefined;
|
|
17
17
|
this.variant = 'default';
|
|
18
|
-
this.id =
|
|
18
|
+
this.id = index$1.v4();
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
let containerClassName = 'xpl-toggle-container';
|
|
@@ -35,3 +35,5 @@ const XplToggle = class {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
exports.xpl_toggle = XplToggle;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=xpl-toggle.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xpl-toggle.entry.cjs.js","mappings":";;;;;;;MAMa,SAAS;;;;;;;;;mBAmBsB,SAAS;cAE3BA,UAAI,EAAE;;EAE5B,MAAM;IACF,IAAI,kBAAkB,GAAG,sBAAsB,CAAC;IAChD,IAAI,IAAI,CAAC,QAAQ;MACb,kBAAkB,IAAI,iCAAiC,CAAC;IAE5D,IAAI,SAAS,GAAG,YAAY,CAAC;IAC7B,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO;MAAE,SAAS,IAAI,oBAAoB,CAAC;IAEhE,QACIC,QAACC,UAAI,IAAC,KAAK,EAAE,kBAAkB,IAC1B,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAC9BD,mBACI,KAAK,EAAE;QACH,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,IAAI,CAAC,QAAQ;OACvC,EACD,OAAO,EAAE,IAAI,CAAC,EAAE,IAEf,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,KACbA,mBACI,KAAK,EAAE;QACH,iBAAiB,EAAE,IAAI;QACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;OAC7C,IAEA,IAAI,CAAC,WAAW,CACb,CACX,CACG,CACX,EACDA,mBACI,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,GACV,EACR,IAAI,CAAC,KAAK,IAAIA,mBAAO,OAAO,EAAE,IAAI,CAAC,EAAE,IAAG,IAAI,CAAC,KAAK,CAAS,CACzD,EACT;GACL;;;;;","names":["uuid","h","Host"],"sources":["./src/components/components/xpl-toggle/xpl-toggle.tsx"],"sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\n@Component({\n tag: 'xpl-toggle',\n})\nexport class XplToggle {\n @Prop() checked?: boolean;\n /**\n * The toggle's description appears *above* the toggle.\n */\n @Prop() description?: string;\n @Prop() disabled?: boolean;\n /**\n * The toggle's heading appears *above* the toggle.\n */\n @Prop() heading?: string;\n /**\n * The toggle's label appears *to the right of* the toggle.\n */\n @Prop() label?: string;\n @Prop() name?: string;\n /**\n * The size of the toggle -- `default` or `small`\n */\n @Prop() variant?: 'default' | 'small' = 'default';\n\n @State() id: string = uuid();\n\n render() {\n let containerClassName = 'xpl-toggle-container';\n if (this.disabled)\n containerClassName += ' xpl-toggle-container--disabled';\n\n let className = 'xpl-toggle';\n if (this.variant === 'small') className += ' xpl-toggle--small';\n\n return (\n <Host class={containerClassName}>\n {(this.heading || this.description) && (\n <label\n class={{\n 'xpl-label': true,\n 'xpl-label--disabled': this.disabled,\n }}\n htmlFor={this.id}\n >\n {this.heading}\n {this.description && (\n <small\n class={{\n 'xpl-description': true,\n 'xpl-description--disabled': this.disabled,\n }}\n >\n {this.description}\n </small>\n )}\n </label>\n )}\n <input\n class={className}\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n id={this.id}\n name={this.name}\n ></input>\n {this.label && <label htmlFor={this.id}>{this.label}</label>}\n </Host>\n );\n }\n}\n"],"version":3}
|