genesys-spark-components 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +297 -0
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +58 -0
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +27 -175
- package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-color.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +91 -0
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-range.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-search.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-select.cjs.entry.js +7 -7
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +7 -7
- package/dist/cjs/{gux-form-field.servce-e9451c50.js → gux-form-field.service-e38b2c2f.js} +0 -0
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +159 -0
- package/dist/cjs/gux-listbox.service-d394da79.js +161 -0
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +47 -0
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/index-33b1b88e.js +24 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-1ddbe5f1.js → usage-tracking-f3cc3f84.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +50 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +116 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +151 -0
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.js +458 -0
- package/dist/collection/components/beta/gux-tag/gux-tag.js +0 -17
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +19 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +153 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +126 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +1 -1
- package/dist/collection/components/stable/gux-form-field/{gux-form-field.servce.js → gux-form-field.service.js} +0 -0
- package/dist/collection/components/stable/gux-listbox/gux-listbox.js +7 -9
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +23 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +269 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -0
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +167 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-legacy.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button-legacy.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-list-legacy.entry.js +1 -1
- package/dist/esm/gux-action-toast.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
- package/dist/esm/gux-badge-beta.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot-beta.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card-beta.entry.js +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi-beta.entry.js +293 -0
- package/dist/esm/gux-dropdown-multi-tag.entry.js +54 -0
- package/dist/esm/gux-dropdown_3.entry.js +9 -157
- package/dist/esm/gux-error-message-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +87 -0
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-legacy.entry.js +1 -1
- package/dist/esm/gux-form-field-number.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +2 -2
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +2 -2
- package/dist/esm/gux-form-field-select.entry.js +2 -2
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +2 -2
- package/dist/esm/{gux-form-field.servce-971609e2.js → gux-form-field.service-4ad30790.js} +0 -0
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +155 -0
- package/dist/esm/gux-listbox.service-3541a2f7.js +148 -0
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-notification-toast.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +43 -0
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-beta.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-popover.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
- package/dist/esm/gux-simple-toast.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs-legacy.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag-beta.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-text-label-legacy.entry.js +1 -1
- package/dist/esm/gux-time-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip_2.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/esm/index-76794476.js +24 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-e9b9fc3f.js → usage-tracking-83359dbf.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
- package/dist/genesys-webcomponents/p-020690ec.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-29744d9a.entry.js → p-0319263d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b190a126.entry.js → p-0424f896.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6be57719.entry.js → p-07f57fba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f0e923b9.entry.js → p-0c2f3d37.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ec0cec3.entry.js → p-0d51e659.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed56171c.entry.js → p-0eade7d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eadf85b3.entry.js → p-11a585f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30558b17.entry.js → p-1729a48c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e56e0d6a.entry.js → p-17980fa9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b98439e6.entry.js → p-1b839ce5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-344828ad.entry.js → p-2428f6b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45df9c11.entry.js → p-291608e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b4d8050.entry.js → p-29f0760a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7caa47a.entry.js → p-2a0fbc9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a67745f.entry.js → p-2a2f15bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1f6910e.entry.js → p-32235f46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6b756f6d.entry.js → p-323c1430.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-76f7479d.entry.js → p-32585fea.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
- package/dist/genesys-webcomponents/{p-4cc40ffe.entry.js → p-39d898df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d75428f1.entry.js → p-3e94ba55.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3fcbbe4.entry.js → p-42f9c421.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08b07a2b.js → p-479cf5a2.js} +0 -0
- package/dist/genesys-webcomponents/{p-1313a627.entry.js → p-4c5acf82.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b664a390.entry.js → p-58b5efa2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5534193b.entry.js → p-5bbf331f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c551dd14.entry.js → p-60f75d6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2d9198b1.entry.js → p-62c2dcaf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-548af6d1.entry.js → p-62d1cde8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-66ca3da0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-84165fbe.entry.js → p-6809132b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f62d408a.entry.js → p-6e2e5f6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1bef4ea7.entry.js → p-71a69169.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7512b26a.entry.js → p-7213d71d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c1b42ab.entry.js → p-772f31b1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4730ee1.entry.js → p-77f93a2b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25b74c1b.entry.js → p-787ec751.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a4584b1.entry.js → p-7b4f9126.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f834153.entry.js → p-7cc82e6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7bae2a7d.entry.js → p-88b2b100.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be4455b9.entry.js → p-90ba25cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcdf8926.entry.js → p-95e43594.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-caff3783.entry.js → p-964097f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4083afa6.entry.js → p-9a09169f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5190a2c0.entry.js → p-9d663bf4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d429ff71.entry.js → p-9f97f311.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca932cd2.js → p-a44f5924.js} +1 -1
- package/dist/genesys-webcomponents/{p-24206bb9.entry.js → p-a5fa799d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1856e5cd.entry.js → p-a87d2b90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f329dbea.entry.js → p-a926e0c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a9499ee1.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d63d33a7.entry.js → p-ab11ff84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8b8ae7f.entry.js → p-af4be06f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f114dc1b.entry.js → p-b7c37cbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3e2578c.entry.js → p-bd2fd32a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-882bb0d7.entry.js → p-bf6fd055.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c89c74eb.entry.js → p-c3582f7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6d44d2f.entry.js → p-cc544e76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-66e648d2.entry.js → p-ccfa2e58.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbd66a48.entry.js → p-cf581353.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44ea15ed.entry.js → p-d989c6fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e78c86e4.entry.js → p-dbc95134.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5587d078.entry.js → p-dc53d8fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f26b46dc.entry.js → p-dee741ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-193d169d.entry.js → p-e67b0d46.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e78de8af.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c72a8228.entry.js → p-e813ac64.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ea1706f3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c3b9a57f.entry.js → p-eaff9d4f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b0259c1a.entry.js → p-ef9491b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83818ffb.entry.js → p-f07ad3df.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f4e91e7a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-72291037.entry.js → p-fa36c86b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-fb49bd0d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dc714f80.entry.js → p-fb6977e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2dac107b.entry.js → p-fd4474d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78fa1cfb.entry.js → p-ff2a29fb.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +20 -0
- package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi.d.ts +56 -0
- package/dist/types/components/beta/gux-tag/gux-tag.d.ts +0 -4
- package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +1 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.d.ts +27 -0
- package/dist/types/components/stable/gux-form-field/{gux-form-field.servce.d.ts → gux-form-field.service.d.ts} +1 -1
- package/dist/types/components/stable/gux-listbox/gux-listbox.d.ts +1 -1
- package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +28 -0
- package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +15 -0
- package/dist/types/components.d.ts +123 -8
- package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-3d2cb50a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ab1ad75b.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-33b1b88e.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
7
7
|
const guxMenu_common = require('./gux-menu.common-6a6c2b85.js');
|
|
8
8
|
const popper = require('./popper-71bf3058.js');
|
|
9
9
|
|
|
@@ -6,8 +6,8 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
-
const
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
11
11
|
require('./random-html-id-b86b61c0.js');
|
|
12
12
|
require('./log-error-a57681bf.js');
|
|
13
13
|
require('./set-input-value-610d7da3.js');
|
|
@@ -31,11 +31,11 @@ const GuxFormFieldCheckbox = class {
|
|
|
31
31
|
this.hasError = false;
|
|
32
32
|
}
|
|
33
33
|
onMutation() {
|
|
34
|
-
this.hasError =
|
|
34
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
35
35
|
}
|
|
36
36
|
componentWillLoad() {
|
|
37
37
|
this.setInput();
|
|
38
|
-
this.hasError =
|
|
38
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
39
39
|
usageTracking.trackComponent(this.root);
|
|
40
40
|
}
|
|
41
41
|
disconnectedCallback() {
|
|
@@ -45,7 +45,7 @@ const GuxFormFieldCheckbox = class {
|
|
|
45
45
|
return (index.h(index.Host, { class: {
|
|
46
46
|
'gux-input-error': this.hasError,
|
|
47
47
|
'gux-disabled': this.disabled
|
|
48
|
-
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), index.h("slot", { name: "label" })), index.h(
|
|
48
|
+
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), index.h("slot", { name: "label" })), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
49
49
|
}
|
|
50
50
|
setInput() {
|
|
51
51
|
this.input = this.root.querySelector('input[type="checkbox"][slot="input"]');
|
|
@@ -54,7 +54,7 @@ const GuxFormFieldCheckbox = class {
|
|
|
54
54
|
this.disabledObserver = onAttributeChange.onDisabledChange(this.input, (disabled) => {
|
|
55
55
|
this.disabled = disabled;
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
58
58
|
}
|
|
59
59
|
get root() { return index.getElement(this); }
|
|
60
60
|
};
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -32,12 +32,12 @@ const GuxFormFieldColor = class {
|
|
|
32
32
|
this.hasError = false;
|
|
33
33
|
}
|
|
34
34
|
onMutation() {
|
|
35
|
-
this.hasError =
|
|
35
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
36
36
|
}
|
|
37
37
|
componentWillLoad() {
|
|
38
38
|
this.setInput();
|
|
39
39
|
this.setLabel();
|
|
40
|
-
this.hasError =
|
|
40
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
41
41
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
42
42
|
}
|
|
43
43
|
disconnectedCallback() {
|
|
@@ -51,7 +51,7 @@ const GuxFormFieldColor = class {
|
|
|
51
51
|
} }, index.h("div", { class: {
|
|
52
52
|
'gux-input-container': true,
|
|
53
53
|
'gux-disabled': this.disabled
|
|
54
|
-
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }))), index.h(
|
|
54
|
+
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }))), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
55
55
|
}
|
|
56
56
|
get variant() {
|
|
57
57
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -67,11 +67,11 @@ const GuxFormFieldColor = class {
|
|
|
67
67
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
68
68
|
this.required = required;
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
71
71
|
}
|
|
72
72
|
setLabel() {
|
|
73
73
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
74
|
-
this.computedLabelPosition =
|
|
74
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
75
75
|
}
|
|
76
76
|
get root() { return index.getElement(this); }
|
|
77
77
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-33b1b88e.js');
|
|
6
|
+
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
|
+
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
9
|
+
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
11
|
+
require('./random-html-id-b86b61c0.js');
|
|
12
|
+
require('./log-error-a57681bf.js');
|
|
13
|
+
require('./set-input-value-610d7da3.js');
|
|
14
|
+
require('./simulate-native-event-fe3e62da.js');
|
|
15
|
+
|
|
16
|
+
const guxFormFieldDropdownCss = ".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(select){flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted(select)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:#2a60c8}.gux-input-and-error-container .gux-input .gux-input-container select{flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;top:0;right:0;width:16px;height:16px;margin:8px;pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
17
|
+
|
|
18
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
21
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
22
|
+
else
|
|
23
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
24
|
+
if (d = decorators[i])
|
|
25
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
26
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27
|
+
};
|
|
28
|
+
const GuxFormFieldDropdown = class {
|
|
29
|
+
constructor(hostRef) {
|
|
30
|
+
index.registerInstance(this, hostRef);
|
|
31
|
+
this.computedLabelPosition = 'above';
|
|
32
|
+
this.hasError = false;
|
|
33
|
+
}
|
|
34
|
+
onMutation() {
|
|
35
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
36
|
+
}
|
|
37
|
+
componentWillLoad() {
|
|
38
|
+
this.setInput();
|
|
39
|
+
this.setLabel();
|
|
40
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
41
|
+
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
this.disabledObserver.disconnect();
|
|
45
|
+
this.requiredObserver.disconnect();
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (index.h(guxFormFieldLabel.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldLabel.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, index.h("div", { class: {
|
|
49
|
+
'gux-input': true,
|
|
50
|
+
'gux-input-error': this.hasError
|
|
51
|
+
} }, index.h("div", { class: {
|
|
52
|
+
'gux-dropdown-container': true,
|
|
53
|
+
'gux-disabled': this.disabled
|
|
54
|
+
} }, index.h("slot", null))), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.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 = onAttributeChange.onDisabledChange(this.dropdownElement, (disabled) => {
|
|
73
|
+
this.disabled = disabled;
|
|
74
|
+
});
|
|
75
|
+
this.requiredObserver = onAttributeChange.onRequiredChange(this.dropdownElement, (required) => {
|
|
76
|
+
this.required = required;
|
|
77
|
+
});
|
|
78
|
+
guxFormField_service.validateFormIds(this.root, this.listboxElement);
|
|
79
|
+
}
|
|
80
|
+
setLabel() {
|
|
81
|
+
this.label = this.root.querySelector('label[slot="label"]');
|
|
82
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
83
|
+
}
|
|
84
|
+
get root() { return index.getElement(this); }
|
|
85
|
+
};
|
|
86
|
+
__decorate([
|
|
87
|
+
onMutation.OnMutation({ childList: true, subtree: true })
|
|
88
|
+
], GuxFormFieldDropdown.prototype, "onMutation", null);
|
|
89
|
+
GuxFormFieldDropdown.style = guxFormFieldDropdownCss;
|
|
90
|
+
|
|
91
|
+
exports.gux_form_field_dropdown = GuxFormFieldDropdown;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-33b1b88e.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
7
7
|
const index$1 = require('./index-2202ad01.js');
|
|
8
8
|
require('./get-closest-element-ab4b2eee.js');
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@ const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
|
8
8
|
const logError = require('./log-error-a57681bf.js');
|
|
9
9
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
10
10
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
11
|
-
const usageTracking = require('./usage-tracking-
|
|
11
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
12
12
|
|
|
13
13
|
const guxFormFieldCss = "gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";
|
|
14
14
|
|
|
@@ -7,11 +7,11 @@ const index$1 = require('./index-2202ad01.js');
|
|
|
7
7
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
11
11
|
const setInputValue = require('./set-input-value-610d7da3.js');
|
|
12
12
|
const simulateNativeEvent = require('./simulate-native-event-fe3e62da.js');
|
|
13
13
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
14
|
-
const
|
|
14
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
15
15
|
require('./get-closest-element-ab4b2eee.js');
|
|
16
16
|
require('./random-html-id-b86b61c0.js');
|
|
17
17
|
require('./log-error-a57681bf.js');
|
|
@@ -43,13 +43,13 @@ const GuxFormFieldNumber = class {
|
|
|
43
43
|
this.hasError = false;
|
|
44
44
|
}
|
|
45
45
|
onMutation() {
|
|
46
|
-
this.hasError =
|
|
46
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
47
47
|
}
|
|
48
48
|
async componentWillLoad() {
|
|
49
49
|
this.getI18nValue = await index$1.buildI18nForComponent(this.root, componentResources);
|
|
50
50
|
this.setInput();
|
|
51
51
|
this.setLabel();
|
|
52
|
-
this.hasError =
|
|
52
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
53
53
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
54
54
|
}
|
|
55
55
|
disconnectedCallback() {
|
|
@@ -65,7 +65,7 @@ const GuxFormFieldNumber = class {
|
|
|
65
65
|
'gux-input-container': true,
|
|
66
66
|
'gux-disabled': this.disabled,
|
|
67
67
|
'gux-clear': showClearButton
|
|
68
|
-
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (index.h("gux-form-field-input-clear-button", { onClick: () =>
|
|
68
|
+
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
69
69
|
}
|
|
70
70
|
get variant() {
|
|
71
71
|
const labelPositionVariant = this.labelPosition
|
|
@@ -76,10 +76,10 @@ const GuxFormFieldNumber = class {
|
|
|
76
76
|
}
|
|
77
77
|
setInput() {
|
|
78
78
|
this.input = this.root.querySelector('input[type="number"][slot="input"]');
|
|
79
|
-
this.hasContent =
|
|
79
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
80
80
|
preventBrowserValidationStyling.preventBrowserValidationStyling(this.input);
|
|
81
81
|
this.input.addEventListener('input', () => {
|
|
82
|
-
this.hasContent =
|
|
82
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
83
83
|
});
|
|
84
84
|
this.disabled = this.input.disabled;
|
|
85
85
|
this.required = this.input.required;
|
|
@@ -89,11 +89,11 @@ const GuxFormFieldNumber = class {
|
|
|
89
89
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
90
90
|
this.required = required;
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
93
93
|
}
|
|
94
94
|
setLabel() {
|
|
95
95
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
96
|
-
this.computedLabelPosition =
|
|
96
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
97
97
|
}
|
|
98
98
|
renderStepButtons(input, getI18nValue, disabled) {
|
|
99
99
|
return (index.h("div", { class: "gux-step-buttons-container" }, index.h("button", { class: "gux-step-button", tabIndex: -1, type: "button", title: getI18nValue('increment'), disabled: disabled, onClick: () => this.stepUp(input) }, index.h("gux-icon", { "icon-name": "chevron-small-up", decorative: true })), index.h("button", { class: "gux-step-button", tabIndex: -1, type: "button", title: getI18nValue('decrement'), disabled: disabled, onClick: () => this.stepDown(input) }, index.h("gux-icon", { "icon-name": "chevron-small-down", decorative: true }))));
|
|
@@ -6,8 +6,8 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
10
|
-
const
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
11
11
|
require('./random-html-id-b86b61c0.js');
|
|
12
12
|
require('./log-error-a57681bf.js');
|
|
13
13
|
require('./set-input-value-610d7da3.js');
|
|
@@ -31,11 +31,11 @@ const GuxFormFieldRadio = class {
|
|
|
31
31
|
this.hasError = false;
|
|
32
32
|
}
|
|
33
33
|
onMutation() {
|
|
34
|
-
this.hasError =
|
|
34
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
35
35
|
}
|
|
36
36
|
componentWillLoad() {
|
|
37
37
|
this.setInput();
|
|
38
|
-
this.hasError =
|
|
38
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
39
39
|
usageTracking.trackComponent(this.root);
|
|
40
40
|
}
|
|
41
41
|
disconnectedCallback() {
|
|
@@ -45,7 +45,7 @@ const GuxFormFieldRadio = class {
|
|
|
45
45
|
return (index.h(index.Host, { class: {
|
|
46
46
|
'gux-input-error': this.hasError,
|
|
47
47
|
'gux-disabled': this.disabled
|
|
48
|
-
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), index.h("slot", { name: "label" })), index.h(
|
|
48
|
+
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), index.h("slot", { name: "label" })), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
49
49
|
}
|
|
50
50
|
setInput() {
|
|
51
51
|
this.input = this.root.querySelector('input[type="radio"][slot="input"]');
|
|
@@ -54,7 +54,7 @@ const GuxFormFieldRadio = class {
|
|
|
54
54
|
this.disabledObserver = onAttributeChange.onDisabledChange(this.input, (disabled) => {
|
|
55
55
|
this.disabled = disabled;
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
58
58
|
}
|
|
59
59
|
get root() { return index.getElement(this); }
|
|
60
60
|
};
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -45,12 +45,12 @@ const GuxFormField = class {
|
|
|
45
45
|
this.active = false;
|
|
46
46
|
}
|
|
47
47
|
onMutation() {
|
|
48
|
-
this.hasError =
|
|
48
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
49
49
|
}
|
|
50
50
|
componentWillLoad() {
|
|
51
51
|
this.setInput();
|
|
52
52
|
this.setLabel();
|
|
53
|
-
this.hasError =
|
|
53
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
54
54
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
55
55
|
}
|
|
56
56
|
componentDidLoad() {
|
|
@@ -64,7 +64,7 @@ const GuxFormField = class {
|
|
|
64
64
|
render() {
|
|
65
65
|
return (index.h(index.Host, { class: {
|
|
66
66
|
'gux-active': this.active
|
|
67
|
-
} }, index.h(guxFormFieldLabel.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldLabel.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, this.renderRangeInput(), index.h(
|
|
67
|
+
} }, index.h(guxFormFieldLabel.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldLabel.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, this.renderRangeInput(), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" }))))));
|
|
68
68
|
}
|
|
69
69
|
get variant() {
|
|
70
70
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -87,11 +87,11 @@ const GuxFormField = class {
|
|
|
87
87
|
this.updateValue(this.input.value);
|
|
88
88
|
}
|
|
89
89
|
}, 100);
|
|
90
|
-
|
|
90
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
91
91
|
}
|
|
92
92
|
setLabel() {
|
|
93
93
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
94
|
-
this.computedLabelPosition =
|
|
94
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
95
95
|
}
|
|
96
96
|
renderRangeInput() {
|
|
97
97
|
return (index.h("div", { class: {
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -35,12 +35,12 @@ const GuxFormFieldSearch = class {
|
|
|
35
35
|
this.hasError = false;
|
|
36
36
|
}
|
|
37
37
|
onMutation() {
|
|
38
|
-
this.hasError =
|
|
38
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
39
39
|
}
|
|
40
40
|
componentWillLoad() {
|
|
41
41
|
this.setInput();
|
|
42
42
|
this.setLabel();
|
|
43
|
-
this.hasError =
|
|
43
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
44
44
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
45
45
|
}
|
|
46
46
|
disconnectedCallback() {
|
|
@@ -54,7 +54,7 @@ const GuxFormFieldSearch = class {
|
|
|
54
54
|
} }, index.h("div", { class: {
|
|
55
55
|
'gux-input-container': true,
|
|
56
56
|
'gux-disabled': this.disabled
|
|
57
|
-
} }, index.h("gux-icon", { "icon-name": "search", decorative: true }), index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () =>
|
|
57
|
+
} }, index.h("gux-icon", { "icon-name": "search", decorative: true }), index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) })))), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
58
58
|
}
|
|
59
59
|
get variant() {
|
|
60
60
|
const labelPositionVariant = this.labelPosition
|
|
@@ -65,10 +65,10 @@ const GuxFormFieldSearch = class {
|
|
|
65
65
|
}
|
|
66
66
|
setInput() {
|
|
67
67
|
this.input = this.root.querySelector('input[type="search"][slot="input"]');
|
|
68
|
-
this.hasContent =
|
|
68
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
69
69
|
preventBrowserValidationStyling.preventBrowserValidationStyling(this.input);
|
|
70
70
|
this.input.addEventListener('input', () => {
|
|
71
|
-
this.hasContent =
|
|
71
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
72
72
|
});
|
|
73
73
|
this.disabled = this.input.disabled;
|
|
74
74
|
this.required = this.input.required;
|
|
@@ -78,11 +78,11 @@ const GuxFormFieldSearch = class {
|
|
|
78
78
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
79
79
|
this.required = required;
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
82
82
|
}
|
|
83
83
|
setLabel() {
|
|
84
84
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
85
|
-
this.computedLabelPosition =
|
|
85
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
86
86
|
}
|
|
87
87
|
get root() { return index.getElement(this); }
|
|
88
88
|
};
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -33,12 +33,12 @@ const GuxFormFieldSelect = class {
|
|
|
33
33
|
this.hasError = false;
|
|
34
34
|
}
|
|
35
35
|
onMutation() {
|
|
36
|
-
this.hasError =
|
|
36
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
37
37
|
}
|
|
38
38
|
componentWillLoad() {
|
|
39
39
|
this.setInput();
|
|
40
40
|
this.setLabel();
|
|
41
|
-
this.hasError =
|
|
41
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
42
42
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
43
43
|
}
|
|
44
44
|
disconnectedCallback() {
|
|
@@ -52,7 +52,7 @@ const GuxFormFieldSelect = class {
|
|
|
52
52
|
} }, index.h("div", { class: {
|
|
53
53
|
'gux-input-container': true,
|
|
54
54
|
'gux-disabled': this.disabled
|
|
55
|
-
} }, index.h("slot", { name: "input" }), index.h("gux-icon", { "icon-name": "ic-dropdown-arrow", decorative: true }))), index.h(
|
|
55
|
+
} }, index.h("slot", { name: "input" }), index.h("gux-icon", { "icon-name": "ic-dropdown-arrow", decorative: true }))), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
56
56
|
}
|
|
57
57
|
get variant() {
|
|
58
58
|
const labelPositionVariant = this.labelPosition
|
|
@@ -72,11 +72,11 @@ const GuxFormFieldSelect = class {
|
|
|
72
72
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
73
73
|
this.required = required;
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
76
76
|
}
|
|
77
77
|
setLabel() {
|
|
78
78
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
79
|
-
this.computedLabelPosition =
|
|
79
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
80
80
|
}
|
|
81
81
|
get root() { return index.getElement(this); }
|
|
82
82
|
};
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -34,12 +34,12 @@ const GuxFormFieldTextLike = class {
|
|
|
34
34
|
this.hasError = false;
|
|
35
35
|
}
|
|
36
36
|
onMutation() {
|
|
37
|
-
this.hasError =
|
|
37
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
38
38
|
}
|
|
39
39
|
componentWillLoad() {
|
|
40
40
|
this.setInput();
|
|
41
41
|
this.setLabel();
|
|
42
|
-
this.hasError =
|
|
42
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
43
43
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
44
44
|
}
|
|
45
45
|
disconnectedCallback() {
|
|
@@ -53,7 +53,7 @@ const GuxFormFieldTextLike = class {
|
|
|
53
53
|
} }, index.h("div", { class: {
|
|
54
54
|
'gux-input-container': true,
|
|
55
55
|
'gux-disabled': this.disabled
|
|
56
|
-
} }, index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () =>
|
|
56
|
+
} }, index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) })))), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
57
57
|
}
|
|
58
58
|
get variant() {
|
|
59
59
|
const labelPositionVariant = this.labelPosition
|
|
@@ -65,10 +65,10 @@ const GuxFormFieldTextLike = class {
|
|
|
65
65
|
}
|
|
66
66
|
setInput() {
|
|
67
67
|
this.input = this.root.querySelector('input[type="email"][slot="input"], input[type="password"][slot="input"], input[type="text"][slot="input"]');
|
|
68
|
-
this.hasContent =
|
|
68
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
69
69
|
preventBrowserValidationStyling.preventBrowserValidationStyling(this.input);
|
|
70
70
|
this.input.addEventListener('input', () => {
|
|
71
|
-
this.hasContent =
|
|
71
|
+
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
72
72
|
});
|
|
73
73
|
this.disabled = this.input.disabled;
|
|
74
74
|
this.required = this.input.required;
|
|
@@ -78,11 +78,11 @@ const GuxFormFieldTextLike = class {
|
|
|
78
78
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
79
79
|
this.required = required;
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
82
82
|
}
|
|
83
83
|
setLabel() {
|
|
84
84
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
85
|
-
this.computedLabelPosition =
|
|
85
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
86
86
|
}
|
|
87
87
|
get root() { return index.getElement(this); }
|
|
88
88
|
};
|
|
@@ -6,9 +6,9 @@ const index = require('./index-33b1b88e.js');
|
|
|
6
6
|
const onMutation = require('./on-mutation-2e4dd956.js');
|
|
7
7
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const usageTracking = require('./usage-tracking-
|
|
9
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
10
10
|
const guxFormFieldLabel = require('./gux-form-field-label-d5088b51.js');
|
|
11
|
-
const
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-e38b2c2f.js');
|
|
12
12
|
require('./random-html-id-b86b61c0.js');
|
|
13
13
|
require('./log-error-a57681bf.js');
|
|
14
14
|
require('./set-input-value-610d7da3.js');
|
|
@@ -34,12 +34,12 @@ const GuxFormFieldTextarea = class {
|
|
|
34
34
|
this.hasError = false;
|
|
35
35
|
}
|
|
36
36
|
onMutation() {
|
|
37
|
-
this.hasError =
|
|
37
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
38
38
|
}
|
|
39
39
|
componentWillLoad() {
|
|
40
40
|
this.setInput();
|
|
41
41
|
this.setLabel();
|
|
42
|
-
this.hasError =
|
|
42
|
+
this.hasError = guxFormField_service.hasErrorSlot(this.root);
|
|
43
43
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
44
44
|
}
|
|
45
45
|
componentDidLoad() {
|
|
@@ -55,7 +55,7 @@ const GuxFormFieldTextarea = class {
|
|
|
55
55
|
[`gux-resize-${this.resize}`]: true,
|
|
56
56
|
'gux-disabled': this.disabled,
|
|
57
57
|
'gux-input-error': this.hasError
|
|
58
|
-
} }, index.h("slot", { name: "input" })), index.h(
|
|
58
|
+
} }, index.h("slot", { name: "input" })), index.h(guxFormField_service.GuxFormFieldError, { hasError: this.hasError }, index.h("slot", { name: "error" })))));
|
|
59
59
|
}
|
|
60
60
|
get variant() {
|
|
61
61
|
const labelPositionVariant = this.labelPosition
|
|
@@ -78,11 +78,11 @@ const GuxFormFieldTextarea = class {
|
|
|
78
78
|
this.requiredObserver = onAttributeChange.onRequiredChange(this.input, (required) => {
|
|
79
79
|
this.required = required;
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
guxFormField_service.validateFormIds(this.root, this.input);
|
|
82
82
|
}
|
|
83
83
|
setLabel() {
|
|
84
84
|
this.label = this.root.querySelector('label[slot="label"]');
|
|
85
|
-
this.computedLabelPosition =
|
|
85
|
+
this.computedLabelPosition = guxFormField_service.getComputedLabelPosition(this.label, this.labelPosition);
|
|
86
86
|
}
|
|
87
87
|
updateHeight(container, input, resize) {
|
|
88
88
|
if (resize === 'auto') {
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-33b1b88e.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
7
7
|
const logError = require('./log-error-a57681bf.js');
|
|
8
8
|
|
|
9
9
|
const iconNameMap = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-33b1b88e.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-f3cc3f84.js');
|
|
7
7
|
|
|
8
8
|
const guxListItemCss = ":host:focus .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";
|
|
9
9
|
|