genesys-spark-components 3.4.2 → 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 +22 -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-row-select.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 +8 -5
- 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 +442 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-dad68b30.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-table/gux-row-select/gux-row-select.js +18 -1
- package/dist/collection/components/beta/gux-table/gux-table.js +7 -4
- 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-row-select.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 +8 -5
- 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 +442 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-e780a146.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-636c54c6.entry.js → p-0319263d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a39b40e.entry.js → p-0424f896.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d19a7fb6.entry.js → p-07f57fba.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0ba16a48.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1031b574.entry.js → p-0c2f3d37.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-378cd6cf.entry.js → p-0d51e659.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ade0038.entry.js → p-0eade7d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cd9ddc56.entry.js → p-11a585f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7009289e.entry.js → p-1729a48c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5da8ebb.entry.js → p-17980fa9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-28c7f729.entry.js → p-1b839ce5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e8009e30.entry.js → p-2428f6b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0842e67c.entry.js → p-291608e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-60556732.entry.js → p-29f0760a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0ddd8d4f.entry.js → p-2a0fbc9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2a2f15bb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5854940b.entry.js → p-32235f46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96011a34.entry.js → p-323c1430.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-155bb34f.entry.js → p-32585fea.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
- package/dist/genesys-webcomponents/{p-65b6304c.entry.js → p-39d898df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d011a81.entry.js → p-3e94ba55.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-32e65c1f.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-983933c0.entry.js → p-4c5acf82.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-29014d1e.entry.js → p-58b5efa2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2cf45506.entry.js → p-5bbf331f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e902c88f.entry.js → p-60f75d6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed5511fd.entry.js → p-62c2dcaf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d230bf80.entry.js → p-62d1cde8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-66ca3da0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f6ee453e.entry.js → p-6809132b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-382be864.entry.js → p-6e2e5f6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-85e91ce9.entry.js → p-71a69169.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7190ade6.entry.js → p-7213d71d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be064568.entry.js → p-772f31b1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53b57303.entry.js → p-77f93a2b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6759802.entry.js → p-787ec751.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c528cbba.entry.js → p-7b4f9126.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2caf5f99.entry.js → p-7cc82e6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b189793.entry.js → p-88b2b100.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-17d4a2ef.entry.js → p-90ba25cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-266acba3.entry.js → p-95e43594.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6588eae.entry.js → p-964097f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ceeb8e8b.entry.js → p-9a09169f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-648daaad.entry.js → p-9d663bf4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d7ea3dd5.entry.js → p-9f97f311.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0749ddc0.js → p-a44f5924.js} +1 -1
- package/dist/genesys-webcomponents/{p-34b626d1.entry.js → p-a5fa799d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c09846a5.entry.js → p-a87d2b90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-730b7824.entry.js → p-a926e0c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1662ae2.entry.js → p-a9499ee1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80e8d129.entry.js → p-ab11ff84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5fa06e39.entry.js → p-af4be06f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2188fb8.entry.js → p-b7c37cbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0bccbc5e.entry.js → p-bd2fd32a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22c63b2f.entry.js → p-bf6fd055.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9268a785.entry.js → p-c3582f7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3c2622bb.entry.js → p-cc544e76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ae02bd1.entry.js → p-ccfa2e58.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e4a13fa.entry.js → p-cf581353.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6cba93cf.entry.js → p-d989c6fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e8e412b.entry.js → p-dbc95134.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5238df29.entry.js → p-dc53d8fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8582d04a.entry.js → p-dee741ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3095605b.entry.js → p-e67b0d46.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e78de8af.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-269963ec.entry.js → p-e813ac64.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ea1706f3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dc35acd6.entry.js → p-eaff9d4f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1892eb76.entry.js → p-ef9491b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f07ad3df.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f4e91e7a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c7b78b58.entry.js → p-fa36c86b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-fb49bd0d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-bfd2effd.entry.js → p-fb6977e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-918a52ca.entry.js → p-fd4474d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-18788841.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-table/gux-row-select/gux-row-select.d.ts +1 -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 +125 -8
- package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-03f786bb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-201c4e67.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6eea2eb5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7cef90a5.entry.js +0 -1
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|