@xplortech/apollo-core 1.0.0-beta.18 → 1.0.0-beta.3
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 -1509
- 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-13e7d3ea.entry.js +1 -0
- package/dist/apollo-core/p-2ce2fe5c.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +10 -0
- package/dist/apollo-core/p-3ff1ff38.entry.js +1 -0
- package/dist/apollo-core/p-63dd9a65.entry.js +1 -0
- package/dist/apollo-core/p-6c3c1e3d.entry.js +1 -0
- package/dist/apollo-core/p-81a6ce4c.entry.js +1 -0
- package/dist/apollo-core/p-918b0731.entry.js +1 -0
- package/dist/apollo-core/p-97bdb450.entry.js +1 -0
- package/dist/apollo-core/p-a43e2d1f.entry.js +1 -0
- package/dist/apollo-core/p-a7cc4114.entry.js +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +1 -2
- package/dist/apollo-core/p-b6d1b135.entry.js +1 -0
- package/dist/apollo-core/p-bc0ebed2.entry.js +1 -0
- package/dist/apollo-core/p-c8af4ed6.entry.js +1 -0
- package/dist/apollo-core/p-d4aa2fa9.js +1 -0
- package/dist/apollo-core/p-d4e5d3aa.entry.js +1 -0
- package/dist/apollo-core/p-dad11011.entry.js +1 -0
- package/dist/apollo-core/p-db74c99c.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -12
- package/dist/cjs/{index-000e170c.js → index-acf3dd7a.js} +216 -765
- 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 +322 -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 +205 -205
- 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 +20224 -0
- package/dist/esm/apollo-core.js +3 -9
- package/dist/esm/{index-56581b5c.js → index-e3c4bb97.js} +217 -765
- 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 +307 -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 +0 -1
- 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/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-choicelist/choice.d.ts +5 -5
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +10 -9
- 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/listitem.d.ts +19 -15
- package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
- package/dist/types/components/xpl-select/selectchoice.d.ts +3 -0
- 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 -268
- 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-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-icon/xpl-icon.d.ts +0 -17
- /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/button.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
package/dist/esm/v4-929670b7.js
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplApplicationShell = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
|
+
/**
|
|
7
|
+
* @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
|
|
8
|
+
*/
|
|
6
9
|
this.withSubnav = false;
|
|
10
|
+
/**
|
|
11
|
+
* @property {boolean} - Whether or not the Grid should have space for a utility bar
|
|
12
|
+
*/
|
|
7
13
|
this.withUtility = true;
|
|
14
|
+
/**
|
|
15
|
+
* @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
|
|
16
|
+
*/
|
|
8
17
|
this.navWidth = 'default';
|
|
9
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @state {boolean} - Whether or not the main nav is open, updates when the nav-open envent is emitted.
|
|
20
|
+
*/
|
|
10
21
|
this.navOpen = true;
|
|
11
22
|
}
|
|
12
23
|
closeNavOnMobile() {
|
|
@@ -26,12 +37,6 @@ const XplApplicationShell = class {
|
|
|
26
37
|
connectedCallback() {
|
|
27
38
|
this.closeNavOnMobile();
|
|
28
39
|
}
|
|
29
|
-
componentWillLoad() {
|
|
30
|
-
this.navOpen =
|
|
31
|
-
this.isNavOpenAtStartup !== undefined
|
|
32
|
-
? this.isNavOpenAtStartup
|
|
33
|
-
: this.navOpen;
|
|
34
|
-
}
|
|
35
40
|
render() {
|
|
36
41
|
let applicationShellClasses = 'xpl-application-shell';
|
|
37
42
|
if (this.withUtility)
|
|
@@ -47,5 +52,3 @@ const XplApplicationShell = class {
|
|
|
47
52
|
};
|
|
48
53
|
|
|
49
54
|
export { XplApplicationShell as xpl_application_shell };
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=xpl-application-shell.entry.js.map
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e3c4bb97.js';
|
|
2
|
+
import { v as v4 } from './v4-929670b7.js';
|
|
3
|
+
|
|
4
|
+
const XplAvatar = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this.disabled = false;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
let className = 'xpl-avatar';
|
|
11
|
+
if (this.size)
|
|
12
|
+
className += ` xpl-avatar--${this.size}`;
|
|
13
|
+
if (this.color)
|
|
14
|
+
className += ` xpl-avatar--${this.color}`;
|
|
15
|
+
const inner = (h("div", null, this.src ? (h("img", { alt: this.name, src: this.src })) : (h("div", { class: "xpl-avatar__placeholder" }, h("slot", null))), this.status && (h("div", { class: `xpl-avatar__dot--${this.status}` }))));
|
|
16
|
+
return (h(Host, null, this.href && !this.disabled ? (h("a", { href: this.href, class: className, target: this.target }, inner)) : this.href && this.disabled ? (h("div", { class: className + ' xpl-avatar--disabled' }, inner)) : (h("div", { class: className }, inner))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const XplBadge = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
let className = 'xpl-badge';
|
|
26
|
+
if (this.dot)
|
|
27
|
+
className += ' xpl-badge--dot';
|
|
28
|
+
if (this.variant)
|
|
29
|
+
className += ' xpl-badge--' + this.variant;
|
|
30
|
+
return (h(Host, null, h("div", { class: className }, h("slot", null))));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const XplBreadcrumbItem = class {
|
|
35
|
+
constructor(hostRef) {
|
|
36
|
+
registerInstance(this, hostRef);
|
|
37
|
+
// This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
|
|
38
|
+
this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
39
|
+
<path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
|
|
40
|
+
</svg>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { role: "none" }, h("slot", null)), h("span", { innerHTML: `${this.chevron}` })));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const XplBreadcrumbs = class {
|
|
49
|
+
constructor(hostRef) {
|
|
50
|
+
registerInstance(this, hostRef);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, null, h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { role: "list" }, h("slot", null)))));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const XplButton = class {
|
|
58
|
+
constructor(hostRef) {
|
|
59
|
+
registerInstance(this, hostRef);
|
|
60
|
+
/**
|
|
61
|
+
* @property {"default" | "sm" | "xs"} - button size
|
|
62
|
+
*/
|
|
63
|
+
this.size = 'default';
|
|
64
|
+
/**
|
|
65
|
+
* @property {"primary" | "secondary" | "subtle"} - button variant
|
|
66
|
+
*/
|
|
67
|
+
this.variant = 'primary';
|
|
68
|
+
/**
|
|
69
|
+
* @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
|
|
70
|
+
*/
|
|
71
|
+
this.state = 'neutral';
|
|
72
|
+
}
|
|
73
|
+
componentDidRender() {
|
|
74
|
+
const attrs = this.el.attributes;
|
|
75
|
+
const dataAttrs = Object.keys(attrs)
|
|
76
|
+
.filter((k) => {
|
|
77
|
+
const propertyName = attrs[k].name;
|
|
78
|
+
if (propertyName) {
|
|
79
|
+
return (propertyName.includes('data-test') ||
|
|
80
|
+
propertyName.includes('aria-'));
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
})
|
|
84
|
+
.reduce((acc, k) => {
|
|
85
|
+
return Object.assign(Object.assign({}, acc), { [attrs[k].name]: attrs[k].value });
|
|
86
|
+
}, {});
|
|
87
|
+
const child = this.el.querySelector('button');
|
|
88
|
+
Object.keys(dataAttrs).forEach((k) => {
|
|
89
|
+
child.setAttribute(k, dataAttrs[k]);
|
|
90
|
+
this.el.removeAttribute(k);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
let className = `xpl-button
|
|
95
|
+
xpl-button--${this.size}
|
|
96
|
+
xpl-button--${this.state}
|
|
97
|
+
xpl-button--${this.variant}`;
|
|
98
|
+
if (this.iconOnly)
|
|
99
|
+
className += ' xpl-button--icon-only';
|
|
100
|
+
if (this.fullWidth)
|
|
101
|
+
className += ' xpl-button--full-width';
|
|
102
|
+
if (this.link && this.disabled)
|
|
103
|
+
className += ' xpl-button--link-disabled';
|
|
104
|
+
return (h(Host, { class: className },
|
|
105
|
+
/**
|
|
106
|
+
* Conditionally render either an <slot> or <button> element
|
|
107
|
+
* depending on if there's an `link` or not
|
|
108
|
+
*/
|
|
109
|
+
this.link ? (h("slot", null)) : (h("button", { disabled: this.disabled, name: this.name, type: this.type, value: this.value }, h("slot", null)))));
|
|
110
|
+
}
|
|
111
|
+
get el() { return getElement(this); }
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const XplCheckbox = class {
|
|
115
|
+
constructor(hostRef) {
|
|
116
|
+
registerInstance(this, hostRef);
|
|
117
|
+
this.checkboxChange = createEvent(this, "checkboxChange", 7);
|
|
118
|
+
this.id = v4();
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
return (h(Host, { class: {
|
|
122
|
+
'xpl-checkbox-radio-container': true,
|
|
123
|
+
styled: this.styled,
|
|
124
|
+
disabled: this.disabled,
|
|
125
|
+
} }, h("input", { class: "xpl-checkbox", type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: () => this.checkboxChange.emit(this.input.checked), name: this.name, ref: (el) => (this.input = el), required: this.required, value: this.value }), h("label", { class: {
|
|
126
|
+
'xpl-label': true,
|
|
127
|
+
'xpl-label--disabled': this.disabled,
|
|
128
|
+
}, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
|
|
129
|
+
'xpl-description': true,
|
|
130
|
+
'xpl-description--disabled': this.disabled,
|
|
131
|
+
} }, this.description)))));
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const XplContentArea = class {
|
|
136
|
+
constructor(hostRef) {
|
|
137
|
+
registerInstance(this, hostRef);
|
|
138
|
+
/**
|
|
139
|
+
* @property {string} size - The content-area size.
|
|
140
|
+
*/
|
|
141
|
+
this.size = 'wide';
|
|
142
|
+
}
|
|
143
|
+
render() {
|
|
144
|
+
return (h(Host, null, h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { class: "xpl-content-area" }, h("slot", null)))));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const XplNavItem = class {
|
|
149
|
+
constructor(hostRef) {
|
|
150
|
+
registerInstance(this, hostRef);
|
|
151
|
+
this.navOpen = createEvent(this, "navOpen", 7);
|
|
152
|
+
/**
|
|
153
|
+
* @property {boolean} - Whether or not the item should control the main nav state on click
|
|
154
|
+
*/
|
|
155
|
+
this.navControl = false;
|
|
156
|
+
}
|
|
157
|
+
onNavToggle() {
|
|
158
|
+
if (window.innerWidth <= 640) {
|
|
159
|
+
this.navOpen.emit(false);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
render() {
|
|
163
|
+
return (h(Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
164
|
+
if (this.navControl) {
|
|
165
|
+
this.onNavToggle();
|
|
166
|
+
}
|
|
167
|
+
} }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const XplRadio = class {
|
|
172
|
+
constructor(hostRef) {
|
|
173
|
+
registerInstance(this, hostRef);
|
|
174
|
+
this.radioChange = createEvent(this, "radioChange", 7);
|
|
175
|
+
this.id = v4();
|
|
176
|
+
}
|
|
177
|
+
render() {
|
|
178
|
+
return (h(Host, { class: {
|
|
179
|
+
'xpl-checkbox-radio-container': true,
|
|
180
|
+
styled: this.styled,
|
|
181
|
+
disabled: this.disabled,
|
|
182
|
+
} }, h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), h("label", { class: {
|
|
183
|
+
'xpl-label': true,
|
|
184
|
+
'xpl-label--disabled': this.disabled,
|
|
185
|
+
}, htmlFor: this.id }, h("slot", null), this.description && (h("small", { class: {
|
|
186
|
+
'xpl-description': true,
|
|
187
|
+
'xpl-description--disabled': this.disabled,
|
|
188
|
+
} }, this.description)))));
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const XplSecondaryNav = class {
|
|
193
|
+
constructor(hostRef) {
|
|
194
|
+
registerInstance(this, hostRef);
|
|
195
|
+
}
|
|
196
|
+
render() {
|
|
197
|
+
return (h(Host, { class: "xpl-secondary-nav" }, h("nav", { "aria-label": "Secondary Nav" }, h("slot", null))));
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const XplTable = class {
|
|
202
|
+
constructor(hostRef) {
|
|
203
|
+
registerInstance(this, hostRef);
|
|
204
|
+
this.tableSelect = createEvent(this, "tableSelect", 7);
|
|
205
|
+
this.areAllSelected = false;
|
|
206
|
+
this.hasScrolled = false;
|
|
207
|
+
this.selectAll = (e) => {
|
|
208
|
+
const { target } = e;
|
|
209
|
+
if (!(target instanceof HTMLInputElement))
|
|
210
|
+
return;
|
|
211
|
+
const { checked } = target;
|
|
212
|
+
this.areAllSelected = checked;
|
|
213
|
+
this.selected = this.selected.map(() => checked);
|
|
214
|
+
this.onChange();
|
|
215
|
+
};
|
|
216
|
+
this.selectOne = (e, i) => {
|
|
217
|
+
const { target } = e;
|
|
218
|
+
if (!(target instanceof HTMLInputElement))
|
|
219
|
+
return;
|
|
220
|
+
const { checked } = target;
|
|
221
|
+
this.areAllSelected = false;
|
|
222
|
+
this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
|
|
223
|
+
this.onChange();
|
|
224
|
+
};
|
|
225
|
+
this.onChange = () => {
|
|
226
|
+
this.tableSelect.emit({
|
|
227
|
+
selected: this.selected,
|
|
228
|
+
areAllSelected: this.areAllSelected,
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
this.onScroll = () => {
|
|
232
|
+
this.hasScrolled = this.container.scrollLeft > 0;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* TODO: Need to figure out how this interplays with data
|
|
236
|
+
* received from an API/server
|
|
237
|
+
*/
|
|
238
|
+
this.sortBy = (col, ascending = true) => {
|
|
239
|
+
this.rowData.sort((a, b) => {
|
|
240
|
+
const A = a[col];
|
|
241
|
+
const B = b[col];
|
|
242
|
+
if (typeof A === 'number' && typeof B === 'number') {
|
|
243
|
+
const f = ascending ? 1 : -1;
|
|
244
|
+
return A > B ? f : -f;
|
|
245
|
+
}
|
|
246
|
+
return -1;
|
|
247
|
+
});
|
|
248
|
+
this.rowData = Array.from(this.rowData);
|
|
249
|
+
this.render();
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
componentWillLoad() {
|
|
253
|
+
this.areAllSelected = false;
|
|
254
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
255
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
256
|
+
}
|
|
257
|
+
render() {
|
|
258
|
+
let className = 'xpl-table';
|
|
259
|
+
if (this.striped)
|
|
260
|
+
className += ' xpl-table--striped';
|
|
261
|
+
if (this.freeze)
|
|
262
|
+
className += ' xpl-table--freeze';
|
|
263
|
+
if (this.hasScrolled)
|
|
264
|
+
className += ' xpl-table--has-scrolled';
|
|
265
|
+
return (h(Host, null, h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, h("table", { class: className }, this.columns && (h("thead", null, this.columns.map((column, i) => {
|
|
266
|
+
return (h("th", null, this.multiselect && i === 0 ? (h("label", { htmlFor: "__xpl-table-th" }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
267
|
+
// appear indeterminate when at least one but not all
|
|
268
|
+
// are selected
|
|
269
|
+
indeterminate: !this
|
|
270
|
+
.areAllSelected &&
|
|
271
|
+
this.selected.some((a) => a), onChange: (e) => {
|
|
272
|
+
this.selectAll(e);
|
|
273
|
+
}, type: "checkbox" }), column)) : (column)));
|
|
274
|
+
}))), h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
275
|
+
return (h("tr", { class: this.selected &&
|
|
276
|
+
this.selected[rowNum]
|
|
277
|
+
? 'xpl-table-row-selected'
|
|
278
|
+
: '' }, row.map((cell, i) => {
|
|
279
|
+
return (h("td", null, this.multiselect &&
|
|
280
|
+
i === 0 ? (h("label", { htmlFor: '__xpl-table-row-' +
|
|
281
|
+
rowNum }, h("input", { id: '__xpl-table-row-' +
|
|
282
|
+
rowNum, checked: this
|
|
283
|
+
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell }))));
|
|
284
|
+
})));
|
|
285
|
+
}))))));
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
const XplUtilityBar = class {
|
|
290
|
+
constructor(hostRef) {
|
|
291
|
+
registerInstance(this, hostRef);
|
|
292
|
+
this.navOpen = createEvent(this, "navOpen", 7);
|
|
293
|
+
this.open = true;
|
|
294
|
+
this.bars = `
|
|
295
|
+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
|
|
296
|
+
`;
|
|
297
|
+
}
|
|
298
|
+
onNavToggle() {
|
|
299
|
+
this.open = !this.open;
|
|
300
|
+
this.navOpen.emit(this.open);
|
|
301
|
+
}
|
|
302
|
+
render() {
|
|
303
|
+
return (h(Host, null, h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (h("div", null, h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), h("slot", { name: "aside" }))) : (h("slot", { name: "aside" })), h("slot", { name: "main" }))));
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export { XplAvatar as xpl_avatar, XplBadge as xpl_badge, XplBreadcrumbItem as xpl_breadcrumb_item, XplBreadcrumbs as xpl_breadcrumbs, XplButton as xpl_button, XplCheckbox as xpl_checkbox, XplContentArea as xpl_content_area, XplNavItem as xpl_nav_item, XplRadio as xpl_radio, XplSecondaryNav as xpl_secondary_nav, XplTable as xpl_table, XplUtilityBar as xpl_utility_bar };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplBackdrop = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
|
+
/**
|
|
7
|
+
* @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.
|
|
8
|
+
* If false, the position will be fixed and cover the whole view area.
|
|
9
|
+
*/
|
|
6
10
|
this.relative = false;
|
|
7
11
|
}
|
|
8
12
|
render() {
|
|
@@ -15,5 +19,3 @@ const XplBackdrop = class {
|
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
export { XplBackdrop as xpl_backdrop };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=xpl-backdrop.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplButtonRow = class {
|
|
4
4
|
constructor(hostRef) {
|
|
@@ -9,9 +9,6 @@ const XplButtonRow = class {
|
|
|
9
9
|
this.onPrimary = () => this.clickPrimary.emit();
|
|
10
10
|
this.onSecondary = () => this.clickSecondary.emit();
|
|
11
11
|
this.onTertiary = () => this.clickTertiary.emit();
|
|
12
|
-
this.primary = undefined;
|
|
13
|
-
this.secondary = undefined;
|
|
14
|
-
this.tertiary = undefined;
|
|
15
12
|
}
|
|
16
13
|
render() {
|
|
17
14
|
return (h(Host, { class: "xpl-button-row" }, h("div", { class: "xpl-button-row-inner" }, h("div", { class: "xpl-button-row__left" }, this.secondary && (h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary))), h("div", { class: "xpl-button-row__right" }, this.tertiary && (h("xpl-button", { variant: "subtle", type: "button", onClick: this.onTertiary }, this.tertiary)), this.secondary && (h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary)), this.primary && (h("xpl-button", { class: "xpl-button-row__primary", onClick: this.onPrimary }, this.primary))))));
|
|
@@ -19,5 +16,3 @@ const XplButtonRow = class {
|
|
|
19
16
|
};
|
|
20
17
|
|
|
21
18
|
export { XplButtonRow as xpl_button_row };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=xpl-button-row.entry.js.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplChoicelist = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
|
-
this.choices = undefined;
|
|
7
|
-
this.description = undefined;
|
|
8
|
-
this.heading = undefined;
|
|
9
|
-
this.multi = undefined;
|
|
10
|
-
this.name = undefined;
|
|
11
|
-
this.styled = undefined;
|
|
12
|
-
this.selected = undefined;
|
|
13
6
|
}
|
|
14
7
|
componentWillLoad() {
|
|
15
8
|
this.selected =
|
|
@@ -44,5 +37,3 @@ const XplChoicelist = class {
|
|
|
44
37
|
};
|
|
45
38
|
|
|
46
39
|
export { XplChoicelist as xpl_choicelist };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=xpl-choicelist.entry.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplDivider = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
|
-
this.tier = undefined;
|
|
7
6
|
}
|
|
8
7
|
render() {
|
|
9
8
|
let className = 'xpl-divider';
|
|
@@ -13,5 +12,3 @@ const XplDivider = class {
|
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
export { XplDivider as xpl_divider };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=xpl-divider.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
4
4
|
var t = {};
|
|
@@ -15,8 +15,6 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15
15
|
const XplDropdownGroup = class {
|
|
16
16
|
constructor(hostRef) {
|
|
17
17
|
registerInstance(this, hostRef);
|
|
18
|
-
this.groupName = undefined;
|
|
19
|
-
this.options = undefined;
|
|
20
18
|
}
|
|
21
19
|
render() {
|
|
22
20
|
const { groupName, options } = this;
|
|
@@ -33,7 +31,6 @@ const XplDropdownGroup = class {
|
|
|
33
31
|
const XplDropdownHeading = class {
|
|
34
32
|
constructor(hostRef) {
|
|
35
33
|
registerInstance(this, hostRef);
|
|
36
|
-
this.label = undefined;
|
|
37
34
|
}
|
|
38
35
|
render() {
|
|
39
36
|
return (h(Host, { class: { 'xpl-dropdown-heading': true }, role: "presentation" }, h("span", null, this.label || h("slot", { name: "heading" }))));
|
|
@@ -43,10 +40,6 @@ const XplDropdownHeading = class {
|
|
|
43
40
|
const XplDropdownOption = class {
|
|
44
41
|
constructor(hostRef) {
|
|
45
42
|
registerInstance(this, hostRef);
|
|
46
|
-
this.isDisabled = undefined;
|
|
47
|
-
this.label = undefined;
|
|
48
|
-
this.value = undefined;
|
|
49
|
-
this.isSelected = undefined;
|
|
50
43
|
}
|
|
51
44
|
componentWillLoad() {
|
|
52
45
|
this.dropdown = this.hostElement.closest('xpl-dropdown');
|
|
@@ -71,10 +64,7 @@ const XplDropdownOption = class {
|
|
|
71
64
|
const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
|
|
72
65
|
if (selectOnFocus && navigationKeys.includes(ev.key)) {
|
|
73
66
|
const hostElement = document.activeElement.closest('xpl-dropdown-option');
|
|
74
|
-
|
|
75
|
-
component: { hostElement },
|
|
76
|
-
};
|
|
77
|
-
dropdown.handleSelect(ev, component);
|
|
67
|
+
dropdown.handleSelect(ev, { component: { hostElement } });
|
|
78
68
|
if (mode === 'single' && closeOnSelect)
|
|
79
69
|
this.dropdown.isOpen = false;
|
|
80
70
|
return;
|
|
@@ -95,16 +85,14 @@ const XplDropdownOption = class {
|
|
|
95
85
|
this.hostElement.removeEventListener('keyup', this.handleKeyup);
|
|
96
86
|
}
|
|
97
87
|
render() {
|
|
98
|
-
const { label, isSelected, isDisabled
|
|
88
|
+
const { label, isSelected, isDisabled } = this;
|
|
99
89
|
return (h(Host, { class: {
|
|
100
90
|
'xpl-dropdown-option': true,
|
|
101
91
|
'xpl-dropdown-option--disabled': isDisabled,
|
|
102
92
|
'xpl-dropdown-option--selected': isSelected,
|
|
103
|
-
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected
|
|
93
|
+
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected }, h("li", { class: "xpl-dropdown-list-item" }, label || h("slot", { name: "option" }))));
|
|
104
94
|
}
|
|
105
95
|
get hostElement() { return getElement(this); }
|
|
106
96
|
};
|
|
107
97
|
|
|
108
98
|
export { XplDropdownGroup as xpl_dropdown_group, XplDropdownHeading as xpl_dropdown_heading, XplDropdownOption as xpl_dropdown_option };
|
|
109
|
-
|
|
110
|
-
//# sourceMappingURL=xpl-dropdown-group_3.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
4
4
|
var t = {};
|
|
@@ -15,6 +15,15 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15
15
|
const XplDropdown = class {
|
|
16
16
|
constructor(hostRef) {
|
|
17
17
|
registerInstance(this, hostRef);
|
|
18
|
+
/** text to display as heading */
|
|
19
|
+
// eslint-disable-next-line @stencil/strict-mutable
|
|
20
|
+
this.isOpen = false;
|
|
21
|
+
/** options that are listed */
|
|
22
|
+
this.closeOnSelect = true;
|
|
23
|
+
/** constant representing number of options that can be selected */
|
|
24
|
+
this.mode = 'single';
|
|
25
|
+
/** whether selection should be made when focusing on interactable element */
|
|
26
|
+
this.selectOnFocus = false;
|
|
18
27
|
this.handleClickOutside = ({ target }) => {
|
|
19
28
|
const { triggerId } = this;
|
|
20
29
|
const isTrigger = triggerId && target.id === triggerId;
|
|
@@ -22,16 +31,9 @@ const XplDropdown = class {
|
|
|
22
31
|
if (!isInside && !isTrigger)
|
|
23
32
|
this.isOpen = false;
|
|
24
33
|
};
|
|
25
|
-
this.isOpen = false;
|
|
26
|
-
this.closeOnSelect = true;
|
|
27
|
-
this.mode = 'single';
|
|
28
|
-
this.options = undefined;
|
|
29
|
-
this.selectOnFocus = false;
|
|
30
|
-
this.triggerId = undefined;
|
|
31
|
-
this.update = undefined;
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
|
-
* called on dropdown option click and keydown events
|
|
36
|
+
* called on dropdown option click and keydown events to update isSelected states
|
|
35
37
|
*/
|
|
36
38
|
async handleSelect(e, { component }) {
|
|
37
39
|
const { hostElement, mode, options, update } = this;
|
|
@@ -44,9 +46,7 @@ const XplDropdown = class {
|
|
|
44
46
|
...(curr.groupName ? curr.options : [curr]),
|
|
45
47
|
], [])
|
|
46
48
|
.forEach((option) => {
|
|
47
|
-
const isMatch =
|
|
48
|
-
(component.hostElement.value ||
|
|
49
|
-
component.hostElement.label);
|
|
49
|
+
const isMatch = option.label === component.hostElement.label;
|
|
50
50
|
if (isSingle) {
|
|
51
51
|
option.isSelected = isMatch;
|
|
52
52
|
component.hostElement.isSelected = option.isSelected;
|
|
@@ -116,5 +116,3 @@ const XplTag = class {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
export { XplDropdown as xpl_dropdown, XplTag as xpl_tag };
|
|
119
|
-
|
|
120
|
-
//# sourceMappingURL=xpl-dropdown_2.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplGridItem = class {
|
|
4
4
|
constructor(hostRef) {
|
|
@@ -19,5 +19,3 @@ const XplGridItem = class {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export { XplGridItem as xpl_grid_item };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=xpl-grid-item.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-e3c4bb97.js';
|
|
2
2
|
|
|
3
3
|
const XplGrid = class {
|
|
4
4
|
constructor(hostRef) {
|
|
@@ -29,5 +29,3 @@ const XplGrid = class {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export { XplGrid as xpl_grid };
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=xpl-grid.entry.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
|
|
2
|
+
import './regular-86225e9d.js';
|
|
2
3
|
import { v as v4 } from './v4-929670b7.js';
|
|
3
4
|
|
|
4
5
|
const HOOKS = [
|
|
@@ -2446,27 +2447,23 @@ const arrowSvg = (rotate = false) => `<svg width="8" height="12" viewBox="0 0 8
|
|
|
2446
2447
|
const XplInput = class {
|
|
2447
2448
|
constructor(hostRef) {
|
|
2448
2449
|
registerInstance(this, hostRef);
|
|
2449
|
-
|
|
2450
|
-
|
|
2450
|
+
/**
|
|
2451
|
+
* See https://flatpickr.js.org/formatting/
|
|
2452
|
+
*/
|
|
2451
2453
|
this.dateFormat = 'Y-m-d';
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
this.maxCharacterCount = undefined;
|
|
2458
|
-
this.min = undefined;
|
|
2454
|
+
/**
|
|
2455
|
+
* For datepicker inputs, whether to allow only a single
|
|
2456
|
+
* date or a range of dates. (Multiple non-consecutive
|
|
2457
|
+
* dates planned to be supported in the future.)
|
|
2458
|
+
*/
|
|
2459
2459
|
this.mode = 'single';
|
|
2460
|
+
/**
|
|
2461
|
+
* Whether to render as a singleline text input or
|
|
2462
|
+
* as a multiline textarea. (If `true`, `pre` and `post`
|
|
2463
|
+
* values will be ignored, if present.)
|
|
2464
|
+
*/
|
|
2460
2465
|
this.multiline = false;
|
|
2461
|
-
this.name = undefined;
|
|
2462
|
-
this.placeholder = undefined;
|
|
2463
|
-
this.post = undefined;
|
|
2464
|
-
this.pre = undefined;
|
|
2465
|
-
this.readonly = undefined;
|
|
2466
|
-
this.required = undefined;
|
|
2467
|
-
this.step = undefined;
|
|
2468
2466
|
this.type = 'text';
|
|
2469
|
-
this.value = undefined;
|
|
2470
2467
|
this.characterCount = 0;
|
|
2471
2468
|
this.passwordVisible = false;
|
|
2472
2469
|
}
|
|
@@ -2516,12 +2513,18 @@ const XplInput = class {
|
|
|
2516
2513
|
this.input = el;
|
|
2517
2514
|
}, required: this.required, step: this.step, type: type, value: this.value })) : (h("textarea", { disabled: this.disabled, id: this._id, name: this.name, onInput: () => this.updateCharacterCount(), placeholder: this.placeholder, readonly: this.readonly, ref: (el) => {
|
|
2518
2515
|
this.input = el;
|
|
2519
|
-
}, required: this.required }, this.value)), this.type === 'date' && (h("
|
|
2516
|
+
}, required: this.required }, this.value)), this.type === 'date' && (h("span", { class: "xpl-input-calendar" }, h("i", { class: "far fa-calendar-alt" }))), this.type === 'password' && (h("button", { class: "xpl-input-password", onClick: () => {
|
|
2520
2517
|
this.passwordVisible = !this.passwordVisible;
|
|
2521
|
-
}, role: "presentation" }, h("
|
|
2518
|
+
}, role: "presentation" }, h("span", { class: "sr-only" }, "Toggle password visibility"), h("i", { class: "far fa-eye", style: {
|
|
2519
|
+
display: this.passwordVisible
|
|
2520
|
+
? 'none'
|
|
2521
|
+
: 'block',
|
|
2522
|
+
} }), h("i", { class: "far fa-eye-slash", style: {
|
|
2523
|
+
display: this.passwordVisible
|
|
2524
|
+
? 'block'
|
|
2525
|
+
: 'none',
|
|
2526
|
+
} }))), this.post && !this.multiline && (h("label", { class: "xpl-input-post", htmlFor: this._id }, this.post)), this.multiline && this.maxCharacterCount !== undefined && (h("span", { class: "xpl-input-characters" }, this.characterCount, "/", this.maxCharacterCount))), 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))));
|
|
2522
2527
|
}
|
|
2523
2528
|
};
|
|
2524
2529
|
|
|
2525
2530
|
export { XplInput as xpl_input };
|
|
2526
|
-
|
|
2527
|
-
//# sourceMappingURL=xpl-input.entry.js.map
|