genesys-spark-components 3.5.0 → 3.7.1
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 +21 -0
- package/dist/cjs/{en-3662eafc.js → en-3d7b896f.js} +3 -1
- package/dist/cjs/genesys-webcomponents.cjs.js +2 -2
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +4 -4
- package/dist/cjs/gux-action-button.cjs.entry.js +4 -4
- package/dist/cjs/gux-action-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -3
- package/dist/cjs/gux-badge-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-multi.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +3 -3
- package/dist/cjs/gux-card-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-color-select_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-content-search.cjs.entry.js +3 -3
- package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +4 -4
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +297 -0
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +58 -0
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +30 -178
- package/dist/cjs/gux-error-message-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +8 -8
- package/dist/cjs/gux-form-field-color.cjs.entry.js +10 -10
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +91 -0
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +3 -3
- package/dist/cjs/{gux-form-field-label-d5088b51.js → gux-form-field-label-abbb7396.js} +1 -1
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-number.cjs.entry.js +13 -13
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +8 -8
- package/dist/cjs/gux-form-field-range.cjs.entry.js +10 -10
- package/dist/cjs/gux-form-field-search.cjs.entry.js +12 -12
- package/dist/cjs/gux-form-field-select.cjs.entry.js +10 -10
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +12 -12
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +10 -10
- package/dist/cjs/{gux-form-field.servce-e9451c50.js → gux-form-field.service-21126f1d.js} +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-list-divider-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +2 -2
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +159 -0
- package/dist/cjs/gux-listbox.service-d394da79.js +161 -0
- package/dist/cjs/gux-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-notification-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +47 -0
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
- package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-popover-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-popover.cjs.entry.js +3 -3
- package/dist/cjs/gux-popup.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-row-select.cjs.entry.js +3 -3
- package/dist/cjs/gux-side-panel-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-simple-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-sort-control.cjs.entry.js +42 -0
- package/dist/cjs/gux-submenu.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-advanced-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-dropdown-option-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-list.cjs.entry.js +19 -2
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +47 -31
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-picker-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +3 -3
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +3 -3
- package/dist/cjs/{index-33b1b88e.js → index-525cfec0.js} +30 -4
- package/dist/cjs/{index-2202ad01.js → index-57ec1998.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{on-click-outside-246a1eb3.js → on-click-outside-e0d28eff.js} +1 -1
- package/dist/cjs/{on-mutation-2e4dd956.js → on-mutation-347de78d.js} +1 -1
- package/dist/cjs/{usage-tracking-1ddbe5f1.js → usage-tracking-39a72be3.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +50 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +116 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +151 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.js +458 -0
- package/dist/collection/components/beta/gux-table/gux-sort-control/gux-sort-control.css +39 -0
- package/dist/collection/components/beta/gux-table/gux-sort-control/gux-sort-control.js +50 -0
- package/dist/collection/components/beta/gux-table/gux-table.js +43 -27
- package/dist/collection/components/beta/gux-tag/gux-tag.js +0 -17
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +19 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +153 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +126 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +1 -1
- package/dist/collection/components/stable/gux-form-field/{gux-form-field.servce.js → gux-form-field.service.js} +0 -0
- package/dist/collection/components/stable/gux-listbox/gux-listbox.js +7 -9
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +23 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +269 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +167 -0
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +13 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{en-07edddda.js → en-d22521fc.js} +3 -1
- package/dist/esm/genesys-webcomponents.js +2 -2
- package/dist/esm/gux-accordion-legacy.entry.js +2 -2
- package/dist/esm/gux-accordion-section.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +2 -2
- package/dist/esm/gux-action-button-legacy.entry.js +4 -4
- package/dist/esm/gux-action-button.entry.js +4 -4
- package/dist/esm/gux-action-item.entry.js +1 -1
- package/dist/esm/gux-action-list-divider.entry.js +1 -1
- package/dist/esm/gux-action-list-legacy.entry.js +2 -2
- package/dist/esm/gux-action-toast.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown.entry.js +3 -3
- package/dist/esm/gux-all-row-select.entry.js +3 -3
- package/dist/esm/gux-badge-beta.entry.js +3 -3
- package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +3 -3
- package/dist/esm/gux-button-multi-legacy.entry.js +3 -3
- package/dist/esm/gux-button-multi.entry.js +3 -3
- package/dist/esm/gux-button-slot-beta.entry.js +2 -2
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +3 -3
- package/dist/esm/gux-card-beta.entry.js +2 -2
- package/dist/esm/gux-chart-column-beta.entry.js +2 -2
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +2 -2
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
- package/dist/esm/gux-color-select_2.entry.js +1 -1
- package/dist/esm/gux-command-action.entry.js +1 -1
- package/dist/esm/gux-command-palette-legacy.entry.js +3 -3
- package/dist/esm/gux-content-search.entry.js +3 -3
- package/dist/esm/gux-copy-to-clipboard-beta.entry.js +3 -3
- package/dist/esm/gux-datepicker.entry.js +4 -4
- package/dist/esm/gux-disclosure-button.entry.js +3 -3
- package/dist/esm/gux-dismiss-button.entry.js +3 -3
- package/dist/esm/gux-dropdown-legacy.entry.js +4 -4
- package/dist/esm/gux-dropdown-multi-beta.entry.js +293 -0
- package/dist/esm/gux-dropdown-multi-tag.entry.js +54 -0
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +12 -160
- package/dist/esm/gux-error-message-beta.entry.js +2 -2
- package/dist/esm/gux-flyout-menu-beta.entry.js +2 -2
- package/dist/esm/gux-form-field-checkbox.entry.js +4 -4
- package/dist/esm/gux-form-field-color.entry.js +5 -5
- package/dist/esm/gux-form-field-dropdown.entry.js +87 -0
- package/dist/esm/gux-form-field-input-clear-button.entry.js +3 -3
- package/dist/esm/{gux-form-field-label-ac49a8be.js → gux-form-field-label-1d0c1a02.js} +1 -1
- package/dist/esm/gux-form-field-legacy.entry.js +3 -3
- package/dist/esm/gux-form-field-number.entry.js +6 -6
- package/dist/esm/gux-form-field-radio.entry.js +4 -4
- package/dist/esm/gux-form-field-range.entry.js +5 -5
- package/dist/esm/gux-form-field-search.entry.js +5 -5
- package/dist/esm/gux-form-field-select.entry.js +5 -5
- package/dist/esm/gux-form-field-text-like.entry.js +5 -5
- package/dist/esm/gux-form-field-textarea.entry.js +5 -5
- package/dist/esm/{gux-form-field.servce-971609e2.js → gux-form-field.service-4bfd6534.js} +1 -1
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-input-checkbox_7.entry.js +2 -2
- package/dist/esm/gux-input-search.entry.js +2 -2
- package/dist/esm/gux-input-text-like.entry.js +2 -2
- package/dist/esm/gux-list-divider-legacy.entry.js +1 -1
- package/dist/esm/gux-list-divider.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +2 -2
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +2 -2
- package/dist/esm/gux-listbox-multi.entry.js +155 -0
- package/dist/esm/gux-listbox.service-3541a2f7.js +148 -0
- package/dist/esm/gux-menu-option.entry.js +1 -1
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-notification-toast.entry.js +2 -2
- package/dist/esm/gux-option-legacy.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +43 -0
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-beta.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons-beta_3.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons_3.entry.js +2 -2
- package/dist/esm/gux-pagination-cursor.entry.js +3 -3
- package/dist/esm/gux-pagination.entry.js +2 -2
- package/dist/esm/gux-panel-frame-legacy.entry.js +2 -2
- package/dist/esm/gux-popover-list.entry.js +3 -3
- package/dist/esm/gux-popover.entry.js +3 -3
- package/dist/esm/gux-popup.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +3 -3
- package/dist/esm/gux-radial-progress.entry.js +2 -2
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-row-select.entry.js +3 -3
- package/dist/esm/gux-side-panel-button.entry.js +1 -1
- package/dist/esm/gux-side-panel-legacy.entry.js +2 -2
- package/dist/esm/gux-simple-toast.entry.js +2 -2
- package/dist/esm/gux-sort-control.entry.js +38 -0
- package/dist/esm/gux-submenu.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-advanced-list.entry.js +3 -3
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +2 -2
- package/dist/esm/gux-tab-dropdown-option-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-list.entry.js +19 -2
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +47 -31
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs-legacy.entry.js +3 -3
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag-beta.entry.js +3 -3
- package/dist/esm/gux-text-highlight.entry.js +2 -2
- package/dist/esm/gux-text-label-legacy.entry.js +2 -2
- package/dist/esm/gux-time-picker-beta.entry.js +4 -4
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +3 -3
- package/dist/esm/gux-tooltip_2.entry.js +3 -3
- package/dist/esm/gux-visualization-beta.entry.js +3 -3
- package/dist/esm/{index-5bfcdeb1.js → index-16dc4871.js} +1 -1
- package/dist/esm/{index-76794476.js → index-d8b1bc53.js} +30 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{on-click-outside-ce30de20.js → on-click-outside-9635bd3e.js} +1 -1
- package/dist/esm/{on-mutation-2e96b1b9.js → on-mutation-1c2ba0a6.js} +1 -1
- package/dist/esm/{usage-tracking-e9b9fc3f.js → usage-tracking-9ae70c67.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
- package/dist/genesys-webcomponents/{p-c3b9a57f.entry.js → p-00519483.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-013eb64c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-76f7479d.entry.js → p-050ab2cb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8288a4c9.entry.js → p-0b1bf180.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c1b42ab.entry.js → p-0c38f51c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f834153.entry.js → p-0dfa8f9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5674b67a.entry.js → p-1173c715.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6eab0f6.entry.js → p-1255480b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08b07a2b.js → p-14551b38.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a3afda9.entry.js → p-1483501f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7bae2a7d.entry.js → p-166e7535.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f26b46dc.entry.js → p-16e8f471.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c57956f.entry.js → p-17e7772d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e4e5aa67.entry.js → p-1ad06cfc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbd66a48.entry.js → p-1d09f345.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7512b26a.entry.js → p-1d83549a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5f8b46b5.entry.js → p-1f1554e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2092557f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dc714f80.entry.js → p-2aac6bab.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2b24dcb6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c150db37.entry.js → p-2b7d8c71.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-66e648d2.entry.js → p-3308c20e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4402a21b.entry.js → p-33c27a48.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b7056b2.js → p-35578249.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b476241.entry.js → p-356c4b29.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e61558ed.entry.js → p-35c9b84c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5534193b.entry.js → p-371cffc7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
- package/dist/genesys-webcomponents/{p-6b756f6d.entry.js → p-398cbe65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f329dbea.entry.js → p-3a830867.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3e2578c.entry.js → p-3d888c4f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f0e923b9.entry.js → p-3e72de53.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca932cd2.js → p-440657a8.js} +1 -1
- package/dist/genesys-webcomponents/p-448d6c60.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f114dc1b.entry.js → p-44ac7dd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6257c98.js → p-451a9239.js} +1 -1
- package/dist/genesys-webcomponents/{p-8df52df5.entry.js → p-45517975.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ec0cec3.entry.js → p-469eea38.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-480ffa9e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5ca81424.js → p-49b1912a.js} +1 -1
- package/dist/genesys-webcomponents/{p-44ea15ed.entry.js → p-4b58fc7e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2548bdad.js → p-523a0237.js} +1 -1
- package/dist/genesys-webcomponents/{p-45df9c11.entry.js → p-5453b69f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c551dd14.entry.js → p-54866ea0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2a5fea9.entry.js → p-5647d38b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f62d408a.entry.js → p-573f5ff0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53df4573.entry.js → p-5b9ed635.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78fa1cfb.entry.js → p-5baa156e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed56171c.entry.js → p-5ebb0e5e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c89c74eb.entry.js → p-603a557b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1313a627.entry.js → p-646c8c96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-029337ed.entry.js → p-647dd4a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-421513fb.entry.js → p-659e0050.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d7a2f8dc.entry.js → p-66117fa0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6be57719.entry.js → p-6c8e24ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ddf13c8.entry.js → p-6fe4eeb9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5587d078.entry.js → p-717c426f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-74ab4e9c.entry.js → p-7341343a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72291037.entry.js → p-7454d082.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45d49edc.entry.js → p-7623d68f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b190a126.entry.js → p-78035895.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a4584b1.entry.js → p-7e8a517b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6d44d2f.entry.js → p-84bc8565.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8a1b9201.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e7caa47a.entry.js → p-8bc4b382.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b0259c1a.entry.js → p-90d3e8af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34e05274.entry.js → p-9154b32a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-193d169d.entry.js → p-92e0518f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-548af6d1.entry.js → p-98229921.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8b8ae7f.entry.js → p-9869e6f4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be4455b9.entry.js → p-98dd850d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1f6910e.entry.js → p-99b858d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2d9198b1.entry.js → p-9b6e59f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d75428f1.entry.js → p-9d36ee95.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c72a8228.entry.js → p-9df54194.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3fcbbe4.entry.js → p-9fe46900.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b4d8050.entry.js → p-a09cb82d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0ba16a48.entry.js → p-a0a0d12d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25b74c1b.entry.js → p-a13ff6ec.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a2f34941.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-cfd5c06d.entry.js → p-a41b086e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2acf2470.entry.js → p-a6509d00.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30558b17.entry.js → p-b0205823.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b0c0bff1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b1bffdc0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-29744d9a.entry.js → p-b1cb1a31.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5c9fbed.entry.js → p-b225ce42.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b27f0bef.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-68ee84bf.entry.js → p-b41cc336.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4083afa6.entry.js → p-b5867962.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3d2cb50a.entry.js → p-b695ac46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e78c86e4.entry.js → p-b98f76af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4730ee1.entry.js → p-bb1431b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3bdfcc9.entry.js → p-bf05f0be.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b664a390.entry.js → p-c13e9b91.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-344828ad.entry.js → p-c251e266.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c66803cf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d429ff71.entry.js → p-c6715c5a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cb3d0262.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-882bb0d7.entry.js → p-ccaedc78.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5190a2c0.entry.js → p-cd9decab.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cdf5cb56.js +1 -0
- package/dist/genesys-webcomponents/{p-d63d33a7.entry.js → p-d30142cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bea0187a.entry.js → p-d33adb9d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1856e5cd.entry.js → p-d5939eb4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b98439e6.entry.js → p-d820f160.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1bef4ea7.entry.js → p-d8fb93d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-24206bb9.entry.js → p-dbad07cb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4cc40ffe.entry.js → p-ddbe5e3d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2212a472.entry.js → p-e0660777.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcdf8926.entry.js → p-e122b070.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e56e0d6a.entry.js → p-e3aa0165.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e571f861.js +2 -0
- package/dist/genesys-webcomponents/{p-caff3783.entry.js → p-e996ed62.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eadf85b3.entry.js → p-eafca6fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c87736cc.entry.js → p-f3f4c59f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-84165fbe.entry.js → p-fca55791.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7abebb37.entry.js → p-fee0493f.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +20 -0
- package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi.d.ts +56 -0
- package/dist/types/components/beta/gux-table/gux-sort-control/gux-sort-control.d.ts +13 -0
- package/dist/types/components/beta/gux-table/gux-table.d.ts +2 -0
- package/dist/types/components/beta/gux-tag/gux-tag.d.ts +0 -4
- package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +1 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.d.ts +27 -0
- package/dist/types/components/stable/gux-form-field/{gux-form-field.servce.d.ts → gux-form-field.service.d.ts} +1 -1
- package/dist/types/components/stable/gux-listbox/gux-listbox.d.ts +1 -1
- package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +28 -0
- package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +15 -0
- package/dist/types/components/stable/gux-tabs/gux-tab-list/gux-tab-list.d.ts +1 -0
- package/dist/types/components.d.ts +136 -8
- package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-2dac107b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4a67745f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-61fd6f64.entry.js +0 -1
- package/dist/genesys-webcomponents/p-83818ffb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-947b7fe3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a085b143.js +0 -2
- package/dist/genesys-webcomponents/p-ab1ad75b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-afb54d23.js +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
|
+
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
5
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
6
|
+
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
7
|
+
import './random-html-id-8e3f658c.js';
|
|
8
|
+
import './log-error-b1a1a086.js';
|
|
9
|
+
import './set-input-value-5adeaccc.js';
|
|
10
|
+
import './simulate-native-event-ac69961f.js';
|
|
11
|
+
|
|
12
|
+
const guxFormFieldDropdownCss = ".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(select){flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted(select)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:#2a60c8}.gux-input-and-error-container .gux-input .gux-input-container select{flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;top:0;right:0;width:16px;height:16px;margin:8px;pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
13
|
+
|
|
14
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
17
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
18
|
+
else
|
|
19
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
20
|
+
if (d = decorators[i])
|
|
21
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
const GuxFormFieldDropdown = class {
|
|
25
|
+
constructor(hostRef) {
|
|
26
|
+
registerInstance(this, hostRef);
|
|
27
|
+
this.computedLabelPosition = 'above';
|
|
28
|
+
this.hasError = false;
|
|
29
|
+
}
|
|
30
|
+
onMutation() {
|
|
31
|
+
this.hasError = hasErrorSlot(this.root);
|
|
32
|
+
}
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
this.setInput();
|
|
35
|
+
this.setLabel();
|
|
36
|
+
this.hasError = hasErrorSlot(this.root);
|
|
37
|
+
trackComponent(this.root, { variant: this.variant });
|
|
38
|
+
}
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
this.disabledObserver.disconnect();
|
|
41
|
+
this.requiredObserver.disconnect();
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h(GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, h("slot", { name: "label", onSlotchange: () => this.setLabel() })), h("div", { class: "gux-input-and-error-container" }, h("div", { class: {
|
|
45
|
+
'gux-input': true,
|
|
46
|
+
'gux-input-error': this.hasError
|
|
47
|
+
} }, h("div", { class: {
|
|
48
|
+
'gux-dropdown-container': true,
|
|
49
|
+
'gux-disabled': this.disabled
|
|
50
|
+
} }, h("slot", null))), h(GuxFormFieldError, { hasError: this.hasError }, h("slot", { name: "error" })))));
|
|
51
|
+
}
|
|
52
|
+
get variant() {
|
|
53
|
+
const labelPositionVariant = this.labelPosition
|
|
54
|
+
? this.labelPosition.toLowerCase()
|
|
55
|
+
: 'none';
|
|
56
|
+
const type = 'dropdown';
|
|
57
|
+
return `${type}-${labelPositionVariant}`;
|
|
58
|
+
}
|
|
59
|
+
setInput() {
|
|
60
|
+
this.dropdownElement =
|
|
61
|
+
this.root.querySelector('gux-dropdown') ||
|
|
62
|
+
this.root.querySelector('gux-dropdown-multi-beta');
|
|
63
|
+
this.listboxElement =
|
|
64
|
+
this.root.querySelector('gux-listbox') ||
|
|
65
|
+
this.root.querySelector('gux-listbox-multi');
|
|
66
|
+
this.disabled = this.dropdownElement.disabled;
|
|
67
|
+
this.required = this.dropdownElement.required;
|
|
68
|
+
this.disabledObserver = onDisabledChange(this.dropdownElement, (disabled) => {
|
|
69
|
+
this.disabled = disabled;
|
|
70
|
+
});
|
|
71
|
+
this.requiredObserver = onRequiredChange(this.dropdownElement, (required) => {
|
|
72
|
+
this.required = required;
|
|
73
|
+
});
|
|
74
|
+
validateFormIds(this.root, this.listboxElement);
|
|
75
|
+
}
|
|
76
|
+
setLabel() {
|
|
77
|
+
this.label = this.root.querySelector('label[slot="label"]');
|
|
78
|
+
this.computedLabelPosition = getComputedLabelPosition(this.label, this.labelPosition);
|
|
79
|
+
}
|
|
80
|
+
get root() { return getElement(this); }
|
|
81
|
+
};
|
|
82
|
+
__decorate([
|
|
83
|
+
OnMutation({ childList: true, subtree: true })
|
|
84
|
+
], GuxFormFieldDropdown.prototype, "onMutation", null);
|
|
85
|
+
GuxFormFieldDropdown.style = guxFormFieldDropdownCss;
|
|
86
|
+
|
|
87
|
+
export { GuxFormFieldDropdown as gux_form_field_dropdown };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
3
|
-
import { b as buildI18nForComponent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
3
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
4
4
|
import './get-closest-element-1597503c.js';
|
|
5
5
|
|
|
6
6
|
const clear = "Clear";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
4
4
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
5
5
|
import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
6
6
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
7
|
-
import { t as trackComponent } from './usage-tracking-
|
|
7
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
8
8
|
|
|
9
9
|
const guxFormFieldCss = "gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { b as buildI18nForComponent } from './index-
|
|
3
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
3
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
4
4
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
6
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
7
7
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
8
8
|
import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
|
|
9
|
-
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-
|
|
10
|
-
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
9
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
10
|
+
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
11
11
|
import './get-closest-element-1597503c.js';
|
|
12
12
|
import './random-html-id-8e3f658c.js';
|
|
13
13
|
import './log-error-b1a1a086.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.service-4bfd6534.js';
|
|
7
7
|
import './random-html-id-8e3f658c.js';
|
|
8
8
|
import './log-error-b1a1a086.js';
|
|
9
9
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { a as GuxFormFieldContainer, G as GuxFormFieldLabel } from './gux-form-field-label-
|
|
7
|
-
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { a as GuxFormFieldContainer, G as GuxFormFieldLabel } from './gux-form-field-label-1d0c1a02.js';
|
|
7
|
+
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
9
9
|
import './log-error-b1a1a086.js';
|
|
10
10
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-
|
|
7
|
-
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
7
|
+
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
9
9
|
import './log-error-b1a1a086.js';
|
|
10
10
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-
|
|
7
|
-
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
7
|
+
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
9
9
|
import './log-error-b1a1a086.js';
|
|
10
10
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-
|
|
7
|
-
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
7
|
+
import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
9
9
|
import './log-error-b1a1a086.js';
|
|
10
10
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { O as OnMutation } from './on-mutation-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
|
|
3
3
|
import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
|
|
4
4
|
import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
|
|
5
|
-
import { t as trackComponent } from './usage-tracking-
|
|
6
|
-
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-
|
|
7
|
-
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
6
|
+
import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
|
|
7
|
+
import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
|
|
8
8
|
import './random-html-id-8e3f658c.js';
|
|
9
9
|
import './log-error-b1a1a086.js';
|
|
10
10
|
import './set-input-value-5adeaccc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-d8b1bc53.js';
|
|
2
2
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
3
3
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
4
4
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as getAssetPath, r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
1
|
+
import { a as getAssetPath, r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
3
3
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
4
4
|
|
|
5
5
|
const iconNameMap = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { b as buildI18nForComponent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
3
3
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
4
4
|
import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { b as buildI18nForComponent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
3
3
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
4
4
|
import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import './get-closest-element-1597503c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { b as buildI18nForComponent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
3
3
|
import { s as setInputValue } from './set-input-value-5adeaccc.js';
|
|
4
4
|
import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
|
|
5
5
|
import './get-closest-element-1597503c.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-d8b1bc53.js';
|
|
2
2
|
|
|
3
3
|
const guxListDividerCss = ":host{position:relative;display:flex;height:32px;height:1px;padding:0;margin:16px 0;line-height:32px;pointer-events:none;cursor:pointer;background-color:#c8cfda}";
|
|
4
4
|
|
|
@@ -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-d8b1bc53.js';
|
|
2
2
|
|
|
3
3
|
const guxListDividerCss = ":host{position:relative;display:flex;width:100%;height:1px;padding:0;margin:16px 0;line-height:32px;pointer-events:none;cursor:pointer;cursor:default;background-color:#c8cfda}";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
3
3
|
|
|
4
4
|
const guxListItemCss = ":host:focus .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";
|
|
5
5
|
|
|
@@ -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-d8b1bc53.js';
|
|
2
2
|
import { g as getClosestElement } from './get-closest-element-1597503c.js';
|
|
3
3
|
|
|
4
4
|
const guxListItemCss = ":host{width:100%;outline:none}:host([disabled]){pointer-events:none}::slotted(gux-icon){width:16px;height:16px;margin-right:8px;vertical-align:middle}button{all:unset;box-sizing:border-box;width:100%;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer;border:none;outline:none}button:focus:not(:disabled){color:#fdfdfd;background:#2a60c8}button:hover:not(:disabled){color:#fdfdfd;background:#2754ac}button:active:not(:disabled){color:#fdfdfd;background:#23478f}button:disabled{color:rgba(46, 57, 76, 0.5);cursor:default}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
3
3
|
|
|
4
4
|
const validFocusableItems = ['gux-list-item'];
|
|
5
5
|
function getRootChildren(root) {
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8b1bc53.js';
|
|
2
|
+
import { s as setInitialActiveOption, c as clearActiveOptions, a as setLastOptionActive, b as setFirstOptionActive, h as hasPreviousOption, d as setPreviousOptionActive, e as hasNextOption, f as setNextOptionActive, i as actOnActiveOption, j as goToOption, o as onClickedOption } from './gux-listbox.service-3541a2f7.js';
|
|
3
|
+
import { b as buildI18nForComponent } from './index-16dc4871.js';
|
|
4
|
+
import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
|
|
5
|
+
import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
|
|
6
|
+
import { t as trackComponent } from './usage-tracking-9ae70c67.js';
|
|
7
|
+
import './get-closest-element-1597503c.js';
|
|
8
|
+
|
|
9
|
+
const noMatches = "No matches";
|
|
10
|
+
const translationResources = {
|
|
11
|
+
noMatches: noMatches
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const guxListboxMultiCss = ":host{box-sizing:border-box;display:block;max-height:20rem;padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;outline:none}:host(:focus){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";
|
|
15
|
+
|
|
16
|
+
const GuxListboxMulti = class {
|
|
17
|
+
constructor(hostRef) {
|
|
18
|
+
registerInstance(this, hostRef);
|
|
19
|
+
this.internallistboxoptionsupdated = createEvent(this, "internallistboxoptionsupdated", 7);
|
|
20
|
+
this.filter = '';
|
|
21
|
+
this.selectedValues = [];
|
|
22
|
+
this.listboxOptions = [];
|
|
23
|
+
}
|
|
24
|
+
onFocus() {
|
|
25
|
+
setInitialActiveOption(this.root);
|
|
26
|
+
}
|
|
27
|
+
onBlur() {
|
|
28
|
+
clearActiveOptions(this.root);
|
|
29
|
+
}
|
|
30
|
+
onKeydown(event) {
|
|
31
|
+
switch (event.key) {
|
|
32
|
+
case 'Enter':
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
35
|
+
return;
|
|
36
|
+
case 'ArrowDown':
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
if (hasNextOption(this.root)) {
|
|
39
|
+
event.stopPropagation();
|
|
40
|
+
setNextOptionActive(this.root);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
setFirstOptionActive(this.root);
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
case 'ArrowUp': {
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
if (hasPreviousOption(this.root)) {
|
|
49
|
+
event.stopPropagation();
|
|
50
|
+
setPreviousOptionActive(this.root);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
setLastOptionActive(this.root);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
case 'Home': {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
setFirstOptionActive(this.root);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
case 'End': {
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
setLastOptionActive(this.root);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
case ' ': {
|
|
68
|
+
event.preventDefault();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (event.key.length === 1) {
|
|
73
|
+
goToOption(this.root, event.key);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
onKeyup(event) {
|
|
78
|
+
switch (event.key) {
|
|
79
|
+
case ' ':
|
|
80
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
onMousemove() {
|
|
85
|
+
clearActiveOptions(this.root);
|
|
86
|
+
}
|
|
87
|
+
onClick(event) {
|
|
88
|
+
whenEventIsFrom('gux-option-multi', event, (option) => {
|
|
89
|
+
onClickedOption(option, value => this.updateValue(value));
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
validateValue() {
|
|
93
|
+
if (this.value) {
|
|
94
|
+
this.selectedValues = this.value.split(',');
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
this.selectedValues = [];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
101
|
+
async guxSelectActive() {
|
|
102
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
103
|
+
}
|
|
104
|
+
setListboxOptions() {
|
|
105
|
+
if (this.value) {
|
|
106
|
+
this.selectedValues = this.value.split(',');
|
|
107
|
+
}
|
|
108
|
+
this.listboxOptions = Array.from(this.root.children);
|
|
109
|
+
this.internallistboxoptionsupdated.emit();
|
|
110
|
+
}
|
|
111
|
+
updateValue(newValue) {
|
|
112
|
+
if (!this.selectedValues.includes(newValue)) {
|
|
113
|
+
const newArray = [...this.selectedValues, newValue];
|
|
114
|
+
this.selectedValues = newArray;
|
|
115
|
+
this.value = this.selectedValues.join(',');
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.selectedValues = this.selectedValues.filter(e => e !== newValue);
|
|
119
|
+
this.value = this.selectedValues.join(',');
|
|
120
|
+
}
|
|
121
|
+
simulateNativeEvent(this.root, 'input');
|
|
122
|
+
simulateNativeEvent(this.root, 'change');
|
|
123
|
+
}
|
|
124
|
+
async componentWillLoad() {
|
|
125
|
+
trackComponent(this.root);
|
|
126
|
+
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
|
127
|
+
this.setListboxOptions();
|
|
128
|
+
}
|
|
129
|
+
componentWillRender() {
|
|
130
|
+
this.listboxOptions.forEach(listboxOption => {
|
|
131
|
+
listboxOption.selected = this.selectedValues.includes(listboxOption.value);
|
|
132
|
+
listboxOption.filtered = !listboxOption.textContent
|
|
133
|
+
.toLowerCase()
|
|
134
|
+
.startsWith(this.filter.toLowerCase());
|
|
135
|
+
});
|
|
136
|
+
this.allListboxOptionsFiltered =
|
|
137
|
+
this.listboxOptions.filter(listboxOption => !listboxOption.filtered)
|
|
138
|
+
.length === 0;
|
|
139
|
+
}
|
|
140
|
+
renderAllListboxOptionsFiltered() {
|
|
141
|
+
if (this.allListboxOptionsFiltered) {
|
|
142
|
+
return (h("div", { class: "gux-no-matches" }, this.i18n('noMatches')));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
return (h(Host, { role: "listbox", "aria-multiselectable": "true", tabindex: 0 }, h("slot", { onSlotchange: () => this.setListboxOptions() }), this.renderAllListboxOptionsFiltered()));
|
|
147
|
+
}
|
|
148
|
+
get root() { return getElement(this); }
|
|
149
|
+
static get watchers() { return {
|
|
150
|
+
"value": ["validateValue"]
|
|
151
|
+
}; }
|
|
152
|
+
};
|
|
153
|
+
GuxListboxMulti.style = guxListboxMultiCss;
|
|
154
|
+
|
|
155
|
+
export { GuxListboxMulti as gux_listbox_multi };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
function getListOptions(list) {
|
|
2
|
+
return Array.from(list.children);
|
|
3
|
+
}
|
|
4
|
+
function getHoveredOption(list) {
|
|
5
|
+
return getListOptions(list).find(option => option.hovered && !option.disabled && !option.filtered);
|
|
6
|
+
}
|
|
7
|
+
function getFirstSelectedOption(list) {
|
|
8
|
+
return getListOptions(list).find(option => option.selected && !option.disabled && !option.filtered);
|
|
9
|
+
}
|
|
10
|
+
function getActiveOption(list) {
|
|
11
|
+
return getListOptions(list).find(option => option.active);
|
|
12
|
+
}
|
|
13
|
+
function setActiveOption(list, element) {
|
|
14
|
+
if (element) {
|
|
15
|
+
getListOptions(list).forEach(option => {
|
|
16
|
+
const active = (!option.disabled || !option.filtered) && option === element;
|
|
17
|
+
option.active = active;
|
|
18
|
+
if (active) {
|
|
19
|
+
list.setAttribute('aria-activedescendant', option.id);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
element.scrollIntoView({ block: 'nearest' });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function getFirstOption(list) {
|
|
26
|
+
let firstOption = getListOptions(list)[0];
|
|
27
|
+
while (firstOption && (firstOption.disabled || firstOption.filtered)) {
|
|
28
|
+
firstOption = firstOption.nextElementSibling;
|
|
29
|
+
}
|
|
30
|
+
return firstOption;
|
|
31
|
+
}
|
|
32
|
+
function getNextOption(list) {
|
|
33
|
+
if (hasActiveOption(list)) {
|
|
34
|
+
let nextOption = getActiveOption(list)
|
|
35
|
+
.nextElementSibling;
|
|
36
|
+
while (nextOption && (nextOption.disabled || nextOption.filtered)) {
|
|
37
|
+
nextOption = nextOption.nextElementSibling;
|
|
38
|
+
}
|
|
39
|
+
return nextOption;
|
|
40
|
+
}
|
|
41
|
+
return getFirstOption(list);
|
|
42
|
+
}
|
|
43
|
+
function getPreviousOption(list) {
|
|
44
|
+
if (hasActiveOption(list)) {
|
|
45
|
+
let previousOption = getActiveOption(list)
|
|
46
|
+
.previousElementSibling;
|
|
47
|
+
while (previousOption &&
|
|
48
|
+
(previousOption.disabled || previousOption.filtered)) {
|
|
49
|
+
previousOption =
|
|
50
|
+
previousOption.previousElementSibling;
|
|
51
|
+
}
|
|
52
|
+
return previousOption;
|
|
53
|
+
}
|
|
54
|
+
return getFirstOption(list);
|
|
55
|
+
}
|
|
56
|
+
function getLastOption(list) {
|
|
57
|
+
const options = getListOptions(list);
|
|
58
|
+
let lastOption = options[options.length - 1];
|
|
59
|
+
while (lastOption && (lastOption.disabled || lastOption.filtered)) {
|
|
60
|
+
lastOption = lastOption.previousElementSibling;
|
|
61
|
+
}
|
|
62
|
+
return lastOption;
|
|
63
|
+
}
|
|
64
|
+
function hasActiveOption(list) {
|
|
65
|
+
return Boolean(getActiveOption(list));
|
|
66
|
+
}
|
|
67
|
+
function getSearchOption(list, searchString) {
|
|
68
|
+
return getListOptions(list).find(option => {
|
|
69
|
+
return ((!option.disabled || !option.filtered) &&
|
|
70
|
+
option.textContent.toLowerCase().startsWith(searchString.toLowerCase()));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function setSearchOptionActive(list, searchString) {
|
|
74
|
+
const option = getSearchOption(list, searchString);
|
|
75
|
+
if (option) {
|
|
76
|
+
setActiveOption(list, option);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
clearActiveOptions(list);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function clearActiveOptions(list) {
|
|
83
|
+
getListOptions(list).forEach(option => {
|
|
84
|
+
option.active = false;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function setInitialActiveOption(list) {
|
|
88
|
+
setActiveOption(list, getHoveredOption(list) ||
|
|
89
|
+
getFirstSelectedOption(list) ||
|
|
90
|
+
getFirstOption(list));
|
|
91
|
+
}
|
|
92
|
+
function hasPreviousOption(list) {
|
|
93
|
+
if (hasActiveOption(list)) {
|
|
94
|
+
let previousOption = getActiveOption(list)
|
|
95
|
+
.previousElementSibling;
|
|
96
|
+
while (previousOption &&
|
|
97
|
+
(previousOption.disabled || previousOption.filtered)) {
|
|
98
|
+
previousOption =
|
|
99
|
+
previousOption.previousElementSibling;
|
|
100
|
+
}
|
|
101
|
+
return Boolean(previousOption);
|
|
102
|
+
}
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
function hasNextOption(list) {
|
|
106
|
+
if (hasActiveOption(list)) {
|
|
107
|
+
let nextOption = getActiveOption(list)
|
|
108
|
+
.nextElementSibling;
|
|
109
|
+
while (nextOption && (nextOption.disabled || nextOption.filtered)) {
|
|
110
|
+
nextOption = nextOption.nextElementSibling;
|
|
111
|
+
}
|
|
112
|
+
return Boolean(nextOption);
|
|
113
|
+
}
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
function setFirstOptionActive(list) {
|
|
117
|
+
setActiveOption(list, getFirstOption(list));
|
|
118
|
+
}
|
|
119
|
+
function setNextOptionActive(list) {
|
|
120
|
+
setActiveOption(list, getNextOption(list));
|
|
121
|
+
}
|
|
122
|
+
function setPreviousOptionActive(list) {
|
|
123
|
+
setActiveOption(list, getPreviousOption(list));
|
|
124
|
+
}
|
|
125
|
+
function setLastOptionActive(list) {
|
|
126
|
+
setActiveOption(list, getLastOption(list));
|
|
127
|
+
}
|
|
128
|
+
function actOnActiveOption(list, handler) {
|
|
129
|
+
if (hasActiveOption(list)) {
|
|
130
|
+
handler(getActiveOption(list).value);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function onClickedOption(option, handler) {
|
|
134
|
+
handler(option.value);
|
|
135
|
+
}
|
|
136
|
+
let timer;
|
|
137
|
+
let searchStringState = '';
|
|
138
|
+
const searchDebounceInterval = 250;
|
|
139
|
+
function goToOption(list, letter) {
|
|
140
|
+
clearTimeout(timer);
|
|
141
|
+
searchStringState += letter;
|
|
142
|
+
timer = setTimeout(() => {
|
|
143
|
+
setSearchOptionActive(list, searchStringState);
|
|
144
|
+
searchStringState = '';
|
|
145
|
+
}, searchDebounceInterval);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export { setLastOptionActive as a, setFirstOptionActive as b, clearActiveOptions as c, setPreviousOptionActive as d, hasNextOption as e, setNextOptionActive as f, getSearchOption as g, hasPreviousOption as h, actOnActiveOption as i, goToOption as j, onClickedOption as o, setInitialActiveOption as s };
|