genesys-spark-components 4.86.0 → 4.88.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-section.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +2 -2
- 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 +2 -2
- 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-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +2 -2
- package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
- package/dist/cjs/{gux-form-field-number_3.cjs.entry.js → gux-button_4.cjs.entry.js} +76 -6
- package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
- package/dist/cjs/gux-card.cjs.entry.js +2 -2
- package/dist/cjs/gux-column-manager-item.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 +2 -2
- package/dist/cjs/gux-context-menu.cjs.entry.js +2 -2
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +2 -2
- package/dist/cjs/gux-create-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +2 -2
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +4 -4
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-description.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
- 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-phone.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-fieldset-heading.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-footer.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-heading.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-inline-alert.cjs.entry.js +2 -2
- package/dist/cjs/gux-label-info-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -2
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-list_2.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +11 -10
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +4 -3
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +4 -3
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-popover-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-radial-loading.cjs.entry.js +4 -4
- package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- 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-segmented-control-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-card-beta.cjs.entry.js +2 -2
- 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-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +2 -2
- package/dist/cjs/gux-submenu.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-legacy.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 +1 -1
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +6 -4
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +7 -5
- package/dist/cjs/gux-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/index-79505d14.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{time-zone-0f8f2166.js → time-zone-f7671cab.js} +551 -449
- package/dist/cjs/{usage-ca6a2ac1.js → usage-2a268e04.js} +4 -4
- package/dist/collection/components/beta/gux-avatar/gux-avatar-change-photo/gux-avatar-change-photo.css +2 -2
- package/dist/collection/components/beta/gux-avatar/gux-avatar.css +1 -1
- package/dist/collection/components/beta/gux-calendar-beta/components/single/gux-calendar.css +1 -1
- package/dist/collection/components/beta/gux-form/gux-form-description/gux-form-description.css +5 -5
- package/dist/collection/components/beta/gux-form/gux-form-fieldset-heading/gux-form-fieldset-heading.css +5 -5
- package/dist/collection/components/beta/gux-form/gux-form-footer/gux-form-footer.css +1 -1
- package/dist/collection/components/beta/gux-form/gux-form-heading/gux-form-heading.css +5 -5
- package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.css +1 -1
- package/dist/collection/components/beta/gux-label-info/gux-label-info.css +1 -1
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +6 -6
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.css +1 -1
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.css +1 -1
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.css +4 -4
- package/dist/collection/components/beta/gux-phone-input/gux-phone-input.css +4 -4
- package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.css +4 -4
- package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/gux-selector-card.css +8 -8
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +5 -3
- package/dist/collection/components/beta/gux-tooltip-base/gux-tooltip-base.css +6 -6
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +8 -8
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +2 -2
- package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.css +2 -2
- package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.css +6 -6
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +4 -4
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons-legacy.css +3 -3
- package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.css +14 -14
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +3 -3
- package/dist/collection/components/stable/gux-action-button/gux-action-button.css +1 -1
- package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.css +26 -26
- package/dist/collection/components/stable/gux-button/gux-button.css +8 -7
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.css +1 -1
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +6 -6
- package/dist/collection/components/stable/gux-calendar/gux-calendar.css +4 -4
- package/dist/collection/components/stable/gux-card/gux-card.css +1 -1
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +4 -4
- package/dist/collection/components/stable/gux-content-search/gux-content-search.css +7 -7
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +3 -3
- package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.css +4 -4
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +9 -6
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +5 -5
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +1 -1
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +8 -8
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +3 -3
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.css +1 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox-group/gux-form-field-checkbox-group.css +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file/gux-form-field-file.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.css +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.css +2 -2
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +2 -2
- package/dist/collection/components/stable/gux-icon/gux-icon.css +6 -6
- package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.css +2 -2
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +1 -1
- package/dist/collection/components/stable/gux-listbox/gux-listbox.css +2 -2
- package/dist/collection/components/stable/gux-listbox/option-group/gux-option-group.css +6 -6
- package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.css +1 -1
- package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.css +1 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +1 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +1 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +1 -1
- package/dist/collection/components/stable/gux-modal/gux-modal.css +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css +1 -30
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +25 -6
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +3 -17
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +37 -3
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css +8 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +21 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +20 -1
- package/dist/collection/components/stable/gux-popover/gux-popover.css +2 -2
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +1 -1
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +4 -4
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.service.js +2 -2
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +2 -2
- package/dist/collection/components/stable/gux-rating/gux-rating.css +3 -3
- package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.css +2 -2
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +4 -4
- package/dist/collection/components/stable/gux-table/gux-table.css +4 -4
- package/dist/collection/components/stable/gux-table/gux-table.js +4 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.css +2 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.css +3 -3
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +2 -2
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.css +5 -5
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.css +2 -2
- package/dist/collection/components/stable/gux-tag/gux-tag.css +3 -3
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +7 -7
- package/dist/collection/components/stable/gux-toast/gux-toast.css +5 -5
- package/dist/collection/components/stable/gux-toggle/gux-toggle.css +2 -2
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.css +6 -6
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-section.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +2 -2
- package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +2 -2
- package/dist/esm/gux-button-slot.entry.js +2 -2
- package/dist/esm/{gux-form-field-number_3.entry.js → gux-button_4.entry.js} +77 -8
- package/dist/esm/gux-calendar-beta.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +2 -2
- package/dist/esm/gux-card.entry.js +2 -2
- package/dist/esm/gux-column-manager-item.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +2 -2
- package/dist/esm/gux-context-menu.entry.js +2 -2
- package/dist/esm/gux-copy-to-clipboard.entry.js +2 -2
- package/dist/esm/gux-create-option.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +2 -2
- package/dist/esm/gux-disclosure-button-legacy.entry.js +2 -2
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +2 -2
- package/dist/esm/gux-dropdown_3.entry.js +4 -4
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +2 -2
- package/dist/esm/gux-form-description.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +2 -2
- package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
- 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-phone.entry.js +2 -2
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +2 -2
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +2 -2
- package/dist/esm/gux-form-field-select.entry.js +2 -2
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +2 -2
- package/dist/esm/gux-form-field-time-picker.entry.js +2 -2
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +2 -2
- package/dist/esm/gux-form-fieldset-heading.entry.js +1 -1
- package/dist/esm/gux-form-footer.entry.js +2 -2
- package/dist/esm/gux-form-heading.entry.js +1 -1
- package/dist/esm/gux-icon-tooltip-beta.entry.js +2 -2
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-inline-alert.entry.js +2 -2
- package/dist/esm/gux-label-info-beta.entry.js +2 -2
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +2 -2
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +2 -2
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-calendar.entry.js +1 -1
- package/dist/esm/gux-month-list_2.entry.js +2 -2
- package/dist/esm/gux-month-picker-beta.entry.js +2 -2
- package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-option-group-beta.entry.js +1 -1
- package/dist/esm/gux-option-icon.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +1 -1
- package/dist/esm/gux-pagination-buttons_2.entry.js +11 -10
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-items-per-page.entry.js +4 -3
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +4 -3
- package/dist/esm/gux-phone-input-beta.entry.js +2 -2
- package/dist/esm/gux-popover-list.entry.js +2 -2
- package/dist/esm/gux-radial-loading.entry.js +4 -4
- package/dist/esm/gux-radial-progress.entry.js +2 -2
- package/dist/esm/gux-rating.entry.js +2 -2
- 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-segmented-control-item.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +2 -2
- 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-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +2 -2
- package/dist/esm/gux-submenu.entry.js +1 -1
- package/dist/esm/gux-switch-item.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +1 -1
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-table-select-menu.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/gux-table.entry.js +6 -4
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/gux-time-zone-picker-beta.entry.js +7 -5
- package/dist/esm/gux-toast.entry.js +2 -2
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip-base-beta.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +2 -2
- package/dist/esm/index-b6ca2adc.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{time-zone-76e2da68.js → time-zone-fc654baf.js} +551 -449
- package/dist/esm/{usage-314a86a5.js → usage-3f41da7e.js} +4 -4
- package/dist/genesys-webcomponents/genesys-webcomponents-flare.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents-style.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +3 -3
- 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/{p-ef6a83b2.entry.js → p-04b8445b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be043353.entry.js → p-0508d9a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d5aa3a8.entry.js → p-078654f8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0b3bda30.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2cd83454.entry.js → p-0bcb72dd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0fdc0139.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-12d7c68d.entry.js → p-125a283f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9dafffa1.entry.js → p-15216fea.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-643b2a31.entry.js → p-1613a128.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-173720e3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dcb4f025.entry.js → p-18db9da8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9995e2f8.entry.js → p-19af00d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1ba7fc3b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-834b25ff.entry.js → p-2175b0a1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6441f87.entry.js → p-2176e84f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c0ad5ad.entry.js → p-2c44d1f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b52e07a.entry.js → p-2e965896.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-20a11f00.entry.js → p-2ff4abef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f767b24e.entry.js → p-317bb0d6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a1e1658d.entry.js → p-32e15abc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ed4a8bc.entry.js → p-3302dfce.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-34a79985.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9b0e79bf.entry.js → p-3a3569c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bcc92c7d.entry.js → p-3b84bf35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ce8f192.entry.js → p-3bafe27d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3c0d3568.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-52cc6e3c.entry.js → p-3c2cc1e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3c64e4fe.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b3aa1c65.js → p-3ea96b71.js} +1 -1
- package/dist/genesys-webcomponents/{p-1313b8e7.entry.js → p-403a3026.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f90c14f0.entry.js → p-40b7d7c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c817c1e4.entry.js → p-41bb7420.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0b302070.entry.js → p-44bd4f22.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4687decb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9410f3bb.entry.js → p-476a7d9b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-49b854d6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1073b3e1.entry.js → p-4b61f574.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f205b05a.entry.js → p-510b6d50.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ba0441d.entry.js → p-5455f605.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8bb73f67.entry.js → p-57be0721.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de491a06.entry.js → p-582c8a20.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-750a0b0a.entry.js → p-5ce48728.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fab45806.entry.js → p-60821eec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-601c6209.entry.js → p-62dd6290.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e0119f64.entry.js → p-6898a2a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1979efe.entry.js → p-697508ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08f27631.entry.js → p-6d27eb1d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e48b341.entry.js → p-6ea51791.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-162c765c.entry.js → p-70672bc1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-719b4f6f.entry.js +1 -0
- package/dist/genesys-webcomponents/p-71e6c1da.entry.js +1 -0
- package/dist/genesys-webcomponents/p-75cff56b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e82517aa.entry.js → p-78bb584a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-58660aab.entry.js → p-790bffab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-49bfac28.entry.js → p-79a4417c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb54b40d.entry.js → p-7a9e6ceb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57c94d3e.entry.js → p-7f540da4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7f93cb3b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-82c9bc1c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-77f63bce.entry.js → p-8376393b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-70e20540.entry.js → p-859373a6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a0ae947a.entry.js → p-867f49cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5fed3f9e.entry.js → p-8b67a2d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8d1197ce.js +1 -0
- package/dist/genesys-webcomponents/{p-52ba1b88.entry.js → p-8d2be922.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b75049a2.entry.js → p-8da93d4b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8dade6dd.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0f5f0eaf.entry.js → p-8dbdbcd0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8e577e13.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e2d8b3be.entry.js → p-91fadc61.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68cd67ab.entry.js → p-927f8fae.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-95699d52.entry.js +1 -0
- package/dist/genesys-webcomponents/p-981d1684.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a319e563.entry.js → p-9bc728c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0beb321f.entry.js → p-9cc77220.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a416742.entry.js → p-9cd7f9c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fdc54235.entry.js → p-9d990fa7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-932f503b.entry.js → p-9e278a6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87b9cb05.entry.js → p-9ef7fcd4.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a2705a52.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b332fbc6.entry.js → p-a5ec337a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c090adc6.entry.js → p-a6c9ac3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e63b42b7.entry.js → p-ab02cc33.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-adcfdd45.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fc794e61.entry.js → p-b0b6ae26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72d58a7c.entry.js → p-b384530c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e20282f.entry.js → p-b78ca7f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a82d92eb.entry.js → p-bb466d79.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15c95502.entry.js → p-bbc9bffc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bbf9cb5b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7114b5f0.entry.js → p-c04a8532.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-76c41bbc.entry.js → p-c2790d22.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e9140df1.entry.js → p-c974fce4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5bce7e6.entry.js → p-ca4519bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d0152fe2.entry.js +1 -0
- package/dist/genesys-webcomponents/p-d095d7e7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-d4e47d2d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-eeb4d4fb.entry.js → p-d547b94e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d9f525f2.entry.js +1 -0
- package/dist/genesys-webcomponents/p-dc083789.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-04ad4baa.entry.js → p-dc862ca2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e1d7280e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-e2341965.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-56ddc0b8.entry.js → p-e5cd7bd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-86b424da.entry.js → p-e6558e78.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7100acc7.entry.js → p-e762df1b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-edc46051.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8ca099f7.entry.js → p-ee2f5b06.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-eef9e166.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-30388787.entry.js → p-efc48dbc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b2cd015.entry.js → p-f0677989.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f0a3a7cf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f2c01cc6.entry.js → p-f5680087.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e107e55b.entry.js → p-f5b7ca2f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f686137f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d86f4401.entry.js → p-f6cdc34b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f88761bb.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c1fd4bae.entry.js → p-fd4f9fbd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-fe8a1a9d.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.d.ts +1 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.d.ts +2 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.d.ts +1 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination.d.ts +1 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cjs/gux-button.cjs.entry.js +0 -64
- package/dist/esm/gux-button.entry.js +0 -60
- package/dist/genesys-webcomponents/p-104a45e0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2663c1c2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2ee00f75.entry.js +0 -1
- package/dist/genesys-webcomponents/p-30f02ec2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3695b61e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-397dd95c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3deaf5f3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4e1aa968.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4f9e7ed1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-50012df8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-55ce8489.entry.js +0 -1
- package/dist/genesys-webcomponents/p-64d9cad6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-71539043.entry.js +0 -1
- package/dist/genesys-webcomponents/p-72ce4065.entry.js +0 -1
- package/dist/genesys-webcomponents/p-79326ffc.js +0 -1
- package/dist/genesys-webcomponents/p-82294c7c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8528c45f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-85363c16.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8906f885.entry.js +0 -1
- package/dist/genesys-webcomponents/p-89ab288f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9345ce78.entry.js +0 -1
- package/dist/genesys-webcomponents/p-96dd6cd4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9758fbb1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a249eb71.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a8d2e345.entry.js +0 -1
- package/dist/genesys-webcomponents/p-acbfb18f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-af44ff85.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b136ff52.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b31c510a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c0e7ed8b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c5002bc8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c89e64c0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d8606277.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e595a4ae.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f9c55d70.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fa61a1db.entry.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,g as o}from"./p-6e010355.js";import{t as a}from"./p-
|
1
|
+
import{r as e,h as t,g as o}from"./p-6e010355.js";import{t as a}from"./p-3ea96b71.js";import{g as r}from"./p-0268a3e8.js";const i=class{constructor(t){e(this,t),this.variant="info",this.placement="right"}componentWillLoad(){a(this.root,{variant:this.variant})}getVariantIcon(e){return"question"===e?"fa/circle-question-regular":"fa/circle-info-regular"}async showTooltip(){return await this.tooltipElement.showTooltip()}async hideTooltip(){return await this.tooltipElement.hideTooltip()}render(){return t("div",{key:"eb66887ffe2972faee641cccfb3f935f92bfc854",class:"gux-label-info"},t("gux-screen-reader-beta",{key:"230b736eb28544139150b2fa3a29fad3ff4d224d"},t("slot",{key:"23bb9fabdaca0e99f780f96ecd140b112b295340",name:"content"})),t("gux-icon",{key:"46914c27de93ccc63db4b3305c75311444aec20f","icon-name":this.getVariantIcon(this.variant),size:"small",decorative:!0}),t("gux-tooltip-beta",{key:"727cabe31dc2691201e159dc6a6877a7eb8246a6",placement:this.placement,ref:e=>this.tooltipElement=e},t("div",{key:"e0cf603e0d7c4aa87957a3de9ff7bd10af774acd",slot:"content"},r(this.root,"content"))))}get root(){return o(this)}};i.style=".gux-label-info{width:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-label-info gux-tooltip{padding-inline-start:0}.gux-label-info gux-icon{color:var(--gse-ui-formControl-label-tooltipTrigger-optionalColor, var(--gse-ui-formControl-label-tooltipTrigger-color));vertical-align:bottom}";export{i as gux_label_info_beta}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as t,g as o}from"./p-6e010355.js";import{O as i}from"./p-e720c07a.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-3ea96b71.js";import{a,G as s}from"./p-b8c3ecdc.js";import{G as f,a as n}from"./p-7e76ac06.js";import{a as h,g as d,v as u}from"./p-42f2e889.js";import{p}from"./p-a11d5d42.js";import{o as m}from"./p-e5b1cffc.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const g=class{constructor(t){e(this,t),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),p(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"7e0dc0beaa1fa180d4b8a59d9dfe00b4e0653d34",labelPosition:this.computedLabelPosition},t(f,{key:"75a05ef6673d3c547cc60859b5f87f82dd980915",position:this.computedLabelPosition,required:this.required},t("slot",{key:"5004592368bc828d63d236db313b4683d9e2ab60",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"e27c8b29a246528c3982de11d17f1fd7d64c5f41",variant:this.indicatorMark,required:this.required}),t("slot",{key:"36570c844c35f6636c7c2f83dca491b2c00f3033",name:"label-info"})),t("div",{key:"50414e470aa19d81ad392073246e1e2089edd488",class:"gux-input-and-error-container"},t("slot",{key:"d6bd9fe4e908c75d9d63605e7c3eaf2d45982951",name:"input",onSlotchange:()=>this.setInput()}),t(a,{key:"120319afc4826e7c212008967af9899dea298acb",show:this.hasError},t("slot",{key:"fba07ff53d46d3561942dbb88a42b5afb6c4fbd1",name:"error"})),t(s,{key:"51a1f46d7920b826b528fb38161915faa5eda096",show:!this.hasError&&this.hasHelp},t("slot",{key:"7e262e73e07aeb3fb8665acb7f306dba65ad90c1",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,a=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(t,o,a):r(t,o))||a);l>3&&a&&Object.defineProperty(t,o,a)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as s,h as i,H as a,g as e}from"./p-6e010355.js";import{t as h}from"./p-
|
1
|
+
import{r as t,c as s,h as i,H as a,g as e}from"./p-6e010355.js";import{t as h}from"./p-3ea96b71.js";const c=class{constructor(i){t(this,i),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.activeTab=void 0,this.orientation="horizontal",this.alignment="left",this.tabList=void 0,this.tabPanels=[]}watchActiveTab(t){this.activateTab(t,this.tabList,this.tabPanels),this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,i){this.activeTab=t||i[0].tabId,s.guxSetActive(this.activeTab),i.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){h(this.root)}render(){return i(a,{key:"7aa6d39be809f128ba1b851fd9a51d42dd5cb17d"},i("div",{key:"b7b87f47c3a08ff574cfa1b3fb124596e133b92e",class:`gux-tabs gux-${this.alignment} gux-${this.orientation}`},i("slot",{key:"9c8dc312a0118b16e2dd8ce73e3b4e0f5a5b54c6",name:"tab-list"}),i("div",{key:"be2db28e97a606fc24984e0dff8f14b5163f842c",class:`gux-${this.alignment} gux-${this.orientation} gux-panel-container`},i("slot",{key:"bce112629a27632569bd70aaf9bcd2130be489af",onSlotchange:this.onSlotchange.bind(this)}))))}get root(){return e(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};c.style=":host{display:flex;flex-direction:column}:host .gux-tabs{display:flex;height:100%}:host .gux-tabs:not(.gux-vertical){flex-direction:column}:host .gux-panel-container{display:flex;flex-direction:column;height:100%;min-height:0}";export{c as gux_tabs}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,h as t,H as e,g as a}from"./p-6e010355.js";import{l as r,n as o,f as i,p as n,b as c,c as d}from"./p-8d73b418.js";import{t as u}from"./p-
|
1
|
+
import{r as s,h as t,H as e,g as a}from"./p-6e010355.js";import{l as r,n as o,f as i,p as n,b as c,c as d}from"./p-8d73b418.js";import{t as u}from"./p-3ea96b71.js";const l=["gux-list-item"],p=class{constructor(t){s(this,t)}componentWillLoad(){u(this.root)}onKeyDown(s){switch(s.key){case"ArrowUp":s.preventDefault(),n(this.root,l);break;case"Home":s.preventDefault(),i(this.root,l);break;case"ArrowDown":s.preventDefault(),o(this.root,l);break;case"End":s.preventDefault(),r(this.root,l)}}async guxFocusFirstItem(){i(this.root,l)}async guxFocusItemById(s){c(this.root,l,s)}async guxFocusItemByClosestId(s){d(this.root,l,s)}async guxFocusLastItem(){r(this.root,l)}renderFocusTarget(){return t("span",{tabindex:"-1","aria-hidden":"true"})}render(){return t(e,{key:"ad961f6ed0eb29a5359534c174d2fad033948d77",role:"list"},this.renderFocusTarget(),t("slot",{key:"2dd732f57f7770db60a5fc81a1a7f4aba7b7dfeb"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};p.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{p as gux_list}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,c as a,h as t,g as i}from"./p-6e010355.js";import{b as n}from"./p-18eb7333.js";import"./p-4202e9f2.js";const g={perPage:"per page",itemsPerPage:"Items per page",rangeSelected:"Items per page dropdown, {range} items per page selected"},o=class{constructor(t){e(this,t),this.internalitemsperpagechange=a(this,"internalitemsperpagechange",3),this.itemsPerPage=25,this.disabled=!1}handleChange(e){e.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await n(this.root,g)}getDropdown(){return t("gux-dropdown",{ref:e=>this.dropdownElement=e,value:`${this.itemsPerPage}`,disabled:this.disabled,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},t("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},t("gux-option",{value:"25"},"25"),t("gux-option",{value:"50"},"50"),t("gux-option",{value:"75"},"75"),t("gux-option",{value:"100"},"100")))}render(){return t("div",{key:"c74146a000de3473c1a0c0dbf0b3d2776d18dd45",class:"gux-pagination-items-per-page-container"},t("div",{key:"66fd783332da103db8137dcb0df267e1966149b5",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),t("div",{key:"654f5b271953bbb2f7b04a3a038a389f911f64fc",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return i(this)}};o.style="gux-pagination-items-per-page .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:fit-content}gux-pagination-items-per-page .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{bottom:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}";export{o as gux_pagination_items_per_page}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,f as a,h as n,g as s}from"./p-6e010355.js";import{b as o}from"./p-18eb7333.js";import{t as c}from"./p-
|
1
|
+
import{r as e,c as t,f as a,h as n,g as s}from"./p-6e010355.js";import{b as o}from"./p-18eb7333.js";import{t as c}from"./p-3ea96b71.js";import{g as r,s as i,a as h,b as d,c as l,d as u,e as b,f as m,h as p}from"./p-db201bbc.js";import"./p-4202e9f2.js";import"./p-a43079c8.js";import"./p-2c25e2f2.js";const g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."},f=class{constructor(a){e(this,a),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=r()}watchKeyboardOrderChange(){i(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:a}=e;if(t!==a){const t=d(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,a=l(e.target);this.keyboardOrderChange={oldIndex:a,newIndex:a},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:a}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:a,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=r()}onSearchInput(){this.highlightResults=b(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=b(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){m(this.root,this.mainCheckboxElement.checked),a(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),a(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=p(this.root);return n("div",null,n("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),n("span",{class:"gux-sr-only"},n("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return n("div",{key:"daf90d23ce5f11f2d370bfc9d83fbdeeb29a0889",class:"gux-container"},n("div",{key:"8fd77ca38f5903d81897a705a4466edf676da481",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),n("div",{key:"b5cbabcf5999a3f566b0425bd0531713bbb671d6",class:"gux-search"},n("gux-content-search",{key:"59a0b2c694434ce42b3a193a85966942e42a5848","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},n("input",{key:"b741c081072bb2a0576d1dba0d24729d0e5ac85e",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),n("div",{key:"eadfc9285283da226b33cbbe039e33ead748e030",class:"gux-select"},n("gux-form-field-checkbox",{key:"3de970296c09ad4b0e5b2df9f494189083f82d39"},n("input",{key:"45825441d53b786122917f935c8fabc0aaaa5347",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),n("label",{key:"985cb6788363595904c56e444abf96458da5e4b6",slot:"label"},this.renderSelectedColumnCount()))),n("div",{key:"b77c01091b9ea5792bd772539b3b80d1100f8def",class:"gux-list",onChange:()=>this.onListChange()},n("slot",{key:"e79a7e4c9609f4a776f73391661310294f9ce77a",onSlotchange:()=>this.onSlotChange()})),n("gux-announce-beta",{key:"aab5f007f481e3c158ba3c5f677a1692dcfd5968",ref:e=>this.announceElement=e}))}get root(){return s(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{width:320px;min-width:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{width:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-left:24px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{f as gux_column_manager}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as t}from"./p-6e010355.js";const o=class{constructor(t){e(this,t)}render(){return t("slot",{key:"3c916a8b2173ae6b53b8046c3f925e13d2cf6d34"})}};o.style="::slotted(*){margin:0;font-family:var(--gse-semantic-forms-formHeader-text-fontFamily, var(--gse-semantic-body-lg-semiBold-fontFamily)) !important;font-size:var(--gse-semantic-forms-formHeader-text-fontSize, var(--gse-semantic-body-lg-semiBold-fontSize)) !important;font-weight:var(--gse-semantic-forms-formHeader-text-fontWeight, var(--gse-semantic-body-lg-semiBold-fontWeight)) !important;line-height:var(--gse-semantic-forms-formHeader-text-lineHeight, var(--gse-semantic-body-lg-semiBold-lineHeight)) !important;color:var(--gse-semantic-forms-formHeader-foregroundColor, var(--gse-semantic-foreground-container-highEmphasis)) !important}";export{o as gux_form_heading}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as s,H as a}from"./p-6e010355.js";const i=class{constructor(s){t(this,s),this.guxactivepanelchange=e(this,"guxactivepanelchange",7),this.tabId=void 0,this.active=!1}async guxSetActive(t){this.active=t}watchActivePanel(){!0===this.active&&this.guxactivepanelchange.emit(this.tabId)}render(){return s(a,{key:"1cb7bcb0a51a128c98771dd34c6c843b5e5aff68",id:`gux-${this.tabId}-panel`,role:"tabpanel","aria-labelledby":`gux-${this.tabId}-tab`,tabIndex:0,hidden:!this.active},s("slot",{key:"f92439ce99ca58122cc0f47717f6956e0f2bab82"}))}static get watchers(){return{active:["watchActivePanel"]}}};i.style=":host{height:calc(100% - var(--gse-ui-tabs-set-horizontal-height)var(--gse-ui-tabs-set-divider-horizontal-height)var(--gse-ui-tabs-set-horizontal-marginBottom))}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusRing-default-border-color
|
1
|
+
import{r as t,c as e,h as s,H as a}from"./p-6e010355.js";const i=class{constructor(s){t(this,s),this.guxactivepanelchange=e(this,"guxactivepanelchange",7),this.tabId=void 0,this.active=!1}async guxSetActive(t){this.active=t}watchActivePanel(){!0===this.active&&this.guxactivepanelchange.emit(this.tabId)}render(){return s(a,{key:"1cb7bcb0a51a128c98771dd34c6c843b5e5aff68",id:`gux-${this.tabId}-panel`,role:"tabpanel","aria-labelledby":`gux-${this.tabId}-tab`,tabIndex:0,hidden:!this.active},s("slot",{key:"f92439ce99ca58122cc0f47717f6956e0f2bab82"}))}static get watchers(){return{active:["watchActivePanel"]}}};i.style=":host{height:calc(100% - var(--gse-ui-tabs-set-horizontal-height)var(--gse-ui-tabs-set-divider-horizontal-height)var(--gse-ui-tabs-set-horizontal-marginBottom))}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusRing-default-border-color, var(--gse-semantic-border-focus)) solid var(--gse-semantic-focusRing-default-border-width, var(--gse-semantic-focusOutline-md-borderWidth));outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}";export{i as gux_tab_panel}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as o,h as a,g as e}from"./p-6e010355.js";import{t as s}from"./p-3ea96b71.js";import{h as i}from"./p-6d8b4027.js";const n=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.toastType="success",this.hasLink=!1,this.hasPrimaryButton=!1,this.hasSecondaryButton=!1}componentWillLoad(){s(this.root,{variant:this.toastType}),this.hasPrimaryButton=i(this.root,"primary-button"),this.hasSecondaryButton=i(this.root,"secondary-button"),this.hasLink=i(this.root,"link")}renderToastIcon(){switch(this.toastType){case"success":return a("gux-icon",{"icon-name":"fa/circle-check-solid",decorative:!0});case"warning":return a("gux-icon",{"icon-name":"fa/triangle-exclamation-solid",decorative:!0});case"error":return a("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0});case"info":return a("gux-icon",{"icon-name":"fa/circle-info-solid",decorative:!0});case"action":return a("slot",{name:"icon"})}}renderLink(){return a("div",{class:"gux-buttons-bar"},a("slot",{name:"link"}))}renderActions(){return a("gux-cta-group",{class:"gux-buttons-bar",align:"end"},this.hasSecondaryButton&&a("gux-button-slot",{slot:"secondary"},a("slot",{name:"secondary-button"})),a("gux-button-slot",{slot:"primary"},a("slot",{name:"primary-button"})))}render(){return a("div",{key:"a02fab6bbe43364d76b853a4967f45fd6df5aa9f",class:`gux-toast gux-toast-${this.toastType}`},a("div",{key:"00f640037c6b1a1b882363be3ba2450e5b2aab57",class:`gux-icon gux-icon-${this.toastType}`},this.renderToastIcon()),a("div",{key:"e66062ba31ecef8710fccd55eb378b6a71f957fc",class:"gux-content"},a("div",{key:"bf505d422b5e59150d0a5485b30c9fa3884c849e",class:"gux-message"},a("gux-truncate",{key:"4d5850042a51db0c1399e0beddb5f187e417838a",class:"gux-message-title","max-lines":1},a("slot",{key:"a726b2cb73d021e30633b6780820683b0de73c23",name:"title"})),a("gux-truncate",{key:"d80512cba088503f755564fb263e7d7e896836d4",class:"gux-message-body","max-lines":2},a("slot",{key:"219246013e923f1fc9f6abce5e0b399766560d88",name:"message"}))),"action"!==this.toastType&&this.hasLink&&this.renderLink(),"action"===this.toastType&&this.hasPrimaryButton&&this.renderActions()),a("gux-dismiss-button",{key:"a296ace9c382cd7ebe827527ea5d6a20fb49136f",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(t){t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};n.style=".gux-toast{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toast-gap);place-content:stretch flex-start;align-items:flex-start;width:var(--gse-ui-toast-wrappingWidth);padding:var(--gse-ui-toast-margin);margin-bottom:var(--gse-ui-toast-stacking-gap);border-radius:var(--gse-ui-toast-borderRadius);box-shadow:var(--gse-ui-toast-boxShadow-x, var(--gse-ui-toast-boxShadow-offsetX)) var(--gse-ui-toast-boxShadow-y, var(--gse-ui-toast-boxShadow-offsetY)) var(--gse-ui-toast-boxShadow-blur) var(--gse-ui-toast-boxShadow-spread) var(--gse-ui-toast-boxShadow-color)}.gux-toast .gux-icon ::slotted(gux-icon){width:var(--gse-ui-toast-icon) !important;height:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon gux-icon{width:var(--gse-ui-toast-icon) !important;height:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon.gux-icon-error{color:var(--gse-ui-toast-error-iconColor)}.gux-toast .gux-icon.gux-icon-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-toast .gux-icon.gux-icon-success{color:var(--gse-ui-toast-success-iconColor)}.gux-toast .gux-icon.gux-icon-info{color:var(--gse-ui-toast-info-iconColor)}.gux-toast .gux-icon.gux-icon-action{color:var(--gse-ui-toast-action-iconColor)}.gux-toast .gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-toast-gapButton);place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0}.gux-toast .gux-content .gux-message{display:flex;flex-direction:column;gap:var(--gse-ui-toast-gapText)}.gux-toast .gux-content .gux-message .gux-message-title{font-family:var(--gse-ui-toast-heading-fontFamily);font-size:var(--gse-ui-toast-heading-fontSize);font-weight:var(--gse-ui-toast-heading-fontWeight);line-height:var(--gse-ui-toast-heading-lineHeight)}.gux-toast .gux-content .gux-message .gux-message-body{font-family:var(--gse-ui-toast-text-fontFamily);font-size:var(--gse-ui-toast-text-fontSize);line-height:var(--gse-ui-toast-text-lineHeight)}.gux-toast .gux-content .gux-buttons-bar{width:100%}.gux-toast .gux-content .gux-buttons-bar ::slotted(a){font-family:var(--gse-ui-link-inLine-medium-underlinedText-fontFamily, var(--gse-ui-links-inLine-medium-underlinedText-fontFamily));font-size:var(--gse-ui-link-inLine-medium-underlinedText-fontSize, var(--gse-ui-links-inLine-medium-underlinedText-fontSize));font-weight:var(--gse-ui-link-inLine-medium-underlinedText-fontWeight, var(--gse-ui-links-inLine-medium-underlinedText-fontWeight));line-height:var(--gse-ui-link-inLine-medium-underlinedText-lineHeight, var(--gse-ui-links-inLine-medium-underlinedText-lineHeight))}.gux-toast.gux-toast-success{background-color:var(--gse-ui-toast-success-backgroundColor)}.gux-toast.gux-toast-success .gux-message{color:var(--gse-ui-toast-success-foregroundColor)}.gux-toast.gux-toast-warning{background-color:var(--gse-ui-toast-warning-backgroundColor)}.gux-toast.gux-toast-warning .gux-message{color:var(--gse-ui-toast-warning-foregroundColor)}.gux-toast.gux-toast-error{background-color:var(--gse-ui-toast-error-backgroundColor)}.gux-toast.gux-toast-error .gux-message{color:var(--gse-ui-toast-error-foregroundColor)}.gux-toast.gux-toast-info{background-color:var(--gse-ui-toast-info-backgroundColor)}.gux-toast.gux-toast-info .gux-message{color:var(--gse-ui-toast-info-foregroundColor)}.gux-toast.gux-toast-action{background-color:var(--gse-ui-toast-action-backgroundColor)}.gux-toast.gux-toast-action .gux-message{color:var(--gse-ui-toast-action-foregroundColor)}";export{n as gux_toast}
|
package/dist/stencil-wrapper.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
import { defineCustomElements } from '../dist/loader';
|
9
9
|
// Value templated out during build process (see scripts/wrap-stencil.js)
|
10
|
-
export const COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.
|
10
|
+
export const COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.88.0-373/genesys-webcomponents/';
|
11
11
|
// Default domain to load assets from
|
12
12
|
const DEFAULT_DOMAIN = 'app.mypurecloud.com';
|
13
13
|
// List of Genesys UI domains
|
@@ -6,9 +6,11 @@ export declare class GuxPaginationEllipsisButton {
|
|
6
6
|
private root;
|
7
7
|
isOpen: boolean;
|
8
8
|
totalPages: number;
|
9
|
+
disabled: boolean;
|
9
10
|
goToPage: EventEmitter<string>;
|
10
11
|
handleKeyDown(event: KeyboardEvent): void;
|
11
12
|
handleKeyup(event: KeyboardEvent): void;
|
13
|
+
watchIsDisabled(newValue: boolean): void;
|
12
14
|
private toggle;
|
13
15
|
onClickOutside(): void;
|
14
16
|
private focusInputElement;
|
@@ -5,6 +5,7 @@ export declare class GuxPaginationItemsPerPage implements ComponentInterface {
|
|
5
5
|
private dropdownElement;
|
6
6
|
private root;
|
7
7
|
itemsPerPage: GuxItemsPerPage;
|
8
|
+
disabled: boolean;
|
8
9
|
private internalitemsperpagechange;
|
9
10
|
handleChange(event: CustomEvent): void;
|
10
11
|
componentWillLoad(): Promise<void>;
|
@@ -20,6 +20,7 @@ export declare class GuxPagination implements ComponentInterface {
|
|
20
20
|
* The max number of items on a page. Used to calculate total page count
|
21
21
|
*/
|
22
22
|
itemsPerPage: GuxItemsPerPage;
|
23
|
+
disabled: boolean;
|
23
24
|
/**
|
24
25
|
* The total number of pages needed for the the data set.
|
25
26
|
*/
|
@@ -846,6 +846,7 @@ export namespace Components {
|
|
846
846
|
* The currently select page. Changes are watched by the component.
|
847
847
|
*/
|
848
848
|
"currentPage": number;
|
849
|
+
"disabled": boolean;
|
849
850
|
/**
|
850
851
|
* The max number of items on a page. Used to calculate total page count
|
851
852
|
*/
|
@@ -861,6 +862,7 @@ export namespace Components {
|
|
861
862
|
}
|
862
863
|
interface GuxPaginationButtons {
|
863
864
|
"currentPage": number;
|
865
|
+
"disabled": boolean;
|
864
866
|
"layout": GuxPaginationLayout;
|
865
867
|
"totalPages": number;
|
866
868
|
}
|
@@ -880,6 +882,7 @@ export namespace Components {
|
|
880
882
|
"layout": 'simple' | 'advanced';
|
881
883
|
}
|
882
884
|
interface GuxPaginationEllipsisButton {
|
885
|
+
"disabled": boolean;
|
883
886
|
"totalPages": number;
|
884
887
|
}
|
885
888
|
interface GuxPaginationItemCounts {
|
@@ -893,6 +896,7 @@ export namespace Components {
|
|
893
896
|
"totalItems": number;
|
894
897
|
}
|
895
898
|
interface GuxPaginationItemsPerPage {
|
899
|
+
"disabled": boolean;
|
896
900
|
"itemsPerPage": GuxItemsPerPage;
|
897
901
|
}
|
898
902
|
interface GuxPaginationItemsPerPageLegacy {
|
@@ -3882,6 +3886,7 @@ declare namespace LocalJSX {
|
|
3882
3886
|
* The currently select page. Changes are watched by the component.
|
3883
3887
|
*/
|
3884
3888
|
"currentPage"?: number;
|
3889
|
+
"disabled"?: boolean;
|
3885
3890
|
/**
|
3886
3891
|
* The max number of items on a page. Used to calculate total page count
|
3887
3892
|
*/
|
@@ -3898,6 +3903,7 @@ declare namespace LocalJSX {
|
|
3898
3903
|
}
|
3899
3904
|
interface GuxPaginationButtons {
|
3900
3905
|
"currentPage"?: number;
|
3906
|
+
"disabled"?: boolean;
|
3901
3907
|
"layout"?: GuxPaginationLayout;
|
3902
3908
|
"onInternalcurrentpagechange"?: (event: GuxPaginationButtonsCustomEvent<number>) => void;
|
3903
3909
|
"totalPages"?: number;
|
@@ -3921,6 +3927,7 @@ declare namespace LocalJSX {
|
|
3921
3927
|
"onGuxitemsperpagechange"?: (event: GuxPaginationCursorCustomEvent<number>) => void;
|
3922
3928
|
}
|
3923
3929
|
interface GuxPaginationEllipsisButton {
|
3930
|
+
"disabled"?: boolean;
|
3924
3931
|
"onGoToPage"?: (event: GuxPaginationEllipsisButtonCustomEvent<string>) => void;
|
3925
3932
|
"totalPages"?: number;
|
3926
3933
|
}
|
@@ -3935,6 +3942,7 @@ declare namespace LocalJSX {
|
|
3935
3942
|
"totalItems"?: number;
|
3936
3943
|
}
|
3937
3944
|
interface GuxPaginationItemsPerPage {
|
3945
|
+
"disabled"?: boolean;
|
3938
3946
|
"itemsPerPage"?: GuxItemsPerPage;
|
3939
3947
|
"onInternalitemsperpagechange"?: (event: GuxPaginationItemsPerPageCustomEvent<number>) => void;
|
3940
3948
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.
|
1
|
+
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.88.0-373/genesys-webcomponents/";
|
2
2
|
export declare function registerElements(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "genesys-spark-components",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.88.0",
|
4
4
|
"description": "Common webcomponents",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"check-readmes": "./scripts/check-readmes.sh",
|
17
17
|
"clean": "rm -r ./dist ./build || true",
|
18
18
|
"copy-genesys-spark-utils": "node ./scripts/copy-genesys-spark-utils.mjs",
|
19
|
-
"predev": "npm run i18n && npm run generate-gux-icon-types-file ",
|
19
|
+
"predev": "npm run i18n && npm run build-themes && npm run generate-gux-icon-types-file ",
|
20
20
|
"dev": "npm run stencil.dev",
|
21
21
|
"eslint": "eslint . --fix",
|
22
22
|
"generate-flags-sprite-file": "./scripts/generate-flags-sprite-file.js",
|
@@ -41,8 +41,8 @@
|
|
41
41
|
"svgo": "find ./src/components/stable/gux-icon/icons/**/*.svg -type f ! -path '*/legacy/*' -exec svgo {} +",
|
42
42
|
"test": "TZ=UTC stencil test --spec --e2e",
|
43
43
|
"test.ci": "TZ=UTC npm run test.ci.spec",
|
44
|
-
"test.ci.e2e": "TZ=UTC stencil test --e2e --max-workers=
|
45
|
-
"test.ci.spec": "TZ=UTC stencil test --spec --max-workers=
|
44
|
+
"test.ci.e2e": "TZ=UTC stencil test --e2e --max-workers=4",
|
45
|
+
"test.ci.spec": "TZ=UTC stencil test --spec --max-workers=4",
|
46
46
|
"test.e2e": "TZ=UTC stencil test --e2e",
|
47
47
|
"test.e2e.update-snapshot": "TZ=UTC stencil test --e2e --updateSnapshot",
|
48
48
|
"test.screenshot": "TZ=UTC stencil test --e2e --screenshot",
|
@@ -1,64 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-79505d14.js');
|
6
|
-
const usage = require('./usage-ca6a2ac1.js');
|
7
|
-
|
8
|
-
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:8px;vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";
|
9
|
-
const GuxButtonStyle0 = guxButtonCss;
|
10
|
-
|
11
|
-
const GuxButton = class {
|
12
|
-
constructor(hostRef) {
|
13
|
-
index.registerInstance(this, hostRef);
|
14
|
-
this.type = 'button';
|
15
|
-
this.guxTitle = undefined;
|
16
|
-
this.disabled = false;
|
17
|
-
this.accent = 'secondary';
|
18
|
-
this.iconOnly = undefined;
|
19
|
-
}
|
20
|
-
connectedCallback() {
|
21
|
-
this.slotChanged();
|
22
|
-
}
|
23
|
-
componentWillLoad() {
|
24
|
-
usage.trackComponent(this.root, { variant: this.accent });
|
25
|
-
}
|
26
|
-
render() {
|
27
|
-
return (index.h("button", { key: '3040bad442f39bc2809fe0cf4d65b321a3d80e56', type: this.type, title: this.guxTitle, disabled: this.disabled, class: {
|
28
|
-
[`gux-${this.accent}`]: true,
|
29
|
-
'gux-icon-only': this.iconOnly
|
30
|
-
} }, index.h("slot", { key: '59907df8032ac3ee4fa0021e80511c62d63fc755', onSlotchange: this.slotChanged.bind(this) })));
|
31
|
-
}
|
32
|
-
stopEventIfDisabled(event) {
|
33
|
-
if (this.disabled) {
|
34
|
-
event.stopImmediatePropagation();
|
35
|
-
event.stopPropagation();
|
36
|
-
event.preventDefault();
|
37
|
-
}
|
38
|
-
}
|
39
|
-
makeSlotContentDisableable() {
|
40
|
-
this.root.shadowRoot.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
41
|
-
Array.from(this.root.children).forEach(slotElement => {
|
42
|
-
slotElement.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
43
|
-
});
|
44
|
-
}
|
45
|
-
hasIconOnly() {
|
46
|
-
const children = Array.from(this.root.children);
|
47
|
-
if (children.length === 1) {
|
48
|
-
const child = children[0];
|
49
|
-
if (child.tagName === 'GUX-ICON') {
|
50
|
-
return true;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
return false;
|
54
|
-
}
|
55
|
-
slotChanged() {
|
56
|
-
this.makeSlotContentDisableable();
|
57
|
-
this.iconOnly = this.hasIconOnly();
|
58
|
-
}
|
59
|
-
static get delegatesFocus() { return true; }
|
60
|
-
get root() { return index.getElement(this); }
|
61
|
-
};
|
62
|
-
GuxButton.style = GuxButtonStyle0;
|
63
|
-
|
64
|
-
exports.gux_button = GuxButton;
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b6ca2adc.js';
|
2
|
-
import { t as trackComponent } from './usage-314a86a5.js';
|
3
|
-
|
4
|
-
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:8px;vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";
|
5
|
-
const GuxButtonStyle0 = guxButtonCss;
|
6
|
-
|
7
|
-
const GuxButton = class {
|
8
|
-
constructor(hostRef) {
|
9
|
-
registerInstance(this, hostRef);
|
10
|
-
this.type = 'button';
|
11
|
-
this.guxTitle = undefined;
|
12
|
-
this.disabled = false;
|
13
|
-
this.accent = 'secondary';
|
14
|
-
this.iconOnly = undefined;
|
15
|
-
}
|
16
|
-
connectedCallback() {
|
17
|
-
this.slotChanged();
|
18
|
-
}
|
19
|
-
componentWillLoad() {
|
20
|
-
trackComponent(this.root, { variant: this.accent });
|
21
|
-
}
|
22
|
-
render() {
|
23
|
-
return (h("button", { key: '3040bad442f39bc2809fe0cf4d65b321a3d80e56', type: this.type, title: this.guxTitle, disabled: this.disabled, class: {
|
24
|
-
[`gux-${this.accent}`]: true,
|
25
|
-
'gux-icon-only': this.iconOnly
|
26
|
-
} }, h("slot", { key: '59907df8032ac3ee4fa0021e80511c62d63fc755', onSlotchange: this.slotChanged.bind(this) })));
|
27
|
-
}
|
28
|
-
stopEventIfDisabled(event) {
|
29
|
-
if (this.disabled) {
|
30
|
-
event.stopImmediatePropagation();
|
31
|
-
event.stopPropagation();
|
32
|
-
event.preventDefault();
|
33
|
-
}
|
34
|
-
}
|
35
|
-
makeSlotContentDisableable() {
|
36
|
-
this.root.shadowRoot.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
37
|
-
Array.from(this.root.children).forEach(slotElement => {
|
38
|
-
slotElement.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
39
|
-
});
|
40
|
-
}
|
41
|
-
hasIconOnly() {
|
42
|
-
const children = Array.from(this.root.children);
|
43
|
-
if (children.length === 1) {
|
44
|
-
const child = children[0];
|
45
|
-
if (child.tagName === 'GUX-ICON') {
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
return false;
|
50
|
-
}
|
51
|
-
slotChanged() {
|
52
|
-
this.makeSlotContentDisableable();
|
53
|
-
this.iconOnly = this.hasIconOnly();
|
54
|
-
}
|
55
|
-
static get delegatesFocus() { return true; }
|
56
|
-
get root() { return getElement(this); }
|
57
|
-
};
|
58
|
-
GuxButton.style = GuxButtonStyle0;
|
59
|
-
|
60
|
-
export { GuxButton as gux_button };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,h as e,g as r}from"./p-6e010355.js";import{c as t,o as i}from"./p-f4751a15.js";import{O as n}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{p as a}from"./p-a11d5d42.js";import{h as s}from"./p-6d8b4027.js";import{a as u,G as f}from"./p-b8c3ecdc.js";import{G as d,a as p}from"./p-7e76ac06.js";import{g as c,v as g,a as h}from"./p-42f2e889.js";import{t as m}from"./p-b3aa1c65.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b=class{constructor(e){o(this,e),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition=void 0,this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(o){var e,r;"Tab"===o.key?this.input.matches(":focus-visible")&&(null===(e=this.labelInfo)||void 0===e||e.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return e(p,{key:"bffb48ffc891f5ee3f946aaa98ebc113e455911c",labelPosition:this.computedLabelPosition},e(d,{key:"d797d8a95fb9746131a5a30ca8697a3496d3840e",required:this.required,position:this.computedLabelPosition},e("slot",{key:"8a87981c5ae36338bcf92223f781d9381d4d3435",name:"label",onSlotchange:()=>this.setLabel()}),e("gux-form-field-label-indicator",{key:"d88e939341d482a4550268a421cf2dec8325beb2",variant:this.indicatorMark,required:this.required}),e("slot",{key:"f8e5c7fe81d2a0b7931d781c107959851e9d0c56",name:"label-info"})),e("div",{key:"0fc3b7df8694740a7f8fd56969034a8e8a8c89f7",class:"gux-input-and-error-container"},e("div",{key:"bfafbb89e81b05187f7ef5228f9d8d9a22472509",class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{key:"6287062f02784c6999acb35c9c4bd7bb9e097a17",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",{key:"db22af17d7e9f8b094773d94aff017cd0725ce53",name:"input",onSlotchange:()=>this.setInput()}))),e(u,{key:"c8222e8eba56fb15ba02f359253bef24fbc02c6f",show:this.hasError},e("slot",{key:"c39e694244391d5480058c97b61539db03ec29fe",name:"error"})),e(f,{key:"5038c1d3b848f41a69b1293731b5c2e91576de41",show:!this.hasError&&this.hasHelp},e("slot",{key:"d310790e690634a236e014c7beae3ec7f14204db",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=c(this.root,'input[type="color"][slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(o=>{this.disabled=o})),this.requiredObserver=l(this.input,(o=>{this.required=o})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}get root(){return r(this)}};(function(o,e,r,t){var i,n=arguments.length,l=n<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,r,t);else for(var a=o.length-1;a>=0;a--)(i=o[a])&&(l=(n<3?i(l):n>3?i(e,r,l):i(e,r))||l);n>3&&l&&Object.defineProperty(e,r,l)})([n({childList:!0,subtree:!0})],b.prototype,"onMutation",null),b.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);min-height:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-colorPicker-input-swatchSizing);min-width:var(--gse-ui-colorPicker-input-swatchSizing);height:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);color:var(--gse-ui-formControl-input-populatedColor);text-align:right;text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;width:var(--gse-ui-formControl-input-colorPicker-size);height:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{b as gux_form_field_color}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as o,H as e,g as n}from"./p-6e010355.js";import{t as r}from"./p-b3aa1c65.js";import{l as a}from"./p-8eaf8caf.js";const i=class{constructor(o){t(this,o),this.accent="secondary",this.iconOnly=void 0}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{key:"97327f6adb2afbf3f3964ac7088fe5144252f852",accent:this.accent,"icon-only":this.iconOnly},o("slot",{key:"38f6916560f245944646846aa9e9e2cf78a9fb1e"}))}get root(){return n(this)}};i.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";export{i as gux_button_slot}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,h as e,g as r}from"./p-6e010355.js";import{c as t,o as i}from"./p-f4751a15.js";import{O as n}from"./p-e720c07a.js";import{o as a}from"./p-e5b1cffc.js";import{p as l}from"./p-a11d5d42.js";import{h as s}from"./p-6d8b4027.js";import{a as u,G as f}from"./p-b8c3ecdc.js";import{G as d,a as p}from"./p-7e76ac06.js";import{v as c,a as g}from"./p-42f2e889.js";import{t as h}from"./p-b3aa1c65.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const m=class{constructor(e){o(this,e),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(o){var e,r;"Tab"===o.key?this.input.matches(":focus-visible")&&(null===(e=this.labelInfo)||void 0===e||e.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),h(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return e(p,{key:"a891d746f1e196c085401687a23d8e082db62558",labelPosition:this.computedLabelPosition},e(d,{key:"111051fdcd79a931c5e4fbb54f0f8dc858df324d",required:this.required,position:this.computedLabelPosition},e("slot",{key:"9fc7b6d5768b4c2783e9d5bb9ed606e89eda6cfd",name:"label",onSlotchange:()=>this.setLabel()}),e("gux-form-field-label-indicator",{key:"aa2355ad7107bbf7cc3ffc196328b71b9097a532",variant:this.indicatorMark,required:this.required}),e("slot",{key:"64e182139cf6ba85f444e50a386dd4776f921364",name:"label-info"})),e("div",{key:"063a815a8f0b490f434f22e5eca46151c60870da",class:"gux-input-and-error-container"},e("div",{key:"6d98a4f02855f4dedc72c3ef16fc4853b0edfda5",class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{key:"77c7a76e45c4b99254ca8ff0b6d9d476d83e6fc9",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",{key:"a6b83dcf94d3ba5d18593fc7ca5c363fa1a76343",name:"input"}),e("gux-icon",{key:"37d692a4d81936dfc3359e720c0c3ec2342f3a58","icon-name":"custom/chevron-down-small-regular",decorative:!0}))),e(u,{key:"e7ac6050685cc4d6e591001428e0bfeb4c3d3a4b",show:this.hasError},e("slot",{key:"b0de1db0a8b8b1036284a7749dcd6063baf08a29",name:"error"})),e(f,{key:"07256c1cf58f785aa2069ce16b87e32bb372ec5c",show:!this.hasError&&this.hasHelp},e("slot",{key:"c09f0d5e5cdb02ea8d5a75f4a469f407d2168578",name:"help"}))))}get variant(){const o=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${o}`}setInput(){this.input=this.root.querySelector('select[slot="input"]'),l(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(o=>{this.disabled=o})),this.requiredObserver=a(this.input,(o=>{this.required=o})),c(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return r(this)}};(function(o,e,r,t){var i,n=arguments.length,a=n<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,r,t);else for(var l=o.length-1;l>=0;l--)(i=o[l])&&(a=(n<3?i(a):n>3?i(e,r,a):i(e,r))||a);n>3&&a&&Object.defineProperty(e,r,a)})([n({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);min-height:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(select){flex:1 1 auto;align-self:auto;order:0;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding-left:var(--gse-ui-formControl-input-gap);color:var(--gse-ui-formControl-input-populatedColor);-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;border-radius:var(--gse-ui-formControl-input-borderRadius);outline:none}::slotted(select)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;width:100%;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;top:0;right:0;width:var(--gse-ui-formControl-input-inputIcon-size);height:var(--gse-ui-formControl-input-inputIcon-size);margin:var(--gse-ui-formControl-input-padding);pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{m as gux_form_field_select}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as o,H as a,g as r}from"./p-6e010355.js";import{l as t,f as s,n,p as i,a as d}from"./p-8d73b418.js";import{g as u}from"./p-4202e9f2.js";const c=["gux-month-list-item"],l=class{constructor(o){e(this,o)}onKeyDown(e){switch(e.key){case"ArrowUp":e.preventDefault(),d(this.root,c,-3);break;case"ArrowDown":e.preventDefault(),d(this.root,c,3);break;case"ArrowLeft":e.preventDefault(),i(this.root,c);break;case"ArrowRight":e.preventDefault(),n(this.root,c);break;case"Home":e.preventDefault(),s(this.root,c);break;case"End":e.preventDefault(),t(this.root,c)}}async guxFocusFirstItem(){s(this.root,c)}render(){return o(a,{key:"a547b8cb470a7954273b8bb225c1fbbc0d6068fe",role:"list"},o("slot",{key:"184656f93c75eb43590a0db3086960e2a020d9b5"}))}static get delegatesFocus(){return!0}get root(){return r(this)}};l.style=":host{display:flex;flex-direction:row;flex-wrap:wrap;padding:var(--gse-ui-calendarMenu-monthBody-padding);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:var(--gse-ui-calendarMenu-boxShadow-x, --gse-ui-calendarMenu-boxShadow-offsetX) var(--gse-ui-calendarMenu-boxShadow-y, --gse-ui-calendarMenu-boxShadow-offsetY) var(--gse-ui-calendarMenu-boxShadow-blur) var(--gse-ui-calendarMenu-boxShadow-spread) var(--gse-ui-calendarMenu-boxShadow-color)}";const b=class{constructor(o){e(this,o),this.value=void 0,this.disabled=!1,this.selected=!1}onMouseup(){this.focusParentList()}onMouseover(){this.focusParentList()}focusParentList(){const e=u("gux-month-list",this.root);e&&null===e.shadowRoot.activeElement&&!this.selected&&(this.root.blur(),e.focus())}render(){return o(a,{key:"81219ec153e7c466b7a2b9ebe614d691c576595c",role:"listitem",value:this.value},o("div",{key:"eccb4ec0999c329e1c70561930e629f362c1a064",class:"gux-container"},o("button",{key:"cf8e11ed5f104a44796877a19964969d5e74bbd5",class:{"gux-selected":this.selected},type:"button",tabIndex:-1,disabled:this.disabled},o("slot",{key:"06ac363b8ecc1d20445af10bae4fc176a48e0aa7"}))))}static get delegatesFocus(){return!0}get root(){return r(this)}};b.style=":host([disabled]){pointer-events:none}:host([disabled=false]){pointer-events:auto}.gux-container{box-sizing:border-box;width:var(--gse-ui-calendarMenu-month-monthCell-width);height:var(--gse-ui-calendarMenu-month-monthCell-height);padding:10px 5px 9px}.gux-container button{all:unset;box-sizing:border-box;width:100%;height:100%;text-align:center;word-wrap:break-word;cursor:pointer;border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:none}.gux-container button.gux-selected{color:var(--gse-ui-calendarMenu-month-selected-foregroundColor);background:var(--gse-ui-calendarMenu-month-selected-backgroundColor)}.gux-container button:focus-visible:not(:disabled){border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-container button:hover:not(:disabled){color:var(--gse-ui-calendarMenu-month-default-foregroundColor);background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-container button:disabled{cursor:default;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}";export{l as gux_month_list,b as gux_month_list_item}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as a,c as t,d as i,h as e,g as n}from"./p-6e010355.js";import{a as s}from"./p-cf0e7d3b.js";import{t as o}from"./p-b3aa1c65.js";const r=class{constructor(i){a(this,i),this.guxpaginationchange=t(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.totalPages=void 0,this.displayedLayout=void 0}setPage(a){if(a<=0)return void this.setPage(1);const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);a>t?this.setPage(t):(this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}calculateTotalPages(a,t){return Math.max(1,Math.ceil(a/t))}calculateCurrentPage(a,t){return Math.max(a>0?1:0,Math.min(t,a))}checkPaginationContainerWidthForLayout(){i((()=>{const a=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=a.clientWidth;t.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return e("div",{key:"89660a5d070ac526d5f9903778590d1bd270a9b5",class:"gux-pagination-container"},e("div",{key:"593ced162d399ccbd4251d5e5c02fa2369cebc29",class:"gux-pagination-info"},e("gux-pagination-item-counts",{key:"442f13f3c0def8cff466bb6293c9f725078c9d05","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page",{key:"9ed771112644dcc21473b9058d64fd9602a11ee5","items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{key:"697f99f72bdea4b8eb4505e38a38c65b93b37c11",class:"gux-pagination-spacer"}),e("div",{key:"1023bf7bc4026afc7bd367d28acffffc30644f37",class:"gux-pagination-change"},e("gux-pagination-buttons",{key:"3bd7c8768f9a38465528806b7849f14b690c3069",layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return n(this)}};r.style=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{r as gux_pagination}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as t,h as a,H as o,g as i}from"./p-6e010355.js";import{t as c}from"./p-b3aa1c65.js";const s=class{constructor(a){e(this,a),this.guxdismiss=t(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){c(this.root,{variant:this.accent})}render(){return a(o,{key:"9121345ad03d84b4bc6f1a19b9fbb9cb3ce4351f"},a("div",{key:"ab52d6b49a24fd45148d03a46916a69cb56ca6b1",class:`gux-icon gux-${this.accent}`},a("slot",{key:"4c29663aedf7bd420c7dea0501c2d99bc511faad",name:"icon"})),a("div",{key:"e8354589fe2d93242f497dd2501fef46d8a0ac67",class:"gux-content"},a("gux-truncate",{key:"4ec00baf0c4f5e396e0da05449873f1234755cd4",class:"gux-title","max-lines":1},a("slot",{key:"0e8af2e96d76c47ee3629db502b7af5b9204c4ee",name:"title"})),a("gux-truncate",{key:"7c5059fdbc0313ad6f0092906a5ad23e26723ca1",class:"gux-message","max-lines":2},a("slot",{key:"9acab5142ece228e1a833e4fa9fd4ca35164c33e",name:"message"}))),a("gux-dismiss-button",{key:"a8115319b6d30683d09cd71b07dec55cbdb7421c",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(e){e.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return i(this)}};s.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:294px;padding:16px 8px 16px 16px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-color:#b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:4px}.gux-icon ::slotted(gux-icon){width:24px !important;height:24px !important}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0;margin:0 12px 0 8px;color:#2e394c}.gux-content .gux-title,.gux-content .gux-message{flex:1 1 auto;align-self:auto;order:0}.gux-content .gux-title{font-family:var(--gse-core-typography-heading-sm-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-sm-fontSize);line-height:var(--gse-core-typography-heading-sm-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{s as gux_notification_toast_legacy}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as e,f as s,d as i,h as a,H as h,g as o}from"./p-6e010355.js";import{b as r}from"./p-18eb7333.js";import{w as n}from"./p-e97879b4.js";import{r as l}from"./p-0934300e.js";import{t as c}from"./p-b3aa1c65.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=l("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await r(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.disabled)),i=s.filter((t=>t.selected)),a=Boolean(e.length),h=i.length===s.length,o=0===i.length;t.selected=a&&h,t.setIndeterminate(a&&!h&&!o)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.disabled||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return a(h,{key:"92766bcc0d454655a0fe1381dd7e1b14863e4010","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{key:"835d1f245abd92f74fb1769668d86eeafa67a152",class:"gux-table"},a("div",{key:"a1a1231bb441722ab2ba37cd62f06ff3f212044a",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{key:"71773d7eb6f159b869a5c519fc894ba42ad47958",name:"data"})),this.isTableEmpty&&a("div",{key:"c9a571930a9a6253bfd03b13e949a49e805df874",class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};g.style=":host{position:relative;z-index:var(--gse-semantic-zIndex-sticky);display:block}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}";export{g as gux_table}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-6e010355.js";import{O as r}from"./p-b0758688.js";import{s as o}from"./p-2c25e2f2.js";import{b as s}from"./p-cf0e7d3b.js";import{g as n,b as u}from"./p-18eb7333.js";import{t as a}from"./p-b3aa1c65.js";import{u as c,a as l}from"./p-7f923c19.js";import"./p-4202e9f2.js";const g={am:"AM","time-separator":":",clockButton:"Toggle suggested times",hoursInput:"Input hours",minutesInput:"Input minutes",pm:"PM",timeOptionsState:"Time options open: {state}",toggleAmPM:"{amOrPm} selected, click to toggle"};function p(t,e){const[i,r]=t.split(":");return`${((parseInt(i,10)+e+24)%24).toString().padStart(2,"0")}:${r}`}function m(t,e,i){const[r,o]=t.split(":");let s=(parseInt(o,10)+e+60)%60;for(;s%i!=0;)s=(s+e+60)%60;return`${r}:${s.toString().padStart(2,"0")}`}function h(t,e){const[i,r]=t.split(":");return"12h"===e?`${(parseInt(i,10)%12||12).toString()}:${r}`:`${i}:${r}`}function d(t,e,i){const[r,o]=t.split(":");return"12h"===e?i?`${(parseInt(r,10)%12).toString().padStart(2,"0")}:${o}`:`${(parseInt(r,10)%12+12).toString().padStart(2,"0")}:${o}`:`${r}:${o}`}function f(t,e){const[i]=h(t,e).split(":");return i}function x(t){const[,e]=t.split(":");return e}function b(t){const[e]=t.split(":");return parseInt(e,10)<12}function v(t){return"12h"===t?"^(0?[1-9]|1[012])$":"^([01]?[0-9]|2[0-3])$"}const k=class{constructor(e){t(this,e),this.value="00:00",this.interval=60,this.step=1,this.disabled=!1,this.required=!1,this.hasError=!1,this.clockType=void 0,this.expanded=!1}onFocus(){this.valueLastChange=this.value}onBlur(){this.valueLastChange!==this.value&&o(this.root,"change")}onClickOutside(){this.expanded=!1}handleKeydown(t){switch(t.key){case"Escape":case"Tab":this.expanded=!1}}async componentWillLoad(){a(this.root),this.i18n=await u(this.root,g),this.clockType=this.clockType||function(t){let e;e=c()?l(t).toLowerCase():n(t).toLowerCase();const i=new Date("January 19, 1975 15:00:00 UTC+00:00"),r=new Intl.DateTimeFormat(e,{timeStyle:"short",timeZone:"UTC"}).format(i);return!c()&&["ar","ko","zh-cn","zh-tw"].some((t=>e.startsWith(t)))||new RegExp(".*15.*").test(r)?"24h":"12h"}(this.root)}updateValue(t,e=!1){t!==this.value&&(this.value=t,o(this.root,"input"),e&&this.valueLastChange!==this.value&&(o(this.root,"change"),this.valueLastChange=this.value))}valueToId(t){return`gux-id-${t.replace(":","-")}`}focusRelevantItemInPopupList(){s((()=>{this.listElement.guxFocusItemByClosestId(this.valueToId(this.value))}))}toggleDropdown(){this.expanded=!this.expanded,this.expanded&&this.focusRelevantItemInPopupList()}handleClickDropdownValue(t){const e=d(t,this.clockType,b(this.value));this.updateValue(e,!0),this.clockButton.focus(),this.expanded=!1}onHourKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(p(this.value,-1));break;case"ArrowUp":t.preventDefault(),this.updateValue(p(this.value,1));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.hourInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i,r,o){const[s,n]=h(t,e).split(":");let u=s;return u="Backspace"===i?"12h"==e&&1==o?u.split("").filter(((t,e)=>e==r-1)).join(""):u.split("").filter(((t,e)=>e!==r-1)).join("").padStart(2,"0"):parseInt(u.slice(0,r)+i+u.slice(r+1),10).toString().slice(-2).padStart(2,"0"),new RegExp(v(e)).test(u)||(u="12h"===e?i:i.padStart(2,"0")),d(`${u}:${n}`,e,b(t))}(this.value,this.clockType,t.key,this.hourInputElement.selectionStart,this.hourInputElement.value.length));break;default:t.preventDefault()}}onMinuteKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(m(this.value,-1,this.step));break;case"ArrowUp":t.preventDefault(),this.updateValue(m(this.value,1,this.step));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.minuteInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i){const[r,o]=t.split(":");let s=o;return s="Backspace"===e?s.split("").filter(((t,e)=>e!==i-1)).join("").padStart(2,"0"):(s.slice(0,i)+e+s.slice(i+1)).slice(-2).padStart(2,"0"),new RegExp("^[0-5][0-9]$").test(s)||(s=e.padStart(2,"0")),`${r}:${s}`}(this.value,t.key,this.minuteInputElement.selectionStart));break;default:t.preventDefault()}}onAmPmButtonKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":this.toggleAmPm(t)}}onListKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.clockButton.focus())}toggleAmPm(t){t.preventDefault(),this.updateValue(p(this.value,12),!0)}getAmPmString(){return b(this.value)?this.i18n("am"):this.i18n("pm")}renderNumberInput(){return e("div",{class:"gux-input-time-container"},e("input",{class:"gux-input-time-hours",type:"text",disabled:this.disabled,value:f(this.value,this.clockType),onKeyDown:t=>this.onHourKeyDown(t),"aria-label":this.i18n("hoursInput"),pattern:v(this.clockType),ref:t=>this.hourInputElement=t}),e("span",{class:"gux-time-separator"},this.i18n("time-separator")),e("input",{class:"gux-input-time-minutes",type:"text",disabled:this.disabled,value:x(this.value),onKeyDown:t=>this.onMinuteKeyDown(t),"aria-label":this.i18n("minutesInput"),pattern:"^[0-5][0-9]$",ref:t=>this.minuteInputElement=t}))}renderAmPmSelector(){if("12h"===this.clockType)return e("button",{class:"gux-input-time-am-pm-selector",type:"button",disabled:this.disabled,"aria-label":this.i18n("toggleAmPM",{amOrPm:this.getAmPmString()}),onClick:t=>this.toggleAmPm(t),onKeyDown:t=>this.onAmPmButtonKeyDown(t)},e("div",{class:{"gux-meridiem":!0,"gux-visible":b(this.value)}},this.i18n("am")),e("div",{class:{"gux-meridiem":!0,"gux-visible":!b(this.value)}},this.i18n("pm")))}renderClockButton(){return e("button",{class:{"gux-clock-button":!0,"gux-active":this.expanded},type:"button",disabled:this.disabled,"aria-label":this.i18n("clockButton"),"aria-expanded":this.expanded.toString(),onClick:this.toggleDropdown.bind(this),ref:t=>this.clockButton=t},e("gux-icon",{decorative:!0,"icon-name":"fa/clock-regular"}))}renderTimeListItems(){return function(t,e){const i=[0,15,30,45].filter((e=>Number.isInteger(e/t))).map((t=>String(t).padStart(2,"0")));return("12h"===e?["12","1","2","3","4","5","6","7","8","9","10","11"]:Array.from(Array(24).keys()).map((t=>String(t).padStart(2,"0")))).reduce(((t,e)=>t.concat(i.map((t=>`${e}:${t}`)))),[])}(this.interval,this.clockType).map((t=>{const i=d(t,this.clockType,b(this.value));return e("gux-list-item",{id:this.valueToId(i),onClick:()=>this.handleClickDropdownValue(t)},t)}))}renderTarget(){return e("div",{class:"gux-input-time",slot:"target"},this.renderNumberInput(),this.renderAmPmSelector(),this.renderClockButton())}renderPopup(){return e("div",{slot:"popup",class:"gux-list-container",onKeyDown:t=>this.onListKeyDown(t)},e("gux-list",{ref:t=>this.listElement=t},this.renderTimeListItems()))}render(){return e("gux-popup",{key:"808f6194bc3f0303106d96947eec91af83b1fbf1",class:{"gux-time-picker":!0,"gux-error":this.hasError},expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return i(this)}};(function(t,e,i,r){var o,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(n=(s<3?o(n):s>3?o(e,i,n):o(e,i))||n);s>3&&n&&Object.defineProperty(e,i,n)})([r({triggerEvents:"mousedown"})],k.prototype,"onClickOutside",null),k.style=".gux-time-picker{position:relative;display:inline-block}.gux-time-picker.gux-error .gux-input-time{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-time-picker .gux-input-time{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-time-picker .gux-input-time:focus-within{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-time-picker .gux-input-time:hover:not(:disabled){border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-time-picker .gux-input-time input{flex:1 1 auto;align-self:auto;order:0;width:2ch;padding:0;font-size:var(--gse-ui-formControl-label-text-fontSize);background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}.gux-time-picker .gux-input-time input.gux-input-time-hours{text-align:right}.gux-time-picker .gux-input-time input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector{display:grid;grid-template:auto 1fr/auto 1fr auto;place-items:flex-end;padding:0;font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);font-weight:var(--gse-ui-formControl-input-prefixSufix-text-fontWeight);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background:transparent;border:none;outline:none}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector:focus-visible{outline:var(--gse-semantic-focusRing-small-border-color) var(--gse-semantic-focusRing-small-border-style) var(--gse-semantic-focusRing-small-border-width);border-radius:var(--gse-ui-timePicker-focusAmpm-borderRadius)}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem{display:none;grid-row:1/1;grid-column:1/1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem.gux-visible{display:inline-block}.gux-time-picker .gux-input-time .gux-clock-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);background:transparent;border:none;outline:none}.gux-time-picker .gux-input-time .gux-clock-button.gux-active:not(:disabled){color:var(--gse-ui-timePicker-clockStates-activeColor);cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button:focus-visible{outline:var(--gse-semantic-focusRing-small-border-color) var(--gse-semantic-focusRing-small-border-style) var(--gse-semantic-focusRing-small-border-width);border-radius:var(--gse-ui-timePicker-focusClock-borderRadius)}.gux-time-picker .gux-input-time .gux-clock-button gux-icon{width:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);height:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);padding:var(--gse-ui-timePicker-clock-padding)}.gux-time-picker .gux-time-separator{padding:0 1ch}.gux-time-picker .gux-list-container{max-height:150px;margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x, --gse-ui-menu-boxShadow-offsetX) var(--gse-ui-menu-boxShadow-y, --gse-ui-menu-boxShadow-offsetY) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}";export{k as gux_time_picker}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,c as a,h as t,g as e}from"./p-6e010355.js";import{b as g}from"./p-18eb7333.js";import{t as r}from"./p-b3aa1c65.js";import"./p-4202e9f2.js";const u={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},c=class{constructor(t){o(this,t),this.guxdelete=a(this,"guxdelete",7),this.accent="default",this.disabled=!1,this.removable=!1,this.size="small",this.emphasis="bold",this.label=void 0}onKeyDown(o){switch(o.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit()}onSlotChange(o){const a=o.composedPath()[0].assignedNodes();this.label=a.map((o=>o.textContent.trim())).join("")}renderTagTitle(){return t("gux-tooltip-title",null,t("span",null,t("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return t("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return t("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},t("gux-icon",{class:"gux-tag-remove-icon","icon-name":"fa/xmark-large-regular","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,u)}render(){return t("div",{key:"5b8c83cfa5d4e5e88a335f6ac0cf2b4a263b104f",class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled,[`gux-size-${this.size}`]:!0,[`gux-emphasis-${this.emphasis}`]:!0},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};c.style=':host{display:inline-block;border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-tag-removable-gap);place-content:stretch flex-start;align-items:center;height:var(--gse-ui-tag-small-height);padding:var(--gse-ui-tag-padding);font-family:var(--gse-ui-tag-text-fontFamily);font-size:var(--gse-ui-tag-text-fontSize);font-weight:var(--gse-ui-tag-text-fontWeight, 600);line-height:var(--gse-ui-tag-text-lineHeight);color:var(--gse-ui-tag-default-foregroundColor);background-color:var(--gse-ui-tag-default-backgroundColor);border-radius:var(--gse-ui-tag-borderRadius)}.gux-tag.gux-size-small{height:var(--gse-ui-tag-small-height)}.gux-tag.gux-size-large{height:var(--gse-ui-tag-large-height)}.gux-tag.gux-disabled{position:relative}.gux-tag.gux-disabled::before{position:absolute;inset:0;content:"";background-color:#fff;border-radius:var(--gse-ui-tag-borderRadius);opacity:var(--gse-ui-tag-disabled-opacity)}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-tag .gux-tag-remove-button{all:unset;display:flex;place-content:center center;align-items:center}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:var(--gse-ui-tag-button-size);height:var(--gse-ui-tag-button-size);margin-right:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{border-radius:var(--gse-semantic-focusRing-cornerRadius);outline:var(--gse-semantic-focusRing-small-border-width) solid var(--gse-semantic-color-focus, --gse-ui-color-focus)}.gux-tag.gux-accent-default{color:var(--gse-ui-tag-default-bold-foregroundColor);background-color:var(--gse-ui-tag-default-bold-backgroundColor)}.gux-tag.gux-accent-default.gux-emphasis-subtle{color:var(--gse-ui-tag-default-subtle-foregroundColor);background-color:var(--gse-ui-tag-default-subtle-backgroundColor)}.gux-tag.gux-accent-1{color:var(--gse-ui-tag-accent1-bold-foregroundColor);background-color:var(--gse-ui-tag-accent1-bold-backgroundColor)}.gux-tag.gux-accent-1.gux-emphasis-subtle{color:var(--gse-ui-tag-accent1-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent1-subtle-backgroundColor)}.gux-tag.gux-accent-2{color:var(--gse-ui-tag-accent2-bold-foregroundColor);background-color:var(--gse-ui-tag-accent2-bold-backgroundColor)}.gux-tag.gux-accent-2.gux-emphasis-subtle{color:var(--gse-ui-tag-accent2-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent2-subtle-backgroundColor)}.gux-tag.gux-accent-3{color:var(--gse-ui-tag-accent3-bold-foregroundColor);background-color:var(--gse-ui-tag-accent3-bold-backgroundColor)}.gux-tag.gux-accent-3.gux-emphasis-subtle{color:var(--gse-ui-tag-accent3-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent3-subtle-backgroundColor)}.gux-tag.gux-accent-4{color:var(--gse-ui-tag-accent4-bold-foregroundColor);background-color:var(--gse-ui-tag-accent4-bold-backgroundColor)}.gux-tag.gux-accent-4.gux-emphasis-subtle{color:var(--gse-ui-tag-accent4-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent4-subtle-backgroundColor)}.gux-tag.gux-accent-5{color:var(--gse-ui-tag-accent5-bold-foregroundColor);background-color:var(--gse-ui-tag-accent5-bold-backgroundColor)}.gux-tag.gux-accent-5.gux-emphasis-subtle{color:var(--gse-ui-tag-accent5-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent5-subtle-backgroundColor)}.gux-tag.gux-accent-6{color:var(--gse-ui-tag-accent6-bold-foregroundColor);background-color:var(--gse-ui-tag-accent6-bold-backgroundColor)}.gux-tag.gux-accent-6.gux-emphasis-subtle{color:var(--gse-ui-tag-accent6-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent6-subtle-backgroundColor)}.gux-tag.gux-accent-7{color:var(--gse-ui-tag-accent7-bold-foregroundColor);background-color:var(--gse-ui-tag-accent7-bold-backgroundColor)}.gux-tag.gux-accent-7.gux-emphasis-subtle{color:var(--gse-ui-tag-accent7-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent7-subtle-backgroundColor)}.gux-tag.gux-accent-8{color:var(--gse-ui-tag-accent8-bold-foregroundColor);background-color:var(--gse-ui-tag-accent8-bold-backgroundColor)}.gux-tag.gux-accent-8.gux-emphasis-subtle{color:var(--gse-ui-tag-accent8-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent8-subtle-backgroundColor)}.gux-tag.gux-accent-9{color:var(--gse-ui-tag-accent9-bold-foregroundColor);background-color:var(--gse-ui-tag-accent9-bold-backgroundColor)}.gux-tag.gux-accent-9.gux-emphasis-subtle{color:var(--gse-ui-tag-accent9-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent9-subtle-backgroundColor)}.gux-tag.gux-accent-10{color:var(--gse-ui-tag-accent10-bold-foregroundColor);background-color:var(--gse-ui-tag-accent10-bold-backgroundColor)}.gux-tag.gux-accent-10.gux-emphasis-subtle{color:var(--gse-ui-tag-accent10-subtle-foregroundColor);background-color:var(--gse-ui-tag-accent10-subtle-backgroundColor)}.gux-tag.gux-accent-inherit{color:inherit;background-color:inherit}';export{c as gux_tag}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,H as s,g as i}from"./p-6e010355.js";import{a as o}from"./p-cf0e7d3b.js";import{e as n}from"./p-ea5e1b2f.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-18eb7333.js";import{t as u}from"./p-408d5857.js";import"./p-4202e9f2.js";const l=class{constructor(t){e(this,t),this.dropdownOptionsButtonId=a("gux-table-select-menu"),this.hasSelectMenuOptions=!1,this.dropdownDisabled=!1,this.popoverHidden=!0}focusFirstItemInPopupList(){const e=this.root.querySelector("gux-list");o((()=>{null==e||e.guxFocusFirstItem()}))}async componentWillLoad(){this.hasSelectMenuOptions=!!this.root.querySelector('[slot="select-menu-options"]'),this.i18n=await r(this.root,u,"gux-table")}onKeydown(e){var t;switch(e.key){case"ArrowDown":n(".gux-select-menu-button",e)&&(this.toggleOptions(),this.focusFirstItemInPopupList());break;case"Enter":n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList();break;case"Escape":n("gux-list",e)&&(e.stopPropagation(),this.popoverHidden=!0,null===(t=this.tableSelectMenuButtonElement)||void 0===t||t.focus());break;case"Tab":this.popoverHidden=!0}}onKeyup(e){" "===e.key&&n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList()}toggleOptions(){this.popoverHidden=!this.popoverHidden}renderSelectDropdown(){if(this.hasSelectMenuOptions)return[t("button",{id:this.dropdownOptionsButtonId,"aria-haspopup":"listbox","aria-expanded":(!this.popoverHidden).toString(),type:"button",class:"gux-select-menu-button",ref:e=>this.tableSelectMenuButtonElement=e,onClick:()=>this.toggleOptions(),disabled:this.dropdownDisabled},t("gux-icon",{"icon-name":"custom/chevron-down-small-regular","screenreader-text":this.i18n("tableOptions")})),t("gux-popover-list",{for:this.dropdownOptionsButtonId,isOpen:!this.popoverHidden,closeOnClickOutside:!0,onGuxdismiss:()=>this.popoverHidden=!0},t("div",null,t("slot",{name:"select-menu-options"})))]}render(){return t(s,{key:"c74845c2ba8802f78cf866331240fd08389630bc"},t("slot",{key:"9083d83e7caeb6ce53ee294dc881ea46a9c332c2"}),this.renderSelectDropdown())}get root(){return i(this)}};l.style="gux-table-select-menu{display:inline-flex;font-family:var(--gse-ui-popover-body-text-fontFamily);font-size:var(--gse-ui-popover-body-text-fontSize);font-weight:var(--gse-ui-popover-body-text-fontWeight);line-height:var(--gse-ui-popover-body-text-lineHeight)}gux-table-select-menu .gux-select-menu-button{padding:0;margin-left:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-cell-chevron-foregroundColor);background-color:inherit;border:none;outline:none}gux-table-select-menu .gux-select-menu-button:focus-visible{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:4px}gux-table-select-menu .gux-select-menu-button gux-icon{width:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);height:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size)}";export{l as gux_table_select_menu}
|