genesys-spark-components 3.5.0 → 3.6.0
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 +7 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
- 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_3.cjs.entry.js +27 -175
- package/dist/cjs/gux-error-message-beta.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 +6 -6
- package/dist/cjs/gux-form-field-color.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +91 -0
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-range.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-search.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-select.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +7 -7
- package/dist/cjs/{gux-form-field.servce-e9451c50.js → gux-form-field.service-e38b2c2f.js} +0 -0
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- 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-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast.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 +1 -1
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover.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-side-panel-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/index-33b1b88e.js +24 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-1ddbe5f1.js → usage-tracking-f3cc3f84.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -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-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/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-legacy.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button-legacy.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-list-legacy.entry.js +1 -1
- package/dist/esm/gux-action-toast.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
- package/dist/esm/gux-badge-beta.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot-beta.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card-beta.entry.js +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
- 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_3.entry.js +9 -157
- package/dist/esm/gux-error-message-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +87 -0
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-legacy.entry.js +1 -1
- package/dist/esm/gux-form-field-number.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +2 -2
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +2 -2
- package/dist/esm/gux-form-field-select.entry.js +2 -2
- 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.servce-971609e2.js → gux-form-field.service-4ad30790.js} +0 -0
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +155 -0
- package/dist/esm/gux-listbox.service-3541a2f7.js +148 -0
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-notification-toast.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +43 -0
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-beta.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-popover.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-side-panel-legacy.entry.js +1 -1
- package/dist/esm/gux-simple-toast.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs-legacy.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag-beta.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-text-label-legacy.entry.js +1 -1
- package/dist/esm/gux-time-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip_2.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/esm/index-76794476.js +24 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-e9b9fc3f.js → usage-tracking-83359dbf.js} +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-020690ec.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-29744d9a.entry.js → p-0319263d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b190a126.entry.js → p-0424f896.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6be57719.entry.js → p-07f57fba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f0e923b9.entry.js → p-0c2f3d37.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ec0cec3.entry.js → p-0d51e659.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed56171c.entry.js → p-0eade7d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eadf85b3.entry.js → p-11a585f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30558b17.entry.js → p-1729a48c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e56e0d6a.entry.js → p-17980fa9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b98439e6.entry.js → p-1b839ce5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-344828ad.entry.js → p-2428f6b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45df9c11.entry.js → p-291608e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b4d8050.entry.js → p-29f0760a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7caa47a.entry.js → p-2a0fbc9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a67745f.entry.js → p-2a2f15bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1f6910e.entry.js → p-32235f46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6b756f6d.entry.js → p-323c1430.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-76f7479d.entry.js → p-32585fea.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
- package/dist/genesys-webcomponents/{p-4cc40ffe.entry.js → p-39d898df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d75428f1.entry.js → p-3e94ba55.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3fcbbe4.entry.js → p-42f9c421.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08b07a2b.js → p-479cf5a2.js} +0 -0
- package/dist/genesys-webcomponents/{p-1313a627.entry.js → p-4c5acf82.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b664a390.entry.js → p-58b5efa2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5534193b.entry.js → p-5bbf331f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c551dd14.entry.js → p-60f75d6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2d9198b1.entry.js → p-62c2dcaf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-548af6d1.entry.js → p-62d1cde8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-66ca3da0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-84165fbe.entry.js → p-6809132b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f62d408a.entry.js → p-6e2e5f6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1bef4ea7.entry.js → p-71a69169.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7512b26a.entry.js → p-7213d71d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c1b42ab.entry.js → p-772f31b1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4730ee1.entry.js → p-77f93a2b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25b74c1b.entry.js → p-787ec751.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a4584b1.entry.js → p-7b4f9126.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f834153.entry.js → p-7cc82e6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7bae2a7d.entry.js → p-88b2b100.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be4455b9.entry.js → p-90ba25cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcdf8926.entry.js → p-95e43594.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-caff3783.entry.js → p-964097f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4083afa6.entry.js → p-9a09169f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5190a2c0.entry.js → p-9d663bf4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d429ff71.entry.js → p-9f97f311.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca932cd2.js → p-a44f5924.js} +1 -1
- package/dist/genesys-webcomponents/{p-24206bb9.entry.js → p-a5fa799d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1856e5cd.entry.js → p-a87d2b90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f329dbea.entry.js → p-a926e0c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a9499ee1.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d63d33a7.entry.js → p-ab11ff84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8b8ae7f.entry.js → p-af4be06f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f114dc1b.entry.js → p-b7c37cbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3e2578c.entry.js → p-bd2fd32a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-882bb0d7.entry.js → p-bf6fd055.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c89c74eb.entry.js → p-c3582f7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6d44d2f.entry.js → p-cc544e76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-66e648d2.entry.js → p-ccfa2e58.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbd66a48.entry.js → p-cf581353.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44ea15ed.entry.js → p-d989c6fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e78c86e4.entry.js → p-dbc95134.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5587d078.entry.js → p-dc53d8fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f26b46dc.entry.js → p-dee741ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-193d169d.entry.js → p-e67b0d46.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e78de8af.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c72a8228.entry.js → p-e813ac64.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ea1706f3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c3b9a57f.entry.js → p-eaff9d4f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b0259c1a.entry.js → p-ef9491b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83818ffb.entry.js → p-f07ad3df.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f4e91e7a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-72291037.entry.js → p-fa36c86b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-fb49bd0d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dc714f80.entry.js → p-fb6977e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2dac107b.entry.js → p-fd4474d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78fa1cfb.entry.js → p-ff2a29fb.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-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.d.ts +123 -8
- package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-3d2cb50a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ab1ad75b.entry.js +0 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
+
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
|
+
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
|
+
import { trackComponent } from '../../../../../usage-tracking';
|
|
12
|
+
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
13
|
+
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
14
|
+
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
15
|
+
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
16
|
+
/**
|
|
17
|
+
* @slot input - Required slot for input tag
|
|
18
|
+
* @slot label - Required slot for label tag
|
|
19
|
+
* @slot error - Optional slot for error message
|
|
20
|
+
*/
|
|
21
|
+
export class GuxFormFieldDropdown {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.computedLabelPosition = 'above';
|
|
24
|
+
this.hasError = false;
|
|
25
|
+
}
|
|
26
|
+
onMutation() {
|
|
27
|
+
this.hasError = hasErrorSlot(this.root);
|
|
28
|
+
}
|
|
29
|
+
componentWillLoad() {
|
|
30
|
+
this.setInput();
|
|
31
|
+
this.setLabel();
|
|
32
|
+
this.hasError = hasErrorSlot(this.root);
|
|
33
|
+
trackComponent(this.root, { variant: this.variant });
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
this.disabledObserver.disconnect();
|
|
37
|
+
this.requiredObserver.disconnect();
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return (h(GuxFormFieldContainer, { labelPosition: this.computedLabelPosition },
|
|
41
|
+
h(GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required },
|
|
42
|
+
h("slot", { name: "label", onSlotchange: () => this.setLabel() })),
|
|
43
|
+
h("div", { class: "gux-input-and-error-container" },
|
|
44
|
+
h("div", { class: {
|
|
45
|
+
'gux-input': true,
|
|
46
|
+
'gux-input-error': this.hasError
|
|
47
|
+
} },
|
|
48
|
+
h("div", { class: {
|
|
49
|
+
'gux-dropdown-container': true,
|
|
50
|
+
'gux-disabled': this.disabled
|
|
51
|
+
} },
|
|
52
|
+
h("slot", null))),
|
|
53
|
+
h(GuxFormFieldError, { hasError: this.hasError },
|
|
54
|
+
h("slot", { name: "error" })))));
|
|
55
|
+
}
|
|
56
|
+
get variant() {
|
|
57
|
+
const labelPositionVariant = this.labelPosition
|
|
58
|
+
? this.labelPosition.toLowerCase()
|
|
59
|
+
: 'none';
|
|
60
|
+
const type = 'dropdown';
|
|
61
|
+
return `${type}-${labelPositionVariant}`;
|
|
62
|
+
}
|
|
63
|
+
setInput() {
|
|
64
|
+
this.dropdownElement =
|
|
65
|
+
this.root.querySelector('gux-dropdown') ||
|
|
66
|
+
this.root.querySelector('gux-dropdown-multi-beta');
|
|
67
|
+
this.listboxElement =
|
|
68
|
+
this.root.querySelector('gux-listbox') ||
|
|
69
|
+
this.root.querySelector('gux-listbox-multi');
|
|
70
|
+
this.disabled = this.dropdownElement.disabled;
|
|
71
|
+
this.required = this.dropdownElement.required;
|
|
72
|
+
this.disabledObserver = onDisabledChange(this.dropdownElement, (disabled) => {
|
|
73
|
+
this.disabled = disabled;
|
|
74
|
+
});
|
|
75
|
+
this.requiredObserver = onRequiredChange(this.dropdownElement, (required) => {
|
|
76
|
+
this.required = required;
|
|
77
|
+
});
|
|
78
|
+
validateFormIds(this.root, this.listboxElement);
|
|
79
|
+
}
|
|
80
|
+
setLabel() {
|
|
81
|
+
this.label = this.root.querySelector('label[slot="label"]');
|
|
82
|
+
this.computedLabelPosition = getComputedLabelPosition(this.label, this.labelPosition);
|
|
83
|
+
}
|
|
84
|
+
static get is() { return "gux-form-field-dropdown"; }
|
|
85
|
+
static get encapsulation() { return "shadow"; }
|
|
86
|
+
static get originalStyleUrls() { return {
|
|
87
|
+
"$": ["gux-form-field-dropdown.less"]
|
|
88
|
+
}; }
|
|
89
|
+
static get styleUrls() { return {
|
|
90
|
+
"$": ["gux-form-field-dropdown.css"]
|
|
91
|
+
}; }
|
|
92
|
+
static get properties() { return {
|
|
93
|
+
"labelPosition": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "GuxFormFieldLabelPosition",
|
|
98
|
+
"resolved": "\"above\" | \"beside\" | \"screenreader\"",
|
|
99
|
+
"references": {
|
|
100
|
+
"GuxFormFieldLabelPosition": {
|
|
101
|
+
"location": "import",
|
|
102
|
+
"path": "../../gux-form-field.types"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": ""
|
|
111
|
+
},
|
|
112
|
+
"attribute": "label-position",
|
|
113
|
+
"reflect": false
|
|
114
|
+
}
|
|
115
|
+
}; }
|
|
116
|
+
static get states() { return {
|
|
117
|
+
"computedLabelPosition": {},
|
|
118
|
+
"disabled": {},
|
|
119
|
+
"required": {},
|
|
120
|
+
"hasError": {}
|
|
121
|
+
}; }
|
|
122
|
+
static get elementRef() { return "root"; }
|
|
123
|
+
}
|
|
124
|
+
__decorate([
|
|
125
|
+
OnMutation({ childList: true, subtree: true })
|
|
126
|
+
], GuxFormFieldDropdown.prototype, "onMutation", null);
|
|
@@ -16,7 +16,7 @@ import simulateNativeEvent from '../../../../../utils/dom/simulate-native-event'
|
|
|
16
16
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
17
17
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
18
18
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
19
|
-
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
19
|
+
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
20
20
|
import componentResources from './i18n/en.json';
|
|
21
21
|
/**
|
|
22
22
|
* @slot input - Required slot for input tag
|
|
@@ -10,7 +10,7 @@ import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
|
10
10
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
11
11
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
12
12
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
13
|
-
import { hasErrorSlot, validateFormIds } from '../../gux-form-field.
|
|
13
|
+
import { hasErrorSlot, validateFormIds } from '../../gux-form-field.service';
|
|
14
14
|
/**
|
|
15
15
|
* @slot input - Required slot for input tag
|
|
16
16
|
* @slot label - Required slot for label tag
|
|
@@ -13,7 +13,7 @@ import { trackComponent } from '../../../../../usage-tracking';
|
|
|
13
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
14
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
15
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
16
|
+
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
17
|
/**
|
|
18
18
|
* @slot input - Required slot for input tag
|
|
19
19
|
* @slot label - Required slot for label tag
|
|
@@ -13,7 +13,7 @@ import { trackComponent } from '../../../../../usage-tracking';
|
|
|
13
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
14
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
15
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
16
|
+
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
17
|
/**
|
|
18
18
|
* @slot input - Required slot for input tag
|
|
19
19
|
* @slot label - Required slot for label tag
|
|
@@ -13,7 +13,7 @@ import { trackComponent } from '../../../../../usage-tracking';
|
|
|
13
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
14
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
15
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
16
|
+
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
17
|
/**
|
|
18
18
|
* @slot input - Required slot for input tag
|
|
19
19
|
* @slot label - Required slot for label tag
|
|
@@ -13,7 +13,7 @@ import { trackComponent } from '../../../../../usage-tracking';
|
|
|
13
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
14
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
15
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
16
|
+
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
17
|
/**
|
|
18
18
|
* @slot input - Required slot for input tag
|
|
19
19
|
* @slot label - Required slot for label tag
|
|
@@ -13,7 +13,7 @@ import { trackComponent } from '../../../../../usage-tracking';
|
|
|
13
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
14
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
15
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.
|
|
16
|
+
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
17
|
/**
|
|
18
18
|
* @slot input - Required slot for input tag
|
|
19
19
|
* @slot label - Required slot for label tag
|
|
File without changes
|
|
@@ -4,7 +4,6 @@ import { buildI18nForComponent } from '../../../i18n';
|
|
|
4
4
|
import { whenEventIsFrom } from '../../../utils/dom/when-event-is-from';
|
|
5
5
|
import simulateNativeEvent from '../../../utils/dom/simulate-native-event';
|
|
6
6
|
import { trackComponent } from '../../../usage-tracking';
|
|
7
|
-
import { logError } from '../../../utils/error/log-error';
|
|
8
7
|
import translationResources from './i18n/en.json';
|
|
9
8
|
/**
|
|
10
9
|
* @slot - collection of gux-option elements
|
|
@@ -12,6 +11,7 @@ import translationResources from './i18n/en.json';
|
|
|
12
11
|
export class GuxListbox {
|
|
13
12
|
constructor() {
|
|
14
13
|
this.filter = '';
|
|
14
|
+
this.selectedValues = [];
|
|
15
15
|
this.listboxOptions = [];
|
|
16
16
|
}
|
|
17
17
|
onFocus() {
|
|
@@ -87,27 +87,24 @@ export class GuxListbox {
|
|
|
87
87
|
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
88
88
|
}
|
|
89
89
|
setListboxOptions() {
|
|
90
|
+
if (this.value) {
|
|
91
|
+
this.selectedValues = this.value.split(',');
|
|
92
|
+
}
|
|
90
93
|
this.listboxOptions = Array.from(this.root.children);
|
|
91
94
|
this.internallistboxoptionsupdated.emit();
|
|
92
95
|
}
|
|
93
96
|
updateValue(newValue) {
|
|
94
97
|
if (this.value !== newValue) {
|
|
95
98
|
this.value = newValue;
|
|
96
|
-
simulateNativeEvent(this.root, 'input');
|
|
97
|
-
simulateNativeEvent(this.root, 'change');
|
|
98
99
|
}
|
|
100
|
+
simulateNativeEvent(this.root, 'input');
|
|
101
|
+
simulateNativeEvent(this.root, 'change');
|
|
99
102
|
}
|
|
100
103
|
async componentWillLoad() {
|
|
101
104
|
trackComponent(this.root);
|
|
102
105
|
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
|
103
106
|
this.setListboxOptions();
|
|
104
107
|
}
|
|
105
|
-
componentDidLoad() {
|
|
106
|
-
if (!(this.root.getAttribute('aria-label') ||
|
|
107
|
-
this.root.getAttribute('aria-labelledby'))) {
|
|
108
|
-
logError('gux-listbox', '`gux-listbox` requires a label. Either provide a label and associate it with the listbox using `aria-labelledby` or add an `aria-label` attribute to the gux-listbox element.');
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
108
|
componentWillRender() {
|
|
112
109
|
this.listboxOptions.forEach(listboxOption => {
|
|
113
110
|
listboxOption.selected = listboxOption.value === this.value;
|
|
@@ -178,6 +175,7 @@ export class GuxListbox {
|
|
|
178
175
|
}
|
|
179
176
|
}; }
|
|
180
177
|
static get states() { return {
|
|
178
|
+
"selectedValues": {},
|
|
181
179
|
"listboxOptions": {},
|
|
182
180
|
"allListboxOptionsFiltered": {}
|
|
183
181
|
}; }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: block;
|
|
4
|
+
max-height: 20rem;
|
|
5
|
+
padding: 8px 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
color: #2e394c;
|
|
9
|
+
background: #fdfdfd;
|
|
10
|
+
border: 1px solid #b4bccb;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
outline: none;
|
|
13
|
+
}
|
|
14
|
+
:host(:focus) {
|
|
15
|
+
outline: none;
|
|
16
|
+
box-shadow: 0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff;
|
|
17
|
+
}
|
|
18
|
+
.gux-no-matches {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
height: 32px;
|
|
21
|
+
padding: 8px 16px;
|
|
22
|
+
color: #2e394c;
|
|
23
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
|
|
2
|
+
import { actOnActiveOption, clearActiveOptions, goToOption, hasPreviousOption, hasNextOption, onClickedOption, setFirstOptionActive, setInitialActiveOption, setLastOptionActive, setNextOptionActive, setPreviousOptionActive } from '../gux-listbox/gux-listbox.service';
|
|
3
|
+
import { buildI18nForComponent } from '../../../i18n';
|
|
4
|
+
import { whenEventIsFrom } from '../../../utils/dom/when-event-is-from';
|
|
5
|
+
import simulateNativeEvent from '../../../utils/dom/simulate-native-event';
|
|
6
|
+
import { trackComponent } from '../../../usage-tracking';
|
|
7
|
+
import translationResources from './i18n/en.json';
|
|
8
|
+
/**
|
|
9
|
+
* @slot - collection of gux-option-multi elements
|
|
10
|
+
*/
|
|
11
|
+
export class GuxListboxMulti {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.filter = '';
|
|
14
|
+
this.selectedValues = [];
|
|
15
|
+
this.listboxOptions = [];
|
|
16
|
+
}
|
|
17
|
+
onFocus() {
|
|
18
|
+
setInitialActiveOption(this.root);
|
|
19
|
+
}
|
|
20
|
+
onBlur() {
|
|
21
|
+
clearActiveOptions(this.root);
|
|
22
|
+
}
|
|
23
|
+
onKeydown(event) {
|
|
24
|
+
switch (event.key) {
|
|
25
|
+
case 'Enter':
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
28
|
+
return;
|
|
29
|
+
case 'ArrowDown':
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
if (hasNextOption(this.root)) {
|
|
32
|
+
event.stopPropagation();
|
|
33
|
+
setNextOptionActive(this.root);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
setFirstOptionActive(this.root);
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
case 'ArrowUp': {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
if (hasPreviousOption(this.root)) {
|
|
42
|
+
event.stopPropagation();
|
|
43
|
+
setPreviousOptionActive(this.root);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
setLastOptionActive(this.root);
|
|
47
|
+
}
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
case 'Home': {
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
setFirstOptionActive(this.root);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
case 'End': {
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
setLastOptionActive(this.root);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
case ' ': {
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (event.key.length === 1) {
|
|
66
|
+
goToOption(this.root, event.key);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
onKeyup(event) {
|
|
71
|
+
switch (event.key) {
|
|
72
|
+
case ' ':
|
|
73
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
onMousemove() {
|
|
78
|
+
clearActiveOptions(this.root);
|
|
79
|
+
}
|
|
80
|
+
onClick(event) {
|
|
81
|
+
whenEventIsFrom('gux-option-multi', event, (option) => {
|
|
82
|
+
onClickedOption(option, value => this.updateValue(value));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
validateValue() {
|
|
86
|
+
if (this.value) {
|
|
87
|
+
this.selectedValues = this.value.split(',');
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.selectedValues = [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
94
|
+
async guxSelectActive() {
|
|
95
|
+
actOnActiveOption(this.root, value => this.updateValue(value));
|
|
96
|
+
}
|
|
97
|
+
setListboxOptions() {
|
|
98
|
+
if (this.value) {
|
|
99
|
+
this.selectedValues = this.value.split(',');
|
|
100
|
+
}
|
|
101
|
+
this.listboxOptions = Array.from(this.root.children);
|
|
102
|
+
this.internallistboxoptionsupdated.emit();
|
|
103
|
+
}
|
|
104
|
+
updateValue(newValue) {
|
|
105
|
+
if (!this.selectedValues.includes(newValue)) {
|
|
106
|
+
const newArray = [...this.selectedValues, newValue];
|
|
107
|
+
this.selectedValues = newArray;
|
|
108
|
+
this.value = this.selectedValues.join(',');
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.selectedValues = this.selectedValues.filter(e => e !== newValue);
|
|
112
|
+
this.value = this.selectedValues.join(',');
|
|
113
|
+
}
|
|
114
|
+
simulateNativeEvent(this.root, 'input');
|
|
115
|
+
simulateNativeEvent(this.root, 'change');
|
|
116
|
+
}
|
|
117
|
+
async componentWillLoad() {
|
|
118
|
+
trackComponent(this.root);
|
|
119
|
+
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
|
120
|
+
this.setListboxOptions();
|
|
121
|
+
}
|
|
122
|
+
componentWillRender() {
|
|
123
|
+
this.listboxOptions.forEach(listboxOption => {
|
|
124
|
+
listboxOption.selected = this.selectedValues.includes(listboxOption.value);
|
|
125
|
+
listboxOption.filtered = !listboxOption.textContent
|
|
126
|
+
.toLowerCase()
|
|
127
|
+
.startsWith(this.filter.toLowerCase());
|
|
128
|
+
});
|
|
129
|
+
this.allListboxOptionsFiltered =
|
|
130
|
+
this.listboxOptions.filter(listboxOption => !listboxOption.filtered)
|
|
131
|
+
.length === 0;
|
|
132
|
+
}
|
|
133
|
+
renderAllListboxOptionsFiltered() {
|
|
134
|
+
if (this.allListboxOptionsFiltered) {
|
|
135
|
+
return (h("div", { class: "gux-no-matches" }, this.i18n('noMatches')));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
return (h(Host, { role: "listbox", "aria-multiselectable": "true", tabindex: 0 },
|
|
140
|
+
h("slot", { onSlotchange: () => this.setListboxOptions() }),
|
|
141
|
+
this.renderAllListboxOptionsFiltered()));
|
|
142
|
+
}
|
|
143
|
+
static get is() { return "gux-listbox-multi"; }
|
|
144
|
+
static get encapsulation() { return "shadow"; }
|
|
145
|
+
static get originalStyleUrls() { return {
|
|
146
|
+
"$": ["gux-listbox-multi.less"]
|
|
147
|
+
}; }
|
|
148
|
+
static get styleUrls() { return {
|
|
149
|
+
"$": ["gux-listbox-multi.css"]
|
|
150
|
+
}; }
|
|
151
|
+
static get properties() { return {
|
|
152
|
+
"value": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"mutable": true,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "string",
|
|
157
|
+
"resolved": "string",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": ""
|
|
165
|
+
},
|
|
166
|
+
"attribute": "value",
|
|
167
|
+
"reflect": false
|
|
168
|
+
},
|
|
169
|
+
"filter": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "string",
|
|
174
|
+
"resolved": "string",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": ""
|
|
182
|
+
},
|
|
183
|
+
"attribute": "filter",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "''"
|
|
186
|
+
}
|
|
187
|
+
}; }
|
|
188
|
+
static get states() { return {
|
|
189
|
+
"selectedValues": {},
|
|
190
|
+
"listboxOptions": {},
|
|
191
|
+
"allListboxOptionsFiltered": {}
|
|
192
|
+
}; }
|
|
193
|
+
static get events() { return [{
|
|
194
|
+
"method": "internallistboxoptionsupdated",
|
|
195
|
+
"name": "internallistboxoptionsupdated",
|
|
196
|
+
"bubbles": true,
|
|
197
|
+
"cancelable": true,
|
|
198
|
+
"composed": true,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "any",
|
|
205
|
+
"resolved": "any",
|
|
206
|
+
"references": {}
|
|
207
|
+
}
|
|
208
|
+
}]; }
|
|
209
|
+
static get methods() { return {
|
|
210
|
+
"guxSelectActive": {
|
|
211
|
+
"complexType": {
|
|
212
|
+
"signature": "() => Promise<void>",
|
|
213
|
+
"parameters": [],
|
|
214
|
+
"references": {
|
|
215
|
+
"Promise": {
|
|
216
|
+
"location": "global"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"return": "Promise<void>"
|
|
220
|
+
},
|
|
221
|
+
"docs": {
|
|
222
|
+
"text": "",
|
|
223
|
+
"tags": []
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}; }
|
|
227
|
+
static get elementRef() { return "root"; }
|
|
228
|
+
static get watchers() { return [{
|
|
229
|
+
"propName": "value",
|
|
230
|
+
"methodName": "validateValue"
|
|
231
|
+
}]; }
|
|
232
|
+
static get listeners() { return [{
|
|
233
|
+
"name": "focus",
|
|
234
|
+
"method": "onFocus",
|
|
235
|
+
"target": undefined,
|
|
236
|
+
"capture": false,
|
|
237
|
+
"passive": false
|
|
238
|
+
}, {
|
|
239
|
+
"name": "blur",
|
|
240
|
+
"method": "onBlur",
|
|
241
|
+
"target": undefined,
|
|
242
|
+
"capture": false,
|
|
243
|
+
"passive": false
|
|
244
|
+
}, {
|
|
245
|
+
"name": "keydown",
|
|
246
|
+
"method": "onKeydown",
|
|
247
|
+
"target": undefined,
|
|
248
|
+
"capture": false,
|
|
249
|
+
"passive": false
|
|
250
|
+
}, {
|
|
251
|
+
"name": "keyup",
|
|
252
|
+
"method": "onKeyup",
|
|
253
|
+
"target": undefined,
|
|
254
|
+
"capture": false,
|
|
255
|
+
"passive": false
|
|
256
|
+
}, {
|
|
257
|
+
"name": "mousemove",
|
|
258
|
+
"method": "onMousemove",
|
|
259
|
+
"target": undefined,
|
|
260
|
+
"capture": false,
|
|
261
|
+
"passive": true
|
|
262
|
+
}, {
|
|
263
|
+
"name": "click",
|
|
264
|
+
"method": "onClick",
|
|
265
|
+
"target": undefined,
|
|
266
|
+
"capture": false,
|
|
267
|
+
"passive": false
|
|
268
|
+
}]; }
|
|
269
|
+
}
|
package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
gux-option-multi {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-height: 32px;
|
|
5
|
+
padding: 6px 12px;
|
|
6
|
+
color: #2e394c;
|
|
7
|
+
word-wrap: break-word;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
gux-option-multi .gux-option::before {
|
|
11
|
+
position: relative;
|
|
12
|
+
top: 2px;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
width: 13px;
|
|
15
|
+
height: 13px;
|
|
16
|
+
margin-right: 7px;
|
|
17
|
+
content: '';
|
|
18
|
+
background-color: white;
|
|
19
|
+
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' viewBox='1 1 13 13'%3E%3Cpath d='M11 2.5H4C3.17157 2.5 2.5 3.17157 2.5 4V11C2.5 11.8284 3.17157 12.5 4 12.5H11C11.8284 12.5 12.5 11.8284 12.5 11V4C12.5 3.17157 11.8284 2.5 11 2.5ZM4 1C2.34315 1 1 2.34315 1 4V11C1 12.6569 2.34315 14 4 14H11C12.6569 14 14 12.6569 14 11V4C14 2.34315 12.6569 1 11 1H4Z' fill='%23596373' /%3E%3C/svg%3E");
|
|
20
|
+
border-radius: 30%;
|
|
21
|
+
}
|
|
22
|
+
gux-option-multi.gux-disabled {
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
cursor: default;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
27
|
+
gux-option-multi.gux-selected .gux-option::before {
|
|
28
|
+
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' viewBox='1 1 13 13'%3E%3Cpath d='M4 1H11C11.7956 1 12.5587 1.31607 13.1213 1.87868C13.6839 2.44129 14 3.20435 14 4V11C14 11.7956 13.6839 12.5587 13.1213 13.1213C12.5587 13.6839 11.7956 14 11 14H4C3.20435 14 2.44129 13.6839 1.87868 13.1213C1.31607 12.5587 1 11.7956 1 11V4C1 3.20435 1.31607 2.44129 1.87868 1.87868C2.44129 1.31607 3.20435 1 4 1ZM5.57018 10.4198C5.7051 10.5547 5.87599 10.6177 6.04689 10.6177C6.22678 10.6177 6.39767 10.5457 6.52359 10.4198L11.7944 5.14905C12.0552 4.88821 12.0552 4.45647 11.7944 4.19563C11.5335 3.93479 11.1018 3.93479 10.841 4.19563L6.04689 8.9897L4.14905 7.08286C3.88821 6.82202 3.45647 6.82202 3.19563 7.08286C2.93479 7.3437 2.93479 7.77544 3.19563 8.03628L5.57018 10.4198Z' fill='%232a60c8' /%3E%3C/svg%3E");
|
|
29
|
+
}
|
|
30
|
+
gux-option-multi.gux-active,
|
|
31
|
+
gux-option-multi.gux-hovered:not([disabled]) {
|
|
32
|
+
color: #fdfdfd;
|
|
33
|
+
background: #2a60c8;
|
|
34
|
+
}
|
|
35
|
+
gux-option-multi.gux-active.gux-selected .gux-option::before,
|
|
36
|
+
gux-option-multi.gux-hovered:not([disabled]).gux-selected .gux-option::before {
|
|
37
|
+
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' viewBox='1 1 13 13'%3E%3Cpath d='M5.57018 10.4198C5.7051 10.5547 5.87599 10.6177 6.04689 10.6177C6.22678 10.6177 6.39767 10.5457 6.52359 10.4198L11.7944 5.14905C12.0552 4.88821 12.0552 4.45647 11.7944 4.19563C11.5335 3.93479 11.1018 3.93479 10.841 4.19563L6.04689 8.9897L4.14905 7.08286C3.88821 6.82202 3.45647 6.82202 3.19563 7.08286C2.93479 7.3437 2.93479 7.77544 3.19563 8.03628L5.57018 10.4198Z' fill='%232a60c8' /%3E%3C/svg%3E");
|
|
38
|
+
}
|
|
39
|
+
gux-option-multi.gux-active:not(.gux-selected) .gux-option::before,
|
|
40
|
+
gux-option-multi.gux-hovered:not([disabled]):not(.gux-selected) .gux-option::before {
|
|
41
|
+
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' viewBox='1 1 13 13'%3E%3Cpath d='M11 2.5H4C3.17157 2.5 2.5 3.17157 2.5 4V11C2.5 11.8284 3.17157 12.5 4 12.5H11C11.8284 12.5 12.5 11.8284 12.5 11V4C12.5 3.17157 11.8284 2.5 11 2.5ZM4 1C2.34315 1 1 2.34315 1 4V11C1 12.6569 2.34315 14 4 14H11C12.6569 14 14 12.6569 14 11V4C14 2.34315 12.6569 1 11 1H4Z' fill='none' /%3E%3C/svg%3E");
|
|
42
|
+
}
|
|
43
|
+
gux-option-multi.gux-filtered {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|