genesys-spark-components 4.67.0 → 4.69.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 +1 -1
- 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 +1 -1
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +12 -7
- package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +190 -0
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +10 -5
- package/dist/cjs/gux-form-field-color.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-file.cjs.entry.js +3 -3
- 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 +9 -9
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-range.cjs.entry.js +8 -7
- package/dist/cjs/gux-form-field-search.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +5 -5
- 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-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- 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-submenu.cjs.entry.js +3 -3
- 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-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/index-7fb02c8c.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-d382fd1a.js → usage-6c10f2a2.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +11 -4
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +10 -5
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +1 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +47 -6
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.css +185 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.js +191 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.service.js +38 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/tests/gux-form-field-checkbox-group.e2e.js +207 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/tests/gux-form-field-checkbox-group.spec.js +128 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +4 -4
- 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.css +4 -4
- 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.css +4 -4
- 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.css +4 -4
- 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.css +4 -4
- 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.css +5 -5
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +6 -5
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +4 -4
- 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.css +4 -4
- 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-text-like/gux-form-field-text-like.css +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +4 -4
- 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.css +4 -4
- 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.css +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 +1 -1
- package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
- 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.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 +1 -1
- 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 +1 -1
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +12 -7
- package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +186 -0
- package/dist/esm/gux-form-field-checkbox.entry.js +11 -6
- package/dist/esm/gux-form-field-color.entry.js +6 -6
- package/dist/esm/gux-form-field-dropdown.entry.js +6 -6
- package/dist/esm/{gux-form-field-error-4d654b58.js → gux-form-field-error-1776797e.js} +1 -1
- package/dist/esm/gux-form-field-file.entry.js +4 -4
- 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 +10 -10
- package/dist/esm/gux-form-field-phone.entry.js +7 -7
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +5 -5
- package/dist/esm/gux-form-field-radio.entry.js +4 -4
- package/dist/esm/gux-form-field-range.entry.js +9 -8
- package/dist/esm/gux-form-field-search.entry.js +6 -6
- package/dist/esm/gux-form-field-select.entry.js +6 -6
- package/dist/esm/gux-form-field-text-like.entry.js +3 -3
- package/dist/esm/gux-form-field-textarea.entry.js +5 -5
- package/dist/esm/gux-form-field-time-picker.entry.js +7 -7
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +6 -6
- 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-menu-option.entry.js +1 -1
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +2 -2
- 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-submenu.entry.js +3 -3
- 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-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/index-da21b737.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-d9544ca5.js → usage-eec56179.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-5ff744f7.entry.js → p-0010b29a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b4c1b03.entry.js → p-02df1a85.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30a3f8f1.entry.js → p-0573ca55.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-064a5739.entry.js +1 -0
- package/dist/genesys-webcomponents/p-06e2970b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-0b822ab1.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ad567813.entry.js → p-0c5ff9a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b55845b.entry.js → p-0f655c72.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-319d7686.entry.js → p-10450b48.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff3ace2e.entry.js → p-1aabb3fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a55ff40.entry.js → p-1d354870.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d1a82e51.entry.js → p-1e5371b8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d803bb14.entry.js → p-1e55d0dd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-212bada6.entry.js +1 -0
- package/dist/genesys-webcomponents/p-26c2db71.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-542e949c.entry.js → p-274c8122.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-287cf6b6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4c01acaa.entry.js → p-2905979c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07387c97.entry.js → p-29baf317.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8ed2eb44.entry.js → p-36c636b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b67d02e.entry.js → p-3710eb71.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-196b7a08.entry.js → p-3934ee84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-05876c11.entry.js → p-396cd09a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82e8d767.entry.js → p-3ec1cae1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9d1e3922.entry.js → p-4375546f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d23b8e5.entry.js → p-446acd62.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-710a3b55.entry.js → p-455d910e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc458e58.js → p-456393e5.js} +1 -1
- package/dist/genesys-webcomponents/{p-55edb338.entry.js → p-45e2c1c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-47870a72.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-25020858.entry.js → p-49a1c24f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dce2bdee.entry.js → p-4c2e929e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d03c5eb5.entry.js → p-4d8c8489.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-547c08b0.entry.js → p-50923f62.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-51c58402.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7cdfe150.entry.js → p-523a2db4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-affb84df.entry.js → p-529793c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c0bdd160.entry.js → p-64f86c60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d194b03.entry.js → p-670489f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21e5df1e.entry.js → p-69f3fc3b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-478e7d6f.entry.js → p-6b6cb6cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a65baf4d.entry.js → p-6c208eeb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff98338a.entry.js → p-6c3fa46e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bca652fb.entry.js → p-6cbe9250.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e97c65c.entry.js → p-6f0d3d52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a04e57a8.entry.js → p-71cdaa99.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-58c07dc4.entry.js → p-72ea814e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd8ea0f4.entry.js → p-737fb2c9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d0845d1.entry.js → p-738bc18d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-76938234.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1011c02a.entry.js → p-769a2fa8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-425eae37.entry.js → p-7715e4c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-890f95aa.entry.js → p-79ee0cbf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7a39c6fd.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-90982c3d.entry.js → p-7c82f117.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7484415.entry.js → p-82051110.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a4ce2796.entry.js → p-84dcb7d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7cf3ac27.entry.js → p-8956037f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-737126d4.entry.js → p-8cbed655.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7c2e28a.entry.js → p-8f6c720b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-91c9d868.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e1e72921.entry.js → p-932f72d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5229e042.entry.js → p-93e225d3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-13fbadce.entry.js → p-96337cbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5039bbb.entry.js → p-97180973.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7fb79bf1.entry.js → p-9abdfc47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff87d3bf.entry.js → p-9bbd4762.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-46889521.entry.js → p-9cc55826.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac72d52e.entry.js → p-9d87d10d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98d6f233.entry.js → p-9e373c3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cb054ecd.entry.js → p-9e6be2ce.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a0eafffb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d261ec63.entry.js → p-a159f63c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c40e829.entry.js → p-a2888a42.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a40f7d99.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-39f22921.entry.js → p-a782c2d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-61c432bc.entry.js → p-ac0f98a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b1a20774.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-109ba0ee.entry.js → p-b2a2fff4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3baea44.entry.js → p-b5dfee03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-48588ead.entry.js → p-b6fdd4ec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6afc3fb3.entry.js → p-b9210b5b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ba049a12.entry.js +1 -0
- package/dist/genesys-webcomponents/p-bca4f4dd.entry.js +1 -0
- package/dist/genesys-webcomponents/p-becf393f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-29b3957a.entry.js → p-bfd1cd05.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f62620e5.entry.js → p-c5a84eef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1ee2c26.entry.js → p-c6448b70.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c77b7a71.entry.js +1 -0
- package/dist/genesys-webcomponents/p-ccee357c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2ce9b2bd.entry.js → p-d34e2d20.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fda286de.entry.js → p-d4005404.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a21e5ab8.entry.js → p-d5e2655b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c3979e6.entry.js → p-d7039017.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-dbbc6add.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b0aad682.entry.js → p-de67dda7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3379cab.entry.js → p-dee370ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0147fd28.entry.js → p-e21f78fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-205d0b4c.entry.js → p-e33dff52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3e87ee5.entry.js → p-e535ba35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-441566d6.entry.js → p-e6f7175b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e7e78b4f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e8b721cc.entry.js → p-ee25620d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c5a8fd75.entry.js → p-f1a37875.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2755cda9.entry.js → p-f4741d5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ddc2b6d.entry.js → p-f5b5b117.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6730b88.entry.js → p-fa050f17.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be423e0e.entry.js → p-fa7b8769.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-faba6b13.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-265b0b57.js → p-fb1ab7b1.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b3d33e6.entry.js → p-fd634640.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-fdb9d5d1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-fffce8fb.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.d.ts +3 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.d.ts +45 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.service.d.ts +6 -0
- package/dist/types/components.d.ts +25 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-09055815.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1328de8d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2807d075.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2947686e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2bd1624d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5fbf83da.entry.js +0 -1
- package/dist/genesys-webcomponents/p-684949ec.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6c91cab5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-78b8274e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7d599d16.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7d946bf6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-81809efd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-851de217.entry.js +0 -1
- package/dist/genesys-webcomponents/p-93734dfe.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9a9da0b2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9b0c010a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a2bc2a58.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ab2ac81d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c4f144c2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ca06a5b1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-debbb17b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e6e21ad1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ee7794d3.entry.js +0 -1
@@ -0,0 +1,185 @@
|
|
1
|
+
/* stylelint-disable-next-line selector-class-pattern */ /* stylelint-disable-next-line selector-class-pattern */
|
2
|
+
/* stylelint-disable-next-line selector-class-pattern */ /* stylelint-disable-next-line selector-class-pattern */
|
3
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
4
|
+
.gux-form-field-fieldset-container {
|
5
|
+
display: flex;
|
6
|
+
min-width: 0;
|
7
|
+
padding: 0;
|
8
|
+
margin: 0;
|
9
|
+
border: none;
|
10
|
+
}
|
11
|
+
.gux-form-field-fieldset-container.gux-beside {
|
12
|
+
flex-direction: row;
|
13
|
+
}
|
14
|
+
.gux-form-field-fieldset-container.gux-above {
|
15
|
+
flex-direction: column;
|
16
|
+
}
|
17
|
+
|
18
|
+
.gux-form-field-error {
|
19
|
+
display: none;
|
20
|
+
flex-direction: row;
|
21
|
+
flex-wrap: nowrap;
|
22
|
+
gap: var(--gse-ui-formControl-helper-gap);
|
23
|
+
place-content: stretch flex-start;
|
24
|
+
align-items: center;
|
25
|
+
padding: var(--gse-ui-formControl-helper-errorPadding);
|
26
|
+
font-family: var(--gse-ui-formControl-helper-helperText-fontFamily);
|
27
|
+
font-size: var(--gse-ui-formControl-helper-helperText-fontSize);
|
28
|
+
line-height: var(--gse-ui-formControl-helper-helperText-lineHeight);
|
29
|
+
color: var(--gse-ui-formControl-helper-errorColor);
|
30
|
+
}
|
31
|
+
.gux-form-field-error.gux-show {
|
32
|
+
display: flex;
|
33
|
+
}
|
34
|
+
.gux-form-field-error gux-icon {
|
35
|
+
flex: 0 1 auto;
|
36
|
+
align-self: start;
|
37
|
+
order: 0;
|
38
|
+
min-width: var(--gse-ui-icon-size-sm);
|
39
|
+
min-height: var(--gse-ui-icon-size-sm);
|
40
|
+
color: var(--gse-ui-formControl-helper-errorColor);
|
41
|
+
}
|
42
|
+
.gux-form-field-error .gux-message {
|
43
|
+
flex: 0 1 auto;
|
44
|
+
align-self: auto;
|
45
|
+
order: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
.gux-form-field-help {
|
49
|
+
display: none;
|
50
|
+
flex-direction: row;
|
51
|
+
flex-wrap: nowrap;
|
52
|
+
place-content: stretch flex-start;
|
53
|
+
align-items: flex-start;
|
54
|
+
justify-content: flex-start;
|
55
|
+
padding: var(--gse-ui-formControl-helper-paddingSmall);
|
56
|
+
font-family: var(--gse-ui-formControl-helper-helperText-fontFamily);
|
57
|
+
font-size: var(--gse-ui-formControl-helper-helperText-fontSize);
|
58
|
+
line-height: var(--gse-ui-formControl-helper-helperText-lineHeight);
|
59
|
+
color: var(--gse-ui-formControl-helper-defaultColor);
|
60
|
+
}
|
61
|
+
.gux-form-field-help.gux-show {
|
62
|
+
display: flex;
|
63
|
+
}
|
64
|
+
.gux-form-field-help .gux-message {
|
65
|
+
flex: 0 1 auto;
|
66
|
+
align-self: none;
|
67
|
+
order: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
.gux-form-field-error {
|
71
|
+
display: none;
|
72
|
+
flex-direction: row;
|
73
|
+
flex-wrap: nowrap;
|
74
|
+
gap: var(--gse-ui-formControl-helper-gap);
|
75
|
+
place-content: stretch flex-start;
|
76
|
+
align-items: center;
|
77
|
+
padding: var(--gse-ui-formControl-helper-errorPadding);
|
78
|
+
font-family: var(--gse-ui-formControl-helper-helperText-fontFamily);
|
79
|
+
font-size: var(--gse-ui-formControl-helper-helperText-fontSize);
|
80
|
+
line-height: var(--gse-ui-formControl-helper-helperText-lineHeight);
|
81
|
+
color: var(--gse-ui-formControl-helper-errorColor);
|
82
|
+
}
|
83
|
+
.gux-form-field-error.gux-show {
|
84
|
+
display: flex;
|
85
|
+
}
|
86
|
+
.gux-form-field-error gux-icon {
|
87
|
+
flex: 0 1 auto;
|
88
|
+
align-self: start;
|
89
|
+
order: 0;
|
90
|
+
min-width: var(--gse-ui-icon-size-sm);
|
91
|
+
min-height: var(--gse-ui-icon-size-sm);
|
92
|
+
color: var(--gse-ui-formControl-helper-errorColor);
|
93
|
+
}
|
94
|
+
.gux-form-field-error .gux-message {
|
95
|
+
flex: 0 1 auto;
|
96
|
+
align-self: auto;
|
97
|
+
order: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
.gux-form-field-help {
|
101
|
+
display: none;
|
102
|
+
flex-direction: row;
|
103
|
+
flex-wrap: nowrap;
|
104
|
+
place-content: stretch flex-start;
|
105
|
+
align-items: flex-start;
|
106
|
+
justify-content: flex-start;
|
107
|
+
padding: var(--gse-ui-formControl-helper-paddingSmall);
|
108
|
+
font-family: var(--gse-ui-formControl-helper-helperText-fontFamily);
|
109
|
+
font-size: var(--gse-ui-formControl-helper-helperText-fontSize);
|
110
|
+
line-height: var(--gse-ui-formControl-helper-helperText-lineHeight);
|
111
|
+
color: var(--gse-ui-formControl-helper-defaultColor);
|
112
|
+
}
|
113
|
+
.gux-form-field-help.gux-show {
|
114
|
+
display: flex;
|
115
|
+
}
|
116
|
+
.gux-form-field-help .gux-message {
|
117
|
+
flex: 0 1 auto;
|
118
|
+
align-self: none;
|
119
|
+
order: 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
.gux-form-field-visual-label {
|
123
|
+
display: inline-flex;
|
124
|
+
flex: 1 0 auto;
|
125
|
+
}
|
126
|
+
.gux-form-field-visual-label ::slotted(gux-label-info-beta) {
|
127
|
+
padding-inline-start: var(--gse-ui-formControl-label-gap);
|
128
|
+
}
|
129
|
+
.gux-form-field-visual-label.gux-required gux-form-field-label-indicator {
|
130
|
+
padding-inline-start: var(--gse-ui-formControl-label-gap);
|
131
|
+
}
|
132
|
+
.gux-form-field-visual-label.gux-beside {
|
133
|
+
position: relative;
|
134
|
+
top: var(--gse-ui-formControl-input-top);
|
135
|
+
width: fit-content;
|
136
|
+
min-width: var(--gse-ui-formControl-input-textfield-minWidth);
|
137
|
+
max-width: fit-content;
|
138
|
+
margin-right: var(--gse-ui-formControl-group-gapItems);
|
139
|
+
}
|
140
|
+
.gux-form-field-visual-label.gux-above {
|
141
|
+
padding: var(--gse-ui-formControl-label-padding);
|
142
|
+
}
|
143
|
+
.gux-form-field-visual-label.gux-screenreader {
|
144
|
+
display: none;
|
145
|
+
}
|
146
|
+
|
147
|
+
.gux-form-field-screenreader-label {
|
148
|
+
position: absolute;
|
149
|
+
top: auto;
|
150
|
+
left: -10000px;
|
151
|
+
width: 1px;
|
152
|
+
height: 1px;
|
153
|
+
overflow: hidden;
|
154
|
+
}
|
155
|
+
|
156
|
+
:host {
|
157
|
+
display: block;
|
158
|
+
}
|
159
|
+
|
160
|
+
:host([disabled]) .gux-form-field-legend-label {
|
161
|
+
opacity: var(--gse-ui-formControl-input-disabled-opacity);
|
162
|
+
}
|
163
|
+
|
164
|
+
::slotted(gux-form-field-checkbox) {
|
165
|
+
padding-top: var(--gse-ui-formControl-group-gapItems);
|
166
|
+
}
|
167
|
+
|
168
|
+
::slotted(gux-form-field-checkbox:first-of-type) {
|
169
|
+
padding-top: 0;
|
170
|
+
}
|
171
|
+
|
172
|
+
:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox) {
|
173
|
+
padding-left: 24px;
|
174
|
+
}
|
175
|
+
:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox) {
|
176
|
+
padding-left: 0;
|
177
|
+
}
|
178
|
+
|
179
|
+
.gux-form-field-legend-label {
|
180
|
+
font-family: var(--gse-ui-formControl-label-text-fontFamily);
|
181
|
+
font-size: var(--gse-ui-formControl-label-text-fontSize);
|
182
|
+
font-weight: var(--gse-ui-formControl-label-text-fontWeight);
|
183
|
+
line-height: var(--gse-ui-formControl-label-text-lineHeight);
|
184
|
+
color: var(--gse-ui-formControl-label-labelColor);
|
185
|
+
}
|
@@ -0,0 +1,191 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
7
|
+
if (d = decorators[i])
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
10
|
+
};
|
11
|
+
import { forceUpdate, h } from "@stencil/core";
|
12
|
+
import { OnMutation } from "../../../../../utils/decorator/on-mutation";
|
13
|
+
import { hasSlot } from "../../../../../utils/dom/has-slot";
|
14
|
+
import { logWarn } from "../../../../../utils/error/log-error";
|
15
|
+
import { setAllCheckboxInputs, setParentCheckboxElementCheckedState } from "./gux-form-field-checkbox-group.service";
|
16
|
+
import { GuxFormFieldError, GuxFormFieldHelp, GuxFormFieldScreenreaderLabel, GuxFormFieldVisualLabel, GuxFormFieldFieldsetContainer } from "../../functional-components/functional-components";
|
17
|
+
import { getSlotTextContent } from "../../../../../utils/dom/get-slot-text-content";
|
18
|
+
import { trackComponent } from "../../../../../utils/tracking/usage";
|
19
|
+
/**
|
20
|
+
* @slot group-label - Required slot for label tag
|
21
|
+
* @slot group-checkbox - Optional slot
|
22
|
+
* @slot group-error - Optional slot for error message
|
23
|
+
* @slot group-help - Optional slot for help message
|
24
|
+
*/
|
25
|
+
export class GuxFormFieldCheckboxGroupBeta {
|
26
|
+
constructor() {
|
27
|
+
this.hasGroupError = false;
|
28
|
+
this.hasGroupHelp = false;
|
29
|
+
this.hasGroupLabelInfo = false;
|
30
|
+
this.disabled = false;
|
31
|
+
}
|
32
|
+
watchGroupError(hasGroupError) {
|
33
|
+
const checkboxSlots = this.root.querySelectorAll('gux-form-field-checkbox');
|
34
|
+
if (checkboxSlots) {
|
35
|
+
checkboxSlots.forEach(item => {
|
36
|
+
item.hasGroupError = hasGroupError;
|
37
|
+
});
|
38
|
+
}
|
39
|
+
}
|
40
|
+
watchDisabled() {
|
41
|
+
this.setDisabledCheckboxes();
|
42
|
+
}
|
43
|
+
onMutation() {
|
44
|
+
this.hasGroupError = hasSlot(this.root, 'group-error');
|
45
|
+
this.hasGroupHelp = hasSlot(this.root, 'group-help');
|
46
|
+
this.hasGroupLabelInfo = hasSlot(this.root, 'group-label-info');
|
47
|
+
}
|
48
|
+
componentWillLoad() {
|
49
|
+
this.hasGroupError = hasSlot(this.root, 'group-error');
|
50
|
+
this.hasGroupHelp = hasSlot(this.root, 'group-help');
|
51
|
+
this.hasGroupLabelInfo = hasSlot(this.root, 'group-label-info');
|
52
|
+
this.setLabel();
|
53
|
+
this.setDisabledCheckboxes();
|
54
|
+
trackComponent(this.root);
|
55
|
+
}
|
56
|
+
componentDidLoad() {
|
57
|
+
setParentCheckboxElementCheckedState(this.root, this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'));
|
58
|
+
}
|
59
|
+
disconnectedCallback() {
|
60
|
+
if (this.disabledObserver) {
|
61
|
+
this.disabledObserver.disconnect();
|
62
|
+
}
|
63
|
+
}
|
64
|
+
getGroupCheckboxElement() {
|
65
|
+
return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input');
|
66
|
+
}
|
67
|
+
setDisabledCheckboxes() {
|
68
|
+
const checkboxSlots = this.root.querySelectorAll('gux-form-field-checkbox');
|
69
|
+
if (checkboxSlots) {
|
70
|
+
checkboxSlots.forEach(item => {
|
71
|
+
item.hasGroupDisabled = this.disabled;
|
72
|
+
});
|
73
|
+
}
|
74
|
+
}
|
75
|
+
onMainCheckboxChange() {
|
76
|
+
const groupCheckbox = this.getGroupCheckboxElement();
|
77
|
+
setAllCheckboxInputs(this.root, groupCheckbox.checked);
|
78
|
+
forceUpdate(this.root);
|
79
|
+
}
|
80
|
+
setupNestedCheckboxes() {
|
81
|
+
this.warnMultipleGroupCheckbox();
|
82
|
+
this.warnGroupCheckboxNameAttr();
|
83
|
+
const groupCheckbox = this.getGroupCheckboxElement();
|
84
|
+
if (groupCheckbox) {
|
85
|
+
this.root.classList.add('gux-group-checkbox');
|
86
|
+
}
|
87
|
+
else {
|
88
|
+
this.root.classList.remove('gux-group-checkbox');
|
89
|
+
}
|
90
|
+
groupCheckbox === null || groupCheckbox === void 0 ? void 0 : groupCheckbox.addEventListener('change', () => {
|
91
|
+
this.onMainCheckboxChange();
|
92
|
+
});
|
93
|
+
this.initialSetNestedCheckboxes(groupCheckbox === null || groupCheckbox === void 0 ? void 0 : groupCheckbox.checked);
|
94
|
+
}
|
95
|
+
initialSetNestedCheckboxes(groupCheckboxChecked) {
|
96
|
+
const checkboxSlots = Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));
|
97
|
+
if (checkboxSlots === null || checkboxSlots === void 0 ? void 0 : checkboxSlots.length) {
|
98
|
+
checkboxSlots.forEach(item => {
|
99
|
+
item.addEventListener('change', () => {
|
100
|
+
this.updateMainCheckbox();
|
101
|
+
});
|
102
|
+
if (groupCheckboxChecked && !item.disabled) {
|
103
|
+
item.checked = true;
|
104
|
+
}
|
105
|
+
});
|
106
|
+
}
|
107
|
+
}
|
108
|
+
warnMultipleGroupCheckbox() {
|
109
|
+
const groupCheckboxList = this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');
|
110
|
+
if ((groupCheckboxList === null || groupCheckboxList === void 0 ? void 0 : groupCheckboxList.length) > 1) {
|
111
|
+
logWarn(this.root, 'Can only have one group checkbox');
|
112
|
+
}
|
113
|
+
}
|
114
|
+
warnGroupCheckboxNameAttr() {
|
115
|
+
const groupCheckbox = this.getGroupCheckboxElement();
|
116
|
+
if (groupCheckbox === null || groupCheckbox === void 0 ? void 0 : groupCheckbox.hasAttribute('name')) {
|
117
|
+
logWarn(this.root, 'Group checkbox should not have a name attribute');
|
118
|
+
}
|
119
|
+
}
|
120
|
+
updateMainCheckbox() {
|
121
|
+
setParentCheckboxElementCheckedState(this.root, this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'));
|
122
|
+
forceUpdate(this.root);
|
123
|
+
}
|
124
|
+
renderText(text, condition = false) {
|
125
|
+
if (condition) {
|
126
|
+
return ' ' + text;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
render() {
|
130
|
+
var _a;
|
131
|
+
return (h(GuxFormFieldFieldsetContainer, { key: '71fd89d19477a795bcb43caedf9841294f179ea3', labelPosition: "above" }, h(GuxFormFieldScreenreaderLabel, { key: 'a6ddbcf86c5145d1b207e600ce6f8fbf85bba3b4' }, (_a = this.label) === null || _a === void 0 ? void 0 :
|
132
|
+
_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: '2e1931fb4633b12231f96e974fb3cee990487d1b', position: "above", required: false }, h("slot", { key: 'eaf4cdc9230123ff75052e40246115b369342d61', name: "group-label", onSlotchange: () => this.setLabel() }), h("slot", { key: '308d9770d17ee92aa96314c85ba09b0296af3866', name: "group-label-info" })), h("slot", { key: '1244cae1a7294cf0a559517d6da489d803840604', onSlotchange: () => this.setupNestedCheckboxes(), name: "group-checkbox" }), h("slot", { key: 'c08f355f65c1fa0111b710b04293d32f4a77cb4f', onSlotchange: () => this.updateMainCheckbox() }), h(GuxFormFieldError, { key: 'be714daba2e9e9ea7396558e7b0fde5b894eef85', show: this.hasGroupError }, h("slot", { key: 'b34898b5a5b075d3b7bf4c70fe61ab43e3500478', name: "group-error" })), h(GuxFormFieldHelp, { key: 'a204e871f9fb6b1642a245b5ea619b9b91608e8a', show: !this.hasGroupError && this.hasGroupHelp }, h("slot", { key: '6398b2e744a7368e6fc7873c715d137f6e4bcd7a', name: "group-help" }))));
|
133
|
+
}
|
134
|
+
setLabel() {
|
135
|
+
this.label = this.root.querySelector('label[slot="group-label"]');
|
136
|
+
}
|
137
|
+
static get is() { return "gux-form-field-checkbox-group-beta"; }
|
138
|
+
static get encapsulation() { return "shadow"; }
|
139
|
+
static get originalStyleUrls() {
|
140
|
+
return {
|
141
|
+
"$": ["gux-form-field-checkbox-group.scss"]
|
142
|
+
};
|
143
|
+
}
|
144
|
+
static get styleUrls() {
|
145
|
+
return {
|
146
|
+
"$": ["gux-form-field-checkbox-group.css"]
|
147
|
+
};
|
148
|
+
}
|
149
|
+
static get properties() {
|
150
|
+
return {
|
151
|
+
"disabled": {
|
152
|
+
"type": "boolean",
|
153
|
+
"mutable": false,
|
154
|
+
"complexType": {
|
155
|
+
"original": "boolean",
|
156
|
+
"resolved": "boolean",
|
157
|
+
"references": {}
|
158
|
+
},
|
159
|
+
"required": false,
|
160
|
+
"optional": false,
|
161
|
+
"docs": {
|
162
|
+
"tags": [],
|
163
|
+
"text": "Disables the checkboxes in the group."
|
164
|
+
},
|
165
|
+
"attribute": "disabled",
|
166
|
+
"reflect": false,
|
167
|
+
"defaultValue": "false"
|
168
|
+
}
|
169
|
+
};
|
170
|
+
}
|
171
|
+
static get states() {
|
172
|
+
return {
|
173
|
+
"hasGroupError": {},
|
174
|
+
"hasGroupHelp": {},
|
175
|
+
"hasGroupLabelInfo": {}
|
176
|
+
};
|
177
|
+
}
|
178
|
+
static get elementRef() { return "root"; }
|
179
|
+
static get watchers() {
|
180
|
+
return [{
|
181
|
+
"propName": "hasGroupError",
|
182
|
+
"methodName": "watchGroupError"
|
183
|
+
}, {
|
184
|
+
"propName": "disabled",
|
185
|
+
"methodName": "watchDisabled"
|
186
|
+
}];
|
187
|
+
}
|
188
|
+
}
|
189
|
+
__decorate([
|
190
|
+
OnMutation({ childList: true, subtree: true })
|
191
|
+
], GuxFormFieldCheckboxGroupBeta.prototype, "onMutation", null);
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import simulateNativeEvent from "../../../../../utils/dom/simulate-native-event";
|
2
|
+
export function setAllCheckboxInputs(root, checked) {
|
3
|
+
getNestedCheckboxInputs(root).forEach(checkboxInput => {
|
4
|
+
if (checkboxInput.checked !== checked && !checkboxInput.disabled) {
|
5
|
+
checkboxInput.checked = checked;
|
6
|
+
simulateNativeEvent(checkboxInput, 'input');
|
7
|
+
simulateNativeEvent(checkboxInput, 'change');
|
8
|
+
}
|
9
|
+
});
|
10
|
+
}
|
11
|
+
export function setParentCheckboxElementCheckedState(root, mainCheckboxElement) {
|
12
|
+
if (mainCheckboxElement) {
|
13
|
+
const { checkedCheckboxes, totalCheckboxes } = getSelectedColumnCount(root);
|
14
|
+
if (checkedCheckboxes === 0) {
|
15
|
+
mainCheckboxElement.indeterminate = false;
|
16
|
+
mainCheckboxElement.checked = false;
|
17
|
+
}
|
18
|
+
else if (checkedCheckboxes === totalCheckboxes) {
|
19
|
+
mainCheckboxElement.indeterminate = false;
|
20
|
+
mainCheckboxElement.checked = true;
|
21
|
+
}
|
22
|
+
else {
|
23
|
+
mainCheckboxElement.indeterminate = true;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
export function getSelectedColumnCount(root) {
|
28
|
+
const totalCheckboxes = getNestedCheckboxInputs(root).length;
|
29
|
+
const checkedCheckboxes = getCheckedCheckboxInputs(root).length;
|
30
|
+
return { checkedCheckboxes, totalCheckboxes };
|
31
|
+
}
|
32
|
+
function getNestedCheckboxInputs(root) {
|
33
|
+
return Array.from(root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'));
|
34
|
+
}
|
35
|
+
function getCheckedCheckboxInputs(root) {
|
36
|
+
const checkboxInputs = getNestedCheckboxInputs(root);
|
37
|
+
return checkboxInputs.filter(x => x.checked);
|
38
|
+
}
|
@@ -0,0 +1,207 @@
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
2
|
+
import { newSparkE2EPage, a11yCheck } from "../../../../../../test/e2eTestUtils";
|
3
|
+
const axeExclusions = [
|
4
|
+
{
|
5
|
+
issueId: 'color-contrast',
|
6
|
+
target: 'gux-form-field-checkbox-group-beta,span',
|
7
|
+
exclusionReason: 'WCAG 1.4.3 Contrast (Minimum), inactive user interface components do not need to meet contrast minimum'
|
8
|
+
},
|
9
|
+
{
|
10
|
+
issueId: 'color-contrast',
|
11
|
+
target: 'gux-form-field-checkbox-group-beta,span[role="presentation"]',
|
12
|
+
exclusionReason: 'WCAG 1.4.3 Contrast (Minimum), inactive user interface components do not need to meet contrast minimum'
|
13
|
+
}
|
14
|
+
];
|
15
|
+
async function newNonrandomE2EPage({ html }) {
|
16
|
+
const page = await newE2EPage();
|
17
|
+
await page.evaluateOnNewDocument(() => {
|
18
|
+
Math.random = () => 0.5;
|
19
|
+
});
|
20
|
+
await page.setContent(html);
|
21
|
+
await page.waitForChanges();
|
22
|
+
return page;
|
23
|
+
}
|
24
|
+
describe('gux-form-field-checkbox-group-beta', () => {
|
25
|
+
describe('#render', () => {
|
26
|
+
[
|
27
|
+
`
|
28
|
+
<gux-form-field-checkbox-group-beta>
|
29
|
+
<label slot="group-label">Food</label>
|
30
|
+
<gux-form-field-checkbox>
|
31
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza"/>
|
32
|
+
<label slot="label">Pizza</label>
|
33
|
+
</gux-form-field-checkbox>
|
34
|
+
</gux-form-field-checkbox-group-beta>
|
35
|
+
`,
|
36
|
+
`
|
37
|
+
<gux-form-field-checkbox-group-beta>
|
38
|
+
<label slot="group-label">Food</label>
|
39
|
+
|
40
|
+
<gux-form-field-checkbox>
|
41
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza" />
|
42
|
+
<label slot="label">Pizza</label>
|
43
|
+
</gux-form-field-checkbox>
|
44
|
+
|
45
|
+
<gux-form-field-checkbox>
|
46
|
+
<input
|
47
|
+
slot="input"
|
48
|
+
type="checkbox"
|
49
|
+
name="food-1"
|
50
|
+
value="sandwich"
|
51
|
+
disabled
|
52
|
+
/>
|
53
|
+
<label slot="label">Sandwich</label>
|
54
|
+
</gux-form-field-checkbox>
|
55
|
+
|
56
|
+
<gux-form-field-checkbox>
|
57
|
+
<input slot="input" type="checkbox" name="food-1" value="spaghetti" />
|
58
|
+
<label slot="label">Spaghetti</label>
|
59
|
+
<span slot="help">This is a help message</span>
|
60
|
+
</gux-form-field-checkbox>
|
61
|
+
<span slot="group-error">Subject to availibility</span>
|
62
|
+
</gux-form-field-checkbox-group-beta>
|
63
|
+
`,
|
64
|
+
`<gux-form-field-checkbox-group-beta>
|
65
|
+
<label slot="group-label">Food</label>
|
66
|
+
|
67
|
+
<gux-form-field-checkbox>
|
68
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza" />
|
69
|
+
<label slot="label">Pizza</label>
|
70
|
+
</gux-form-field-checkbox>
|
71
|
+
|
72
|
+
<gux-form-field-checkbox>
|
73
|
+
<input
|
74
|
+
slot="input"
|
75
|
+
type="checkbox"
|
76
|
+
name="food-1"
|
77
|
+
value="sandwich"
|
78
|
+
disabled
|
79
|
+
/>
|
80
|
+
<label slot="label">Sandwich</label>
|
81
|
+
</gux-form-field-checkbox>
|
82
|
+
|
83
|
+
<gux-form-field-checkbox>
|
84
|
+
<input slot="input" type="checkbox" name="food-1" value="sushi" />
|
85
|
+
<label slot="label">Sushi</label>
|
86
|
+
<span slot="error">Subject to availibility</span>
|
87
|
+
</gux-form-field-checkbox>
|
88
|
+
|
89
|
+
<gux-form-field-checkbox>
|
90
|
+
<input slot="input" type="checkbox" name="food-1" value="spaghetti" />
|
91
|
+
<label slot="label">Spaghetti</label>
|
92
|
+
<span slot="help">This is a help message</span>
|
93
|
+
</gux-form-field-checkbox>
|
94
|
+
<span slot="group-help">This is a group help message</span>
|
95
|
+
</gux-form-field-checkbox-group-beta>`,
|
96
|
+
` <gux-form-field-checkbox-group-beta disabled>
|
97
|
+
<label slot="group-label">Food</label>
|
98
|
+
|
99
|
+
<gux-form-field-checkbox>
|
100
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza" />
|
101
|
+
<label slot="label">Pizza</label>
|
102
|
+
</gux-form-field-checkbox>
|
103
|
+
|
104
|
+
<gux-form-field-checkbox>
|
105
|
+
<input
|
106
|
+
slot="input"
|
107
|
+
type="checkbox"
|
108
|
+
name="food-1"
|
109
|
+
value="sandwich"
|
110
|
+
disabled
|
111
|
+
/>
|
112
|
+
<label slot="label">Sandwich</label>
|
113
|
+
</gux-form-field-checkbox>
|
114
|
+
|
115
|
+
<gux-form-field-checkbox>
|
116
|
+
<input slot="input" type="checkbox" name="food-1" value="sushi" />
|
117
|
+
<label slot="label">Sushi</label>
|
118
|
+
</gux-form-field-checkbox>
|
119
|
+
|
120
|
+
<gux-form-field-checkbox>
|
121
|
+
<input slot="input" type="checkbox" name="food-1" value="spaghetti" />
|
122
|
+
<label slot="label">Spaghetti</label>
|
123
|
+
</gux-form-field-checkbox>
|
124
|
+
</gux-form-field-checkbox-group-beta>`
|
125
|
+
].forEach((html, index) => {
|
126
|
+
it(`should render component as expected (${index + 1})`, async () => {
|
127
|
+
const page = await newNonrandomE2EPage({ html });
|
128
|
+
const element = await page.find('gux-form-field-checkbox');
|
129
|
+
const elementShadowDom = await element.find('pierce/.gux-form-field-container');
|
130
|
+
expect(element.outerHTML).toMatchSnapshot();
|
131
|
+
expect(elementShadowDom).toMatchSnapshot();
|
132
|
+
});
|
133
|
+
it(`should be accessible (${index + 1})`, async () => {
|
134
|
+
const page = await newSparkE2EPage({ html });
|
135
|
+
await a11yCheck(page, axeExclusions);
|
136
|
+
});
|
137
|
+
});
|
138
|
+
});
|
139
|
+
it('switches between states when clicked', async () => {
|
140
|
+
const page = await newSparkE2EPage({
|
141
|
+
html: `
|
142
|
+
<gux-form-field-checkbox-group-beta>
|
143
|
+
<label slot="label">Food</label>
|
144
|
+
<gux-form-field-checkbox id="pizza">
|
145
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza"/>
|
146
|
+
<label slot="label">Pizza</label>
|
147
|
+
</gux-form-field-checkbox>
|
148
|
+
<gux-form-field-checkbox id="pasta">
|
149
|
+
<input slot="input" type="checkbox" name="food-1" value="pasta"/>
|
150
|
+
<label slot="label">Pasta</label>
|
151
|
+
</gux-form-field-checkbox>
|
152
|
+
</gux-form-field-checkbox-group-beta>
|
153
|
+
|
154
|
+
`
|
155
|
+
});
|
156
|
+
const pizzaElement = await page.find('#pizza');
|
157
|
+
const pizzaLabel = await pizzaElement.find('label');
|
158
|
+
const pizzaInput = await pizzaElement.find('input');
|
159
|
+
const pastaElement = await page.find('#pasta');
|
160
|
+
const pastaLabel = await pastaElement.find('label');
|
161
|
+
const pastaInput = await pastaElement.find('input');
|
162
|
+
await a11yCheck(page, axeExclusions, 'Before checking checkbox');
|
163
|
+
await pizzaLabel.click();
|
164
|
+
await page.waitForChanges();
|
165
|
+
expect(await pizzaInput.getProperty('checked')).toBe(true);
|
166
|
+
expect(await pastaInput.getProperty('checked')).toBe(false);
|
167
|
+
await a11yCheck(page, axeExclusions, 'After checking checkbox');
|
168
|
+
await pastaLabel.click();
|
169
|
+
await page.waitForChanges();
|
170
|
+
expect(await pizzaInput.getProperty('checked')).toBe(true);
|
171
|
+
expect(await pastaInput.getProperty('checked')).toBe(true);
|
172
|
+
});
|
173
|
+
it('disables the slotted form field checkbox inputs', async () => {
|
174
|
+
const page = await newSparkE2EPage({
|
175
|
+
html: `
|
176
|
+
<gux-form-field-checkbox-group-beta disabled>
|
177
|
+
<label slot="label">Food</label>
|
178
|
+
<gux-form-field-checkbox id="pizza">
|
179
|
+
<input slot="input" type="checkbox" name="food-1" value="pizza"/>
|
180
|
+
<label slot="label">Pizza</label>
|
181
|
+
</gux-form-field-checkbox>
|
182
|
+
<gux-form-field-checkbox id="pasta">
|
183
|
+
<input slot="input" type="checkbox" name="food-1" value="pasta"/>
|
184
|
+
<label slot="label">Pasta</label>
|
185
|
+
</gux-form-field-checkbox>
|
186
|
+
</gux-form-field-checkbox-group-beta>
|
187
|
+
|
188
|
+
`
|
189
|
+
});
|
190
|
+
const pizzaElement = await page.find('#pizza');
|
191
|
+
const pizzaLabel = await pizzaElement.find('label');
|
192
|
+
const pizzaInput = await pizzaElement.find('input');
|
193
|
+
const pastaElement = await page.find('#pasta');
|
194
|
+
const pastaLabel = await pastaElement.find('label');
|
195
|
+
const pastaInput = await pastaElement.find('input');
|
196
|
+
await a11yCheck(page, axeExclusions, 'Before checking checkbox');
|
197
|
+
await pizzaLabel.click();
|
198
|
+
await page.waitForChanges();
|
199
|
+
expect(await pizzaInput.getProperty('checked')).toBe(false);
|
200
|
+
expect(await pastaInput.getProperty('checked')).toBe(false);
|
201
|
+
await a11yCheck(page, axeExclusions, 'After checking checkbox');
|
202
|
+
await pastaLabel.click();
|
203
|
+
await page.waitForChanges();
|
204
|
+
expect(await pizzaInput.getProperty('checked')).toBe(false);
|
205
|
+
expect(await pastaInput.getProperty('checked')).toBe(false);
|
206
|
+
});
|
207
|
+
});
|