genesys-spark-components 4.0.0-beta.26 → 4.0.0-beta.28
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/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +218 -0
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +2 -3
- package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +3 -47
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/{gux-pagination-buttons-beta_2.cjs.entry.js → gux-pagination-buttons_3.cjs.entry.js} +49 -11
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/{gux-pagination-beta.cjs.entry.js → gux-pagination.cjs.entry.js} +6 -6
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-popup.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +80 -0
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/index-0d0fdb85.js +8 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-fcdc9156.js → usage-5e9eafc4.js} +1 -1
- package/dist/collection/collection-manifest.json +11 -12
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +44 -30
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.css +3 -4
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.js +1 -1
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +253 -0
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.js +4 -4
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +44 -30
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +65 -45
- package/dist/collection/components/stable/gux-button/gux-button.css +43 -3
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -19
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +43 -3
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +47 -32
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +44 -30
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +65 -45
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +65 -45
- package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.css +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +27 -15
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
- package/dist/collection/components/stable/gux-list/gux-list.css +1 -1
- package/dist/collection/components/stable/gux-list/gux-list.js +1 -1
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +87 -192
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +2 -49
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css} +11 -11
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js} +8 -8
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css} +1 -4
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js} +4 -4
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css} +5 -5
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js} +5 -5
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.js → stable/gux-pagination/gux-pagination.js} +8 -8
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +8 -34
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +1 -1
- package/dist/collection/components/stable/gux-popup/gux-popup.css +1 -0
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.css +4 -2
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
- package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.css +173 -7
- package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.js +1 -1
- package/dist/collection/components/stable/gux-switch/gux-switch.css +2 -2
- package/dist/collection/components/stable/gux-switch/gux-switch.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +21 -15
- package/dist/collection/components/stable/gux-table/gux-table.css +44 -30
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +56 -6
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +4 -3
- package/dist/collection/components/stable/gux-tag/gux-tag.css +155 -0
- package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.js +27 -32
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +45 -5
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +1 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle.css +4 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +1 -1
- package/dist/component-specs.json +60 -106
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-section.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +214 -0
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +2 -3
- package/dist/esm/gux-button-slot.entry.js +2 -2
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager-item.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +2 -2
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +2 -2
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +4 -48
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/{gux-pagination-buttons-beta_2.entry.js → gux-pagination-buttons_3.entry.js} +47 -10
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/{gux-pagination-beta.entry.js → gux-pagination.entry.js} +6 -6
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +2 -2
- package/dist/esm/gux-popup.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-region-icon.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-item.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +2 -2
- package/dist/esm/gux-tab-panel.entry.js +3 -3
- package/dist/esm/gux-table-select-menu.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +76 -0
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/index-0b66fe2c.js +8 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-f03a9e96.js → usage-c6e07f31.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +2 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/{p-bcec2244.entry.js → p-01c8bb6b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-35784c37.entry.js → p-02134088.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ae4a9fe.entry.js → p-09961f4d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0f4948bb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fab005df.entry.js → p-172655ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b08f2a1f.entry.js → p-188d3d96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-596ed860.entry.js → p-1b936c21.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de63108a.entry.js → p-1e850ed3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-425a79f2.entry.js → p-219a0bad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ba247660.entry.js → p-288ab9a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec46bb6e.entry.js → p-2a4eacec.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3031a578.entry.js +1 -0
- package/dist/genesys-webcomponents/p-358f295c.entry.js +1 -0
- package/dist/genesys-webcomponents/p-3aa5149b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a0b3b9f2.entry.js → p-3b4d5b80.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-39170389.entry.js → p-3bc32648.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3d6b25da.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-82bab522.entry.js → p-41dffb40.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-24a36458.entry.js → p-46697c27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd52eebf.entry.js → p-47557661.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-516497a8.entry.js → p-47ba479b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4c46f081.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5623eb9b.entry.js → p-4d17728f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea9d71eb.entry.js → p-4f1063c5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5676eed0.entry.js +1 -0
- package/dist/genesys-webcomponents/p-581738c6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6b48fbde.entry.js → p-58dbdd6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5dea868f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d68a0863.entry.js → p-5e05cbf4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82aad1f7.entry.js → p-5e1230ac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06a92400.entry.js → p-5f22855f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dc84cec7.js → p-6517ed89.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5eb0d49.entry.js → p-651e350f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d107d384.entry.js → p-65d42429.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bb29dc80.entry.js → p-6748082f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6846d279.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a3f9f44a.entry.js → p-68868258.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8056c132.entry.js → p-698f98c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6bff9eb3.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6c5ba842.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-30598362.entry.js → p-6cddf4cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bfa89db2.entry.js → p-6ceceb96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b90e7457.entry.js → p-6d16729f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5d5ba91.entry.js → p-6d7e7a71.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dc6723ca.entry.js → p-74009863.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e592f22.entry.js → p-76f4a444.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e33c43dd.entry.js → p-77e60d29.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-795e7b1a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d0abf3d7.entry.js → p-7a8c150f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-855c7fcc.entry.js → p-7b4ef992.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3980b75.entry.js → p-7be9b209.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7c5d3642.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7dd13d10.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-40744307.entry.js → p-8212cb52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d693163.entry.js → p-8f49f6a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0b01b76e.entry.js → p-91d49ac1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9ada3f6.entry.js → p-95fc6119.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4bdc563.entry.js → p-983c952f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-92095ee1.entry.js → p-9b6831a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f06e2d5d.entry.js → p-9eb61bd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75f9676c.entry.js → p-a4dbc7d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-da2efa1d.entry.js → p-a91103ab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2f53d61.entry.js → p-aaaf2fd9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b030d487.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-81a01440.entry.js → p-b0d4ece6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-46980018.entry.js → p-b2d32b54.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-46abdd72.entry.js → p-ba975521.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b35958d.entry.js → p-bcbab73b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0212b664.entry.js → p-bd630920.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e01bffb0.entry.js → p-bdb75a90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-90379a2c.entry.js → p-bfe3a794.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c2485ed4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-532ea636.entry.js → p-c313de7b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c4ed84fa.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7b43f40b.entry.js → p-c609ed18.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c8580fbf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1f39a936.entry.js → p-ca143a76.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ca5e2ee3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3ad223ac.entry.js → p-cb2c7de5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-119bf1e5.entry.js → p-ccfcec33.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dfc7c240.entry.js → p-d9f31512.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e7ea294d.entry.js +1 -0
- package/dist/genesys-webcomponents/p-ecac9a08.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0978a177.entry.js → p-eeb5254d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ffe2a7bc.entry.js → p-f03c03d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9f919a75.entry.js → p-f4b602e0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-806357bf.entry.js → p-f58ff022.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82b561eb.entry.js → p-fdbd6834.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.d.ts +1 -1
- package/dist/types/components/stable/gux-button-multi/gux-button-multi.d.ts +0 -4
- package/dist/types/components/stable/gux-loading-message/gux-loading-message.d.ts +0 -10
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.d.ts} +3 -3
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.d.ts} +1 -1
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.d.ts} +2 -2
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-beta.d.ts → stable/gux-pagination/gux-pagination.d.ts} +4 -4
- package/dist/types/components/stable/gux-pagination/gux-pagination.types.d.ts +2 -0
- package/dist/types/components/{beta → stable}/gux-tag/gux-tag.d.ts +3 -16
- package/dist/types/components/stable/gux-tag/gux-tag.types.d.ts +1 -0
- package/dist/types/components.d.ts +86 -145
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +0 -218
- package/dist/cjs/gux-pagination-items-per-page-beta.cjs.entry.js +0 -46
- package/dist/cjs/gux-tab-panel-beta.cjs.entry.js +0 -34
- package/dist/cjs/gux-tag-beta.cjs.entry.js +0 -84
- package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.css +0 -15
- package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.js +0 -107
- package/dist/collection/components/beta/gux-tag/gux-tag.css +0 -461
- package/dist/collection/components/stable/gux-advanced-dropdown/gux-advanced-dropdown.css +0 -85
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message-constants.js +0 -5
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message-size.types.js +0 -1
- package/dist/esm/gux-advanced-dropdown.entry.js +0 -214
- package/dist/esm/gux-pagination-items-per-page-beta.entry.js +0 -42
- package/dist/esm/gux-tab-panel-beta.entry.js +0 -30
- package/dist/esm/gux-tag-beta.entry.js +0 -80
- package/dist/genesys-webcomponents/p-0af113c1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0b14794a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-12e01c6c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-15182c48.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1a7b3efe.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1b9ae90d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-27a62f54.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3881c2c8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-43d22f9f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5f0d8583.entry.js +0 -1
- package/dist/genesys-webcomponents/p-81c3fa5a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-844dfb88.entry.js +0 -1
- package/dist/genesys-webcomponents/p-948ad846.entry.js +0 -1
- package/dist/genesys-webcomponents/p-99e5fc7e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a7ad3633.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c6a3a814.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d2db8cfb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d2ec2410.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d6b3146d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e73a5b4e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f2fea056.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f4048683.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f51f3281.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f9768ae7.entry.js +0 -1
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +0 -2
- package/dist/types/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.d.ts +0 -18
- package/dist/types/components/beta/gux-tag/gux-tag.types.d.ts +0 -2
- package/dist/types/components/stable/gux-loading-message/gux-loading-message-constants.d.ts +0 -5
- package/dist/types/components/stable/gux-loading-message/gux-loading-message-size.types.d.ts +0 -1
- /package/dist/cjs/{en-b3076cac.js → en-2a12d7c4.js} +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-button.service.js +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons-legacy.css +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons.js +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts-legacy.css +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts.js +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page-legacy.css +0 -0
- /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page.js +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js → stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.js} +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.css → stable/gux-pagination/gux-pagination.css} +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.types.js → stable/gux-pagination/gux-pagination.types.js} +0 -0
- /package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.types.js +0 -0
- /package/dist/esm/{en-5d726a81.js → en-6c4aef39.js} +0 -0
- /package/dist/genesys-webcomponents/{p-89af02eb.js → p-abb9b5f7.js} +0 -0
- /package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.d.ts +0 -0
- /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-button.service.d.ts +0 -0
- /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons.d.ts +0 -0
- /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts.d.ts +0 -0
- /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page.d.ts +0 -0
- /package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts → stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.d.ts} +0 -0
- /package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.d.ts +0 -0
@@ -1,218 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-0d0fdb85.js');
|
6
|
-
const onMutation = require('./on-mutation-8f8a4460.js');
|
7
|
-
const onClickOutside = require('./on-click-outside-428f8bbf.js');
|
8
|
-
const afterNextRender = require('./after-next-render-a09f528a.js');
|
9
|
-
const usage = require('./usage-fcdc9156.js');
|
10
|
-
const index$1 = require('./index-9bbde1aa.js');
|
11
|
-
require('./get-closest-element-ab4b2eee.js');
|
12
|
-
|
13
|
-
const searchAria = "Search";
|
14
|
-
const advancedDropDownResources = {
|
15
|
-
searchAria: searchAria
|
16
|
-
};
|
17
|
-
|
18
|
-
const guxAdvancedDropdownCss = ":host{color:#2e394c}gux-popup{display:block;margin:4px 0}gux-popup .gux-select-field{position:relative;width:100%;height:32px}gux-popup .gux-select-field a.gux-select-input{position:absolute;inset:0;padding:6px 24px 6px 12px;overflow:hidden;color:#2e394c;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder,gux-popup .gux-select-field a.gux-select-input .gux-select-value{line-height:20px}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder{color:#596373}gux-popup .gux-select-field a.gux-select-input:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(117, 168, 255, 0.5)}gux-popup .gux-select-field .gux-icon-wrapper{position:absolute;top:1px;right:8px;bottom:0;display:flex;align-items:center;overflow:hidden;cursor:pointer}gux-popup .gux-select-field .gux-icon-wrapper gux-icon{width:16px;height:16px;color:#596373}gux-popup .gux-select-field:hover .gux-icon-wrapper gux-icon{color:#2e394c}gux-popup .gux-advanced-dropdown-menu{width:100%;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 0 2px 0 rgba(32, 41, 55, 0.24);box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search{margin:8px 16px}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-cancel-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-results-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-popup .gux-dropdown-options{padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border-radius:4px;box-shadow:none}gux-popup::part(gux-popup-container){width:inherit}";
|
19
|
-
|
20
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
21
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
22
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
23
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
24
|
-
else
|
25
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
26
|
-
if (d = decorators[i])
|
27
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
28
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
29
|
-
};
|
30
|
-
const GuxAdvancedDropdown = class {
|
31
|
-
constructor(hostRef) {
|
32
|
-
index.registerInstance(this, hostRef);
|
33
|
-
this.input = index.createEvent(this, "input", 7);
|
34
|
-
this.filter = index.createEvent(this, "filter", 7);
|
35
|
-
this.disabled = false;
|
36
|
-
this.placeholder = undefined;
|
37
|
-
this.noFilter = false;
|
38
|
-
this.filterDebounceTimeout = 500;
|
39
|
-
this.dropdownHeight = '320px';
|
40
|
-
this.srLabelledby = undefined;
|
41
|
-
this.opened = undefined;
|
42
|
-
this.currentlySelectedOption = undefined;
|
43
|
-
this.selectionOptions = undefined;
|
44
|
-
}
|
45
|
-
watchValue(newValue) {
|
46
|
-
if (this.opened && newValue) {
|
47
|
-
this.closeDropdown(false);
|
48
|
-
}
|
49
|
-
}
|
50
|
-
get value() {
|
51
|
-
var _a;
|
52
|
-
return (_a = this.currentlySelectedOption) === null || _a === void 0 ? void 0 : _a.text;
|
53
|
-
}
|
54
|
-
/**
|
55
|
-
* Gets the currently selected values.
|
56
|
-
*
|
57
|
-
* @returns The array of selected values.
|
58
|
-
*/
|
59
|
-
getSelectedValues() {
|
60
|
-
// Once multi-select gets added there will
|
61
|
-
// be multiple values selectable.
|
62
|
-
return Promise.resolve([this.value]);
|
63
|
-
}
|
64
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
65
|
-
async setLabeledBy(id) {
|
66
|
-
this.srLabelledby = id;
|
67
|
-
}
|
68
|
-
onClickOutside() {
|
69
|
-
this.closeDropdown(false);
|
70
|
-
}
|
71
|
-
async componentWillLoad() {
|
72
|
-
usage.trackComponent(this.root);
|
73
|
-
this.i18n = await index$1.buildI18nForComponent(this.root, advancedDropDownResources);
|
74
|
-
this.handleSelectionChange = this.handleSelectionChange.bind(this);
|
75
|
-
this.updateSelectionState();
|
76
|
-
this.addOptionListener();
|
77
|
-
this.slotObserver = onMutation.onMutation(this.root, () => this.updateSelectionState());
|
78
|
-
}
|
79
|
-
disconnectedCallback() {
|
80
|
-
if (this.slotObserver) {
|
81
|
-
this.slotObserver.disconnect();
|
82
|
-
}
|
83
|
-
}
|
84
|
-
render() {
|
85
|
-
return (index.h("gux-popup", { expanded: this.opened, disabled: this.disabled }, index.h("div", { slot: "target", class: "gux-select-field", onMouseDown: () => this.inputMouseDown() }, index.h("a", { ref: el => (this.inputBox = el), class: "gux-select-input", "aria-labelledby": this.srLabelledby, tabindex: "0", onKeyDown: e => this.inputKeyDown(e) }, this.placeholder && !this.value && (index.h("span", { class: "gux-select-placeholder", title: this.placeholder }, this.placeholder)), this.value && (index.h("span", { class: "gux-select-value", title: this.value }, this.value))), index.h("div", { class: "gux-icon-wrapper" }, index.h("gux-icon", { decorative: true, "icon-name": "chevron-small-down" }))), index.h("div", { slot: "popup", class: "gux-advanced-dropdown-menu" }, index.h("div", { class: "gux-dropdown-menu-container" }, index.h("gux-form-field-search", { "label-position": "screenreader" }, index.h("label", { slot: "label" }, this.i18n('searchAria')), index.h("input", { slot: "input", type: "search", onInput: (event) => {
|
86
|
-
this.handleSearchInput(event);
|
87
|
-
}, ref: el => (this.searchInput = el) })), index.h("div", { class: "gux-dropdown-options", style: { maxHeight: this.dropdownHeight }, onKeyDown: e => this.optionsKeyDown(e) }, index.h("slot", null))))));
|
88
|
-
}
|
89
|
-
updateSelectionState() {
|
90
|
-
this.selectionOptions = this.getSelectionOptions();
|
91
|
-
this.currentlySelectedOption = this.selectionOptions.find(option => option.selected);
|
92
|
-
}
|
93
|
-
addOptionListener() {
|
94
|
-
this.root.addEventListener('selectedChanged', (event) => this.handleSelectionChange(event));
|
95
|
-
}
|
96
|
-
handleSelectionChange({ target }) {
|
97
|
-
const option = target;
|
98
|
-
this.closeDropdown(true);
|
99
|
-
if (this.currentlySelectedOption === option) {
|
100
|
-
return;
|
101
|
-
}
|
102
|
-
if (this.currentlySelectedOption) {
|
103
|
-
this.currentlySelectedOption.selected = false;
|
104
|
-
}
|
105
|
-
this.currentlySelectedOption = option;
|
106
|
-
this.input.emit(option.value);
|
107
|
-
}
|
108
|
-
getSelectionOptions() {
|
109
|
-
const options = this.root.querySelectorAll('gux-dropdown-option');
|
110
|
-
return Array.from(options);
|
111
|
-
}
|
112
|
-
inputMouseDown() {
|
113
|
-
if (this.disabled) {
|
114
|
-
return;
|
115
|
-
}
|
116
|
-
if (this.opened) {
|
117
|
-
this.closeDropdown(true);
|
118
|
-
}
|
119
|
-
else {
|
120
|
-
this.openDropdown(false);
|
121
|
-
}
|
122
|
-
}
|
123
|
-
getFocusIndex() {
|
124
|
-
return this.selectionOptions.findIndex(option => {
|
125
|
-
return option.matches(':focus');
|
126
|
-
});
|
127
|
-
}
|
128
|
-
optionsKeyDown(event) {
|
129
|
-
switch (event.key) {
|
130
|
-
case 'ArrowUp': {
|
131
|
-
event.preventDefault();
|
132
|
-
const focusIndex = this.getFocusIndex();
|
133
|
-
if (focusIndex > 0) {
|
134
|
-
this.selectionOptions[focusIndex - 1].focus();
|
135
|
-
}
|
136
|
-
break;
|
137
|
-
}
|
138
|
-
case 'ArrowDown': {
|
139
|
-
event.preventDefault();
|
140
|
-
const focusIndex = this.getFocusIndex();
|
141
|
-
if (focusIndex < this.selectionOptions.length - 1) {
|
142
|
-
this.selectionOptions[focusIndex + 1].focus();
|
143
|
-
}
|
144
|
-
break;
|
145
|
-
}
|
146
|
-
case 'Home':
|
147
|
-
if (!this.selectionOptions.length) {
|
148
|
-
return;
|
149
|
-
}
|
150
|
-
this.selectionOptions[0].focus();
|
151
|
-
break;
|
152
|
-
case 'End':
|
153
|
-
if (!this.selectionOptions.length) {
|
154
|
-
return;
|
155
|
-
}
|
156
|
-
this.selectionOptions[this.selectionOptions.length - 1].focus();
|
157
|
-
break;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
inputKeyDown(event) {
|
161
|
-
switch (event.key) {
|
162
|
-
case 'ArrowUp':
|
163
|
-
case 'ArrowDown':
|
164
|
-
case ' ':
|
165
|
-
this.openDropdown(true);
|
166
|
-
break;
|
167
|
-
}
|
168
|
-
}
|
169
|
-
handleSearchInput(event) {
|
170
|
-
event.stopPropagation();
|
171
|
-
clearTimeout(this.filterDebounceTimer);
|
172
|
-
this.filterDebounceTimer = setTimeout(() => this.searchRequested(), this.filterDebounceTimeout);
|
173
|
-
}
|
174
|
-
searchRequested() {
|
175
|
-
const value = this.searchInput.value;
|
176
|
-
this.filter.emit(value);
|
177
|
-
this.setFilteredOptions();
|
178
|
-
}
|
179
|
-
setFilteredOptions() {
|
180
|
-
const value = this.searchInput.value;
|
181
|
-
if (!this.noFilter) {
|
182
|
-
for (const option of this.selectionOptions) {
|
183
|
-
void option.shouldFilter(value).then(isFiltered => {
|
184
|
-
option.filtered = isFiltered;
|
185
|
-
});
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
changeFocusToSearch() {
|
190
|
-
afterNextRender.afterNextRenderTimeout(() => {
|
191
|
-
this.searchInput.focus();
|
192
|
-
});
|
193
|
-
}
|
194
|
-
openDropdown(focusSearch) {
|
195
|
-
this.opened = true;
|
196
|
-
if (focusSearch) {
|
197
|
-
this.changeFocusToSearch();
|
198
|
-
}
|
199
|
-
}
|
200
|
-
closeDropdown(focus) {
|
201
|
-
this.opened = false;
|
202
|
-
this.searchInput.value = '';
|
203
|
-
this.setFilteredOptions();
|
204
|
-
if (focus) {
|
205
|
-
this.inputBox.focus();
|
206
|
-
}
|
207
|
-
}
|
208
|
-
get root() { return index.getElement(this); }
|
209
|
-
static get watchers() { return {
|
210
|
-
"disabled": ["watchValue"]
|
211
|
-
}; }
|
212
|
-
};
|
213
|
-
__decorate([
|
214
|
-
onClickOutside.OnClickOutside({ triggerEvents: 'mousedown' })
|
215
|
-
], GuxAdvancedDropdown.prototype, "onClickOutside", null);
|
216
|
-
GuxAdvancedDropdown.style = guxAdvancedDropdownCss;
|
217
|
-
|
218
|
-
exports.gux_advanced_dropdown = GuxAdvancedDropdown;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-0d0fdb85.js');
|
6
|
-
const index$1 = require('./index-9bbde1aa.js');
|
7
|
-
require('./get-closest-element-ab4b2eee.js');
|
8
|
-
|
9
|
-
const perPage = "per page";
|
10
|
-
const itemsPerPage = "Items per page";
|
11
|
-
const rangeSelected = "Items per page dropdown, {range} selected";
|
12
|
-
const paginationResources = {
|
13
|
-
perPage: perPage,
|
14
|
-
itemsPerPage: itemsPerPage,
|
15
|
-
rangeSelected: rangeSelected
|
16
|
-
};
|
17
|
-
|
18
|
-
const guxPaginationItemsPerPageBetaCss = "gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);align-items:center;justify-content:center}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{bottom:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight)}";
|
19
|
-
|
20
|
-
const GuxPaginationItemsPerPageBeta = class {
|
21
|
-
constructor(hostRef) {
|
22
|
-
index.registerInstance(this, hostRef);
|
23
|
-
this.internalitemsperpagechange = index.createEvent(this, "internalitemsperpagechange", 3);
|
24
|
-
this.itemsPerPage = 25;
|
25
|
-
}
|
26
|
-
handleChange(event) {
|
27
|
-
event.stopPropagation();
|
28
|
-
const newItemsPerPageValue = parseInt(this.dropdownElement.value, 10);
|
29
|
-
this.internalitemsperpagechange.emit(newItemsPerPageValue);
|
30
|
-
}
|
31
|
-
async componentWillLoad() {
|
32
|
-
this.i18n = await index$1.buildI18nForComponent(this.root, paginationResources);
|
33
|
-
}
|
34
|
-
getDropdown() {
|
35
|
-
return (index.h("gux-dropdown", { ref: el => (this.dropdownElement = el), value: `${this.itemsPerPage}`, "aria-label": this.i18n('rangeSelected', {
|
36
|
-
range: this.itemsPerPage
|
37
|
-
}) }, index.h("gux-listbox", { "aria-label": this.i18n('itemsPerPage') }, index.h("gux-option", { value: "25" }, "25"), index.h("gux-option", { value: "50" }, "50"), index.h("gux-option", { value: "75" }, "75"), index.h("gux-option", { value: "100" }, "100"))));
|
38
|
-
}
|
39
|
-
render() {
|
40
|
-
return (index.h("div", { class: "gux-pagination-items-per-page-container" }, index.h("div", { class: "gux-pagination-items-per-page-picker" }, this.getDropdown()), index.h("div", { class: "gux-pagination-per-page" }, this.i18n('perPage'))));
|
41
|
-
}
|
42
|
-
get root() { return index.getElement(this); }
|
43
|
-
};
|
44
|
-
GuxPaginationItemsPerPageBeta.style = guxPaginationItemsPerPageBetaCss;
|
45
|
-
|
46
|
-
exports.gux_pagination_items_per_page_beta = GuxPaginationItemsPerPageBeta;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-0d0fdb85.js');
|
6
|
-
|
7
|
-
const guxTabPanelBetaCss = ":host{height:calc(100% - 57px)}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}";
|
8
|
-
|
9
|
-
const GuxTabPanelBeta = class {
|
10
|
-
constructor(hostRef) {
|
11
|
-
index.registerInstance(this, hostRef);
|
12
|
-
this.guxactivepanelchange = index.createEvent(this, "guxactivepanelchange", 7);
|
13
|
-
this.tabId = undefined;
|
14
|
-
this.active = false;
|
15
|
-
}
|
16
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
17
|
-
async guxSetActive(active) {
|
18
|
-
this.active = active;
|
19
|
-
}
|
20
|
-
watchActivePanel() {
|
21
|
-
if (this.active === true) {
|
22
|
-
this.guxactivepanelchange.emit(this.tabId);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
render() {
|
26
|
-
return (index.h(index.Host, { id: `gux-${this.tabId}-panel`, role: "tabpanel", "aria-labelledby": `gux-${this.tabId}-tab`, tabIndex: 0, hidden: !this.active }, index.h("slot", null)));
|
27
|
-
}
|
28
|
-
static get watchers() { return {
|
29
|
-
"active": ["watchActivePanel"]
|
30
|
-
}; }
|
31
|
-
};
|
32
|
-
GuxTabPanelBeta.style = guxTabPanelBetaCss;
|
33
|
-
|
34
|
-
exports.gux_tab_panel_beta = GuxTabPanelBeta;
|
@@ -1,84 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-0d0fdb85.js');
|
6
|
-
const index$1 = require('./index-9bbde1aa.js');
|
7
|
-
const usage = require('./usage-fcdc9156.js');
|
8
|
-
require('./get-closest-element-ab4b2eee.js');
|
9
|
-
|
10
|
-
const tag = "tag with label: {label}";
|
11
|
-
const tagResources = {
|
12
|
-
tag: tag,
|
13
|
-
"tag-disabled": "disabled tag with label: {label}",
|
14
|
-
"remove-tag": "Remove tag with label: {label}"
|
15
|
-
};
|
16
|
-
|
17
|
-
const guxTagCss = ":host{display:inline-block}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;padding:2px 8px;font-size:12px;font-weight:bold;color:#fdfdfd;background-color:#2e394c;border-radius:4px}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){height:20px;font-size:16px}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-tag .gux-tag-remove-button{all:unset;display:flex;align-content:center;align-items:center;justify-content:center;margin-left:8px}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:16px;height:16px;border-radius:25%}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:2px solid #aac9ff;outline-offset:0}.gux-tag.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default{background-color:#2e394c}.gux-tag.gux-default.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default-subtle{color:#2e394c;background-color:#e2e6ee}.gux-tag.gux-default-subtle.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(226, 230, 238, 0.5)}.gux-tag.gux-navy{background-color:#203b73}.gux-tag.gux-navy.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-electric-purple{background-color:#8452cf}.gux-tag.gux-electric-purple.gux-disabled{background-color:rgba(132, 82, 207, 0.5)}.gux-tag.gux-aqua-green{color:#202937;background-color:#1da8b3}.gux-tag.gux-aqua-green.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(29, 168, 179, 0.5)}.gux-tag.gux-fuchsia{color:#000;background-color:#cc3ebe}.gux-tag.gux-fuchsia.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(204, 62, 190, 0.5)}.gux-tag.gux-dark-purple{background-color:#5e5782}.gux-tag.gux-dark-purple.gux-disabled{background-color:rgba(94, 87, 130, 0.5)}.gux-tag.gux-bubblegum-pink{color:#2e394c;background-color:#ff8fdd}.gux-tag.gux-bubblegum-pink.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 221, 0.5)}.gux-tag.gux-olive-green{color:#151d28;background-color:#868c1e}.gux-tag.gux-olive-green.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(134, 140, 30, 0.5)}.gux-tag.gux-lilac{color:#2e394c;background-color:#b5b5eb}.gux-tag.gux-lilac.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(181, 181, 235, 0.5)}.gux-tag.gux-alert-yellow-green{color:#2e394c;background-color:#ddd933}.gux-tag.gux-alert-yellow-green.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(221, 217, 51, 0.5)}.gux-tag.gux-blue-10{background-color:#172b52}.gux-tag.gux-blue-10.gux-disabled{background-color:rgba(23, 43, 82, 0.5)}.gux-tag.gux-blue-20{background-color:#1c3363}.gux-tag.gux-blue-20.gux-disabled{background-color:rgba(28, 51, 99, 0.5)}.gux-tag.gux-blue-30{background-color:#203b73}.gux-tag.gux-blue-30.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue-40{background-color:#23478f}.gux-tag.gux-blue-40.gux-disabled{background-color:rgba(35, 71, 143, 0.5)}.gux-tag.gux-blue-50{background-color:#2754ac}.gux-tag.gux-blue-50.gux-disabled{background-color:rgba(39, 84, 172, 0.5)}.gux-tag.gux-blue-60{background-color:#2a60c8}.gux-tag.gux-blue-60.gux-disabled{background-color:rgba(42, 96, 200, 0.5)}.gux-tag.gux-blue-70{color:#151d28;background-color:#5084e3}.gux-tag.gux-blue-70.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(80, 132, 227, 0.5)}.gux-tag.gux-blue-80{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-blue-90{color:#2e394c;background-color:#aac9ff}.gux-tag.gux-blue-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(170, 201, 255, 0.5)}.gux-tag.gux-blue-100{color:#2e394c;background-color:#deeaff}.gux-tag.gux-blue-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(222, 234, 255, 0.5)}.gux-tag.gux-alert-red-10{background-color:#520404}.gux-tag.gux-alert-red-10.gux-disabled{background-color:rgba(82, 4, 4, 0.5)}.gux-tag.gux-alert-red-20{background-color:#700505}.gux-tag.gux-alert-red-20.gux-disabled{background-color:rgba(112, 5, 5, 0.5)}.gux-tag.gux-alert-red-30{background-color:#8f0707}.gux-tag.gux-alert-red-30.gux-disabled{background-color:rgba(143, 7, 7, 0.5)}.gux-tag.gux-alert-red-40{background-color:#ad0808}.gux-tag.gux-alert-red-40.gux-disabled{background-color:rgba(173, 8, 8, 0.5)}.gux-tag.gux-alert-red-50{background-color:#cc0a0a}.gux-tag.gux-alert-red-50.gux-disabled{background-color:rgba(204, 10, 10, 0.5)}.gux-tag.gux-alert-red-60{background-color:#ea0b0b}.gux-tag.gux-alert-red-60.gux-disabled{background-color:rgba(234, 11, 11, 0.5)}.gux-tag.gux-alert-red-70{color:#000;background-color:#ef4343}.gux-tag.gux-alert-red-70.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(239, 67, 67, 0.5)}.gux-tag.gux-alert-red-80{color:#283243;background-color:#f37a7a}.gux-tag.gux-alert-red-80.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(243, 122, 122, 0.5)}.gux-tag.gux-alert-red-90{color:#2e394c;background-color:#f8b2b2}.gux-tag.gux-alert-red-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(248, 178, 178, 0.5)}.gux-tag.gux-alert-red-100{color:#2e394c;background-color:#fceaea}.gux-tag.gux-alert-red-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 234, 234, 0.5)}.gux-tag.gux-alert-green-10{background-color:#0d3d00}.gux-tag.gux-alert-green-10.gux-disabled{background-color:rgba(13, 61, 0, 0.5)}.gux-tag.gux-alert-green-20{background-color:#164b08}.gux-tag.gux-alert-green-20.gux-disabled{background-color:rgba(22, 75, 8, 0.5)}.gux-tag.gux-alert-green-30{background-color:#205a10}.gux-tag.gux-alert-green-30.gux-disabled{background-color:rgba(32, 90, 16, 0.5)}.gux-tag.gux-alert-green-40{background-color:#296817}.gux-tag.gux-alert-green-40.gux-disabled{background-color:rgba(41, 104, 23, 0.5)}.gux-tag.gux-alert-green-50{background-color:#33771f}.gux-tag.gux-alert-green-50.gux-disabled{background-color:rgba(51, 119, 31, 0.5)}.gux-tag.gux-alert-green-60{background-color:#3c8527}.gux-tag.gux-alert-green-60.gux-disabled{background-color:rgba(60, 133, 39, 0.5)}.gux-tag.gux-alert-green-70{color:#202937;background-color:#69a358}.gux-tag.gux-alert-green-70.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(105, 163, 88, 0.5)}.gux-tag.gux-alert-green-80{color:#2e394c;background-color:#95c189}.gux-tag.gux-alert-green-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(149, 193, 137, 0.5)}.gux-tag.gux-alert-green-90{color:#2e394c;background-color:#c2deb9}.gux-tag.gux-alert-green-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(194, 222, 185, 0.5)}.gux-tag.gux-alert-green-100{color:#2e394c;background-color:#eefcea}.gux-tag.gux-alert-green-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(238, 252, 234, 0.5)}.gux-tag.gux-alert-yellow-10{background-color:#523800}.gux-tag.gux-alert-yellow-10.gux-disabled{background-color:rgba(82, 56, 0, 0.5)}.gux-tag.gux-alert-yellow-20{background-color:#755000}.gux-tag.gux-alert-yellow-20.gux-disabled{background-color:rgba(117, 80, 0, 0.5)}.gux-tag.gux-alert-yellow-30{background-color:#976700}.gux-tag.gux-alert-yellow-30.gux-disabled{background-color:rgba(151, 103, 0, 0.5)}.gux-tag.gux-alert-yellow-40{color:#151d28;background-color:#ba7f00}.gux-tag.gux-alert-yellow-40.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(186, 127, 0, 0.5)}.gux-tag.gux-alert-yellow-50{color:#2e394c;background-color:#dc9600}.gux-tag.gux-alert-yellow-50.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(220, 150, 0, 0.5)}.gux-tag.gux-alert-yellow-60{color:#2e394c;background-color:#ffae00}.gux-tag.gux-alert-yellow-60.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 174, 0, 0.5)}.gux-tag.gux-alert-yellow-70{color:#2e394c;background-color:#fbbe3b}.gux-tag.gux-alert-yellow-70.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(251, 190, 59, 0.5)}.gux-tag.gux-alert-yellow-80{color:#2e394c;background-color:#fcd276}.gux-tag.gux-alert-yellow-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 210, 118, 0.5)}.gux-tag.gux-alert-yellow-90{color:#2e394c;background-color:#fce5b1}.gux-tag.gux-alert-yellow-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 229, 177, 0.5)}.gux-tag.gux-alert-yellow-100{color:#2e394c;background-color:#fdf8ec}.gux-tag.gux-alert-yellow-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(253, 248, 236, 0.5)}.gux-tag.gux-brand-orange{color:#151d28;background-color:#ff4f1f}.gux-tag.gux-brand-orange.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(255, 79, 31, 0.5)}.gux-tag.gux-brand-teal{color:#283243;background-color:#00ae9e}.gux-tag.gux-brand-teal.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(0, 174, 158, 0.5)}.gux-tag.gux-brand-navy{background-color:#23395d}.gux-tag.gux-brand-navy.gux-disabled{background-color:rgba(35, 57, 93, 0.5)}.gux-tag.gux-brand-light-blue{color:#151d28;background-color:#3b90aa}.gux-tag.gux-brand-light-blue.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(59, 144, 170, 0.5)}.gux-tag.gux-brand-yellow{color:#2e394c;background-color:#ff8f14}.gux-tag.gux-brand-yellow.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 20, 0.5)}";
|
18
|
-
|
19
|
-
const GuxTag = class {
|
20
|
-
constructor(hostRef) {
|
21
|
-
index.registerInstance(this, hostRef);
|
22
|
-
this.guxdelete = index.createEvent(this, "guxdelete", 7);
|
23
|
-
this.color = 'default';
|
24
|
-
this.accent = 'default';
|
25
|
-
this.value = undefined;
|
26
|
-
this.disabled = false;
|
27
|
-
this.removable = false;
|
28
|
-
this.label = undefined;
|
29
|
-
}
|
30
|
-
onKeyDown(event) {
|
31
|
-
switch (event.key) {
|
32
|
-
case 'Backspace':
|
33
|
-
case 'Delete':
|
34
|
-
this.removeTag();
|
35
|
-
}
|
36
|
-
}
|
37
|
-
removeTag() {
|
38
|
-
if (this.disabled || !this.removable) {
|
39
|
-
return;
|
40
|
-
}
|
41
|
-
this.guxdelete.emit(this.value);
|
42
|
-
}
|
43
|
-
onSlotChange(event) {
|
44
|
-
const slotAssignedNodes = event.composedPath()[0].assignedNodes();
|
45
|
-
this.label = slotAssignedNodes
|
46
|
-
.map(nodeItem => nodeItem.textContent)
|
47
|
-
.join('');
|
48
|
-
}
|
49
|
-
renderTagTitle() {
|
50
|
-
return (index.h("gux-tooltip-title", null, index.h("span", null, index.h("slot", { "aria-hidden": "true", onSlotchange: this.onSlotChange.bind(this) }))));
|
51
|
-
}
|
52
|
-
renderSrText() {
|
53
|
-
return (index.h("div", { class: "gux-sr-only" }, this.disabled
|
54
|
-
? this.i18n('tag-disabled', { label: this.label })
|
55
|
-
: this.i18n('tag', { label: this.label })));
|
56
|
-
}
|
57
|
-
renderRemoveButton() {
|
58
|
-
if (this.removable) {
|
59
|
-
return (index.h("button", { class: "gux-tag-remove-button", onClick: this.removeTag.bind(this), type: "button", disabled: this.disabled }, index.h("gux-icon", { class: "gux-tag-remove-icon", "icon-name": "close", "screenreader-text": this.i18n('remove-tag', {
|
60
|
-
label: this.label
|
61
|
-
}) })));
|
62
|
-
}
|
63
|
-
}
|
64
|
-
componentWillLoad() {
|
65
|
-
usage.trackComponent(this.root, {
|
66
|
-
variant: this.removable ? 'removable' : 'permenant'
|
67
|
-
});
|
68
|
-
}
|
69
|
-
async componentWillRender() {
|
70
|
-
this.i18n = await index$1.buildI18nForComponent(this.root, tagResources);
|
71
|
-
}
|
72
|
-
render() {
|
73
|
-
return (index.h("div", { class: {
|
74
|
-
'gux-tag': true,
|
75
|
-
[`gux-${this.color}`]: true,
|
76
|
-
[`gux-accent-${this.accent}`]: true,
|
77
|
-
'gux-disabled': this.disabled
|
78
|
-
}, "aria-disabled": this.disabled.toString() }, this.renderTagTitle(), this.renderSrText(), this.renderRemoveButton()));
|
79
|
-
}
|
80
|
-
get root() { return index.getElement(this); }
|
81
|
-
};
|
82
|
-
GuxTag.style = guxTagCss;
|
83
|
-
|
84
|
-
exports.gux_tag_beta = GuxTag;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
height: calc(100% - 57px);
|
3
|
-
}
|
4
|
-
:host(:not([hidden])) {
|
5
|
-
display: flex;
|
6
|
-
flex-grow: 1;
|
7
|
-
}
|
8
|
-
:host(:focus) {
|
9
|
-
outline: none;
|
10
|
-
}
|
11
|
-
:host(:focus-visible) {
|
12
|
-
outline: 3px solid #aac9ff;
|
13
|
-
outline-offset: 1px;
|
14
|
-
box-shadow: 0 0 0 1px #fdfdfd;
|
15
|
-
}
|
@@ -1,107 +0,0 @@
|
|
1
|
-
import { h, Host } from '@stencil/core';
|
2
|
-
/**
|
3
|
-
* @slot - content
|
4
|
-
*/
|
5
|
-
export class GuxTabPanelBeta {
|
6
|
-
constructor() {
|
7
|
-
this.tabId = undefined;
|
8
|
-
this.active = false;
|
9
|
-
}
|
10
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
11
|
-
async guxSetActive(active) {
|
12
|
-
this.active = active;
|
13
|
-
}
|
14
|
-
watchActivePanel() {
|
15
|
-
if (this.active === true) {
|
16
|
-
this.guxactivepanelchange.emit(this.tabId);
|
17
|
-
}
|
18
|
-
}
|
19
|
-
render() {
|
20
|
-
return (h(Host, { id: `gux-${this.tabId}-panel`, role: "tabpanel", "aria-labelledby": `gux-${this.tabId}-tab`, tabIndex: 0, hidden: !this.active }, h("slot", null)));
|
21
|
-
}
|
22
|
-
static get is() { return "gux-tab-panel-beta"; }
|
23
|
-
static get encapsulation() { return "shadow"; }
|
24
|
-
static get originalStyleUrls() {
|
25
|
-
return {
|
26
|
-
"$": ["gux-tab-panel-beta.less"]
|
27
|
-
};
|
28
|
-
}
|
29
|
-
static get styleUrls() {
|
30
|
-
return {
|
31
|
-
"$": ["gux-tab-panel-beta.css"]
|
32
|
-
};
|
33
|
-
}
|
34
|
-
static get properties() {
|
35
|
-
return {
|
36
|
-
"tabId": {
|
37
|
-
"type": "string",
|
38
|
-
"mutable": false,
|
39
|
-
"complexType": {
|
40
|
-
"original": "string",
|
41
|
-
"resolved": "string",
|
42
|
-
"references": {}
|
43
|
-
},
|
44
|
-
"required": false,
|
45
|
-
"optional": false,
|
46
|
-
"docs": {
|
47
|
-
"tags": [],
|
48
|
-
"text": "Tab id of the tab that is associated with the panel"
|
49
|
-
},
|
50
|
-
"attribute": "tab-id",
|
51
|
-
"reflect": false
|
52
|
-
}
|
53
|
-
};
|
54
|
-
}
|
55
|
-
static get states() {
|
56
|
-
return {
|
57
|
-
"active": {}
|
58
|
-
};
|
59
|
-
}
|
60
|
-
static get events() {
|
61
|
-
return [{
|
62
|
-
"method": "guxactivepanelchange",
|
63
|
-
"name": "guxactivepanelchange",
|
64
|
-
"bubbles": true,
|
65
|
-
"cancelable": true,
|
66
|
-
"composed": true,
|
67
|
-
"docs": {
|
68
|
-
"tags": [],
|
69
|
-
"text": "Triggers when the active panel changes"
|
70
|
-
},
|
71
|
-
"complexType": {
|
72
|
-
"original": "string",
|
73
|
-
"resolved": "string",
|
74
|
-
"references": {}
|
75
|
-
}
|
76
|
-
}];
|
77
|
-
}
|
78
|
-
static get methods() {
|
79
|
-
return {
|
80
|
-
"guxSetActive": {
|
81
|
-
"complexType": {
|
82
|
-
"signature": "(active: boolean) => Promise<void>",
|
83
|
-
"parameters": [{
|
84
|
-
"tags": [],
|
85
|
-
"text": ""
|
86
|
-
}],
|
87
|
-
"references": {
|
88
|
-
"Promise": {
|
89
|
-
"location": "global"
|
90
|
-
}
|
91
|
-
},
|
92
|
-
"return": "Promise<void>"
|
93
|
-
},
|
94
|
-
"docs": {
|
95
|
-
"text": "",
|
96
|
-
"tags": []
|
97
|
-
}
|
98
|
-
}
|
99
|
-
};
|
100
|
-
}
|
101
|
-
static get watchers() {
|
102
|
-
return [{
|
103
|
-
"propName": "active",
|
104
|
-
"methodName": "watchActivePanel"
|
105
|
-
}];
|
106
|
-
}
|
107
|
-
}
|