genesys-spark-components 4.0.0-beta.3 → 4.0.0-beta.31
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/{find-element-by-id-99f1f933.js → find-element-by-id-ecf0efa3.js} +10 -3
- package/dist/cjs/{floating-ui.dom.esm-cad0a9cf.js → floating-ui.dom.esm-2ed3685b.js} +71 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/get-slot-text-content-30aa5492.js +8 -0
- package/dist/cjs/get-valid-timezone-39ba3e64.js +520 -0
- package/dist/cjs/gux-accordion-section.cjs.entry.js +5 -10
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +8 -11
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/{gux-advanced-dropdown.cjs.entry.js → gux-advanced-dropdown-legacy.cjs.entry.js} +6 -6
- package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -5
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +68 -0
- package/dist/cjs/gux-blank-state.cjs.entry.js +24 -0
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +2 -3
- package/dist/cjs/gux-button-slot.cjs.entry.js +45 -0
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager-item.cjs.entry.js +3 -3
- package/dist/cjs/{gux-column-manager-beta.cjs.entry.js → gux-column-manager.cjs.entry.js} +7 -5
- package/dist/cjs/gux-content-search.cjs.entry.js +11 -8
- package/dist/cjs/{gux-context-menu-beta.cjs.entry.js → gux-context-menu.cjs.entry.js} +6 -4
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-create-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +7 -4
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +7 -4
- package/dist/cjs/gux-datepicker.cjs.entry.js +3 -3
- package/dist/cjs/{gux-disclosure-button.cjs.entry.js → gux-disclosure-button-legacy.cjs.entry.js} +5 -5
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
- package/dist/cjs/{gux-dropdown-multi-beta.cjs.entry.js → gux-dropdown-multi.cjs.entry.js} +6 -8
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +11 -12
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/{get-slot-text-content-8a021eeb.js → gux-form-field-fieldset-container-1abe7d3b.js} +0 -6
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +12 -12
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +5 -4
- 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 +7 -6
- package/dist/cjs/gux-icon.cjs.entry.js +4 -6
- package/dist/cjs/gux-inline-alert.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 +7 -6
- package/dist/cjs/gux-loading-message.cjs.entry.js +24 -0
- 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-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +8 -2
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +277 -0
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +137 -121
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +4 -4
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +76 -0
- package/dist/cjs/gux-pagination.cjs.entry.js +50 -25
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +76 -54
- package/dist/cjs/gux-popup.cjs.entry.js +27 -12
- package/dist/cjs/gux-radial-loading.cjs.entry.js +22 -3
- package/dist/cjs/gux-radial-progress.cjs.entry.js +11 -25
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-row-select.cjs.entry.js +4 -6
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/{gux-skip-navigation-list-beta.cjs.entry.js → gux-skip-navigation-list.cjs.entry.js} +2 -2
- package/dist/cjs/gux-sort-control.cjs.entry.js +6 -6
- package/dist/cjs/gux-submenu.cjs.entry.js +40 -35
- package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-advanced-list.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 +2 -2
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-select-popover.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 +9 -3
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +9 -3
- package/dist/cjs/{gux-table-toolbar-beta.cjs.entry.js → gux-table-toolbar.cjs.entry.js} +3 -3
- package/dist/cjs/{gux-table-beta.cjs.entry.js → gux-table.cjs.entry.js} +20 -112
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +6 -3
- package/dist/cjs/gux-tag.cjs.entry.js +80 -0
- package/dist/cjs/gux-text-highlight.cjs.entry.js +9 -8
- package/dist/cjs/gux-time-beta.cjs.entry.js +7 -4
- package/dist/cjs/{gux-time-picker-beta.cjs.entry.js → gux-time-picker.cjs.entry.js} +6 -6
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +7739 -0
- package/dist/cjs/gux-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +5 -0
- package/dist/cjs/gux-tooltip.cjs.entry.js +44 -10
- package/dist/cjs/index-0d0fdb85.js +50 -66
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-1066593d.js → usage-76088db2.js} +3 -1
- package/dist/collection/collection-manifest.json +35 -38
- package/dist/collection/components/beta/gux-announce/gux-announce.css +1 -1
- package/dist/collection/components/beta/gux-announce/gux-announce.js +1 -1
- package/dist/collection/components/beta/gux-date/gux-date.js +27 -1
- package/dist/collection/components/beta/gux-date-time/gux-date-time.js +27 -1
- package/dist/collection/components/beta/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +4 -0
- package/dist/collection/components/beta/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +39 -37
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +2 -2
- package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.css +1 -1
- package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.js +1 -1
- package/dist/collection/components/beta/gux-time/gux-time.js +27 -1
- package/dist/collection/components/beta/gux-time-zone-picker/generic-zones.js +438 -0
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.css +19 -0
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +247 -0
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +163 -0
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.css +3 -4
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.js +1 -1
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +136 -0
- package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.js +4 -4
- package/dist/collection/components/{stable/gux-disclosure-button → legacy/gux-disclosure-button-legacy}/gux-disclosure-button.css +6 -5
- package/dist/collection/components/{stable/gux-disclosure-button → legacy/gux-disclosure-button-legacy}/gux-disclosure-button.js +3 -3
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +118 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-button.service.js +91 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons-legacy.css +95 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +167 -0
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts-legacy.css +11 -0
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js → legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js} +5 -10
- package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page-legacy.css +26 -0
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js → legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js} +6 -6
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.css → legacy/gux-pagination-legacy/gux-pagination-legacy.css} +9 -11
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.js → legacy/gux-pagination-legacy/gux-pagination.js} +54 -80
- package/dist/collection/components/legacy/{gux-simple-toast → gux-simple-toast-legacy}/gux-simple-toast.css +1 -1
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +129 -42
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +8 -13
- package/dist/collection/components/stable/gux-accordion/gux-accordion.css +1 -1
- package/dist/collection/components/stable/gux-accordion/gux-accordion.js +1 -1
- package/dist/collection/components/stable/gux-action-button/gux-action-button.css +1 -0
- package/dist/collection/components/stable/gux-action-button/gux-action-button.js +5 -22
- package/dist/collection/components/stable/gux-alert/gux-inline-alert.css +2 -1
- package/dist/collection/components/stable/gux-badge/gux-badge.css +97 -0
- package/dist/collection/components/{beta → stable}/gux-badge/gux-badge.js +3 -28
- package/dist/collection/components/stable/gux-blank-state/gux-blank-state.css +98 -0
- package/dist/collection/components/stable/gux-blank-state/gux-blank-state.js +29 -0
- package/dist/collection/components/stable/gux-button/gux-button.css +43 -3
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -19
- package/dist/collection/components/{beta → stable}/gux-button-slot/gux-button-slot.css +43 -3
- package/dist/collection/components/{beta → stable}/gux-button-slot/gux-button-slot.js +2 -2
- package/dist/collection/components/stable/gux-calendar/gux-calendar.css +3 -3
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +128 -0
- package/dist/collection/components/{beta → stable}/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +2 -2
- package/dist/collection/components/{beta → stable}/gux-column-manager/gux-column-manager.css +9 -1
- package/dist/collection/components/{beta → stable}/gux-column-manager/gux-column-manager.js +3 -3
- package/dist/collection/components/stable/gux-content-search/gux-content-search.css +11 -7
- package/dist/collection/components/stable/gux-content-search/gux-content-search.js +3 -2
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +53 -0
- package/dist/collection/components/{beta → stable}/gux-context-menu/gux-context-menu.js +41 -3
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +1 -1
- package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.css +16 -26
- package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +2 -2
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +57 -43
- package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +9 -29
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +91 -0
- package/dist/collection/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +1 -1
- package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +209 -0
- package/dist/collection/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi.js +11 -31
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +143 -47
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +86 -30
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +146 -52
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +77 -23
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.css +92 -36
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +133 -55
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +146 -51
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +109 -73
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +154 -50
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +145 -54
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +84 -28
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +4 -4
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +51 -14
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +1 -1
- package/dist/collection/components/stable/gux-icon/gux-icon.js +3 -5
- package/dist/collection/components/stable/gux-icon/gux-icon.service.js +1 -1
- package/dist/collection/components/stable/gux-icon/icons/custom/carousel.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/co-browse.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/file-pen-question.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/filter-notification.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/font-regular-highlight.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/list-alphabetical-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/list-roman-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/one-button.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/person-running.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/quick-reply.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/three-button.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/alarm-clock-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/alarm-snooze-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/arrows-to-circle-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/award-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/backward-step-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/bell-on-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/bell-slash-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/circle-plus-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/comment-dots-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/diagram-nested-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/face-frown-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/face-frown-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/face-laugh-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/face-laugh-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/file-exclamation-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/forward-step-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/function-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/google.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/hand-back-point-right-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/list-radio-clean-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/microsoft.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/pause-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/pen-slash-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/play-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/regular-user-circle-arrow-left.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/square-dashed-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/stop-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/subscript-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/superscript-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/user-group-solid.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/volume-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/volume-xmark-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/wand-magic-sparkles-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/windows.svg +1 -0
- package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.css +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +27 -15
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
- package/dist/collection/components/stable/gux-list/gux-list.css +1 -1
- package/dist/collection/components/stable/gux-list/gux-list.js +1 -1
- package/dist/collection/components/stable/gux-listbox/gux-listbox.css +17 -12
- package/dist/collection/components/stable/gux-listbox/gux-listbox.js +30 -12
- package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.css +40 -19
- package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +3 -2
- package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.css +44 -25
- package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +3 -2
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +28 -21
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +17 -13
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +27 -9
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -31
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +10 -3
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +102 -0
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +28 -0
- package/dist/collection/components/stable/gux-modal/gux-modal.css +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.js +105 -62
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css +35 -50
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +33 -40
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +31 -0
- package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css +9 -7
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +7 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css +13 -6
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination.css +14 -7
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +77 -51
- package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.css +14 -28
- package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.js +4 -4
- package/dist/collection/components/stable/gux-popover/gux-popover.css +21 -46
- package/dist/collection/components/stable/gux-popover/gux-popover.js +95 -70
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +14 -65
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +97 -65
- package/dist/collection/components/stable/gux-popup/gux-popup.css +11 -0
- package/dist/collection/components/stable/gux-popup/gux-popup.js +22 -11
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +188 -31
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.functional.js +11 -0
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +2 -1
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.service.js +4 -0
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +30 -27
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.functional.js +3 -6
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.js +2 -28
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.service.js +5 -6
- package/dist/collection/components/stable/gux-rating/gux-rating.css +24 -7
- package/dist/collection/components/stable/gux-rating/gux-rating.js +1 -1
- package/dist/collection/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.css +4 -2
- package/dist/collection/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
- package/dist/collection/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-list.css +3 -1
- package/dist/collection/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-list.js +2 -2
- package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.css +66 -18
- package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.js +1 -1
- package/dist/collection/components/stable/gux-switch/gux-switch.css +2 -2
- package/dist/collection/components/stable/gux-switch/gux-switch.js +1 -1
- package/dist/collection/components/{beta → stable}/gux-table/gux-all-row-select/gux-all-row-select.css +2 -2
- package/dist/collection/components/{beta → stable}/gux-table/gux-all-row-select/gux-all-row-select.js +5 -6
- package/dist/collection/components/{beta → stable}/gux-table/gux-row-select/gux-row-select.css +2 -2
- package/dist/collection/components/{beta → stable}/gux-table/gux-row-select/gux-row-select.js +6 -7
- package/dist/collection/components/{beta → stable}/gux-table/gux-sort-control/gux-sort-control.css +9 -20
- package/dist/collection/components/{beta → stable}/gux-table/gux-sort-control/gux-sort-control.js +6 -6
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +63 -0
- package/dist/collection/components/{beta → stable}/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
- package/dist/collection/components/{beta → stable}/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.js +3 -3
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-select-popover.css +12 -0
- package/dist/collection/components/stable/gux-table/gux-table.css +80 -0
- package/dist/collection/components/{beta → stable}/gux-table/gux-table.js +20 -121
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.css +1 -1
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +1 -1
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.css +7 -5
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +8 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.css +31 -0
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +20 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.css +51 -0
- package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +56 -6
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +4 -3
- package/dist/collection/components/stable/gux-tabs/gux-tabs.css +14 -0
- package/dist/collection/components/stable/gux-tabs/gux-tabs.js +22 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.css +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -1
- package/dist/collection/components/stable/gux-tag/gux-tag.css +155 -0
- package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.js +27 -32
- package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.css +5 -2
- package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.js +25 -6
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +121 -0
- package/dist/collection/components/{beta → stable}/gux-time-picker/gux-time-picker.js +4 -4
- package/dist/collection/components/stable/gux-toast/gux-toast.js +1 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +45 -5
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +1 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle.css +4 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +1 -1
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.css +103 -7
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +83 -8
- package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +5 -0
- package/dist/collection/i18n/DateTimeFormatter.js +6 -9
- package/dist/collection/i18n/time-zone/identifiers.js +460 -0
- package/dist/collection/utils/date/get-valid-timezone.js +7 -0
- package/dist/collection/utils/dom/find-element-by-id.js +10 -3
- package/dist/collection/utils/dom/has-parent-element.js +4 -0
- package/dist/component-specs.json +718 -315
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{find-element-by-id-758a0703.js → find-element-by-id-7c5f4fbf.js} +10 -3
- package/dist/esm/{floating-ui.dom.esm-48871497.js → floating-ui.dom.esm-c86d3efa.js} +71 -1
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/get-slot-text-content-2e086993.js +6 -0
- package/dist/esm/get-valid-timezone-4b39f118.js +517 -0
- package/dist/esm/gux-accordion-section.entry.js +5 -10
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +8 -11
- package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
- package/dist/esm/{gux-advanced-dropdown.entry.js → gux-advanced-dropdown-legacy.entry.js} +6 -6
- package/dist/esm/gux-all-row-select.entry.js +3 -5
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +64 -0
- package/dist/esm/gux-blank-state.entry.js +20 -0
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +2 -3
- package/dist/esm/gux-button-slot.entry.js +41 -0
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +2 -2
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager-item.entry.js +3 -3
- package/dist/esm/{gux-column-manager-beta.entry.js → gux-column-manager.entry.js} +7 -5
- package/dist/esm/gux-content-search.entry.js +11 -8
- package/dist/esm/{gux-context-menu-beta.entry.js → gux-context-menu.entry.js} +6 -4
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-create-option.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +6 -3
- package/dist/esm/gux-date-time-beta.entry.js +6 -3
- package/dist/esm/gux-datepicker.entry.js +3 -3
- package/dist/esm/{gux-disclosure-button.entry.js → gux-disclosure-button-legacy.entry.js} +5 -5
- package/dist/esm/gux-dismiss-button.entry.js +3 -3
- package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
- package/dist/esm/{gux-dropdown-multi-beta.entry.js → gux-dropdown-multi.entry.js} +6 -8
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +11 -12
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +6 -5
- package/dist/esm/{get-slot-text-content-b2a8af86.js → gux-form-field-fieldset-container-02a0becc.js} +1 -6
- package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
- package/dist/esm/gux-form-field-number_3.entry.js +12 -12
- package/dist/esm/gux-form-field-phone.entry.js +4 -3
- 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 +6 -5
- package/dist/esm/gux-icon.entry.js +4 -6
- package/dist/esm/gux-inline-alert.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 +7 -6
- package/dist/esm/gux-loading-message.entry.js +20 -0
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-calendar.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-option-icon.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +8 -2
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +271 -0
- package/dist/esm/gux-pagination-buttons_3.entry.js +137 -121
- package/dist/esm/gux-pagination-cursor.entry.js +4 -4
- package/dist/esm/gux-pagination-legacy.entry.js +72 -0
- package/dist/esm/gux-pagination.entry.js +51 -26
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +76 -54
- package/dist/esm/gux-popup.entry.js +28 -13
- package/dist/esm/gux-radial-loading.entry.js +23 -4
- package/dist/esm/gux-radial-progress.entry.js +11 -25
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-region-icon.entry.js +1 -1
- package/dist/esm/gux-row-select.entry.js +4 -6
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/{gux-skip-navigation-list-beta.entry.js → gux-skip-navigation-list.entry.js} +2 -2
- package/dist/esm/gux-sort-control.entry.js +6 -6
- package/dist/esm/gux-submenu.entry.js +40 -35
- package/dist/esm/gux-switch-item.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +2 -2
- package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +1 -1
- package/dist/esm/gux-tab-panel.entry.js +3 -3
- package/dist/esm/gux-table-select-menu.entry.js +2 -2
- package/dist/esm/gux-table-select-popover.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 +9 -3
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +9 -3
- package/dist/esm/{gux-table-toolbar-beta.entry.js → gux-table-toolbar.entry.js} +3 -3
- package/dist/esm/{gux-table-beta.entry.js → gux-table.entry.js} +20 -112
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +6 -3
- package/dist/esm/gux-tag.entry.js +76 -0
- package/dist/esm/gux-text-highlight.entry.js +9 -8
- package/dist/esm/gux-time-beta.entry.js +6 -3
- package/dist/esm/{gux-time-picker-beta.entry.js → gux-time-picker.entry.js} +6 -6
- package/dist/esm/gux-time-zone-picker-beta.entry.js +7735 -0
- package/dist/esm/gux-toast.entry.js +2 -2
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +2 -2
- package/dist/esm/gux-tooltip-title.entry.js +5 -0
- package/dist/esm/gux-tooltip.entry.js +44 -10
- package/dist/esm/index-0b66fe2c.js +50 -66
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-4f6d345a.js → usage-c2ef5c8c.js} +3 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +31 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/icons/custom/carousel.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/co-browse.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/file-pen-question.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/filter-notification.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/font-regular-highlight.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/list-alphabetical-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/list-roman-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/one-button.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/person-running.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/quick-reply.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/three-button.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/alarm-clock-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/alarm-snooze-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/arrows-to-circle-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/award-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/backward-step-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/bell-on-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/bell-slash-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/circle-plus-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/comment-dots-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/diagram-nested-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/face-frown-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/face-frown-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/face-laugh-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/face-laugh-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/file-exclamation-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/forward-step-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/function-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/google.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/hand-back-point-right-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/list-radio-clean-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/microsoft.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/pause-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/pen-slash-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/play-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/regular-user-circle-arrow-left.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/square-dashed-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/stop-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/subscript-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/superscript-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/user-group-solid.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/volume-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/volume-xmark-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/wand-magic-sparkles-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/windows.svg +1 -0
- package/dist/genesys-webcomponents/p-03ca7264.js +1 -0
- package/dist/genesys-webcomponents/{p-fa04b5af.entry.js → p-08550670.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-aa3734af.entry.js → p-0bb5a6c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0f1f5051.entry.js +1 -0
- package/dist/genesys-webcomponents/p-12ba6fa2.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d7246c95.entry.js → p-17db53b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-19e7850a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f8394b8b.entry.js → p-1ae5933a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-28b46426.entry.js → p-1cd8bcb8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1f84c494.entry.js +1 -0
- package/dist/genesys-webcomponents/p-1fd76470.entry.js +1 -0
- package/dist/genesys-webcomponents/p-211cc1db.js +1 -0
- package/dist/genesys-webcomponents/{p-98ae6571.entry.js → p-2627df9a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3031a578.entry.js +1 -0
- package/dist/genesys-webcomponents/p-331ff0df.entry.js +1 -0
- package/dist/genesys-webcomponents/p-35546e82.entry.js +1 -0
- package/dist/genesys-webcomponents/p-3752d5d8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e5bd69c3.entry.js → p-390053f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-39e12286.entry.js +1 -0
- package/dist/genesys-webcomponents/p-3cf16e5c.entry.js +1 -0
- package/dist/genesys-webcomponents/p-3d6b25da.entry.js +1 -0
- package/dist/genesys-webcomponents/p-4522538f.entry.js +1 -0
- package/dist/genesys-webcomponents/p-4643a770.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5dc689bf.entry.js → p-4866bfb7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4211421.entry.js → p-4a381edf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4a709c74.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c7631270.entry.js → p-4ada7287.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4d57e936.entry.js +1 -0
- package/dist/genesys-webcomponents/p-4e2b5bcf.js +1 -0
- package/dist/genesys-webcomponents/{p-d3e3fc7e.entry.js → p-4ecdc2fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-014145e0.entry.js → p-5117cc64.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5229c638.entry.js +1 -0
- package/dist/genesys-webcomponents/p-540886e2.entry.js +1 -0
- package/dist/genesys-webcomponents/p-54ad79a3.entry.js +1 -0
- package/dist/genesys-webcomponents/p-5557cd9a.entry.js +1 -0
- package/dist/genesys-webcomponents/p-5676eed0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-42b85103.entry.js → p-569a9a76.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-56ab3858.entry.js +1 -0
- package/dist/genesys-webcomponents/p-57ff8ad1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-5ae38ef8.entry.js +1 -0
- package/dist/genesys-webcomponents/p-5d12bda1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-5d6aeead.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-06a92400.entry.js → p-5f22855f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-604a0f7f.entry.js +1 -0
- package/dist/genesys-webcomponents/p-636ec7a9.entry.js +1 -0
- package/dist/genesys-webcomponents/p-65bb8272.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6667a454.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6bff9eb3.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6d897554.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-143fe634.entry.js → p-6e4adfca.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7791b84e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-78876057.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7a24829d.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7c5d3642.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7ca16e75.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7de1f390.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7e1407ed.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7e7fee3c.entry.js +1 -0
- package/dist/genesys-webcomponents/p-82ffe3cc.js +1 -0
- package/dist/genesys-webcomponents/p-831456f4.entry.js +1 -0
- package/dist/genesys-webcomponents/p-8378b1b6.entry.js +1 -0
- package/dist/genesys-webcomponents/p-83f26f44.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b9c87f54.entry.js → p-86806c28.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8920a5e5.js +1 -0
- package/dist/genesys-webcomponents/p-8988c6ea.entry.js +1 -0
- package/dist/genesys-webcomponents/p-89c5488e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-8e818335.entry.js +1 -0
- package/dist/genesys-webcomponents/p-92fee962.entry.js +1 -0
- package/dist/genesys-webcomponents/p-994966b3.entry.js +1 -0
- package/dist/genesys-webcomponents/p-9be45fa0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-007a89c8.entry.js → p-a25f0a7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a3ebf19e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-a68abe9e.entry.js +1 -0
- package/dist/genesys-webcomponents/p-a97fe690.entry.js +1 -0
- package/dist/genesys-webcomponents/p-aa2f9991.js +1 -0
- package/dist/genesys-webcomponents/{p-8983bfc9.entry.js → p-aa4b0b25.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ac2967a.entry.js → p-ac02d254.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ae84aca5.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b1d403e7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b2f2a7e1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-baffeea7.entry.js +1 -0
- package/dist/genesys-webcomponents/p-bcbab73b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4534b0f0.entry.js → p-bfe1e622.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c115f0b6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4d250c8c.entry.js → p-c1b368fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c3d5a975.entry.js +1 -0
- package/dist/genesys-webcomponents/p-c52c7e48.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7b43f40b.entry.js → p-c609ed18.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5dd0ef71.entry.js → p-c985b725.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0b9e9b2b.entry.js → p-ca93f094.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cc3dba82.entry.js +1 -0
- package/dist/genesys-webcomponents/p-cddba5cf.entry.js +1 -0
- package/dist/genesys-webcomponents/p-d1a899f9.entry.js +1 -0
- package/dist/genesys-webcomponents/p-d31b073e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9dacadda.entry.js → p-d380407a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d5e44599.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f45cc72b.entry.js → p-d6c189be.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d719b9b2.entry.js +1 -0
- package/dist/genesys-webcomponents/p-d871c56b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a06e7e87.entry.js → p-dc81cdef.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e109ed01.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-bef1d03d.entry.js → p-e29026d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ef17b40f.entry.js +1 -0
- package/dist/genesys-webcomponents/p-ef910e9b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f1a4f5c9.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f26771dc.entry.js +1 -0
- package/dist/genesys-webcomponents/scss/focus.scss +48 -0
- package/dist/genesys-webcomponents/scss/style-reset-focusable.scss +23 -0
- package/dist/genesys-webcomponents/scss/style-reset-typography.scss +26 -0
- package/dist/genesys-webcomponents/scss/typography.scss +127 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-date/gux-date.d.ts +5 -0
- package/dist/types/components/beta/gux-date-time/gux-date-time.d.ts +5 -0
- package/dist/types/components/beta/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.d.ts +4 -4
- package/dist/types/components/beta/gux-time/gux-time.d.ts +8 -0
- package/dist/types/components/beta/gux-time-zone-picker/generic-zones.d.ts +15 -0
- package/dist/types/components/beta/gux-time-zone-picker/gux-time-zone-picker.d.ts +35 -0
- package/dist/types/components/beta/gux-time-zone-picker/gux-time-zone-picker.types.d.ts +22 -0
- package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.d.ts +1 -1
- package/dist/types/components/{stable/gux-disclosure-button → legacy/gux-disclosure-button-legacy}/gux-disclosure-button.d.ts +1 -1
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts → legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-button.service.d.ts} +1 -1
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts → legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.d.ts} +10 -7
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts → legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.d.ts} +1 -2
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts → legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.d.ts} +2 -2
- package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-beta.d.ts → legacy/gux-pagination-legacy/gux-pagination.d.ts} +9 -18
- package/dist/types/components/legacy/gux-pagination-legacy/gux-pagination.types.d.ts +6 -0
- package/dist/types/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.d.ts +1 -2
- package/dist/types/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.types.d.ts +1 -1
- package/dist/types/components/stable/gux-action-button/gux-action-button.d.ts +3 -4
- package/dist/types/components/{beta → stable}/gux-badge/gux-badge.d.ts +1 -2
- package/dist/types/components/{beta → stable}/gux-badge/gux-badge.types.d.ts +0 -1
- package/dist/types/components/{beta → stable}/gux-blank-state/gux-blank-state.d.ts +0 -8
- package/dist/types/components/stable/gux-button-multi/gux-button-multi.d.ts +0 -4
- package/dist/types/components/{beta → stable}/gux-button-slot/gux-button-slot.d.ts +1 -1
- package/dist/types/components/{beta → stable}/gux-context-menu/gux-context-menu.d.ts +8 -0
- package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +0 -4
- package/dist/types/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi.d.ts +1 -5
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.d.ts +1 -1
- package/dist/types/components/stable/gux-form-field/gux-form-field.service.d.ts +1 -1
- package/dist/types/components/stable/gux-icon/gux-icon.service.d.ts +1 -1
- package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
- package/dist/types/components/stable/gux-listbox/gux-listbox.d.ts +2 -1
- package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +2 -1
- package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +1 -0
- package/dist/types/components/{beta → stable}/gux-loading-message/gux-loading-message.d.ts +0 -10
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.d.ts +1 -1
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.d.ts +4 -7
- package/dist/types/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.d.ts +1 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination.d.ts +17 -8
- package/dist/types/components/stable/gux-pagination/gux-pagination.types.d.ts +1 -5
- package/dist/types/components/stable/gux-pagination-cursor/gux-pagination-cursor.d.ts +1 -1
- package/dist/types/components/stable/gux-popover/gux-popover.d.ts +12 -9
- package/dist/types/components/stable/gux-popover-list/gux-popover-list.d.ts +12 -9
- package/dist/types/components/stable/gux-popup/gux-popup.d.ts +1 -0
- package/dist/types/components/stable/gux-radial-loading/gux-radial-loading.functional.d.ts +8 -0
- package/dist/types/components/stable/gux-radial-loading/gux-radial-loading.service.d.ts +4 -0
- package/dist/types/components/stable/gux-radial-progress/gux-radial-progress.d.ts +0 -6
- package/dist/types/components/stable/gux-radial-progress/gux-radial-progress.functional.d.ts +0 -6
- package/dist/types/components/stable/gux-radial-progress/gux-radial-progress.service.d.ts +4 -3
- package/dist/types/components/{beta → stable}/gux-table/gux-row-select/gux-row-select.d.ts +1 -0
- package/dist/types/components/{beta → stable}/gux-table/gux-table.d.ts +1 -25
- package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.d.ts +1 -0
- package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.d.ts +3 -0
- package/dist/types/components/stable/gux-tabs/gux-tabs.d.ts +4 -0
- package/dist/types/components/{beta → stable}/gux-tag/gux-tag.d.ts +3 -16
- package/dist/types/components/stable/gux-tag/gux-tag.types.d.ts +1 -0
- package/dist/types/components/stable/gux-text-highlight/gux-text-highlight.d.ts +4 -0
- package/dist/types/components/{beta → stable}/gux-time-picker/gux-time-picker.d.ts +1 -1
- package/dist/types/components/stable/gux-tooltip/gux-tooltip-types.d.ts +1 -0
- package/dist/types/components/stable/gux-tooltip/gux-tooltip.d.ts +5 -0
- package/dist/types/components.d.ts +362 -481
- package/dist/types/i18n/DateTimeFormatter.d.ts +3 -3
- package/dist/types/i18n/time-zone/identifiers.d.ts +1 -0
- package/dist/types/i18n/time-zone/types.d.ts +2 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/utils/date/get-valid-timezone.d.ts +2 -0
- package/dist/types/utils/dom/calculate-input-disabled-state.d.ts +1 -1
- package/dist/types/utils/dom/has-parent-element.d.ts +1 -0
- package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
- package/dist/types/utils/dom/on-input-disabled-state-change.d.ts +1 -1
- package/package.json +3 -1
- package/dist/cjs/DateTimeFormatter-8deff48e.js +0 -54
- package/dist/cjs/gux-badge-beta.cjs.entry.js +0 -70
- package/dist/cjs/gux-blank-state-beta.cjs.entry.js +0 -68
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +0 -45
- package/dist/cjs/gux-error-message-beta.cjs.entry.js +0 -24
- package/dist/cjs/gux-loading-message-beta.cjs.entry.js +0 -68
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +0 -101
- package/dist/cjs/gux-pagination-buttons-beta_2.cjs.entry.js +0 -255
- package/dist/cjs/gux-pagination-items-per-page-beta.cjs.entry.js +0 -46
- package/dist/cjs/gux-popover-list-beta.cjs.entry.js +0 -139
- package/dist/cjs/gux-popover.cjs.entry.js +0 -133
- package/dist/cjs/gux-tab-panel-beta.cjs.entry.js +0 -34
- package/dist/cjs/gux-tag-beta.cjs.entry.js +0 -84
- package/dist/collection/components/beta/gux-badge/gux-badge.css +0 -83
- package/dist/collection/components/beta/gux-blank-state/gux-blank-state-constants.js +0 -5
- package/dist/collection/components/beta/gux-blank-state/gux-blank-state.css +0 -61
- package/dist/collection/components/beta/gux-blank-state/gux-blank-state.js +0 -75
- package/dist/collection/components/beta/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +0 -80
- package/dist/collection/components/beta/gux-context-menu/gux-context-menu.css +0 -20
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +0 -50
- package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +0 -161
- package/dist/collection/components/beta/gux-error-message-beta/gux-error-message-beta.css +0 -24
- package/dist/collection/components/beta/gux-error-message-beta/gux-error-message-beta.js +0 -27
- package/dist/collection/components/beta/gux-loading-message/gux-loading-message-constants.js +0 -5
- package/dist/collection/components/beta/gux-loading-message/gux-loading-message.css +0 -55
- package/dist/collection/components/beta/gux-loading-message/gux-loading-message.js +0 -75
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js +0 -134
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css +0 -96
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js +0 -160
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +0 -30
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css +0 -10
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css +0 -29
- package/dist/collection/components/beta/gux-popover-beta/gux-popover-beta.css +0 -61
- package/dist/collection/components/beta/gux-popover-beta/gux-popover-beta.js +0 -267
- package/dist/collection/components/beta/gux-popover-list-beta/gux-popover-list-beta.css +0 -46
- package/dist/collection/components/beta/gux-popover-list-beta/gux-popover-list-beta.js +0 -257
- package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.css +0 -8
- package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.js +0 -107
- package/dist/collection/components/beta/gux-table/gux-table-select-menu/gux-table-select-menu.css +0 -30
- package/dist/collection/components/beta/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-select-popover.css +0 -12
- package/dist/collection/components/beta/gux-table/gux-table.css +0 -74
- package/dist/collection/components/beta/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.css +0 -35
- package/dist/collection/components/beta/gux-table-toolbar/gux-table-toolbar.css +0 -52
- package/dist/collection/components/beta/gux-tag/gux-tag.css +0 -461
- package/dist/collection/components/beta/gux-time-picker/gux-time-picker.css +0 -134
- package/dist/collection/components/legacy/gux-action-toast/gux-action-toast.css +0 -267
- package/dist/collection/components/legacy/gux-notification-toast/gux-notification-toast.css +0 -221
- package/dist/collection/components/stable/gux-advanced-dropdown/gux-advanced-dropdown.css +0 -85
- package/dist/collection/components/stable/gux-popover/gux-popover.types.js +0 -1
- package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.types.js +0 -1
- package/dist/collection/style/fonts/roboto-v20-latin-300.svg +0 -1
- package/dist/collection/style/fonts/roboto-v20-latin-700.svg +0 -309
- package/dist/collection/style/fonts/roboto-v20-latin-italic.svg +0 -323
- package/dist/collection/style/fonts/roboto-v20-latin-regular.svg +0 -308
- package/dist/esm/DateTimeFormatter-bb057477.js +0 -52
- package/dist/esm/gux-badge-beta.entry.js +0 -66
- package/dist/esm/gux-blank-state-beta.entry.js +0 -64
- package/dist/esm/gux-button-slot-beta.entry.js +0 -41
- package/dist/esm/gux-error-message-beta.entry.js +0 -20
- package/dist/esm/gux-loading-message-beta.entry.js +0 -64
- package/dist/esm/gux-pagination-beta.entry.js +0 -97
- package/dist/esm/gux-pagination-buttons-beta_2.entry.js +0 -250
- package/dist/esm/gux-pagination-items-per-page-beta.entry.js +0 -42
- package/dist/esm/gux-popover-list-beta.entry.js +0 -135
- package/dist/esm/gux-popover.entry.js +0 -129
- package/dist/esm/gux-tab-panel-beta.entry.js +0 -30
- package/dist/esm/gux-tag-beta.entry.js +0 -80
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.svg +0 -1
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.svg +0 -309
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.svg +0 -323
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.svg +0 -308
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.woff2 +0 -0
- package/dist/genesys-webcomponents/less/color-palette.less +0 -105
- package/dist/genesys-webcomponents/less/focus.less +0 -48
- package/dist/genesys-webcomponents/less/shadows.less +0 -17
- package/dist/genesys-webcomponents/less/spacing.less +0 -12
- package/dist/genesys-webcomponents/less/typography.less +0 -162
- package/dist/genesys-webcomponents/p-00dba256.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0187cfca.entry.js +0 -1
- package/dist/genesys-webcomponents/p-04215fd3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0501a8ad.entry.js +0 -1
- package/dist/genesys-webcomponents/p-06b92ca2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-06f30929.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0a111975.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0a686dd4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0db3479d.js +0 -1
- package/dist/genesys-webcomponents/p-0e7dc170.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0eaec165.entry.js +0 -1
- package/dist/genesys-webcomponents/p-12a34636.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1322db24.entry.js +0 -1
- package/dist/genesys-webcomponents/p-17385760.js +0 -1
- package/dist/genesys-webcomponents/p-1aab5a86.entry.js +0 -1
- package/dist/genesys-webcomponents/p-210bc5a8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-227ba754.entry.js +0 -1
- package/dist/genesys-webcomponents/p-22a428f3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-235edbf8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-27b1150a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2ca3f5bd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-34890311.entry.js +0 -1
- package/dist/genesys-webcomponents/p-370563b8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3a86180c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3d65f3b8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3f96ede4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-40037e9a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-42d93c14.entry.js +0 -1
- package/dist/genesys-webcomponents/p-43748f70.entry.js +0 -1
- package/dist/genesys-webcomponents/p-43d22f9f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4973d037.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4ba3a4d7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4bd9fcee.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4d7cbbbf.entry.js +0 -1
- package/dist/genesys-webcomponents/p-50fae429.entry.js +0 -1
- package/dist/genesys-webcomponents/p-55c943ad.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5a3e613a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5e666e72.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5e8b1690.entry.js +0 -1
- package/dist/genesys-webcomponents/p-60ddf4af.entry.js +0 -1
- package/dist/genesys-webcomponents/p-616c083d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6319cc9d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6357fd4f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6370cb48.js +0 -1
- package/dist/genesys-webcomponents/p-70c68f78.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7410f336.entry.js +0 -1
- package/dist/genesys-webcomponents/p-763ee30d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7d614de7.js +0 -1
- package/dist/genesys-webcomponents/p-7e49d86d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7f17b7c6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-80953a09.entry.js +0 -1
- package/dist/genesys-webcomponents/p-81c3fa5a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-821fa621.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8b068f71.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8c3381ee.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8c3b568d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8d8eb1cc.entry.js +0 -1
- package/dist/genesys-webcomponents/p-92db2ccc.entry.js +0 -1
- package/dist/genesys-webcomponents/p-94c730d5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9784842e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9a5e67c6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9cd12de7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a4b4144f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a4db12b6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a83dd958.entry.js +0 -1
- package/dist/genesys-webcomponents/p-af48a4c4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b3148424.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c0bd9ed3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c4820c41.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c8e08089.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cb2e0d0e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cbb3c659.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d5d77807.entry.js +0 -1
- package/dist/genesys-webcomponents/p-dd312964.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e1ea5be7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ec218689.js +0 -1
- package/dist/genesys-webcomponents/p-f0d98b64.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f2fea056.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f9768ae7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fc5ef376.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fc64f71e.entry.js +0 -1
- package/dist/types/components/beta/gux-blank-state/gux-blank-state-constants.d.ts +0 -5
- package/dist/types/components/beta/gux-blank-state/gux-blank-state.types.d.ts +0 -1
- package/dist/types/components/beta/gux-error-message-beta/gux-error-message-beta.d.ts +0 -10
- package/dist/types/components/beta/gux-loading-message/gux-loading-message-constants.d.ts +0 -5
- package/dist/types/components/beta/gux-loading-message/gux-loading-message-size.types.d.ts +0 -1
- package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +0 -2
- package/dist/types/components/beta/gux-popover-beta/gux-popover-beta.d.ts +0 -44
- package/dist/types/components/beta/gux-popover-list-beta/gux-popover-list-beta.d.ts +0 -41
- package/dist/types/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.d.ts +0 -18
- package/dist/types/components/beta/gux-tag/gux-tag.types.d.ts +0 -2
- package/dist/types/components/stable/gux-popover/gux-popover.types.d.ts +0 -1
- package/dist/types/components/stable/gux-popover-list/gux-popover-list.types.d.ts +0 -1
- package/dist/types/components/stable/gux-radial-progress/gux-radial-progress.types.d.ts +0 -1
- /package/dist/cjs/{en-b3076cac.js → en-2a12d7c4.js} +0 -0
- /package/dist/cjs/{en-dc1f49b7.js → en-d1b32383.js} +0 -0
- /package/dist/cjs/{gux-column-manager.service-94f84964.js → gux-column-manager.service-8a71e1f3.js} +0 -0
- /package/dist/collection/components/beta/{gux-badge/gux-badge.types.js → gux-time-zone-picker/gux-time-zone-picker.types.js} +0 -0
- /package/dist/collection/components/legacy/{gux-action-toast → gux-action-toast-legacy}/gux-action-toast.js +0 -0
- /package/dist/collection/components/{stable/gux-disclosure-button → legacy/gux-disclosure-button-legacy}/gux-disclosure-button.types.js +0 -0
- /package/dist/collection/components/legacy/{gux-notification-toast → gux-notification-toast-legacy}/gux-notification-toast.js +0 -0
- /package/dist/collection/components/legacy/{gux-notification-toast → gux-notification-toast-legacy}/gux-notification-toast.types.js +0 -0
- /package/dist/collection/components/{beta/gux-blank-state/gux-blank-state.types.js → legacy/gux-pagination-legacy/gux-pagination.types.js} +0 -0
- /package/dist/collection/components/legacy/{gux-simple-toast → gux-simple-toast-legacy}/gux-simple-toast.js +0 -0
- /package/dist/collection/components/legacy/{gux-simple-toast → gux-simple-toast-legacy}/gux-simple-toast.types.js +0 -0
- /package/dist/collection/components/{beta/gux-column-manager/gux-column-manager.types.js → stable/gux-badge/gux-badge.types.js} +0 -0
- /package/dist/collection/components/{beta → stable}/gux-column-manager/gux-column-manager-item/gux-column-manager-item.service.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-column-manager/gux-column-manager.service.js +0 -0
- /package/dist/collection/components/{beta/gux-loading-message/gux-loading-message-size.types.js → stable/gux-column-manager/gux-column-manager.types.js} +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table/gux-sort-control/tests/gux-sort-control.markup.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table/gux-table.types.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.types.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action-accents.types.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.constants.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.service.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.types.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.types.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-time-picker/gux-time-picker.service.js +0 -0
- /package/dist/collection/components/{beta → stable}/gux-time-picker/gux-time-picker.type.js +0 -0
- /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.types.js → stable/gux-tooltip/gux-tooltip-types.js} +0 -0
- /package/dist/collection/{components/stable/gux-popover-list/gux-popover-list.types.js → i18n/time-zone/types.js} +0 -0
- /package/dist/esm/{en-66f138f8.js → en-5ed282a0.js} +0 -0
- /package/dist/esm/{en-5d726a81.js → en-6c4aef39.js} +0 -0
- /package/dist/esm/{gux-column-manager.service-07ddccf5.js → gux-column-manager.service-a9ea5c54.js} +0 -0
- /package/dist/genesys-webcomponents/{p-e310debb.js → p-1aa11396.js} +0 -0
- /package/dist/genesys-webcomponents/{p-62913396.js → p-4a6ae41e.js} +0 -0
- /package/dist/genesys-webcomponents/{p-89af02eb.js → p-abb9b5f7.js} +0 -0
- /package/dist/types/components/legacy/{gux-action-toast → gux-action-toast-legacy}/gux-action-toast.d.ts +0 -0
- /package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.d.ts +0 -0
- /package/dist/types/components/{stable/gux-disclosure-button → legacy/gux-disclosure-button-legacy}/gux-disclosure-button.types.d.ts +0 -0
- /package/dist/types/components/legacy/{gux-notification-toast → gux-notification-toast-legacy}/gux-notification-toast.d.ts +0 -0
- /package/dist/types/components/legacy/{gux-notification-toast → gux-notification-toast-legacy}/gux-notification-toast.types.d.ts +0 -0
- /package/dist/types/components/legacy/{gux-simple-toast → gux-simple-toast-legacy}/gux-simple-toast.d.ts +0 -0
- /package/dist/types/components/legacy/{gux-simple-toast → gux-simple-toast-legacy}/gux-simple-toast.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-column-manager/gux-column-manager-item/gux-column-manager-item.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-column-manager/gux-column-manager-item/gux-column-manager-item.service.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-column-manager/gux-column-manager.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-column-manager/gux-column-manager.service.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-column-manager/gux-column-manager.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +0 -0
- /package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-skip-navigation-list/gux-skip-navigation-list.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-all-row-select/gux-all-row-select.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-sort-control/gux-sort-control.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-sort-control/tests/gux-sort-control.markup.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-table-select-menu/gux-table-select-menu.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table/gux-table.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar-action-accents.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.constants.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.service.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-table-toolbar/gux-table-toolbar.types.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-time-picker/gux-time-picker.service.d.ts +0 -0
- /package/dist/types/components/{beta → stable}/gux-time-picker/gux-time-picker.type.d.ts +0 -0
@@ -4,4 +4,4 @@ import{r as t,c as n,d as i,w as o,h as e,g as r}from"./p-7d26b2e1.js";import{O
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
6
6
|
* @license MIT
|
7
|
-
*/function h(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,o)}return i}function d(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?h(Object(i),!0).forEach((function(n){b(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function b(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function v(){return v=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},v.apply(this,arguments)}function g(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=g(/Edge/i),x=g(/firefox/i),w=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),y=g(/iP(ad|od|hone)/i),E=g(/chrome/i)&&g(/android/i),S={capture:!1,passive:!1};function T(t,n,i){t.addEventListener(n,i,!m&&S)}function O(t,n,i){t.removeEventListener(n,i,!m&&S)}function k(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function I(t,n,i,o){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&k(t,n):k(t,n))||o&&t===i)return t;if(t===i)break}while(t=M(t))}return null}var C,j=/\s+/g;function A(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(j," ").replace(" "+n+" "," ");t.className=(o+(i?" "+n:"")).replace(j," ")}}function D(t,n,i){var o=t&&t.style;if(o){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in o||-1!==n.indexOf("webkit")||(n="-webkit-"+n),o[n]=i+("string"==typeof i?"":"px")}}function _(t,n){var i="";if("string"==typeof t)i=t;else do{var o=D(t,"transform");o&&"none"!==o&&(i=o+" "+i)}while(!n&&(t=t.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(i)}function z(t,n,i){if(t){var o=t.getElementsByTagName(n),e=0,r=o.length;if(i)for(;e<r;e++)i(o[e],e);return o}return[]}function R(){return document.scrollingElement||document.documentElement}function L(t,n,i,o,e){if(t.getBoundingClientRect||t===window){var r,a,s,u,c,l,h;if(t!==window&&t.parentNode&&t!==R()?(a=(r=t.getBoundingClientRect()).top,s=r.left,u=r.bottom,c=r.right,l=r.height,h=r.width):(a=0,s=0,u=window.innerHeight,c=window.innerWidth,l=window.innerHeight,h=window.innerWidth),(n||i)&&t!==window&&(e=e||t.parentNode,!m))do{if(e&&e.getBoundingClientRect&&("none"!==D(e,"transform")||i&&"static"!==D(e,"position"))){var d=e.getBoundingClientRect();a-=d.top+parseInt(D(e,"border-top-width")),s-=d.left+parseInt(D(e,"border-left-width")),u=a+r.height,c=s+r.width;break}}while(e=e.parentNode);if(o&&t!==window){var f=_(e||t),b=f&&f.a,v=f&&f.d;f&&(u=(a/=v)+(l/=v),c=(s/=b)+(h/=b))}return{top:a,left:s,bottom:u,right:c,width:h,height:l}}}function N(t,n,i){for(var o=G(t,!0),e=L(t)[n];o;){var r=L(o)[i];if(!("top"===i||"left"===i?e>=r:e<=r))return o;if(o===R())break;o=G(o,!1)}return!1}function F(t,n,i,o){for(var e=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Kt.ghost&&(o||a[r]!==Kt.dragged)&&I(a[r],i.draggable,t,!1)){if(e===n)return a[r];e++}r++}return null}function H(t,n){for(var i=t.lastElementChild;i&&(i===Kt.ghost||"none"===D(i,"display")||n&&!k(i,n));)i=i.previousElementSibling;return i||null}function P(t,n){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Kt.clone||n&&!k(t,n)||i++;return i}function B(t){var n=0,i=0,o=R();if(t)do{var e=_(t);n+=t.scrollLeft*e.a,i+=t.scrollTop*e.d}while(t!==o&&(t=t.parentNode));return[n,i]}function G(t,n){if(!t||!t.getBoundingClientRect)return R();var i=t,o=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var e=D(i);if(i.clientWidth<i.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!i.getBoundingClientRect||i===document.body)return R();if(o||n)return i;o=!0}}}while(i=i.parentNode);return R()}function W(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}function K(t,n){return function(){if(!C){var i=arguments;1===i.length?t.call(this,i[0]):t.apply(this,i),C=setTimeout((function(){C=void 0}),n)}}}function U(t,n,i){t.scrollLeft+=n,t.scrollTop+=i}function X(t){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}var Y="Sortable"+(new Date).getTime();var $=[],V={initializeByDefault:!0},Z={mount:function(t){for(var n in V)V.hasOwnProperty(n)&&!(n in t)&&(t[n]=V[n]);$.forEach((function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),$.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var e=t+"Global";$.forEach((function(o){n[o.pluginName]&&(n[o.pluginName][e]&&n[o.pluginName][e](d({sortable:n},i)),n.options[o.pluginName]&&n[o.pluginName][t]&&n[o.pluginName][t](d({sortable:n},i)))}))},initializePlugins:function(t,n,i){for(var o in $.forEach((function(o){var e=o.pluginName;if(t.options[e]||o.initializeByDefault){var r=new o(t,n,t.options);r.sortable=t,r.options=t.options,t[e]=r,v(i,r.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var e=this.modifyOption(t,o,t.options[o]);void 0!==e&&(t.options[o]=e)}},getEventProperties:function(t,n){var i={};return $.forEach((function(o){"function"==typeof o.eventProperties&&v(i,o.eventProperties.call(n[o.pluginName],t))})),i},modifyOption:function(t,n,i){var o;return $.forEach((function(e){t[e.pluginName]&&e.optionListeners&&"function"==typeof e.optionListeners[n]&&(o=e.optionListeners[n].call(t[e.pluginName],i))})),o}},q=["evt"],J=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.evt,e=function(t,n){if(null==t)return{};var i,o,e=function(t,n){if(null==t)return{};var i,o,e={},r=Object.keys(t);for(o=0;o<r.length;o++)n.indexOf(i=r[o])>=0||(e[i]=t[i]);return e}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n.indexOf(i=r[o])>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}return e}(i,q);Z.pluginEvent.bind(Kt)(t,n,d({dragEl:tt,parentEl:nt,ghostEl:it,rootEl:ot,nextEl:et,lastDownEl:rt,cloneEl:at,cloneHidden:st,dragStarted:wt,putSortable:ft,activeSortable:Kt.active,originalEvent:o,oldIndex:ut,oldDraggableIndex:lt,newIndex:ct,newDraggableIndex:ht,hideGhostForTarget:Pt,unhideGhostForTarget:Bt,cloneNowHidden:function(){st=!0},cloneNowShown:function(){st=!1},dispatchSortableEvent:function(t){Q({sortable:n,name:t,originalEvent:o})}},e))};function Q(t){!function(t){var n=t.sortable,i=t.rootEl,o=t.name,e=t.targetEl,r=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,l=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,b=t.putSortable,v=t.extraEventProperties;if(n=n||i&&i[Y]){var g,x=n.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||m||p?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||i,g.from=s||i,g.item=e||i,g.clone=r,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=l,g.newDraggableIndex=h,g.originalEvent=f,g.pullMode=b?b.lastPutMode:void 0;var y=d(d({},v),Z.getEventProperties(o,n));for(var E in y)g[E]=y[E];i&&i.dispatchEvent(g),x[w]&&x[w].call(n,g)}}(d({putSortable:ft,cloneEl:at,targetEl:tt,rootEl:ot,oldIndex:ut,oldDraggableIndex:lt,newIndex:ct,newDraggableIndex:ht},t))}var tt,nt,it,ot,et,rt,at,st,ut,ct,lt,ht,dt,ft,bt,vt,gt,mt,pt,xt,wt,yt,Et,St,Tt,Ot=!1,kt=!1,Mt=[],It=!1,Ct=!1,jt=[],At=!1,Dt=[],_t="undefined"!=typeof document,zt=y,Rt=p||m?"cssFloat":"float",Lt=_t&&!E&&!y&&"draggable"in document.createElement("div"),Nt=function(){if(_t){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ft=function(t,n){var i=D(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),e=F(t,0,n),r=F(t,1,n),a=e&&D(e),s=r&&D(r),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+L(e).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(r).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":e&&a.float&&"none"!==a.float?!r||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":e&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=o&&"none"===i[Rt]||r&&"none"===i[Rt]&&u+c>o)?"vertical":"horizontal"},Ht=function(t){function n(t,i){return function(o,e,r,a){if(null==t&&(i||o.options.group.name&&e.options.group.name&&o.options.group.name===e.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(o,e,r,a),i)(o,e,r,a);var s=(i?o:e).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},o=t.group;o&&"object"==f(o)||(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Pt=function(){!Nt&&it&&D(it,"display","none")},Bt=function(){!Nt&&it&&D(it,"display","")};_t&&!E&&document.addEventListener("click",(function(t){if(kt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),kt=!1,!1}),!0);var Gt=function(t){if(tt){var n=(e=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,Mt.some((function(t){var n=t[Y].options.emptyInsertThreshold;if(n&&!H(t)){var i=L(t);return e>=i.left-n&&e<=i.right+n&&r>=i.top-n&&r<=i.bottom+n?a=t:void 0}})),a);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Y]._onDragOver(i)}}var e,r,a},Wt=function(t){tt&&tt.parentNode[Y]._isOutsideThisEl(t.target)};function Kt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=v({},n),t[Y]=this;var i,o,e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Kt.supportPointer&&"PointerEvent"in window&&!w,emptyInsertThreshold:5};for(var r in Z.initializePlugins(this,t,e),e)!(r in n)&&(n[r]=e[r]);for(var a in Ht(n),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!n.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Mt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),v(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==D(t,"display")&&t!==Kt.ghost){o.push({target:t,rect:L(t)});var n=d({},o[o.length-1].rect);if(t.thisAnimationDuration){var i=_(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[i][o])return Number(i);return-1}(o,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var e=!1,r=0;o.forEach((function(t){var i=0,o=t.target,a=o.fromRect,s=L(o),u=o.prevFromRect,c=o.prevToRect,l=t.rect,h=_(o,!0);h&&(s.top-=h.f,s.left-=h.e),o.toRect=s,o.thisAnimationDuration&&W(u,s)&&!W(a,s)&&(l.top-s.top)/(l.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,n,i,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*o.animation}(l,u,c,n.options)),W(s,a)||(o.prevFromRect=a,o.prevToRect=s,i||(i=n.options.animation),n.animate(o,l,s,i)),i&&(e=!0,r=Math.max(r,i),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),i),o.thisAnimationDuration=i)})),clearTimeout(i),e?i=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),o=[]},animate:function(t,n,i,o){if(o){D(t,"transition",""),D(t,"transform","");var e=_(this.el),r=(n.left-i.left)/(e&&e.a||1),a=(n.top-i.top)/(e&&e.d||1);t.animatingX=!!r,t.animatingY=!!a,D(t,"transform","translate3d("+r+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}))}function Ut(t,n,i,o,e,r,a,s){var u,c,l=t[Y],h=l.options.onMove;return!window.CustomEvent||m||p?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=i,u.draggedRect=o,u.related=e||n,u.relatedRect=r||L(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),h&&(c=h.call(l,u,a)),c}function Xt(t){t.draggable=!1}function Yt(){At=!1}function $t(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,o=0;i--;)o+=n.charCodeAt(i);return o.toString(36)}function Vt(t){return setTimeout(t,0)}function Zt(t){return clearTimeout(t)}Kt.prototype={constructor:Kt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(yt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,tt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,e=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=o.filter;if(function(t){Dt.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var o=n[i];o.checked&&Dt.push(o)}}(i),!tt&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!w||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=I(s,o.draggable,i,!1))&&s.animated||rt===s)){if(ut=P(s),lt=P(s,o.draggable),"function"==typeof c){if(c.call(this,t,s,this))return Q({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i}),J("filter",n,{evt:t}),void(e&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=I(u,o.trim(),i,!1))return Q({sortable:n,rootEl:o,name:"filter",targetEl:s,fromEl:i,toEl:i}),J("filter",n,{evt:t}),!0}))))return void(e&&t.cancelable&&t.preventDefault());o.handle&&!I(u,o.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,i){var o,e=this,r=e.el,a=e.options,s=r.ownerDocument;if(i&&!tt&&i.parentNode===r){var u=L(i);if(ot=r,nt=(tt=i).parentNode,et=tt.nextSibling,rt=i,dt=a.group,Kt.dragged=tt,pt=(bt={target:tt,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,xt=bt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,tt.style["will-change"]="all",o=function(){J("delayEnded",e,{evt:t}),Kt.eventCanceled?e._onDrop():(e._disableDelayedDragEvents(),!x&&e.nativeDraggable&&(tt.draggable=!0),e._triggerDragStart(t,n),Q({sortable:e,name:"choose",originalEvent:t}),A(tt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){z(tt,t.trim(),Xt)})),T(s,"dragover",Gt),T(s,"mousemove",Gt),T(s,"touchmove",Gt),T(s,"mouseup",e._onDrop),T(s,"touchend",e._onDrop),T(s,"touchcancel",e._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,tt.draggable=!0),J("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(p||m))o();else{if(Kt.eventCanceled)return void this._onDrop();T(s,"mouseup",e._disableDelayedDrag),T(s,"touchend",e._disableDelayedDrag),T(s,"touchcancel",e._disableDelayedDrag),T(s,"mousemove",e._delayedDragTouchMoveHandler),T(s,"touchmove",e._delayedDragTouchMoveHandler),a.supportPointer&&T(s,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){tt&&Xt(tt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._disableDelayedDrag),O(t,"touchend",this._disableDelayedDrag),O(t,"touchcancel",this._disableDelayedDrag),O(t,"mousemove",this._delayedDragTouchMoveHandler),O(t,"touchmove",this._delayedDragTouchMoveHandler),O(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?T(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(T(tt,"dragend",this),T(ot,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,n){if(Ot=!1,ot&&tt){J("dragStarted",this,{evt:n}),this.nativeDraggable&&T(document,"dragover",Wt);var i=this.options;!t&&A(tt,i.dragClass,!1),A(tt,i.ghostClass,!0),Kt.active=this,t&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(vt){this._lastX=vt.clientX,this._lastY=vt.clientY,Pt();for(var t=document.elementFromPoint(vt.clientX,vt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(vt.clientX,vt.clientY))!==n;)n=t;if(tt.parentNode[Y]._isOutsideThisEl(t),n)do{if(n[Y]&&n[Y]._onDragOver({clientX:vt.clientX,clientY:vt.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);Bt()}},_onTouchMove:function(t){if(bt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,e=t.touches?t.touches[0]:t,r=it&&_(it,!0),a=it&&r&&r.a,s=it&&r&&r.d,u=zt&&Tt&&B(Tt),c=(e.clientX-bt.clientX+o.x)/(a||1)+(u?u[0]-jt[0]:0)/(a||1),l=(e.clientY-bt.clientY+o.y)/(s||1)+(u?u[1]-jt[1]:0)/(s||1);if(!Kt.active&&!Ot){if(i&&Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(it){r?(r.e+=c-(gt||0),r.f+=l-(mt||0)):r={a:1,b:0,c:0,d:1,e:c,f:l};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(it,"webkitTransform",h),D(it,"mozTransform",h),D(it,"msTransform",h),D(it,"transform",h),gt=c,mt=l,vt=e}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:ot,n=L(tt,!0,zt,!0,t),i=this.options;if(zt){for(Tt=t;"static"===D(Tt,"position")&&"none"===D(Tt,"transform")&&Tt!==document;)Tt=Tt.parentNode;Tt!==document.body&&Tt!==document.documentElement?(Tt===document&&(Tt=R()),n.top+=Tt.scrollTop,n.left+=Tt.scrollLeft):Tt=R(),jt=B(Tt)}A(it=tt.cloneNode(!0),i.ghostClass,!1),A(it,i.fallbackClass,!0),A(it,i.dragClass,!0),D(it,"transition",""),D(it,"transform",""),D(it,"box-sizing","border-box"),D(it,"margin",0),D(it,"top",n.top),D(it,"left",n.left),D(it,"width",n.width),D(it,"height",n.height),D(it,"opacity","0.8"),D(it,"position",zt?"absolute":"fixed"),D(it,"zIndex","100000"),D(it,"pointerEvents","none"),Kt.ghost=it,t.appendChild(it),D(it,"transform-origin",pt/parseInt(it.style.width)*100+"% "+xt/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,e=i.options;J("dragStart",this,{evt:t}),Kt.eventCanceled?this._onDrop():(J("setupClone",this),Kt.eventCanceled||((at=X(tt)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),A(at,this.options.chosenClass,!1),Kt.clone=at),i.cloneId=Vt((function(){J("clone",i),Kt.eventCanceled||(i.options.removeCloneOnHide||ot.insertBefore(at,tt),i._hideClone(),Q({sortable:i,name:"clone"}))})),!n&&A(tt,e.dragClass,!0),n?(kt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(O(document,"mouseup",i._onDrop),O(document,"touchend",i._onDrop),O(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",e.setData&&e.setData.call(i,o,tt)),T(document,"drop",i),D(tt,"transform","translateZ(0)")),Ot=!0,i._dragStartId=Vt(i._dragStarted.bind(i,n,t)),T(document,"selectstart",i),wt=!0,w&&D(document.body,"user-select","none"))},_onDragOver:function(t){var n,i,o,e,r=this.el,a=t.target,s=this.options,u=s.group,c=Kt.active,l=dt===u,h=s.sort,f=ft||c,b=this,v=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=I(a,s.draggable,r,!0),_("dragOver"),Kt.eventCanceled)return v;if(tt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||b._ignoreWhileAnimating===a)return R(!1);if(kt=!1,c&&!s.disabled&&(l?h||(o=nt!==ot):ft===this||(this.lastPutMode=dt.checkPull(this,c,tt,t))&&u.checkPut(this,c,tt,t))){if(e="vertical"===this._getDirection(t,a),n=L(tt),_("dragOverValid"),Kt.eventCanceled)return v;if(o)return nt=ot,z(),this._hideClone(),_("revert"),Kt.eventCanceled||(et?ot.insertBefore(tt,et):ot.appendChild(tt)),R(!0);var g=H(r,s.draggable);if(!g||function(t,n,i){var o=L(H(i.el,i.options.draggable));return n?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,e,this)&&!g.animated){if(g===tt)return R(!1);if(g&&r===t.target&&(a=g),a&&(i=L(a)),!1!==Ut(ot,r,tt,n,a,i,t,!!a))return z(),g&&g.nextSibling?r.insertBefore(tt,g.nextSibling):r.appendChild(tt),nt=r,B(),R(!0)}else if(g&&function(t,n,i){var o=L(F(i.el,0,i.options,!0));return n?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,e,this)){var m=F(r,0,s,!0);if(m===tt)return R(!1);if(i=L(a=m),!1!==Ut(ot,r,tt,n,a,i,t,!1))return z(),r.insertBefore(tt,m),nt=r,B(),R(!0)}else if(a.parentNode===r){i=L(a);var p,x,w,y=tt.parentNode!==r,E=!function(t,n,i){var o=i?t.left:t.top,e=i?n.left:n.top;return o===e||(i?t.right:t.bottom)===(i?n.right:n.bottom)||o+(i?t.width:t.height)/2===e+(i?n.width:n.height)/2}(tt.animated&&tt.toRect||n,a.animated&&a.toRect||i,e),S=e?"top":"left",T=N(a,"top","top")||N(tt,"top","top"),O=T?T.scrollTop:void 0;if(yt!==a&&(x=i[S],It=!1,Ct=!E&&s.invertSwap||y),p=function(t,n,i,o,e,r,a,s){var u=o?t.clientY:t.clientX,c=o?i.height:i.width,l=o?i.top:i.left,h=o?i.bottom:i.right,d=!1;if(!a)if(s&&St<c*e){if(!It&&(1===Et?u>l+c*r/2:u<h-c*r/2)&&(It=!0),It)d=!0;else if(1===Et?u<l+St:u>h-St)return-Et}else if(u>l+c*(1-e)/2&&u<h-c*(1-e)/2)return function(t){return P(tt)<P(t)?1:-1}(n);return(d=d||a)&&(u<l+c*r/2||u>h-c*r/2)?u>l+c/2?1:-1:0}(t,a,i,e,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,yt===a),0!==p){var k=P(tt);do{w=nt.children[k-=p]}while(w&&("none"===D(w,"display")||w===it))}if(0===p||w===a)return R(!1);yt=a,Et=p;var M=a.nextElementSibling,C=!1,j=Ut(ot,r,tt,n,a,i,t,C=1===p);if(!1!==j)return 1!==j&&-1!==j||(C=1===j),At=!0,setTimeout(Yt,30),z(),C&&!M?r.appendChild(tt):a.parentNode.insertBefore(tt,C?M:a),T&&U(T,0,O-T.scrollTop),nt=tt.parentNode,void 0===x||Ct||(St=Math.abs(x-L(a)[S])),B(),R(!0)}if(r.contains(tt))return R(!1)}return!1}function _(s,u){J(s,b,d({evt:t,isOwner:l,axis:e?"vertical":"horizontal",revert:o,dragRect:n,targetRect:i,canSort:h,fromSortable:f,target:a,completed:R,onMove:function(i,o){return Ut(ot,r,tt,n,i,L(i),t,o)},changed:B},u))}function z(){_("dragOverAnimationCapture"),b.captureAnimationState(),b!==f&&f.captureAnimationState()}function R(n){return _("dragOverCompleted",{insertion:n}),n&&(l?c._hideClone():c._showClone(b),b!==f&&(A(tt,ft?ft.options.ghostClass:c.options.ghostClass,!1),A(tt,s.ghostClass,!0)),ft!==b&&b!==Kt.active?ft=b:b===Kt.active&&ft&&(ft=null),f===b&&(b._ignoreWhileAnimating=a),b.animateAll((function(){_("dragOverAnimationComplete"),b._ignoreWhileAnimating=null})),b!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===tt&&!tt.animated||a===r&&!a.animated)&&(yt=null),s.dragoverBubble||t.rootEl||a===document||(tt.parentNode[Y]._isOutsideThisEl(t.target),!n&&Gt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function B(){ct=P(tt),ht=P(tt,s.draggable),Q({sortable:b,name:"change",toEl:r,newIndex:ct,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Gt),O(document,"mousemove",Gt),O(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._onDrop),O(t,"touchend",this._onDrop),O(t,"pointerup",this._onDrop),O(t,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;ct=P(tt),ht=P(tt,i.draggable),J("drop",this,{evt:t}),nt=tt&&tt.parentNode,ct=P(tt),ht=P(tt,i.draggable),Kt.eventCanceled||(Ot=!1,Ct=!1,It=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Zt(this.cloneId),Zt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w&&D(document.body,"user-select",""),D(tt,"transform",""),t&&(wt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(ot===nt||ft&&"clone"!==ft.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),tt&&(this.nativeDraggable&&O(tt,"dragend",this),Xt(tt),tt.style["will-change"]="",wt&&!Ot&&A(tt,ft?ft.options.ghostClass:this.options.ghostClass,!1),A(tt,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ot!==nt?(ct>=0&&(Q({rootEl:nt,name:"add",toEl:nt,fromEl:ot,originalEvent:t}),Q({sortable:this,name:"remove",toEl:nt,originalEvent:t}),Q({rootEl:nt,name:"sort",toEl:nt,fromEl:ot,originalEvent:t}),Q({sortable:this,name:"sort",toEl:nt,originalEvent:t})),ft&&ft.save()):ct!==ut&&ct>=0&&(Q({sortable:this,name:"update",toEl:nt,originalEvent:t}),Q({sortable:this,name:"sort",toEl:nt,originalEvent:t})),Kt.active&&(null!=ct&&-1!==ct||(ct=ut,ht=lt),Q({sortable:this,name:"end",toEl:nt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){J("nulling",this),ot=tt=nt=it=et=at=rt=st=bt=vt=wt=ct=ht=ut=lt=yt=Et=ft=dt=Kt.dragged=Kt.ghost=Kt.clone=Kt.active=null,Dt.forEach((function(t){t.checked=!0})),Dt.length=gt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":tt&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,o=0,e=i.length,r=this.options;o<e;o++)I(t=i[o],r.draggable,this.el,!1)&&n.push(t.getAttribute(r.dataIdAttr)||$t(t));return n},sort:function(t,n){var i={},o=this.el;this.toArray().forEach((function(t,n){var e=o.children[n];I(e,this.options.draggable,o,!1)&&(i[t]=e)}),this),n&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(o.removeChild(i[t]),o.appendChild(i[t]))})),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return I(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(void 0===n)return i[t];var o=Z.modifyOption(this,t,n);i[t]=void 0!==o?o:n,"group"===t&&Ht(i)},destroy:function(){J("destroy",this);var t=this.el;t[Y]=null,O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart),O(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!st){if(J("hideClone",this),Kt.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),st=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(st){if(J("showClone",this),Kt.eventCanceled)return;tt.parentNode!=ot||this.options.group.revertClone?et?ot.insertBefore(at,et):ot.appendChild(at):ot.insertBefore(at,tt),this.options.group.revertClone&&this.animate(tt,at),D(at,"display",""),st=!1}}else this._hideClone()}},_t&&T(document,"touchmove",(function(t){(Kt.active||Ot)&&t.cancelable&&t.preventDefault()})),Kt.utils={on:T,off:O,css:D,find:z,is:function(t,n){return!!I(t,n,t,!1)},extend:function(t,n){if(t&&n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t},throttle:K,closest:I,toggleClass:A,clone:X,index:P,nextTick:Vt,cancelNextTick:Zt,detectDirection:Ft,getChild:F},Kt.get=function(t){return t[Y]},Kt.mount=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n[0].constructor===Array&&(n=n[0]),n.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Kt.utils=d(d({},Kt.utils),t.utils)),Z.mount(t)}))},Kt.create=function(t,n){return new Kt(t,n)},Kt.version="1.15.0";var qt,Jt,Qt,tn,nn,on,en=[],rn=!1;function an(){en.forEach((function(t){clearInterval(t.pid)})),en=[]}function sn(){clearInterval(on)}var un=K((function(t,n,i,o){if(n.scroll){var e,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=n.scrollSensitivity,u=n.scrollSpeed,c=R(),l=!1;Jt!==i&&(Jt=i,an(),e=n.scrollFn,!0===(qt=n.scroll)&&(qt=G(i,!0)));var h=0,d=qt;do{var f=d,b=L(f),v=b.top,g=b.bottom,m=b.left,p=b.right,x=b.width,w=b.height,y=void 0,E=void 0,S=f.scrollWidth,T=f.scrollHeight,O=D(f),k=f.scrollLeft,M=f.scrollTop;f===c?(y=x<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),E=w<T&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(y=x<S&&("auto"===O.overflowX||"scroll"===O.overflowX),E=w<T&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=y&&(Math.abs(p-r)<=s&&k+x<S)-(Math.abs(m-r)<=s&&!!k),C=E&&(Math.abs(g-a)<=s&&M+w<T)-(Math.abs(v-a)<=s&&!!M);if(!en[h])for(var j=0;j<=h;j++)en[j]||(en[j]={});en[h].vx==I&&en[h].vy==C&&en[h].el===f||(en[h].el=f,en[h].vx=I,en[h].vy=C,clearInterval(en[h].pid),0==I&&0==C||(l=!0,en[h].pid=setInterval(function(){o&&0===this.layer&&Kt.active._onTouchMove(nn);var n=en[this.layer].vy?en[this.layer].vy*u:0,i=en[this.layer].vx?en[this.layer].vx*u:0;"function"==typeof e&&"continue"!==e.call(Kt.dragged.parentNode[Y],i,n,t,nn,en[this.layer].el)||U(en[this.layer].el,i,n)}.bind({layer:h}),24))),h++}while(n.bubbleScroll&&d!==c&&(d=G(d,!1)));rn=l}}),30),cn=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,e=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(n){var a=i||t.activeSortable;(0,t.hideGhostForTarget)();var s=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(s.clientX,s.clientY);r(),a&&!a.el.contains(u)&&(e("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function ln(){}function hn(){}ln.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=F(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:cn},v(ln,{pluginName:"revertOnSpill"}),hn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:cn},v(hn,{pluginName:"removeOnSpill"}),Kt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):T(document,this.options.supportPointer?"pointermove":n.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;this.options.dragOverBubble||n.rootEl||this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),sn(),an(),clearTimeout(C),C=void 0},nulling:function(){nn=Jt=qt=rn=on=Qt=tn=null,en.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,o=(t.touches?t.touches[0]:t).clientX,e=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,e);if(nn=t,n||this.options.forceAutoScrollFallback||p||m||w){un(t,this.options,r,n);var a=G(r,!0);!rn||on&&o===Qt&&e===tn||(on&&sn(),on=setInterval((function(){var r=G(document.elementFromPoint(o,e),!0);r!==a&&(a=r,an()),un(t,i.options,r,n)}),10),Qt=o,tn=e)}else{if(!this.options.bubbleScroll||G(r,!0)===R())return void an();un(t,this.options,G(r,!1),!1)}}},v(t,{pluginName:"scroll",initializeByDefault:!0})}),Kt.mount(hn,ln);const dn=class{constructor(i){t(this,i),this.newTab=n(this,"newTab",7),this.sortChanged=n(this,"sortChanged",7),this.showNewTabButton=!0,this.tabLimit=1/0,this.allowSort=!0,this.focused=0,this.disableAddTabButton=!1,this.tabTriggers=void 0,this.hasScrollbar=!1,this.keyboardSort=!1,this.initialSortIndex=0,this.sortTarget=void 0,this.ariaLiveAlert=""}onFocusin(t){this.allowSort&&s(".gux-scrollable-section",t)&&!this.keyboardSort&&(this.ariaLiveAlert="toggleSort")}onFocusout(t){this.root.querySelector(".gux-scrollable-section").contains(t.relatedTarget)||this.tabTriggers.forEach(((t,n)=>{t.guxGetActive().then((i=>{i?this.focused=n:(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))}))}watchAllowSort(t){t?this.validateSortableInstance():this.destroySortable()}onMutation(){this.setTabTriggers()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":if(t.preventDefault(),this.keyboardSort&&!s(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),n=t.querySelectorAll("gux-tab-advanced"),i=Array.prototype.indexOf.call(n,this.sortTarget);let o;o=i===n.length-1?n[0]:n[i+2],t.insertBefore(this.sortTarget,o),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused)}else s(".gux-tab-options-button",t)||s(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":if(t.preventDefault(),this.keyboardSort&&!s(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),n=t.querySelectorAll("gux-tab-advanced"),i=Array.prototype.indexOf.call(n,this.sortTarget);t.insertBefore(this.sortTarget,n[i-1]||null),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused)}else s(".gux-tab-options-button",t)||s(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.keyboardSort&&this.allowSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled",this.root.querySelector(".gux-scrollable-section").insertBefore(this.sortTarget,this.tabTriggers[this.initialSortIndex]||null)),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.initialSortIndex),u((()=>{this.focusTab(this.initialSortIndex)}));break;case"Enter":this.keyboardSort&&(t.preventDefault(),this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.emitSortChanged());break;case"Tab":this.keyboardSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled");break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onKeyup(t){" "===t.key&&s(".gux-tab",t)&&!s(".gux-tab-options-button",t)&&!s("gux-popover-list",t)&&this.allowSort&&(t.preventDefault(),!0===this.keyboardSort?(this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused),this.emitSortChanged()):(this.keyboardSort=!0,this.sortTarget=t.target.parentNode.parentNode,this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.initialSortIndex=n)})),this.ariaLiveAlert="sortModeOn"))}async guxSetActive(t){this.tabTriggers.forEach(((n,i)=>{const o=n.tabId===t;n.guxSetActive(o),o&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,n)=>{t.guxGetActive().then((i=>{this.focused===n||i||(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].querySelector(".gux-tab-options-button")&&this.tabTriggers[this.focused].querySelector(".gux-tab-options-button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}createSortable(){this.sortableInstance=new Kt(this.root.querySelector(".gux-scrollable-section"),{animation:250,draggable:"gux-tab-advanced",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{this.emitSortChanged()}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}emitSortChanged(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced")).map((t=>t.tabId));this.sortChanged.emit(t)}checkForScrollbarHideOrShow(){i((()=>{const t=this.root.querySelector(".gux-scrollable-section"),n=t.clientWidth<t.scrollWidth;n!==this.hasScrollbar&&(this.hasScrollbar=n)}))}handleKeyboardScroll(t){"forward"===t?this.focused<this.tabTriggers.length-1?(this.hasScrollbar&&this.scrollRight(),this.focusTab(this.focused+1)):(this.hasScrollbar&&this.scrollToStart(),this.focusTab(0)):"backward"===t&&(this.focused>0?(this.hasScrollbar&&this.scrollLeft(),this.focusTab(this.focused-1)):(this.hasScrollbar&&this.scrollToEnd(),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await c(this.root,l,"gux-tabs-advanced")}validateSortableInstance(){this.allowSort&&!this.sortableInstance&&this.createSortable()}componentDidLoad(){this.validateSortableInstance(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),u((()=>{this.checkForScrollbarHideOrShow()}),500)}scrollLeft(){o((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(-(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth),0)}))}scrollRight(){o((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth,0)}))}scrollToStart(){const t=this.root.querySelector(".gux-scrollable-section");o((()=>{null==t||t.scrollBy(-(null==t?void 0:t.scrollWidth),0)}))}scrollToEnd(){const t=this.root.querySelector(".gux-scrollable-section");o((()=>{t.scrollBy(null==t?void 0:t.scrollWidth,0)}))}componentWillRender(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced"));this.disableAddTabButton=t.length>=this.tabLimit}render(){return[e("span",{class:"gux-sr-only gux-aria-live-region","aria-live":"polite"},this.ariaLiveAlert?this.i18n(this.ariaLiveAlert):""),e("div",{class:"gux-tab-container"},e("div",{class:"action-button-container"},this.renderScrollButton("scrollLeft")),e("div",{role:"tablist",class:"gux-scrollable-section "+(this.keyboardSort?"gux-tab-sorting":""),"aria-owns":this.triggerIds},e("slot",null)),e("div",{class:"action-button-container"},this.renderScrollButton("scrollRight"),this.showNewTabButton?e((t=>e("button",{title:this.disableAddTabButton?this.i18n("disableNewTab"):this.root.querySelector('[slot="add-tab"]')?this.root.querySelector('[slot="add-tab"]').textContent.trim():this.i18n("createNewTab"),class:"add-tab-button",onClick:()=>t.onClick(),disabled:this.disableAddTabButton},e("slot",{name:"add-tab"},e("gux-icon",{"icon-name":"add",decorative:!0})))),{onClick:()=>this.newTab.emit()}):null))]}renderScrollButton(t){return e("div",{class:"gux-scroll-button-container"},this.hasScrollbar?e("button",{tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onDragOver:()=>this.getScrollDirection(t),onClick:()=>this.getScrollDirection(t)},e("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight()}}getChevronIconName(t){switch(t){case"scrollLeft":return"chevron-left";case"scrollRight":return"chevron-right"}}get root(){return r(this)}static get watchers(){return{allowSort:["watchAllowSort"]}}};(function(t,n,i,o){var e,r=arguments.length,a=r<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,i,o);else for(var s=t.length-1;s>=0;s--)(e=t[s])&&(a=(r<3?e(a):r>3?e(n,i,a):e(n,i))||a);r>3&&a&&Object.defineProperty(n,i,a)})([a({childList:!0,subtree:!0})],dn.prototype,"onMutation",null),dn.style="gux-tab-advanced-list .gux-tab-container{display:flex;align-items:flex-end;width:100%;height:50px;margin-bottom:16px;overflow-x:auto;overflow-y:hidden;background-color:#f6f7f9;border-bottom:1px solid #d7dce5;border-radius:4px 4px 0 0}gux-tab-advanced-list .gux-tab-container .action-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button{min-width:35px;height:50px;padding:0;margin-left:2px;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button [slot='add-tab']{display:inline-flex;align-items:center;padding:0 12px;white-space:nowrap;font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button [slot='add-tab'] gux-icon{padding-right:8px}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:disabled{opacity:0.5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #aac9ff}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:focus-visible{border-radius:5px;outline:none;box-shadow:inset 0 0 0 3px #aac9ff}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:50px;padding:0;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{border:3px solid #aac9ff;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section{display:flex;align-items:flex-end;height:50px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tab-advanced-list .gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{dn as gux_tab_advanced_list}
|
7
|
+
*/function h(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,o)}return i}function d(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?h(Object(i),!0).forEach((function(n){b(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function b(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function v(){return v=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},v.apply(this,arguments)}function g(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=g(/Edge/i),x=g(/firefox/i),w=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),y=g(/iP(ad|od|hone)/i),E=g(/chrome/i)&&g(/android/i),S={capture:!1,passive:!1};function T(t,n,i){t.addEventListener(n,i,!m&&S)}function O(t,n,i){t.removeEventListener(n,i,!m&&S)}function k(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function I(t,n,i,o){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&k(t,n):k(t,n))||o&&t===i)return t;if(t===i)break}while(t=M(t))}return null}var C,j=/\s+/g;function A(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(j," ").replace(" "+n+" "," ");t.className=(o+(i?" "+n:"")).replace(j," ")}}function D(t,n,i){var o=t&&t.style;if(o){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in o||-1!==n.indexOf("webkit")||(n="-webkit-"+n),o[n]=i+("string"==typeof i?"":"px")}}function _(t,n){var i="";if("string"==typeof t)i=t;else do{var o=D(t,"transform");o&&"none"!==o&&(i=o+" "+i)}while(!n&&(t=t.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(i)}function z(t,n,i){if(t){var o=t.getElementsByTagName(n),e=0,r=o.length;if(i)for(;e<r;e++)i(o[e],e);return o}return[]}function L(){return document.scrollingElement||document.documentElement}function N(t,n,i,o,e){if(t.getBoundingClientRect||t===window){var r,a,s,u,c,l,h;if(t!==window&&t.parentNode&&t!==L()?(a=(r=t.getBoundingClientRect()).top,s=r.left,u=r.bottom,c=r.right,l=r.height,h=r.width):(a=0,s=0,u=window.innerHeight,c=window.innerWidth,l=window.innerHeight,h=window.innerWidth),(n||i)&&t!==window&&(e=e||t.parentNode,!m))do{if(e&&e.getBoundingClientRect&&("none"!==D(e,"transform")||i&&"static"!==D(e,"position"))){var d=e.getBoundingClientRect();a-=d.top+parseInt(D(e,"border-top-width")),s-=d.left+parseInt(D(e,"border-left-width")),u=a+r.height,c=s+r.width;break}}while(e=e.parentNode);if(o&&t!==window){var f=_(e||t),b=f&&f.a,v=f&&f.d;f&&(u=(a/=v)+(l/=v),c=(s/=b)+(h/=b))}return{top:a,left:s,bottom:u,right:c,width:h,height:l}}}function R(t,n,i){for(var o=G(t,!0),e=N(t)[n];o;){var r=N(o)[i];if(!("top"===i||"left"===i?e>=r:e<=r))return o;if(o===L())break;o=G(o,!1)}return!1}function F(t,n,i,o){for(var e=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Kt.ghost&&(o||a[r]!==Kt.dragged)&&I(a[r],i.draggable,t,!1)){if(e===n)return a[r];e++}r++}return null}function H(t,n){for(var i=t.lastElementChild;i&&(i===Kt.ghost||"none"===D(i,"display")||n&&!k(i,n));)i=i.previousElementSibling;return i||null}function P(t,n){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Kt.clone||n&&!k(t,n)||i++;return i}function B(t){var n=0,i=0,o=L();if(t)do{var e=_(t);n+=t.scrollLeft*e.a,i+=t.scrollTop*e.d}while(t!==o&&(t=t.parentNode));return[n,i]}function G(t,n){if(!t||!t.getBoundingClientRect)return L();var i=t,o=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var e=D(i);if(i.clientWidth<i.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!i.getBoundingClientRect||i===document.body)return L();if(o||n)return i;o=!0}}}while(i=i.parentNode);return L()}function W(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}function K(t,n){return function(){if(!C){var i=arguments;1===i.length?t.call(this,i[0]):t.apply(this,i),C=setTimeout((function(){C=void 0}),n)}}}function U(t,n,i){t.scrollLeft+=n,t.scrollTop+=i}function X(t){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}var Y="Sortable"+(new Date).getTime();var $=[],V={initializeByDefault:!0},Z={mount:function(t){for(var n in V)V.hasOwnProperty(n)&&!(n in t)&&(t[n]=V[n]);$.forEach((function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),$.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var e=t+"Global";$.forEach((function(o){n[o.pluginName]&&(n[o.pluginName][e]&&n[o.pluginName][e](d({sortable:n},i)),n.options[o.pluginName]&&n[o.pluginName][t]&&n[o.pluginName][t](d({sortable:n},i)))}))},initializePlugins:function(t,n,i){for(var o in $.forEach((function(o){var e=o.pluginName;if(t.options[e]||o.initializeByDefault){var r=new o(t,n,t.options);r.sortable=t,r.options=t.options,t[e]=r,v(i,r.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var e=this.modifyOption(t,o,t.options[o]);void 0!==e&&(t.options[o]=e)}},getEventProperties:function(t,n){var i={};return $.forEach((function(o){"function"==typeof o.eventProperties&&v(i,o.eventProperties.call(n[o.pluginName],t))})),i},modifyOption:function(t,n,i){var o;return $.forEach((function(e){t[e.pluginName]&&e.optionListeners&&"function"==typeof e.optionListeners[n]&&(o=e.optionListeners[n].call(t[e.pluginName],i))})),o}},q=["evt"],J=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.evt,e=function(t,n){if(null==t)return{};var i,o,e=function(t,n){if(null==t)return{};var i,o,e={},r=Object.keys(t);for(o=0;o<r.length;o++)n.indexOf(i=r[o])>=0||(e[i]=t[i]);return e}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n.indexOf(i=r[o])>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}return e}(i,q);Z.pluginEvent.bind(Kt)(t,n,d({dragEl:tt,parentEl:nt,ghostEl:it,rootEl:ot,nextEl:et,lastDownEl:rt,cloneEl:at,cloneHidden:st,dragStarted:wt,putSortable:ft,activeSortable:Kt.active,originalEvent:o,oldIndex:ut,oldDraggableIndex:lt,newIndex:ct,newDraggableIndex:ht,hideGhostForTarget:Pt,unhideGhostForTarget:Bt,cloneNowHidden:function(){st=!0},cloneNowShown:function(){st=!1},dispatchSortableEvent:function(t){Q({sortable:n,name:t,originalEvent:o})}},e))};function Q(t){!function(t){var n=t.sortable,i=t.rootEl,o=t.name,e=t.targetEl,r=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,l=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,b=t.putSortable,v=t.extraEventProperties;if(n=n||i&&i[Y]){var g,x=n.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||m||p?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||i,g.from=s||i,g.item=e||i,g.clone=r,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=l,g.newDraggableIndex=h,g.originalEvent=f,g.pullMode=b?b.lastPutMode:void 0;var y=d(d({},v),Z.getEventProperties(o,n));for(var E in y)g[E]=y[E];i&&i.dispatchEvent(g),x[w]&&x[w].call(n,g)}}(d({putSortable:ft,cloneEl:at,targetEl:tt,rootEl:ot,oldIndex:ut,oldDraggableIndex:lt,newIndex:ct,newDraggableIndex:ht},t))}var tt,nt,it,ot,et,rt,at,st,ut,ct,lt,ht,dt,ft,bt,vt,gt,mt,pt,xt,wt,yt,Et,St,Tt,Ot=!1,kt=!1,Mt=[],It=!1,Ct=!1,jt=[],At=!1,Dt=[],_t="undefined"!=typeof document,zt=y,Lt=p||m?"cssFloat":"float",Nt=_t&&!E&&!y&&"draggable"in document.createElement("div"),Rt=function(){if(_t){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ft=function(t,n){var i=D(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),e=F(t,0,n),r=F(t,1,n),a=e&&D(e),s=r&&D(r),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(e).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(r).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":e&&a.float&&"none"!==a.float?!r||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":e&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=o&&"none"===i[Lt]||r&&"none"===i[Lt]&&u+c>o)?"vertical":"horizontal"},Ht=function(t){function n(t,i){return function(o,e,r,a){if(null==t&&(i||o.options.group.name&&e.options.group.name&&o.options.group.name===e.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(o,e,r,a),i)(o,e,r,a);var s=(i?o:e).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},o=t.group;o&&"object"==f(o)||(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Pt=function(){!Rt&&it&&D(it,"display","none")},Bt=function(){!Rt&&it&&D(it,"display","")};_t&&!E&&document.addEventListener("click",(function(t){if(kt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),kt=!1,!1}),!0);var Gt=function(t){if(tt){var n=(e=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,Mt.some((function(t){var n=t[Y].options.emptyInsertThreshold;if(n&&!H(t)){var i=N(t);return e>=i.left-n&&e<=i.right+n&&r>=i.top-n&&r<=i.bottom+n?a=t:void 0}})),a);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Y]._onDragOver(i)}}var e,r,a},Wt=function(t){tt&&tt.parentNode[Y]._isOutsideThisEl(t.target)};function Kt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=v({},n),t[Y]=this;var i,o,e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Kt.supportPointer&&"PointerEvent"in window&&!w,emptyInsertThreshold:5};for(var r in Z.initializePlugins(this,t,e),e)!(r in n)&&(n[r]=e[r]);for(var a in Ht(n),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!n.forceFallback&&Nt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Mt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),v(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==D(t,"display")&&t!==Kt.ghost){o.push({target:t,rect:N(t)});var n=d({},o[o.length-1].rect);if(t.thisAnimationDuration){var i=_(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[i][o])return Number(i);return-1}(o,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var e=!1,r=0;o.forEach((function(t){var i=0,o=t.target,a=o.fromRect,s=N(o),u=o.prevFromRect,c=o.prevToRect,l=t.rect,h=_(o,!0);h&&(s.top-=h.f,s.left-=h.e),o.toRect=s,o.thisAnimationDuration&&W(u,s)&&!W(a,s)&&(l.top-s.top)/(l.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,n,i,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*o.animation}(l,u,c,n.options)),W(s,a)||(o.prevFromRect=a,o.prevToRect=s,i||(i=n.options.animation),n.animate(o,l,s,i)),i&&(e=!0,r=Math.max(r,i),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),i),o.thisAnimationDuration=i)})),clearTimeout(i),e?i=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),o=[]},animate:function(t,n,i,o){if(o){D(t,"transition",""),D(t,"transform","");var e=_(this.el),r=(n.left-i.left)/(e&&e.a||1),a=(n.top-i.top)/(e&&e.d||1);t.animatingX=!!r,t.animatingY=!!a,D(t,"transform","translate3d("+r+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}))}function Ut(t,n,i,o,e,r,a,s){var u,c,l=t[Y],h=l.options.onMove;return!window.CustomEvent||m||p?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=i,u.draggedRect=o,u.related=e||n,u.relatedRect=r||N(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),h&&(c=h.call(l,u,a)),c}function Xt(t){t.draggable=!1}function Yt(){At=!1}function $t(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,o=0;i--;)o+=n.charCodeAt(i);return o.toString(36)}function Vt(t){return setTimeout(t,0)}function Zt(t){return clearTimeout(t)}Kt.prototype={constructor:Kt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(yt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,tt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,e=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=o.filter;if(function(t){Dt.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var o=n[i];o.checked&&Dt.push(o)}}(i),!tt&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!w||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=I(s,o.draggable,i,!1))&&s.animated||rt===s)){if(ut=P(s),lt=P(s,o.draggable),"function"==typeof c){if(c.call(this,t,s,this))return Q({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i}),J("filter",n,{evt:t}),void(e&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=I(u,o.trim(),i,!1))return Q({sortable:n,rootEl:o,name:"filter",targetEl:s,fromEl:i,toEl:i}),J("filter",n,{evt:t}),!0}))))return void(e&&t.cancelable&&t.preventDefault());o.handle&&!I(u,o.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,i){var o,e=this,r=e.el,a=e.options,s=r.ownerDocument;if(i&&!tt&&i.parentNode===r){var u=N(i);if(ot=r,nt=(tt=i).parentNode,et=tt.nextSibling,rt=i,dt=a.group,Kt.dragged=tt,pt=(bt={target:tt,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,xt=bt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,tt.style["will-change"]="all",o=function(){J("delayEnded",e,{evt:t}),Kt.eventCanceled?e._onDrop():(e._disableDelayedDragEvents(),!x&&e.nativeDraggable&&(tt.draggable=!0),e._triggerDragStart(t,n),Q({sortable:e,name:"choose",originalEvent:t}),A(tt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){z(tt,t.trim(),Xt)})),T(s,"dragover",Gt),T(s,"mousemove",Gt),T(s,"touchmove",Gt),T(s,"mouseup",e._onDrop),T(s,"touchend",e._onDrop),T(s,"touchcancel",e._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,tt.draggable=!0),J("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(p||m))o();else{if(Kt.eventCanceled)return void this._onDrop();T(s,"mouseup",e._disableDelayedDrag),T(s,"touchend",e._disableDelayedDrag),T(s,"touchcancel",e._disableDelayedDrag),T(s,"mousemove",e._delayedDragTouchMoveHandler),T(s,"touchmove",e._delayedDragTouchMoveHandler),a.supportPointer&&T(s,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){tt&&Xt(tt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._disableDelayedDrag),O(t,"touchend",this._disableDelayedDrag),O(t,"touchcancel",this._disableDelayedDrag),O(t,"mousemove",this._delayedDragTouchMoveHandler),O(t,"touchmove",this._delayedDragTouchMoveHandler),O(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?T(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(T(tt,"dragend",this),T(ot,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,n){if(Ot=!1,ot&&tt){J("dragStarted",this,{evt:n}),this.nativeDraggable&&T(document,"dragover",Wt);var i=this.options;!t&&A(tt,i.dragClass,!1),A(tt,i.ghostClass,!0),Kt.active=this,t&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(vt){this._lastX=vt.clientX,this._lastY=vt.clientY,Pt();for(var t=document.elementFromPoint(vt.clientX,vt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(vt.clientX,vt.clientY))!==n;)n=t;if(tt.parentNode[Y]._isOutsideThisEl(t),n)do{if(n[Y]&&n[Y]._onDragOver({clientX:vt.clientX,clientY:vt.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);Bt()}},_onTouchMove:function(t){if(bt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,e=t.touches?t.touches[0]:t,r=it&&_(it,!0),a=it&&r&&r.a,s=it&&r&&r.d,u=zt&&Tt&&B(Tt),c=(e.clientX-bt.clientX+o.x)/(a||1)+(u?u[0]-jt[0]:0)/(a||1),l=(e.clientY-bt.clientY+o.y)/(s||1)+(u?u[1]-jt[1]:0)/(s||1);if(!Kt.active&&!Ot){if(i&&Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(it){r?(r.e+=c-(gt||0),r.f+=l-(mt||0)):r={a:1,b:0,c:0,d:1,e:c,f:l};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(it,"webkitTransform",h),D(it,"mozTransform",h),D(it,"msTransform",h),D(it,"transform",h),gt=c,mt=l,vt=e}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:ot,n=N(tt,!0,zt,!0,t),i=this.options;if(zt){for(Tt=t;"static"===D(Tt,"position")&&"none"===D(Tt,"transform")&&Tt!==document;)Tt=Tt.parentNode;Tt!==document.body&&Tt!==document.documentElement?(Tt===document&&(Tt=L()),n.top+=Tt.scrollTop,n.left+=Tt.scrollLeft):Tt=L(),jt=B(Tt)}A(it=tt.cloneNode(!0),i.ghostClass,!1),A(it,i.fallbackClass,!0),A(it,i.dragClass,!0),D(it,"transition",""),D(it,"transform",""),D(it,"box-sizing","border-box"),D(it,"margin",0),D(it,"top",n.top),D(it,"left",n.left),D(it,"width",n.width),D(it,"height",n.height),D(it,"opacity","0.8"),D(it,"position",zt?"absolute":"fixed"),D(it,"zIndex","100000"),D(it,"pointerEvents","none"),Kt.ghost=it,t.appendChild(it),D(it,"transform-origin",pt/parseInt(it.style.width)*100+"% "+xt/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,e=i.options;J("dragStart",this,{evt:t}),Kt.eventCanceled?this._onDrop():(J("setupClone",this),Kt.eventCanceled||((at=X(tt)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),A(at,this.options.chosenClass,!1),Kt.clone=at),i.cloneId=Vt((function(){J("clone",i),Kt.eventCanceled||(i.options.removeCloneOnHide||ot.insertBefore(at,tt),i._hideClone(),Q({sortable:i,name:"clone"}))})),!n&&A(tt,e.dragClass,!0),n?(kt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(O(document,"mouseup",i._onDrop),O(document,"touchend",i._onDrop),O(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",e.setData&&e.setData.call(i,o,tt)),T(document,"drop",i),D(tt,"transform","translateZ(0)")),Ot=!0,i._dragStartId=Vt(i._dragStarted.bind(i,n,t)),T(document,"selectstart",i),wt=!0,w&&D(document.body,"user-select","none"))},_onDragOver:function(t){var n,i,o,e,r=this.el,a=t.target,s=this.options,u=s.group,c=Kt.active,l=dt===u,h=s.sort,f=ft||c,b=this,v=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=I(a,s.draggable,r,!0),_("dragOver"),Kt.eventCanceled)return v;if(tt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||b._ignoreWhileAnimating===a)return L(!1);if(kt=!1,c&&!s.disabled&&(l?h||(o=nt!==ot):ft===this||(this.lastPutMode=dt.checkPull(this,c,tt,t))&&u.checkPut(this,c,tt,t))){if(e="vertical"===this._getDirection(t,a),n=N(tt),_("dragOverValid"),Kt.eventCanceled)return v;if(o)return nt=ot,z(),this._hideClone(),_("revert"),Kt.eventCanceled||(et?ot.insertBefore(tt,et):ot.appendChild(tt)),L(!0);var g=H(r,s.draggable);if(!g||function(t,n,i){var o=N(H(i.el,i.options.draggable));return n?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,e,this)&&!g.animated){if(g===tt)return L(!1);if(g&&r===t.target&&(a=g),a&&(i=N(a)),!1!==Ut(ot,r,tt,n,a,i,t,!!a))return z(),g&&g.nextSibling?r.insertBefore(tt,g.nextSibling):r.appendChild(tt),nt=r,B(),L(!0)}else if(g&&function(t,n,i){var o=N(F(i.el,0,i.options,!0));return n?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,e,this)){var m=F(r,0,s,!0);if(m===tt)return L(!1);if(i=N(a=m),!1!==Ut(ot,r,tt,n,a,i,t,!1))return z(),r.insertBefore(tt,m),nt=r,B(),L(!0)}else if(a.parentNode===r){i=N(a);var p,x,w,y=tt.parentNode!==r,E=!function(t,n,i){var o=i?t.left:t.top,e=i?n.left:n.top;return o===e||(i?t.right:t.bottom)===(i?n.right:n.bottom)||o+(i?t.width:t.height)/2===e+(i?n.width:n.height)/2}(tt.animated&&tt.toRect||n,a.animated&&a.toRect||i,e),S=e?"top":"left",T=R(a,"top","top")||R(tt,"top","top"),O=T?T.scrollTop:void 0;if(yt!==a&&(x=i[S],It=!1,Ct=!E&&s.invertSwap||y),p=function(t,n,i,o,e,r,a,s){var u=o?t.clientY:t.clientX,c=o?i.height:i.width,l=o?i.top:i.left,h=o?i.bottom:i.right,d=!1;if(!a)if(s&&St<c*e){if(!It&&(1===Et?u>l+c*r/2:u<h-c*r/2)&&(It=!0),It)d=!0;else if(1===Et?u<l+St:u>h-St)return-Et}else if(u>l+c*(1-e)/2&&u<h-c*(1-e)/2)return function(t){return P(tt)<P(t)?1:-1}(n);return(d=d||a)&&(u<l+c*r/2||u>h-c*r/2)?u>l+c/2?1:-1:0}(t,a,i,e,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,yt===a),0!==p){var k=P(tt);do{w=nt.children[k-=p]}while(w&&("none"===D(w,"display")||w===it))}if(0===p||w===a)return L(!1);yt=a,Et=p;var M=a.nextElementSibling,C=!1,j=Ut(ot,r,tt,n,a,i,t,C=1===p);if(!1!==j)return 1!==j&&-1!==j||(C=1===j),At=!0,setTimeout(Yt,30),z(),C&&!M?r.appendChild(tt):a.parentNode.insertBefore(tt,C?M:a),T&&U(T,0,O-T.scrollTop),nt=tt.parentNode,void 0===x||Ct||(St=Math.abs(x-N(a)[S])),B(),L(!0)}if(r.contains(tt))return L(!1)}return!1}function _(s,u){J(s,b,d({evt:t,isOwner:l,axis:e?"vertical":"horizontal",revert:o,dragRect:n,targetRect:i,canSort:h,fromSortable:f,target:a,completed:L,onMove:function(i,o){return Ut(ot,r,tt,n,i,N(i),t,o)},changed:B},u))}function z(){_("dragOverAnimationCapture"),b.captureAnimationState(),b!==f&&f.captureAnimationState()}function L(n){return _("dragOverCompleted",{insertion:n}),n&&(l?c._hideClone():c._showClone(b),b!==f&&(A(tt,ft?ft.options.ghostClass:c.options.ghostClass,!1),A(tt,s.ghostClass,!0)),ft!==b&&b!==Kt.active?ft=b:b===Kt.active&&ft&&(ft=null),f===b&&(b._ignoreWhileAnimating=a),b.animateAll((function(){_("dragOverAnimationComplete"),b._ignoreWhileAnimating=null})),b!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===tt&&!tt.animated||a===r&&!a.animated)&&(yt=null),s.dragoverBubble||t.rootEl||a===document||(tt.parentNode[Y]._isOutsideThisEl(t.target),!n&&Gt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function B(){ct=P(tt),ht=P(tt,s.draggable),Q({sortable:b,name:"change",toEl:r,newIndex:ct,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Gt),O(document,"mousemove",Gt),O(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._onDrop),O(t,"touchend",this._onDrop),O(t,"pointerup",this._onDrop),O(t,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;ct=P(tt),ht=P(tt,i.draggable),J("drop",this,{evt:t}),nt=tt&&tt.parentNode,ct=P(tt),ht=P(tt,i.draggable),Kt.eventCanceled||(Ot=!1,Ct=!1,It=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Zt(this.cloneId),Zt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w&&D(document.body,"user-select",""),D(tt,"transform",""),t&&(wt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(ot===nt||ft&&"clone"!==ft.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),tt&&(this.nativeDraggable&&O(tt,"dragend",this),Xt(tt),tt.style["will-change"]="",wt&&!Ot&&A(tt,ft?ft.options.ghostClass:this.options.ghostClass,!1),A(tt,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ot!==nt?(ct>=0&&(Q({rootEl:nt,name:"add",toEl:nt,fromEl:ot,originalEvent:t}),Q({sortable:this,name:"remove",toEl:nt,originalEvent:t}),Q({rootEl:nt,name:"sort",toEl:nt,fromEl:ot,originalEvent:t}),Q({sortable:this,name:"sort",toEl:nt,originalEvent:t})),ft&&ft.save()):ct!==ut&&ct>=0&&(Q({sortable:this,name:"update",toEl:nt,originalEvent:t}),Q({sortable:this,name:"sort",toEl:nt,originalEvent:t})),Kt.active&&(null!=ct&&-1!==ct||(ct=ut,ht=lt),Q({sortable:this,name:"end",toEl:nt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){J("nulling",this),ot=tt=nt=it=et=at=rt=st=bt=vt=wt=ct=ht=ut=lt=yt=Et=ft=dt=Kt.dragged=Kt.ghost=Kt.clone=Kt.active=null,Dt.forEach((function(t){t.checked=!0})),Dt.length=gt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":tt&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,o=0,e=i.length,r=this.options;o<e;o++)I(t=i[o],r.draggable,this.el,!1)&&n.push(t.getAttribute(r.dataIdAttr)||$t(t));return n},sort:function(t,n){var i={},o=this.el;this.toArray().forEach((function(t,n){var e=o.children[n];I(e,this.options.draggable,o,!1)&&(i[t]=e)}),this),n&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(o.removeChild(i[t]),o.appendChild(i[t]))})),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return I(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(void 0===n)return i[t];var o=Z.modifyOption(this,t,n);i[t]=void 0!==o?o:n,"group"===t&&Ht(i)},destroy:function(){J("destroy",this);var t=this.el;t[Y]=null,O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart),O(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!st){if(J("hideClone",this),Kt.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),st=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(st){if(J("showClone",this),Kt.eventCanceled)return;tt.parentNode!=ot||this.options.group.revertClone?et?ot.insertBefore(at,et):ot.appendChild(at):ot.insertBefore(at,tt),this.options.group.revertClone&&this.animate(tt,at),D(at,"display",""),st=!1}}else this._hideClone()}},_t&&T(document,"touchmove",(function(t){(Kt.active||Ot)&&t.cancelable&&t.preventDefault()})),Kt.utils={on:T,off:O,css:D,find:z,is:function(t,n){return!!I(t,n,t,!1)},extend:function(t,n){if(t&&n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t},throttle:K,closest:I,toggleClass:A,clone:X,index:P,nextTick:Vt,cancelNextTick:Zt,detectDirection:Ft,getChild:F},Kt.get=function(t){return t[Y]},Kt.mount=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n[0].constructor===Array&&(n=n[0]),n.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Kt.utils=d(d({},Kt.utils),t.utils)),Z.mount(t)}))},Kt.create=function(t,n){return new Kt(t,n)},Kt.version="1.15.0";var qt,Jt,Qt,tn,nn,on,en=[],rn=!1;function an(){en.forEach((function(t){clearInterval(t.pid)})),en=[]}function sn(){clearInterval(on)}var un=K((function(t,n,i,o){if(n.scroll){var e,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=n.scrollSensitivity,u=n.scrollSpeed,c=L(),l=!1;Jt!==i&&(Jt=i,an(),e=n.scrollFn,!0===(qt=n.scroll)&&(qt=G(i,!0)));var h=0,d=qt;do{var f=d,b=N(f),v=b.top,g=b.bottom,m=b.left,p=b.right,x=b.width,w=b.height,y=void 0,E=void 0,S=f.scrollWidth,T=f.scrollHeight,O=D(f),k=f.scrollLeft,M=f.scrollTop;f===c?(y=x<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),E=w<T&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(y=x<S&&("auto"===O.overflowX||"scroll"===O.overflowX),E=w<T&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=y&&(Math.abs(p-r)<=s&&k+x<S)-(Math.abs(m-r)<=s&&!!k),C=E&&(Math.abs(g-a)<=s&&M+w<T)-(Math.abs(v-a)<=s&&!!M);if(!en[h])for(var j=0;j<=h;j++)en[j]||(en[j]={});en[h].vx==I&&en[h].vy==C&&en[h].el===f||(en[h].el=f,en[h].vx=I,en[h].vy=C,clearInterval(en[h].pid),0==I&&0==C||(l=!0,en[h].pid=setInterval(function(){o&&0===this.layer&&Kt.active._onTouchMove(nn);var n=en[this.layer].vy?en[this.layer].vy*u:0,i=en[this.layer].vx?en[this.layer].vx*u:0;"function"==typeof e&&"continue"!==e.call(Kt.dragged.parentNode[Y],i,n,t,nn,en[this.layer].el)||U(en[this.layer].el,i,n)}.bind({layer:h}),24))),h++}while(n.bubbleScroll&&d!==c&&(d=G(d,!1)));rn=l}}),30),cn=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,e=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(n){var a=i||t.activeSortable;(0,t.hideGhostForTarget)();var s=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(s.clientX,s.clientY);r(),a&&!a.el.contains(u)&&(e("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function ln(){}function hn(){}ln.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=F(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:cn},v(ln,{pluginName:"revertOnSpill"}),hn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:cn},v(hn,{pluginName:"removeOnSpill"}),Kt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):T(document,this.options.supportPointer?"pointermove":n.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;this.options.dragOverBubble||n.rootEl||this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),sn(),an(),clearTimeout(C),C=void 0},nulling:function(){nn=Jt=qt=rn=on=Qt=tn=null,en.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,o=(t.touches?t.touches[0]:t).clientX,e=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,e);if(nn=t,n||this.options.forceAutoScrollFallback||p||m||w){un(t,this.options,r,n);var a=G(r,!0);!rn||on&&o===Qt&&e===tn||(on&&sn(),on=setInterval((function(){var r=G(document.elementFromPoint(o,e),!0);r!==a&&(a=r,an()),un(t,i.options,r,n)}),10),Qt=o,tn=e)}else{if(!this.options.bubbleScroll||G(r,!0)===L())return void an();un(t,this.options,G(r,!1),!1)}}},v(t,{pluginName:"scroll",initializeByDefault:!0})}),Kt.mount(hn,ln);const dn=class{constructor(i){t(this,i),this.newTab=n(this,"newTab",7),this.sortChanged=n(this,"sortChanged",7),this.showNewTabButton=!0,this.tabLimit=1/0,this.allowSort=!0,this.focused=0,this.disableAddTabButton=!1,this.tabTriggers=void 0,this.hasScrollbar=!1,this.keyboardSort=!1,this.initialSortIndex=0,this.sortTarget=void 0,this.ariaLiveAlert=""}onFocusin(t){this.allowSort&&s(".gux-scrollable-section",t)&&!this.keyboardSort&&(this.ariaLiveAlert="toggleSort")}onFocusout(t){this.root.querySelector(".gux-scrollable-section").contains(t.relatedTarget)||this.tabTriggers.forEach(((t,n)=>{t.guxGetActive().then((i=>{i?this.focused=n:(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))}))}watchAllowSort(t){t?this.validateSortableInstance():this.destroySortable()}onMutation(){this.setTabTriggers()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":if(t.preventDefault(),this.keyboardSort&&!s(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),n=t.querySelectorAll("gux-tab-advanced"),i=Array.prototype.indexOf.call(n,this.sortTarget);let o;o=i===n.length-1?n[0]:n[i+2],t.insertBefore(this.sortTarget,o),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused)}else s(".gux-tab-options-button",t)||s(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":if(t.preventDefault(),this.keyboardSort&&!s(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),n=t.querySelectorAll("gux-tab-advanced"),i=Array.prototype.indexOf.call(n,this.sortTarget);t.insertBefore(this.sortTarget,n[i-1]||null),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused)}else s(".gux-tab-options-button",t)||s(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.keyboardSort&&this.allowSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled",this.root.querySelector(".gux-scrollable-section").insertBefore(this.sortTarget,this.tabTriggers[this.initialSortIndex]||null)),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.initialSortIndex),u((()=>{this.focusTab(this.initialSortIndex)}));break;case"Enter":this.keyboardSort&&(t.preventDefault(),this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.emitSortChanged());break;case"Tab":this.keyboardSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled");break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onKeyup(t){" "===t.key&&s(".gux-tab",t)&&!s(".gux-tab-options-button",t)&&!s("gux-popover-list",t)&&this.allowSort&&(t.preventDefault(),!0===this.keyboardSort?(this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.focused=n)})),this.focusTab(this.focused),this.emitSortChanged()):(this.keyboardSort=!0,this.sortTarget=t.target.parentNode.parentNode,this.tabTriggers.forEach(((t,n)=>{var i;t.tabId===(null===(i=this.sortTarget)||void 0===i?void 0:i.getAttribute("tab-id"))&&(this.initialSortIndex=n)})),this.ariaLiveAlert="sortModeOn"))}async guxSetActive(t){this.tabTriggers.forEach(((n,i)=>{const o=n.tabId===t;n.guxSetActive(o),o&&(this.focused=i)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,n)=>{t.guxGetActive().then((i=>{this.focused===n||i||(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].querySelector(".gux-tab-options-button")&&this.tabTriggers[this.focused].querySelector(".gux-tab-options-button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}createSortable(){this.sortableInstance=new Kt(this.root.querySelector(".gux-scrollable-section"),{animation:250,draggable:"gux-tab-advanced",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{this.emitSortChanged()}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}emitSortChanged(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced")).map((t=>t.tabId));this.sortChanged.emit(t)}checkForScrollbarHideOrShow(){i((()=>{const t=this.root.querySelector(".gux-scrollable-section"),n=t.clientWidth<t.scrollWidth;n!==this.hasScrollbar&&(this.hasScrollbar=n)}))}handleKeyboardScroll(t){"forward"===t?this.focused<this.tabTriggers.length-1?(this.hasScrollbar&&this.scrollRight(),this.focusTab(this.focused+1)):(this.hasScrollbar&&this.scrollToStart(),this.focusTab(0)):"backward"===t&&(this.focused>0?(this.hasScrollbar&&this.scrollLeft(),this.focusTab(this.focused-1)):(this.hasScrollbar&&this.scrollToEnd(),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await c(this.root,l,"gux-tabs-advanced")}validateSortableInstance(){this.allowSort&&!this.sortableInstance&&this.createSortable()}componentDidLoad(){this.validateSortableInstance(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),u((()=>{this.checkForScrollbarHideOrShow()}),500)}scrollLeft(){o((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(-(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth),0)}))}scrollRight(){o((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth,0)}))}scrollToStart(){const t=this.root.querySelector(".gux-scrollable-section");o((()=>{null==t||t.scrollBy(-(null==t?void 0:t.scrollWidth),0)}))}scrollToEnd(){const t=this.root.querySelector(".gux-scrollable-section");o((()=>{t.scrollBy(null==t?void 0:t.scrollWidth,0)}))}componentWillRender(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced"));this.disableAddTabButton=t.length>=this.tabLimit}render(){return[e("span",{class:"gux-sr-only gux-aria-live-region","aria-live":"polite"},this.ariaLiveAlert?this.i18n(this.ariaLiveAlert):""),e("div",{class:"gux-tab-container"},e("div",{class:"action-button-container"},this.renderScrollButton("scrollLeft")),e("div",{role:"tablist",class:"gux-scrollable-section "+(this.keyboardSort?"gux-tab-sorting":""),"aria-owns":this.triggerIds},e("slot",null)),e("div",{class:"action-button-container"},this.renderScrollButton("scrollRight"),this.showNewTabButton?e((t=>e("button",{title:this.disableAddTabButton?this.i18n("disableNewTab"):this.root.querySelector('[slot="add-tab"]')?this.root.querySelector('[slot="add-tab"]').textContent.trim():this.i18n("createNewTab"),class:"add-tab-button",onClick:()=>t.onClick(),disabled:this.disableAddTabButton},e("slot",{name:"add-tab"},e("gux-icon",{"icon-name":"add",decorative:!0})))),{onClick:()=>this.newTab.emit()}):null))]}renderScrollButton(t){return e("div",{class:"gux-scroll-button-container"},this.hasScrollbar?e("button",{tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onDragOver:()=>this.getScrollDirection(t),onClick:()=>this.getScrollDirection(t)},e("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight()}}getChevronIconName(t){switch(t){case"scrollLeft":return"chevron-left";case"scrollRight":return"chevron-right"}}get root(){return r(this)}static get watchers(){return{allowSort:["watchAllowSort"]}}};(function(t,n,i,o){var e,r=arguments.length,a=r<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,i,o);else for(var s=t.length-1;s>=0;s--)(e=t[s])&&(a=(r<3?e(a):r>3?e(n,i,a):e(n,i))||a);r>3&&a&&Object.defineProperty(n,i,a)})([a({childList:!0,subtree:!0})],dn.prototype,"onMutation",null),dn.style="gux-tab-advanced-list .gux-tab-container{display:flex;align-items:flex-end;width:100%;height:50px;margin-bottom:16px;overflow-x:auto;overflow-y:hidden;background-color:#f6f7f9;border-bottom:1px solid #d7dce5;border-radius:4px 4px 0 0}gux-tab-advanced-list .gux-tab-container .action-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button{min-width:35px;height:50px;padding:0;margin-left:2px;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button [slot='add-tab']{display:inline-flex;align-items:center;padding:0 12px;white-space:nowrap;font-size:12px;line-height:20px;font-family:sans-serif;font-weight:400;font-weight:700}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button [slot='add-tab'] gux-icon{padding-right:8px}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:disabled{opacity:0.5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #aac9ff}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button:focus-visible{border-radius:5px;outline:none;box-shadow:inset 0 0 0 3px #aac9ff}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab-button gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:50px;padding:0;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{border:3px solid #aac9ff;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section{display:flex;align-items:flex-end;height:50px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tab-advanced-list .gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{dn as gux_tab_advanced_list}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-7d26b2e1.js";import{O as o}from"./p-9d18d475.js";import{w as n}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-03ca7264.js";const u=["primary","secondary","tertiary"];const c=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(t){n("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return i("gux-popup",{expanded:this.isOpen},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot",{class:"gux-dropdown-button",accent:(t=this.accent,u.find((s=>s===t))?t:"secondary")},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("slot",{name:"title"}),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("div",{class:"gux-list-container",slot:"popup"},i("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",null))));var t}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);margin-left:var(--gux-spacing-xs)}.gux-list-container{max-width:220px;padding:var(--gux-spacing-xs) 0;margin:0;list-style:none;background-color:var(--gse-ui-menu-wrapper-backgroundColor);border:1px solid var(--gse-ui-menu-wrapper-border);border-radius:4px;box-shadow:0px 4px 6px 1px rgba(35, 57, 92, 0.12)}";export{c as gux_button_multi}
|
@@ -0,0 +1 @@
|
|
1
|
+
const t=["top","right","bottom","left"],n=Math.min,e=Math.max,o={left:"right",right:"left",bottom:"top",top:"bottom"},r={start:"end",end:"start"};function i(t,o,r){return e(t,n(o,r))}function a(t,n){return"function"==typeof t?t(n):t}function c(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function s(t){return"x"===t?"y":"x"}function u(t){return"y"===t?"height":"width"}function f(t){return["top","bottom"].includes(c(t))?"y":"x"}function d(t){return s(f(t))}function m(t){return t.replace(/start|end/g,(t=>r[t]))}function y(t){return t.replace(/left|right|bottom|top/g,(t=>o[t]))}function p(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function h(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function g(t,n,e){let{reference:o,floating:r}=t;const i=f(n),a=d(n),s=u(a),m=c(n),y="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,g=o[s]/2-r[s]/2;let x;switch(m){case"top":x={x:p,y:o.y-r.height};break;case"bottom":x={x:p,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:h};break;case"left":x={x:o.x-r.width,y:h};break;default:x={x:o.x,y:o.y}}switch(l(n)){case"start":x[a]-=g*(e&&y?-1:1);break;case"end":x[a]+=g*(e&&y?-1:1)}return x}async function x(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:c,elements:l,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=a(n,t),g=p(y),x=l[m?"floating"===d?"reference":"floating":d],w=h(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:s})),v="floating"===d?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),A=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=h(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:s}):v);return{top:(w.top-R.top+g.top)/A.y,bottom:(R.bottom-w.bottom+g.bottom)/A.y,left:(w.left-R.left+g.left)/A.x,right:(R.right-w.right+g.right)/A.x}}const w=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:r,placement:c,rects:s,platform:f,elements:m}=e,{element:y,padding:h=0}=a(t,e)||{};if(null==y)return{};const g=p(h),x={x:o,y:r},w=d(c),v=u(w),b=await f.getDimensions(y),A="y"===w,R=A?"top":"left",S=A?"bottom":"right",k=A?"clientHeight":"clientWidth",F=s.reference[v]+s.reference[w]-x[w]-s.floating[v],O=x[w]-s.reference[w],C=await(null==f.getOffsetParent?void 0:f.getOffsetParent(y));let M=C?C[k]:0;M&&await(null==f.isElement?void 0:f.isElement(C))||(M=m.floating[k]||s.floating[v]);const P=F/2-O/2,T=M/2-b[v]/2-1,z=n(g[R],T),B=n(g[S],T),D=z,H=M-b[v]-B,L=M/2-b[v]/2+P,E=i(D,L,H),I=null!=l(c)&&L!=E&&s.reference[v]/2-(L<D?z:B)-b[v]/2<0?L<D?D-L:H-L:0;return{[w]:x[w]-I,data:{[w]:E,centerOffset:L-E+I}}}}),v=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e;const{placement:o,middlewareData:r,rects:i,initialPlacement:s,platform:f,elements:p}=n,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:A=!0,...R}=a(t,n),S=c(o),k=c(s)===s,F=await(null==f.isRTL?void 0:f.isRTL(p.floating)),O=w||(k||!A?[y(s)]:function(t){const n=y(t);return[m(t),n,m(n)]}(s));w||"none"===b||O.push(...function(t,n,e,o){const r=l(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(c(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(m)))),i}(s,A,b,F));const C=[s,...O],M=await x(n,R),P=[];let T=(null==(e=r.flip)?void 0:e.overflows)||[];if(h&&P.push(M[S]),g){const t=function(t,n,e){void 0===e&&(e=!1);const o=l(t),r=d(t),i=u(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=y(a)),[a,y(a)]}(o,i,F);P.push(M[t[0]],M[t[1]])}if(T=[...T,{placement:o,overflows:P}],!P.every((t=>t<=0))){var z,B;const t=((null==(z=r.flip)?void 0:z.index)||0)+1,n=C[t];if(n)return{data:{index:t,overflows:T},reset:{placement:n}};let e=null==(B=T.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:B.placement;if(!e)switch(v){case"bestFit":{var D;const t=null==(D=T.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:D[0];t&&(e=t);break}case"initialPlacement":e=s}if(o!==e)return{reset:{placement:e}}}return{}}}};function b(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function A(n){return t.some((t=>n[t]>=0))}const R=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=a(t,n);switch(o){case"referenceHidden":{const t=b(await x(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:A(t)}}}case"escaped":{const t=b(await x(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:A(t)}}}default:return{}}}}},S=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:e,y:o}=n,r=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=c(e),u=l(e),d="y"===f(e),m=["left","top"].includes(s)?-1:1,y=i&&d?-1:1,p=a(n,t);let{mainAxis:h,crossAxis:g,alignmentAxis:x}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return u&&"number"==typeof x&&(g="end"===u?-1*x:x),d?{x:g*y,y:h*m}:{x:h*m,y:g*y}}(n,t);return{x:e+r.x,y:o+r.y,data:r}}}},k=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r}=n,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...m}=a(t,n),y={x:e,y:o},p=await x(n,m),h=f(c(r)),g=s(h);let w=y[g],v=y[h];l&&(w=i(w+p["y"===g?"top":"left"],w,w-p["y"===g?"bottom":"right"])),u&&(v=i(v+p["y"===h?"top":"left"],v,v-p["y"===h?"bottom":"right"]));const b=d.fn({...n,[g]:w,[h]:v});return{...b,data:{x:b.x-e,y:b.y-o}}}}},F=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(o){const{placement:r,rects:i,platform:s,elements:u}=o,{apply:d=(()=>{}),...m}=a(t,o),y=await x(o,m),p=c(r),h=l(r),g="y"===f(r),{width:w,height:v}=i.floating;let b,A;"top"===p||"bottom"===p?(b=p,A=h===(await(null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(A=p,b="end"===h?"top":"bottom");const R=v-y[b],S=w-y[A],k=!o.middlewareData.shift;let F=R,O=S;if(g){const t=w-y.left-y.right;O=h||k?n(S,t):t}else{const t=v-y.top-y.bottom;F=h||k?n(R,t):t}if(k&&!h){const t=e(y.left,0),n=e(y.right,0),o=e(y.top,0),r=e(y.bottom,0);g?O=w-2*(0!==t||0!==n?t+n:e(y.left,y.right)):F=v-2*(0!==o||0!==r?o+r:e(y.top,y.bottom))}await d({...o,availableWidth:O,availableHeight:F});const C=await s.getDimensions(u.floating);return w!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}};function O(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function C(t){return O(t).getComputedStyle(t)}function M(t){return t instanceof O(t).Node}function P(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){return t instanceof O(t).HTMLElement}function z(t){return t instanceof O(t).Element}function B(t){return"undefined"!=typeof ShadowRoot&&(t instanceof O(t).ShadowRoot||t instanceof ShadowRoot)}function D(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=C(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function H(t){return["table","td","th"].includes(P(t))}function L(t){const n=E(),e=C(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function E(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function I(t){return["html","body","#document"].includes(P(t))}const q=Math.min,N=Math.max,W=Math.round,$=Math.floor,j=t=>({x:t,y:t});function V(t){const n=C(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=T(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,c=W(e)!==i||W(o)!==a;return c&&(e=i,o=a),{width:e,height:o,$:c}}function X(t){return z(t)?t:t.contextElement}function Y(t){const n=X(t);if(!T(n))return j(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=V(n);let a=(i?W(e.width):e.width)/o,c=(i?W(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const _=j(0);function G(t,n,e){var o,r;if(void 0===n&&(n=!0),!E())return _;const i=t?O(t):window;return!e||n&&e!==i?_:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function J(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=X(t);let a=j(1);n&&(o?z(o)&&(a=Y(o)):a=Y(t));const c=G(i,e,o);let l=(r.left+c.x)/a.x,s=(r.top+c.y)/a.y,u=r.width/a.x,f=r.height/a.y;if(i){const t=O(i),n=o&&z(o)?O(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=Y(e),n=e.getBoundingClientRect(),o=getComputedStyle(e),r=n.left+(e.clientLeft+parseFloat(o.paddingLeft))*t.x,i=n.top+(e.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,s*=t.y,u*=t.x,f*=t.y,l+=r,s+=i,e=O(e).frameElement}}return h({width:u,height:f,x:l,y:s})}function K(t){return((M(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(t){return J(K(t)).left+Q(t).scrollLeft}function Z(t){if("html"===P(t))return t;const n=t.assignedSlot||t.parentNode||B(t)&&t.host||K(t);return B(n)?n.host:n}function tt(t){const n=Z(t);return I(n)?t.ownerDocument?t.ownerDocument.body:t.body:T(n)&&D(n)?n:tt(n)}function nt(t,n){var e;void 0===n&&(n=[]);const o=tt(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=O(o);return r?n.concat(i,i.visualViewport||[],D(o)?o:[]):n.concat(o,nt(o))}function et(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=O(t),o=K(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){i=r.width,a=r.height;const t=E();(!t||t&&"fixed"===n)&&(c=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:c,y:l}}(t,e);else if("document"===n)o=function(t){const n=K(t),e=Q(t),o=t.ownerDocument.body,r=N(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=N(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+U(t);const c=-e.scrollTop;return"rtl"===C(o).direction&&(a+=N(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:c}}(K(t));else if(z(n))o=function(t,n){const e=J(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=T(t)?Y(t):j(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=G(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return h(o)}function ot(t,n){const e=Z(t);return!(e===n||!z(e)||I(e))&&("fixed"===C(e).position||ot(e,n))}function rt(t,n){return T(t)&&"fixed"!==C(t).position?n?n(t):t.offsetParent:null}function it(t,n){const e=O(t);if(!T(t))return e;let o=rt(t,n);for(;o&&H(o)&&"static"===C(o).position;)o=rt(o,n);return o&&("html"===P(o)||"body"===P(o)&&"static"===C(o).position&&!L(o))?e:o||function(t){let n=Z(t);for(;T(n)&&!I(n);){if(L(n))return n;n=Z(n)}return null}(t)||e}function at(t,n,e){const o=T(n),r=K(n),i="fixed"===e,a=J(t,!0,i,n);let c={scrollLeft:0,scrollTop:0};const l=j(0);if(o||!o&&!i)if(("body"!==P(n)||D(r))&&(c=Q(n)),T(n)){const t=J(n,!0,i,n);l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}else r&&(l.x=U(r));return{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}const ct={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=nt(t).filter((t=>z(t)&&"body"!==P(t))),r=null;const i="fixed"===C(t).position;let a=i?Z(t):t;for(;z(a)&&!I(a);){const n=C(a),e=L(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||D(a)&&!e&&ot(t,a))?o=o.filter((t=>t!==a)):r=n,a=Z(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=et(n,e,r);return t.top=N(o.top,t.top),t.right=q(o.right,t.right),t.bottom=q(o.bottom,t.bottom),t.left=N(o.left,t.left),t}),et(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=T(e),i=K(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},c=j(1);const l=j(0);if((r||!r&&"fixed"!==o)&&(("body"!==P(e)||D(i))&&(a=Q(e)),T(e))){const t=J(e);c=Y(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+l.x,y:n.y*c.y-a.scrollTop*c.y+l.y}},isElement:z,getDimensions:function(t){return V(t)},getOffsetParent:it,getDocumentElement:K,getScale:Y,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||it,i=this.getDimensions;return{reference:at(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===C(t).direction};function lt(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,s=X(t),u=r||i?[...s?nt(s):[],...nt(n)]:[];u.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));const f=s&&c?function(t,n){let e,o=null;const r=K(t);function i(){clearTimeout(e),o&&o.disconnect(),o=null}return function a(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),i();const{left:s,top:u,width:f,height:d}=t.getBoundingClientRect();if(c||n(),!f||!d)return;const m={rootMargin:-$(u)+"px "+-$(r.clientWidth-(s+f))+"px "+-$(r.clientHeight-(u+d))+"px "+-$(s)+"px",threshold:N(0,q(1,l))||1};let y=!0;function p(t){const n=t[0].intersectionRatio;if(n!==l){if(!y)return a();n?a(!1,n):e=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(p,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(p,m)}o.observe(t)}(!0),i}(s,e):null;let d,m=-1,y=null;a&&(y=new ResizeObserver((t=>{let[o]=t;o&&o.target===s&&y&&(y.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{y&&y.observe(n)}))),e()})),s&&!l&&y.observe(s),y.observe(n));let p=l?J(t):null;return l&&function n(){const o=J(t);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||e(),p=o,d=requestAnimationFrame(n)}(),e(),()=>{u.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),f&&f(),y&&y.disconnect(),y=null,l&&cancelAnimationFrame(d)}}const st=(t,n,e)=>{const o=new Map,r={platform:ct,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=g(s,o,l),d=o,m={},y=0;for(let e=0;e<c.length;e++){const{name:i,fn:p}=c[e],{x:h,y:x,data:w,reset:v}=await p({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=h?h:u,f=null!=x?x:f,m={...m,[i]:{...m[i],...w}},v&&y<=50&&(y++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:u,y:f}=g(s,d,l))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})};export{lt as a,w as b,st as c,F as d,v as f,R as h,S as o,k as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as i,g as s}from"./p-7d26b2e1.js";import{a,c as n,o as r,f as d}from"./p-ec218689.js";import{r as c}from"./p-cbcbd1bb.js";import{a as u}from"./p-091f51f6.js";import{f as o,a as h,b as l,c as p}from"./p-4f26144b.js";import{O as x}from"./p-9d18d475.js";import{t as g}from"./p-0db3479d.js";import{b as f}from"./p-deee079e.js";import"./p-8a133b9b.js";const k={start:"Start",end:"End",date:"Date",toggleCalendar:"Toggle calendar view"};function b(t,e){let i=new Date(e.getTime());return i.setDate(i.getDate()+t),t<0?i.getDate()>e.getDate()&&(i=new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0)):i.getDate()<e.getDate()&&i.setMonth(i.getMonth()-1),i}function m(t,e){const i=new Date(e.valueOf()),s=function(t){let e=t;for(;e<0;)e+=12;return e%=12,e}(i.getMonth()+t);return i.setMonth(s),i.setFullYear(e.getFullYear()),i.getMonth()!==s?m(t,b(-1,e)):i}function y(t,e){const i=t[e];return i&&"/"!==i?i:t[e-1]}function w(t){return t.match(/\W/)[0]}function v(t){const e=w(t);return t.split(e).reduce(((t,e)=>t.concat(e[0])),[])}function D(t,e){return{selectionStart:t.indexOf(e),selectionEnd:t.lastIndexOf(e)+1}}const F=class{constructor(i){t(this,i),this.input=e(this,"input",7),this.yearFormat="yyyy",this.isSelectingRangeWithMouse=!1,this.lastYear=(new Date).getFullYear(),this.startInputId=c("gux-datepicker"),this.endInputId=c("gux-datepicker"),this.value=void 0,this.label="",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.minDate="",this.maxDate="",this.mode="single",this.format="mm/dd/yyyy",this.disabled=!1,this.labelPosition="beside",this.formattedValue="",this.minDateDate=void 0,this.maxDateDate=void 0,this.toFormattedValue="",this.active=!1}watchValue(){this.updateDate()}watchMinDate(t){this.minDateDate=t?o(t):null}watchMaxDate(t){this.maxDateDate=t?o(t):null}watchFormat(t){t.includes("yyyy")||(this.yearFormat="yy"),this.intervalOrder=v(t),this.lastIntervalRange=this.initialIntervalRange}watchActiveCalendar(t){if(!0===t){const t=o(this.value.split("/")[0]);this.calendarElement.resetCalendarView(t)}}onKeyDown(t){if(this.isInputFieldEvent(t))switch(this.focusedField=this.getInputFieldFromEvent(t),t.key){case"Enter":case"Escape":this.focusedField.blur(),this.active=!1;break;case"Tab":break;case"ArrowDown":t.preventDefault(),this.increment(-1),this.setCursorRange();break;case"ArrowUp":t.preventDefault(),this.increment(1),this.setCursorRange();break;case"ArrowLeft":{t.preventDefault();const e=function(t,e){const i=v(t),s=y(t,e.selectionStart),a=i.indexOf(s);return D(t,i[(a+i.length-1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange();break}case"ArrowRight":{t.preventDefault();const e=function(t,e){const i=v(t),s=y(t,e.selectionStart),a=i.indexOf(s);return D(t,i[(a+1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange();break}default:t.preventDefault(),this.isSelectingRangeWithMouse||(this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.updateIntervalValue(t),this.setCursorRange())}else switch(t.key){case"Enter":case"Escape":case" ":{this.active=!1;const t=this.root.shadowRoot.querySelector(".gux-calendar-toggle-button");u((()=>{t.focus()}));break}case"Tab":this.active&&(this.active=!1)}}onMouseDown(t){this.isInputFieldEvent(t)&&(this.isSelectingRangeWithMouse=!0);const e=t.composedPath(),i=e.includes(this.datepickerElement);Array.from(this.root.shadowRoot.querySelectorAll(".gux-calendar-toggle-button")).every((t=>!e.includes(t)))&&(this.active=i)}onClickOutside(){this.active=!1}onInputFocusIn(t){this.focusedField=this.getInputFieldFromEvent(t),this.isSelectingRangeWithMouse||u((()=>this.setRange()))}onInputFocusOut(){this.lastIntervalRange=this.initialIntervalRange}onInputMouseUp(t){t.preventDefault(),this.lastIntervalRange=D(this.format,y(this.format,this.focusedField.selectionStart)),this.setRange(),this.isSelectingRangeWithMouse=!1}isInputFieldEvent(t){const e=t.composedPath();return e.includes(this.inputElement)||e.includes(this.toInputElement)}get initialIntervalRange(){return D(this.format,y(this.format,0))}getInputFieldFromEvent(t){return t.composedPath()[0]}updateIntervalValue(t){const e=parseInt(t.key,10);if(!isNaN(e)){const i=this.focusedField.value.slice(this.focusedField.selectionStart,this.focusedField.selectionEnd);"y"===y(this.format,this.focusedField.selectionStart)&&"yyyy"===this.yearFormat?this.typeYearValue(i,t.key):this.canSetDate(e)?(this.updateSelection(this.focusedField,`${i[1]}${t.key}`),this.setValue()):(this.updateSelection(this.focusedField,`0${t.key}`.replace("00","01")),this.setValue())}}updateSelection(t,e){t.value=t.value.substr(0,this.intervalRange.selectionStart)+e+t.value.substr(this.intervalRange.selectionEnd)}getCalendarLabels(){return function(t,e,i){const s=t.split(",").map((t=>t.trim()));return"range"===e?[s[0]||i[0],s[1]||i[1]]:"range"===e||s[0]?[s[0]]:[i[2]]}(this.label,this.mode,[this.i18n("start"),this.i18n("end"),this.i18n("date")])}stringToDate(t){const e=w(this.format),i=this.format.toLowerCase().split(e),s=t.split(e),a=parseInt(s[i.indexOf(this.yearFormat)],10),n=parseInt(s[i.indexOf("mm")],10)-1,r=parseInt(s[i.indexOf("dd")],10),d=new Date(a,n,r);return"yy"===this.yearFormat&&d.getFullYear()<1970&&this.lastYear>1970&&d.setFullYear(d.getFullYear()+100),d}onCalendarSelect(t){this.value=t.target.value,t.stopPropagation(),this.input.emit(this.value),this.updateDate(),this.inputElement.value=this.formattedValue,"range"===this.mode&&(this.toInputElement.value=this.toFormattedValue),document.activeElement===this.inputElement&&document.activeElement===this.toInputElement||(this.active=!1)}setValue(){if("range"===this.mode){const t=this.stringToDate(this.inputElement.value),e=this.stringToDate(this.toInputElement.value);this.value=h(t,e),this.updateDate(),this.calendarElement.setValue([t,e])}else{const t=this.stringToDate(this.inputElement.value);this.value=l(t),this.updateDate(),this.calendarElement.setValue(t)}this.input.emit(this.value)}setRange(){this.setIntervalRange(this.lastIntervalRange),this.setCursorRange()}typeYearValue(t,e){" "!==t[0]?this.updateSelection(this.focusedField,` ${e}`):(this.updateSelection(this.focusedField,`${t.substr(1)}${e}`),(t.substr(1)+e).includes(" ")||this.setValue())}canSetDate(t){const e=parseInt([this.focusedField.value[this.intervalRange.selectionEnd-1].toString(),t].join(""),10);if(e)switch(y(this.format,this.focusedField.selectionStart)){case"d":{const t=o(this.value);if(e<=new Date(t.getFullYear(),t.getMonth()+1,0).getDate())return!0;break}case"m":if(e<=12)return!0;break;case"y":return!0}return!1}getMapAndRegexFromField(t){const e={dd:`0${t.getDate()}`.slice(-2),mm:`0${t.getMonth()+1}`.slice(-2)};return"yyyy"===this.yearFormat?e.yyyy=t.getFullYear().toString():e.yy=t.getFullYear().toString().slice(-2),{map:e,regexp:new RegExp(Object.keys(e).join("|"),"gi")}}updateDate(){if("range"===this.mode){const[t,e]=p(this.value),{map:i,regexp:s}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(s,(t=>i[t]));const{map:a,regexp:n}=this.getMapAndRegexFromField(e);this.toFormattedValue=this.format.replace(n,(t=>a[t]))}else{const t=o(this.value),{map:e,regexp:i}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(i,(t=>e[t]))}}setCursorRange(){this.intervalRange&&(this.focusedField.setSelectionRange(0,100),this.focusedField.setSelectionRange(this.intervalRange.selectionStart,this.intervalRange.selectionEnd))}toggleCalendar(){this.active=!this.active,this.active&&u((()=>{this.calendarElement.focusPreviewDate()}))}setIntervalRange(t){this.intervalRange=t}getCombinedFocusedDateValue(){return"range"===this.mode?this.getRangeFocusedDateValue():this.getFocusedDateValue()}getFocusedDateValue(){return o(this.value)}getRangeFocusedDateValue(){const[t,e]=p(this.value);return this.focusedField===this.inputElement?t:e}increment(t){const e=y(this.format,this.focusedField.selectionStart),i=this.getCombinedFocusedDateValue();let s;switch(e){case"d":s=b(t,i);break;case"m":s=m(t,i);break;case"y":s=function(t,e){const i=new Date(e.valueOf());return i.setFullYear(e.getFullYear()+t),i}(t,i)}var a,n,r;a=s,n=this.minDateDate,((r=this.maxDateDate)&&r<a||n&&n>a)&&(s=i),this.lastYear=s.getFullYear(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.focusedField.value=function(t,e){const i=w(e),s=e.split(i).map((e=>{switch(e[0]){case"d":return function(t){return`0${t.getDate().toString()}`.slice(-2)}(t);case"m":return function(t){return`0${(t.getMonth()+1).toString()}`.slice(-2)}(t);case"y":return function(t,e){return"yyyy"===e?t.getFullYear().toString():t.getFullYear().toString().slice(-2)}(t,e)}})).join(i);return s}(s,this.format),this.setValue()}async componentWillLoad(){if(g(this.root,{variant:this.mode}),this.i18n=await f(this.root,k),this.watchMinDate(this.minDate),this.watchMaxDate(this.maxDate),this.watchFormat(this.format),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?h(t,t):l(t),"range"===this.mode&&this.numberOfMonths<2&&(this.numberOfMonths=2)}this.updateDate()}runUpdatePosition(){this.cleanupUpdatePosition=a(this.datepickerElement,this.calendarElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){n(this.datepickerElement,this.calendarElement,{strategy:"fixed",placement:"bottom-start",middleware:[r({crossAxis:-3}),d({fallbackStrategy:"initialPlacement"})]}).then((({x:t,y:e})=>{Object.assign(this.calendarElement.style,{left:`${t}px`,top:`${e}px`})}))}componentDidUpdate(){this.active?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderCalendarToggleButton(){return i("button",{class:"gux-calendar-toggle-button",type:"button",onClick:()=>this.toggleCalendar(),"aria-expanded":this.active.toString(),"aria-label":this.i18n("toggleCalendar"),disabled:this.disabled},i("gux-icon",{decorative:!0,"icon-name":"calendar"}))}renderCalendar(){return i("gux-calendar",{tabIndex:-1,ref:t=>this.calendarElement=t,value:this.value,mode:this.mode,onCalendarSelect:t=>this.onCalendarSelect(t),minDate:this.minDate,maxDate:this.maxDate,numberOfMonths:this.numberOfMonths,startDayOfWeek:this.startDayOfWeek})}renderStartDateField(){return i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.startInputId,class:{"gux-datepicker-field-label":!0,"gux-sr-only":"single"===this.mode&&!this.label}},this.getCalendarLabels()[0]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.startInputId,type:"text",onClick:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),ref:t=>this.inputElement=t,value:this.formattedValue,disabled:this.disabled}),this.renderCalendarToggleButton()),this.renderCalendar()))}renderEndDateField(){return"single"===this.mode?null:i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.endInputId,class:"gux-datepicker-field-label"},this.getCalendarLabels()[1]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.endInputId,type:"text",ref:t=>this.toInputElement=t,onMouseUp:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),value:this.toFormattedValue,disabled:this.disabled}),this.renderCalendarToggleButton())))}render(){return i("div",{class:{"gux-datepicker":!0,"gux-active":this.active,"gux-disabled":this.disabled},ref:t=>this.datepickerElement=t},this.renderStartDateField(),this.renderEndDateField())}get root(){return s(this)}static get watchers(){return{value:["watchValue"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],format:["watchFormat"],active:["watchActiveCalendar"]}}};(function(t,e,i,s){var a,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var d=t.length-1;d>=0;d--)(a=t[d])&&(r=(n<3?a(r):n>3?a(e,i,r):a(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([x({triggerEvents:"mousedown"})],F.prototype,"onClickOutside",null),F.style=":host{display:block}.gux-datepicker{display:inline-block}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:0.5}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-left:20px}.gux-datepicker .gux-datepicker-field.gux-above{flex-direction:column;align-items:self-start}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-input{margin-top:0}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-label{margin-right:0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-right:8px;font-size:12px;font-weight:bold;line-height:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{position:relative;flex:0 1 auto;align-self:auto;order:0;margin:4px 0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input:focus-within{border-color:#2a60c8;outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;width:100px;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:#596373;opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:2px;color:#596373;background:transparent;border:none;border-radius:4px;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2e394c;cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button gux-icon{width:16px;height:16px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{position:fixed;z-index:var(--gux-zindex-popup, 1);display:none;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{F as gux_datepicker}
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-7d26b2e1.js";import{a,c as n,o as r,f as d}from"./p-4e2b5bcf.js";import{r as c}from"./p-cbcbd1bb.js";import{a as u}from"./p-091f51f6.js";import{f as o,a as h,b as l,c as p}from"./p-4f26144b.js";import{O as g}from"./p-9d18d475.js";import{t as x}from"./p-03ca7264.js";import{b as f}from"./p-deee079e.js";import"./p-8a133b9b.js";const k={start:"Start",end:"End",date:"Date",toggleCalendar:"Toggle calendar view"};function b(t,e){let i=new Date(e.getTime());return i.setDate(i.getDate()+t),t<0?i.getDate()>e.getDate()&&(i=new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0)):i.getDate()<e.getDate()&&i.setMonth(i.getMonth()-1),i}function m(t,e){const i=new Date(e.valueOf()),s=function(t){let e=t;for(;e<0;)e+=12;return e%=12,e}(i.getMonth()+t);return i.setMonth(s),i.setFullYear(e.getFullYear()),i.getMonth()!==s?m(t,b(-1,e)):i}function y(t,e){const i=t[e];return i&&"/"!==i?i:t[e-1]}function w(t){return t.match(/\W/)[0]}function v(t){const e=w(t);return t.split(e).reduce(((t,e)=>t.concat(e[0])),[])}function D(t,e){return{selectionStart:t.indexOf(e),selectionEnd:t.lastIndexOf(e)+1}}const F=class{constructor(i){t(this,i),this.input=e(this,"input",7),this.yearFormat="yyyy",this.isSelectingRangeWithMouse=!1,this.lastYear=(new Date).getFullYear(),this.startInputId=c("gux-datepicker"),this.endInputId=c("gux-datepicker"),this.value=void 0,this.label="",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.minDate="",this.maxDate="",this.mode="single",this.format="mm/dd/yyyy",this.disabled=!1,this.labelPosition="beside",this.formattedValue="",this.minDateDate=void 0,this.maxDateDate=void 0,this.toFormattedValue="",this.active=!1}watchValue(){this.updateDate()}watchMinDate(t){this.minDateDate=t?o(t):null}watchMaxDate(t){this.maxDateDate=t?o(t):null}watchFormat(t){t.includes("yyyy")||(this.yearFormat="yy"),this.intervalOrder=v(t),this.lastIntervalRange=this.initialIntervalRange}watchActiveCalendar(t){if(!0===t){const t=o(this.value.split("/")[0]);this.calendarElement.resetCalendarView(t)}}onKeyDown(t){if(this.isInputFieldEvent(t))switch(this.focusedField=this.getInputFieldFromEvent(t),t.key){case"Enter":case"Escape":this.focusedField.blur(),this.active=!1;break;case"Tab":break;case"ArrowDown":t.preventDefault(),this.increment(-1),this.setCursorRange();break;case"ArrowUp":t.preventDefault(),this.increment(1),this.setCursorRange();break;case"ArrowLeft":{t.preventDefault();const e=function(t,e){const i=v(t),s=y(t,e.selectionStart),a=i.indexOf(s);return D(t,i[(a+i.length-1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange();break}case"ArrowRight":{t.preventDefault();const e=function(t,e){const i=v(t),s=y(t,e.selectionStart),a=i.indexOf(s);return D(t,i[(a+1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(e),this.setCursorRange();break}default:t.preventDefault(),this.isSelectingRangeWithMouse||(this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.updateIntervalValue(t),this.setCursorRange())}else switch(t.key){case"Enter":case"Escape":case" ":{this.active=!1;const t=this.root.shadowRoot.querySelector(".gux-calendar-toggle-button");u((()=>{t.focus()}));break}case"Tab":this.active&&(this.active=!1)}}onMouseDown(t){this.isInputFieldEvent(t)&&(this.isSelectingRangeWithMouse=!0);const e=t.composedPath(),i=e.includes(this.datepickerElement);Array.from(this.root.shadowRoot.querySelectorAll(".gux-calendar-toggle-button")).every((t=>!e.includes(t)))&&(this.active=i)}onClickOutside(){this.active=!1}onInputFocusIn(t){this.focusedField=this.getInputFieldFromEvent(t),this.isSelectingRangeWithMouse||u((()=>this.setRange()))}onInputFocusOut(){this.lastIntervalRange=this.initialIntervalRange}onInputMouseUp(t){t.preventDefault(),this.lastIntervalRange=D(this.format,y(this.format,this.focusedField.selectionStart)),this.setRange(),this.isSelectingRangeWithMouse=!1}isInputFieldEvent(t){const e=t.composedPath();return e.includes(this.inputElement)||e.includes(this.toInputElement)}get initialIntervalRange(){return D(this.format,y(this.format,0))}getInputFieldFromEvent(t){return t.composedPath()[0]}updateIntervalValue(t){const e=parseInt(t.key,10);if(!isNaN(e)){const i=this.focusedField.value.slice(this.focusedField.selectionStart,this.focusedField.selectionEnd);"y"===y(this.format,this.focusedField.selectionStart)&&"yyyy"===this.yearFormat?this.typeYearValue(i,t.key):this.canSetDate(e)?(this.updateSelection(this.focusedField,`${i[1]}${t.key}`),this.setValue()):(this.updateSelection(this.focusedField,`0${t.key}`.replace("00","01")),this.setValue())}}updateSelection(t,e){t.value=t.value.substr(0,this.intervalRange.selectionStart)+e+t.value.substr(this.intervalRange.selectionEnd)}getCalendarLabels(){return function(t,e,i){const s=t.split(",").map((t=>t.trim()));return"range"===e?[s[0]||i[0],s[1]||i[1]]:"range"===e||s[0]?[s[0]]:[i[2]]}(this.label,this.mode,[this.i18n("start"),this.i18n("end"),this.i18n("date")])}stringToDate(t){const e=w(this.format),i=this.format.toLowerCase().split(e),s=t.split(e),a=parseInt(s[i.indexOf(this.yearFormat)],10),n=parseInt(s[i.indexOf("mm")],10)-1,r=parseInt(s[i.indexOf("dd")],10),d=new Date(a,n,r);return"yy"===this.yearFormat&&d.getFullYear()<1970&&this.lastYear>1970&&d.setFullYear(d.getFullYear()+100),d}onCalendarSelect(t){this.value=t.target.value,t.stopPropagation(),this.input.emit(this.value),this.updateDate(),this.inputElement.value=this.formattedValue,"range"===this.mode&&(this.toInputElement.value=this.toFormattedValue),document.activeElement===this.inputElement&&document.activeElement===this.toInputElement||(this.active=!1)}setValue(){if("range"===this.mode){const t=this.stringToDate(this.inputElement.value),e=this.stringToDate(this.toInputElement.value);this.value=h(t,e),this.updateDate(),this.calendarElement.setValue([t,e])}else{const t=this.stringToDate(this.inputElement.value);this.value=l(t),this.updateDate(),this.calendarElement.setValue(t)}this.input.emit(this.value)}setRange(){this.setIntervalRange(this.lastIntervalRange),this.setCursorRange()}typeYearValue(t,e){" "!==t[0]?this.updateSelection(this.focusedField,` ${e}`):(this.updateSelection(this.focusedField,`${t.substr(1)}${e}`),(t.substr(1)+e).includes(" ")||this.setValue())}canSetDate(t){const e=parseInt([this.focusedField.value[this.intervalRange.selectionEnd-1].toString(),t].join(""),10);if(e)switch(y(this.format,this.focusedField.selectionStart)){case"d":{const t=o(this.value);if(e<=new Date(t.getFullYear(),t.getMonth()+1,0).getDate())return!0;break}case"m":if(e<=12)return!0;break;case"y":return!0}return!1}getMapAndRegexFromField(t){const e={dd:`0${t.getDate()}`.slice(-2),mm:`0${t.getMonth()+1}`.slice(-2)};return"yyyy"===this.yearFormat?e.yyyy=t.getFullYear().toString():e.yy=t.getFullYear().toString().slice(-2),{map:e,regexp:new RegExp(Object.keys(e).join("|"),"gi")}}updateDate(){if("range"===this.mode){const[t,e]=p(this.value),{map:i,regexp:s}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(s,(t=>i[t]));const{map:a,regexp:n}=this.getMapAndRegexFromField(e);this.toFormattedValue=this.format.replace(n,(t=>a[t]))}else{const t=o(this.value),{map:e,regexp:i}=this.getMapAndRegexFromField(t);this.formattedValue=this.format.replace(i,(t=>e[t]))}}setCursorRange(){this.intervalRange&&(this.focusedField.setSelectionRange(0,100),this.focusedField.setSelectionRange(this.intervalRange.selectionStart,this.intervalRange.selectionEnd))}toggleCalendar(){this.active=!this.active,this.active&&u((()=>{this.calendarElement.focusPreviewDate()}))}setIntervalRange(t){this.intervalRange=t}getCombinedFocusedDateValue(){return"range"===this.mode?this.getRangeFocusedDateValue():this.getFocusedDateValue()}getFocusedDateValue(){return o(this.value)}getRangeFocusedDateValue(){const[t,e]=p(this.value);return this.focusedField===this.inputElement?t:e}increment(t){const e=y(this.format,this.focusedField.selectionStart),i=this.getCombinedFocusedDateValue();let s;switch(e){case"d":s=b(t,i);break;case"m":s=m(t,i);break;case"y":s=function(t,e){const i=new Date(e.valueOf());return i.setFullYear(e.getFullYear()+t),i}(t,i)}var a,n,r;a=s,n=this.minDateDate,((r=this.maxDateDate)&&r<a||n&&n>a)&&(s=i),this.lastYear=s.getFullYear(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.focusedField.value=function(t,e){const i=w(e),s=e.split(i).map((e=>{switch(e[0]){case"d":return function(t){return`0${t.getDate().toString()}`.slice(-2)}(t);case"m":return function(t){return`0${(t.getMonth()+1).toString()}`.slice(-2)}(t);case"y":return function(t,e){return"yyyy"===e?t.getFullYear().toString():t.getFullYear().toString().slice(-2)}(t,e)}})).join(i);return s}(s,this.format),this.setValue()}async componentWillLoad(){if(x(this.root,{variant:this.mode}),this.i18n=await f(this.root,k),this.watchMinDate(this.minDate),this.watchMaxDate(this.maxDate),this.watchFormat(this.format),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?h(t,t):l(t),"range"===this.mode&&this.numberOfMonths<2&&(this.numberOfMonths=2)}this.updateDate()}runUpdatePosition(){this.cleanupUpdatePosition=a(this.datepickerElement,this.calendarElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){n(this.datepickerElement,this.calendarElement,{strategy:"fixed",placement:"bottom-start",middleware:[r({crossAxis:-3}),d({fallbackStrategy:"initialPlacement"})]}).then((({x:t,y:e})=>{Object.assign(this.calendarElement.style,{left:`${t}px`,top:`${e}px`})}))}componentDidUpdate(){this.active?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderCalendarToggleButton(){return i("button",{class:"gux-calendar-toggle-button",type:"button",onClick:()=>this.toggleCalendar(),"aria-expanded":this.active.toString(),"aria-label":this.i18n("toggleCalendar"),disabled:this.disabled},i("gux-icon",{decorative:!0,"icon-name":"calendar"}))}renderCalendar(){return i("gux-calendar",{tabIndex:-1,ref:t=>this.calendarElement=t,value:this.value,mode:this.mode,onCalendarSelect:t=>this.onCalendarSelect(t),minDate:this.minDate,maxDate:this.maxDate,numberOfMonths:this.numberOfMonths,startDayOfWeek:this.startDayOfWeek})}renderStartDateField(){return i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.startInputId,class:{"gux-datepicker-field-label":!0,"gux-sr-only":"single"===this.mode&&!this.label}},this.getCalendarLabels()[0]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.startInputId,type:"text",onClick:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),ref:t=>this.inputElement=t,value:this.formattedValue,disabled:this.disabled}),this.renderCalendarToggleButton()),this.renderCalendar()))}renderEndDateField(){return"single"===this.mode?null:i("div",{class:{"gux-datepicker-field":!0,"gux-above":"above"===this.labelPosition}},i("label",{htmlFor:this.endInputId,class:"gux-datepicker-field-label"},this.getCalendarLabels()[1]),i("div",{class:"gux-datepicker-field-input"},i("div",{class:"gux-datepicker-field-text-input"},i("input",{id:this.endInputId,type:"text",ref:t=>this.toInputElement=t,onMouseUp:t=>this.onInputMouseUp(t),onFocusin:t=>this.onInputFocusIn(t),onFocusout:()=>this.onInputFocusOut(),value:this.toFormattedValue,disabled:this.disabled}),this.renderCalendarToggleButton())))}render(){return i("div",{class:{"gux-datepicker":!0,"gux-active":this.active,"gux-disabled":this.disabled},ref:t=>this.datepickerElement=t},this.renderStartDateField(),this.renderEndDateField())}get root(){return s(this)}static get watchers(){return{value:["watchValue"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],format:["watchFormat"],active:["watchActiveCalendar"]}}};(function(t,e,i,s){var a,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var d=t.length-1;d>=0;d--)(a=t[d])&&(r=(n<3?a(r):n>3?a(e,i,r):a(e,i))||r);n>3&&r&&Object.defineProperty(e,i,r)})([g({triggerEvents:"mousedown"})],F.prototype,"onClickOutside",null),F.style=":host{display:block}.gux-datepicker{display:inline-block}.gux-datepicker.gux-disabled{pointer-events:none;cursor:default}.gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:0.5}.gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start}.gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-left:20px}.gux-datepicker .gux-datepicker-field.gux-above{flex-direction:column;align-items:self-start}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-input{margin-top:0}.gux-datepicker .gux-datepicker-field.gux-above .gux-datepicker-field-label{margin-right:0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-right:8px;font-size:12px;font-weight:bold;line-height:20px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{position:relative;flex:0 1 auto;align-self:auto;order:0;margin:4px 0}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input:focus-within{border-color:#2a60c8;outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;width:100px;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:#596373;opacity:1}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:2px;color:#596373;background:transparent;border:none;border-radius:4px;outline:none}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2e394c;cursor:pointer}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button gux-icon{width:16px;height:16px}.gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{position:fixed;z-index:var(--gux-zindex-popup, 1);display:none;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus-visible,.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2a60c8}.gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{F as gux_datepicker}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,H as o,g as i}from"./p-7d26b2e1.js";import{c as l,o as s}from"./p-3f5341ea.js";import{O as r}from"./p-f34ce7dc.js";import{p as a}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as p,g as c,v as g}from"./p-b3c9fd06.js";import{t as h}from"./p-
|
1
|
+
import{r as e,h as t,H as o,g as i}from"./p-7d26b2e1.js";import{c as l,o as s}from"./p-3f5341ea.js";import{O as r}from"./p-f34ce7dc.js";import{p as a}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as p,g as c,v as g}from"./p-b3c9fd06.js";import{t as h}from"./p-03ca7264.js";import"./p-cbcbd1bb.js";import"./p-d0805f56.js";import"./p-d176c2ae.js";const f=class{constructor(t){e(this,t),this.disabled=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help"),h(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return t(o,{class:{"gux-input-error":this.hasError,"gux-disabled":this.disabled}},t("div",{class:"gux-form-field-container"},t("div",{class:"gux-input-label"},t("div",{class:"gux-input"},t("slot",{name:"input",onSlotchange:()=>this.setInput()})),t("div",{class:"gux-label"},t("slot",{name:"label"}),t(d,{show:this.hasError},t("slot",{name:"error"})),t(p,{show:!this.hasError&&this.hasHelp},t("slot",{name:"help"}))))))}setInput(){this.input=c(this.root,'input[type="checkbox"][slot="input"]'),a(this.input),this.disabled=l(this.input),this.disabledObserver=s(this.input,(e=>{this.disabled=e})),g(this.root,this.input)}get root(){return i(this)}};(function(e,t,o,i){var l,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(r=(s<3?l(r):s>3?l(t,o,r):l(t,o))||r);s>3&&r&&Object.defineProperty(t,o,r)})([r({childList:!0,subtree:!0})],f.prototype,"onMutation",null),f.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;line-height:20px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;color:#2e394c}:host(.gux-input-error) ::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%23ea0b0b'/%3E%3C/svg%3E\")}:host(.gux-disabled){cursor:not-allowed;opacity:0.5}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:flex;flex-direction:row}.gux-input-label .gux-label{display:flex;flex-direction:column}::slotted(input[type='checkbox']){display:inline-grid;width:16px;height:16px;margin:4px;text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none}::slotted(input[type='checkbox'])::before{grid-area:1;content:'';border-radius:15%}::slotted(input[type='checkbox']:focus-visible)::before{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}::slotted(input[type='checkbox']:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%2377828f'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:not(:checked):not(:disabled):not(:indeterminate):hover)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.3077 1.84615H3.69231C2.67271 1.84615 1.84615 2.67271 1.84615 3.69231V12.3077C1.84615 13.3273 2.67271 14.1538 3.69231 14.1538H12.3077C13.3273 14.1538 14.1538 13.3273 14.1538 12.3077V3.69231C14.1538 2.67271 13.3273 1.84615 12.3077 1.84615ZM3.69231 0C1.6531 0 0 1.6531 0 3.69231V12.3077C0 14.3469 1.6531 16 3.69231 16H12.3077C14.3469 16 16 14.3469 16 12.3077V3.69231C16 1.6531 14.3469 0 12.3077 0H3.69231Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 0H12.3077C13.287 0 14.2261 0.38901 14.9185 1.08145C15.611 1.77389 16 2.71305 16 3.69231V12.3077C16 13.287 15.611 14.2261 14.9185 14.9185C14.2261 15.611 13.287 16 12.3077 16H3.69231C2.71305 16 1.77389 15.611 1.08145 14.9185C0.38901 14.2261 0 13.287 0 12.3077V3.69231C0 2.71305 0.38901 1.77389 1.08145 1.08145C1.77389 0.38901 2.71305 0 3.69231 0ZM5.62483 11.5936C5.79089 11.7597 6.00122 11.8372 6.21155 11.8372C6.43295 11.8372 6.64329 11.7486 6.79827 11.5936L13.2854 5.10652C13.6064 4.78549 13.6064 4.25412 13.2854 3.93308C12.9643 3.61205 12.433 3.61205 12.1119 3.93308L6.21155 9.83348L3.87575 7.4866C3.55472 7.16557 3.02335 7.16557 2.70231 7.4866C2.38128 7.80764 2.38128 8.339 2.70231 8.66004L5.62483 11.5936Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:indeterminate)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.69231 1.84615H12.3077C13.3273 1.84615 14.1538 2.67271 14.1538 3.69231V12.3077C14.1538 13.3273 13.3273 14.1538 12.3077 14.1538H3.69231C2.67271 14.1538 1.84615 13.3273 1.84615 12.3077V3.69231C1.84615 2.67271 2.67271 1.84615 3.69231 1.84615ZM0 3.69231C0 1.6531 1.6531 0 3.69231 0H12.3077C14.3469 0 16 1.6531 16 3.69231V12.3077C16 14.3469 14.3469 16 12.3077 16H3.69231C1.6531 16 0 14.3469 0 12.3077V3.69231ZM4.00028 9.2308H12.0003C12.5049 9.2308 12.9234 8.81234 12.9234 8.30773C12.9234 7.80311 12.5049 7.38465 12.0003 7.38465H4.00028C3.49567 7.38465 3.07721 7.80311 3.07721 8.30773C3.07721 8.81234 3.49567 9.2308 4.00028 9.2308Z' fill='%232a60c8'/%3E%3C/svg%3E\")}::slotted(input[type='checkbox']:disabled)::before{cursor:not-allowed;opacity:0.5}::slotted(label){display:inline-block;font-size:12px;line-height:24px;vertical-align:middle}";export{f as gux_form_field_checkbox}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as s,h as e,g as o}from"./p-7d26b2e1.js";import{b as l}from"./p-deee079e.js";import{r as i}from"./p-cbcbd1bb.js";import{t as a}from"./p-1aa11396.js";import"./p-8a133b9b.js";const r=class{constructor(e){t(this,e),this.internalallrowselectchange=s(this,"internalallrowselectchange",7),this.id=i("gux-all-row-select"),this.selected=!1}onCheck(t){t.stopPropagation(),this.internalallrowselectchange.emit(this.inputElement.checked)}async setIndeterminate(t=!0){this.inputElement.indeterminate=t}async componentWillLoad(){this.i18n=await l(this.root,a,"gux-table")}render(){return e("gux-form-field-checkbox",null,e("input",{ref:t=>this.inputElement=t,slot:"input",id:this.id,type:"checkbox",checked:this.selected}),e("label",{slot:"label",htmlFor:this.id},"",e("span",{class:"gux-label-text"},this.i18n("selectAllTableRows"))))}get root(){return o(this)}};r.style=":host .gux-label-text{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{r as gux_all_row_select}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,h as o,H as e,g as n}from"./p-7d26b2e1.js";import{t as r}from"./p-03ca7264.js";import{l as i}from"./p-d0805f56.js";const s=class{constructor(o){t(this,o),this.accent="secondary"}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}i(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,{accent:this.accent},o("slot",null))}get root(){return n(this)}};s.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}: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-weight:var(--gse-ui-button-text-fontWeight);font-size:var(--gse-ui-button-text-fontSize);line-height:var(--gse-ui-button-text-lineHeight);color:var(--gse-ui-button-secondary-default-foregroundColor);background-color:var(--gse-ui-button-secondary-default-backgroundColor);width:100%;min-width:var(--gse-ui-button-icon-only-width);height:var(--gse-ui-button-height);padding:var(--gse-ui-button-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;border:none;border-radius:var(--gse-ui-button-borderRadius)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){opacity:var(--gse-ui-button-disabled-opacity);cursor:default}::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-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);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-width:var(--gse-ui-button-tertiary-default-border-width);border-style:var(--gse-ui-button-tertiary-default-border-style);border-color:var(--gse-ui-button-tertiary-default-border-color)}: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-width:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){height:initial;padding:0;color:var(--gse-ui-link-default-color);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-color)}: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){text-decoration:underline;color:var(--gse-ui-link-hover-color);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){text-decoration:underline;color:var(--gse-ui-link-active-color);background:none}";export{s as gux_button_slot}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as e,f as s,d as i,h as o,H as a,g as l}from"./p-7d26b2e1.js";import{b as n}from"./p-deee079e.js";import{w as r}from"./p-76ff3e75.js";import{r as h}from"./p-cbcbd1bb.js";import{t as c}from"./p-03ca7264.js";import{t as u}from"./p-1aa11396.js";import"./p-8a133b9b.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=h("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 n(this.root,u)}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.hasAttribute("disabled"))),i=s.filter((t=>t.selected)),o=Boolean(e.length),a=i.length===s.length,l=0===i.length;t.selected=o&&a,t.setIndeterminate(o&&!a&&!l)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.hasAttribute("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,r("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("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 o(a,{"gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},o("div",{class:"gux-table"},o("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},o("slot",{name:"data"})),this.isTableEmpty&&o("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};g.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-icon-anchor gux-icon{padding-right:var(--gse-ui-links-inLine-padding)}:host{display:block;isolation:isolate}: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-fontFamily-heading), var(--gse-core-fontFamily-body), sans-serif;font-weight:var(--gse-core-fontWeight-semiBold);font-size:var(--gse-core-fontSize-lg);line-height:var(--gse-lineHeight-md)}";export{g as gux_table}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as e,h as s,H as i,g as o}from"./p-7d26b2e1.js";import{s as r,c as a,a as n,b as h,h as u,d,e as l,f as c,i as g,j as m,o as p}from"./p-55cf6d81.js";import{b as v}from"./p-deee079e.js";import{w as b}from"./p-76ff3e75.js";import{s as x}from"./p-d176c2ae.js";import{t as f}from"./p-03ca7264.js";import{b as w}from"./p-091f51f6.js";import"./p-8a133b9b.js";const y={add:"Add {name}",noMatches:"No matches",loading:"Loading..."},S=class{constructor(s){t(this,s),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.textInput="",this.filterType="none",this.emptyMessage=void 0,this.listboxOptions=[],this.allListboxOptionsFiltered=void 0,this.hasExactMatch=!1}onFocus(){r(this.root)}onBlur(){a(this.root)}selectNewCustomOption(t){this.updateValue(t.detail)}onKeydown(t){var e;switch(t.key){case"Enter":return t.preventDefault(),void((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),w((()=>{r(this.root)}))):g(this.root,(t=>this.updateValue(t))));case"ArrowDown":return t.preventDefault(),void(l(this.root)?(t.stopPropagation(),c(this.root)):h(this.root));case"ArrowUp":return t.preventDefault(),void(u(this.root)?(t.stopPropagation(),d(this.root)):n(this.root));case"Home":return t.preventDefault(),void h(this.root);case"End":return t.preventDefault(),void n(this.root);case" ":return void t.preventDefault()}1!==t.key.length||m(this.root,t.key)}onKeyup(t){var e;" "!==t.key||((null===(e=this.optionCreateElement)||void 0===e?void 0:e.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),w((()=>{r(this.root)}))):g(this.root,(t=>this.updateValue(t))))}onMousemove(){a(this.root)}onClick(t){b("gux-option-multi",t,(t=>{p(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){g(this.root,(t=>this.updateValue(t)))}getHasExactMatch(){let t=!1;return this.hasExactMatch=!1,this.listboxOptions.forEach((e=>{var s,i;(null===(i=null===(s=e.textContent)||void 0===s?void 0:s.toLowerCase())||void 0===i?void 0:i.trim())==this.textInput.toLowerCase().trim()&&(t=!0,this.hasExactMatch=!0)})),t}updateOptionMultiCreateValue(){this.optionCreateElement&&(this.optionCreateElement.value=this.textInput,this.optionCreateElement.filtered=!this.textInput||this.getHasExactMatch())}getSelectedValues(){return this.value?this.value.split(","):[]}updateOnSlotChange(){this.setListboxOptions(),this.updateListboxOptions(),r(this.root)}getOptionCreateElement(){this.optionCreateElement=this.root.querySelector("gux-create-option")}setListboxOptions(){this.listboxOptions=Array.from(this.root.children).filter((t=>"GUX-OPTION-MULTI"===t.tagName)),this.internallistboxoptionsupdated.emit()}updateListboxOptions(){this.listboxOptions.forEach((t=>{t.selected=this.getSelectedValues().includes(t.value),"custom"!==this.filterType&&(t.filtered=!t.textContent.toLowerCase().startsWith(this.textInput.toLowerCase()))}))}updateValue(t){if(this.getSelectedValues().includes(t))this.value=this.getSelectedValues().filter((e=>e!==t)).join(",");else{const e=[...this.getSelectedValues(),t];this.value=e.join(",")}x(this.root,"input"),x(this.root,"change")}async componentWillLoad(){f(this.root),this.i18n=await v(this.root,y),this.setListboxOptions(),this.getOptionCreateElement()}componentWillRender(){this.setListboxOptions(),this.updateListboxOptions(),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length}renderHiddenSlot(){return s("div",{hidden:!0},s("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[s("div",{class:"gux-message-container"},s("gux-radial-loading",{context:"modal"}),s("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return[s("div",{class:"gux-message-container"},s("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}renderCreateOptionSlot(){return s("slot",{name:"create"})}render(){return this.loading?this.renderLoading():s(i,{role:"listbox","aria-multiselectable":"true",tabindex:0},s("slot",{onSlotchange:()=>this.updateOnSlotChange()}),this.renderAllListboxOptionsFiltered(),this.renderCreateOptionSlot())}get root(){return o(this)}static get watchers(){return{textInput:["updateOptionMultiCreateValue"]}}};S.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:var(--gse-ui-menu-padding);overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);outline:none;box-shadow:var(--gse-ui-menu-boxShadow-x) var(--gse-ui-menu-boxShadow-y) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color);scrollbar-color:var(--gse-ui-menu-scrollbar-foregroundColor)}:host(:focus-visible){outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center}.gux-message-container .gux-no-matches{box-sizing:border-box;height:var(--gse-ui-menu-option-height);font-family:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontFamily);font-weight:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-subheader-text-lineHeight);font-size:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontSize);color:var(--gse-ui-dropdown-menu-emptyState-subheader-foregroundColor)}";export{S as gux_listbox_multi}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,c as s,h as t,H as o}from"./p-7d26b2e1.js";const i=class{constructor(t){e(this,t),this.guxactivepanelchange=s(this,"guxactivepanelchange",7),this.tabId=void 0,this.active=!1}async guxSetActive(e){this.active=e}watchActivePanel(){!0===this.active&&this.guxactivepanelchange.emit(this.tabId)}render(){return t(o,{id:`gux-${this.tabId}-panel`,role:"tabpanel","aria-labelledby":`gux-${this.tabId}-tab`,tabIndex:0,hidden:!this.active},t("slot",null))}static get watchers(){return{active:["watchActivePanel"]}}};i.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}:host{height:calc(100% - 57px)}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}";export{i as gux_tab_panel}
|
@@ -1 +1 @@
|
|
1
|
-
import{r,h as d,g as a}from"./p-7d26b2e1.js";import{t as e}from"./p-
|
1
|
+
import{r,h as d,g as a}from"./p-7d26b2e1.js";import{t as e}from"./p-03ca7264.js";const o=class{constructor(d){r(this,d),this.accent="bordered"}componentWillLoad(){e(this.root,{variant:this.accent})}render(){return d("div",{class:{"gux-card":!0,[`gux-${this.accent}`]:!0}},d("slot",null))}get root(){return a(this)}};o.style=":host{display:block;width:fit-content}.gux-card{box-sizing:border-box;padding:var(--gse-ui-card-padding);background-color:var(--gse-ui-card-backgroundColor);border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color);border-radius:var(--gse-ui-card-borderRadius)}.gux-card.gux-bordered{border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color)}.gux-card.gux-raised{border:var(--gse-ui-card-raised-border-width) var(--gse-ui-card-raised-border-style) var(--gse-ui-card-raised-border-color);box-shadow:var(--gse-ui-card-raised-boxShadow-x) var(--gse-ui-card-raised-boxShadow-y) var(--gse-ui-card-raised-boxShadow-blur) var(--gse-ui-card-raised-boxShadow-spread) var(--gse-ui-card-raised-boxShadow-color)}.gux-card.gux-borderless{border:var(--gse-ui-card-borderless-border-width) var(--gse-ui-card-borderless-border-style) var(--gse-ui-card-borderless-border-color)}";export{o as gux_card}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as a,h as i,g as e}from"./p-7d26b2e1.js";import{t as n}from"./p-03ca7264.js";const s=class{constructor(i){t(this,i),this.guxpaginationchange=a(this,"guxpaginationchange",7),this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.layout="full",this.totalPages=void 0}setPage(t){if(t<=0)return void this.setPage(1);const a=this.calculateTotalPages();t>a?this.setPage(a):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}calculateTotalPages(){return Math.max(1,Math.ceil(this.totalItems/this.itemsPerPage))}calculateCurrentPage(){return Math.max(this.totalPages>0?1:0,Math.min(this.currentPage,this.totalPages))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}getPaginationInfoElement(t){if("expanded"===t)return null;const a=[i("gux-pagination-item-counts-legacy",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage})];return"full"===t&&a.push(i("gux-pagination-items-per-page-legacy",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),i("div",{class:"gux-pagination-info"},a)}componentWillLoad(){n(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(),this.currentPage=this.calculateCurrentPage()}render(){return i("div",{class:"gux-pagination-container"},this.getPaginationInfoElement(this.layout),i("div",{class:"gux-pagination-change"},i("gux-pagination-buttons-legacy",{layout:this.layout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return e(this)}};s.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;align-content:stretch;align-items:center;justify-content:space-between;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:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{s as gux_pagination_legacy}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as r,g as o}from"./p-7d26b2e1.js";import{t as a}from"./p-03ca7264.js";import{b as g}from"./p-deee079e.js";import"./p-8a133b9b.js";const i={info:"badge with label: {label}, accent: info","info-bold":"badge with label: {label}, accent: info bold",success:"badge with label: {label}, accent: success","success-bold":"badge with label: {label}, accent: success bold",warning:"badge with label: {label}, accent: warning","warning-bold":"badge with label: {label}, accent: warning bold",error:"badge with label: {label}, accent: error","error-bold":"badge with label: {label}, accent: error error",inherit:"badge with label: {label}"},l=class{constructor(r){e(this,r),this.accent="info",this.bold=!1,this.label=void 0}onSlotChange(e){const r=e.composedPath()[0].assignedNodes();this.label=r.map((e=>e.textContent)).join("")}renderBadgeTitle(){return r("gux-tooltip-title",null,r("span",null,r("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return r("div",{class:"gux-sr-only"},this.i18n(this.getVariant(),{label:this.label}))}getVariant(){return`${this.accent}${this.bold?"-bold":""}`}async componentWillLoad(){a(this.root),this.i18n=await g(this.root,i)}render(){return r("div",{class:{"gux-badge":!0,[`gux-${this.accent}`]:!0,"gux-bold":this.bold}},this.renderBadgeTitle(),this.renderSrText())}get root(){return o(this)}};l.style=":host{display:inline-block;height:fit-content;border-radius:var(--gse-ui-badge-borderRadius)}.gux-badge{display:flex;flex-direction:row;justify-content:center;align-items:center;height:var(--gse-ui-badge-height);padding:var(--gse-ui-badge-padding);border-radius:var(--gse-ui-badge-borderRadius);gap:var(--gse-ui-badge-gap);font-family:var(--gse-ui-badge-text-fontFamily);font-size:var(--gse-ui-badge-text-fontSize);font-weight:var(--gse-ui-badge-text-fontWeight, 600);line-height:var(--gse-ui-badge-text-lineHeight)}.gux-badge gux-tooltip-title{white-space:nowrap}.gux-badge gux-tooltip-title ::slotted(gux-icon){height:16px;font-size:16px}.gux-badge .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-badge.gux-info{color:var(--gse-ui-badge-info-regular-foregroundColor);background-color:var(--gse-ui-badge-info-regular-backgroundColor)}.gux-badge.gux-info.gux-bold{color:var(--gse-ui-badge-info-bold-foregroundColor);background-color:var(--gse-ui-badge-info-bold-backgroundColor)}.gux-badge.gux-error{color:var(--gse-ui-badge-error-regular-foregroundColor);background-color:var(--gse-ui-badge-error-regular-backgroundColor)}.gux-badge.gux-error.gux-bold{color:var(--gse-ui-badge-error-bold-foregroundColor);background-color:var(--gse-ui-badge-error-bold-backgroundColor)}.gux-badge.gux-warning{color:var(--gse-ui-badge-warning-regular-foregroundColor);background-color:var(--gse-ui-badge-warning-regular-backgroundColor)}.gux-badge.gux-warning.gux-bold{color:var(--gse-ui-badge-warning-bold-foregroundColor);background-color:var(--gse-ui-badge-warning-bold-backgroundColor)}.gux-badge.gux-success{color:var(--gse-ui-badge-success-regular-foregroundColor);background-color:var(--gse-ui-badge-success-regular-backgroundColor)}.gux-badge.gux-success.gux-bold{color:var(--gse-ui-badge-success-bold-foregroundColor);background-color:var(--gse-ui-badge-success-bold-backgroundColor)}.gux-badge.gux-inherit{color:inherit;background-color:inherit}";export{l as gux_badge}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as a,d as i,h as e,g as n}from"./p-7d26b2e1.js";import{a as s}from"./p-091f51f6.js";import{t as o}from"./p-03ca7264.js";const r=class{constructor(i){t(this,i),this.guxpaginationchange=a(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(t){if(t<=0)return void this.setPage(1);const a=this.calculateTotalPages(this.totalItems,this.itemsPerPage);t>a?this.setPage(a):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}calculateTotalPages(t,a){return Math.max(1,Math.ceil(t/a))}calculateCurrentPage(t,a){return Math.max(t>0?1:0,Math.min(a,t))}checkPaginationContainerWidthForLayout(){i((()=>{const t=this.root.shadowRoot.querySelector(".gux-pagination-container"),a=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=t.clientWidth;a.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",{class:"gux-pagination-container"},e("div",{class:"gux-pagination-info"},e("gux-pagination-item-counts",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{class:"gux-pagination-spacer"}),e("div",{class:"gux-pagination-change"},e("gux-pagination-buttons",{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;align-content:stretch;align-items:center;justify-content:space-between;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;align-content:stretch;align-items:center;align-self:auto;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);justify-content:flex-start;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}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,h as o,g as i}from"./p-7d26b2e1.js";import{t as s}from"./p-03ca7264.js";import{b as e}from"./p-deee079e.js";import"./p-8a133b9b.js";const n={dismiss:"Dismiss"},r=class{constructor(o){t(this,o),this.position="absolute"}async componentWillLoad(){s(this.root,{variant:this.position}),this.i18n=await e(this.root,n)}render(){return o("gux-button-slot",{accent:"ghost",class:"inherit"==this.position?"gux-inherit":void 0},o("button",{type:"button",title:this.i18n("dismiss")},o("div",{class:"gux-icon-container"},o("gux-icon",{"icon-name":"close",decorative:!0}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};r.style="gux-button-slot{position:absolute;top:0;right:0}gux-button-slot.gux-inherit{position:inherit}gux-button-slot .gux-icon-container{width:8px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:stretch;align-items:center}gux-button-slot .gux-icon-container gux-icon{width:16px;height:16px;order:0;flex:0 0 auto;align-self:auto;color:var(--gse-ui-toast-closeButtonColor)}";export{r as gux_dismiss_button}
|