genesys-spark-components 3.32.2 → 3.33.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 +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 +2 -2
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +5 -6
- 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 +2 -2
- package/dist/cjs/{gux-listbox.service-d394da79.js → gux-listbox.service-225ed019.js} +9 -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 +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/cjs/has-slot-2e73d6e7.js +7 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-tracking-220a375c.js → usage-tracking-c0879d4b.js} +1 -1
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +2 -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-listbox/gux-listbox.js +2 -4
- package/dist/collection/components/stable/gux-listbox/gux-listbox.service.js +8 -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 +2 -2
- package/dist/esm/gux-dropdown_3.entry.js +5 -6
- 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 +2 -2
- package/dist/esm/{gux-listbox.service-3541a2f7.js → gux-listbox.service-f50c7710.js} +9 -2
- 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 +1 -1
- 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-a62c779c.js → usage-tracking-2c66c99e.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-fcc79355.entry.js → p-0250ec38.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5b94a5d.entry.js → p-06b66c03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-23e61ea4.entry.js → p-073ec56a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-08bc2e6b.js +1 -0
- package/dist/genesys-webcomponents/p-0cd75697.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5d8e0bc4.entry.js → p-11f0edea.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e8c24672.entry.js → p-147bc1a3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b5d9da8.entry.js → p-156b6426.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ca6e835.entry.js → p-1abfd383.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1f6b2594.js +1 -0
- package/dist/genesys-webcomponents/{p-ea0f0669.entry.js → p-21ba9a7f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1da8542.entry.js → p-23ffa72d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4922a0a2.entry.js → p-2662a67f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98487df7.entry.js → p-273bc1c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-27dfdfbe.entry.js → p-317446e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dad0611e.entry.js → p-329d378d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e9cc6308.entry.js → p-3762f90f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbd1cc8e.entry.js → p-380e061c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5c113e0.entry.js → p-3b4eac0f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3f1fd04a.entry.js → p-3b7a1197.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e4f821ed.entry.js → p-46e9f1e5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1ab484a.entry.js → p-48d4a2d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ac8d39e.entry.js → p-49e31361.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0999d0b1.entry.js → p-51e573c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-53e27b9d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6ad7b02c.entry.js → p-589aa3f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d69aaf2.entry.js → p-5aef7971.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-20785dd7.entry.js → p-5d44df27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f7b848f3.entry.js → p-5d6f997d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-62bfaa30.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c4ab4506.entry.js → p-6b65e824.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ad222c6.entry.js → p-6decf853.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-950a17f8.entry.js → p-718b3059.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-737b4bc7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-10aa587b.entry.js → p-74ae8934.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e3e67e9c.entry.js → p-75818f24.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6183ee8c.entry.js → p-75b48160.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d9da4d6b.entry.js → p-792f377c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f28cda39.entry.js → p-79bbdf77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-238634c2.entry.js → p-7c7f4d09.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a57d841d.entry.js → p-7cde4e52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d4ccff4.entry.js → p-85a4b799.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-48a1dcef.entry.js → p-86fff4bd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-02d0ecb6.entry.js → p-897fd715.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8a19fe97.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4f560d14.entry.js → p-8b1849db.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8b3fb85e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-8e01a80b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-905cd42a.entry.js +1 -0
- package/dist/genesys-webcomponents/p-9728b179.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-25ba04f4.js → p-98612f86.js} +1 -1
- package/dist/genesys-webcomponents/{p-b25189bc.entry.js → p-99b16838.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9cb4524e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fa6af9c2.entry.js → p-9edad064.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd78d9e7.entry.js → p-a07ee1c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a1f5922b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7330728d.entry.js → p-a8dfe31f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c389647b.entry.js → p-ab0bb650.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ce94734.entry.js → p-ad7388a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-adf414b8.js +1 -0
- package/dist/genesys-webcomponents/{p-f690699b.entry.js → p-ae06a9ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9bb13ef6.entry.js → p-b0618ec3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26c13127.entry.js → p-b1d58def.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e9d4add9.entry.js → p-b37f98b0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4789953.entry.js → p-b4e5e3e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77fbfd67.entry.js → p-b5f53c3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b6edc0a4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9241b11f.entry.js → p-b6f31665.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34e4e74f.entry.js → p-b788fd37.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2172c2ca.entry.js → p-b871ee68.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8854becd.entry.js → p-b8b8e461.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3f80b4de.entry.js → p-be169210.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c168bf7e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0762b9a3.entry.js → p-c2bcd13d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a64c9daf.entry.js → p-c7f7920e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c9576487.js +1 -0
- package/dist/genesys-webcomponents/{p-6758d110.entry.js → p-cd21c84b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9eaf7db9.entry.js → p-cf7ea922.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1888dc3c.entry.js → p-d0e5d051.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-23fecb8b.entry.js → p-d41c9537.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b62e5685.entry.js → p-d745cd1d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c40cf85f.entry.js → p-de28eed0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22af6157.entry.js → p-e19395aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce6913d7.entry.js → p-e1b41b8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fdcc1a0d.entry.js → p-e2e26bb3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e6cc6ee9.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-22d9f858.entry.js → p-ebd1565a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-979ff818.entry.js → p-ece30459.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0d58452e.entry.js → p-f73e5bc3.entry.js} +1 -1
- 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/components/stable/gux-listbox/gux-listbox.service.d.ts +1 -0
- 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-0c782f77.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2db06adb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3770c1e9.js +0 -1
- package/dist/genesys-webcomponents/p-4c7ba3a5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4eafe5bc.entry.js +0 -1
- package/dist/genesys-webcomponents/p-591982e8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6bcc3c7a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-914c50b9.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a5d44381.entry.js +0 -1
- package/dist/genesys-webcomponents/p-aa091c65.entry.js +0 -1
- package/dist/genesys-webcomponents/p-aea3274c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b8165ab8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c079a476.js +0 -1
- package/dist/genesys-webcomponents/p-ca662e2f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d88c1ea8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f5a85376.entry.js +0 -1
|
@@ -9,32 +9,35 @@ 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 { getComputedLabelPosition, hasErrorSlot, 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 GuxFormFieldColor {
|
|
28
28
|
constructor() {
|
|
29
29
|
this.hasError = false;
|
|
30
|
+
this.hasHelp = false;
|
|
30
31
|
}
|
|
31
32
|
onMutation() {
|
|
32
|
-
this.hasError =
|
|
33
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
34
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
33
35
|
}
|
|
34
36
|
componentWillLoad() {
|
|
35
37
|
this.setInput();
|
|
36
38
|
this.setLabel();
|
|
37
|
-
this.hasError =
|
|
39
|
+
this.hasError = hasSlot(this.root, 'error');
|
|
40
|
+
this.hasHelp = hasSlot(this.root, 'help');
|
|
38
41
|
trackComponent(this.root, { variant: this.variant });
|
|
39
42
|
}
|
|
40
43
|
disconnectedCallback() {
|
|
@@ -48,7 +51,7 @@ export class GuxFormFieldColor {
|
|
|
48
51
|
} }, h("div", { class: {
|
|
49
52
|
'gux-input-container': true,
|
|
50
53
|
'gux-disabled': this.disabled
|
|
51
|
-
} }, h("slot", { name: "input", onSlotchange: () => this.setInput() }))), h(GuxFormFieldError, {
|
|
54
|
+
} }, h("slot", { name: "input", onSlotchange: () => this.setInput() }))), h(GuxFormFieldError, { show: this.hasError }, h("slot", { name: "error" })), h(GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, h("slot", { name: "help" })))));
|
|
52
55
|
}
|
|
53
56
|
get variant() {
|
|
54
57
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -113,7 +116,8 @@ export class GuxFormFieldColor {
|
|
|
113
116
|
"computedLabelPosition": {},
|
|
114
117
|
"disabled": {},
|
|
115
118
|
"required": {},
|
|
116
|
-
"hasError": {}
|
|
119
|
+
"hasError": {},
|
|
120
|
+
"hasHelp": {}
|
|
117
121
|
};
|
|
118
122
|
}
|
|
119
123
|
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,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;
|