@xplortech/apollo-core 1.0.0-beta.18 → 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 -51
- 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 -306
- 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 -51
- 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 -21
- 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-da5a8e74.entry.js +0 -2
- package/dist/apollo-core/p-da5a8e74.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 -712
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, F as Fragment } from './index-3df6db84.js';
|
|
2
|
+
import './regular-86225e9d.js';
|
|
2
3
|
|
|
3
4
|
const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
|
|
4
5
|
const hasRight = avatars || badges || subtext;
|
|
@@ -8,7 +9,7 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
|
|
|
8
9
|
return h("li", null, d);
|
|
9
10
|
}
|
|
10
11
|
else {
|
|
11
|
-
return (h("li", null, h("
|
|
12
|
+
return (h("li", null, h("span", { class: `far fa-${d.icon}` }), ' ', d.text));
|
|
12
13
|
}
|
|
13
14
|
}))))), hasRight && (h("div", { class: "xpl-list-right" }, subtext && (h("div", { class: "xpl-list-item-subtext" }, subtext)), avatars && (h("div", { class: "xpl-avatar-group xpl-avatar-group--s" }, avatars.map((a) => (h("img", { src: a, alt: "" }))))), badges &&
|
|
14
15
|
badges.map((b) => {
|
|
@@ -24,6 +25,28 @@ const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata,
|
|
|
24
25
|
const XplList = class {
|
|
25
26
|
constructor(hostRef) {
|
|
26
27
|
registerInstance(this, hostRef);
|
|
28
|
+
/**
|
|
29
|
+
* `items` should be an array of objects with the following signature:
|
|
30
|
+
* {
|
|
31
|
+
* avatar?: string; // The URL of the avatar, or the placeholder initials (ex. "SPD").
|
|
32
|
+
* avatars?: string[]; // The URLs of multiple avatars to be displayed in a group on the right.
|
|
33
|
+
* badges?: string[] | { // An array of strings or badge-like objects to be displayed as badges
|
|
34
|
+
* dot?: boolean; // in a group on the right. See <xpl-badge> for more details.
|
|
35
|
+
* text: string;
|
|
36
|
+
* variant?: string;
|
|
37
|
+
* }[];
|
|
38
|
+
* href?: string; // A URL, if this list item is meant to link somewhere.
|
|
39
|
+
* title: string; // The text to be displayed for the list item.
|
|
40
|
+
* metadata?: string[] | { // An array of strings or strings with icons (reference the allowed
|
|
41
|
+
* icon: string; // Font Awesome icons) to be displayed as metadata below the title.
|
|
42
|
+
* text: string;
|
|
43
|
+
* }[];
|
|
44
|
+
* subtext?: string; // Subtext to be displayed on the right.
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* - Note that you should *only use one of* `avatars`, `badges`, or `subtext`, to avoid cluttering
|
|
48
|
+
* the right-hand side of the list item.
|
|
49
|
+
*/
|
|
27
50
|
this.items = [];
|
|
28
51
|
}
|
|
29
52
|
render() {
|
|
@@ -32,5 +55,3 @@ const XplList = class {
|
|
|
32
55
|
};
|
|
33
56
|
|
|
34
57
|
export { XplList as xpl_list };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=xpl-list.entry.js.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-3df6db84.js';
|
|
2
2
|
|
|
3
3
|
const XplMainNav = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
6
|
this.navWidth = createEvent(this, "navWidth", 7);
|
|
7
|
+
/**
|
|
8
|
+
* @property {string} width - The width of the Main Nav.
|
|
9
|
+
*/
|
|
7
10
|
this.width = 'default';
|
|
8
11
|
}
|
|
9
12
|
navWidthHandler() {
|
|
@@ -21,5 +24,3 @@ const XplMainNav = class {
|
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
export { XplMainNav as xpl_main_nav };
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=xpl-main-nav.entry.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-3df6db84.js';
|
|
2
2
|
|
|
3
3
|
const XplPagination = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
6
|
this.page = createEvent(this, "page", 7);
|
|
7
|
+
this.current = 1;
|
|
7
8
|
/**
|
|
8
9
|
* Private `_goto` method respects the `waitForCallback` prop --
|
|
9
10
|
* it will always emit the `page` event, but won't actually update
|
|
@@ -25,10 +26,6 @@ const XplPagination = class {
|
|
|
25
26
|
if (this.current < numPages)
|
|
26
27
|
this._goto(this.current + 1);
|
|
27
28
|
};
|
|
28
|
-
this.total = undefined;
|
|
29
|
-
this.perPage = undefined;
|
|
30
|
-
this.waitForCallback = undefined;
|
|
31
|
-
this.current = 1;
|
|
32
29
|
}
|
|
33
30
|
/**
|
|
34
31
|
* Calling `goto` with a page number (which should probably be
|
|
@@ -73,5 +70,3 @@ const XplPagination = class {
|
|
|
73
70
|
};
|
|
74
71
|
|
|
75
72
|
export { XplPagination as xpl_pagination };
|
|
76
|
-
|
|
77
|
-
//# sourceMappingURL=xpl-pagination.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3df6db84.js';
|
|
2
2
|
import { v as v4 } from './v4-929670b7.js';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -452,58 +452,42 @@ function tagWidth(text) {
|
|
|
452
452
|
const XplSelect = class {
|
|
453
453
|
constructor(hostRef) {
|
|
454
454
|
registerInstance(this, hostRef);
|
|
455
|
-
|
|
455
|
+
/**
|
|
456
|
+
* An array of choices for the user to choose from.
|
|
457
|
+
* Each choice should be of the form:
|
|
458
|
+
* {
|
|
459
|
+
* label: string;
|
|
460
|
+
* href?: string;
|
|
461
|
+
* value?: string;
|
|
462
|
+
* isGroupHeading?: boolean;
|
|
463
|
+
* }
|
|
464
|
+
*/
|
|
456
465
|
this.choices = [];
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
this.label = undefined;
|
|
466
|
+
/**
|
|
467
|
+
* Whether to allow a single choice or multiple choices.
|
|
468
|
+
*/
|
|
461
469
|
this.mode = 'single';
|
|
462
|
-
|
|
463
|
-
|
|
470
|
+
/**
|
|
471
|
+
* Only used in multi-choice selects. If `true`,
|
|
472
|
+
* badges representing selections that would overflow the
|
|
473
|
+
* container are replaced with "+x more" (where x is the
|
|
474
|
+
* number not shown). If `false`, the container's height will
|
|
475
|
+
* adjust to show all badges representing selections.
|
|
476
|
+
*/
|
|
464
477
|
this.truncate = true;
|
|
465
|
-
this.selectedValues = undefined;
|
|
466
478
|
this.active = false;
|
|
467
479
|
this.id = v4();
|
|
468
480
|
this.keepFocus = false;
|
|
469
|
-
this.selected = undefined;
|
|
470
481
|
this.value = '';
|
|
471
482
|
this.displayValue = '';
|
|
483
|
+
// infinity isn't real, it's just a mathematical construct, it can't hurt you
|
|
472
484
|
this.visibleChoices = Infinity;
|
|
473
485
|
}
|
|
474
|
-
/**
|
|
475
|
-
*
|
|
476
|
-
* @param _choices
|
|
477
|
-
*/
|
|
478
|
-
onChoicesChanged(_choices) {
|
|
479
|
-
this.update();
|
|
480
|
-
}
|
|
481
486
|
componentWillLoad() {
|
|
482
487
|
this.selected =
|
|
483
488
|
this.choices && this.choices.length > 0
|
|
484
489
|
? this.choices.map(() => false)
|
|
485
490
|
: [];
|
|
486
|
-
if (this.selectedValues) {
|
|
487
|
-
const isSingleMode = this.mode === 'single';
|
|
488
|
-
if (isSingleMode) {
|
|
489
|
-
const selectedValue = this.selectedValues;
|
|
490
|
-
const shouldBeSelected = this.choices.find((choice) => (choice.value !== undefined
|
|
491
|
-
? choice.value
|
|
492
|
-
: choice.label) === selectedValue);
|
|
493
|
-
if (shouldBeSelected !== undefined)
|
|
494
|
-
shouldBeSelected.isSelected = true;
|
|
495
|
-
}
|
|
496
|
-
else {
|
|
497
|
-
this.choices.forEach(({ options }) => {
|
|
498
|
-
options.forEach((option) => {
|
|
499
|
-
const shouldBeSelected = this.selectedValues.includes(option.value || option.label);
|
|
500
|
-
if (shouldBeSelected)
|
|
501
|
-
option.isSelected = true;
|
|
502
|
-
});
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
this.update();
|
|
506
|
-
}
|
|
507
491
|
window.addEventListener('click', (e) => {
|
|
508
492
|
const el = e.target;
|
|
509
493
|
const select = el.closest('.xpl-select');
|
|
@@ -566,9 +550,6 @@ const XplSelect = class {
|
|
|
566
550
|
.join('|');
|
|
567
551
|
}
|
|
568
552
|
}
|
|
569
|
-
handleValueStateChange(newValue) {
|
|
570
|
-
this.selectChange.emit(newValue);
|
|
571
|
-
}
|
|
572
553
|
render() {
|
|
573
554
|
let visibleChoices = 0;
|
|
574
555
|
return (h(Host, { class: {
|
|
@@ -599,9 +580,8 @@ const XplSelect = class {
|
|
|
599
580
|
? this.selected.map((v, i) => {
|
|
600
581
|
if (!v)
|
|
601
582
|
return null;
|
|
602
|
-
if (visibleChoices >= this.visibleChoices)
|
|
583
|
+
if (visibleChoices >= this.visibleChoices)
|
|
603
584
|
return null;
|
|
604
|
-
}
|
|
605
585
|
visibleChoices++;
|
|
606
586
|
return (h("xpl-tag", { onClose: () => {
|
|
607
587
|
this.flattenChoices().forEach((v, j) => {
|
|
@@ -631,17 +611,11 @@ const XplSelect = class {
|
|
|
631
611
|
const { dropdown } = this;
|
|
632
612
|
if (!this.disabled)
|
|
633
613
|
dropdown.isOpen = !dropdown.isOpen;
|
|
634
|
-
}
|
|
614
|
+
} })), !this.disabled && (h("xpl-dropdown", { options: this.choices, mode: this.mode, triggerId: this.id, update: () => {
|
|
635
615
|
this.update();
|
|
636
616
|
this.maybeTruncateChoices();
|
|
637
|
-
} })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden",
|
|
617
|
+
} })), this.error !== undefined && this.error.length > 0 && (h("label", { class: "xpl-input-error", htmlFor: this.id }, h("svg", { width: "10", height: "11", viewBox: "0 0 10 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z" })), this.error))), h("input", { type: "hidden", value: this.value })));
|
|
638
618
|
}
|
|
639
|
-
static get watchers() { return {
|
|
640
|
-
"choices": ["onChoicesChanged"],
|
|
641
|
-
"value": ["handleValueStateChange"]
|
|
642
|
-
}; }
|
|
643
619
|
};
|
|
644
620
|
|
|
645
621
|
export { XplSelect as xpl_select };
|
|
646
|
-
|
|
647
|
-
//# sourceMappingURL=xpl-select.entry.js.map
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3df6db84.js';
|
|
2
2
|
import { v as v4 } from './v4-929670b7.js';
|
|
3
3
|
|
|
4
4
|
const XplToggle = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.heading = undefined;
|
|
11
|
-
this.label = undefined;
|
|
12
|
-
this.name = undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The size of the toggle -- `default` or `small`
|
|
9
|
+
*/
|
|
13
10
|
this.variant = 'default';
|
|
14
11
|
this.id = v4();
|
|
15
12
|
}
|
|
@@ -31,5 +28,3 @@ const XplToggle = class {
|
|
|
31
28
|
};
|
|
32
29
|
|
|
33
30
|
export { XplToggle as xpl_toggle };
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=xpl-toggle.entry.js.map
|
|
@@ -23,17 +23,11 @@ export default {
|
|
|
23
23
|
type: 'select',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
-
isNavOpenAtStartup: {
|
|
27
|
-
options: [true, false],
|
|
28
|
-
control: {
|
|
29
|
-
type: 'boolean',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
26
|
},
|
|
33
27
|
};
|
|
34
28
|
const renderBlock = (showBlock, block) => showBlock ? block : '';
|
|
35
|
-
const utilityBar =
|
|
36
|
-
<xpl-utility-bar slot="utility" nav-control
|
|
29
|
+
const utilityBar = `
|
|
30
|
+
<xpl-utility-bar slot="utility" nav-control>
|
|
37
31
|
<xpl-breadcrumbs slot="aside">
|
|
38
32
|
<xpl-breadcrumb-item>
|
|
39
33
|
<a href="javascript:;">Locations</a>
|
|
@@ -88,11 +82,10 @@ const secondaryNav = `
|
|
|
88
82
|
</ul>
|
|
89
83
|
</xpl-secondary-nav>
|
|
90
84
|
`;
|
|
91
|
-
export const ApplicationShell = ({
|
|
85
|
+
export const ApplicationShell = ({ navWidth, showSecondaryNav, showUtilityBar, contentSize, }) => {
|
|
92
86
|
return `
|
|
93
87
|
<xpl-application-shell
|
|
94
88
|
${showSecondaryNav ? 'with-subnav' : ''}
|
|
95
|
-
is-nav-open-at-startup=${isNavOpenAtStartup}
|
|
96
89
|
>
|
|
97
90
|
<xpl-main-nav slot="nav" width="${navWidth}">
|
|
98
91
|
<svg
|
|
@@ -230,7 +223,7 @@ export const ApplicationShell = ({ contentSize, isNavOpenAtStartup, navWidth, sh
|
|
|
230
223
|
</xpl-nav-item>
|
|
231
224
|
</ul>
|
|
232
225
|
</xpl-main-nav>
|
|
233
|
-
${renderBlock(showUtilityBar, utilityBar
|
|
226
|
+
${renderBlock(showUtilityBar, utilityBar)}
|
|
234
227
|
${renderBlock(showSecondaryNav, secondaryNav)}
|
|
235
228
|
<xpl-content-area slot="content" size="${contentSize}">
|
|
236
229
|
<div>
|
|
@@ -345,10 +338,10 @@ export const ApplicationShell = ({ contentSize, isNavOpenAtStartup, navWidth, sh
|
|
|
345
338
|
ApplicationShell.parameters = {
|
|
346
339
|
layout: 'fullscreen',
|
|
347
340
|
'web-component': {
|
|
348
|
-
render: ({ navWidth, showSecondaryNav, showUtilityBar, contentSize,
|
|
341
|
+
render: ({ navWidth, showSecondaryNav, showUtilityBar, contentSize, }) => {
|
|
349
342
|
const renderBlock = (showBlock, block) => showBlock ? block : '';
|
|
350
343
|
const utilityBar = `
|
|
351
|
-
<xpl-utility-bar slot="utility" nav-control
|
|
344
|
+
<xpl-utility-bar slot="utility" nav-control>
|
|
352
345
|
<xpl-breadcrumbs slot="aside">
|
|
353
346
|
<xpl-breadcrumb-item>
|
|
354
347
|
<a href="javascript:;">Locations</a>
|
|
@@ -405,7 +398,6 @@ ApplicationShell.parameters = {
|
|
|
405
398
|
return `
|
|
406
399
|
<xpl-application-shell
|
|
407
400
|
${showSecondaryNav ? 'with-subnav' : ''}
|
|
408
|
-
is-nav-open-at-startup=${isNavOpenAtStartup}
|
|
409
401
|
>
|
|
410
402
|
<xpl-main-nav slot="nav" width="${navWidth}">
|
|
411
403
|
<svg
|
|
@@ -768,10 +760,8 @@ ApplicationShell.parameters = {
|
|
|
768
760
|
},
|
|
769
761
|
};
|
|
770
762
|
ApplicationShell.args = {
|
|
771
|
-
contentSize: 'wide',
|
|
772
|
-
isNavOpenAtStartup: true,
|
|
773
763
|
navWidth: 'default',
|
|
774
|
-
showSecondaryNav: true,
|
|
775
764
|
showUtilityBar: true,
|
|
765
|
+
showSecondaryNav: true,
|
|
766
|
+
contentSize: 'wide',
|
|
776
767
|
};
|
|
777
|
-
//# sourceMappingURL=application-shell.stories.js.map
|
|
@@ -27,11 +27,6 @@ export default {
|
|
|
27
27
|
type: 'select',
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
|
-
fullWidth: {
|
|
31
|
-
control: {
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
30
|
icon: {
|
|
36
31
|
options: ['none', 'leading', 'trailing'],
|
|
37
32
|
control: {
|
|
@@ -45,7 +40,7 @@ export default {
|
|
|
45
40
|
},
|
|
46
41
|
},
|
|
47
42
|
};
|
|
48
|
-
export const Button = ({ variant, size, disabled,
|
|
43
|
+
export const Button = ({ variant, size, disabled, state, text, icon, link, }) => {
|
|
49
44
|
let attrs = '';
|
|
50
45
|
if (variant !== 'primary')
|
|
51
46
|
attrs += ` variant="${variant}"`;
|
|
@@ -64,31 +59,25 @@ export const Button = ({ variant, size, disabled, fullWidth, state, text, icon,
|
|
|
64
59
|
`;
|
|
65
60
|
return link ? `<a href='javascript:;'>${textBlock}</a>` : textBlock;
|
|
66
61
|
};
|
|
67
|
-
return `<
|
|
68
|
-
id="123"
|
|
62
|
+
return `<xpl-button
|
|
69
63
|
variant='${variant}'
|
|
70
64
|
size='${size}'
|
|
71
65
|
state='${state}'
|
|
72
|
-
data-test-attribute
|
|
73
|
-
data-test-attribute-with-value="1"
|
|
74
66
|
${attrs}
|
|
75
67
|
${link ? 'link' : ''}
|
|
76
|
-
${fullWidth ? 'full-width' : ''}
|
|
77
68
|
>
|
|
78
69
|
${innerHtml(link)}
|
|
79
|
-
</xpl-button
|
|
70
|
+
</xpl-button>`;
|
|
80
71
|
};
|
|
81
|
-
const HtmlButton = ({ variant, size, state, disabled, text, icon, link
|
|
72
|
+
const HtmlButton = ({ variant, size, state, disabled, text, icon, link }) => {
|
|
82
73
|
const iconSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-coffee"><path d="M18 8h1a4 4 0 0 1 0 8h-1"/><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"/><line x1="6" y1="1" x2="6" y2="4"/><line x1="10" y1="1" x2="10" y2="4"/><line x1="14" y1="1" x2="14" y2="4"/></svg>`;
|
|
83
|
-
|
|
74
|
+
const className = `xpl-button
|
|
84
75
|
xpl-button--${size}
|
|
85
76
|
xpl-button--${state}
|
|
86
77
|
xpl-button--${variant} `;
|
|
87
78
|
let attrs = '';
|
|
88
79
|
if (disabled)
|
|
89
80
|
attrs += ' disabled';
|
|
90
|
-
if (fullWidth)
|
|
91
|
-
className += ' xpl-button--full-width';
|
|
92
81
|
const innerHtml = (link) => {
|
|
93
82
|
const textBlock = `
|
|
94
83
|
${icon == 'leading' ? iconSvg : ''}
|
|
@@ -118,6 +107,4 @@ Button.args = {
|
|
|
118
107
|
state: 'neutral',
|
|
119
108
|
text: 'Get Coffee',
|
|
120
109
|
icon: 'leading',
|
|
121
|
-
fullWidth: true,
|
|
122
110
|
};
|
|
123
|
-
//# sourceMappingURL=button.stories.js.map
|
|
@@ -1,54 +1,47 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
title: 'Components/Dropdown',
|
|
3
3
|
};
|
|
4
|
-
const
|
|
5
|
-
{
|
|
6
|
-
label: 'Choice 1',
|
|
7
|
-
value: 'choice-1',
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
label: 'Choice 2',
|
|
11
|
-
value: 'choice-2',
|
|
12
|
-
isSelected: true,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'Choice 3 (disabled example)',
|
|
16
|
-
value: 'choice-3',
|
|
17
|
-
isDisabled: true,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
label: 'Choice 4',
|
|
21
|
-
value: 'choice-4',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: 'Choice 5',
|
|
25
|
-
value: 'choice-5',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: 'Choice 6',
|
|
29
|
-
value: 'choice-6',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: 'Choice 7',
|
|
33
|
-
value: 'choice-7',
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
export const Simple = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, options, }) => {
|
|
4
|
+
export const Simple = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, }) => {
|
|
37
5
|
const attributes = {
|
|
38
6
|
'close-on-select': closeOnSelect,
|
|
39
7
|
mode,
|
|
40
8
|
open,
|
|
41
9
|
'select-on-focus': selectOnFocus,
|
|
42
10
|
};
|
|
11
|
+
const options = [
|
|
12
|
+
{
|
|
13
|
+
label: 'Choice 1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
label: 'Choice 2',
|
|
17
|
+
isSelected: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: 'Choice 3 (disabled example)',
|
|
21
|
+
isDisabled: true,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Choice 4',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Choice 5',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Choice 6',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: 'Choice 7',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
43
36
|
return `
|
|
44
37
|
<div style="width:75vw">
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
<div style="position: relative; min-width: 200px; width: 100%">
|
|
39
|
+
<xpl-dropdown
|
|
40
|
+
id="xpl-dropdown-simple"
|
|
41
|
+
${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
|
|
42
|
+
>
|
|
43
|
+
</xpl-dropdown>
|
|
44
|
+
</div>
|
|
52
45
|
</div>
|
|
53
46
|
<script>
|
|
54
47
|
element = document.querySelector("#xpl-dropdown-simple");
|
|
@@ -75,7 +68,6 @@ Simple.args = {
|
|
|
75
68
|
isOpen: true,
|
|
76
69
|
mode: 'single',
|
|
77
70
|
selectOnFocus: false,
|
|
78
|
-
options: simpleOptions,
|
|
79
71
|
};
|
|
80
72
|
export const SimpleWithChildren = ({ closeOnSelect, isOpen: open, mode, selectOnFocus, }) => {
|
|
81
73
|
const attributes = {
|
|
@@ -86,39 +78,39 @@ export const SimpleWithChildren = ({ closeOnSelect, isOpen: open, mode, selectOn
|
|
|
86
78
|
};
|
|
87
79
|
return `
|
|
88
80
|
<div style="width:75vw">
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
<div style="position: relative; min-width: 200px; width: 100%">
|
|
82
|
+
<xpl-dropdown
|
|
83
|
+
id="xpl-dropdown-simple"
|
|
84
|
+
${Object.keys(attributes).reduce((acc, curr) => `${acc} ${curr}="${attributes[curr]}"`, '')}
|
|
85
|
+
>
|
|
86
|
+
<xpl-dropdown-option
|
|
87
|
+
selected
|
|
88
|
+
slot="options"
|
|
93
89
|
>
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
disabled
|
|
105
|
-
|
|
106
|
-
>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
</label>
|
|
119
|
-
</xpl-dropdown-option>
|
|
120
|
-
</xpl-dropdown>
|
|
121
|
-
</div>
|
|
90
|
+
<label slot="option">
|
|
91
|
+
<input type="radio" name="animal" value="dog"/>
|
|
92
|
+
dog
|
|
93
|
+
</label>
|
|
94
|
+
</xpl-dropdown-option>
|
|
95
|
+
<xpl-dropdown-option
|
|
96
|
+
disabled
|
|
97
|
+
slot="options"
|
|
98
|
+
>
|
|
99
|
+
<label slot="option">
|
|
100
|
+
<input disabled type="radio" name="animal" value="cat"/>
|
|
101
|
+
cat (disabled)
|
|
102
|
+
</label>
|
|
103
|
+
</xpl-dropdown-option>
|
|
104
|
+
<xpl-dropdown-option
|
|
105
|
+
slot="options"
|
|
106
|
+
>
|
|
107
|
+
<label slot="option">
|
|
108
|
+
<input type="radio" name="animal" value="fish"/>
|
|
109
|
+
fish (selected)
|
|
110
|
+
</label>
|
|
111
|
+
</xpl-dropdown-option>
|
|
112
|
+
</xpl-dropdown>
|
|
113
|
+
</div>
|
|
122
114
|
</div>
|
|
123
115
|
`;
|
|
124
116
|
};
|
|
@@ -383,4 +375,3 @@ GroupSubComponent.parameters = {
|
|
|
383
375
|
GroupSubComponent.args = {
|
|
384
376
|
groupName: 'Choice 1',
|
|
385
377
|
};
|
|
386
|
-
//# sourceMappingURL=dropdown.stories.js.map
|
|
@@ -62,7 +62,7 @@ const script = ({ id, avatar, avatars, badges, metadata, link, title, subtext, }
|
|
|
62
62
|
? [
|
|
63
63
|
'Metadata',
|
|
64
64
|
{
|
|
65
|
-
icon: '
|
|
65
|
+
icon: 'envelope',
|
|
66
66
|
text: 'Metadata w/ Icon',
|
|
67
67
|
},
|
|
68
68
|
]
|
|
@@ -113,7 +113,7 @@ const item = {${avatar !== 'none'
|
|
|
113
113
|
metadata: [
|
|
114
114
|
"Metadata",
|
|
115
115
|
{
|
|
116
|
-
icon: "
|
|
116
|
+
icon: "envelope",
|
|
117
117
|
text: "Metadata w/ Icon",
|
|
118
118
|
},
|
|
119
119
|
],`
|
|
@@ -152,4 +152,3 @@ List.args = {
|
|
|
152
152
|
title: 'List Item',
|
|
153
153
|
subtext: '',
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=list.stories.js.map
|