genesys-spark-components 3.32.3 → 3.33.1
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 +14 -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-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state-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-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-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 +1 -1
- 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 +10 -6
- package/dist/cjs/gux-form-field-color.cjs.entry.js +12 -8
- package/dist/cjs/{gux-form-field-label-cb1bc6c7.js → gux-form-field-container-284d1d01.js} +7 -7
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +12 -8
- 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 +14 -9
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +10 -6
- package/dist/cjs/gux-form-field-range.cjs.entry.js +11 -7
- package/dist/cjs/gux-form-field-search.cjs.entry.js +12 -8
- package/dist/cjs/gux-form-field-select.cjs.entry.js +12 -8
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +14 -9
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +12 -8
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +23 -14
- package/dist/cjs/{gux-form-field.service-66dade5d.js → gux-form-field.service-8424f99d.js} +29 -13
- 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-month-picker-beta.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 +3 -6
- 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-screen-reader-beta.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-list-beta.cjs.entry.js +1 -1
- 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-beta.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 +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/has-slot-2e73d6e7.js +7 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-aa9da6aa.js → usage-tracking-2be3d35e.js} +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +16 -10
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +17 -13
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +16 -12
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +21 -16
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +16 -10
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +16 -12
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +17 -13
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +17 -13
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +23 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +19 -14
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +17 -13
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +21 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +17 -12
- package/dist/collection/components/stable/gux-form-field/functional-components/functional-components.js +7 -0
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-error/gux-form-field-error.js +2 -2
- package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-help/gux-form-field-help.js +7 -0
- package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +18 -9
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +1 -1
- package/dist/collection/utils/dom/get-slot-text-content.js +4 -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-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge-beta.entry.js +1 -1
- package/dist/esm/gux-blank-state-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-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-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 +1 -1
- 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 +10 -6
- package/dist/esm/gux-form-field-color.entry.js +11 -7
- package/dist/esm/{gux-form-field-label-9c6f4df6.js → gux-form-field-container-2d8e8d4e.js} +7 -7
- package/dist/esm/gux-form-field-dropdown.entry.js +11 -7
- 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 +13 -8
- package/dist/esm/gux-form-field-radio.entry.js +10 -6
- package/dist/esm/gux-form-field-range.entry.js +11 -7
- package/dist/esm/gux-form-field-search.entry.js +11 -7
- package/dist/esm/gux-form-field-select.entry.js +11 -7
- package/dist/esm/gux-form-field-text-like.entry.js +13 -8
- package/dist/esm/gux-form-field-textarea.entry.js +11 -7
- package/dist/esm/gux-form-field-time-picker.entry.js +23 -14
- package/dist/esm/{gux-form-field.service-25a9237e.js → gux-form-field.service-e046de13.js} +29 -12
- 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-month-picker-beta.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 +2 -5
- 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-screen-reader-beta.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-list-beta.entry.js +1 -1
- 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-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/esm/has-slot-062ae63a.js +5 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-tracking-208cef9e.js → usage-tracking-134b159c.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-f8c11029.entry.js → p-05c82502.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-08bc2e6b.js +1 -0
- package/dist/genesys-webcomponents/{p-cbcd5fde.entry.js → p-0e14bf57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb4b4db3.entry.js → p-10047fdd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ae53925.entry.js → p-1202b33e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3cca4425.entry.js → p-132e2f94.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1d0e0ff1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-1f6b2594.js +1 -0
- package/dist/genesys-webcomponents/{p-78a09deb.entry.js → p-20b87c45.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c15ad970.entry.js → p-2513001d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4e6d6d9.entry.js → p-28119bda.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-411ce526.entry.js → p-28ddba4e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0afb6281.entry.js → p-293279b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2fbb58c5.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-47ff4961.entry.js → p-31469c00.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbb743e4.entry.js → p-336e7d28.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b57a1503.entry.js → p-34fd6d20.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d8ed01d.entry.js → p-36e24c16.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6753b85e.entry.js → p-37769b73.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1ee8a37.entry.js → p-3a40e63a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3b2906ad.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-27a4972a.entry.js → p-43d09775.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-669585de.entry.js → p-44fbd20e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7bf15d70.entry.js → p-45c5c7f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eef4a31e.entry.js → p-4791619c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e174f48.entry.js → p-49c8d026.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-56a53028.entry.js → p-49dc33a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-738fada9.entry.js → p-4b43b2e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9d5a8c4.entry.js → p-4c4bf323.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c13791d.entry.js → p-4c972483.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-90b8aa76.entry.js → p-4e1fe7e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4e4bd249.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-279e3d0c.entry.js → p-5265a9cb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8cbf669c.entry.js → p-543b80ec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53b4cfe2.entry.js → p-55ee7188.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5640e5f7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-cb4b6d73.entry.js → p-5b686988.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5ccd5ea0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dca6993e.entry.js → p-5dc533f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-750e70ef.entry.js → p-5df4260c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d176c52.entry.js → p-63810a77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80046670.entry.js → p-63ae75c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5912c734.entry.js → p-692d704c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f7c7986b.entry.js → p-737e3760.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7598bf52.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a51ff810.entry.js → p-77a52936.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-79242b75.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-695049b5.entry.js → p-7b9933a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-338324cc.entry.js → p-7d48c7bd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ebe7f33.entry.js → p-84276e7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-86e8dabe.entry.js +1 -0
- package/dist/genesys-webcomponents/p-93983e56.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f8471417.entry.js → p-9415f154.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5eafce9.entry.js → p-99409164.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9b62e64f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f6bd4dd4.entry.js → p-9c48f066.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b4f80688.entry.js → p-a3c460a3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a79f132a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5748b8ba.entry.js → p-ac992cdf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b2e4bb13.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b406c20c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6660bb1c.entry.js → p-b7f177f8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-afe37461.entry.js → p-bdd6bee9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-236760ad.entry.js → p-c54a61fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b4f4a6e.entry.js → p-c6da11d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d402352c.entry.js → p-c84850a1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c9576487.js +1 -0
- package/dist/genesys-webcomponents/{p-dec1b34f.entry.js → p-ccc915ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e5de66fd.entry.js → p-d76cbb96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fb2cd78.entry.js → p-d8fde3b4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1563c1b6.entry.js → p-dc7ce7ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-de94968a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fbe5ce4b.entry.js → p-e9d6e462.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1bd6dbe4.entry.js → p-ea19b1a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3d32494.entry.js → p-ec14df2c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c733037.entry.js → p-ed9b638d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26c01f0c.entry.js → p-edceb2bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ee3a1212.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f57a152d.entry.js → p-ee80c18d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b48c542d.js → p-ee89fbc7.js} +1 -1
- package/dist/genesys-webcomponents/{p-faff15ba.entry.js → p-f13dafb6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34873c24.entry.js → p-f1a281e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f2af0eed.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b2282e96.entry.js → p-f2d94182.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4afebf77.entry.js → p-f320afc6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97065fec.entry.js → p-f6df2342.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5872b921.entry.js → p-f79cf8f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ff176b02.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.d.ts +2 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.d.ts +3 -1
- package/dist/types/components/stable/gux-form-field/functional-components/functional-components.d.ts +7 -0
- package/dist/types/components/stable/gux-form-field/functional-components/gux-form-field-error/gux-form-field-error.d.ts +1 -1
- package/dist/types/components/stable/gux-form-field/functional-components/gux-form-field-help/gux-form-field-help.d.ts +6 -0
- package/dist/types/components/stable/gux-form-field/gux-form-field.service.d.ts +0 -2
- package/dist/types/utils/dom/get-slot-text-content.d.ts +1 -0
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-061af639.js +0 -1
- package/dist/genesys-webcomponents/p-1493f317.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1716b59b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2b82af25.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2f6f5ecf.entry.js +0 -1
- package/dist/genesys-webcomponents/p-37d8c707.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4645a835.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4d7be638.entry.js +0 -1
- package/dist/genesys-webcomponents/p-51252166.entry.js +0 -1
- package/dist/genesys-webcomponents/p-532d9004.entry.js +0 -1
- package/dist/genesys-webcomponents/p-57587e93.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7dcb5f01.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9377abe2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9dd70ee6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ae596c2f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b3bbc23b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b5c4192d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c079a476.js +0 -1
- package/dist/genesys-webcomponents/p-ee538d18.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f76765f7.entry.js +0 -1
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -9,24 +9,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { calculateInputDisabledState } from '
|
|
13
|
-
import { onInputDisabledStateChange } from '
|
|
14
|
-
import { OnMutation } from '
|
|
15
|
-
import { onRequiredChange } from '
|
|
12
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
13
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
14
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
15
|
+
import { onRequiredChange } from '@utils/dom/on-attribute-change';
|
|
16
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
17
|
+
import { GuxFormFieldHelp, GuxFormFieldError, GuxFormFieldLabel, GuxFormFieldContainer } from '../../functional-components/functional-components';
|
|
18
|
+
import { getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
16
19
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
17
|
-
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
18
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
19
|
-
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
20
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
21
20
|
/**
|
|
22
21
|
* @slot input - Required slot for input tag
|
|
23
22
|
* @slot label - Required slot for label tag
|
|
24
23
|
* @slot error - Optional slot for error message
|
|
24
|
+
* @slot help - Optional slot for help message
|
|
25
25
|
*/
|
|
26
26
|
export class GuxFormFieldDropdown {
|
|
27
27
|
constructor() {
|
|
28
28
|
this.computedLabelPosition = 'above';
|
|
29
29
|
this.hasError = false;
|
|
30
|
+
this.hasHelp = false;
|
|
30
31
|
}
|
|
31
32
|
watchValue(hasError) {
|
|
32
33
|
const dropdownSlot = this.root.querySelector('gux-dropdown') ||
|
|
@@ -36,12 +37,14 @@ export class GuxFormFieldDropdown {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
onMutation() {
|
|
39
|
-
this.hasError =
|
|
40
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
41
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
40
42
|
}
|
|
41
43
|
componentWillLoad() {
|
|
42
44
|
this.setInput();
|
|
43
45
|
this.setLabel();
|
|
44
|
-
this.hasError =
|
|
46
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
47
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
45
48
|
trackComponent(this.root, { variant: this.variant });
|
|
46
49
|
}
|
|
47
50
|
disconnectedCallback() {
|
|
@@ -53,7 +56,7 @@ export class GuxFormFieldDropdown {
|
|
|
53
56
|
'gux-input': true,
|
|
54
57
|
'gux-input-error': this.hasError,
|
|
55
58
|
'gux-disabled': this.disabled
|
|
56
|
-
} }, h("slot", null)), h(GuxFormFieldError, {
|
|
59
|
+
} }, h("slot", null)), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))));
|
|
57
60
|
}
|
|
58
61
|
get variant() {
|
|
59
62
|
const labelPositionVariant = this.labelPosition
|
|
@@ -126,7 +129,8 @@ export class GuxFormFieldDropdown {
|
|
|
126
129
|
"computedLabelPosition": {},
|
|
127
130
|
"disabled": {},
|
|
128
131
|
"required": {},
|
|
129
|
-
"hasError": {}
|
|
132
|
+
"hasError": {},
|
|
133
|
+
"hasHelp": {}
|
|
130
134
|
};
|
|
131
135
|
}
|
|
132
136
|
static get elementRef() { return "root"; }
|
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -10,23 +10,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
};
|
|
11
11
|
import { forceUpdate, h } from '@stencil/core';
|
|
12
12
|
import { buildI18nForComponent } from '../../../../../i18n';
|
|
13
|
-
import { calculateInputDisabledState } from '
|
|
14
|
-
import { onInputDisabledStateChange } from '
|
|
15
|
-
import { OnMutation } from '
|
|
16
|
-
import { onRequiredChange } from '
|
|
17
|
-
import { preventBrowserValidationStyling } from '
|
|
13
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
14
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
15
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
16
|
+
import { onRequiredChange } from '@utils/dom/on-attribute-change';
|
|
17
|
+
import { preventBrowserValidationStyling } from '@utils/dom/prevent-browser-validation-styling';
|
|
18
|
+
import setInputValue from '@utils/dom/set-input-value';
|
|
19
|
+
import simulateNativeEvent from '@utils/dom/simulate-native-event';
|
|
20
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
21
|
+
import { GuxFormFieldHelp, GuxFormFieldError, GuxFormFieldLabel, GuxFormFieldContainer } from '../../functional-components/functional-components';
|
|
22
|
+
import { clearInput, getComputedLabelPosition, hasContent, validateFormIds } from '../../gux-form-field.service';
|
|
18
23
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
19
|
-
import setInputValue from '../../../../../utils/dom/set-input-value';
|
|
20
|
-
import simulateNativeEvent from '../../../../../utils/dom/simulate-native-event';
|
|
21
|
-
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
22
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
23
|
-
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
24
|
-
import { clearInput, getComputedLabelPosition, hasContent, hasErrorSlot, validateFormIds } from '../../gux-form-field.service';
|
|
25
24
|
import componentResources from './i18n/en.json';
|
|
26
25
|
/**
|
|
27
26
|
* @slot input - Required slot for input tag
|
|
28
27
|
* @slot label - Required slot for label tag
|
|
29
28
|
* @slot error - Optional slot for error message
|
|
29
|
+
* @slot help - Optional slot for help message
|
|
30
30
|
* @part input-section - Style input container
|
|
31
31
|
*/
|
|
32
32
|
export class GuxFormFieldNumber {
|
|
@@ -34,21 +34,25 @@ export class GuxFormFieldNumber {
|
|
|
34
34
|
this.computedLabelPosition = 'above';
|
|
35
35
|
this.hasContent = false;
|
|
36
36
|
this.hasError = false;
|
|
37
|
+
this.hasHelp = false;
|
|
37
38
|
}
|
|
38
39
|
onMutation() {
|
|
39
|
-
this.hasError =
|
|
40
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
41
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
40
42
|
}
|
|
41
43
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
42
44
|
async guxForceUpdate() {
|
|
43
45
|
this.hasContent = hasContent(this.input);
|
|
44
|
-
this.hasError =
|
|
46
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
47
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
45
48
|
forceUpdate(this.root);
|
|
46
49
|
}
|
|
47
50
|
async componentWillLoad() {
|
|
48
51
|
this.getI18nValue = await buildI18nForComponent(this.root, componentResources);
|
|
49
52
|
this.setInput();
|
|
50
53
|
this.setLabel();
|
|
51
|
-
this.hasError =
|
|
54
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
55
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
52
56
|
trackComponent(this.root, { variant: this.variant });
|
|
53
57
|
}
|
|
54
58
|
disconnectedCallback() {
|
|
@@ -64,7 +68,7 @@ export class GuxFormFieldNumber {
|
|
|
64
68
|
'gux-input-container': true,
|
|
65
69
|
'gux-disabled': this.disabled,
|
|
66
70
|
'gux-clear': showClearButton
|
|
67
|
-
} }, h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), h(GuxFormFieldError, {
|
|
71
|
+
} }, h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))));
|
|
68
72
|
}
|
|
69
73
|
get variant() {
|
|
70
74
|
const labelPositionVariant = this.labelPosition
|
|
@@ -180,7 +184,8 @@ export class GuxFormFieldNumber {
|
|
|
180
184
|
"disabled": {},
|
|
181
185
|
"required": {},
|
|
182
186
|
"hasContent": {},
|
|
183
|
-
"hasError": {}
|
|
187
|
+
"hasError": {},
|
|
188
|
+
"hasHelp": {}
|
|
184
189
|
};
|
|
185
190
|
}
|
|
186
191
|
static get methods() {
|
|
@@ -27,6 +27,27 @@
|
|
|
27
27
|
align-self: auto;
|
|
28
28
|
order: 0;
|
|
29
29
|
}
|
|
30
|
+
.gux-form-field-help {
|
|
31
|
+
display: none;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
flex-wrap: nowrap;
|
|
34
|
+
align-content: stretch;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
margin: 4px 0;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
font-weight: 400;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
color: #6b7585;
|
|
42
|
+
}
|
|
43
|
+
.gux-form-field-help.gux-show {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
.gux-form-field-help .gux-message {
|
|
47
|
+
flex: 0 1 auto;
|
|
48
|
+
align-self: none;
|
|
49
|
+
order: 0;
|
|
50
|
+
}
|
|
30
51
|
:host {
|
|
31
52
|
display: block;
|
|
32
53
|
color: #2e394c;
|
|
@@ -9,28 +9,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h, Host } from '@stencil/core';
|
|
12
|
-
import { calculateInputDisabledState } from '
|
|
13
|
-
import { onInputDisabledStateChange } from '
|
|
14
|
-
import { OnMutation } from '
|
|
15
|
-
import { preventBrowserValidationStyling } from '
|
|
12
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
13
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
14
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
15
|
+
import { preventBrowserValidationStyling } from '@utils/dom/prevent-browser-validation-styling';
|
|
16
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
17
|
+
import { GuxFormFieldError, GuxFormFieldHelp } from '../../functional-components/functional-components';
|
|
18
|
+
import { validateFormIds } from '../../gux-form-field.service';
|
|
16
19
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
17
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
18
|
-
import { hasErrorSlot, validateFormIds } from '../../gux-form-field.service';
|
|
19
20
|
/**
|
|
20
21
|
* @slot input - Required slot for input tag
|
|
21
22
|
* @slot label - Required slot for label tag
|
|
22
23
|
* @slot error - Optional slot for error message
|
|
24
|
+
* @slot help - Optional slot for help message
|
|
23
25
|
*/
|
|
24
26
|
export class GuxFormFieldRadio {
|
|
25
27
|
constructor() {
|
|
26
28
|
this.hasError = false;
|
|
29
|
+
this.hasHelp = false;
|
|
27
30
|
}
|
|
28
31
|
onMutation() {
|
|
29
|
-
this.hasError =
|
|
32
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
33
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
30
34
|
}
|
|
31
35
|
componentWillLoad() {
|
|
32
36
|
this.setInput();
|
|
33
|
-
this.hasError =
|
|
37
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
38
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
34
39
|
trackComponent(this.root);
|
|
35
40
|
}
|
|
36
41
|
disconnectedCallback() {
|
|
@@ -40,7 +45,7 @@ export class GuxFormFieldRadio {
|
|
|
40
45
|
return (h(Host, { class: {
|
|
41
46
|
'gux-input-error': this.hasError,
|
|
42
47
|
'gux-disabled': this.disabled
|
|
43
|
-
} }, h("div", { class: "gux-form-field-container" }, h("div", { class: "gux-input-label" }, h("div", { class: "gux-input" }, h("slot", { name: "input", onSlotchange: () => this.setInput() })), h("div", { class: "gux-label" }, h("slot", { name: "label" }), h(GuxFormFieldError, {
|
|
48
|
+
} }, h("div", { class: "gux-form-field-container" }, h("div", { class: "gux-input-label" }, h("div", { class: "gux-input" }, h("slot", { name: "input", onSlotchange: () => this.setInput() })), h("div", { class: "gux-label" }, h("slot", { name: "label" }), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))))));
|
|
44
49
|
}
|
|
45
50
|
setInput() {
|
|
46
51
|
this.input = this.root.querySelector('input[type="radio"][slot="input"]');
|
|
@@ -66,7 +71,8 @@ export class GuxFormFieldRadio {
|
|
|
66
71
|
static get states() {
|
|
67
72
|
return {
|
|
68
73
|
"disabled": {},
|
|
69
|
-
"hasError": {}
|
|
74
|
+
"hasError": {},
|
|
75
|
+
"hasHelp": {}
|
|
70
76
|
};
|
|
71
77
|
}
|
|
72
78
|
static get elementRef() { return "root"; }
|
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -9,25 +9,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h, Host } from '@stencil/core';
|
|
12
|
-
import { calculateInputDisabledState } from '
|
|
13
|
-
import { onInputDisabledStateChange } from '
|
|
14
|
-
import { OnMutation } from '
|
|
15
|
-
import { onRequiredChange } from '
|
|
16
|
-
import { preventBrowserValidationStyling } from '
|
|
12
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
13
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
14
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
15
|
+
import { onRequiredChange } from '@utils/dom/on-attribute-change';
|
|
16
|
+
import { preventBrowserValidationStyling } from '@utils/dom/prevent-browser-validation-styling';
|
|
17
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
18
|
+
import { GuxFormFieldHelp, GuxFormFieldError, GuxFormFieldLabel, GuxFormFieldContainer } from '../../functional-components/functional-components';
|
|
19
|
+
import { getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
20
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
18
|
-
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
19
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
20
|
-
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
21
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
22
21
|
/**
|
|
23
22
|
* @slot input - Required slot for input tag
|
|
24
23
|
* @slot label - Required slot for label tag
|
|
25
24
|
* @slot error - Optional slot for error message
|
|
25
|
+
* @slot help - Optional slot for help message
|
|
26
26
|
*/
|
|
27
27
|
export class GuxFormField {
|
|
28
28
|
constructor() {
|
|
29
29
|
this.computedLabelPosition = 'above';
|
|
30
30
|
this.hasError = false;
|
|
31
|
+
this.hasHelp = false;
|
|
31
32
|
}
|
|
32
33
|
onInput(e) {
|
|
33
34
|
const input = e.target;
|
|
@@ -42,12 +43,14 @@ export class GuxFormField {
|
|
|
42
43
|
this.active = false;
|
|
43
44
|
}
|
|
44
45
|
onMutation() {
|
|
45
|
-
this.hasError =
|
|
46
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
47
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
46
48
|
}
|
|
47
49
|
componentWillLoad() {
|
|
48
50
|
this.setInput();
|
|
49
51
|
this.setLabel();
|
|
50
|
-
this.hasError =
|
|
52
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
53
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
51
54
|
trackComponent(this.root, { variant: this.variant });
|
|
52
55
|
}
|
|
53
56
|
componentDidLoad() {
|
|
@@ -61,7 +64,7 @@ export class GuxFormField {
|
|
|
61
64
|
render() {
|
|
62
65
|
return (h(Host, { class: {
|
|
63
66
|
'gux-active': this.active
|
|
64
|
-
} }, h(GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, h("slot", { name: "label", onSlotchange: () => this.setLabel() })), h("div", { class: "gux-input-and-error-container" }, this.renderRangeInput(), h(GuxFormFieldError, {
|
|
67
|
+
} }, h(GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, h("slot", { name: "label", onSlotchange: () => this.setLabel() })), h("div", { class: "gux-input-and-error-container" }, this.renderRangeInput(), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" }))))));
|
|
65
68
|
}
|
|
66
69
|
get variant() {
|
|
67
70
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -202,6 +205,7 @@ export class GuxFormField {
|
|
|
202
205
|
"disabled": {},
|
|
203
206
|
"required": {},
|
|
204
207
|
"hasError": {},
|
|
208
|
+
"hasHelp": {},
|
|
205
209
|
"value": {},
|
|
206
210
|
"active": {},
|
|
207
211
|
"valueWatcherId": {}
|
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -9,20 +9,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { calculateInputDisabledState } from '
|
|
13
|
-
import { onInputDisabledStateChange } from '
|
|
14
|
-
import { OnMutation } from '
|
|
15
|
-
import { onRequiredChange } from '
|
|
16
|
-
import { preventBrowserValidationStyling } from '
|
|
12
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
13
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
14
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
15
|
+
import { onRequiredChange } from '@utils/dom/on-attribute-change';
|
|
16
|
+
import { preventBrowserValidationStyling } from '@utils/dom/prevent-browser-validation-styling';
|
|
17
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
18
|
+
import { GuxFormFieldHelp, GuxFormFieldError, GuxFormFieldLabel, GuxFormFieldContainer } from '../../functional-components/functional-components';
|
|
19
|
+
import { clearInput, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
20
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
18
|
-
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
19
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
20
|
-
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
21
|
-
import { clearInput, hasErrorSlot, hasContent, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
22
21
|
/**
|
|
23
22
|
* @slot input - Required slot for input tag
|
|
24
23
|
* @slot label - Required slot for label tag
|
|
25
24
|
* @slot error - Optional slot for error message
|
|
25
|
+
* @slot help - Optional slot for help message
|
|
26
26
|
*/
|
|
27
27
|
export class GuxFormFieldSearch {
|
|
28
28
|
constructor() {
|
|
@@ -30,14 +30,17 @@ export class GuxFormFieldSearch {
|
|
|
30
30
|
this.clearable = true;
|
|
31
31
|
this.hasContent = false;
|
|
32
32
|
this.hasError = false;
|
|
33
|
+
this.hasHelp = false;
|
|
33
34
|
}
|
|
34
35
|
onMutation() {
|
|
35
|
-
this.hasError =
|
|
36
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
37
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
36
38
|
}
|
|
37
39
|
componentWillLoad() {
|
|
38
40
|
this.setInput();
|
|
39
41
|
this.setLabel();
|
|
40
|
-
this.hasError =
|
|
42
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
43
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
41
44
|
trackComponent(this.root, { variant: this.variant });
|
|
42
45
|
}
|
|
43
46
|
disconnectedCallback() {
|
|
@@ -51,7 +54,7 @@ export class GuxFormFieldSearch {
|
|
|
51
54
|
} }, h("div", { class: {
|
|
52
55
|
'gux-input-container': true,
|
|
53
56
|
'gux-disabled': this.disabled
|
|
54
|
-
} }, h("gux-icon", { "icon-name": "search", decorative: true }), h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) })))), h(GuxFormFieldError, {
|
|
57
|
+
} }, h("gux-icon", { "icon-name": "search", decorative: true }), h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) })))), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))));
|
|
55
58
|
}
|
|
56
59
|
get variant() {
|
|
57
60
|
const labelPositionVariant = this.labelPosition
|
|
@@ -126,7 +129,8 @@ export class GuxFormFieldSearch {
|
|
|
126
129
|
"disabled": {},
|
|
127
130
|
"required": {},
|
|
128
131
|
"hasContent": {},
|
|
129
|
-
"hasError": {}
|
|
132
|
+
"hasError": {},
|
|
133
|
+
"hasHelp": {}
|
|
130
134
|
};
|
|
131
135
|
}
|
|
132
136
|
static get elementRef() { return "root"; }
|
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -9,33 +9,36 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { calculateInputDisabledState } from '
|
|
13
|
-
import { onInputDisabledStateChange } from '
|
|
14
|
-
import { OnMutation } from '
|
|
15
|
-
import { onRequiredChange } from '
|
|
16
|
-
import { preventBrowserValidationStyling } from '
|
|
12
|
+
import { calculateInputDisabledState } from '@utils/dom/calculate-input-disabled-state';
|
|
13
|
+
import { onInputDisabledStateChange } from '@utils/dom/on-input-disabled-state-change';
|
|
14
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
15
|
+
import { onRequiredChange } from '@utils/dom/on-attribute-change';
|
|
16
|
+
import { preventBrowserValidationStyling } from '@utils/dom/prevent-browser-validation-styling';
|
|
17
|
+
import { hasSlot } from '@utils/dom/has-slot';
|
|
18
|
+
import { GuxFormFieldHelp, GuxFormFieldError, GuxFormFieldLabel, GuxFormFieldContainer } from '../../functional-components/functional-components';
|
|
19
|
+
import { getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
17
20
|
import { trackComponent } from '../../../../../usage-tracking';
|
|
18
|
-
import { GuxFormFieldContainer } from '../../functional-components/gux-form-field-container/gux-form-field-container';
|
|
19
|
-
import { GuxFormFieldError } from '../../functional-components/gux-form-field-error/gux-form-field-error';
|
|
20
|
-
import { GuxFormFieldLabel } from '../../functional-components/gux-form-field-label/gux-form-field-label';
|
|
21
|
-
import { hasErrorSlot, getComputedLabelPosition, validateFormIds } from '../../gux-form-field.service';
|
|
22
21
|
/**
|
|
23
22
|
* @slot input - Required slot for input tag
|
|
24
23
|
* @slot label - Required slot for label tag
|
|
25
24
|
* @slot error - Optional slot for error message
|
|
25
|
+
* @slot help - Optional slot for help message
|
|
26
26
|
*/
|
|
27
27
|
export class GuxFormFieldSelect {
|
|
28
28
|
constructor() {
|
|
29
29
|
this.computedLabelPosition = 'above';
|
|
30
30
|
this.hasError = false;
|
|
31
|
+
this.hasHelp = false;
|
|
31
32
|
}
|
|
32
33
|
onMutation() {
|
|
33
|
-
this.hasError =
|
|
34
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
35
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
34
36
|
}
|
|
35
37
|
componentWillLoad() {
|
|
36
38
|
this.setInput();
|
|
37
39
|
this.setLabel();
|
|
38
|
-
this.hasError =
|
|
40
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
41
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
39
42
|
trackComponent(this.root, { variant: this.variant });
|
|
40
43
|
}
|
|
41
44
|
disconnectedCallback() {
|
|
@@ -49,7 +52,7 @@ export class GuxFormFieldSelect {
|
|
|
49
52
|
} }, h("div", { class: {
|
|
50
53
|
'gux-input-container': true,
|
|
51
54
|
'gux-disabled': this.disabled
|
|
52
|
-
} }, h("slot", { name: "input" }), h("gux-icon", { "icon-name": "ic-dropdown-arrow", decorative: true }))), h(GuxFormFieldError, {
|
|
55
|
+
} }, h("slot", { name: "input" }), h("gux-icon", { "icon-name": "ic-dropdown-arrow", decorative: true }))), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))));
|
|
53
56
|
}
|
|
54
57
|
get variant() {
|
|
55
58
|
const labelPositionVariant = this.labelPosition
|
|
@@ -118,7 +121,8 @@ export class GuxFormFieldSelect {
|
|
|
118
121
|
"computedLabelPosition": {},
|
|
119
122
|
"disabled": {},
|
|
120
123
|
"required": {},
|
|
121
|
-
"hasError": {}
|
|
124
|
+
"hasError": {},
|
|
125
|
+
"hasHelp": {}
|
|
122
126
|
};
|
|
123
127
|
}
|
|
124
128
|
static get elementRef() { return "root"; }
|
|
@@ -57,6 +57,27 @@
|
|
|
57
57
|
height: 1px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
}
|
|
60
|
+
.gux-form-field-help {
|
|
61
|
+
display: none;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
align-content: stretch;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
margin: 4px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
color: #6b7585;
|
|
72
|
+
}
|
|
73
|
+
.gux-form-field-help.gux-show {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
.gux-form-field-help .gux-message {
|
|
77
|
+
flex: 0 1 auto;
|
|
78
|
+
align-self: none;
|
|
79
|
+
order: 0;
|
|
80
|
+
}
|
|
60
81
|
:host {
|
|
61
82
|
display: block;
|
|
62
83
|
color: #2e394c;
|
|
@@ -85,7 +106,8 @@
|
|
|
85
106
|
color: #596373;
|
|
86
107
|
opacity: 1;
|
|
87
108
|
}
|
|
88
|
-
|
|
109
|
+
slot[name='prefix'],
|
|
110
|
+
slot[name='suffix'] {
|
|
89
111
|
color: #2e394c;
|
|
90
112
|
white-space: nowrap;
|
|
91
113
|
}
|