@xplortech/apollo-core 1.0.0-beta.17 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +106 -0
- package/build/style.css +2758 -1516
- package/dist/apollo-core/apollo-core.css +14 -4597
- package/dist/apollo-core/apollo-core.esm.js +1 -2
- package/dist/apollo-core/index.esm.js +0 -2
- package/dist/apollo-core/p-09b2f746.entry.js +1 -0
- package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
- package/dist/apollo-core/p-20389bb6.entry.js +1 -0
- package/dist/apollo-core/p-25983fde.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +10 -0
- package/dist/apollo-core/p-4a348764.entry.js +1 -0
- package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
- package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
- package/dist/apollo-core/p-880c0359.entry.js +1 -0
- package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
- package/dist/apollo-core/p-93958292.entry.js +1 -0
- package/dist/apollo-core/p-93c27db5.entry.js +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +1 -2
- package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
- package/dist/apollo-core/p-c3a12469.entry.js +1 -0
- package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
- package/dist/apollo-core/p-e369d7af.entry.js +1 -0
- package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
- package/dist/apollo-core/p-f929c958.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -12
- package/dist/cjs/{index-000e170c.js → index-54ba5804.js} +216 -768
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/regular-872f5226.js +16043 -0
- package/dist/cjs/v4-14140ff3.js +0 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
- package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
- package/dist/cjs/xpl-input.cjs.entry.js +25 -22
- package/dist/cjs/xpl-list.cjs.entry.js +25 -4
- package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
- package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
- package/dist/cjs/xpl-select.cjs.entry.js +25 -43
- package/dist/cjs/xpl-toggle.cjs.entry.js +4 -9
- package/dist/collection/collection-manifest.json +3 -6
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +109 -125
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +144 -151
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +28 -27
- package/dist/collection/components/xpl-badge/xpl-badge.js +39 -44
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +5 -3
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -3
- package/dist/collection/components/xpl-button/xpl-button.js +188 -228
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
- package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
- package/dist/collection/components/xpl-input/xpl-input.js +419 -397
- package/dist/collection/components/xpl-list/xpl-list.js +77 -43
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
- package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
- package/dist/collection/components/xpl-select/xpl-select.js +235 -296
- package/dist/collection/components/xpl-table/xpl-table.js +148 -215
- package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +135 -138
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +52 -79
- package/dist/custom-elements/index.d.ts +219 -0
- package/dist/custom-elements/index.js +20201 -0
- package/dist/esm/apollo-core.js +3 -9
- package/dist/esm/{index-56581b5c.js → index-3df6db84.js} +217 -768
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +3 -6
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/regular-86225e9d.js +16041 -0
- package/dist/esm/v4-929670b7.js +0 -2
- package/dist/esm/xpl-application-shell.entry.js +13 -10
- package/dist/esm/xpl-avatar_12.entry.js +284 -0
- package/dist/esm/xpl-backdrop.entry.js +5 -3
- package/dist/esm/xpl-button-row.entry.js +1 -6
- package/dist/esm/xpl-choicelist.entry.js +1 -10
- package/dist/esm/xpl-divider.entry.js +1 -4
- package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
- package/dist/esm/xpl-dropdown_2.entry.js +12 -14
- package/dist/esm/xpl-grid-item.entry.js +1 -3
- package/dist/esm/xpl-grid.entry.js +1 -3
- package/dist/esm/xpl-input.entry.js +25 -22
- package/dist/esm/xpl-list.entry.js +25 -4
- package/dist/esm/xpl-main-nav.entry.js +4 -3
- package/dist/esm/xpl-pagination.entry.js +2 -7
- package/dist/esm/xpl-select.entry.js +25 -43
- package/dist/esm/xpl-toggle.entry.js +4 -9
- package/dist/stories/application-shell.stories.js +8 -18
- package/dist/stories/avatar.stories.js +0 -1
- package/dist/stories/backdrop.stories.js +0 -1
- package/dist/stories/badge.stories.js +0 -1
- package/dist/stories/breadcrumbs.stories.js +0 -1
- package/dist/stories/button-row.stories.js +0 -1
- package/dist/stories/button.stories.js +5 -18
- package/dist/stories/checkbox.stories.js +0 -1
- package/dist/stories/choicelist.stories.js +0 -1
- package/dist/stories/content-area.stories.js +0 -1
- package/dist/stories/divider.stories.js +0 -1
- package/dist/stories/dropdown.stories.js +65 -74
- package/dist/stories/grid.stories.js +0 -1
- package/dist/stories/input.stories.js +0 -1
- package/dist/stories/list.stories.js +2 -3
- package/dist/stories/main-nav.stories.js +0 -1
- package/dist/stories/pagination.stories.js +0 -1
- package/dist/stories/radio.stories.js +0 -1
- package/dist/stories/secondary-nav.stories.js +0 -1
- package/dist/stories/select.stories.js +32 -109
- package/dist/stories/table.stories.js +7 -24
- package/dist/stories/tabs.stories.js +0 -1
- package/dist/stories/toggle.stories.js +0 -1
- package/dist/stories/utility-bar.stories.js +6 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +2 -10
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
- package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
- package/dist/types/components/xpl-button/xpl-button.d.ts +0 -6
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
- package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
- package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -16
- package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
- package/dist/types/components.d.ts +21 -276
- package/dist/types/stencil-public-runtime.d.ts +23 -97
- package/loader/index.d.ts +1 -9
- package/loader/package.json +0 -1
- package/package.json +28 -21
- package/LICENSE +0 -21
- package/dist/apollo-core/apollo-core.esm.js.map +0 -1
- package/dist/apollo-core/index.esm.js.map +0 -1
- package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
- package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
- package/dist/apollo-core/p-29f4679d.entry.js +0 -2
- package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
- package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
- package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
- package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
- package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
- package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
- package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
- package/dist/apollo-core/p-60d4d252.entry.js +0 -2
- package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
- package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
- package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
- package/dist/apollo-core/p-6acc4122.entry.js +0 -2
- package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
- package/dist/apollo-core/p-787bac91.entry.js +0 -2
- package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
- package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
- package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
- package/dist/apollo-core/p-807d8de9.entry.js +0 -2
- package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
- package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
- package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
- package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
- package/dist/apollo-core/p-db29ebe0.entry.js +0 -2
- package/dist/apollo-core/p-db29ebe0.entry.js.map +0 -1
- package/dist/apollo-core/p-e0541e23.entry.js +0 -2
- package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
- package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
- package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
- package/dist/apollo-core/p-e8953b60.js +0 -3
- package/dist/apollo-core/p-e8953b60.js.map +0 -1
- package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
- package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
- package/dist/cjs/apollo-core.cjs.js.map +0 -1
- package/dist/cjs/index-000e170c.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/v4-14140ff3.js.map +0 -1
- package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
- package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
- package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
- package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
- package/dist/collection/components/xpl-choicelist/choice.js +0 -2
- package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
- package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
- package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
- package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
- package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
- package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
- package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
- package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
- package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
- package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
- package/dist/collection/components/xpl-list/listitem.js +0 -2
- package/dist/collection/components/xpl-list/listitem.js.map +0 -1
- package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
- package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
- package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
- package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
- package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
- package/dist/components/index.d.ts +0 -39
- package/dist/components/index.js +0 -82
- package/dist/components/index.js.map +0 -1
- package/dist/components/v4.js +0 -77
- package/dist/components/v4.js.map +0 -1
- package/dist/components/xpl-application-shell.d.ts +0 -11
- package/dist/components/xpl-application-shell.js +0 -80
- package/dist/components/xpl-application-shell.js.map +0 -1
- package/dist/components/xpl-avatar.d.ts +0 -11
- package/dist/components/xpl-avatar.js +0 -8
- package/dist/components/xpl-avatar.js.map +0 -1
- package/dist/components/xpl-avatar2.js +0 -51
- package/dist/components/xpl-avatar2.js.map +0 -1
- package/dist/components/xpl-backdrop.d.ts +0 -11
- package/dist/components/xpl-backdrop.js +0 -8
- package/dist/components/xpl-backdrop.js.map +0 -1
- package/dist/components/xpl-backdrop2.js +0 -35
- package/dist/components/xpl-backdrop2.js.map +0 -1
- package/dist/components/xpl-badge.d.ts +0 -11
- package/dist/components/xpl-badge.js +0 -8
- package/dist/components/xpl-badge.js.map +0 -1
- package/dist/components/xpl-badge2.js +0 -38
- package/dist/components/xpl-badge2.js.map +0 -1
- package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
- package/dist/components/xpl-breadcrumb-item.js +0 -36
- package/dist/components/xpl-breadcrumb-item.js.map +0 -1
- package/dist/components/xpl-breadcrumbs.d.ts +0 -11
- package/dist/components/xpl-breadcrumbs.js +0 -31
- package/dist/components/xpl-breadcrumbs.js.map +0 -1
- package/dist/components/xpl-button-row.d.ts +0 -11
- package/dist/components/xpl-button-row.js +0 -50
- package/dist/components/xpl-button-row.js.map +0 -1
- package/dist/components/xpl-button.d.ts +0 -11
- package/dist/components/xpl-button.js +0 -8
- package/dist/components/xpl-button.js.map +0 -1
- package/dist/components/xpl-button2.js +0 -85
- package/dist/components/xpl-button2.js.map +0 -1
- package/dist/components/xpl-checkbox.d.ts +0 -11
- package/dist/components/xpl-checkbox.js +0 -8
- package/dist/components/xpl-checkbox.js.map +0 -1
- package/dist/components/xpl-checkbox2.js +0 -59
- package/dist/components/xpl-checkbox2.js.map +0 -1
- package/dist/components/xpl-choicelist.d.ts +0 -11
- package/dist/components/xpl-choicelist.js +0 -85
- package/dist/components/xpl-choicelist.js.map +0 -1
- package/dist/components/xpl-content-area.d.ts +0 -11
- package/dist/components/xpl-content-area.js +0 -34
- package/dist/components/xpl-content-area.js.map +0 -1
- package/dist/components/xpl-dashboard.d.ts +0 -11
- package/dist/components/xpl-dashboard.js +0 -31
- package/dist/components/xpl-dashboard.js.map +0 -1
- package/dist/components/xpl-data-card.d.ts +0 -11
- package/dist/components/xpl-data-card.js +0 -80
- package/dist/components/xpl-data-card.js.map +0 -1
- package/dist/components/xpl-divider.d.ts +0 -11
- package/dist/components/xpl-divider.js +0 -36
- package/dist/components/xpl-divider.js.map +0 -1
- package/dist/components/xpl-dropdown-group.d.ts +0 -11
- package/dist/components/xpl-dropdown-group.js +0 -8
- package/dist/components/xpl-dropdown-group.js.map +0 -1
- package/dist/components/xpl-dropdown-group2.js +0 -69
- package/dist/components/xpl-dropdown-group2.js.map +0 -1
- package/dist/components/xpl-dropdown-heading.d.ts +0 -11
- package/dist/components/xpl-dropdown-heading.js +0 -8
- package/dist/components/xpl-dropdown-heading.js.map +0 -1
- package/dist/components/xpl-dropdown-heading2.js +0 -31
- package/dist/components/xpl-dropdown-heading2.js.map +0 -1
- package/dist/components/xpl-dropdown-option.d.ts +0 -11
- package/dist/components/xpl-dropdown-option.js +0 -8
- package/dist/components/xpl-dropdown-option.js.map +0 -1
- package/dist/components/xpl-dropdown-option2.js +0 -89
- package/dist/components/xpl-dropdown-option2.js.map +0 -1
- package/dist/components/xpl-dropdown.d.ts +0 -11
- package/dist/components/xpl-dropdown.js +0 -8
- package/dist/components/xpl-dropdown.js.map +0 -1
- package/dist/components/xpl-dropdown2.js +0 -147
- package/dist/components/xpl-dropdown2.js.map +0 -1
- package/dist/components/xpl-grid-item.d.ts +0 -11
- package/dist/components/xpl-grid-item.js +0 -45
- package/dist/components/xpl-grid-item.js.map +0 -1
- package/dist/components/xpl-grid.d.ts +0 -11
- package/dist/components/xpl-grid.js +0 -50
- package/dist/components/xpl-grid.js.map +0 -1
- package/dist/components/xpl-icon.d.ts +0 -11
- package/dist/components/xpl-icon.js +0 -8
- package/dist/components/xpl-icon.js.map +0 -1
- package/dist/components/xpl-icon2.js +0 -1850
- package/dist/components/xpl-icon2.js.map +0 -1
- package/dist/components/xpl-input.d.ts +0 -11
- package/dist/components/xpl-input.js +0 -2574
- package/dist/components/xpl-input.js.map +0 -1
- package/dist/components/xpl-list.d.ts +0 -11
- package/dist/components/xpl-list.js +0 -73
- package/dist/components/xpl-list.js.map +0 -1
- package/dist/components/xpl-main-nav.d.ts +0 -11
- package/dist/components/xpl-main-nav.js +0 -44
- package/dist/components/xpl-main-nav.js.map +0 -1
- package/dist/components/xpl-nav-item.d.ts +0 -11
- package/dist/components/xpl-nav-item.js +0 -44
- package/dist/components/xpl-nav-item.js.map +0 -1
- package/dist/components/xpl-pagination.d.ts +0 -11
- package/dist/components/xpl-pagination.js +0 -100
- package/dist/components/xpl-pagination.js.map +0 -1
- package/dist/components/xpl-radio.d.ts +0 -11
- package/dist/components/xpl-radio.js +0 -8
- package/dist/components/xpl-radio.js.map +0 -1
- package/dist/components/xpl-radio2.js +0 -57
- package/dist/components/xpl-radio2.js.map +0 -1
- package/dist/components/xpl-secondary-nav.d.ts +0 -11
- package/dist/components/xpl-secondary-nav.js +0 -31
- package/dist/components/xpl-secondary-nav.js.map +0 -1
- package/dist/components/xpl-select.d.ts +0 -11
- package/dist/components/xpl-select.js +0 -704
- package/dist/components/xpl-select.js.map +0 -1
- package/dist/components/xpl-table.d.ts +0 -11
- package/dist/components/xpl-table.js +0 -170
- package/dist/components/xpl-table.js.map +0 -1
- package/dist/components/xpl-tag.d.ts +0 -11
- package/dist/components/xpl-tag.js +0 -8
- package/dist/components/xpl-tag.js.map +0 -1
- package/dist/components/xpl-tag2.js +0 -33
- package/dist/components/xpl-tag2.js.map +0 -1
- package/dist/components/xpl-toggle.d.ts +0 -11
- package/dist/components/xpl-toggle.js +0 -61
- package/dist/components/xpl-toggle.js.map +0 -1
- package/dist/components/xpl-utility-bar.d.ts +0 -11
- package/dist/components/xpl-utility-bar.js +0 -55
- package/dist/components/xpl-utility-bar.js.map +0 -1
- package/dist/esm/apollo-core.js.map +0 -1
- package/dist/esm/index-56581b5c.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/v4-929670b7.js.map +0 -1
- package/dist/esm/xpl-application-shell.entry.js.map +0 -1
- package/dist/esm/xpl-avatar_15.entry.js +0 -2260
- package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
- package/dist/esm/xpl-backdrop.entry.js.map +0 -1
- package/dist/esm/xpl-button-row.entry.js.map +0 -1
- package/dist/esm/xpl-choicelist.entry.js.map +0 -1
- package/dist/esm/xpl-divider.entry.js.map +0 -1
- package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
- package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
- package/dist/esm/xpl-grid-item.entry.js.map +0 -1
- package/dist/esm/xpl-grid.entry.js.map +0 -1
- package/dist/esm/xpl-input.entry.js.map +0 -1
- package/dist/esm/xpl-list.entry.js.map +0 -1
- package/dist/esm/xpl-main-nav.entry.js.map +0 -1
- package/dist/esm/xpl-pagination.entry.js.map +0 -1
- package/dist/esm/xpl-select.entry.js.map +0 -1
- package/dist/esm/xpl-toggle.entry.js.map +0 -1
- package/dist/stories/application-shell.stories.js.map +0 -1
- package/dist/stories/avatar.stories.js.map +0 -1
- package/dist/stories/backdrop.stories.js.map +0 -1
- package/dist/stories/badge.stories.js.map +0 -1
- package/dist/stories/breadcrumbs.stories.js.map +0 -1
- package/dist/stories/button-row.stories.js.map +0 -1
- package/dist/stories/button.stories.js.map +0 -1
- package/dist/stories/checkbox.stories.js.map +0 -1
- package/dist/stories/choicelist.stories.js.map +0 -1
- package/dist/stories/content-area.stories.js.map +0 -1
- package/dist/stories/dashboard.stories.js +0 -51
- package/dist/stories/dashboard.stories.js.map +0 -1
- package/dist/stories/data-card.stories.js +0 -70
- package/dist/stories/data-card.stories.js.map +0 -1
- package/dist/stories/divider.stories.js.map +0 -1
- package/dist/stories/dropdown.stories.js.map +0 -1
- package/dist/stories/grid.stories.js.map +0 -1
- package/dist/stories/icons.stories.js +0 -69
- package/dist/stories/icons.stories.js.map +0 -1
- package/dist/stories/input.stories.js.map +0 -1
- package/dist/stories/list.stories.js.map +0 -1
- package/dist/stories/main-nav.stories.js.map +0 -1
- package/dist/stories/pagination.stories.js.map +0 -1
- package/dist/stories/radio.stories.js.map +0 -1
- package/dist/stories/secondary-nav.stories.js.map +0 -1
- package/dist/stories/select.stories.js.map +0 -1
- package/dist/stories/table.stories.js.map +0 -1
- package/dist/stories/tabs.stories.js.map +0 -1
- package/dist/stories/toggle.stories.js.map +0 -1
- package/dist/stories/utility-bar.stories.js.map +0 -1
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
- package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
- package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +0 -11
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
- package/dist/types/components/xpl-list/listitem.d.ts +0 -16
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-54ba5804.js');
|
|
6
|
+
require('./regular-872f5226.js');
|
|
6
7
|
const v4 = require('./v4-14140ff3.js');
|
|
7
8
|
|
|
8
9
|
const HOOKS = [
|
|
@@ -2450,27 +2451,23 @@ const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8
|
|
|
2450
2451
|
const XplInput = class {
|
|
2451
2452
|
constructor(hostRef) {
|
|
2452
2453
|
index.registerInstance(this, hostRef);
|
|
2453
|
-
|
|
2454
|
-
|
|
2454
|
+
/**
|
|
2455
|
+
* See https://flatpickr.js.org/formatting/
|
|
2456
|
+
*/
|
|
2455
2457
|
this.dateFormat = 'Y-m-d';
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
this.maxCharacterCount = undefined;
|
|
2462
|
-
this.min = undefined;
|
|
2458
|
+
/**
|
|
2459
|
+
* For datepicker inputs, whether to allow only a single
|
|
2460
|
+
* date or a range of dates. (Multiple non-consecutive
|
|
2461
|
+
* dates planned to be supported in the future.)
|
|
2462
|
+
*/
|
|
2463
2463
|
this.mode = 'single';
|
|
2464
|
+
/**
|
|
2465
|
+
* Whether to render as a singleline text input or
|
|
2466
|
+
* as a multiline textarea. (If `true`, `pre` and `post`
|
|
2467
|
+
* values will be ignored, if present.)
|
|
2468
|
+
*/
|
|
2464
2469
|
this.multiline = false;
|
|
2465
|
-
this.name = undefined;
|
|
2466
|
-
this.placeholder = undefined;
|
|
2467
|
-
this.post = undefined;
|
|
2468
|
-
this.pre = undefined;
|
|
2469
|
-
this.readonly = undefined;
|
|
2470
|
-
this.required = undefined;
|
|
2471
|
-
this.step = undefined;
|
|
2472
2470
|
this.type = 'text';
|
|
2473
|
-
this.value = undefined;
|
|
2474
2471
|
this.characterCount = 0;
|
|
2475
2472
|
this.passwordVisible = false;
|
|
2476
2473
|
}
|
|
@@ -2520,12 +2517,18 @@ const XplInput = class {
|
|
|
2520
2517
|
this.input = el;
|
|
2521
2518
|
}, required: this.required, step: this.step, type: type, value: this.value })) : (index.h("textarea", { disabled: this.disabled, id: this._id, name: this.name, onInput: () => this.updateCharacterCount(), placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
2522
2519
|
this.input = el;
|
|
2523
|
-
}, required: this.required }, this.value)), this.type === 'date' && (index.h("
|
|
2520
|
+
}, required: this.required }, this.value)), this.type === 'date' && (index.h("span", { class: "xpl-input-calendar" }, index.h("i", { class: "far fa-calendar-alt" }))), this.type === 'password' && (index.h("button", { class: "xpl-input-password", onClick: () => {
|
|
2524
2521
|
this.passwordVisible = !this.passwordVisible;
|
|
2525
|
-
}, role: "presentation" }, index.h("
|
|
2522
|
+
}, role: "presentation" }, index.h("span", { class: "sr-only" }, "Toggle password visibility"), index.h("i", { class: "far fa-eye", style: {
|
|
2523
|
+
display: this.passwordVisible
|
|
2524
|
+
? 'none'
|
|
2525
|
+
: 'block',
|
|
2526
|
+
} }), index.h("i", { class: "far fa-eye-slash", style: {
|
|
2527
|
+
display: this.passwordVisible
|
|
2528
|
+
? 'block'
|
|
2529
|
+
: 'none',
|
|
2530
|
+
} }))), this.post && !this.multiline && (index.h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (index.h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))), 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))));
|
|
2526
2531
|
}
|
|
2527
2532
|
};
|
|
2528
2533
|
|
|
2529
2534
|
exports.xpl_input = XplInput;
|
|
2530
|
-
|
|
2531
|
-
//# sourceMappingURL=xpl-input.cjs.entry.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-54ba5804.js');
|
|
6
|
+
require('./regular-872f5226.js');
|
|
6
7
|
|
|
7
8
|
const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
|
|
8
9
|
const hasRight = avatars || badges || subtext;
|
|
@@ -12,7 +13,7 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
|
|
|
12
13
|
return index.h("li", null, d);
|
|
13
14
|
}
|
|
14
15
|
else {
|
|
15
|
-
return (index.h("li", null, index.h("
|
|
16
|
+
return (index.h("li", null, index.h("span", { class: `far fa-${d.icon}` }), ' ', d.text));
|
|
16
17
|
}
|
|
17
18
|
}))))), hasRight && (index.h("div", { class: "xpl-list-right" }, subtext && (index.h("div", { class: "xpl-list-item-subtext" }, subtext)), avatars && (index.h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (index.h("img", { src: a, alt: "" }))))), badges &&
|
|
18
19
|
badges.map((b) => {
|
|
@@ -28,6 +29,28 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
|
|
|
28
29
|
const XplList = class {
|
|
29
30
|
constructor(hostRef) {
|
|
30
31
|
index.registerInstance(this, hostRef);
|
|
32
|
+
/**
|
|
33
|
+
* `items` should be an array of objects with the following signature:
|
|
34
|
+
* {
|
|
35
|
+
* avatar?: string; // The URL of the avatar, or the placeholder initials (ex. "SPD").
|
|
36
|
+
* avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right.
|
|
37
|
+
* badges?: string[] | { // An array of strings or badge-like objects to be displayed as badges
|
|
38
|
+
* dot?: boolean; // in a group on the right. See <xpl-badge> for more details.
|
|
39
|
+
* text: string;
|
|
40
|
+
* variant?: string;
|
|
41
|
+
* }[];
|
|
42
|
+
* href?: string; // A URL, if this list item is meant to link somewhere.
|
|
43
|
+
* title: string; // The text to be displayed for the list item.
|
|
44
|
+
* metadata?: string[] | { // An array of strings or strings with icons (reference the allowed
|
|
45
|
+
* icon: string; // Font Awesome icons) to be displayed as metadata below the title.
|
|
46
|
+
* text: string;
|
|
47
|
+
* }[];
|
|
48
|
+
* subtext?: string; // Subtext to be displayed on the right.
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering
|
|
52
|
+
* the right-hand side of the list item.
|
|
53
|
+
*/
|
|
31
54
|
this.items = [];
|
|
32
55
|
}
|
|
33
56
|
render() {
|
|
@@ -36,5 +59,3 @@ const XplList = class {
|
|
|
36
59
|
};
|
|
37
60
|
|
|
38
61
|
exports.xpl_list = XplList;
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=xpl-list.cjs.entry.js.map
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-54ba5804.js');
|
|
6
6
|
|
|
7
7
|
const XplMainNav = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.navWidth = index.createEvent(this, "navWidth", 7);
|
|
11
|
+
/**
|
|
12
|
+
* @property {string} width - The width of the Main Nav.
|
|
13
|
+
*/
|
|
11
14
|
this.width = 'default';
|
|
12
15
|
}
|
|
13
16
|
navWidthHandler() {
|
|
@@ -25,5 +28,3 @@ const XplMainNav = class {
|
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
exports.xpl_main_nav = XplMainNav;
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=xpl-main-nav.cjs.entry.js.map
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-54ba5804.js');
|
|
6
6
|
|
|
7
7
|
const XplPagination = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.page = index.createEvent(this, "page", 7);
|
|
11
|
+
this.current = 1;
|
|
11
12
|
/**
|
|
12
13
|
* Private `_goto` method respects the `waitForCallback` prop --
|
|
13
14
|
* it will always emit the `page` event, but won't actually update
|
|
@@ -29,10 +30,6 @@ const XplPagination = class {
|
|
|
29
30
|
if (this.current < numPages)
|
|
30
31
|
this._goto(this.current + 1);
|
|
31
32
|
};
|
|
32
|
-
this.total = undefined;
|
|
33
|
-
this.perPage = undefined;
|
|
34
|
-
this.waitForCallback = undefined;
|
|
35
|
-
this.current = 1;
|
|
36
33
|
}
|
|
37
34
|
/**
|
|
38
35
|
* Calling `goto` with a page number (which should probably be
|
|
@@ -77,5 +74,3 @@ const XplPagination = class {
|
|
|
77
74
|
};
|
|
78
75
|
|
|
79
76
|
exports.xpl_pagination = XplPagination;
|
|
80
|
-
|
|
81
|
-
//# sourceMappingURL=xpl-pagination.cjs.entry.js.map
|
|
@@ -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-54ba5804.js');
|
|
6
6
|
const v4 = require('./v4-14140ff3.js');
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -456,23 +456,35 @@ function tagWidth(text) {
|
|
|
456
456
|
const XplSelect = class {
|
|
457
457
|
constructor(hostRef) {
|
|
458
458
|
index.registerInstance(this, hostRef);
|
|
459
|
-
|
|
459
|
+
/**
|
|
460
|
+
* An array of choices for the user to choose from.
|
|
461
|
+
* Each choice should be of the form:
|
|
462
|
+
* {
|
|
463
|
+
* label: string;
|
|
464
|
+
* href?: string;
|
|
465
|
+
* value?: string;
|
|
466
|
+
* isGroupHeading?: boolean;
|
|
467
|
+
* }
|
|
468
|
+
*/
|
|
460
469
|
this.choices = [];
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
this.label = undefined;
|
|
470
|
+
/**
|
|
471
|
+
* Whether to allow a single choice or multiple choices.
|
|
472
|
+
*/
|
|
465
473
|
this.mode = 'single';
|
|
466
|
-
|
|
467
|
-
|
|
474
|
+
/**
|
|
475
|
+
* Only used in multi-choice selects. If `true`,
|
|
476
|
+
* badges representing selections that would overflow the
|
|
477
|
+
* container are replaced with "+x more" (where x is the
|
|
478
|
+
* number not shown). If `false`, the container's height will
|
|
479
|
+
* adjust to show all badges representing selections.
|
|
480
|
+
*/
|
|
468
481
|
this.truncate = true;
|
|
469
|
-
this.selectedValues = undefined;
|
|
470
482
|
this.active = false;
|
|
471
483
|
this.id = v4.v4();
|
|
472
484
|
this.keepFocus = false;
|
|
473
|
-
this.selected = undefined;
|
|
474
485
|
this.value = '';
|
|
475
486
|
this.displayValue = '';
|
|
487
|
+
// infinity isn't real, it's just a mathematical construct, it can't hurt you
|
|
476
488
|
this.visibleChoices = Infinity;
|
|
477
489
|
}
|
|
478
490
|
componentWillLoad() {
|
|
@@ -480,27 +492,6 @@ const XplSelect = class {
|
|
|
480
492
|
this.choices && this.choices.length > 0
|
|
481
493
|
? this.choices.map(() => false)
|
|
482
494
|
: [];
|
|
483
|
-
if (this.selectedValues) {
|
|
484
|
-
const isSingleMode = this.mode === 'single';
|
|
485
|
-
if (isSingleMode) {
|
|
486
|
-
this.choices.forEach((choice) => {
|
|
487
|
-
const shouldBeSelected = choice.value.includes(this.selectedValues) ||
|
|
488
|
-
choice.label.includes(this.selectedValues);
|
|
489
|
-
if (shouldBeSelected)
|
|
490
|
-
choice.isSelected = true;
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
this.choices.forEach(({ options }) => {
|
|
495
|
-
options.forEach((option) => {
|
|
496
|
-
const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
|
|
497
|
-
if (shouldBeSelected)
|
|
498
|
-
option.isSelected = true;
|
|
499
|
-
});
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
this.update();
|
|
503
|
-
}
|
|
504
495
|
window.addEventListener('click', (e) => {
|
|
505
496
|
const el = e.target;
|
|
506
497
|
const select = el.closest('.xpl-select');
|
|
@@ -563,9 +554,6 @@ const XplSelect = class {
|
|
|
563
554
|
.join('|');
|
|
564
555
|
}
|
|
565
556
|
}
|
|
566
|
-
handleValueStateChange(newValue) {
|
|
567
|
-
this.selectChange.emit(newValue);
|
|
568
|
-
}
|
|
569
557
|
render() {
|
|
570
558
|
let visibleChoices = 0;
|
|
571
559
|
return (index.h(index.Host, { class: {
|
|
@@ -596,9 +584,8 @@ const XplSelect = class {
|
|
|
596
584
|
? this.selected.map((v, i) => {
|
|
597
585
|
if (!v)
|
|
598
586
|
return null;
|
|
599
|
-
if (visibleChoices >= this.visibleChoices)
|
|
587
|
+
if (visibleChoices >= this.visibleChoices)
|
|
600
588
|
return null;
|
|
601
|
-
}
|
|
602
589
|
visibleChoices++;
|
|
603
590
|
return (index.h("xpl-tag", { onClose: () => {
|
|
604
591
|
this.flattenChoices().forEach((v, j) => {
|
|
@@ -628,16 +615,11 @@ const XplSelect = class {
|
|
|
628
615
|
const { dropdown } = this;
|
|
629
616
|
if (!this.disabled)
|
|
630
617
|
dropdown.isOpen = !dropdown.isOpen;
|
|
631
|
-
}
|
|
618
|
+
} })), !this.disabled && (index.h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
|
|
632
619
|
this.update();
|
|
633
620
|
this.maybeTruncateChoices();
|
|
634
|
-
} })), 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",
|
|
621
|
+
} })), 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 })));
|
|
635
622
|
}
|
|
636
|
-
static get watchers() { return {
|
|
637
|
-
"value": ["handleValueStateChange"]
|
|
638
|
-
}; }
|
|
639
623
|
};
|
|
640
624
|
|
|
641
625
|
exports.xpl_select = XplSelect;
|
|
642
|
-
|
|
643
|
-
//# sourceMappingURL=xpl-select.cjs.entry.js.map
|
|
@@ -2,18 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-54ba5804.js');
|
|
6
6
|
const v4 = require('./v4-14140ff3.js');
|
|
7
7
|
|
|
8
8
|
const XplToggle = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.heading = undefined;
|
|
15
|
-
this.label = undefined;
|
|
16
|
-
this.name = undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The size of the toggle -- `default` or `small`
|
|
13
|
+
*/
|
|
17
14
|
this.variant = 'default';
|
|
18
15
|
this.id = v4.v4();
|
|
19
16
|
}
|
|
@@ -35,5 +32,3 @@ const XplToggle = class {
|
|
|
35
32
|
};
|
|
36
33
|
|
|
37
34
|
exports.xpl_toggle = XplToggle;
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=xpl-toggle.cjs.entry.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./components/xpl-icon/xpl-icon.js",
|
|
4
|
-
"./components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js",
|
|
5
3
|
"./components/xpl-application-shell/xpl-application-shell.js",
|
|
6
4
|
"./components/xpl-avatar/xpl-avatar.js",
|
|
7
5
|
"./components/xpl-backdrop/xpl-backdrop.js",
|
|
@@ -13,12 +11,11 @@
|
|
|
13
11
|
"./components/xpl-checkbox/xpl-checkbox.js",
|
|
14
12
|
"./components/xpl-choicelist/xpl-choicelist.js",
|
|
15
13
|
"./components/xpl-content-area/xpl-content-area.js",
|
|
16
|
-
"./components/xpl-dashboard/xpl-dashboard.js",
|
|
17
|
-
"./components/xpl-data-card/xpl-data-card.js",
|
|
18
14
|
"./components/xpl-divider/xpl-divider.js",
|
|
19
15
|
"./components/xpl-dropdown/xpl-dropdown.js",
|
|
20
16
|
"./components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js",
|
|
21
17
|
"./components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js",
|
|
18
|
+
"./components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js",
|
|
22
19
|
"./components/xpl-grid/xpl-grid.js",
|
|
23
20
|
"./components/xpl-grid-item/xpl-grid-item.js",
|
|
24
21
|
"./components/xpl-input/xpl-input.js",
|
|
@@ -36,8 +33,8 @@
|
|
|
36
33
|
],
|
|
37
34
|
"compiler": {
|
|
38
35
|
"name": "@stencil/core",
|
|
39
|
-
"version": "
|
|
40
|
-
"typescriptVersion": "4.
|
|
36
|
+
"version": "2.8.0",
|
|
37
|
+
"typescriptVersion": "4.2.3"
|
|
41
38
|
},
|
|
42
39
|
"collections": [],
|
|
43
40
|
"bundles": []
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component, Host, h, Listen, State, Prop } from '@stencil/core';
|
|
2
2
|
export class XplApplicationShell {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
|
|
6
|
+
*/
|
|
4
7
|
this.withSubnav = false;
|
|
8
|
+
/**
|
|
9
|
+
* @property {boolean} - Whether or not the Grid should have space for a utility bar
|
|
10
|
+
*/
|
|
5
11
|
this.withUtility = true;
|
|
12
|
+
/**
|
|
13
|
+
* @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
|
|
14
|
+
*/
|
|
6
15
|
this.navWidth = 'default';
|
|
7
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @state {boolean} - Whether or not the main nav is open, updates when the nav-open envent is emitted.
|
|
18
|
+
*/
|
|
8
19
|
this.navOpen = true;
|
|
9
20
|
}
|
|
10
21
|
closeNavOnMobile() {
|
|
@@ -24,12 +35,6 @@ export class XplApplicationShell {
|
|
|
24
35
|
connectedCallback() {
|
|
25
36
|
this.closeNavOnMobile();
|
|
26
37
|
}
|
|
27
|
-
componentWillLoad() {
|
|
28
|
-
this.navOpen =
|
|
29
|
-
this.isNavOpenAtStartup !== undefined
|
|
30
|
-
? this.isNavOpenAtStartup
|
|
31
|
-
: this.navOpen;
|
|
32
|
-
}
|
|
33
38
|
render() {
|
|
34
39
|
let applicationShellClasses = 'xpl-application-shell';
|
|
35
40
|
if (this.withUtility)
|
|
@@ -38,126 +43,105 @@ export class XplApplicationShell {
|
|
|
38
43
|
navClasses += this.navOpen
|
|
39
44
|
? ` xpl-application-shell__nav--${this.navWidth}--open`
|
|
40
45
|
: ` xpl-application-shell__nav--${this.navWidth}`;
|
|
41
|
-
return (h(Host, { class: applicationShellClasses },
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
return (h(Host, { class: applicationShellClasses },
|
|
47
|
+
h("div", { class: navClasses },
|
|
48
|
+
h("slot", { name: "nav" })),
|
|
49
|
+
h("div", { class: "xpl-application-shell__subnav" },
|
|
50
|
+
h("slot", { name: "subnav" })),
|
|
51
|
+
h("div", { class: "xpl-application-shell__utility" },
|
|
52
|
+
h("slot", { name: "utility" })),
|
|
53
|
+
h("div", { class: "xpl-application-shell__content" },
|
|
54
|
+
h("slot", { name: "content" })),
|
|
55
|
+
h("xpl-backdrop", { onClick: () => this.navToggleHandler(), class: {
|
|
56
|
+
'xpl-application-shell__backdrop--open': this.navOpen,
|
|
57
|
+
}, relative: true })));
|
|
44
58
|
}
|
|
45
59
|
static get is() { return "xpl-application-shell"; }
|
|
46
|
-
static get properties() {
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"references": {}
|
|
55
|
-
},
|
|
56
|
-
"required": false,
|
|
57
|
-
"optional": false,
|
|
58
|
-
"docs": {
|
|
59
|
-
"tags": [{
|
|
60
|
-
"name": "property",
|
|
61
|
-
"text": "{boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar"
|
|
62
|
-
}],
|
|
63
|
-
"text": ""
|
|
64
|
-
},
|
|
65
|
-
"attribute": "with-subnav",
|
|
66
|
-
"reflect": false,
|
|
67
|
-
"defaultValue": "false"
|
|
60
|
+
static get properties() { return {
|
|
61
|
+
"withSubnav": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "boolean",
|
|
66
|
+
"resolved": "boolean",
|
|
67
|
+
"references": {}
|
|
68
68
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"required": false,
|
|
78
|
-
"optional": false,
|
|
79
|
-
"docs": {
|
|
80
|
-
"tags": [{
|
|
81
|
-
"name": "property",
|
|
82
|
-
"text": "{boolean} - Whether or not the Grid should have space for a utility bar"
|
|
83
|
-
}],
|
|
84
|
-
"text": ""
|
|
85
|
-
},
|
|
86
|
-
"attribute": "with-utility",
|
|
87
|
-
"reflect": false,
|
|
88
|
-
"defaultValue": "true"
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [{
|
|
73
|
+
"text": "{boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar",
|
|
74
|
+
"name": "property"
|
|
75
|
+
}],
|
|
76
|
+
"text": ""
|
|
89
77
|
},
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"tags": [{
|
|
102
|
-
"name": "property",
|
|
103
|
-
"text": "{string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted."
|
|
104
|
-
}],
|
|
105
|
-
"text": ""
|
|
106
|
-
},
|
|
107
|
-
"attribute": "nav-width",
|
|
108
|
-
"reflect": false,
|
|
109
|
-
"defaultValue": "'default'"
|
|
78
|
+
"attribute": "with-subnav",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "false"
|
|
81
|
+
},
|
|
82
|
+
"withUtility": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "boolean",
|
|
87
|
+
"resolved": "boolean",
|
|
88
|
+
"references": {}
|
|
110
89
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [{
|
|
94
|
+
"text": "{boolean} - Whether or not the Grid should have space for a utility bar",
|
|
95
|
+
"name": "property"
|
|
96
|
+
}],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "with-utility",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "true"
|
|
102
|
+
},
|
|
103
|
+
"navWidth": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "string",
|
|
108
|
+
"resolved": "string",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [{
|
|
115
|
+
"text": "{string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.",
|
|
116
|
+
"name": "property"
|
|
117
|
+
}],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"attribute": "nav-width",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "'default'"
|
|
123
|
+
}
|
|
124
|
+
}; }
|
|
125
|
+
static get states() { return {
|
|
126
|
+
"navOpen": {}
|
|
127
|
+
}; }
|
|
128
|
+
static get listeners() { return [{
|
|
129
|
+
"name": "navOpen",
|
|
130
|
+
"method": "navToggleHandler",
|
|
131
|
+
"target": undefined,
|
|
132
|
+
"capture": false,
|
|
133
|
+
"passive": false
|
|
134
|
+
}, {
|
|
135
|
+
"name": "navWidth",
|
|
136
|
+
"method": "navWithHandler",
|
|
137
|
+
"target": undefined,
|
|
138
|
+
"capture": false,
|
|
139
|
+
"passive": false
|
|
140
|
+
}, {
|
|
141
|
+
"name": "resize",
|
|
142
|
+
"method": "onWindowResize",
|
|
143
|
+
"target": "window",
|
|
144
|
+
"capture": false,
|
|
145
|
+
"passive": true
|
|
146
|
+
}]; }
|
|
162
147
|
}
|
|
163
|
-
//# sourceMappingURL=xpl-application-shell.js.map
|