genesys-spark-components 3.32.3 → 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 +7 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-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 +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-aa9da6aa.js → usage-tracking-c0879d4b.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/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 +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-208cef9e.js → usage-tracking-2c66c99e.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-34873c24.entry.js → p-0250ec38.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b4f4a6e.entry.js → p-06b66c03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3bbc23b.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-338324cc.entry.js → p-11f0edea.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b4f80688.entry.js → p-147bc1a3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c733037.entry.js → p-156b6426.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ae53925.entry.js → p-1abfd383.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1f6b2594.js +1 -0
- package/dist/genesys-webcomponents/{p-f57a152d.entry.js → p-21ba9a7f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4afebf77.entry.js → p-23ffa72d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a51ff810.entry.js → p-2662a67f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1bd6dbe4.entry.js → p-273bc1c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-695049b5.entry.js → p-317446e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47ff4961.entry.js → p-329d378d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78a09deb.entry.js → p-3762f90f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d402352c.entry.js → p-380e061c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4645a835.entry.js → p-3b4eac0f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f8471417.entry.js → p-3b7a1197.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dca6993e.entry.js → p-46e9f1e5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6660bb1c.entry.js → p-48d4a2d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5912c734.entry.js → p-49e31361.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-afe37461.entry.js → p-51e573c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-53e27b9d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a9d5a8c4.entry.js → p-589aa3f1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1563c1b6.entry.js → p-5aef7971.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0afb6281.entry.js → p-5d44df27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-27a4972a.entry.js → p-5d6f997d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-62bfaa30.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c15ad970.entry.js → p-6b65e824.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26c01f0c.entry.js → p-6decf853.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fb2cd78.entry.js → p-718b3059.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-737b4bc7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9dd70ee6.entry.js → p-74ae8934.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ae596c2f.entry.js → p-75818f24.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3cca4425.entry.js → p-75b48160.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c13791d.entry.js → p-792f377c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7bf15d70.entry.js → p-79bbdf77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4e6d6d9.entry.js → p-7c7f4d09.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-56a53028.entry.js → p-7cde4e52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80046670.entry.js → p-85a4b799.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-279e3d0c.entry.js → p-86fff4bd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ebe7f33.entry.js → p-897fd715.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8a19fe97.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fb4b4db3.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-97065fec.entry.js → p-9728b179.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b48c542d.js → p-98612f86.js} +1 -1
- package/dist/genesys-webcomponents/{p-750e70ef.entry.js → p-99b16838.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3d32494.entry.js → p-9cb4524e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-532d9004.entry.js → p-9edad064.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e174f48.entry.js → p-a07ee1c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a1f5922b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b2282e96.entry.js → p-a8dfe31f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b57a1503.entry.js → p-ab0bb650.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-411ce526.entry.js → p-ad7388a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-90b8aa76.entry.js → p-ae06a9ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fbe5ce4b.entry.js → p-b0618ec3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6753b85e.entry.js → p-b1d58def.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53b4cfe2.entry.js → p-b37f98b0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dec1b34f.entry.js → p-b4e5e3e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eef4a31e.entry.js → p-b5f53c3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b6edc0a4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f8c11029.entry.js → p-b6f31665.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-faff15ba.entry.js → p-b788fd37.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e5de66fd.entry.js → p-b871ee68.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b8b8e461.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-738fada9.entry.js → p-be169210.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c168bf7e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f7c7986b.entry.js → p-c2bcd13d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5748b8ba.entry.js → p-c7f7920e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c9576487.js +1 -0
- package/dist/genesys-webcomponents/{p-6d8ed01d.entry.js → p-cd21c84b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5eafce9.entry.js → p-cf7ea922.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1493f317.entry.js → p-d0e5d051.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5872b921.entry.js → p-d41c9537.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8cbf669c.entry.js → p-d745cd1d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-236760ad.entry.js → p-de28eed0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1ee8a37.entry.js → p-e19395aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbb743e4.entry.js → p-e1b41b8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d176c52.entry.js → p-e2e26bb3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e6cc6ee9.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-cb4b6d73.entry.js → p-ebd1565a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f6bd4dd4.entry.js → p-ece30459.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cbcd5fde.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/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-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-4d7be638.entry.js +0 -1
- package/dist/genesys-webcomponents/p-51252166.entry.js +0 -1
- package/dist/genesys-webcomponents/p-57587e93.entry.js +0 -1
- package/dist/genesys-webcomponents/p-669585de.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-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
|
@@ -6,14 +6,15 @@ const index = require('./index-a4138a99.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const
|
|
10
|
-
const guxFormField_service = require('./gux-form-field.service-
|
|
9
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
11
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
11
12
|
require('./random-html-id-b86b61c0.js');
|
|
12
13
|
require('./log-error-a57681bf.js');
|
|
13
14
|
require('./set-input-value-610d7da3.js');
|
|
14
15
|
require('./simulate-native-event-fe3e62da.js');
|
|
15
16
|
|
|
16
|
-
const guxFormFieldCheckboxCss = ".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}:host{display:block;color:#2e394c}:host(.gux-input-error) ::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%23ea0b0b'/%3E%3C/svg%3E\")}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='checkbox']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='checkbox'])::before{grid-area:1;content:'';border-radius:15%}::slotted(input[type='checkbox']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:not(:checked):not(:disabled):not(:indeterminate):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 0H12.3077C13.287 0 14.2261 0.38901 14.9185 1.08145C15.611 1.77389 16 2.71305 16 3.69231V12.3077C16 13.287 15.611 14.2261 14.9185 14.9185C14.2261 15.611 13.287 16 12.3077 16H3.69231C2.71305 16 1.77389 15.611 1.08145 14.9185C0.38901 14.2261 0 13.287 0 12.3077V3.69231C0 2.71305 0.38901 1.77389 1.08145 1.08145C1.77389 0.38901 2.71305 0 3.69231 0ZM5.62483 11.5936C5.79089 11.7597 6.00122 11.8372 6.21155 11.8372C6.43295 11.8372 6.64329 11.7486 6.79827 11.5936L13.2854 5.10652C13.6064 4.78549 13.6064 4.25412 13.2854 3.93308C12.9643 3.61205 12.433 3.61205 12.1119 3.93308L6.21155 9.83348L3.87575 7.4866C3.55472 7.16557 3.02335 7.16557 2.70231 7.4866C2.38128 7.80764 2.38128 8.339 2.70231 8.66004L5.62483 11.5936Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:indeterminate)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 1.84615H12.3077C13.3273 1.84615 14.1538 2.67271 14.1538 3.69231V12.3077C14.1538 13.3273 13.3273 14.1538 12.3077 14.1538H3.69231C2.67271 14.1538 1.84615 13.3273 1.84615 12.3077V3.69231C1.84615 2.67271 2.67271 1.84615 3.69231 1.84615ZM0 3.69231C0 1.6531 1.6531 0 3.69231 0H12.3077C14.3469 0 16 1.6531 16 3.69231V12.3077C16 14.3469 14.3469 16 12.3077 16H3.69231C1.6531 16 0 14.3469 0 12.3077V3.69231ZM4.00028 9.2308H12.0003C12.5049 9.2308 12.9234 8.81234 12.9234 8.30773C12.9234 7.80311 12.5049 7.38465 12.0003 7.38465H4.00028C3.49567 7.38465 3.07721 7.80311 3.07721 8.30773C3.07721 8.81234 3.49567 9.2308 4.00028 9.2308Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";
|
|
17
|
+
const guxFormFieldCheckboxCss = ".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}:host(.gux-input-error) ::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%23ea0b0b'/%3E%3C/svg%3E\")}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='checkbox']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='checkbox'])::before{grid-area:1;content:'';border-radius:15%}::slotted(input[type='checkbox']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:not(:checked):not(:disabled):not(:indeterminate):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 0H12.3077C13.287 0 14.2261 0.38901 14.9185 1.08145C15.611 1.77389 16 2.71305 16 3.69231V12.3077C16 13.287 15.611 14.2261 14.9185 14.9185C14.2261 15.611 13.287 16 12.3077 16H3.69231C2.71305 16 1.77389 15.611 1.08145 14.9185C0.38901 14.2261 0 13.287 0 12.3077V3.69231C0 2.71305 0.38901 1.77389 1.08145 1.08145C1.77389 0.38901 2.71305 0 3.69231 0ZM5.62483 11.5936C5.79089 11.7597 6.00122 11.8372 6.21155 11.8372C6.43295 11.8372 6.64329 11.7486 6.79827 11.5936L13.2854 5.10652C13.6064 4.78549 13.6064 4.25412 13.2854 3.93308C12.9643 3.61205 12.433 3.61205 12.1119 3.93308L6.21155 9.83348L3.87575 7.4866C3.55472 7.16557 3.02335 7.16557 2.70231 7.4866C2.38128 7.80764 2.38128 8.339 2.70231 8.66004L5.62483 11.5936Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:indeterminate)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 1.84615H12.3077C13.3273 1.84615 14.1538 2.67271 14.1538 3.69231V12.3077C14.1538 13.3273 13.3273 14.1538 12.3077 14.1538H3.69231C2.67271 14.1538 1.84615 13.3273 1.84615 12.3077V3.69231C1.84615 2.67271 2.67271 1.84615 3.69231 1.84615ZM0 3.69231C0 1.6531 1.6531 0 3.69231 0H12.3077C14.3469 0 16 1.6531 16 3.69231V12.3077C16 14.3469 14.3469 16 12.3077 16H3.69231C1.6531 16 0 14.3469 0 12.3077V3.69231ZM4.00028 9.2308H12.0003C12.5049 9.2308 12.9234 8.81234 12.9234 8.30773C12.9234 7.80311 12.5049 7.38465 12.0003 7.38465H4.00028C3.49567 7.38465 3.07721 7.80311 3.07721 8.30773C3.07721 8.81234 3.49567 9.2308 4.00028 9.2308Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";
|
|
17
18
|
|
|
18
19
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
20
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -29,13 +30,16 @@ const GuxFormFieldCheckbox = class {
|
|
|
29
30
|
constructor(hostRef) {
|
|
30
31
|
index.registerInstance(this, hostRef);
|
|
31
32
|
this.hasError = false;
|
|
33
|
+
this.hasHelp = false;
|
|
32
34
|
}
|
|
33
35
|
onMutation() {
|
|
34
|
-
this.hasError =
|
|
36
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
37
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
35
38
|
}
|
|
36
39
|
componentWillLoad() {
|
|
37
40
|
this.setInput();
|
|
38
|
-
this.hasError =
|
|
41
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
42
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
39
43
|
usageTracking.trackComponent(this.root);
|
|
40
44
|
}
|
|
41
45
|
disconnectedCallback() {
|
|
@@ -45,7 +49,7 @@ const GuxFormFieldCheckbox = class {
|
|
|
45
49
|
return (index.h(index.Host, { class: {
|
|
46
50
|
'gux-input-error': this.hasError,
|
|
47
51
|
'gux-disabled': this.disabled
|
|
48
|
-
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input-label" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() })), index.h("div", { class: "gux-label" }, index.h("slot", { name: "label" }), index.h(guxFormField_service.GuxFormFieldError, {
|
|
52
|
+
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input-label" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() })), index.h("div", { class: "gux-label" }, index.h("slot", { name: "label" }), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))))));
|
|
49
53
|
}
|
|
50
54
|
setInput() {
|
|
51
55
|
this.input = this.root.querySelector('input[type="checkbox"][slot="input"]');
|
|
@@ -7,15 +7,16 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
12
|
+
const guxFormFieldContainer = require('./gux-form-field-container-284d1d01.js');
|
|
13
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
13
14
|
require('./random-html-id-b86b61c0.js');
|
|
14
15
|
require('./log-error-a57681bf.js');
|
|
15
16
|
require('./set-input-value-610d7da3.js');
|
|
16
17
|
require('./simulate-native-event-fe3e62da.js');
|
|
17
18
|
|
|
18
|
-
const guxFormFieldColorCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input .gux-input-container.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
19
|
+
const guxFormFieldColorCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input .gux-input-container.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
19
20
|
|
|
20
21
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
22
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -31,14 +32,17 @@ const GuxFormFieldColor = class {
|
|
|
31
32
|
constructor(hostRef) {
|
|
32
33
|
index.registerInstance(this, hostRef);
|
|
33
34
|
this.hasError = false;
|
|
35
|
+
this.hasHelp = false;
|
|
34
36
|
}
|
|
35
37
|
onMutation() {
|
|
36
|
-
this.hasError =
|
|
38
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
39
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
37
40
|
}
|
|
38
41
|
componentWillLoad() {
|
|
39
42
|
this.setInput();
|
|
40
43
|
this.setLabel();
|
|
41
|
-
this.hasError =
|
|
44
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
45
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
42
46
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
43
47
|
}
|
|
44
48
|
disconnectedCallback() {
|
|
@@ -46,13 +50,13 @@ const GuxFormFieldColor = class {
|
|
|
46
50
|
this.requiredObserver.disconnect();
|
|
47
51
|
}
|
|
48
52
|
render() {
|
|
49
|
-
return (index.h(
|
|
53
|
+
return (index.h(guxFormFieldContainer.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldContainer.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, index.h("div", { class: {
|
|
50
54
|
'gux-input': true,
|
|
51
55
|
'gux-input-error': this.hasError
|
|
52
56
|
} }, index.h("div", { class: {
|
|
53
57
|
'gux-input-container': true,
|
|
54
58
|
'gux-disabled': this.disabled
|
|
55
|
-
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }))), index.h(guxFormField_service.GuxFormFieldError, {
|
|
59
|
+
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }))), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))));
|
|
56
60
|
}
|
|
57
61
|
get variant() {
|
|
58
62
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a4138a99.js');
|
|
4
4
|
|
|
5
|
-
const GuxFormFieldContainer = ({ labelPosition }, children) => {
|
|
6
|
-
return (index.h("div", { class: {
|
|
7
|
-
'gux-form-field-container': true,
|
|
8
|
-
[`gux-${labelPosition}`]: true
|
|
9
|
-
} }, children));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
5
|
const GuxFormFieldLabel = ({ position, required }, children) => {
|
|
13
6
|
return (index.h("div", { class: {
|
|
14
7
|
'gux-form-field-label': true,
|
|
@@ -17,5 +10,12 @@ const GuxFormFieldLabel = ({ position, required }, children) => {
|
|
|
17
10
|
} }, children));
|
|
18
11
|
};
|
|
19
12
|
|
|
13
|
+
const GuxFormFieldContainer = ({ labelPosition }, children) => {
|
|
14
|
+
return (index.h("div", { class: {
|
|
15
|
+
'gux-form-field-container': true,
|
|
16
|
+
[`gux-${labelPosition}`]: true
|
|
17
|
+
} }, children));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
20
|
exports.GuxFormFieldContainer = GuxFormFieldContainer;
|
|
21
21
|
exports.GuxFormFieldLabel = GuxFormFieldLabel;
|
|
@@ -6,15 +6,16 @@ const index = require('./index-a4138a99.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
11
|
+
const guxFormFieldContainer = require('./gux-form-field-container-284d1d01.js');
|
|
12
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
12
13
|
require('./random-html-id-b86b61c0.js');
|
|
13
14
|
require('./log-error-a57681bf.js');
|
|
14
15
|
require('./set-input-value-610d7da3.js');
|
|
15
16
|
require('./simulate-native-event-fe3e62da.js');
|
|
16
17
|
|
|
17
|
-
const guxFormFieldDropdownCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input.gux-disabled{pointer-events:none;opacity:0.5}";
|
|
18
|
+
const guxFormFieldDropdownCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input.gux-disabled{pointer-events:none;opacity:0.5}";
|
|
18
19
|
|
|
19
20
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20
21
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -31,6 +32,7 @@ const GuxFormFieldDropdown = class {
|
|
|
31
32
|
index.registerInstance(this, hostRef);
|
|
32
33
|
this.computedLabelPosition = 'above';
|
|
33
34
|
this.hasError = false;
|
|
35
|
+
this.hasHelp = false;
|
|
34
36
|
}
|
|
35
37
|
watchValue(hasError) {
|
|
36
38
|
const dropdownSlot = this.root.querySelector('gux-dropdown') ||
|
|
@@ -40,12 +42,14 @@ const GuxFormFieldDropdown = class {
|
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
onMutation() {
|
|
43
|
-
this.hasError =
|
|
45
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
46
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
44
47
|
}
|
|
45
48
|
componentWillLoad() {
|
|
46
49
|
this.setInput();
|
|
47
50
|
this.setLabel();
|
|
48
|
-
this.hasError =
|
|
51
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
52
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
49
53
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
50
54
|
}
|
|
51
55
|
disconnectedCallback() {
|
|
@@ -53,11 +57,11 @@ const GuxFormFieldDropdown = class {
|
|
|
53
57
|
this.requiredObserver.disconnect();
|
|
54
58
|
}
|
|
55
59
|
render() {
|
|
56
|
-
return (index.h(
|
|
60
|
+
return (index.h(guxFormFieldContainer.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldContainer.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, index.h("div", { class: {
|
|
57
61
|
'gux-input': true,
|
|
58
62
|
'gux-input-error': this.hasError,
|
|
59
63
|
'gux-disabled': this.disabled
|
|
60
|
-
} }, index.h("slot", null)), index.h(guxFormField_service.GuxFormFieldError, {
|
|
64
|
+
} }, index.h("slot", null)), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))));
|
|
61
65
|
}
|
|
62
66
|
get variant() {
|
|
63
67
|
const labelPositionVariant = this.labelPosition
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a4138a99.js');
|
|
6
|
-
const usageTracking = require('./usage-tracking-
|
|
6
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
7
7
|
const index$1 = require('./index-d4f3e61e.js');
|
|
8
8
|
require('./get-closest-element-ab4b2eee.js');
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@ const randomHtmlId = require('./random-html-id-b86b61c0.js');
|
|
|
8
8
|
const logError = require('./log-error-a57681bf.js');
|
|
9
9
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
10
10
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
11
|
-
const usageTracking = require('./usage-tracking-
|
|
11
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
12
12
|
|
|
13
13
|
const guxFormFieldCss = "gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";
|
|
14
14
|
|
|
@@ -8,11 +8,12 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
8
8
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
9
9
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
10
10
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
11
|
-
const usageTracking = require('./usage-tracking-aa9da6aa.js');
|
|
12
11
|
const setInputValue = require('./set-input-value-610d7da3.js');
|
|
13
12
|
const simulateNativeEvent = require('./simulate-native-event-fe3e62da.js');
|
|
14
|
-
const
|
|
15
|
-
const guxFormField_service = require('./gux-form-field.service-
|
|
13
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
14
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
15
|
+
const guxFormFieldContainer = require('./gux-form-field-container-284d1d01.js');
|
|
16
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
16
17
|
require('./get-closest-element-ab4b2eee.js');
|
|
17
18
|
require('./random-html-id-b86b61c0.js');
|
|
18
19
|
require('./log-error-a57681bf.js');
|
|
@@ -24,7 +25,7 @@ const componentResources = {
|
|
|
24
25
|
decrement: decrement
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const guxFormFieldNumberCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;width:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";
|
|
28
|
+
const guxFormFieldNumberCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;width:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";
|
|
28
29
|
|
|
29
30
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
30
31
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -42,21 +43,25 @@ const GuxFormFieldNumber = class {
|
|
|
42
43
|
this.computedLabelPosition = 'above';
|
|
43
44
|
this.hasContent = false;
|
|
44
45
|
this.hasError = false;
|
|
46
|
+
this.hasHelp = false;
|
|
45
47
|
}
|
|
46
48
|
onMutation() {
|
|
47
|
-
this.hasError =
|
|
49
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
50
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
48
51
|
}
|
|
49
52
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
50
53
|
async guxForceUpdate() {
|
|
51
54
|
this.hasContent = guxFormField_service.hasContent(this.input);
|
|
52
|
-
this.hasError =
|
|
55
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
56
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
53
57
|
index.forceUpdate(this.root);
|
|
54
58
|
}
|
|
55
59
|
async componentWillLoad() {
|
|
56
60
|
this.getI18nValue = await index$1.buildI18nForComponent(this.root, componentResources);
|
|
57
61
|
this.setInput();
|
|
58
62
|
this.setLabel();
|
|
59
|
-
this.hasError =
|
|
63
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
64
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
60
65
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
61
66
|
}
|
|
62
67
|
disconnectedCallback() {
|
|
@@ -65,14 +70,14 @@ const GuxFormFieldNumber = class {
|
|
|
65
70
|
}
|
|
66
71
|
render() {
|
|
67
72
|
const showClearButton = this.clearable && this.hasContent && !this.disabled;
|
|
68
|
-
return (index.h(
|
|
73
|
+
return (index.h(guxFormFieldContainer.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldContainer.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, index.h("div", { class: {
|
|
69
74
|
'gux-input': true,
|
|
70
75
|
'gux-input-error': this.hasError
|
|
71
76
|
}, part: "input-section" }, index.h("div", { class: {
|
|
72
77
|
'gux-input-container': true,
|
|
73
78
|
'gux-disabled': this.disabled,
|
|
74
79
|
'gux-clear': showClearButton
|
|
75
|
-
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), index.h(guxFormField_service.GuxFormFieldError, {
|
|
80
|
+
} }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() }), showClearButton && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))));
|
|
76
81
|
}
|
|
77
82
|
get variant() {
|
|
78
83
|
const labelPositionVariant = this.labelPosition
|
|
@@ -6,14 +6,15 @@ const index = require('./index-a4138a99.js');
|
|
|
6
6
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66fb86b.js');
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
9
|
-
const
|
|
10
|
-
const guxFormField_service = require('./gux-form-field.service-
|
|
9
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
10
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
11
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
11
12
|
require('./random-html-id-b86b61c0.js');
|
|
12
13
|
require('./log-error-a57681bf.js');
|
|
13
14
|
require('./set-input-value-610d7da3.js');
|
|
14
15
|
require('./simulate-native-event-fe3e62da.js');
|
|
15
16
|
|
|
16
|
-
const guxFormFieldRadioCss = ".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}:host{display:block;color:#2e394c}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='radio']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='radio'])::before{grid-area:1;content:'';border-radius:50%}::slotted(input[type='radio']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='radio']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:not(:checked):not(:disabled):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.026 5.262a2.8 2.8 0 1 0 .001 5.601 2.8 2.8 0 0 0-.001-5.601zm0-2.2c-2.761 0-5 2.211-5 4.938s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";
|
|
17
|
+
const guxFormFieldRadioCss = ".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='radio']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;cursor:pointer;border:0;-webkit-appearance:none;appearance:none;outline:none}::slotted(input[type='radio'])::before{grid-area:1;content:'';border-radius:50%}::slotted(input[type='radio']:focus-within)::before{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}::slotted(input[type='radio']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:not(:checked):not(:disabled):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.062C5.239 3.062 3 5.273 3 8s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill-rule='evenodd' clip-rule='evenodd' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.026 5.262a2.8 2.8 0 1 0 .001 5.601 2.8 2.8 0 0 0-.001-5.601zm0-2.2c-2.761 0-5 2.211-5 4.938s2.239 4.938 5 4.938c2.762 0 5-2.211 5-4.938s-2.238-4.938-5-4.938zm0 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='radio']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";
|
|
17
18
|
|
|
18
19
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
20
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -29,13 +30,16 @@ const GuxFormFieldRadio = class {
|
|
|
29
30
|
constructor(hostRef) {
|
|
30
31
|
index.registerInstance(this, hostRef);
|
|
31
32
|
this.hasError = false;
|
|
33
|
+
this.hasHelp = false;
|
|
32
34
|
}
|
|
33
35
|
onMutation() {
|
|
34
|
-
this.hasError =
|
|
36
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
37
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
35
38
|
}
|
|
36
39
|
componentWillLoad() {
|
|
37
40
|
this.setInput();
|
|
38
|
-
this.hasError =
|
|
41
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
42
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
39
43
|
usageTracking.trackComponent(this.root);
|
|
40
44
|
}
|
|
41
45
|
disconnectedCallback() {
|
|
@@ -45,7 +49,7 @@ const GuxFormFieldRadio = class {
|
|
|
45
49
|
return (index.h(index.Host, { class: {
|
|
46
50
|
'gux-input-error': this.hasError,
|
|
47
51
|
'gux-disabled': this.disabled
|
|
48
|
-
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input-label" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() })), index.h("div", { class: "gux-label" }, index.h("slot", { name: "label" }), index.h(guxFormField_service.GuxFormFieldError, {
|
|
52
|
+
} }, index.h("div", { class: "gux-form-field-container" }, index.h("div", { class: "gux-input-label" }, index.h("div", { class: "gux-input" }, index.h("slot", { name: "input", onSlotchange: () => this.setInput() })), index.h("div", { class: "gux-label" }, index.h("slot", { name: "label" }), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))))));
|
|
49
53
|
}
|
|
50
54
|
setInput() {
|
|
51
55
|
this.input = this.root.querySelector('input[type="radio"][slot="input"]');
|
|
@@ -7,15 +7,16 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
12
|
+
const guxFormFieldContainer = require('./gux-form-field-container-284d1d01.js');
|
|
13
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
13
14
|
require('./random-html-id-b86b61c0.js');
|
|
14
15
|
require('./log-error-a57681bf.js');
|
|
15
16
|
require('./set-input-value-610d7da3.js');
|
|
16
17
|
require('./simulate-native-event-fe3e62da.js');
|
|
17
18
|
|
|
18
|
-
const guxFormFieldRangeCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input[type='range']){position:absolute;width:100%;height:2px;margin:6px 0;margin-top:calc(-1 * (12px / 2 + 2px));background:transparent;-webkit-appearance:none}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-range-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:32px;font-size:12px}.gux-input-and-error-container .gux-range-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-range-input-container .gux-range{position:relative;flex:1 1 auto;align-self:center;order:0}.gux-input-and-error-container .gux-range-input-container .gux-range:hover .gux-range-tooltip,.gux-input-and-error-container .gux-range-input-container .gux-range:focus-within .gux-range-tooltip{visibility:visible}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track{width:100%;height:2px;margin:6px 0;background-color:#8a97ad}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track .gux-progress{height:2px;background-color:#2a60c8}.gux-input-and-error-container .gux-range-input-container .gux-display{flex:0 1 auto;align-self:auto;order:0;height:32px;margin:0 0 0 16px;line-height:32px;text-align:right}.gux-input-and-error-container .gux-range-input-container .gux-display.gux-hidden{display:none}.gux-input-and-error-container .gux-range-tooltip-container{position:absolute;top:-50px;width:100%;height:32px;pointer-events:none}.gux-input-and-error-container .gux-range-tooltip-container.gux-hidden{display:none}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip{font-family:Roboto, sans-serif;font-weight:400;font-size:11px;line-height:16px;position:absolute;z-index:var(--gux-zindex-tooltip, 1);display:flex;align-items:center;justify-content:center;width:50px;height:32px;margin-left:-20px;visibility:hidden;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::after,.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::before{position:absolute;top:100%;left:50%;width:0;height:0;pointer-events:none;content:' ';border:solid transparent}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::after{margin-left:-4px;border-width:4px;border-top-color:#fdfdfd}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::before{margin-left:-6px;border-width:6px;border-top-color:#b4bccb}";
|
|
19
|
+
const guxFormFieldRangeCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input[type='range']){position:absolute;width:100%;height:2px;margin:6px 0;margin-top:calc(-1 * (12px / 2 + 2px));background:transparent;-webkit-appearance:none}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-range-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:32px;font-size:12px}.gux-input-and-error-container .gux-range-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-range-input-container .gux-range{position:relative;flex:1 1 auto;align-self:center;order:0}.gux-input-and-error-container .gux-range-input-container .gux-range:hover .gux-range-tooltip,.gux-input-and-error-container .gux-range-input-container .gux-range:focus-within .gux-range-tooltip{visibility:visible}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track{width:100%;height:2px;margin:6px 0;background-color:#8a97ad}.gux-input-and-error-container .gux-range-input-container .gux-range .gux-track .gux-progress{height:2px;background-color:#2a60c8}.gux-input-and-error-container .gux-range-input-container .gux-display{flex:0 1 auto;align-self:auto;order:0;height:32px;margin:0 0 0 16px;line-height:32px;text-align:right}.gux-input-and-error-container .gux-range-input-container .gux-display.gux-hidden{display:none}.gux-input-and-error-container .gux-range-tooltip-container{position:absolute;top:-50px;width:100%;height:32px;pointer-events:none}.gux-input-and-error-container .gux-range-tooltip-container.gux-hidden{display:none}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip{font-family:Roboto, sans-serif;font-weight:400;font-size:11px;line-height:16px;position:absolute;z-index:var(--gux-zindex-tooltip, 1);display:flex;align-items:center;justify-content:center;width:50px;height:32px;margin-left:-20px;visibility:hidden;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::after,.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::before{position:absolute;top:100%;left:50%;width:0;height:0;pointer-events:none;content:' ';border:solid transparent}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::after{margin-left:-4px;border-width:4px;border-top-color:#fdfdfd}.gux-input-and-error-container .gux-range-tooltip-container .gux-range-tooltip::before{margin-left:-6px;border-width:6px;border-top-color:#b4bccb}";
|
|
19
20
|
|
|
20
21
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
22
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -32,6 +33,7 @@ const GuxFormField = class {
|
|
|
32
33
|
index.registerInstance(this, hostRef);
|
|
33
34
|
this.computedLabelPosition = 'above';
|
|
34
35
|
this.hasError = false;
|
|
36
|
+
this.hasHelp = false;
|
|
35
37
|
}
|
|
36
38
|
onInput(e) {
|
|
37
39
|
const input = e.target;
|
|
@@ -46,12 +48,14 @@ const GuxFormField = class {
|
|
|
46
48
|
this.active = false;
|
|
47
49
|
}
|
|
48
50
|
onMutation() {
|
|
49
|
-
this.hasError =
|
|
51
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
52
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
50
53
|
}
|
|
51
54
|
componentWillLoad() {
|
|
52
55
|
this.setInput();
|
|
53
56
|
this.setLabel();
|
|
54
|
-
this.hasError =
|
|
57
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
58
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
55
59
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
56
60
|
}
|
|
57
61
|
componentDidLoad() {
|
|
@@ -65,7 +69,7 @@ const GuxFormField = class {
|
|
|
65
69
|
render() {
|
|
66
70
|
return (index.h(index.Host, { class: {
|
|
67
71
|
'gux-active': this.active
|
|
68
|
-
} }, index.h(
|
|
72
|
+
} }, index.h(guxFormFieldContainer.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldContainer.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, this.renderRangeInput(), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" }))))));
|
|
69
73
|
}
|
|
70
74
|
get variant() {
|
|
71
75
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
|
@@ -7,15 +7,16 @@ const onInputDisabledStateChange = require('./on-input-disabled-state-change-d66
|
|
|
7
7
|
const onMutation = require('./on-mutation-74bf4591.js');
|
|
8
8
|
const onAttributeChange = require('./on-attribute-change-37556263.js');
|
|
9
9
|
const preventBrowserValidationStyling = require('./prevent-browser-validation-styling-d21b1a56.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const hasSlot = require('./has-slot-2e73d6e7.js');
|
|
11
|
+
const guxFormField_service = require('./gux-form-field.service-8424f99d.js');
|
|
12
|
+
const guxFormFieldContainer = require('./gux-form-field-container-284d1d01.js');
|
|
13
|
+
const usageTracking = require('./usage-tracking-c0879d4b.js');
|
|
13
14
|
require('./random-html-id-b86b61c0.js');
|
|
14
15
|
require('./log-error-a57681bf.js');
|
|
15
16
|
require('./set-input-value-610d7da3.js');
|
|
16
17
|
require('./simulate-native-event-fe3e62da.js');
|
|
17
18
|
|
|
18
|
-
const guxFormFieldSearchCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 8px;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name='search']{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#596373}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
19
|
+
const guxFormFieldSearchCss = ".gux-form-field-container{margin:var(--gux-form-field-container-margin-top, 16px) 0 var(--gux-form-field-container-margin-bottom, 16px) 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;line-height:16px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 8px;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name='search']{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;margin-right:4px;color:#596373}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";
|
|
19
20
|
|
|
20
21
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
22
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -34,14 +35,17 @@ const GuxFormFieldSearch = class {
|
|
|
34
35
|
this.clearable = true;
|
|
35
36
|
this.hasContent = false;
|
|
36
37
|
this.hasError = false;
|
|
38
|
+
this.hasHelp = false;
|
|
37
39
|
}
|
|
38
40
|
onMutation() {
|
|
39
|
-
this.hasError =
|
|
41
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
42
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
40
43
|
}
|
|
41
44
|
componentWillLoad() {
|
|
42
45
|
this.setInput();
|
|
43
46
|
this.setLabel();
|
|
44
|
-
this.hasError =
|
|
47
|
+
this.hasError = hasSlot.hasSlot(this.root, 'error');
|
|
48
|
+
this.hasHelp = hasSlot.hasSlot(this.root, 'help');
|
|
45
49
|
usageTracking.trackComponent(this.root, { variant: this.variant });
|
|
46
50
|
}
|
|
47
51
|
disconnectedCallback() {
|
|
@@ -49,13 +53,13 @@ const GuxFormFieldSearch = class {
|
|
|
49
53
|
this.requiredObserver.disconnect();
|
|
50
54
|
}
|
|
51
55
|
render() {
|
|
52
|
-
return (index.h(
|
|
56
|
+
return (index.h(guxFormFieldContainer.GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, index.h(guxFormFieldContainer.GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, index.h("slot", { name: "label", onSlotchange: () => this.setLabel() })), index.h("div", { class: "gux-input-and-error-container" }, index.h("div", { class: {
|
|
53
57
|
'gux-input': true,
|
|
54
58
|
'gux-input-error': this.hasError
|
|
55
59
|
} }, index.h("div", { class: {
|
|
56
60
|
'gux-input-container': true,
|
|
57
61
|
'gux-disabled': this.disabled
|
|
58
|
-
} }, index.h("gux-icon", { "icon-name": "search", decorative: true }), index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) })))), index.h(guxFormField_service.GuxFormFieldError, {
|
|
62
|
+
} }, index.h("gux-icon", { "icon-name": "search", decorative: true }), index.h("slot", { name: "input" }), this.clearable && this.hasContent && !this.disabled && (index.h("gux-form-field-input-clear-button", { onClick: () => guxFormField_service.clearInput(this.input) })))), index.h(guxFormField_service.GuxFormFieldError, { show: this.hasError }, index.h("slot", { name: "error" })), index.h(guxFormField_service.GuxFormFieldHelp, { show: !this.hasError && this.hasHelp }, index.h("slot", { name: "help" })))));
|
|
59
63
|
}
|
|
60
64
|
get variant() {
|
|
61
65
|
const labelPositionVariant = this.labelPosition
|