genesys-spark-components 4.74.1 → 4.76.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/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot.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.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-create-option.cjs.entry.js +2 -2
- 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-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +3 -3
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +14 -4
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-file.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +8 -8
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +14 -4
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-range.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-search.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-select.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-inline-alert.cjs.entry.js +3 -3
- package/dist/cjs/gux-label-info-beta.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.cjs.entry.js +2 -2
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +3 -3
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-popup.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-row-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-sort-control.cjs.entry.js +4 -4
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/gux-table.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag.cjs.entry.js +2 -2
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +3 -3
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
- package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/gux-truncate.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-906039c2.js → usage-9c7ffe36.js} +1 -1
- package/dist/collection/components/beta/gux-avatar/gux-avatar.js +1 -1
- package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +1 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.js +50 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/tests/gux-form-field-checkbox-group.spec.js +26 -8
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/gux-form-field-file.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +50 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/tests/gux-form-field-radio-group.spec.js +52 -8
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.js +3 -3
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +1 -1
- package/dist/collection/components/stable/gux-icon/gux-icon.js +2 -2
- package/dist/collection/components/stable/gux-icon/icons/fa/comment-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/comment-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/heart-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/heart-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/lighthouse-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/lock-open-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/lock-solid.svg +1 -0
- package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
- package/dist/collection/components/stable/gux-listbox/gux-listbox.css +0 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -2
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +1 -1
- package/dist/collection/components/stable/gux-modal/gux-modal.css +1 -5
- package/dist/collection/components/stable/gux-modal/gux-modal.js +1 -1
- package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +1 -1
- package/dist/collection/components/stable/gux-popover/gux-popover.js +2 -2
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +2 -2
- package/dist/collection/components/stable/gux-popup/gux-popup.js +3 -3
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +1 -1
- package/dist/collection/components/stable/gux-rating/gux-rating.js +1 -1
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +3 -3
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-table.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +1 -1
- package/dist/collection/components/stable/gux-tabs/gux-tabs.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +2 -2
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +1 -1
- package/dist/collection/components/stable/gux-tag/gux-tag.js +1 -1
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +1 -1
- package/dist/collection/components/stable/gux-toast/gux-toast.js +2 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +2 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +2 -2
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +2 -2
- package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -2
- package/dist/collection/components/stable/gux-truncate/gux-truncate.js +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-all-row-select.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +2 -2
- package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot.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.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-create-option.entry.js +2 -2
- 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-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +3 -3
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +14 -4
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +4 -4
- package/dist/esm/gux-form-field-dropdown.entry.js +4 -4
- package/dist/esm/gux-form-field-file.entry.js +2 -2
- package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
- package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +8 -8
- package/dist/esm/gux-form-field-phone.entry.js +5 -5
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +14 -4
- package/dist/esm/gux-form-field-radio.entry.js +3 -3
- package/dist/esm/gux-form-field-range.entry.js +3 -3
- package/dist/esm/gux-form-field-search.entry.js +4 -4
- package/dist/esm/gux-form-field-select.entry.js +4 -4
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +3 -3
- package/dist/esm/gux-form-field-time-picker.entry.js +5 -5
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +4 -4
- package/dist/esm/gux-form-footer.entry.js +1 -1
- package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-inline-alert.entry.js +3 -3
- package/dist/esm/gux-label-info-beta.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.entry.js +2 -2
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +3 -3
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons_2.entry.js +2 -2
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-items-per-page.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +2 -2
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +3 -3
- package/dist/esm/gux-popup.entry.js +3 -3
- package/dist/esm/gux-radial-loading.entry.js +2 -2
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-row-select.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta_2.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +1 -1
- package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +2 -2
- package/dist/esm/gux-sort-control.entry.js +4 -4
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +2 -2
- package/dist/esm/gux-tab-list.entry.js +2 -2
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +2 -2
- package/dist/esm/gux-table-select-menu.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +2 -2
- package/dist/esm/gux-table-toolbar.entry.js +3 -3
- package/dist/esm/gux-table.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag.entry.js +2 -2
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +2 -2
- package/dist/esm/gux-time-zone-beta.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +3 -3
- package/dist/esm/gux-toggle-slider.entry.js +2 -2
- package/dist/esm/gux-toggle.entry.js +3 -3
- package/dist/esm/gux-tooltip-base-beta.entry.js +1 -1
- package/dist/esm/gux-tooltip-title.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +3 -3
- package/dist/esm/gux-truncate.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-371990a5.js → usage-504c6fec.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/icons/fa/comment-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/comment-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/heart-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/heart-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/lighthouse-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/lock-open-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/lock-solid.svg +1 -0
- package/dist/genesys-webcomponents/{p-c2066756.entry.js → p-0070393b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-95db6a58.entry.js → p-033f546e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9433cb50.entry.js → p-056136ba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac1d0f30.entry.js → p-07c346aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dfa9ea9d.entry.js → p-09719a65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6d15355.entry.js → p-09d913ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e53eecb9.entry.js → p-0b859cfc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-48572f03.entry.js → p-0e91785f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3abc8a56.entry.js → p-0f70ee71.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e047f9ee.entry.js → p-139e331a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c17e0caf.entry.js → p-15719a6a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e44c8e2.entry.js → p-15a5dd53.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1c0fef43.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-af7590a3.entry.js → p-2008e419.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4e110626.entry.js → p-2013917d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c115239.entry.js → p-215c8d38.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9529dd7f.js → p-2359687f.js} +1 -1
- package/dist/genesys-webcomponents/{p-b387917c.entry.js → p-25dd3c22.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b5363db.entry.js → p-31de7e85.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4f934ab4.entry.js → p-326cfcd0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b5200cc.entry.js → p-3a6d3737.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3aeacd1d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-be8e739d.entry.js → p-3d5bb2d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a565895.entry.js → p-4155cfd9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e58a282.entry.js → p-41e6ddbf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-caea0e03.entry.js → p-42225b95.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b4ed25d8.entry.js → p-44665e72.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-519126a5.entry.js → p-4abf5800.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cb65e364.entry.js → p-4c15a827.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce4cb1d0.entry.js → p-532ca75c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2ed1735.entry.js → p-54808e31.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-17a6f420.entry.js → p-55896049.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-02a17b8c.entry.js → p-59e76e6a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d411d9d.entry.js → p-5ad3de76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-135393b0.entry.js → p-5e379f4a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-602ed16f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-302d2b28.entry.js → p-62463f32.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-625134ec.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-17af2f7e.entry.js → p-62ce2ea7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-210b06b3.entry.js → p-64936ab3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7fe1ff05.entry.js → p-6546b8ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ebc66f84.entry.js → p-65fb87fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1dd30d50.entry.js → p-663e316a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57cd4c99.entry.js → p-67d35005.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ae1e450.entry.js → p-6b4092f3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-149747f5.entry.js → p-6cc5f1cd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eb5ca6b7.entry.js → p-6f92a110.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be47f42b.entry.js → p-70661872.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0912564f.entry.js → p-71e9d64b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd716271.entry.js → p-73081776.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a414fd2.entry.js → p-79e7d4a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0080d7a8.entry.js → p-7cd19454.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-262bb2b3.entry.js → p-7d45fbe3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7d499f89.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0ba17b89.entry.js → p-80f8b5e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ad834d4c.entry.js → p-826cabfa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b559495.entry.js → p-861f57c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c875d99.entry.js → p-8653d71f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d753aa53.entry.js → p-89831188.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-008afa49.entry.js → p-8af04874.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c31cf982.entry.js → p-8f0972c9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-92216576.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-04e6a4dd.entry.js → p-9909ffb7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4910ec64.entry.js → p-9970a9eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9c64020d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d0055426.entry.js → p-9d273f9b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9e71f353.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2c0951cb.entry.js → p-9f3a7ed8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2b4df5dc.entry.js → p-a02d804f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97032638.entry.js → p-a5561e47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-043b47f9.entry.js → p-a5f08fbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4db08195.entry.js → p-a82c4aa7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c0acef51.entry.js → p-adc6e8a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9a0c23e.entry.js → p-b0d1ebb1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-972cece9.entry.js → p-b10e5e19.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e68b499e.entry.js → p-b2790f65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08c329d4.entry.js → p-b2b9a1e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a84a1d0e.entry.js → p-b3cd8bec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5bcc81a6.entry.js → p-b8478c39.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1c1cd75.entry.js → p-b8f1b7f6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ec700a3.entry.js → p-ba642971.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-27ac0861.entry.js → p-bc673417.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bea4bdac.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-53f4b513.entry.js → p-bf652dee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-74765fb4.entry.js → p-c04e319f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c0668c7b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-46b114c8.entry.js → p-c0a1c211.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fcb1fc76.entry.js → p-c10cbadf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6075d13f.entry.js → p-c32719f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f8845be8.entry.js → p-c34d718e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c3d0c4c5.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-53ad1c89.entry.js → p-c44a8e74.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45fbbf0b.entry.js → p-cab707a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff24195e.entry.js → p-ce37cbd2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3f22885.entry.js → p-cff0e90b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cffabd08.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3f0aeb28.entry.js → p-d03a20a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4fc716b4.entry.js → p-d18980da.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4856c6a7.entry.js → p-d497a2fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ab8790a.entry.js → p-d606cdab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-015ba6c2.entry.js → p-dd43477d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f02a78be.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-439254c5.entry.js → p-f0cb0f61.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-67d68554.entry.js → p-f16cdf36.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34144774.entry.js → p-f5596f51.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63124bf4.entry.js → p-fb72ae84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a6ba8f6.entry.js → p-fe7a1327.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5ec831c.entry.js → p-fe997319.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c0057357.entry.js → p-ff39089f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-808bd8ff.entry.js → p-ffd8a7d0.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.d.ts +10 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.d.ts +10 -1
- package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
- package/dist/types/components.d.ts +20 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-057ae6e4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0678d986.entry.js +0 -1
- package/dist/genesys-webcomponents/p-282651c5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3ec605e0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-42a4a814.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5615d2db.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5e4f4308.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6e648b36.entry.js +0 -1
- package/dist/genesys-webcomponents/p-752460d1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-94472397.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9b40b21b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ab469438.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f76daa28.entry.js +0 -1
@@ -30,12 +30,12 @@ describe('gux-form-field-checkbox-beta', () => {
|
|
30
30
|
`
|
31
31
|
<gux-form-field-checkbox-group-beta>
|
32
32
|
<label slot="group-label">Food</label>
|
33
|
-
|
33
|
+
|
34
34
|
<gux-form-field-checkbox>
|
35
35
|
<input slot="input" type="checkbox" name="food-1" value="pizza" />
|
36
36
|
<label slot="label">Pizza</label>
|
37
37
|
</gux-form-field-checkbox>
|
38
|
-
|
38
|
+
|
39
39
|
<gux-form-field-checkbox>
|
40
40
|
<input
|
41
41
|
slot="input"
|
@@ -46,7 +46,7 @@ describe('gux-form-field-checkbox-beta', () => {
|
|
46
46
|
/>
|
47
47
|
<label slot="label">Sandwich</label>
|
48
48
|
</gux-form-field-checkbox>
|
49
|
-
|
49
|
+
|
50
50
|
<gux-form-field-checkbox>
|
51
51
|
<input slot="input" type="checkbox" name="food-1" value="spaghetti" />
|
52
52
|
<label slot="label">Spaghetti</label>
|
@@ -57,12 +57,12 @@ describe('gux-form-field-checkbox-beta', () => {
|
|
57
57
|
`,
|
58
58
|
`<gux-form-field-checkbox-group-beta>
|
59
59
|
<label slot="group-label">Food</label>
|
60
|
-
|
60
|
+
|
61
61
|
<gux-form-field-checkbox>
|
62
62
|
<input slot="input" type="checkbox" name="food-1" value="pizza" />
|
63
63
|
<label slot="label">Pizza</label>
|
64
64
|
</gux-form-field-checkbox>
|
65
|
-
|
65
|
+
|
66
66
|
<gux-form-field-checkbox>
|
67
67
|
<input
|
68
68
|
slot="input"
|
@@ -73,13 +73,13 @@ describe('gux-form-field-checkbox-beta', () => {
|
|
73
73
|
/>
|
74
74
|
<label slot="label">Sandwich</label>
|
75
75
|
</gux-form-field-checkbox>
|
76
|
-
|
76
|
+
|
77
77
|
<gux-form-field-checkbox>
|
78
78
|
<input slot="input" type="checkbox" name="food-1" value="sushi" />
|
79
79
|
<label slot="label">Sushi</label>
|
80
80
|
<span slot="error">Subject to availibility</span>
|
81
81
|
</gux-form-field-checkbox>
|
82
|
-
|
82
|
+
|
83
83
|
<gux-form-field-checkbox>
|
84
84
|
<input slot="input" type="checkbox" name="food-1" value="spaghetti" />
|
85
85
|
<label slot="label">Spaghetti</label>
|
@@ -117,7 +117,25 @@ describe('gux-form-field-checkbox-beta', () => {
|
|
117
117
|
<label slot="label">Spaghetti</label>
|
118
118
|
<span slot="help">This is a help message</span>
|
119
119
|
</gux-form-field-checkbox>
|
120
|
-
</gux-form-field-checkbox-group-beta
|
120
|
+
</gux-form-field-checkbox-group-beta>`,
|
121
|
+
`
|
122
|
+
<gux-form-field-checkbox-group-beta required>
|
123
|
+
<label slot="group-label">Food</label>
|
124
|
+
<gux-form-field-checkbox>
|
125
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza"/>
|
126
|
+
<label slot="label">Pizza</label>
|
127
|
+
</gux-form-field-checkbox>
|
128
|
+
</gux-form-field-checkbox-group-beta>
|
129
|
+
`,
|
130
|
+
`
|
131
|
+
<gux-form-field-checkbox-group-beta indicator-mark="optional">
|
132
|
+
<label slot="group-label">Food</label>
|
133
|
+
<gux-form-field-checkbox>
|
134
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza"/>
|
135
|
+
<label slot="label">Pizza</label>
|
136
|
+
</gux-form-field-checkbox>
|
137
|
+
</gux-form-field-checkbox-group-beta>
|
138
|
+
`
|
121
139
|
].forEach((html, index) => {
|
122
140
|
it(`should render component as expected (${index + 1})`, async () => {
|
123
141
|
const page = await newSpecPage({ components, html, language });
|
@@ -84,13 +84,13 @@ export class GuxFormFieldColor {
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
render() {
|
87
|
-
return (h(GuxFormFieldContainer, { key: '
|
87
|
+
return (h(GuxFormFieldContainer, { key: '0a39317eebc6d1b0b5095a05f9233f7a89119acb', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: 'e6ad2446431a1a0e6ff3f7a35199cc6ea4f4ddae', required: this.required, position: this.computedLabelPosition }, h("slot", { key: '4d9e6dc69f9f59bbed04a78db47dc96a36941b32', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '5467932eb0dbd4e62c9525f71826628be16626ee', variant: this.indicatorMark, required: this.required }), h("slot", { key: 'ce3f830ef46c878b08fb60f06b34635ea8981c25', name: "label-info" })), h("div", { key: '0cacee7d9692522a64cf92bfab8db70aa22b2ab4', class: "gux-input-and-error-container" }, h("div", { key: '7540aff1d8ee693387e5ff2f72ee0fd5a64ada7e', class: {
|
88
88
|
'gux-input': true,
|
89
89
|
'gux-input-error': this.hasError
|
90
|
-
} }, h("div", { key: '
|
90
|
+
} }, h("div", { key: '4aba3697be096dcf947a6cde9d06b963b31d4ddd', class: {
|
91
91
|
'gux-input-container': true,
|
92
92
|
'gux-disabled': this.disabled
|
93
|
-
} }, h("slot", { key: '
|
93
|
+
} }, h("slot", { key: 'd94ad5e6147de68ce73d669239018437b505d665', name: "input", onSlotchange: () => this.setInput() }))), h(GuxFormFieldError, { key: '4442453b96851a84d65571a4cdbd30189148bff7', show: this.hasError }, h("slot", { key: '337a8d583e109816ff9d69f57618c6e42a05c137', name: "error" })), h(GuxFormFieldHelp, { key: 'c3fb67cf3d2bad26c2847d2362e17420951fe963', show: !this.hasError && this.hasHelp }, h("slot", { key: 'd6cc78440ba431d4796fe7559f60ba697657236f', name: "help" })))));
|
94
94
|
}
|
95
95
|
get variant() {
|
96
96
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
@@ -96,11 +96,11 @@ export class GuxFormFieldDropdown {
|
|
96
96
|
}
|
97
97
|
render() {
|
98
98
|
var _a;
|
99
|
-
return (h(GuxFormFieldFieldsetContainer, { key: '
|
100
|
-
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'help'), this.hasHelp), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: '
|
99
|
+
return (h(GuxFormFieldFieldsetContainer, { key: 'a250369da3c693575bcae560207c82a77982089f', labelPosition: this.computedLabelPosition }, h(GuxFormFieldScreenreaderLabel, { key: 'a7ba0b81a9e17d73100927f11e708aab31338e0e' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
100
|
+
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'help'), this.hasHelp), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: 'f2626b303a8ce77adc050107c496f0556ab56af6', position: this.computedLabelPosition, required: this.required }, h("slot", { key: '69032596a69268b426c43d8a370de1957adf6364', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: 'b7ae73d2b1d4c9060fb81c6225222d55f0b9ba3d', variant: this.indicatorMark, required: this.required }), h("slot", { key: '68ebf129d77c75e2bb565499ad8da68f85d7a37e', name: "label-info" })), h("div", { key: 'c5813f2aa922a7ece51a84fb2850a659c2694133', class: "gux-input-and-error-container" }, h("div", { key: '98bb80f662b3746c9228a099224c12fffd26e171', class: {
|
101
101
|
'gux-input': true,
|
102
102
|
'gux-input-error': this.hasError
|
103
|
-
} }, h("slot", { key: '
|
103
|
+
} }, h("slot", { key: '14c6b0561f35234241f241a4150f98b3ca3db61a' })), h(GuxFormFieldError, { key: '6d6df40a7d65ded4f1bedaff9cae5e76ded6d70b', show: this.hasError }, h("slot", { key: '98b107a272159b89ab4a223fea9506b00aa3f304', name: "error" })), h(GuxFormFieldHelp, { key: '00c607f82c67a2083229171e130f44caf15dab95', show: !this.hasError && this.hasHelp }, h("slot", { key: '3bc4f90cecce9b35967d747e456565265c6a1e0f', name: "help" })))));
|
104
104
|
}
|
105
105
|
get variant() {
|
106
106
|
const labelPositionVariant = this.labelPosition
|
@@ -98,7 +98,7 @@ export class GuxFormFieldFile {
|
|
98
98
|
return `${type}-${labelPositionVariant}`;
|
99
99
|
}
|
100
100
|
render() {
|
101
|
-
return (h(GuxFormFieldContainer, { key: '
|
101
|
+
return (h(GuxFormFieldContainer, { key: '7abf536d21c5c458cb5b21f33f1bd9396044a0b7', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '13ed9bf6c351863b755077efa5566a5cd1e90a14', position: this.computedLabelPosition, required: this.required }, h("slot", { key: '09575fed78d9ca655eb4b63722b6a82315c0a146', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: 'd64a434050c1f7a1019aa089d6740683efdc7df5', variant: this.indicatorMark, required: this.required }), h("slot", { key: '8e076c976fd28f8f21dd4bc12b2d0896756614ad', name: "label-info" })), h("div", { key: '93a3c6723a0f4a305fa06630eebb4a74f6905f81', class: "gux-input-and-error-container" }, h("slot", { key: '6aff1d14f123368160df5ad0ff76f2730ff05eb2', name: "input", onSlotchange: () => this.setInput() }), h(GuxFormFieldError, { key: '4e20fc902a0f9faa6a2590edd16d7499f2a717a9', show: this.hasError }, h("slot", { key: 'da00c934c70ab2084663d46e7e18d53639668620', name: "error" })), h(GuxFormFieldHelp, { key: '5516d1ff98f2f1486b5e7a390d7885d6d2b1914b', show: !this.hasError && this.hasHelp }, h("slot", { key: 'dd642f28776f0bd7497d7d29f05b9ea74f811148', name: "help" })))));
|
102
102
|
}
|
103
103
|
static get is() { return "gux-form-field-file"; }
|
104
104
|
static get encapsulation() { return "shadow"; }
|
@@ -101,14 +101,14 @@ export class GuxFormFieldNumber {
|
|
101
101
|
}
|
102
102
|
render() {
|
103
103
|
const showClearButton = this.clearable && this.hasContent && !this.disabled;
|
104
|
-
return (h(GuxFormFieldContainer, { key: '
|
104
|
+
return (h(GuxFormFieldContainer, { key: '785fec87017ff42abee831b3c624c217b41d56fd', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '8b2118c7b4aa61db406ebe9156b0b4662274a8dd', required: this.required, position: this.computedLabelPosition }, h("slot", { key: '0bb97183776944254809140c67c8b4f95b7e6473', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '0b567491a4dbb3332962621fcd06fcb7f260fbaa', variant: this.indicatorMark, required: this.required }), h("slot", { key: '9c788f5e5be22657879e04abec11bd4cd8a01cc1', name: "label-info" })), h("div", { key: 'c1395eeffda28e6618c0ed585f98ea16566db1e4', class: "gux-input-and-error-container" }, h("div", { key: '79ed7447b231810038ed4967f95f24625987a291', class: {
|
105
105
|
'gux-input': true,
|
106
106
|
'gux-input-error': this.hasError
|
107
|
-
}, part: "input-section" }, h("div", { key: '
|
107
|
+
}, part: "input-section" }, h("div", { key: 'e2a946f4c05b1dd34fe3f68988da03fad88be780', class: {
|
108
108
|
'gux-input-container': true,
|
109
109
|
'gux-disabled': this.disabled,
|
110
110
|
'gux-clear': showClearButton
|
111
|
-
}, onClick: () => focusInputElement(this.input) }, h("slot", { key: '
|
111
|
+
}, onClick: () => focusInputElement(this.input) }, h("slot", { key: '6f58481bf65dad53105af30c21e0cccf083ff606', name: "input", onSlotchange: () => this.setInput() }), showClearButton && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) }))), this.renderStepButtons(this.input, this.getI18nValue, this.disabled)), h(GuxFormFieldError, { key: '7c321e86300923dda697ea1ed96f395f2eae5e80', show: this.hasError }, h("slot", { key: 'ea01b157b5c696b3243eb22da2e7e0ca6b7091fe', name: "error" })), h(GuxFormFieldHelp, { key: '715ba6fc83227e5c35452c709fc4b5d66c7d96c4', show: !this.hasError && this.hasHelp }, h("slot", { key: '4b36fc63670534b1e314c6c4e79b8ee4164e19e7', name: "help" })))));
|
112
112
|
}
|
113
113
|
get variant() {
|
114
114
|
const labelPositionVariant = this.labelPosition
|
@@ -92,14 +92,14 @@ export class GuxFormFieldPhone {
|
|
92
92
|
}
|
93
93
|
render() {
|
94
94
|
var _a;
|
95
|
-
return (h(GuxFormFieldFieldsetContainer, { key: '
|
96
|
-
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: '
|
95
|
+
return (h(GuxFormFieldFieldsetContainer, { key: '56f12f972a655ae407c09f1daf04cc23c7de1bcf', labelPosition: this.computedLabelPosition }, h(GuxFormFieldScreenreaderLabel, { key: 'f2fe6e36721035fb33bf7bcdd8d1650bfb7dfdef' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
96
|
+
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: 'e07e162217ab41732b4f995944c60bfa2d14a9ce', position: this.computedLabelPosition, required: this.required }, h("slot", { key: 'e5f95f3ac47968fec7f0ccd6f6592cc868089be1', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: 'da85988d13e8024ab9fe74d4056ecede0d6530cf', variant: this.indicatorMark, required: this.required }), h("slot", { key: 'feb7b1e0d892135bda3257dd8bb8531771304359', name: "label-info" })), h("div", { key: '700833f9c865c82b40f49653a227cf5f0fd19aa9', class: "gux-input-and-error-container" }, h("div", { key: '5e34d7c821c11a0616902073d56052802264abf3', class: {
|
97
97
|
'gux-input': true,
|
98
98
|
'gux-input-error': this.hasError
|
99
|
-
} }, h("div", { key: '
|
99
|
+
} }, h("div", { key: 'fddd3d42d84ec8fdcc2ea1ca525e88b5a684493a', class: {
|
100
100
|
'gux-input-container': true,
|
101
101
|
'gux-disabled': this.disabled
|
102
|
-
} }, h("slot", { key: '
|
102
|
+
} }, h("slot", { key: 'd58fa6a08698808604691bbc8e72c3792827ef35' }))), h(GuxFormFieldError, { key: 'd6faf31ecd47ef331d932162b719e67ea0110e69', show: this.hasError }, h("slot", { key: '493b1b0249f723205ce9cb7c32638d82ed625d73', name: "error" })), h(GuxFormFieldHelp, { key: 'c9efbe0fc5a1b79d6a0d0d7426491ceb69b876e4', show: !this.hasError && this.hasHelp }, h("slot", { key: 'afe33f3ec89fa5246c12327dcb78346f4d7258f1', name: "help" })))));
|
103
103
|
}
|
104
104
|
renderText(text, condition = false) {
|
105
105
|
if (condition) {
|
@@ -47,10 +47,10 @@ export class GuxFormFieldRadio {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
render() {
|
50
|
-
return (h(Host, { key: '
|
50
|
+
return (h(Host, { key: '7dc1f9d2b6002960146602218bf0ef4023ab6920', class: {
|
51
51
|
'gux-input-error': this.hasError || this.hasGroupError,
|
52
52
|
'gux-disabled': this.disabled
|
53
|
-
} }, h("div", { key: '
|
53
|
+
} }, h("div", { key: '6e84121c488ef2bbec5458bde706455e73b270f0', class: "gux-form-field-container", "aria-disabled": this.disabled ? 'true' : 'false' }, h("div", { key: 'fd7d80734803eb61c1391d5063fdb1084fe47c64', class: "gux-input-label" }, h("div", { key: 'dabc615e2494c0eb41b6196706e9ad3d740cfef7', class: "gux-input" }, h("slot", { key: '5a595f86b59079deaf325916c32f43e1020b5df6', name: "input", onSlotchange: () => this.setInput() })), h("div", { key: '2acf844b9be3fd281af460054af6bf06ab45ba80', class: "gux-label" }, h("slot", { key: 'fe34d02ffe32db3241f5cd0f6de31542a963edad', name: "label" }))), h("div", { key: 'e8db7c74f32d014ca1b64dc77dd6bd40979ed80c', class: "error-and-help-text" }, h(GuxFormFieldError, { key: 'a72e210faf7c6a85b79f4bba55b4450ad0d2761b', show: this.hasError }, h("slot", { key: 'f7802fcbac90cacf10f78cb9a8e362b1d471e4e7', name: "error" })), h(GuxFormFieldHelp, { key: '027bb4efd13c8267c700bb1231873f96156d4ee6', show: !this.hasError && this.hasHelp }, h("slot", { key: 'a562df50f27d540e8d68d4b9efa5b23e4e96cee2', name: "help" }))))));
|
54
54
|
}
|
55
55
|
setInput() {
|
56
56
|
this.input = getSlottedInput(this.root, 'input[type="radio"][slot="input"]');
|
@@ -11,9 +11,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
11
11
|
import { h } from "@stencil/core";
|
12
12
|
import { OnMutation } from "../../../../../utils/decorator/on-mutation";
|
13
13
|
import { hasSlot } from "../../../../../utils/dom/has-slot";
|
14
|
+
import { buildI18nForComponent } from "../../../../../i18n";
|
14
15
|
import { GuxFormFieldError, GuxFormFieldHelp, GuxFormFieldScreenreaderLabel, GuxFormFieldFieldsetContainer, GuxFormFieldVisualLabel } from "../../functional-components/functional-components";
|
15
16
|
import { getSlotTextContent } from "../../../../../utils/dom/get-slot-text-content";
|
16
17
|
import { trackComponent } from "../../../../../utils/tracking/usage";
|
18
|
+
import componentResources from "./i18n/en.json";
|
17
19
|
/**
|
18
20
|
* @slot group-label - Required slot for label tag
|
19
21
|
* @slot group-error - Optional slot for error message
|
@@ -22,6 +24,8 @@ import { trackComponent } from "../../../../../utils/tracking/usage";
|
|
22
24
|
*/
|
23
25
|
export class GuxFormFieldRadioGroupBeta {
|
24
26
|
constructor() {
|
27
|
+
this.required = false;
|
28
|
+
this.indicatorMark = 'required';
|
25
29
|
this.hasGroupError = false;
|
26
30
|
this.hasGroupHelp = false;
|
27
31
|
this.hasGroupLabelInfo = false;
|
@@ -70,7 +74,8 @@ export class GuxFormFieldRadioGroupBeta {
|
|
70
74
|
void ((_a = this.groupLabelInfo) === null || _a === void 0 ? void 0 : _a.hideTooltip());
|
71
75
|
clearTimeout(this.hideTooltipTimeout);
|
72
76
|
}
|
73
|
-
componentWillLoad() {
|
77
|
+
async componentWillLoad() {
|
78
|
+
this.getI18nValue = await buildI18nForComponent(this.root, componentResources);
|
74
79
|
this.groupLabelInfo = this.root.querySelector('[slot=group-label-info]');
|
75
80
|
this.hasGroupError = hasSlot(this.root, 'group-error');
|
76
81
|
this.hasGroupHelp = hasSlot(this.root, 'group-help');
|
@@ -99,8 +104,8 @@ export class GuxFormFieldRadioGroupBeta {
|
|
99
104
|
}
|
100
105
|
render() {
|
101
106
|
var _a;
|
102
|
-
return (h(GuxFormFieldFieldsetContainer, { key: '
|
103
|
-
_a.textContent, this.renderText(getSlotTextContent(this.root, 'group-error'), this.hasGroupError), this.renderText(getSlotTextContent(this.root, 'group-help'), this.hasGroupHelp), this.renderText(getSlotTextContent(this.root, 'group-label-info'), this.hasGroupLabelInfo)), h(GuxFormFieldVisualLabel, { key: '
|
107
|
+
return (h(GuxFormFieldFieldsetContainer, { key: 'f8f4831a93f54ea356b1902fbf037d897797523f', labelPosition: "above", disabled: this.disabled }, h(GuxFormFieldScreenreaderLabel, { key: '7a8c10ab4a4d4603b3801c1ebdbecc01b6a54433' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
108
|
+
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'group-error'), this.hasGroupError), this.renderText(getSlotTextContent(this.root, 'group-help'), this.hasGroupHelp), this.renderText(getSlotTextContent(this.root, 'group-label-info'), this.hasGroupLabelInfo)), h(GuxFormFieldVisualLabel, { key: '04c17fff48218c66531b6dee9f3d591656121b0d', position: "above", required: this.required }, h("slot", { key: '7f75dd2ed841bffc60c40bc7ed670f9430a64f10', name: "group-label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '52977414d02b4ee2c07e74e3238a6612c11ea7e2', variant: this.indicatorMark, required: this.required }), h("slot", { key: '9e339bbc65c945fb59434dc4727dc85acda9b22a', name: "group-label-info" })), h("slot", { key: 'cfa5ecb0cb906eae359dd2fe33afeff60cf53ec4' }), h(GuxFormFieldError, { key: '39c31179488c93d7476821a53869b1cd416e73e2', show: this.hasGroupError }, h("slot", { key: '4308eb7fad69d59ad0ec2af5a63999376569c8b1', name: "group-error" })), h(GuxFormFieldHelp, { key: 'c8377482e8d2742c632b20795fbd6007ead688ef', show: !this.hasGroupError && this.hasGroupHelp }, h("slot", { key: '55940e9024684cbff7ee46db3ff46b8435f04bab', name: "group-help" }))));
|
104
109
|
}
|
105
110
|
setLabel() {
|
106
111
|
this.label = this.root.querySelector('label[slot="group-label"]');
|
@@ -119,6 +124,48 @@ export class GuxFormFieldRadioGroupBeta {
|
|
119
124
|
}
|
120
125
|
static get properties() {
|
121
126
|
return {
|
127
|
+
"required": {
|
128
|
+
"type": "boolean",
|
129
|
+
"mutable": false,
|
130
|
+
"complexType": {
|
131
|
+
"original": "boolean",
|
132
|
+
"resolved": "boolean",
|
133
|
+
"references": {}
|
134
|
+
},
|
135
|
+
"required": false,
|
136
|
+
"optional": false,
|
137
|
+
"docs": {
|
138
|
+
"tags": [],
|
139
|
+
"text": ""
|
140
|
+
},
|
141
|
+
"attribute": "required",
|
142
|
+
"reflect": false,
|
143
|
+
"defaultValue": "false"
|
144
|
+
},
|
145
|
+
"indicatorMark": {
|
146
|
+
"type": "string",
|
147
|
+
"mutable": false,
|
148
|
+
"complexType": {
|
149
|
+
"original": "GuxFormFieldIndicatorMark",
|
150
|
+
"resolved": "\"optional\" | \"required\"",
|
151
|
+
"references": {
|
152
|
+
"GuxFormFieldIndicatorMark": {
|
153
|
+
"location": "import",
|
154
|
+
"path": "../../gux-form-field.types",
|
155
|
+
"id": "src/components/stable/gux-form-field/gux-form-field.types.ts::GuxFormFieldIndicatorMark"
|
156
|
+
}
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"required": false,
|
160
|
+
"optional": false,
|
161
|
+
"docs": {
|
162
|
+
"tags": [],
|
163
|
+
"text": "Field indicator mark which can show *, (optional) or blank\nDefaults to required. When set to required, the component will display * for required fields and blank for optional\nWhen set to optional, the component will display (optional) for optional and blank for required."
|
164
|
+
},
|
165
|
+
"attribute": "indicator-mark",
|
166
|
+
"reflect": false,
|
167
|
+
"defaultValue": "'required'"
|
168
|
+
},
|
122
169
|
"disabled": {
|
123
170
|
"type": "boolean",
|
124
171
|
"mutable": false,
|
@@ -30,12 +30,12 @@ describe('gux-form-field-radio-beta', () => {
|
|
30
30
|
`
|
31
31
|
<gux-form-field-radio-group-beta>
|
32
32
|
<label slot="group-label">Food</label>
|
33
|
-
|
33
|
+
|
34
34
|
<gux-form-field-radio>
|
35
35
|
<input slot="input" type="radio" name="food-1" value="pizza" />
|
36
36
|
<label slot="label">Pizza</label>
|
37
37
|
</gux-form-field-radio>
|
38
|
-
|
38
|
+
|
39
39
|
<gux-form-field-radio>
|
40
40
|
<input
|
41
41
|
slot="input"
|
@@ -46,7 +46,7 @@ describe('gux-form-field-radio-beta', () => {
|
|
46
46
|
/>
|
47
47
|
<label slot="label">Sandwich</label>
|
48
48
|
</gux-form-field-radio>
|
49
|
-
|
49
|
+
|
50
50
|
<gux-form-field-radio>
|
51
51
|
<input slot="input" type="radio" name="food-1" value="spaghetti" />
|
52
52
|
<label slot="label">Spaghetti</label>
|
@@ -57,12 +57,12 @@ describe('gux-form-field-radio-beta', () => {
|
|
57
57
|
`,
|
58
58
|
`<gux-form-field-radio-group-beta>
|
59
59
|
<label slot="group-label">Food</label>
|
60
|
-
|
60
|
+
|
61
61
|
<gux-form-field-radio>
|
62
62
|
<input slot="input" type="radio" name="food-1" value="pizza" />
|
63
63
|
<label slot="label">Pizza</label>
|
64
64
|
</gux-form-field-radio>
|
65
|
-
|
65
|
+
|
66
66
|
<gux-form-field-radio>
|
67
67
|
<input
|
68
68
|
slot="input"
|
@@ -73,13 +73,13 @@ describe('gux-form-field-radio-beta', () => {
|
|
73
73
|
/>
|
74
74
|
<label slot="label">Sandwich</label>
|
75
75
|
</gux-form-field-radio>
|
76
|
-
|
76
|
+
|
77
77
|
<gux-form-field-radio>
|
78
78
|
<input slot="input" type="radio" name="food-1" value="sushi" />
|
79
79
|
<label slot="label">Sushi</label>
|
80
80
|
<span slot="error">Subject to availibility</span>
|
81
81
|
</gux-form-field-radio>
|
82
|
-
|
82
|
+
|
83
83
|
<gux-form-field-radio>
|
84
84
|
<input slot="input" type="radio" name="food-1" value="spaghetti" />
|
85
85
|
<label slot="label">Spaghetti</label>
|
@@ -117,7 +117,51 @@ describe('gux-form-field-radio-beta', () => {
|
|
117
117
|
<label slot="label">Spaghetti</label>
|
118
118
|
<span slot="help">This is a help message</span>
|
119
119
|
</gux-form-field-radio>
|
120
|
-
</gux-form-field-radio-group-beta
|
120
|
+
</gux-form-field-radio-group-beta>`,
|
121
|
+
`<gux-form-field-radio-group-beta indicator-mark="otpional">
|
122
|
+
<label slot="group-label">Food</label>
|
123
|
+
<gux-form-field-radio>
|
124
|
+
<input slot="input" type="radio" name="food-1" value="pizza" />
|
125
|
+
<label slot="label">Pizza</label>
|
126
|
+
</gux-form-field-radio>
|
127
|
+
|
128
|
+
<gux-form-field-radio>
|
129
|
+
<input slot="input" type="radio" name="food-1" value="sandwich" />
|
130
|
+
<label slot="label">Sandwich</label>
|
131
|
+
</gux-form-field-radio>
|
132
|
+
|
133
|
+
<gux-form-field-radio>
|
134
|
+
<input slot="input" type="radio" name="food-1" value="sushi" />
|
135
|
+
<label slot="label">Sushi</label>
|
136
|
+
</gux-form-field-radio>
|
137
|
+
|
138
|
+
<gux-form-field-radio>
|
139
|
+
<input slot="input" type="radio" name="food-1" value="spaghetti" />
|
140
|
+
<label slot="label">Spaghetti</label>
|
141
|
+
</gux-form-field-radio>
|
142
|
+
</gux-form-field-radio-group-beta>`,
|
143
|
+
`<gux-form-field-radio-group-beta required>
|
144
|
+
<label slot="group-label">Food</label>
|
145
|
+
<gux-form-field-radio>
|
146
|
+
<input slot="input" type="radio" name="food-1" value="pizza" />
|
147
|
+
<label slot="label">Pizza</label>
|
148
|
+
</gux-form-field-radio>
|
149
|
+
|
150
|
+
<gux-form-field-radio>
|
151
|
+
<input slot="input" type="radio" name="food-1" value="sandwich" />
|
152
|
+
<label slot="label">Sandwich</label>
|
153
|
+
</gux-form-field-radio>
|
154
|
+
|
155
|
+
<gux-form-field-radio>
|
156
|
+
<input slot="input" type="radio" name="food-1" value="sushi" />
|
157
|
+
<label slot="label">Sushi</label>
|
158
|
+
</gux-form-field-radio>
|
159
|
+
|
160
|
+
<gux-form-field-radio>
|
161
|
+
<input slot="input" type="radio" name="food-1" value="spaghetti" />
|
162
|
+
<label slot="label">Spaghetti</label>
|
163
|
+
</gux-form-field-radio>
|
164
|
+
</gux-form-field-radio-group-beta>`
|
121
165
|
].forEach((html, index) => {
|
122
166
|
it(`should render component as expected (${index + 1})`, async () => {
|
123
167
|
const page = await newSpecPage({ components, html, language });
|
@@ -114,9 +114,9 @@ export class GuxFormField {
|
|
114
114
|
clearInterval(this.valueWatcherId);
|
115
115
|
}
|
116
116
|
render() {
|
117
|
-
return (h(Host, { key: '
|
117
|
+
return (h(Host, { key: 'db002b685d2d45e6009f39c8764169fcedad462f', class: {
|
118
118
|
'gux-active': this.active
|
119
|
-
} }, h(GuxFormFieldContainer, { key: '
|
119
|
+
} }, h(GuxFormFieldContainer, { key: '3bd4a211a8922871705f3ec89257d65f1759fd45', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '92119c60c0534f2d6b939055c41fd18f51b573a7', required: this.required, position: this.computedLabelPosition }, h("slot", { key: '5f6179ce92020f54ec8bdc7d2045dd7b7e77c344', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '9f1ceea87987e5b5708ba385d54396cc928cb645', variant: this.indicatorMark, required: this.required }), h("slot", { key: '535f26087b83b8ca61514a7bfae91f16a83a9a0b', name: "label-info" })), h("div", { key: 'd5939e7972e0943c57d0d735e1e60d7470e9ff32', class: "gux-input-and-error-container" }, this.renderRangeInput(), h(GuxFormFieldError, { key: '58361330a95e52faa7339d4d7b770261b07a5686', show: this.hasError }, h("slot", { key: '6220c513e60271b94ce974db015805fb39ad308b', name: "error" })), h(GuxFormFieldHelp, { key: 'e550602f315df7f03d650e3ed737a9a47f518043', show: !this.hasError && this.hasHelp }, h("slot", { key: 'fa2a4ee04b93939478d8cd2c14baa0c320d47299', name: "help" }))))));
|
120
120
|
}
|
121
121
|
get variant() {
|
122
122
|
return this.labelPosition ? this.labelPosition.toLowerCase() : 'none';
|
@@ -94,13 +94,13 @@ export class GuxFormFieldSearch {
|
|
94
94
|
}
|
95
95
|
}
|
96
96
|
render() {
|
97
|
-
return (h(GuxFormFieldContainer, { key: '
|
97
|
+
return (h(GuxFormFieldContainer, { key: 'a30394f27a86d20b0e598df66cbdb6bda45bd4d0', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '25a4e6f6c1246e1ff8dd6d3bd5712241e3da476c', required: this.required, position: this.computedLabelPosition }, h("slot", { key: '88d218d2aee11f2c27f7ab60ab6c2f78bfb8883d', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '53c5e9611ef7c53bbfb872852c6f0f910df44161', variant: this.indicatorMark, required: this.required }), h("slot", { key: '8186ebb9d9a1c2b40c9586a39871c72430c4c9f1', name: "label-info" })), h("div", { key: 'f5a5c5eb6ce3dac279aa01f4482ac68d5826ae48', class: "gux-input-and-error-container" }, h("div", { key: '0ff8bd0453cf3e742516dee6151b824d9251e97a', class: {
|
98
98
|
'gux-input': true,
|
99
99
|
'gux-input-error': this.hasError
|
100
|
-
} }, h("div", { key: '
|
100
|
+
} }, h("div", { key: '761b0ac38b6d6412e90d183c2c19f78d7e0ff591', class: {
|
101
101
|
'gux-input-container': true,
|
102
102
|
'gux-disabled': this.disabled
|
103
|
-
}, onClick: () => focusInputElement(this.input) }, h("gux-icon", { key: '
|
103
|
+
}, onClick: () => focusInputElement(this.input) }, h("gux-icon", { key: '41bc95593404332f033f4ea16dee9c5fb6fdcbb0', "icon-name": "fa/magnifying-glass-regular", decorative: true }), h("slot", { key: '25dd3495337b18bb13a36cef9c782b5718fd065a', name: "input" }), this.clearable && this.hasContent && !this.disabled && (h("gux-form-field-input-clear-button", { onClick: () => clearInput(this.input) })))), h(GuxFormFieldError, { key: 'c53231d3f96492b8b2cef987e16d81abecf86f1f', show: this.hasError }, h("slot", { key: '11a60452e6feb101a5e8db771283a206ac30e24d', name: "error" })), h(GuxFormFieldHelp, { key: 'fee2295ee046031446e1f2331a22d7268ed83a60', show: !this.hasError && this.hasHelp }, h("slot", { key: 'b956452e2c38425bb962ae0b7251d7ea7771fea2', name: "help" })))));
|
104
104
|
}
|
105
105
|
get variant() {
|
106
106
|
const labelPositionVariant = this.labelPosition
|
@@ -84,13 +84,13 @@ export class GuxFormFieldSelect {
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
render() {
|
87
|
-
return (h(GuxFormFieldContainer, { key: '
|
87
|
+
return (h(GuxFormFieldContainer, { key: 'b369435896f25fb7ec1325a6b0be5c781fd67efc', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '38901edb2eb3bd3f100d6cf3f132deb60b046896', required: this.required, position: this.computedLabelPosition }, h("slot", { key: 'a89921edc4dbe6986031d28cd9cfb051942d0b75', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: 'bd85f0211926890d31628ec5927ba84b7973f694', variant: this.indicatorMark, required: this.required }), h("slot", { key: 'a332b280ba8eabf29a12e0349a520400bb6dc60a', name: "label-info" })), h("div", { key: '1d4fb4187c5831e4d929e4863d328ee9052e4d82', class: "gux-input-and-error-container" }, h("div", { key: '6c631f4539772e2392ca1543575c30d35cbe1f5d', class: {
|
88
88
|
'gux-input': true,
|
89
89
|
'gux-input-error': this.hasError
|
90
|
-
} }, h("div", { key: '
|
90
|
+
} }, h("div", { key: '02bc02d0cb457ea7e021746be96470941560e6c8', class: {
|
91
91
|
'gux-input-container': true,
|
92
92
|
'gux-disabled': this.disabled
|
93
|
-
} }, h("slot", { key: '
|
93
|
+
} }, h("slot", { key: '205bd13c0311f90e9d43415660c5fa52b12729f4', name: "input" }), h("gux-icon", { key: 'da7a103eea8e102efb4f0f070945efd2251464b6', "icon-name": "custom/chevron-down-small-regular", decorative: true }))), h(GuxFormFieldError, { key: 'aff49e31e92ce372557e9becee4b2bafb7c9e784', show: this.hasError }, h("slot", { key: 'dad5c48492a0b2d9691aa02b88ece74fd72d1a24', name: "error" })), h(GuxFormFieldHelp, { key: '484e6a4559d60f6a106fad7ef283fe9108aca87c', show: !this.hasError && this.hasHelp }, h("slot", { key: '4ced60adf8dad029da74ad51b209550662967b6d', name: "help" })))));
|
94
94
|
}
|
95
95
|
get variant() {
|
96
96
|
const labelPositionVariant = this.labelPosition
|
@@ -88,12 +88,12 @@ export class GuxFormFieldTextarea {
|
|
88
88
|
}
|
89
89
|
}
|
90
90
|
render() {
|
91
|
-
return (h(GuxFormFieldContainer, { key: '
|
91
|
+
return (h(GuxFormFieldContainer, { key: '3ab558e4589ebd613292374d01eed67a10499a20', labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { key: '46d9d2fcf36c5bb731ffadd9df2bab8cc2b18265', required: this.required, position: this.computedLabelPosition }, h("slot", { key: 'f18d23a96d46fa7df87c53a92a82152f942c58e1', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '6c9ff48bbf20bad5844cebd08a26df7ddee084f4', variant: this.indicatorMark, required: this.required }), h("slot", { key: 'd70ab2f2da69b4ff005e6d56d7fedb7e2556a411', name: "label-info" })), h("div", { key: '6bbea9474b4a2a7a988f2cb50fac5caa345f6fdc', class: "gux-input-and-error-container" }, h("div", { key: 'ff32248f326120071dbc6863125d0a1627c5e149', ref: el => (this.textareaContainerElement = el), class: {
|
92
92
|
'gux-input': true,
|
93
93
|
[`gux-resize-${this.resize}`]: true,
|
94
94
|
'gux-disabled': this.disabled,
|
95
95
|
'gux-input-error': this.hasError
|
96
|
-
} }, h("slot", { key: '
|
96
|
+
} }, h("slot", { key: 'd7ea5e54b58900cca265223eca34dc33ab8c37b3', name: "input" })), h(GuxFormFieldError, { key: '5ddfe3bae1acf64b4860331377e5c1e176fbe45e', show: this.hasError }, h("slot", { key: 'd23cf2f4f3b653a56009f3bdd015b24b89c948f3', name: "error" })), h(GuxFormFieldHelp, { key: '6ff0e8b248d2fa2067b3159ca758894821461eab', show: !this.hasError && this.hasHelp }, h("slot", { key: '0d97f94cea4d945e2930d8990672467ca7875bbc', name: "help" })))));
|
97
97
|
}
|
98
98
|
get variant() {
|
99
99
|
const labelPositionVariant = this.labelPosition
|
@@ -93,14 +93,14 @@ export class GuxFormFieldTimePicker {
|
|
93
93
|
}
|
94
94
|
render() {
|
95
95
|
var _a;
|
96
|
-
return (h(GuxFormFieldFieldsetContainer, { key: '
|
97
|
-
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: '
|
96
|
+
return (h(GuxFormFieldFieldsetContainer, { key: '60646429de08f5be22c63509833e16af7d91a5b1', labelPosition: this.computedLabelPosition }, h(GuxFormFieldScreenreaderLabel, { key: '3836dd001b55139f67a4eba1a1b1af8cc48724c5' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
97
|
+
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: 'e92f4bece7a7dcd46ee01c63e0e2bce5dfa4c53c', position: this.computedLabelPosition, required: this.required }, h("slot", { key: '8914ad5937f3ed04f7b06002859172cfc71c02b0', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: 'be970468e71815ab969d1133002197b15cf0946c', variant: this.indicatorMark, required: this.required }), h("slot", { key: 'fb8138911368a0722aea51e0ee46e3d4ee9e2a04', name: "label-info" })), h("div", { key: '9fbe887c3cbd2c7338c36c96bb7347ba943bc6c8', class: "gux-input-and-error-container" }, h("div", { key: '282647ff5019aea33d48a926c2fd49507a4545e8', class: {
|
98
98
|
'gux-input': true,
|
99
99
|
'gux-input-error': this.hasError
|
100
|
-
} }, h("div", { key: '
|
100
|
+
} }, h("div", { key: 'ca0fb7f3caabc2a6ba6e3a84bad1e0a9ca160f6b', class: {
|
101
101
|
'gux-time-picker-container': true,
|
102
102
|
'gux-disabled': this.disabled
|
103
|
-
} }, h("slot", { key: '
|
103
|
+
} }, h("slot", { key: 'eeab7196b9023849030d13c3dacf9c62cba80d92' }))), h(GuxFormFieldError, { key: 'c950dc34f5f7c2d4d194cdfe499f28d80783f0c1', show: this.hasError }, h("slot", { key: '24383262d7a92085c023e8cd69c29e74c7a89d68', name: "error" })), h(GuxFormFieldHelp, { key: '32efe93a351fb63d9159a117233e20641e681a3e', show: !this.hasError && this.hasHelp }, h("slot", { key: 'c30f18a1fa9f225b8d3e1843b588277f36b8e5a4', name: "help" })))));
|
104
104
|
}
|
105
105
|
renderText(text, condition = false) {
|
106
106
|
if (condition) {
|
@@ -94,13 +94,13 @@ export class GuxFormFieldTimeZonePicker {
|
|
94
94
|
}
|
95
95
|
render() {
|
96
96
|
var _a;
|
97
|
-
return (h(GuxFormFieldFieldsetContainer, { key: '
|
98
|
-
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: '
|
97
|
+
return (h(GuxFormFieldFieldsetContainer, { key: '830fe622d4dfd9c8989ec5b8f773b79c91b640c5', labelPosition: this.computedLabelPosition }, h(GuxFormFieldScreenreaderLabel, { key: 'b60a3cc9ad9b51563c50566cd155483a600d25af' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
98
|
+
_a.textContent, this.renderText(this.getI18nValue('required'), this.required), this.renderText(getSlotTextContent(this.root, 'error'), this.hasError), this.renderText(getSlotTextContent(this.root, 'label-info'), this.hasLabelInfo)), h(GuxFormFieldVisualLabel, { key: '2a1bbf884b186e840364613a667491d1df43ca72', position: this.computedLabelPosition, required: this.required }, h("slot", { key: '3b17fd4bbdaea69801e7b94111591f86401e069d', name: "label", onSlotchange: () => this.setLabel() }), h("gux-form-field-label-indicator", { key: '699c71c6aee52ce29377ba8bd586296bac42d82b', variant: this.indicatorMark, required: this.required }), h("slot", { key: '7164f758422720c56e4319eae042870ca698dd42', name: "label-info" })), h("slot", { key: 'cb1e3bf31091ffbf84127d0c4dcc8e46545ca1a6', name: "label-info" }), h("div", { key: '88c5cfd7f100279a3f838c46a53143172ea6b570', class: "gux-input-and-error-container" }, h("div", { key: 'ef3560f089a6afc0f46133ae8a475b1926f69e48', class: {
|
99
99
|
'gux-input': true,
|
100
100
|
'gux-input-error': this.hasError,
|
101
101
|
'gux-time-zone-picker-container': true,
|
102
102
|
'gux-disabled': this.disabled
|
103
|
-
} }, h("slot", { key: '
|
103
|
+
} }, h("slot", { key: '8986a9d1092383d279ad2ab1131403a4c989256e' })), h(GuxFormFieldError, { key: '1b0f957d7041d9f98872143cf3ff17be1aec8b7e', show: this.hasError }, h("slot", { key: '21697dfc6f67fbbbbe83570b650ce9a616e6340d', name: "error" })), h(GuxFormFieldHelp, { key: 'b4a571e7cd42a17d826b64cb70a7e306791760e1', show: !this.hasError && this.hasHelp }, h("slot", { key: '97249df4da2c8b56b196c6d8a9015bb0c4bb11dd', name: "help" })))));
|
104
104
|
}
|
105
105
|
renderText(text, condition = false) {
|
106
106
|
if (condition) {
|
@@ -8,7 +8,7 @@ export class GuxFormFieldInputClearButton {
|
|
8
8
|
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
9
9
|
}
|
10
10
|
render() {
|
11
|
-
return (h("button", { key: '
|
11
|
+
return (h("button", { key: '8e3e3c5de710ef86247ccdf649ff4c9695d7a88b', tabIndex: -1, type: "button", title: this.i18n('clear') }, h("gux-icon", { key: 'f7c35fe3fa03064a90c242e33bcbeffefdaf14c5', "icon-name": "fa/xmark-large-regular", decorative: true })));
|
12
12
|
}
|
13
13
|
static get is() { return "gux-form-field-input-clear-button"; }
|
14
14
|
static get encapsulation() { return "shadow"; }
|