genesys-spark-components 3.34.2 → 3.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/{DateTimeFormatter-642387ff.js → DateTimeFormatter-e4e20cfc.js} +1 -1
- package/dist/cjs/{after-next-render-1e8c15f5.js → after-next-render-a09f528a.js} +4 -0
- package/dist/cjs/genesys-webcomponents.cjs.js +2 -2
- package/dist/cjs/gux-accordion-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-button-legacy.cjs.entry.js +4 -4
- package/dist/cjs/gux-action-button.cjs.entry.js +9 -9
- package/dist/cjs/gux-action-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-list-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +6 -5
- package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-announce-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-badge-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-blank-state-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-multi.cjs.entry.js +8 -8
- package/dist/cjs/gux-button-slot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +9 -8
- package/dist/cjs/gux-card-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-color-select_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-content-search.cjs.entry.js +3 -3
- package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-date-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-datepicker.cjs.entry.js +10 -10
- package/dist/cjs/gux-disclosure-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +4 -4
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +2 -2
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +5 -5
- package/dist/cjs/gux-error-message-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +8 -7
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-color.cjs.entry.js +5 -5
- package/dist/cjs/{gux-form-field-container-284d1d01.js → gux-form-field-container-a217a455.js} +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-number.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-range.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-search.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/{gux-form-field.service-8424f99d.js → gux-form-field.service-a91c3c52.js} +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-input-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-list-divider-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +2 -2
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +3 -3
- package/dist/cjs/gux-loading-message-beta.cjs.entry.js +4 -3
- package/dist/cjs/gux-menu-option.cjs.entry.js +2 -2
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/{gux-menu.common-6a6c2b85.js → gux-menu.common-ada23b94.js} +0 -2
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-calendar.cjs.entry.js +3 -3
- package/dist/cjs/gux-month-list_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +5 -5
- package/dist/cjs/gux-notification-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-beta.cjs.entry.js +4 -3
- package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
- package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-popover-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-popover.cjs.entry.js +3 -3
- package/dist/cjs/gux-popup.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-side-panel-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-simple-toast.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 +3 -3
- package/dist/cjs/gux-sort-control.cjs.entry.js +3 -3
- package/dist/cjs/gux-submenu.cjs.entry.js +10 -8
- 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 +7 -7
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +9 -9
- package/dist/cjs/gux-tab-dropdown-option-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-list.cjs.entry.js +5 -4
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-beta.cjs.entry.js +57 -15
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +5 -5
- package/dist/cjs/gux-table-select-popover.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
- package/dist/cjs/gux-text-label-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-time-picker-beta.cjs.entry.js +7 -7
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/gux-truncate-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +3 -3
- package/dist/cjs/{index-6d7040d6.js → index-b0d0cf83.js} +1 -1
- package/dist/cjs/{index-a4138a99.js → index-ce5e725f.js} +219 -201
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{on-click-outside-64dc5f14.js → on-click-outside-63ec9076.js} +1 -1
- package/dist/cjs/{on-mutation-74bf4591.js → on-mutation-3a62df7a.js} +1 -1
- package/dist/cjs/{on-resize-b1f6a92b.js → on-resize-827aa87c.js} +1 -1
- package/dist/cjs/{usage-tracking-90b0b930.js → usage-tracking-9f3cf4bf.js} +4 -4
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/beta/gux-flyout-menu/gux-flyout-menu.js +7 -6
- package/dist/collection/components/beta/gux-flyout-menu/gux-menu/gux-menu.common.js +0 -1
- package/dist/collection/components/beta/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +10 -8
- package/dist/collection/components/beta/gux-loading-message/gux-loading-message.js +2 -1
- package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.js +2 -1
- package/dist/collection/components/beta/gux-table/gux-table-select-menu/gux-table-select-menu.js +5 -5
- package/dist/collection/components/beta/gux-table/gux-table.js +54 -12
- package/dist/collection/components/beta/gux-time-picker/gux-time-picker.js +6 -6
- package/dist/collection/components/stable/gux-action-button/gux-action-button.js +7 -7
- package/dist/collection/components/stable/gux-advanced-dropdown/gux-advanced-dropdown.js +4 -3
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +7 -7
- package/dist/collection/components/stable/gux-calendar/gux-calendar.js +8 -7
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +10 -10
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +2 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +9 -9
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +6 -6
- package/dist/collection/utils/dom/after-next-render.js +3 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{DateTimeFormatter-bac9ad67.js → DateTimeFormatter-9021bd61.js} +1 -1
- package/dist/esm/after-next-render-ed0f7dcd.js +8 -0
- package/dist/esm/genesys-webcomponents.js +2 -2
- package/dist/esm/gux-accordion-legacy.entry.js +2 -2
- package/dist/esm/gux-accordion-section.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +2 -2
- package/dist/esm/gux-action-button-legacy.entry.js +4 -4
- package/dist/esm/gux-action-button.entry.js +9 -9
- package/dist/esm/gux-action-item.entry.js +1 -1
- package/dist/esm/gux-action-list-divider.entry.js +1 -1
- package/dist/esm/gux-action-list-legacy.entry.js +2 -2
- package/dist/esm/gux-action-toast.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown.entry.js +6 -5
- package/dist/esm/gux-all-row-select.entry.js +2 -2
- package/dist/esm/gux-announce-beta.entry.js +3 -3
- package/dist/esm/gux-badge-beta.entry.js +3 -3
- package/dist/esm/gux-blank-state-beta.entry.js +3 -3
- package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +3 -3
- package/dist/esm/gux-button-multi-legacy.entry.js +3 -3
- package/dist/esm/gux-button-multi.entry.js +8 -8
- package/dist/esm/gux-button-slot-beta.entry.js +2 -2
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +9 -8
- package/dist/esm/gux-card-beta.entry.js +2 -2
- package/dist/esm/gux-chart-column-beta.entry.js +2 -2
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +2 -2
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
- package/dist/esm/gux-color-select_2.entry.js +1 -1
- package/dist/esm/gux-command-action.entry.js +1 -1
- package/dist/esm/gux-command-palette-legacy.entry.js +3 -3
- package/dist/esm/gux-content-search.entry.js +3 -3
- package/dist/esm/gux-copy-to-clipboard-beta.entry.js +3 -3
- package/dist/esm/gux-date-beta.entry.js +4 -4
- package/dist/esm/gux-date-time-beta.entry.js +4 -4
- package/dist/esm/gux-datepicker.entry.js +10 -10
- package/dist/esm/gux-disclosure-button.entry.js +3 -3
- package/dist/esm/gux-dismiss-button.entry.js +3 -3
- package/dist/esm/gux-dropdown-legacy.entry.js +4 -4
- package/dist/esm/gux-dropdown-multi-beta.entry.js +5 -5
- package/dist/esm/gux-dropdown-multi-tag.entry.js +2 -2
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +5 -5
- package/dist/esm/gux-error-message-beta.entry.js +2 -2
- package/dist/esm/gux-flyout-menu-beta.entry.js +8 -7
- package/dist/esm/gux-form-field-checkbox.entry.js +4 -4
- package/dist/esm/gux-form-field-color.entry.js +5 -5
- package/dist/esm/{gux-form-field-container-2d8e8d4e.js → gux-form-field-container-9d8dfc4d.js} +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +5 -5
- package/dist/esm/gux-form-field-input-clear-button.entry.js +3 -3
- package/dist/esm/gux-form-field-legacy.entry.js +3 -3
- package/dist/esm/gux-form-field-number.entry.js +6 -6
- package/dist/esm/gux-form-field-radio.entry.js +4 -4
- package/dist/esm/gux-form-field-range.entry.js +5 -5
- package/dist/esm/gux-form-field-search.entry.js +5 -5
- package/dist/esm/gux-form-field-select.entry.js +5 -5
- package/dist/esm/gux-form-field-text-like.entry.js +5 -5
- package/dist/esm/gux-form-field-textarea.entry.js +5 -5
- package/dist/esm/gux-form-field-time-picker.entry.js +5 -5
- package/dist/esm/{gux-form-field.service-e046de13.js → gux-form-field.service-72dd122e.js} +1 -1
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-input-checkbox_7.entry.js +2 -2
- package/dist/esm/gux-input-search.entry.js +2 -2
- package/dist/esm/gux-input-text-like.entry.js +2 -2
- package/dist/esm/gux-list-divider-legacy.entry.js +1 -1
- package/dist/esm/gux-list-divider.entry.js +1 -1
- package/dist/esm/gux-list-item-legacy_2.entry.js +2 -2
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +2 -2
- package/dist/esm/gux-listbox-multi.entry.js +3 -3
- package/dist/esm/gux-loading-message-beta.entry.js +4 -3
- package/dist/esm/gux-menu-option.entry.js +2 -2
- package/dist/esm/{gux-menu.common-60ab04e4.js → gux-menu.common-4a871a5c.js} +1 -2
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-calendar.entry.js +3 -3
- package/dist/esm/gux-month-list_2.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +5 -5
- package/dist/esm/gux-notification-toast.entry.js +2 -2
- package/dist/esm/gux-option-legacy.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-beta.entry.js +4 -3
- package/dist/esm/gux-pagination-buttons-beta_3.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons_3.entry.js +2 -2
- package/dist/esm/gux-pagination-cursor.entry.js +3 -3
- package/dist/esm/gux-pagination.entry.js +2 -2
- package/dist/esm/gux-panel-frame-legacy.entry.js +2 -2
- package/dist/esm/gux-popover-list.entry.js +3 -3
- package/dist/esm/gux-popover.entry.js +3 -3
- package/dist/esm/gux-popup.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +3 -3
- package/dist/esm/gux-radial-progress.entry.js +2 -2
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-row-select.entry.js +2 -2
- package/dist/esm/gux-screen-reader-beta.entry.js +2 -2
- package/dist/esm/gux-side-panel-button.entry.js +1 -1
- package/dist/esm/gux-side-panel-legacy.entry.js +2 -2
- package/dist/esm/gux-simple-toast.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 +3 -3
- package/dist/esm/gux-sort-control.entry.js +3 -3
- package/dist/esm/gux-submenu.entry.js +10 -8
- 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 +7 -7
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +9 -9
- package/dist/esm/gux-tab-dropdown-option-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-list.entry.js +5 -4
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +1 -1
- package/dist/esm/gux-table-beta.entry.js +57 -15
- package/dist/esm/gux-table-select-menu.entry.js +5 -5
- package/dist/esm/gux-table-select-popover.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs-legacy.entry.js +3 -3
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag-beta.entry.js +3 -3
- package/dist/esm/gux-text-highlight.entry.js +2 -2
- package/dist/esm/gux-text-label-legacy.entry.js +2 -2
- package/dist/esm/gux-time-beta.entry.js +4 -4
- package/dist/esm/gux-time-picker-beta.entry.js +7 -7
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +3 -3
- package/dist/esm/gux-tooltip-title.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +2 -2
- package/dist/esm/gux-truncate-beta.entry.js +3 -3
- package/dist/esm/gux-visualization-beta.entry.js +3 -3
- package/dist/esm/{index-3e21de1b.js → index-a108e8ae.js} +1 -1
- package/dist/esm/{index-738480cf.js → index-be334191.js} +219 -201
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{on-click-outside-b20ff612.js → on-click-outside-d48a73bb.js} +1 -1
- package/dist/esm/{on-mutation-70eb931c.js → on-mutation-50c94529.js} +1 -1
- package/dist/esm/{on-resize-d93fa9d3.js → on-resize-6c3d6eb1.js} +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{usage-tracking-5e1ba7f7.js → usage-tracking-f659944d.js} +4 -4
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-291b3f50.entry.js → p-01a91fbe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-616b8919.entry.js → p-034e3301.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47e146c0.entry.js → p-073a8994.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-091f51f6.js +1 -0
- package/dist/genesys-webcomponents/{p-700d55d7.entry.js → p-0a9a85cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8616db32.entry.js → p-0aa3c79b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4951dba.entry.js → p-0b366023.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b3750fd.entry.js → p-0bd51874.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cfaa1df6.entry.js → p-0c56cffb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb01e3be.entry.js → p-0e238832.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc2c7fe0.entry.js → p-123a1aba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87348098.entry.js → p-12e6e578.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9f1ba315.entry.js → p-13147115.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22e1b417.entry.js → p-15a76a8e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0dd20aca.entry.js → p-1bc551b8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f296d898.entry.js → p-1c9725aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3d5bc6db.entry.js → p-1f2dd68a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ceb146b.entry.js → p-1fde1cdb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbbc1d8a.entry.js → p-2196e258.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-196a4af2.entry.js → p-21db9d95.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-22fedc93.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-48fd3fa1.entry.js → p-24294f52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5cfce4e.entry.js → p-2b26ea79.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e16973f2.entry.js → p-2b7ebb6d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e0a36fa.entry.js → p-2ca47503.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2e93c4d4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-734edf93.entry.js → p-2fb93eed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff5f76be.entry.js → p-3018628c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2967a9fe.entry.js → p-30439d93.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-32a8cff0.entry.js +1 -0
- package/dist/genesys-webcomponents/p-34f7ed93.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b8c555a5.entry.js → p-378abc43.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a3da574.entry.js → p-3cec7b3d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-76129360.entry.js → p-3e560a75.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff4032b7.entry.js → p-4345786a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-072069d4.entry.js → p-44923231.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3516719.entry.js → p-45366a7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8adf5bd9.entry.js → p-45814b8f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-46de3eee.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0511ea74.entry.js → p-4821aeea.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-585b35f9.entry.js → p-49274302.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-235390ad.entry.js → p-4b059747.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75f445a1.entry.js → p-4be22b77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3557fe16.entry.js → p-4bfa89c1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ffc5f7c.entry.js → p-4e5ac326.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4ecf9bd3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b38cbec4.entry.js → p-4ede43a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fdcd48cc.entry.js → p-5067610b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d47c8f4b.entry.js → p-50b9435c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b3be403.entry.js → p-52a9d575.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d8ec0443.js → p-56e6f5a4.js} +1 -1
- package/dist/genesys-webcomponents/p-58b9f336.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7b8b5614.entry.js → p-593d0833.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f26f38af.entry.js → p-59b9d5ba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-617c216c.entry.js → p-5a391947.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b4414360.entry.js → p-5c2e60b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f3315768.entry.js → p-5da71c8f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-92f61f75.entry.js → p-5dd27547.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a1f2b973.entry.js → p-5ed079fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5f844a6b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-61c4c05c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c4197c68.entry.js → p-6345eb0a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f7e01406.entry.js → p-63e68016.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3dcd80f7.entry.js → p-6955d8b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c7760a6.entry.js → p-6b0ed39c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d88e2ab.entry.js → p-6b0fef12.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6d99c5b6.entry.js +1 -0
- package/dist/genesys-webcomponents/p-71565253.entry.js +1 -0
- package/dist/genesys-webcomponents/p-74411ee1.entry.js +1 -0
- package/dist/genesys-webcomponents/p-7a1d01cb.js +2 -0
- package/dist/genesys-webcomponents/{p-1f6b2594.js → p-7a3b06ab.js} +1 -1
- package/dist/genesys-webcomponents/{p-d56eac15.entry.js → p-7a675633.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ed03525.entry.js → p-7c4cd09e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5dba97c8.entry.js → p-8190652b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-837e3eff.js +1 -0
- package/dist/genesys-webcomponents/{p-cc60367a.entry.js → p-849c5f57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3802f75e.entry.js → p-84a8f494.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5fb3291.entry.js → p-8e88f03e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d08bb94.entry.js → p-9145c1fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-939b6e89.js +1 -0
- package/dist/genesys-webcomponents/{p-bfa46fc4.entry.js → p-93aea175.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-987cd0fc.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9aa5845b.entry.js → p-9b46d528.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-03481479.entry.js → p-9de9efef.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9e727598.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-038ea6d9.entry.js → p-a4fc485c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7c391634.entry.js → p-a6a91398.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6e61de0.entry.js → p-a7db6ac4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-52aad620.js → p-a83860d3.js} +1 -1
- package/dist/genesys-webcomponents/{p-d0e9852a.js → p-a9504f06.js} +1 -1
- package/dist/genesys-webcomponents/{p-0672347e.entry.js → p-a9f65a5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41f05a68.entry.js → p-ab1a1ae3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6a5dfd60.entry.js → p-ac3832cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-963686db.entry.js → p-acd4b9fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-553fd4e4.entry.js → p-aee86fa4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cee64733.entry.js → p-af40e8d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3539dd94.entry.js → p-b144c2d3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-43245056.entry.js → p-b1554e98.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b1adb21d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a010db45.entry.js → p-b39e2de0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ba11086.entry.js → p-b4b4a9f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9576487.js → p-b6ea91fa.js} +1 -1
- package/dist/genesys-webcomponents/{p-6028c32a.entry.js → p-b8fe533f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b9c652da.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-76f67c80.entry.js → p-bbe14250.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5b67e24.entry.js → p-c1a7df32.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d64c6a5.js → p-c35bd7c8.js} +1 -1
- package/dist/genesys-webcomponents/{p-ad855412.entry.js → p-c45d63f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6b24898.entry.js → p-c4bf8326.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c5198639.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4fd9444f.entry.js → p-c5e41345.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6ca0137.entry.js → p-c826ae78.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce0f0eb7.entry.js → p-c8e86edc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ee4570d.entry.js → p-c90cf2a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e9323f2.entry.js → p-c93c0e57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-940e5dec.entry.js → p-d253bf31.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-59184fc8.entry.js → p-d94245e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-19016dbb.entry.js → p-db522341.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-575b89da.entry.js → p-dbb02903.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d7b95364.entry.js → p-ddfae9bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8f81725e.entry.js → p-e040d2b1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-73ed26a1.entry.js → p-e4cae0ee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1fa5e36d.entry.js → p-e523b0b8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c04c5da.entry.js → p-e6136416.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3b6fbb4.entry.js → p-e7ff2e6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ae8c4304.entry.js → p-ed6a7bd8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d01b852c.entry.js → p-efd89331.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f0429a61.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-db1c355f.entry.js → p-f0910962.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de2d7dc3.entry.js → p-f1068f15.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f29b10df.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fa7e4154.entry.js → p-f6a49f14.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d915144d.js → p-f77f86a9.js} +1 -1
- package/dist/genesys-webcomponents/{p-163a7345.entry.js → p-fd6d210c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a924828.entry.js → p-fdf84fc3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7fee69c7.entry.js → p-ff578d21.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ff9823fc.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-flyout-menu/gux-menu/gux-menu.common.d.ts +0 -1
- package/dist/types/components/beta/gux-table/gux-table-select-menu/gux-table-select-menu.d.ts +0 -1
- package/dist/types/components/beta/gux-table/gux-table.d.ts +8 -2
- package/dist/types/components/beta/gux-time-picker/gux-time-picker.d.ts +0 -1
- package/dist/types/components/stable/gux-action-button/gux-action-button.d.ts +0 -1
- package/dist/types/components/stable/gux-button-multi/gux-button-multi.d.ts +0 -1
- package/dist/types/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.d.ts +0 -1
- package/dist/types/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/dist/types/utils/dom/after-next-render.d.ts +1 -0
- package/package.json +4 -4
- package/dist/esm/after-next-render-8743ee2f.js +0 -5
- package/dist/genesys-webcomponents/p-088066aa.entry.js +0 -1
- package/dist/genesys-webcomponents/p-0dbc7bf2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-12932303.entry.js +0 -1
- package/dist/genesys-webcomponents/p-137719a1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1dc5389f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1e11d6e4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2a2315af.entry.js +0 -1
- package/dist/genesys-webcomponents/p-39a696d6.js +0 -2
- package/dist/genesys-webcomponents/p-3cee3c32.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3d3019e1.js +0 -1
- package/dist/genesys-webcomponents/p-4cd5a46e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5809ad17.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5caa2ca0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5df781f3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-5f5da942.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6e3596bd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-82eb8b00.js +0 -1
- package/dist/genesys-webcomponents/p-8f2acf87.entry.js +0 -1
- package/dist/genesys-webcomponents/p-969b72ac.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a02c3341.js +0 -1
- package/dist/genesys-webcomponents/p-ba496e59.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bf4bee50.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d239237c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-eea2e2ce.entry.js +0 -1
package/dist/collection/components/beta/gux-table/gux-table-select-menu/gux-table-select-menu.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
3
|
+
import { eventIsFrom } from '@utils/dom/event-is-from';
|
|
4
|
+
import { randomHTMLId } from '@utils/dom/random-html-id';
|
|
2
5
|
import { buildI18nForComponent } from '../../../../i18n';
|
|
3
|
-
import { eventIsFrom } from '../../../../utils/dom/event-is-from';
|
|
4
|
-
import { randomHTMLId } from '../../../../utils/dom/random-html-id';
|
|
5
6
|
import tableResources from '../i18n/en.json';
|
|
6
7
|
/**
|
|
7
8
|
* @slot default - Required slot for gux-all-row-select element
|
|
@@ -10,16 +11,15 @@ import tableResources from '../i18n/en.json';
|
|
|
10
11
|
export class GuxTableSelectMenu {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.dropdownOptionsButtonId = randomHTMLId('gux-table-select-menu');
|
|
13
|
-
this.moveFocusDelay = 100;
|
|
14
14
|
this.hasSelectMenuOptions = false;
|
|
15
15
|
this.dropdownDisabled = false;
|
|
16
16
|
this.popoverHidden = true;
|
|
17
17
|
}
|
|
18
18
|
focusFirstItemInPopupList() {
|
|
19
19
|
const listElement = this.root.querySelector('gux-list');
|
|
20
|
-
|
|
20
|
+
afterNextRenderTimeout(() => {
|
|
21
21
|
void (listElement === null || listElement === void 0 ? void 0 : listElement.guxFocusFirstItem());
|
|
22
|
-
}
|
|
22
|
+
});
|
|
23
23
|
}
|
|
24
24
|
async componentWillLoad() {
|
|
25
25
|
this.hasSelectMenuOptions = !!this.root.querySelector('[slot="select-menu-options"]');
|
|
@@ -10,6 +10,7 @@ export class GuxTable {
|
|
|
10
10
|
this.slotObserver = new MutationObserver(() => forceUpdate(this));
|
|
11
11
|
this.tableId = randomHTMLId('gux-table');
|
|
12
12
|
this.columnsWidths = {};
|
|
13
|
+
this.tableWidth = this.getElementComputedWidth(this.slottedTable);
|
|
13
14
|
/**
|
|
14
15
|
* Indicates that vertical scroll is presented for table
|
|
15
16
|
*/
|
|
@@ -39,7 +40,7 @@ export class GuxTable {
|
|
|
39
40
|
*/
|
|
40
41
|
this.objectTable = false;
|
|
41
42
|
}
|
|
42
|
-
/*******************************
|
|
43
|
+
/******************************* Lifecycle Hooks *******************************/
|
|
43
44
|
async componentWillLoad() {
|
|
44
45
|
trackComponent(this.root);
|
|
45
46
|
this.i18n = await buildI18nForComponent(this.root, tableResources);
|
|
@@ -57,6 +58,7 @@ export class GuxTable {
|
|
|
57
58
|
this.checkHorizontalScroll();
|
|
58
59
|
this.checkVerticalScroll();
|
|
59
60
|
this.updateScrollState();
|
|
61
|
+
this.scaleColumnWidths();
|
|
60
62
|
});
|
|
61
63
|
});
|
|
62
64
|
}
|
|
@@ -150,7 +152,7 @@ export class GuxTable {
|
|
|
150
152
|
});
|
|
151
153
|
this.updateSelectAllBoxState();
|
|
152
154
|
}
|
|
153
|
-
// Update the checked/
|
|
155
|
+
// Update the checked/indeterminate state of the select all checkbox
|
|
154
156
|
updateSelectAllBoxState() {
|
|
155
157
|
const selectAllCheckbox = this.selectAllCheckbox;
|
|
156
158
|
if (selectAllCheckbox) {
|
|
@@ -255,25 +257,56 @@ export class GuxTable {
|
|
|
255
257
|
const container = this.tableContainer;
|
|
256
258
|
return container ? container.offsetWidth - container.clientWidth : 0;
|
|
257
259
|
}
|
|
258
|
-
/*******************************
|
|
260
|
+
/******************************* Resizable Columns *******************************/
|
|
259
261
|
prepareResizableColumns() {
|
|
260
262
|
const styleElement = document.createElement('style');
|
|
261
263
|
styleElement.id = `${this.tableId}-resizable-styles`;
|
|
262
264
|
document.querySelector('head').appendChild(styleElement);
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
const columnWidths = this.calculateColumnWidths(this.tableColumns);
|
|
266
|
+
this.tableWidth = this.getElementComputedWidth(this.slottedTable);
|
|
267
|
+
columnWidths
|
|
268
|
+
// Exclude the last column to allow it to fill the remaining space naturally
|
|
269
|
+
.slice(0, -1)
|
|
270
|
+
.forEach(c => (this.columnsWidths[c.name] = c.width));
|
|
268
271
|
this.setResizableColumnsStyles();
|
|
269
272
|
}
|
|
273
|
+
/** Scale column pixel widths equal when a resize is observed */
|
|
274
|
+
scaleColumnWidths() {
|
|
275
|
+
if (!this.columnResizeState && this.resizableColumns) {
|
|
276
|
+
const oldColumnWidths = this.calculateColumnWidths(this.tableColumns);
|
|
277
|
+
const oldTableWidth = this.tableWidth;
|
|
278
|
+
const newTableWidth = this.getElementComputedWidth(this.slottedTable);
|
|
279
|
+
oldColumnWidths
|
|
280
|
+
.map(col => (Object.assign(Object.assign({}, col), { width: this.calcScaledColWidth(col.width, oldTableWidth, newTableWidth) })))
|
|
281
|
+
// Exclude the last column to allow it to fill the remaining space naturally
|
|
282
|
+
.slice(0, -1)
|
|
283
|
+
.forEach(c => (this.columnsWidths[c.name] = c.width));
|
|
284
|
+
this.tableWidth = newTableWidth;
|
|
285
|
+
this.setResizableColumnsStyles();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
calcScaledColWidth(colWidth, oldTableWidth, newTableWidth) {
|
|
289
|
+
const proposedWidth = Math.round((colWidth / oldTableWidth) * newTableWidth);
|
|
290
|
+
const minWidth = 1;
|
|
291
|
+
return Math.max(proposedWidth, minWidth);
|
|
292
|
+
}
|
|
270
293
|
updateResizeState(event) {
|
|
271
294
|
if (this.columnResizeState) {
|
|
295
|
+
const minimumWidth = 1;
|
|
272
296
|
const columnName = this.columnResizeState.resizableColumn.dataset.columnName;
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
|
|
297
|
+
const delta = event.pageX - this.columnResizeState.columnResizeMouseStartX;
|
|
298
|
+
const initialWidth = this.columnResizeState.resizableColumnInitialWidth;
|
|
299
|
+
const proposedWidth = initialWidth + delta;
|
|
300
|
+
const columnWidth = Math.max(proposedWidth, minimumWidth);
|
|
301
|
+
const columnWidths = this.calculateColumnWidths(this.tableColumns).map(c => {
|
|
302
|
+
if (c.name === columnName) {
|
|
303
|
+
return Object.assign(Object.assign({}, c), { width: columnWidth });
|
|
304
|
+
}
|
|
305
|
+
return c;
|
|
306
|
+
});
|
|
307
|
+
this.columnsWidths[columnName] = columnWidths.find(c => c.name === columnName).width;
|
|
276
308
|
this.setResizableColumnsStyles();
|
|
309
|
+
this.tableWidth = this.getElementComputedWidth(this.slottedTable);
|
|
277
310
|
}
|
|
278
311
|
else {
|
|
279
312
|
this.columnResizeHover = false;
|
|
@@ -308,7 +341,16 @@ export class GuxTable {
|
|
|
308
341
|
COL_RESIZE_HANDLE_WIDTH);
|
|
309
342
|
}
|
|
310
343
|
getElementComputedWidth(element) {
|
|
311
|
-
return
|
|
344
|
+
return (element.clientWidth -
|
|
345
|
+
parseInt(window.getComputedStyle(element).paddingLeft) -
|
|
346
|
+
parseInt(window.getComputedStyle(element).paddingRight));
|
|
347
|
+
}
|
|
348
|
+
/** Calculates column width minus padding in pixels */
|
|
349
|
+
calculateColumnWidths(columns) {
|
|
350
|
+
return columns.map(c => ({
|
|
351
|
+
name: c.dataset.columnName,
|
|
352
|
+
width: this.getElementComputedWidth(c)
|
|
353
|
+
}));
|
|
312
354
|
}
|
|
313
355
|
setResizableColumnsStyles() {
|
|
314
356
|
const styleElement = document.getElementById(`${this.tableId}-resizable-styles`);
|
|
@@ -9,15 +9,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { OnClickOutside } from '@utils/decorator/on-click-outside';
|
|
13
|
+
import simulateNativeEvent from '@utils/dom/simulate-native-event';
|
|
14
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
12
15
|
import { buildI18nForComponent } from '../../../i18n';
|
|
13
|
-
import translationResources from './i18n/en.json';
|
|
14
|
-
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
15
16
|
import { trackComponent } from '../../../usage-tracking';
|
|
16
|
-
import
|
|
17
|
+
import translationResources from './i18n/en.json';
|
|
17
18
|
import { getHourDisplayValue, getHoursPattern, getLocaleClockType, getMinuteDisplayValue, getMinutesPattern, getTimeDisplayValues, getValidValueHourChange, getValidValueMinuteChange, getValue, incrementHour, incrementMinute, isAm } from './gux-time-picker.service';
|
|
18
19
|
export class GuxTimePickerBeta {
|
|
19
20
|
constructor() {
|
|
20
|
-
this.moveFocusDelay = 100;
|
|
21
21
|
this.value = '00:00';
|
|
22
22
|
this.interval = 60;
|
|
23
23
|
this.disabled = false;
|
|
@@ -62,9 +62,9 @@ export class GuxTimePickerBeta {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
focusFirstItemInPopupList() {
|
|
65
|
-
|
|
65
|
+
afterNextRenderTimeout(() => {
|
|
66
66
|
void this.listElement.guxFocusFirstItem();
|
|
67
|
-
}
|
|
67
|
+
});
|
|
68
68
|
}
|
|
69
69
|
toggleDropdown() {
|
|
70
70
|
this.expanded = !this.expanded;
|
|
@@ -9,14 +9,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { OnClickOutside } from '@utils/decorator/on-click-outside';
|
|
13
|
+
import { whenEventIsFrom } from '@utils/dom/when-event-is-from';
|
|
14
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
12
15
|
import { trackComponent } from '../../../usage-tracking';
|
|
13
|
-
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
14
|
-
import { whenEventIsFrom } from '../../../utils/dom/when-event-is-from';
|
|
15
16
|
import { buildI18nForComponent } from '../../../i18n';
|
|
16
17
|
import defaultResources from './i18n/en.json';
|
|
17
18
|
export class GuxActionButton {
|
|
18
19
|
constructor() {
|
|
19
|
-
this.moveFocusDelay = 100;
|
|
20
20
|
/**
|
|
21
21
|
* The component button type
|
|
22
22
|
*/
|
|
@@ -94,14 +94,14 @@ export class GuxActionButton {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
focusPopupList() {
|
|
97
|
-
|
|
97
|
+
afterNextRenderTimeout(() => {
|
|
98
98
|
this.listElement.focus && this.listElement.focus();
|
|
99
|
-
}
|
|
99
|
+
});
|
|
100
100
|
}
|
|
101
101
|
focusFirstItemInPopupList() {
|
|
102
|
-
|
|
102
|
+
afterNextRenderTimeout(() => {
|
|
103
103
|
void this.listElement.guxFocusFirstItem();
|
|
104
|
-
}
|
|
104
|
+
});
|
|
105
105
|
}
|
|
106
106
|
onActionClick() {
|
|
107
107
|
if (!this.disabled) {
|
|
@@ -9,11 +9,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { onMutation } from '@utils/dom/on-mutation';
|
|
13
|
+
import { OnClickOutside } from '@utils/decorator/on-click-outside';
|
|
14
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
12
15
|
import { trackComponent } from '../../../usage-tracking';
|
|
13
16
|
import { buildI18nForComponent } from '../../../i18n';
|
|
14
17
|
import advancedDropDownResources from './i18n/en.json';
|
|
15
|
-
import { onMutation } from '../../../utils/dom/on-mutation';
|
|
16
|
-
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
17
18
|
export class GuxAdvancedDropdown {
|
|
18
19
|
constructor() {
|
|
19
20
|
/**
|
|
@@ -178,7 +179,7 @@ export class GuxAdvancedDropdown {
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
changeFocusToSearch() {
|
|
181
|
-
|
|
182
|
+
afterNextRenderTimeout(() => {
|
|
182
183
|
this.searchInput.focus();
|
|
183
184
|
});
|
|
184
185
|
}
|
|
@@ -9,15 +9,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { OnClickOutside } from '@utils/decorator/on-click-outside';
|
|
13
|
+
import { whenEventIsFrom } from '@utils/dom/when-event-is-from';
|
|
14
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
12
15
|
import { trackComponent } from '../../../usage-tracking';
|
|
13
|
-
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
14
|
-
import { whenEventIsFrom } from '../../../utils/dom/when-event-is-from';
|
|
15
16
|
/**
|
|
16
17
|
* @slot title - slot for icon and button text
|
|
17
18
|
*/
|
|
18
19
|
export class GuxButtonMulti {
|
|
19
20
|
constructor() {
|
|
20
|
-
this.moveFocusDelay = 100;
|
|
21
21
|
/**
|
|
22
22
|
* Disables the action button.
|
|
23
23
|
*/
|
|
@@ -89,14 +89,14 @@ export class GuxButtonMulti {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
focusPopupList() {
|
|
92
|
-
|
|
92
|
+
afterNextRenderTimeout(() => {
|
|
93
93
|
this.listElement.focus();
|
|
94
|
-
}
|
|
94
|
+
});
|
|
95
95
|
}
|
|
96
96
|
focusFirstItemInPopupList() {
|
|
97
|
-
|
|
97
|
+
afterNextRenderTimeout(() => {
|
|
98
98
|
void this.listElement.guxFocusFirstItem();
|
|
99
|
-
}
|
|
99
|
+
});
|
|
100
100
|
}
|
|
101
101
|
onListClick(event) {
|
|
102
102
|
whenEventIsFrom('gux-list-item', event, () => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
3
|
+
import { asIsoDateRange, asIsoDate, fromIsoDateRange, fromIsoDate } from '@utils/date/iso-dates';
|
|
4
|
+
import { addClassToElements, removeClassToElements } from '@utils/dom/manipulate-elements-classes';
|
|
2
5
|
import { trackComponent } from '../../../usage-tracking';
|
|
3
|
-
import { asIsoDateRange, asIsoDate, fromIsoDateRange, fromIsoDate } from '../../../utils/date/iso-dates';
|
|
4
|
-
import { addClassToElements, removeClassToElements } from '../../../utils/dom/manipulate-elements-classes';
|
|
5
6
|
import { getDesiredLocale, getStartOfWeek } from '../../../i18n';
|
|
6
7
|
export class GuxCalendar {
|
|
7
8
|
constructor() {
|
|
@@ -69,7 +70,7 @@ export class GuxCalendar {
|
|
|
69
70
|
this.previewValue = new Date(this.previewValue.getFullYear(), this.previewValue.getMonth() + increment, 15, // Don't use the day from the old value, because we'll skip a month on the 31st
|
|
70
71
|
0, 0, 0);
|
|
71
72
|
// Wait for render before focusing preview date
|
|
72
|
-
|
|
73
|
+
afterNextRenderTimeout(() => {
|
|
73
74
|
void this.focusPreviewDate();
|
|
74
75
|
});
|
|
75
76
|
}
|
|
@@ -269,7 +270,7 @@ export class GuxCalendar {
|
|
|
269
270
|
event.preventDefault();
|
|
270
271
|
this.previewValue = new Date(this.previewValue.setDate(this.previewValue.getDate() + 7));
|
|
271
272
|
this.onDateMouseEnter(this.previewValue);
|
|
272
|
-
|
|
273
|
+
afterNextRenderTimeout(() => {
|
|
273
274
|
void this.focusPreviewDate();
|
|
274
275
|
});
|
|
275
276
|
break;
|
|
@@ -277,7 +278,7 @@ export class GuxCalendar {
|
|
|
277
278
|
event.preventDefault();
|
|
278
279
|
this.previewValue = new Date(this.previewValue.setDate(this.previewValue.getDate() - 7));
|
|
279
280
|
this.onDateMouseEnter(this.previewValue);
|
|
280
|
-
|
|
281
|
+
afterNextRenderTimeout(() => {
|
|
281
282
|
void this.focusPreviewDate();
|
|
282
283
|
});
|
|
283
284
|
break;
|
|
@@ -285,7 +286,7 @@ export class GuxCalendar {
|
|
|
285
286
|
event.preventDefault();
|
|
286
287
|
this.previewValue = new Date(this.previewValue.setDate(this.previewValue.getDate() - 1));
|
|
287
288
|
this.onDateMouseEnter(this.previewValue);
|
|
288
|
-
|
|
289
|
+
afterNextRenderTimeout(() => {
|
|
289
290
|
void this.focusPreviewDate();
|
|
290
291
|
});
|
|
291
292
|
break;
|
|
@@ -293,7 +294,7 @@ export class GuxCalendar {
|
|
|
293
294
|
event.preventDefault();
|
|
294
295
|
this.previewValue = new Date(this.previewValue.setDate(this.previewValue.getDate() + 1));
|
|
295
296
|
this.onDateMouseEnter(this.previewValue);
|
|
296
|
-
|
|
297
|
+
afterNextRenderTimeout(() => {
|
|
297
298
|
void this.focusPreviewDate();
|
|
298
299
|
});
|
|
299
300
|
break;
|
|
@@ -9,14 +9,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { createPopper } from '@popperjs/core';
|
|
13
|
+
import { randomHTMLId } from '@utils/dom/random-html-id';
|
|
14
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
15
|
+
import { asIsoDateRange, asIsoDate, fromIsoDateRange, fromIsoDate } from '@utils/date/iso-dates';
|
|
16
|
+
import { OnClickOutside } from '@utils/decorator/on-click-outside';
|
|
12
17
|
import { trackComponent } from '../../../usage-tracking';
|
|
13
|
-
import { randomHTMLId } from '../../../utils/dom/random-html-id';
|
|
14
18
|
import { buildI18nForComponent } from '../../../i18n';
|
|
15
|
-
import { asIsoDateRange, asIsoDate, fromIsoDateRange, fromIsoDate } from '../../../utils/date/iso-dates';
|
|
16
|
-
import { OnClickOutside } from '../../../utils/decorator/on-click-outside';
|
|
17
19
|
import translationResources from './i18n/en.json';
|
|
18
20
|
import { getCalendarLabels, isOutOfBoundsDate, incrementDay, incrementMonth, incrementYear, getFormattedDate, getIntervalLetter, getFormatSeparator, getPreviousIntervalRange, getNextIntervalRange, getIntervalOrder, getIntervalRange } from './gux-datepicker.service';
|
|
19
|
-
import { createPopper } from '@popperjs/core';
|
|
20
21
|
export class GuxDatepicker {
|
|
21
22
|
constructor() {
|
|
22
23
|
this.yearFormat = 'yyyy';
|
|
@@ -158,9 +159,9 @@ export class GuxDatepicker {
|
|
|
158
159
|
case ' ': {
|
|
159
160
|
this.active = false;
|
|
160
161
|
const button = this.root.shadowRoot.querySelector('.gux-calendar-toggle-button');
|
|
161
|
-
|
|
162
|
+
afterNextRenderTimeout(() => {
|
|
162
163
|
button.focus();
|
|
163
|
-
}
|
|
164
|
+
});
|
|
164
165
|
break;
|
|
165
166
|
}
|
|
166
167
|
case 'Tab':
|
|
@@ -190,7 +191,7 @@ export class GuxDatepicker {
|
|
|
190
191
|
this.focusedField = this.getInputFieldFromEvent(event);
|
|
191
192
|
if (!this.isSelectingRangeWithMouse) {
|
|
192
193
|
// When focusing the input the Safari browser will fight for control of the cursor unless it is done asynchronously
|
|
193
|
-
|
|
194
|
+
afterNextRenderTimeout(() => this.setRange());
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
197
|
onInputFocusOut() {
|
|
@@ -386,10 +387,9 @@ export class GuxDatepicker {
|
|
|
386
387
|
toggleCalendar() {
|
|
387
388
|
this.active = !this.active;
|
|
388
389
|
if (this.active) {
|
|
389
|
-
|
|
390
|
-
setTimeout(() => {
|
|
390
|
+
afterNextRenderTimeout(() => {
|
|
391
391
|
void this.calendarElement.focusPreviewDate();
|
|
392
|
-
}
|
|
392
|
+
});
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
setIntervalRange(intervalRange) {
|
|
@@ -9,6 +9,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { h, readTask, writeTask } from '@stencil/core';
|
|
12
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
12
13
|
import { buildI18nForComponent } from '../../../../i18n';
|
|
13
14
|
import { OnMutation } from '../../../../utils/decorator/on-mutation';
|
|
14
15
|
import tabsResources from '../i18n/en.json';
|
|
@@ -185,7 +186,7 @@ export class GuxTabList {
|
|
|
185
186
|
subtree: true
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
+
afterNextRenderTimeout(() => {
|
|
189
190
|
this.checkForScrollbarHideOrShow();
|
|
190
191
|
}, 500);
|
|
191
192
|
}
|
package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h, writeTask } from '@stencil/core';
|
|
2
|
+
import { eventIsFrom } from '@utils/dom/event-is-from';
|
|
3
|
+
import { randomHTMLId } from '@utils/dom/random-html-id';
|
|
4
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
2
5
|
import { buildI18nForComponent } from '../../../../i18n';
|
|
3
|
-
import { eventIsFrom } from '../../../../utils/dom/event-is-from';
|
|
4
|
-
import { randomHTMLId } from '../../../../utils/dom/random-html-id';
|
|
5
6
|
import tabsResources from '../i18n/en.json';
|
|
6
7
|
/**
|
|
7
8
|
* @slot default - gux-icon (optional) and text node (required)
|
|
@@ -10,7 +11,6 @@ import tabsResources from '../i18n/en.json';
|
|
|
10
11
|
export class GuxTabAdvanced {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.dropdownOptionsButtonId = randomHTMLId();
|
|
13
|
-
this.moveFocusDelay = 100;
|
|
14
14
|
this.tabTitle = '';
|
|
15
15
|
this.focusinFromClick = false;
|
|
16
16
|
/**
|
|
@@ -49,10 +49,10 @@ export class GuxTabAdvanced {
|
|
|
49
49
|
if (eventIsFrom('gux-list[slot="dropdown-options"]', event)) {
|
|
50
50
|
event.stopPropagation();
|
|
51
51
|
this.popoverHidden = true;
|
|
52
|
-
|
|
52
|
+
afterNextRenderTimeout(() => {
|
|
53
53
|
var _a;
|
|
54
54
|
(_a = this.tabOptionsButtonElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
55
|
-
}
|
|
55
|
+
});
|
|
56
56
|
}
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
@@ -93,9 +93,9 @@ export class GuxTabAdvanced {
|
|
|
93
93
|
}
|
|
94
94
|
focusFirstItemInPopupList() {
|
|
95
95
|
const listElement = this.root.querySelector('gux-list[slot="dropdown-options"]');
|
|
96
|
-
|
|
96
|
+
afterNextRenderTimeout(() => {
|
|
97
97
|
void (listElement === null || listElement === void 0 ? void 0 : listElement.guxFocusFirstItem());
|
|
98
|
-
}
|
|
98
|
+
});
|
|
99
99
|
}
|
|
100
100
|
toggleOptions() {
|
|
101
101
|
this.popoverHidden = !this.popoverHidden;
|
|
@@ -103,9 +103,9 @@ export class GuxTabAdvanced {
|
|
|
103
103
|
onSelectDropdownOption(e) {
|
|
104
104
|
this.popoverHidden = true;
|
|
105
105
|
e.stopPropagation();
|
|
106
|
-
|
|
106
|
+
afterNextRenderTimeout(() => {
|
|
107
107
|
this.tabOptionsButtonElement.focus();
|
|
108
|
-
}
|
|
108
|
+
});
|
|
109
109
|
}
|
|
110
110
|
async componentWillLoad() {
|
|
111
111
|
this.i18n = await buildI18nForComponent(this.root, tabsResources, 'gux-tabs-advanced');
|
|
@@ -10,13 +10,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
};
|
|
11
11
|
import { h, readTask, writeTask } from '@stencil/core';
|
|
12
12
|
import Sortable from 'sortablejs';
|
|
13
|
-
import { OnMutation } from '
|
|
13
|
+
import { OnMutation } from '@utils/decorator/on-mutation';
|
|
14
|
+
import { eventIsFrom } from '@utils/dom/event-is-from';
|
|
15
|
+
import { afterNextRenderTimeout } from '@utils/dom/after-next-render';
|
|
14
16
|
import { buildI18nForComponent } from '../../../../i18n';
|
|
15
|
-
import { eventIsFrom } from '../../../../utils/dom/event-is-from';
|
|
16
17
|
import tabsResources from '../i18n/en.json';
|
|
17
18
|
export class GuxTabAdvancedList {
|
|
18
19
|
constructor() {
|
|
19
|
-
this.moveFocusDelay = 100;
|
|
20
20
|
/**
|
|
21
21
|
* Enable new tab button
|
|
22
22
|
*/
|
|
@@ -166,9 +166,9 @@ export class GuxTabAdvancedList {
|
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
this.focusTab(this.initialSortIndex);
|
|
169
|
-
|
|
169
|
+
afterNextRenderTimeout(() => {
|
|
170
170
|
this.focusTab(this.initialSortIndex);
|
|
171
|
-
}
|
|
171
|
+
});
|
|
172
172
|
break;
|
|
173
173
|
case 'Enter':
|
|
174
174
|
if (this.keyboardSort) {
|
|
@@ -390,7 +390,7 @@ export class GuxTabAdvancedList {
|
|
|
390
390
|
subtree: true
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
afterNextRenderTimeout(() => {
|
|
394
394
|
this.checkForScrollbarHideOrShow();
|
|
395
395
|
}, 500);
|
|
396
396
|
}
|
package/dist/deploy-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-components",
|
|
3
|
-
"version": "3.34.
|
|
3
|
+
"version": "3.34.3",
|
|
4
4
|
"ecosystem": "pc",
|
|
5
5
|
"team": "Core UI",
|
|
6
6
|
"indexFiles": [],
|
|
7
|
-
"build": "
|
|
8
|
-
"buildDate": "2022-10-
|
|
7
|
+
"build": "215",
|
|
8
|
+
"buildDate": "2022-10-06T09:11:57.913828Z"
|
|
9
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function afterNextRender(callback) {
|
|
2
|
+
requestAnimationFrame(() => requestAnimationFrame(callback));
|
|
3
|
+
}
|
|
4
|
+
function afterNextRenderTimeout(callback, delay = 100) {
|
|
5
|
+
return setTimeout(callback, delay);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { afterNextRenderTimeout as a, afterNextRender as b };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-be334191.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.18.
|
|
4
|
+
Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-be334191.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-f659944d.js';
|
|
3
3
|
|
|
4
4
|
function getSectionByName(slotName, sections) {
|
|
5
5
|
return sections.find(section => section.slotName === slotName);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-be334191.js';
|
|
2
2
|
import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
|
|
3
3
|
import { l as logError } from './log-error-b1a1a086.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-be334191.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-f659944d.js';
|
|
3
3
|
|
|
4
4
|
const guxAccordionCss = "gux-accordion{-custom-noop:noop}";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import { t as trackComponent } from './usage-tracking-
|
|
3
|
-
import { O as OnClickOutside } from './on-click-outside-
|
|
4
|
-
import { b as buildI18nForComponent } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-be334191.js';
|
|
2
|
+
import { t as trackComponent } from './usage-tracking-f659944d.js';
|
|
3
|
+
import { O as OnClickOutside } from './on-click-outside-d48a73bb.js';
|
|
4
|
+
import { b as buildI18nForComponent } from './index-a108e8ae.js';
|
|
5
5
|
import './get-closest-element-1597503c.js';
|
|
6
6
|
|
|
7
7
|
const actionButtonDropdown = "Dropdown for {buttonTitle}";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { O as OnClickOutside } from './on-click-outside-b20ff612.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-be334191.js';
|
|
2
|
+
import { O as OnClickOutside } from './on-click-outside-d48a73bb.js';
|
|
4
3
|
import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
|
|
5
|
-
import {
|
|
4
|
+
import { a as afterNextRenderTimeout } from './after-next-render-ed0f7dcd.js';
|
|
5
|
+
import { t as trackComponent } from './usage-tracking-f659944d.js';
|
|
6
|
+
import { b as buildI18nForComponent } from './index-a108e8ae.js';
|
|
6
7
|
import './get-closest-element-1597503c.js';
|
|
7
8
|
|
|
8
9
|
const actionButtonDropdown = "Dropdown for {buttonTitle}";
|
|
@@ -28,7 +29,6 @@ const GuxActionButton = class {
|
|
|
28
29
|
this.open = createEvent(this, "open", 7);
|
|
29
30
|
this.close = createEvent(this, "close", 7);
|
|
30
31
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
31
|
-
this.moveFocusDelay = 100;
|
|
32
32
|
/**
|
|
33
33
|
* The component button type
|
|
34
34
|
*/
|
|
@@ -106,14 +106,14 @@ const GuxActionButton = class {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
focusPopupList() {
|
|
109
|
-
|
|
109
|
+
afterNextRenderTimeout(() => {
|
|
110
110
|
this.listElement.focus && this.listElement.focus();
|
|
111
|
-
}
|
|
111
|
+
});
|
|
112
112
|
}
|
|
113
113
|
focusFirstItemInPopupList() {
|
|
114
|
-
|
|
114
|
+
afterNextRenderTimeout(() => {
|
|
115
115
|
void this.listElement.guxFocusFirstItem();
|
|
116
|
-
}
|
|
116
|
+
});
|
|
117
117
|
}
|
|
118
118
|
onActionClick() {
|
|
119
119
|
if (!this.disabled) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-be334191.js';
|
|
2
2
|
|
|
3
3
|
const guxActionItemCss = ":host{outline:none}.gux-action-item{display:flex;width:100%;height:max-content;padding:0 16px;font-family:inherit;font-size:inherit;line-height:32px;text-align:left;word-wrap:break-word;cursor:pointer;background-color:inherit;border:none}.gux-action-item:focus-within:not([disabled]),.gux-action-item:active:not([disabled]),.gux-action-item:hover:not([disabled]){color:#fdfdfd;background:#2a60c8;outline:none}.gux-action-item .gux-text{width:100%}.gux-action-item.gux-disabled{pointer-events:none;cursor:default}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-be334191.js';
|
|
2
2
|
|
|
3
3
|
const guxActionListDividerCss = ":host{position:relative;display:flex;height:1px;padding:0;margin:16px 0;line-height:32px;pointer-events:none;cursor:pointer;background-color:#c8cfda}";
|
|
4
4
|
|