genesys-spark-components 3.17.1 → 3.20.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 +21 -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 +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +6 -2
- 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 +5 -5
- package/dist/cjs/gux-form-field-color.cjs.entry.js +5 -4
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +8 -9
- 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 +6 -5
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-range.cjs.entry.js +5 -4
- package/dist/cjs/gux-form-field-search.cjs.entry.js +5 -4
- package/dist/cjs/gux-form-field-select.cjs.entry.js +5 -4
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +18 -7
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +5 -4
- package/dist/cjs/{gux-form-field.service-13fc997c.js → gux-form-field.service-c1cdde0e.js} +22 -4
- 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 +1 -1
- package/dist/cjs/gux-loading-message-beta.cjs.entry.js +1 -1
- 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-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-skip-navigation-item.cjs.entry.js +20 -0
- package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +33 -0
- package/dist/cjs/gux-sort-control.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.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/index-262c2e3a.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/on-input-disabled-state-change-d66fb86b.js +25 -0
- package/dist/cjs/{usage-tracking-a1cfacb3.js → usage-tracking-1577c51d.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/beta/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.css +22 -0
- package/dist/collection/components/beta/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +16 -0
- package/dist/collection/components/beta/gux-skip-navigation-list/gux-skip-navigation-list.css +29 -0
- package/dist/collection/components/beta/gux-skip-navigation-list/gux-skip-navigation-list.js +26 -0
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +6 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +4 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +5 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +1 -75
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +7 -9
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +5 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +4 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +4 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +4 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +4 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +7 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +22 -5
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +4 -3
- package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +21 -4
- package/dist/collection/utils/dom/calculate-input-disabled-state.js +4 -0
- package/dist/collection/utils/dom/on-input-disabled-state-change.js +16 -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 +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +6 -2
- 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 +5 -5
- package/dist/esm/gux-form-field-color.entry.js +6 -5
- package/dist/esm/gux-form-field-dropdown.entry.js +9 -10
- 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 +7 -6
- package/dist/esm/gux-form-field-radio.entry.js +5 -5
- package/dist/esm/gux-form-field-range.entry.js +6 -5
- package/dist/esm/gux-form-field-search.entry.js +6 -5
- package/dist/esm/gux-form-field-select.entry.js +6 -5
- package/dist/esm/gux-form-field-text-like.entry.js +19 -8
- package/dist/esm/gux-form-field-textarea.entry.js +6 -5
- package/dist/esm/{gux-form-field.service-2ff78b1b.js → gux-form-field.service-debdaed0.js} +22 -5
- 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 +1 -1
- package/dist/esm/gux-loading-message-beta.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-notification-toast.entry.js +1 -1
- 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-skip-navigation-item.entry.js +16 -0
- package/dist/esm/gux-skip-navigation-list-beta.entry.js +29 -0
- package/dist/esm/gux-sort-control.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.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/esm/index-74e605ae.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/on-input-disabled-state-change-3ea76372.js +22 -0
- package/dist/esm/{usage-tracking-1815b37d.js → usage-tracking-8e48cf8c.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.he.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.pt-pt.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/less/typography.less +1 -6
- package/dist/genesys-webcomponents/p-018290ef.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1f68e4a3.entry.js → p-08bdbeba.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0a456351.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-58044e15.entry.js → p-0e7278ae.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-49f518f9.entry.js → p-157335b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e13c8acf.entry.js → p-1b1454bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-90c01d84.entry.js → p-1fc8155a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3bad07db.entry.js → p-259d1f95.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-da430acd.entry.js → p-2b4b37a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-465f89f6.js → p-2c2fec86.js} +1 -1
- package/dist/genesys-webcomponents/{p-9d9a02b4.entry.js → p-2c65a02c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-317fd5b7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-38439a3a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e05d4857.entry.js → p-3c0298af.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3e412855.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-297ced22.entry.js → p-3f29df54.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3f5341ea.js +1 -0
- package/dist/genesys-webcomponents/{p-6899ba7f.entry.js → p-41e9f98b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-38eaa363.entry.js → p-46a22b92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d47ca13d.entry.js → p-4c11109d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9441a376.entry.js → p-4c730a4e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0827c25a.entry.js → p-50bb1707.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9048c58d.entry.js → p-51a14752.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-038656e8.entry.js → p-529c29c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f5b7b0a.entry.js → p-545d7bd5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c88ce67.entry.js → p-594ee8c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5e62c239.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b99a3610.entry.js → p-5eca79ac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9c25fc0d.entry.js → p-63e576f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-67556723.entry.js +1 -0
- package/dist/genesys-webcomponents/p-68e6b0e4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-cfd1c47d.entry.js → p-6a6680bc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-56725338.entry.js → p-782ae868.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93ea816b.entry.js → p-7beb85b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e056757e.entry.js → p-7cedadb0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d46b6457.entry.js → p-7e2d62a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7f614c57.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-046c4d4c.entry.js → p-822b4a04.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11f7efbf.entry.js → p-83cdf8bf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-88301f55.entry.js +1 -0
- package/dist/genesys-webcomponents/p-8caf2514.js +1 -0
- package/dist/genesys-webcomponents/p-900230b2.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e79c57d4.entry.js → p-931f5a4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6be8743.entry.js → p-958ea819.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7916892d.entry.js → p-9c7bd483.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d0275db5.entry.js → p-9c9572d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-64a5ea8e.entry.js → p-a53f0cca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8aa41116.entry.js → p-a742d7c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b3b26f5.entry.js → p-ab0e97aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-00851515.entry.js → p-ae0661e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8b8e80f2.entry.js → p-af2d9444.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a7d38535.entry.js → p-b0a7799c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a331ec5a.entry.js → p-b1223d4d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80111d4a.entry.js → p-b5b384f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e6469f2.entry.js → p-b65f5d73.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-393bb7f2.entry.js → p-b8687520.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-234e4466.entry.js → p-bbebe2c1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d527abb.entry.js → p-bd6c3674.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-178b2b06.entry.js → p-c1f85df7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c5620be5.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2265bb6f.entry.js → p-cafb669a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f98efaab.entry.js → p-cbbfb924.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9fb6e0c4.entry.js → p-d1c5bf71.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9608773.entry.js → p-d347e861.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d725360d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6d753e41.entry.js → p-da7de0f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-706c3ebe.entry.js → p-db48bbcc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-de98b5ab.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6358f9cb.entry.js → p-df79c0c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-51b6e718.entry.js → p-e2e93fc8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac9e00d2.entry.js → p-ecdead3c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1ad2c64.entry.js → p-edde4fee.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ef020ce1.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-bf9be6a2.entry.js → p-efc2cc84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9169702e.entry.js → p-f43d8bcc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6e98893.entry.js → p-f543af0c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c8937107.entry.js → p-f7f356f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e63f5f19.entry.js → p-f932b7ba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fbc901ab.entry.js → p-fb1cf654.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-19f61f9c.entry.js → p-fb4ed5fe.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.d.ts +4 -0
- package/dist/types/components/beta/gux-skip-navigation-list/gux-skip-navigation-list.d.ts +7 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.d.ts +4 -0
- package/dist/types/components/stable/gux-form-field/gux-form-field.service.d.ts +1 -0
- package/dist/types/components.d.ts +26 -0
- package/dist/types/utils/dom/calculate-input-disabled-state.d.ts +1 -0
- package/dist/types/utils/dom/on-input-disabled-state-change.d.ts +1 -0
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-2bcbc97c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3e7ba83a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5f58575f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6d2cdd09.entry.js +0 -1
- package/dist/genesys-webcomponents/p-85cd9ac2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8b48f04a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-95b1c3da.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9d6961b1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b9ae2afa.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bc7cd0af.entry.js +0 -1
- package/dist/genesys-webcomponents/p-dcd342ec.js +0 -1
- package/dist/genesys-webcomponents/p-e69e61b7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e6a3b956.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f0607d82.entry.js +0 -1
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Host, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
11
12
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
12
13
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
@@ -46,8 +47,8 @@ export class GuxFormFieldCheckbox {
|
|
|
46
47
|
setInput() {
|
|
47
48
|
this.input = this.root.querySelector('input[type="checkbox"][slot="input"]');
|
|
48
49
|
preventBrowserValidationStyling(this.input);
|
|
49
|
-
this.disabled = this.input
|
|
50
|
-
this.disabledObserver =
|
|
50
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
51
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
51
52
|
this.disabled = disabled;
|
|
52
53
|
});
|
|
53
54
|
validateFormIds(this.root, this.input);
|
|
@@ -5,15 +5,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
13
14
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
15
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
16
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import {
|
|
17
|
+
import { getComputedLabelPosition, hasErrorSlot, validateFormIds } from '../../gux-form-field.service';
|
|
17
18
|
/**
|
|
18
19
|
* @slot input - Required slot for input tag
|
|
19
20
|
* @slot label - Required slot for label tag
|
|
@@ -59,9 +60,9 @@ export class GuxFormFieldColor {
|
|
|
59
60
|
setInput() {
|
|
60
61
|
this.input = this.root.querySelector('input[type="color"][slot="input"]');
|
|
61
62
|
preventBrowserValidationStyling(this.input);
|
|
62
|
-
this.disabled = this.input
|
|
63
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
63
64
|
this.required = this.input.required;
|
|
64
|
-
this.disabledObserver =
|
|
65
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
65
66
|
this.disabled = disabled;
|
|
66
67
|
});
|
|
67
68
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -67,87 +67,13 @@
|
|
|
67
67
|
font-size: 12px;
|
|
68
68
|
line-height: 16px;
|
|
69
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
70
|
.gux-input-and-error-container {
|
|
92
71
|
flex-grow: 1;
|
|
93
72
|
}
|
|
94
|
-
.gux-input-and-error-container .gux-input
|
|
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 {
|
|
73
|
+
.gux-input-and-error-container .gux-input.gux-disabled {
|
|
114
74
|
pointer-events: none;
|
|
115
75
|
opacity: 0.5;
|
|
116
76
|
}
|
|
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
77
|
.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container {
|
|
152
78
|
border-color: #ea0b0b;
|
|
153
79
|
}
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
12
13
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
@@ -43,13 +44,10 @@ export class GuxFormFieldDropdown {
|
|
|
43
44
|
h("div", { class: "gux-input-and-error-container" },
|
|
44
45
|
h("div", { class: {
|
|
45
46
|
'gux-input': true,
|
|
46
|
-
'gux-input-error': this.hasError
|
|
47
|
+
'gux-input-error': this.hasError,
|
|
48
|
+
'gux-disabled': this.disabled
|
|
47
49
|
} },
|
|
48
|
-
h("
|
|
49
|
-
'gux-dropdown-container': true,
|
|
50
|
-
'gux-disabled': this.disabled
|
|
51
|
-
} },
|
|
52
|
-
h("slot", null))),
|
|
50
|
+
h("slot", null)),
|
|
53
51
|
h(GuxFormFieldError, { hasError: this.hasError },
|
|
54
52
|
h("slot", { name: "error" })))));
|
|
55
53
|
}
|
|
@@ -67,9 +65,9 @@ export class GuxFormFieldDropdown {
|
|
|
67
65
|
this.listboxElement =
|
|
68
66
|
this.root.querySelector('gux-listbox') ||
|
|
69
67
|
this.root.querySelector('gux-listbox-multi');
|
|
70
|
-
this.disabled = this.dropdownElement
|
|
68
|
+
this.disabled = calculateInputDisabledState(this.dropdownElement);
|
|
71
69
|
this.required = this.dropdownElement.required;
|
|
72
|
-
this.disabledObserver =
|
|
70
|
+
this.disabledObserver = onInputDisabledStateChange(this.dropdownElement, (disabled) => {
|
|
73
71
|
this.disabled = disabled;
|
|
74
72
|
});
|
|
75
73
|
this.requiredObserver = onRequiredChange(this.dropdownElement, (required) => {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
outline: none;
|
|
133
133
|
box-shadow: 0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff;
|
|
134
134
|
}
|
|
135
|
-
.gux-input-and-error-container .gux-input
|
|
135
|
+
.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container {
|
|
136
136
|
border-color: #ea0b0b;
|
|
137
137
|
}
|
|
138
138
|
.gux-step-buttons-container {
|
|
@@ -6,8 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
8
|
import { buildI18nForComponent } from '../../../../../i18n';
|
|
9
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
10
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
9
11
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
10
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
12
13
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
13
14
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
@@ -16,7 +17,7 @@ import simulateNativeEvent from '../../../../../utils/dom/simulate-native-event'
|
|
|
16
17
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
17
18
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
18
19
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
19
|
-
import { clearInput,
|
|
20
|
+
import { clearInput, getComputedLabelPosition, hasContent, hasErrorSlot, validateFormIds } from '../../gux-form-field.service';
|
|
20
21
|
import componentResources from './i18n/en.json';
|
|
21
22
|
/**
|
|
22
23
|
* @slot input - Required slot for input tag
|
|
@@ -78,9 +79,9 @@ export class GuxFormFieldNumber {
|
|
|
78
79
|
this.input.addEventListener('input', () => {
|
|
79
80
|
this.hasContent = hasContent(this.input);
|
|
80
81
|
});
|
|
81
|
-
this.disabled = this.input
|
|
82
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
82
83
|
this.required = this.input.required;
|
|
83
|
-
this.disabledObserver =
|
|
84
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
84
85
|
this.disabled = disabled;
|
|
85
86
|
});
|
|
86
87
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Host, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
11
12
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
12
13
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
@@ -46,8 +47,8 @@ export class GuxFormFieldRadio {
|
|
|
46
47
|
setInput() {
|
|
47
48
|
this.input = this.root.querySelector('input[type="radio"][slot="input"]');
|
|
48
49
|
preventBrowserValidationStyling(this.input);
|
|
49
|
-
this.disabled = this.input
|
|
50
|
-
this.disabledObserver =
|
|
50
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
51
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
51
52
|
this.disabled = disabled;
|
|
52
53
|
});
|
|
53
54
|
validateFormIds(this.root, this.input);
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Host, Listen, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
@@ -71,10 +72,10 @@ export class GuxFormField {
|
|
|
71
72
|
setInput() {
|
|
72
73
|
this.input = this.root.querySelector('input[type="range"][slot="input"]');
|
|
73
74
|
preventBrowserValidationStyling(this.input);
|
|
74
|
-
this.disabled = this.input
|
|
75
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
75
76
|
this.required = this.input.required;
|
|
76
77
|
this.value = this.input.value;
|
|
77
|
-
this.disabledObserver =
|
|
78
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
78
79
|
this.disabled = disabled;
|
|
79
80
|
});
|
|
80
81
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
@@ -72,9 +73,9 @@ export class GuxFormFieldSearch {
|
|
|
72
73
|
this.input.addEventListener('input', () => {
|
|
73
74
|
this.hasContent = hasContent(this.input);
|
|
74
75
|
});
|
|
75
|
-
this.disabled = this.input
|
|
76
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
76
77
|
this.required = this.input.required;
|
|
77
|
-
this.disabledObserver =
|
|
78
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
78
79
|
this.disabled = disabled;
|
|
79
80
|
});
|
|
80
81
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
@@ -65,9 +66,9 @@ export class GuxFormFieldSelect {
|
|
|
65
66
|
setInput() {
|
|
66
67
|
this.input = this.root.querySelector('select[slot="input"]');
|
|
67
68
|
preventBrowserValidationStyling(this.input);
|
|
68
|
-
this.disabled = this.input
|
|
69
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
69
70
|
this.required = this.input.required;
|
|
70
|
-
this.disabledObserver =
|
|
71
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
71
72
|
this.disabled = disabled;
|
|
72
73
|
});
|
|
73
74
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -84,6 +84,10 @@
|
|
|
84
84
|
color: #596373;
|
|
85
85
|
opacity: 1;
|
|
86
86
|
}
|
|
87
|
+
::slotted(span) {
|
|
88
|
+
color: #2e394c;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
87
91
|
.gux-input-and-error-container {
|
|
88
92
|
flex-grow: 1;
|
|
89
93
|
}
|
|
@@ -108,6 +112,9 @@
|
|
|
108
112
|
border-radius: 4px;
|
|
109
113
|
box-shadow: inset 0 0 4px rgba(32, 41, 55, 0.16);
|
|
110
114
|
}
|
|
115
|
+
.gux-input-and-error-container .gux-input .gux-input-container.gux-has-suffix:not(.gux-input-and-error-container .gux-input .gux-input-container.gux-has-prefix) ::slotted(input) {
|
|
116
|
+
text-align: right;
|
|
117
|
+
}
|
|
111
118
|
.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled {
|
|
112
119
|
opacity: 0.5;
|
|
113
120
|
}
|
|
@@ -5,18 +5,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
13
14
|
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
14
15
|
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
15
16
|
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
16
|
-
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
|
+
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds, setSlotAriaDescribedby } from '../../gux-form-field.service';
|
|
17
18
|
/**
|
|
18
19
|
* @slot input - Required slot for input tag
|
|
19
20
|
* @slot label - Required slot for label tag
|
|
21
|
+
* @slot prefix - Optional slot for prefix
|
|
22
|
+
* @slot suffix - Optional slot for suffix
|
|
20
23
|
* @slot error - Optional slot for error message
|
|
21
24
|
*/
|
|
22
25
|
export class GuxFormFieldTextLike {
|
|
@@ -32,6 +35,14 @@ export class GuxFormFieldTextLike {
|
|
|
32
35
|
this.setInput();
|
|
33
36
|
this.setLabel();
|
|
34
37
|
this.hasError = hasErrorSlot(this.root);
|
|
38
|
+
this.hasPrefix = Boolean(this.root.querySelector('[slot="prefix"]'));
|
|
39
|
+
this.hasSuffix = Boolean(this.root.querySelector('[slot="suffix"]'));
|
|
40
|
+
if (this.hasPrefix) {
|
|
41
|
+
setSlotAriaDescribedby(this.root, this.input, 'prefix');
|
|
42
|
+
}
|
|
43
|
+
if (this.hasSuffix) {
|
|
44
|
+
setSlotAriaDescribedby(this.root, this.input, 'suffix');
|
|
45
|
+
}
|
|
35
46
|
trackComponent(this.root, { variant: this.variant });
|
|
36
47
|
}
|
|
37
48
|
disconnectedCallback() {
|
|
@@ -49,9 +60,13 @@ export class GuxFormFieldTextLike {
|
|
|
49
60
|
} },
|
|
50
61
|
h("div", { class: {
|
|
51
62
|
'gux-input-container': true,
|
|
52
|
-
'gux-disabled': this.disabled
|
|
63
|
+
'gux-disabled': this.disabled,
|
|
64
|
+
'gux-has-prefix': this.hasPrefix,
|
|
65
|
+
'gux-has-suffix': this.hasSuffix
|
|
53
66
|
} },
|
|
67
|
+
h("slot", { name: "prefix" }),
|
|
54
68
|
h("slot", { name: "input" }),
|
|
69
|
+
h("slot", { name: "suffix" }),
|
|
55
70
|
this.clearable && this.hasContent && !this.disabled && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) })))),
|
|
56
71
|
h(GuxFormFieldError, { hasError: this.hasError },
|
|
57
72
|
h("slot", { name: "error" })))));
|
|
@@ -71,9 +86,9 @@ export class GuxFormFieldTextLike {
|
|
|
71
86
|
this.input.addEventListener('input', () => {
|
|
72
87
|
this.hasContent = hasContent(this.input);
|
|
73
88
|
});
|
|
74
|
-
this.disabled = this.input
|
|
89
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
75
90
|
this.required = this.input.required;
|
|
76
|
-
this.disabledObserver =
|
|
91
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
77
92
|
this.disabled = disabled;
|
|
78
93
|
});
|
|
79
94
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -135,6 +150,8 @@ export class GuxFormFieldTextLike {
|
|
|
135
150
|
}
|
|
136
151
|
}; }
|
|
137
152
|
static get states() { return {
|
|
153
|
+
"hasPrefix": {},
|
|
154
|
+
"hasSuffix": {},
|
|
138
155
|
"computedLabelPosition": {},
|
|
139
156
|
"disabled": {},
|
|
140
157
|
"required": {},
|
|
@@ -5,8 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Component, Element, h, Prop, State } from '@stencil/core';
|
|
8
|
+
import { calculateInputDisabledState } from '../../../../../utils/dom/calculate-input-disabled-state';
|
|
9
|
+
import { onInputDisabledStateChange } from '../../../../../utils/dom/on-input-disabled-state-change';
|
|
8
10
|
import { OnMutation } from '../../../../../utils/decorator/on-mutation';
|
|
9
|
-
import { onDisabledChange } from '../../../../../utils/dom/on-attribute-change';
|
|
10
11
|
import { onRequiredChange } from '../../../../../utils/dom/on-attribute-change';
|
|
11
12
|
import { preventBrowserValidationStyling } from '../../../../../utils/dom/prevent-browser-validation-styling';
|
|
12
13
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
@@ -69,9 +70,9 @@ export class GuxFormFieldTextarea {
|
|
|
69
70
|
this.input.addEventListener('input', () => {
|
|
70
71
|
this.updateHeight(this.textareaContainerElement, this.input, this.resize);
|
|
71
72
|
});
|
|
72
|
-
this.disabled = this.input
|
|
73
|
+
this.disabled = calculateInputDisabledState(this.input);
|
|
73
74
|
this.required = this.input.required;
|
|
74
|
-
this.disabledObserver =
|
|
75
|
+
this.disabledObserver = onInputDisabledStateChange(this.input, (disabled) => {
|
|
75
76
|
this.disabled = disabled;
|
|
76
77
|
});
|
|
77
78
|
this.requiredObserver = onRequiredChange(this.input, (required) => {
|
|
@@ -24,6 +24,7 @@ export function getComputedLabelPosition(label, labelPosition) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export function validateFormIds(root, input) {
|
|
27
|
+
var _a, _b;
|
|
27
28
|
if (hasLabelSlot(root)) {
|
|
28
29
|
const label = root.querySelector('label[slot="label"]');
|
|
29
30
|
const inputHasId = Boolean(input.hasAttribute('id'));
|
|
@@ -52,14 +53,30 @@ export function validateFormIds(root, input) {
|
|
|
52
53
|
if (hasErrorSlot(root)) {
|
|
53
54
|
const error = root.querySelector('[slot="error"]');
|
|
54
55
|
const errorId = randomHTMLId('gux-form-field-error');
|
|
56
|
+
const describedByIds = ((_a = input
|
|
57
|
+
.getAttribute('aria-describedby')) === null || _a === void 0 ? void 0 : _a.split(' ').filter(id => !id.startsWith(`gux-form-field-error`))) || [];
|
|
55
58
|
error.setAttribute('id', errorId);
|
|
56
|
-
|
|
59
|
+
describedByIds.push(errorId);
|
|
60
|
+
describedByIds &&
|
|
61
|
+
input.setAttribute('aria-describedby', describedByIds.join(' '));
|
|
57
62
|
}
|
|
58
|
-
else if (input.getAttribute('aria-describedby')
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
else if (input.getAttribute('aria-describedby')) {
|
|
64
|
+
const describedByIds = ((_b = input
|
|
65
|
+
.getAttribute('aria-describedby')) === null || _b === void 0 ? void 0 : _b.split(' ').filter(id => !id.startsWith(`gux-form-field-error`))) || [];
|
|
66
|
+
input.setAttribute('aria-describedby', describedByIds.join(' '));
|
|
61
67
|
}
|
|
62
68
|
}
|
|
69
|
+
export function setSlotAriaDescribedby(root, input, slotName) {
|
|
70
|
+
var _a;
|
|
71
|
+
const slottedElement = root.querySelector(`[slot=${slotName}]`);
|
|
72
|
+
const randomId = randomHTMLId(`gux-${slotName}`);
|
|
73
|
+
const describedByIds = ((_a = input
|
|
74
|
+
.getAttribute('aria-describedby')) === null || _a === void 0 ? void 0 : _a.split(' ').filter(id => !id.startsWith(`gux-${slotName}`))) || [];
|
|
75
|
+
slottedElement.setAttribute('id', randomId);
|
|
76
|
+
describedByIds === null || describedByIds === void 0 ? void 0 : describedByIds.push(randomId);
|
|
77
|
+
describedByIds &&
|
|
78
|
+
input.setAttribute('aria-describedby', describedByIds.join(' '));
|
|
79
|
+
}
|
|
63
80
|
function hasLabelSlot(root) {
|
|
64
81
|
return Boolean(root.querySelector('label[slot="label"]'));
|
|
65
82
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { calculateInputDisabledState } from './calculate-input-disabled-state';
|
|
2
|
+
export function onInputDisabledStateChange(element, callback) {
|
|
3
|
+
const fieldSet = element.closest('fieldset');
|
|
4
|
+
const observer = new MutationObserver(mutations => {
|
|
5
|
+
mutations.forEach(mutation => {
|
|
6
|
+
if (mutation.attributeName === 'disabled') {
|
|
7
|
+
callback(calculateInputDisabledState(element));
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
observer.observe(element, { attributes: true });
|
|
12
|
+
if (fieldSet) {
|
|
13
|
+
observer.observe(fieldSet, { attributes: true });
|
|
14
|
+
}
|
|
15
|
+
return observer;
|
|
16
|
+
}
|
package/dist/deploy-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"ecosystem": "pc",
|
|
5
5
|
"team": "Core UI",
|
|
6
6
|
"indexFiles": [],
|
|
7
|
-
"build": "
|
|
8
|
-
"buildDate": "2022-08-
|
|
7
|
+
"build": "129",
|
|
8
|
+
"buildDate": "2022-08-15T20:29:57.850411Z"
|
|
9
9
|
}
|