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,458 @@
|
|
|
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, forceUpdate, h, Listen, Method, Prop, State, Watch } from '@stencil/core';
|
|
8
|
+
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
9
|
+
import { buildI18nForComponent } from '../../../i18n';
|
|
10
|
+
import simulateNativeEvent from '../../../utils/dom/simulate-native-event';
|
|
11
|
+
import { trackComponent } from '../../../usage-tracking';
|
|
12
|
+
import translationResources from './i18n/en.json';
|
|
13
|
+
import { getSearchOption } from '../../stable/gux-listbox/gux-listbox.service';
|
|
14
|
+
/**
|
|
15
|
+
* @slot - for a gux-listbox-multi containing gux-option-multi children
|
|
16
|
+
*/
|
|
17
|
+
export class GuxDropdownMulti {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this.required = false;
|
|
21
|
+
this.filterable = false;
|
|
22
|
+
this.expanded = false;
|
|
23
|
+
this.filter = '';
|
|
24
|
+
}
|
|
25
|
+
focusSelectedItemAfterRender(expanded) {
|
|
26
|
+
if (expanded && this.listboxElement) {
|
|
27
|
+
requestAnimationFrame(() => {
|
|
28
|
+
requestAnimationFrame(() => {
|
|
29
|
+
this.listboxElement.focus();
|
|
30
|
+
if (this.filterable) {
|
|
31
|
+
this.filterElement.focus();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (!expanded) {
|
|
37
|
+
this.filter = '';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
validateValue(newValue) {
|
|
41
|
+
if (newValue === undefined) {
|
|
42
|
+
if (this.listboxElement) {
|
|
43
|
+
this.listboxElement.value = newValue;
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const selectedListboxOptionElement = this.getOptionElementByValue(newValue);
|
|
48
|
+
if (selectedListboxOptionElement) {
|
|
49
|
+
this.listboxElement.value = newValue;
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
this.value = undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Gets the currently selected values.
|
|
56
|
+
*/
|
|
57
|
+
getSelectedValues() {
|
|
58
|
+
var _a;
|
|
59
|
+
return Promise.resolve(((_a = this.value) === null || _a === void 0 ? void 0 : _a.split(',')) || []);
|
|
60
|
+
}
|
|
61
|
+
onKeydown(event) {
|
|
62
|
+
switch (event.key) {
|
|
63
|
+
case 'Escape':
|
|
64
|
+
if (this.filterable) {
|
|
65
|
+
if (document.activeElement === this.listboxElement) {
|
|
66
|
+
return this.filterElement.focus();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
this.collapseListbox('focusFieldButton');
|
|
70
|
+
return;
|
|
71
|
+
case 'Tab':
|
|
72
|
+
if (this.shiftTabFromFilterListbox(event)) {
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
return this.filterElement.focus();
|
|
75
|
+
}
|
|
76
|
+
else if (this.shiftTabFromExpandedFilterInput(event)) {
|
|
77
|
+
event.preventDefault();
|
|
78
|
+
return this.collapseListbox('focusFieldButton');
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.collapseListbox('noFocusChange');
|
|
82
|
+
}
|
|
83
|
+
return;
|
|
84
|
+
case 'ArrowDown':
|
|
85
|
+
if (this.activeElementNotListbox()) {
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
this.expanded = true;
|
|
88
|
+
}
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
onInternallistboxoptionsupdated(event) {
|
|
93
|
+
event.stopPropagation();
|
|
94
|
+
forceUpdate(this.root);
|
|
95
|
+
}
|
|
96
|
+
onGuxclearselected(event) {
|
|
97
|
+
event.stopPropagation();
|
|
98
|
+
this.value = '';
|
|
99
|
+
if (this.listboxElement) {
|
|
100
|
+
this.listboxElement.value = undefined;
|
|
101
|
+
}
|
|
102
|
+
this.validateValue(this.value);
|
|
103
|
+
this.fieldButtonElement.focus();
|
|
104
|
+
}
|
|
105
|
+
onBlur(event) {
|
|
106
|
+
this.stopPropagationOfInternalFocusEvents(event);
|
|
107
|
+
}
|
|
108
|
+
onFocus(event) {
|
|
109
|
+
this.stopPropagationOfInternalFocusEvents(event);
|
|
110
|
+
}
|
|
111
|
+
onFocusout(event) {
|
|
112
|
+
this.stopPropagationOfInternalFocusEvents(event);
|
|
113
|
+
}
|
|
114
|
+
onFocusin(event) {
|
|
115
|
+
this.stopPropagationOfInternalFocusEvents(event);
|
|
116
|
+
}
|
|
117
|
+
onClickOutside() {
|
|
118
|
+
this.collapseListbox('noFocusChange');
|
|
119
|
+
}
|
|
120
|
+
async componentWillLoad() {
|
|
121
|
+
trackComponent(this.root);
|
|
122
|
+
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
|
123
|
+
this.listboxElement = this.root.querySelector('gux-listbox-multi');
|
|
124
|
+
this.validateValue(this.value);
|
|
125
|
+
}
|
|
126
|
+
componentDidLoad() {
|
|
127
|
+
this.listboxElement.addEventListener('input', (event) => {
|
|
128
|
+
event.stopPropagation();
|
|
129
|
+
this.updateValue(event.target.value);
|
|
130
|
+
});
|
|
131
|
+
this.listboxElement.addEventListener('change', (event) => {
|
|
132
|
+
event.stopPropagation();
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
componentWillRender() {
|
|
136
|
+
this.validateValue(this.value);
|
|
137
|
+
this.listboxElement.filter = this.filter;
|
|
138
|
+
}
|
|
139
|
+
stopPropagationOfInternalFocusEvents(event) {
|
|
140
|
+
if (this.root.contains(event.relatedTarget)) {
|
|
141
|
+
return event.stopImmediatePropagation();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
getOptionElementByValue(value) {
|
|
145
|
+
const listboxOptionElements = Array.from(this.root.querySelectorAll('gux-option-multi'));
|
|
146
|
+
const values = value ? value.split(',') : undefined;
|
|
147
|
+
if (values) {
|
|
148
|
+
return listboxOptionElements.filter(element => values.includes(element.value));
|
|
149
|
+
}
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
fieldButtonClick() {
|
|
153
|
+
this.expanded = !this.expanded;
|
|
154
|
+
}
|
|
155
|
+
fieldButtonInputClick() {
|
|
156
|
+
if (!this.expanded) {
|
|
157
|
+
this.expanded = !this.expanded;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
filterInput(event) {
|
|
161
|
+
event.stopPropagation();
|
|
162
|
+
this.filter = this.filterElement.value;
|
|
163
|
+
}
|
|
164
|
+
shiftTabFromExpandedFilterInput(event) {
|
|
165
|
+
return (event.shiftKey &&
|
|
166
|
+
this.filterable &&
|
|
167
|
+
this.expanded &&
|
|
168
|
+
!(document.activeElement === this.listboxElement));
|
|
169
|
+
}
|
|
170
|
+
shiftTabFromFilterListbox(event) {
|
|
171
|
+
return (event.shiftKey &&
|
|
172
|
+
this.filterable &&
|
|
173
|
+
document.activeElement === this.listboxElement);
|
|
174
|
+
}
|
|
175
|
+
activeElementNotListbox() {
|
|
176
|
+
return document.activeElement !== this.listboxElement;
|
|
177
|
+
}
|
|
178
|
+
filterKeydown(event) {
|
|
179
|
+
switch (event.key) {
|
|
180
|
+
case 'ArrowDown':
|
|
181
|
+
event.stopImmediatePropagation();
|
|
182
|
+
this.listboxElement.focus();
|
|
183
|
+
return;
|
|
184
|
+
case 'Enter':
|
|
185
|
+
void this.listboxElement.guxSelectActive();
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
filterKeyup(event) {
|
|
191
|
+
switch (event.key) {
|
|
192
|
+
case ' ':
|
|
193
|
+
event.preventDefault();
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
collapseListbox(focusChange) {
|
|
198
|
+
if (this.expanded) {
|
|
199
|
+
this.expanded = false;
|
|
200
|
+
}
|
|
201
|
+
if (focusChange === 'focusFieldButton') {
|
|
202
|
+
this.fieldButtonElement.focus();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
updateValue(newValue) {
|
|
206
|
+
if (this.value !== newValue) {
|
|
207
|
+
this.value = newValue;
|
|
208
|
+
simulateNativeEvent(this.root, 'input');
|
|
209
|
+
simulateNativeEvent(this.root, 'change');
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
getSuggestionText(filter) {
|
|
213
|
+
const filterLength = filter.length;
|
|
214
|
+
if (filterLength > 0) {
|
|
215
|
+
const option = getSearchOption(this.listboxElement, filter);
|
|
216
|
+
if (option) {
|
|
217
|
+
return option.textContent.substring(filterLength);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return '';
|
|
221
|
+
}
|
|
222
|
+
renderTargetDisplay() {
|
|
223
|
+
return (h("div", { class: "gux-placeholder" },
|
|
224
|
+
this.placeholder || this.i18n('noSelection'),
|
|
225
|
+
this.getSrSelectedText()));
|
|
226
|
+
}
|
|
227
|
+
getSrSelectedText() {
|
|
228
|
+
const selectedListboxOptionElement = this.getOptionElementByValue(this.value);
|
|
229
|
+
if (selectedListboxOptionElement === null || selectedListboxOptionElement === void 0 ? void 0 : selectedListboxOptionElement.length) {
|
|
230
|
+
return (h("span", { class: "gux-sr-only" }, this.i18n('numberSelected', {
|
|
231
|
+
numberSelected: selectedListboxOptionElement.length.toString()
|
|
232
|
+
})));
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
renderTag() {
|
|
236
|
+
const selectedListboxOptionElement = this.getOptionElementByValue(this.value);
|
|
237
|
+
if (selectedListboxOptionElement === null || selectedListboxOptionElement === void 0 ? void 0 : selectedListboxOptionElement.length) {
|
|
238
|
+
return (h("gux-dropdown-multi-tag", { disabled: this.disabled, "number-selected": selectedListboxOptionElement.length }));
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
renderFilterInputField() {
|
|
242
|
+
if (this.expanded && this.filterable) {
|
|
243
|
+
return (h("div", { class: "gux-field gux-input-field" },
|
|
244
|
+
h("div", { class: "gux-field-content" },
|
|
245
|
+
h("div", { class: "gux-filter" },
|
|
246
|
+
h("div", { class: "gux-filter-display" },
|
|
247
|
+
h("span", { class: "gux-filter-text" }, this.filter),
|
|
248
|
+
h("span", { class: "gux-filter-suggestion" }, this.getSuggestionText(this.filter))),
|
|
249
|
+
h("div", { class: "input-and-dropdown-button" },
|
|
250
|
+
h("input", { onClick: this.fieldButtonInputClick.bind(this), placeholder: this.placeholder || this.i18n('noSelection'), class: "gux-filter-input", type: "text", "aria-label": this.i18n('filterResults'), ref: el => (this.filterElement = el), onInput: this.filterInput.bind(this), onKeyDown: this.filterKeydown.bind(this), onKeyUp: this.filterKeyup.bind(this) }))))));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
renderPopup() {
|
|
254
|
+
return (h("div", { slot: "popup", class: "gux-listbox-container" },
|
|
255
|
+
h("slot", null)));
|
|
256
|
+
}
|
|
257
|
+
renderTarget() {
|
|
258
|
+
return (h("div", { class: {
|
|
259
|
+
'gux-target-container': true,
|
|
260
|
+
'gux-target-container-expanded': this.expanded && this.filterable,
|
|
261
|
+
'gux-target-container-collapsed': !(this.expanded && this.filterable)
|
|
262
|
+
}, slot: "target" },
|
|
263
|
+
this.renderFilterInputField(),
|
|
264
|
+
h("button", { type: "button", class: "gux-field gux-field-button", disabled: this.disabled, onClick: this.fieldButtonClick.bind(this), ref: el => (this.fieldButtonElement = el), "aria-haspopup": "listbox", "aria-expanded": this.expanded.toString() },
|
|
265
|
+
this.renderTargetContent(),
|
|
266
|
+
h("gux-icon", { class: {
|
|
267
|
+
'gux-expand-icon': true
|
|
268
|
+
}, "screenreader-text": this.i18n('dropdown'), iconName: "chevron-small-down" }))));
|
|
269
|
+
}
|
|
270
|
+
renderTargetContent() {
|
|
271
|
+
if (!(this.expanded && this.filterable)) {
|
|
272
|
+
return (h("div", { class: "gux-field-content" }, this.renderTargetDisplay()));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
render() {
|
|
276
|
+
return [
|
|
277
|
+
h("div", { class: "gux-dropdown-container" },
|
|
278
|
+
h("gux-popup", { expanded: this.expanded, disabled: this.disabled },
|
|
279
|
+
this.renderTarget(),
|
|
280
|
+
this.renderPopup()),
|
|
281
|
+
this.renderTag())
|
|
282
|
+
];
|
|
283
|
+
}
|
|
284
|
+
static get is() { return "gux-dropdown-multi-beta"; }
|
|
285
|
+
static get encapsulation() { return "shadow"; }
|
|
286
|
+
static get originalStyleUrls() { return {
|
|
287
|
+
"$": ["gux-dropdown-multi.less"]
|
|
288
|
+
}; }
|
|
289
|
+
static get styleUrls() { return {
|
|
290
|
+
"$": ["gux-dropdown-multi.css"]
|
|
291
|
+
}; }
|
|
292
|
+
static get properties() { return {
|
|
293
|
+
"value": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"mutable": true,
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "string",
|
|
298
|
+
"resolved": "string",
|
|
299
|
+
"references": {}
|
|
300
|
+
},
|
|
301
|
+
"required": false,
|
|
302
|
+
"optional": false,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": ""
|
|
306
|
+
},
|
|
307
|
+
"attribute": "value",
|
|
308
|
+
"reflect": false
|
|
309
|
+
},
|
|
310
|
+
"disabled": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "boolean",
|
|
315
|
+
"resolved": "boolean",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": ""
|
|
323
|
+
},
|
|
324
|
+
"attribute": "disabled",
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"defaultValue": "false"
|
|
327
|
+
},
|
|
328
|
+
"required": {
|
|
329
|
+
"type": "boolean",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "boolean",
|
|
333
|
+
"resolved": "boolean",
|
|
334
|
+
"references": {}
|
|
335
|
+
},
|
|
336
|
+
"required": false,
|
|
337
|
+
"optional": false,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": ""
|
|
341
|
+
},
|
|
342
|
+
"attribute": "required",
|
|
343
|
+
"reflect": false,
|
|
344
|
+
"defaultValue": "false"
|
|
345
|
+
},
|
|
346
|
+
"placeholder": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"mutable": false,
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "string",
|
|
351
|
+
"resolved": "string",
|
|
352
|
+
"references": {}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": false,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": ""
|
|
359
|
+
},
|
|
360
|
+
"attribute": "placeholder",
|
|
361
|
+
"reflect": false
|
|
362
|
+
},
|
|
363
|
+
"filterable": {
|
|
364
|
+
"type": "boolean",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "boolean",
|
|
368
|
+
"resolved": "boolean",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": ""
|
|
376
|
+
},
|
|
377
|
+
"attribute": "filterable",
|
|
378
|
+
"reflect": false,
|
|
379
|
+
"defaultValue": "false"
|
|
380
|
+
}
|
|
381
|
+
}; }
|
|
382
|
+
static get states() { return {
|
|
383
|
+
"expanded": {},
|
|
384
|
+
"filter": {}
|
|
385
|
+
}; }
|
|
386
|
+
static get methods() { return {
|
|
387
|
+
"getSelectedValues": {
|
|
388
|
+
"complexType": {
|
|
389
|
+
"signature": "() => Promise<string[]>",
|
|
390
|
+
"parameters": [],
|
|
391
|
+
"references": {
|
|
392
|
+
"Promise": {
|
|
393
|
+
"location": "global"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"return": "Promise<string[]>"
|
|
397
|
+
},
|
|
398
|
+
"docs": {
|
|
399
|
+
"text": "Gets the currently selected values.",
|
|
400
|
+
"tags": []
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}; }
|
|
404
|
+
static get elementRef() { return "root"; }
|
|
405
|
+
static get watchers() { return [{
|
|
406
|
+
"propName": "expanded",
|
|
407
|
+
"methodName": "focusSelectedItemAfterRender"
|
|
408
|
+
}, {
|
|
409
|
+
"propName": "value",
|
|
410
|
+
"methodName": "validateValue"
|
|
411
|
+
}]; }
|
|
412
|
+
static get listeners() { return [{
|
|
413
|
+
"name": "keydown",
|
|
414
|
+
"method": "onKeydown",
|
|
415
|
+
"target": undefined,
|
|
416
|
+
"capture": false,
|
|
417
|
+
"passive": false
|
|
418
|
+
}, {
|
|
419
|
+
"name": "internallistboxoptionsupdated",
|
|
420
|
+
"method": "onInternallistboxoptionsupdated",
|
|
421
|
+
"target": undefined,
|
|
422
|
+
"capture": false,
|
|
423
|
+
"passive": false
|
|
424
|
+
}, {
|
|
425
|
+
"name": "guxclearselected",
|
|
426
|
+
"method": "onGuxclearselected",
|
|
427
|
+
"target": undefined,
|
|
428
|
+
"capture": false,
|
|
429
|
+
"passive": false
|
|
430
|
+
}, {
|
|
431
|
+
"name": "blur",
|
|
432
|
+
"method": "onBlur",
|
|
433
|
+
"target": undefined,
|
|
434
|
+
"capture": false,
|
|
435
|
+
"passive": false
|
|
436
|
+
}, {
|
|
437
|
+
"name": "focus",
|
|
438
|
+
"method": "onFocus",
|
|
439
|
+
"target": undefined,
|
|
440
|
+
"capture": false,
|
|
441
|
+
"passive": false
|
|
442
|
+
}, {
|
|
443
|
+
"name": "focusout",
|
|
444
|
+
"method": "onFocusout",
|
|
445
|
+
"target": undefined,
|
|
446
|
+
"capture": false,
|
|
447
|
+
"passive": false
|
|
448
|
+
}, {
|
|
449
|
+
"name": "focusin",
|
|
450
|
+
"method": "onFocusin",
|
|
451
|
+
"target": undefined,
|
|
452
|
+
"capture": false,
|
|
453
|
+
"passive": false
|
|
454
|
+
}]; }
|
|
455
|
+
}
|
|
456
|
+
__decorate([
|
|
457
|
+
OnClickOutside({ triggerEvents: 'mousedown' })
|
|
458
|
+
], GuxDropdownMulti.prototype, "onClickOutside", null);
|
|
@@ -156,23 +156,6 @@ export class GuxTag {
|
|
|
156
156
|
"attribute": "removable",
|
|
157
157
|
"reflect": false,
|
|
158
158
|
"defaultValue": "false"
|
|
159
|
-
},
|
|
160
|
-
"icon": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"mutable": false,
|
|
163
|
-
"complexType": {
|
|
164
|
-
"original": "string",
|
|
165
|
-
"resolved": "string",
|
|
166
|
-
"references": {}
|
|
167
|
-
},
|
|
168
|
-
"required": false,
|
|
169
|
-
"optional": false,
|
|
170
|
-
"docs": {
|
|
171
|
-
"tags": [],
|
|
172
|
-
"text": "Tag icon name."
|
|
173
|
-
},
|
|
174
|
-
"attribute": "icon",
|
|
175
|
-
"reflect": false
|
|
176
159
|
}
|
|
177
160
|
}; }
|
|
178
161
|
static get states() { return {
|
|
@@ -17,6 +17,7 @@ import { getSearchOption } from '../gux-listbox/gux-listbox.service';
|
|
|
17
17
|
export class GuxDropdown {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.disabled = false;
|
|
20
|
+
this.required = false;
|
|
20
21
|
this.filterable = false;
|
|
21
22
|
this.expanded = false;
|
|
22
23
|
this.filter = '';
|
|
@@ -281,6 +282,24 @@ export class GuxDropdown {
|
|
|
281
282
|
"reflect": false,
|
|
282
283
|
"defaultValue": "false"
|
|
283
284
|
},
|
|
285
|
+
"required": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "boolean",
|
|
290
|
+
"resolved": "boolean",
|
|
291
|
+
"references": {}
|
|
292
|
+
},
|
|
293
|
+
"required": false,
|
|
294
|
+
"optional": false,
|
|
295
|
+
"docs": {
|
|
296
|
+
"tags": [],
|
|
297
|
+
"text": ""
|
|
298
|
+
},
|
|
299
|
+
"attribute": "required",
|
|
300
|
+
"reflect": false,
|
|
301
|
+
"defaultValue": "false"
|
|
302
|
+
},
|
|
284
303
|
"placeholder": {
|
|
285
304
|
"type": "string",
|
|
286
305
|
"mutable": false,
|
|
@@ -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
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
.gux-form-field-container {
|
|
2
|
+
margin: 16px 0;
|
|
3
|
+
}
|
|
4
|
+
.gux-form-field-container.gux-beside {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
}
|
|
8
|
+
.gux-form-field-error {
|
|
9
|
+
display: none;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
flex-wrap: nowrap;
|
|
12
|
+
align-content: stretch;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
margin: 4px 0;
|
|
16
|
+
font-size: 11px;
|
|
17
|
+
color: #2e394c;
|
|
18
|
+
}
|
|
19
|
+
.gux-form-field-error.gux-show {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
.gux-form-field-error gux-icon {
|
|
23
|
+
flex: 0 1 auto;
|
|
24
|
+
align-self: auto;
|
|
25
|
+
order: 0;
|
|
26
|
+
width: 16px;
|
|
27
|
+
height: 16px;
|
|
28
|
+
margin: 0 4px;
|
|
29
|
+
color: #ea0b0b;
|
|
30
|
+
}
|
|
31
|
+
.gux-form-field-error .gux-message {
|
|
32
|
+
flex: 0 1 auto;
|
|
33
|
+
align-self: auto;
|
|
34
|
+
order: 0;
|
|
35
|
+
}
|
|
36
|
+
.gux-form-field-label.gux-required::after {
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
color: #ea0b0b;
|
|
39
|
+
content: ' *';
|
|
40
|
+
}
|
|
41
|
+
.gux-form-field-label.gux-beside {
|
|
42
|
+
position: relative;
|
|
43
|
+
top: 8px;
|
|
44
|
+
width: fit-content;
|
|
45
|
+
min-width: 45px;
|
|
46
|
+
margin-right: 8px;
|
|
47
|
+
}
|
|
48
|
+
.gux-form-field-label.gux-above {
|
|
49
|
+
margin-bottom: 8px;
|
|
50
|
+
}
|
|
51
|
+
.gux-form-field-label.gux-screenreader {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: auto;
|
|
54
|
+
left: -10000px;
|
|
55
|
+
width: 1px;
|
|
56
|
+
height: 1px;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
:host {
|
|
60
|
+
display: block;
|
|
61
|
+
color: #2e394c;
|
|
62
|
+
}
|
|
63
|
+
::slotted(label) {
|
|
64
|
+
font-family: Roboto, sans-serif;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
line-height: 16px;
|
|
69
|
+
}
|
|
70
|
+
::slotted(select) {
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
align-self: auto;
|
|
73
|
+
order: 0;
|
|
74
|
+
height: 32px;
|
|
75
|
+
padding: 0 32px 0 12px;
|
|
76
|
+
margin: 0;
|
|
77
|
+
color: #2e394c;
|
|
78
|
+
background-color: #f6f7f9;
|
|
79
|
+
border: none;
|
|
80
|
+
border-radius: 4px;
|
|
81
|
+
outline: none;
|
|
82
|
+
box-shadow: inset 0 0 4px rgba(32, 41, 55, 0.16);
|
|
83
|
+
-moz-appearance: none;
|
|
84
|
+
-webkit-appearance: none;
|
|
85
|
+
appearance: none;
|
|
86
|
+
}
|
|
87
|
+
::slotted(select)::placeholder {
|
|
88
|
+
color: #596373;
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
.gux-input-and-error-container {
|
|
92
|
+
flex-grow: 1;
|
|
93
|
+
}
|
|
94
|
+
.gux-input-and-error-container .gux-input .gux-input-container {
|
|
95
|
+
position: relative;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
flex-wrap: nowrap;
|
|
100
|
+
align-content: stretch;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
width: 100%;
|
|
104
|
+
font-family: inherit;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 1.6667;
|
|
107
|
+
color: #2e394c;
|
|
108
|
+
background-color: #f6f7f9;
|
|
109
|
+
background-image: none;
|
|
110
|
+
border: 1px solid #6b7585;
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
}
|
|
113
|
+
.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled {
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
opacity: 0.5;
|
|
116
|
+
}
|
|
117
|
+
.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon {
|
|
118
|
+
color: #2a60c8;
|
|
119
|
+
}
|
|
120
|
+
.gux-input-and-error-container .gux-input .gux-input-container select {
|
|
121
|
+
flex: 1 1 auto;
|
|
122
|
+
align-self: auto;
|
|
123
|
+
order: 0;
|
|
124
|
+
height: 32px;
|
|
125
|
+
padding: 0 32px 0 12px;
|
|
126
|
+
margin: 0;
|
|
127
|
+
color: #2e394c;
|
|
128
|
+
background-color: #f6f7f9;
|
|
129
|
+
border: none;
|
|
130
|
+
border-radius: 4px;
|
|
131
|
+
outline: none;
|
|
132
|
+
box-shadow: inset 0 0 4px rgba(32, 41, 55, 0.16);
|
|
133
|
+
-moz-appearance: none;
|
|
134
|
+
-webkit-appearance: none;
|
|
135
|
+
appearance: none;
|
|
136
|
+
}
|
|
137
|
+
.gux-input-and-error-container .gux-input .gux-input-container gux-icon {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 0;
|
|
140
|
+
right: 0;
|
|
141
|
+
width: 16px;
|
|
142
|
+
height: 16px;
|
|
143
|
+
margin: 8px;
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
}
|
|
146
|
+
.gux-input-and-error-container .gux-input .gux-input-container:focus-within {
|
|
147
|
+
border-color: #2a60c8;
|
|
148
|
+
outline: none;
|
|
149
|
+
box-shadow: 0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff;
|
|
150
|
+
}
|
|
151
|
+
.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container {
|
|
152
|
+
border-color: #ea0b0b;
|
|
153
|
+
}
|