@vonage/vivid 5.11.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/definition19.cjs +63 -44
- package/bundled/definition19.js +322 -246
- package/bundled/definition2.cjs +1 -1
- package/bundled/definition2.js +1 -1
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +16 -13
- package/bundled/slottable-request.cjs +4 -4
- package/bundled/slottable-request.js +70 -70
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/custom-elements.json +2505 -2445
- package/data-grid/definition.cjs +37 -13
- package/data-grid/definition.js +37 -13
- package/data-grid/index.cjs +38 -32
- package/data-grid/index.js +201 -178
- package/icon/definition.cjs +1 -1
- package/icon/definition.js +1 -1
- package/lib/accordion/accordion.template.d.ts +2 -2
- package/lib/accordion/index.d.ts +1 -0
- package/lib/accordion-item/accordion-item.d.ts +98 -67
- package/lib/accordion-item/accordion-item.template.d.ts +3 -3
- package/lib/accordion-item/index.d.ts +1 -0
- package/lib/action-group/action-group.d.ts +95 -64
- package/lib/action-group/action-group.template.d.ts +2 -2
- package/lib/action-group/index.d.ts +1 -0
- package/lib/alert/alert.d.ts +192 -130
- package/lib/alert/alert.template.d.ts +3 -3
- package/lib/alert/index.d.ts +1 -0
- package/lib/audio-player/audio-player.d.ts +97 -67
- package/lib/audio-player/audio-player.template.d.ts +2 -2
- package/lib/audio-player/index.d.ts +1 -0
- package/lib/avatar/avatar.d.ts +105 -117
- package/lib/avatar/avatar.template.d.ts +1 -1
- package/lib/avatar/index.d.ts +1 -0
- package/lib/badge/badge.d.ts +98 -67
- package/lib/badge/badge.template.d.ts +3 -3
- package/lib/badge/index.d.ts +1 -0
- package/lib/banner/banner.d.ts +286 -193
- package/lib/banner/banner.template.d.ts +3 -3
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb/breadcrumb.d.ts +93 -62
- package/lib/breadcrumb/breadcrumb.template.d.ts +2 -2
- package/lib/breadcrumb/index.d.ts +1 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +103 -115
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +3 -3
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +297 -247
- package/lib/button/button.template.d.ts +3 -3
- package/lib/button/index.d.ts +1 -0
- package/lib/calendar/calendar.d.ts +2 -2
- package/lib/calendar/calendar.template.d.ts +2 -2
- package/lib/calendar/helpers/calendar.event-context.d.ts +1 -1
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar-event/calendar-event.d.ts +95 -64
- package/lib/calendar-event/calendar-event.template.d.ts +2 -2
- package/lib/calendar-event/index.d.ts +1 -0
- package/lib/card/card.d.ts +105 -117
- package/lib/card/card.template.d.ts +2 -2
- package/lib/card/index.d.ts +1 -0
- package/lib/checkbox/checkbox.d.ts +628 -437
- package/lib/checkbox/checkbox.template.d.ts +3 -3
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/color-picker/color-picker.d.ts +726 -506
- package/lib/color-picker/color-picker.template.d.ts +2 -2
- package/lib/color-picker/definition.d.ts +1 -1
- package/lib/color-picker/index.d.ts +1 -0
- package/lib/combobox/combobox.d.ts +741 -520
- package/lib/combobox/combobox.template.d.ts +3 -3
- package/lib/combobox/index.d.ts +1 -0
- package/lib/contextual-help/contextual-help.d.ts +1 -1
- package/lib/contextual-help/contextual-help.template.d.ts +3 -3
- package/lib/contextual-help/index.d.ts +1 -0
- package/lib/country/country-code-to-flag-icon.d.ts +1 -1
- package/lib/country/country.template.d.ts +3 -3
- package/lib/country/index.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +190 -128
- package/lib/data-grid/data-grid-cell.template.d.ts +3 -3
- package/lib/data-grid/data-grid-row.d.ts +95 -64
- package/lib/data-grid/data-grid-row.template.d.ts +3 -3
- package/lib/data-grid/data-grid.d.ts +1 -1
- package/lib/data-grid/data-grid.template.d.ts +3 -3
- package/lib/data-grid/index.d.ts +1 -0
- package/lib/data-grid/locale.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +1045 -792
- package/lib/date-picker/date-picker.template.d.ts +2 -2
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-range-picker/date-range-picker.d.ts +538 -411
- package/lib/date-range-picker/date-range-picker.template.d.ts +2 -2
- package/lib/date-range-picker/index.d.ts +1 -0
- package/lib/date-time-picker/date-time-picker.d.ts +1026 -772
- package/lib/date-time-picker/date-time-picker.template.d.ts +2 -2
- package/lib/date-time-picker/index.d.ts +1 -0
- package/lib/dial-pad/dial-pad.d.ts +95 -64
- package/lib/dial-pad/dial-pad.template.d.ts +2 -2
- package/lib/dial-pad/index.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +189 -127
- package/lib/dialog/dialog.template.d.ts +3 -3
- package/lib/dialog/index.d.ts +1 -0
- package/lib/divider/divider.d.ts +94 -63
- package/lib/divider/divider.template.d.ts +2 -2
- package/lib/divider/index.d.ts +1 -0
- package/lib/elevation/elevation.template.d.ts +2 -2
- package/lib/elevation/index.d.ts +1 -0
- package/lib/empty-state/empty-state.d.ts +2 -2
- package/lib/empty-state/empty-state.template.d.ts +3 -3
- package/lib/empty-state/index.d.ts +1 -0
- package/lib/fab/fab.d.ts +98 -67
- package/lib/fab/fab.template.d.ts +3 -3
- package/lib/fab/index.d.ts +1 -0
- package/lib/file-picker/__mocks__/data-transfer.d.ts +21 -0
- package/lib/file-picker/file-picker.d.ts +736 -515
- package/lib/file-picker/file-picker.template.d.ts +3 -3
- package/lib/file-picker/index.d.ts +1 -0
- package/lib/header/header.d.ts +93 -62
- package/lib/header/header.template.d.ts +3 -3
- package/lib/header/index.d.ts +1 -0
- package/lib/icon/icon.d.ts +2 -2
- package/lib/icon/icon.template.d.ts +3 -3
- package/lib/icon/index.d.ts +1 -0
- package/lib/layout/index.d.ts +1 -0
- package/lib/layout/layout.d.ts +2 -2
- package/lib/layout/layout.template.d.ts +2 -2
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/menu.d.ts +195 -133
- package/lib/menu/menu.template.d.ts +3 -3
- package/lib/menu-item/index.d.ts +1 -0
- package/lib/menu-item/menu-item.d.ts +191 -129
- package/lib/menu-item/menu-item.template.d.ts +2 -2
- package/lib/nav/index.d.ts +1 -0
- package/lib/nav/nav.d.ts +93 -62
- package/lib/nav/nav.template.d.ts +2 -2
- package/lib/nav-disclosure/index.d.ts +1 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +191 -129
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +3 -3
- package/lib/nav-item/index.d.ts +1 -0
- package/lib/nav-item/nav-item.d.ts +200 -181
- package/lib/nav-item/nav-item.template.d.ts +3 -3
- package/lib/note/index.d.ts +1 -0
- package/lib/note/note.d.ts +97 -66
- package/lib/note/note.template.d.ts +3 -3
- package/lib/number-field/index.d.ts +1 -0
- package/lib/number-field/number-field.d.ts +929 -646
- package/lib/number-field/number-field.template.d.ts +3 -3
- package/lib/option/index.d.ts +1 -0
- package/lib/option/option.d.ts +191 -129
- package/lib/option/option.template.d.ts +3 -3
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +98 -67
- package/lib/pagination/pagination.template.d.ts +3 -3
- package/lib/popover/definition.d.ts +1 -1
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/popover.d.ts +190 -128
- package/lib/popover/popover.template.d.ts +2 -2
- package/lib/popup/index.d.ts +1 -0
- package/lib/popup/popup.d.ts +1 -1
- package/lib/popup/popup.template.d.ts +3 -3
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/progress.d.ts +94 -63
- package/lib/progress/progress.template.d.ts +2 -2
- package/lib/progress-ring/index.d.ts +1 -0
- package/lib/progress-ring/progress-ring.d.ts +94 -63
- package/lib/progress-ring/progress-ring.template.d.ts +2 -2
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/radio.d.ts +340 -242
- package/lib/radio/radio.template.d.ts +2 -2
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/radio-group.d.ts +99 -68
- package/lib/radio-group/radio-group.template.d.ts +3 -3
- package/lib/range-slider/index.d.ts +1 -0
- package/lib/range-slider/range-slider.d.ts +313 -218
- package/lib/range-slider/range-slider.template.d.ts +3 -3
- package/lib/rich-text-editor/definition.d.ts +1 -1
- package/lib/rich-text-editor/index.d.ts +1 -0
- package/lib/rich-text-editor/popover.d.ts +1 -1
- package/lib/rich-text-editor/rich-text-editor.d.ts +99 -68
- package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
- package/lib/rich-text-editor/rte/__tests__/async-generator.d.ts +5 -0
- package/lib/rich-text-editor/rte/__tests__/doc-factories.d.ts +106 -0
- package/lib/rich-text-editor/rte/__tests__/font-sizes.d.ts +2 -0
- package/lib/rich-text-editor/rte/__tests__/promise.d.ts +5 -0
- package/lib/rich-text-editor/rte/__tests__/test-utils.d.ts +68 -0
- package/lib/rich-text-editor/rte/config.d.ts +4 -4
- package/lib/rich-text-editor/rte/feature.d.ts +10 -12
- package/lib/rich-text-editor/rte/features/alignment.d.ts +19 -0
- package/lib/rich-text-editor/rte/features/atom.d.ts +9 -0
- package/lib/rich-text-editor/rte/features/base.d.ts +33 -0
- package/lib/rich-text-editor/rte/features/bold.d.ts +17 -0
- package/lib/rich-text-editor/rte/features/drop-handler.d.ts +21 -0
- package/lib/rich-text-editor/rte/features/file-handler.d.ts +25 -0
- package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +46 -0
- package/lib/rich-text-editor/rte/features/hard-break.d.ts +10 -0
- package/lib/rich-text-editor/rte/features/inline-image.d.ts +43 -0
- package/lib/rich-text-editor/rte/features/input-rule.d.ts +10 -0
- package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +6 -6
- package/lib/rich-text-editor/rte/features/internal/core.d.ts +37 -0
- package/lib/rich-text-editor/rte/features/internal/cursor-fix.d.ts +16 -0
- package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/internal/history.d.ts +2 -2
- package/lib/rich-text-editor/rte/features/internal/input-rules.d.ts +4 -4
- package/lib/rich-text-editor/rte/features/italic.d.ts +17 -0
- package/lib/rich-text-editor/rte/features/link.d.ts +33 -0
- package/lib/rich-text-editor/rte/features/list.d.ts +24 -0
- package/lib/rich-text-editor/rte/features/monospace.d.ts +22 -0
- package/lib/rich-text-editor/rte/features/placeholder.d.ts +23 -0
- package/lib/rich-text-editor/rte/features/strikethrough.d.ts +17 -0
- package/lib/rich-text-editor/rte/features/suggest.d.ts +14 -0
- package/lib/rich-text-editor/rte/features/text-block-picker.d.ts +18 -0
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +31 -0
- package/lib/rich-text-editor/rte/features/toolbar-button.d.ts +13 -0
- package/lib/rich-text-editor/rte/features/toolbar.d.ts +37 -0
- package/lib/rich-text-editor/rte/features/underline.d.ts +17 -0
- package/lib/rich-text-editor/rte/html-parser.d.ts +3 -3
- package/lib/rich-text-editor/rte/html-serializer.d.ts +3 -3
- package/lib/rich-text-editor/rte/instance.d.ts +8 -7
- package/lib/rich-text-editor/rte/public-interface.d.ts +13 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -2
- package/lib/rich-text-editor/rte/utils/feature-state.d.ts +1 -1
- package/lib/rich-text-editor/rte/utils/text-before-cursor.d.ts +1 -1
- package/lib/rich-text-editor/rte/utils/ui.d.ts +8 -8
- package/lib/rich-text-editor/rte/view.d.ts +3 -6
- package/lib/rich-text-view/definition.d.ts +1 -1
- package/lib/rich-text-view/index.d.ts +2 -0
- package/lib/rich-text-view/rich-text-view.d.ts +1 -1
- package/lib/rich-text-view/rich-text-view.template.d.ts +2 -2
- package/lib/searchable-select/index.d.ts +1 -0
- package/lib/searchable-select/option-tag.d.ts +96 -65
- package/lib/searchable-select/option-tag.template.d.ts +3 -3
- package/lib/searchable-select/searchable-select.d.ts +929 -646
- package/lib/searchable-select/searchable-select.template.d.ts +3 -3
- package/lib/select/index.d.ts +1 -0
- package/lib/select/locale.d.ts +3 -0
- package/lib/select/select.d.ts +1240 -579
- package/lib/select/select.template.d.ts +3 -3
- package/lib/selectable-box/index.d.ts +1 -0
- package/lib/selectable-box/selectable-box.d.ts +94 -63
- package/lib/selectable-box/selectable-box.template.d.ts +2 -2
- package/lib/side-drawer/index.d.ts +1 -0
- package/lib/side-drawer/side-drawer.template.d.ts +2 -2
- package/lib/simple-color-picker/definition.d.ts +1 -1
- package/lib/simple-color-picker/index.d.ts +1 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +216 -153
- package/lib/simple-color-picker/simple-color-picker.template.d.ts +2 -2
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/slider.d.ts +299 -205
- package/lib/slider/slider.template.d.ts +4 -4
- package/lib/split-button/index.d.ts +1 -0
- package/lib/split-button/split-button.d.ts +288 -195
- package/lib/split-button/split-button.template.d.ts +3 -3
- package/lib/status/index.d.ts +1 -0
- package/lib/status/status.d.ts +98 -67
- package/lib/status/status.template.d.ts +3 -3
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/switch.d.ts +207 -142
- package/lib/switch/switch.template.d.ts +2 -2
- package/lib/tab/index.d.ts +1 -0
- package/lib/tab/tab.d.ts +288 -195
- package/lib/tab/tab.template.d.ts +3 -3
- package/lib/tab-panel/index.d.ts +1 -0
- package/lib/tab-panel/tab-panel.d.ts +93 -62
- package/lib/tab-panel/tab-panel.template.d.ts +2 -2
- package/lib/table/index.d.ts +1 -0
- package/lib/table/table-body.template.d.ts +3 -3
- package/lib/table/table-cell.d.ts +93 -62
- package/lib/table/table-cell.template.d.ts +3 -3
- package/lib/table/table-head.template.d.ts +3 -3
- package/lib/table/table-header-cell.d.ts +93 -62
- package/lib/table/table-header-cell.template.d.ts +3 -3
- package/lib/table/table-row.d.ts +93 -62
- package/lib/table/table-row.template.d.ts +3 -3
- package/lib/table/table.template.d.ts +3 -3
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +2 -2
- package/lib/tabs/tabs.template.d.ts +2 -2
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/tag.d.ts +288 -195
- package/lib/tag/tag.template.d.ts +3 -3
- package/lib/tag-group/index.d.ts +1 -0
- package/lib/tag-group/tag-group.d.ts +93 -62
- package/lib/tag-group/tag-group.template.d.ts +2 -2
- package/lib/tag-name-map.d.ts +1 -1
- package/lib/text-area/index.d.ts +1 -0
- package/lib/text-area/text-area.d.ts +832 -581
- package/lib/text-area/text-area.template.d.ts +3 -3
- package/lib/text-field/index.d.ts +1 -0
- package/lib/text-field/text-field.d.ts +931 -649
- package/lib/text-field/text-field.template.d.ts +3 -3
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/time-picker.d.ts +486 -359
- package/lib/time-picker/time-picker.template.d.ts +3 -3
- package/lib/toggletip/index.d.ts +1 -0
- package/lib/toggletip/toggletip.d.ts +197 -135
- package/lib/toggletip/toggletip.template.d.ts +3 -3
- package/lib/tooltip/index.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +101 -70
- package/lib/tooltip/tooltip.template.d.ts +3 -3
- package/lib/tree-item/index.d.ts +1 -0
- package/lib/tree-item/tree-item.d.ts +190 -128
- package/lib/tree-item/tree-item.template.d.ts +3 -3
- package/lib/tree-view/index.d.ts +1 -0
- package/lib/tree-view/tree-view.d.ts +93 -62
- package/lib/tree-view/tree-view.template.d.ts +2 -2
- package/lib/video-player/index.d.ts +1 -0
- package/lib/video-player/video-player.d.ts +96 -65
- package/lib/video-player/video-player.template.d.ts +1 -1
- package/lib/video-player/vivid-video-svg.d.ts +1 -1
- package/lib/visually-hidden/definition.d.ts +1 -1
- package/lib/visually-hidden/index.d.ts +1 -0
- package/lib/visually-hidden/visually-hidden.template.d.ts +1 -1
- package/locales/de-DE.cjs +3 -0
- package/locales/de-DE.d.ts +1 -1
- package/locales/de-DE.js +3 -0
- package/locales/en-GB.cjs +3 -0
- package/locales/en-GB.d.ts +1 -1
- package/locales/en-GB.js +3 -0
- package/locales/en-US.cjs +3 -0
- package/locales/en-US.d.ts +1 -1
- package/locales/en-US.js +3 -0
- package/locales/ja-JP.cjs +3 -0
- package/locales/ja-JP.d.ts +1 -1
- package/locales/ja-JP.js +3 -0
- package/locales/zh-CN.cjs +3 -0
- package/locales/zh-CN.d.ts +1 -1
- package/locales/zh-CN.js +3 -0
- package/package.json +5 -5
- package/rich-text-editor/definition.cjs +2 -4
- package/rich-text-editor/definition.js +3 -5
- package/rich-text-editor/index.cjs +7 -7
- package/rich-text-editor/index.js +975 -977
- package/rich-text-view/index.js +1 -1
- package/select/definition.cjs +104 -5
- package/select/definition.js +104 -5
- package/shared/aria/aria-change-subscription.d.ts +1 -1
- package/shared/aria/aria-mixin.d.ts +94 -63
- package/shared/aria/attribute-removal.d.ts +1 -1
- package/shared/aria/delegate-aria-behavior.d.ts +2 -2
- package/shared/aria/delegates-aria.d.ts +96 -65
- package/shared/aria/host-semantics-behavior.d.ts +2 -2
- package/shared/aria/host-semantics.d.ts +97 -66
- package/shared/color-picker/base-color-picker.d.ts +114 -82
- package/shared/datetime/dateRange.d.ts +1 -1
- package/shared/datetime/dateTimeStr.d.ts +4 -4
- package/shared/datetime/month.d.ts +1 -1
- package/shared/datetime/presentationDate.d.ts +2 -2
- package/shared/datetime/presentationDateRange.d.ts +2 -2
- package/shared/datetime/presentationDateTime.d.ts +2 -2
- package/shared/datetime/presentationTime.d.ts +1 -1
- package/shared/datetime/year.d.ts +1 -1
- package/shared/deprecation/replaced-props.d.ts +95 -60
- package/shared/design-system/createRegisterFunction.d.ts +1 -1
- package/shared/design-system/defineVividComponent.d.ts +1 -1
- package/shared/feedback/feedback-message.d.ts +96 -65
- package/shared/feedback/mixins.d.ts +200 -138
- package/shared/foundation/button/button.d.ts +202 -139
- package/shared/foundation/button/button.template.d.ts +2 -2
- package/shared/foundation/form-associated/form-associated.d.ts +213 -147
- package/shared/foundation/listbox/listbox.d.ts +1 -1
- package/shared/foundation/test-utilities/fixture.d.ts +18 -0
- package/shared/foundation/vivid-element/vivid-element.d.ts +194 -131
- package/shared/localization/Locale.d.ts +31 -29
- package/shared/localization/index.d.ts +1 -1
- package/shared/patterns/affix.d.ts +195 -133
- package/shared/patterns/anchored.d.ts +202 -140
- package/shared/patterns/char-count/char-count.d.ts +99 -68
- package/shared/patterns/chevron.d.ts +2 -2
- package/shared/patterns/form-elements/form-element.d.ts +114 -488
- package/shared/patterns/form-elements/with-contextual-help.d.ts +117 -903
- package/shared/patterns/form-elements/with-error-text.d.ts +120 -906
- package/shared/patterns/form-elements/with-success-text.d.ts +97 -66
- package/shared/patterns/linkable.d.ts +106 -117
- package/shared/patterns/localized.d.ts +197 -135
- package/shared/patterns/trapped-focus.d.ts +95 -64
- package/shared/picker-field/mixins/calendar-picker.d.ts +251 -188
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +271 -208
- package/shared/picker-field/mixins/calendar-segments/calendarGrid.d.ts +3 -3
- package/shared/picker-field/mixins/calendar-segments/monthPickerGrid.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-segments/segment.d.ts +2 -2
- package/shared/picker-field/mixins/inline-time-picker/columns.d.ts +2 -2
- package/shared/picker-field/mixins/inline-time-picker/index.d.ts +1 -0
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +95 -64
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.template.d.ts +3 -3
- package/shared/picker-field/mixins/inline-time-picker/picker-option.d.ts +1 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +277 -1102
- package/shared/picker-field/mixins/single-date-picker.d.ts +274 -1953
- package/shared/picker-field/mixins/single-value-picker.d.ts +236 -173
- package/shared/picker-field/mixins/time-selection-picker.d.ts +257 -1046
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +486 -360
- package/shared/picker-field/picker-field.d.ts +735 -514
- package/shared/picker-field/picker-field.template.d.ts +2 -2
- package/shared/templating/attribute-binding-behaviour.d.ts +1 -1
- package/shared/templating/render-in-light-dom.d.ts +2 -2
- package/shared/utils/closest-of-type.d.ts +2 -0
- package/shared/utils/direct-children-of-type.d.ts +2 -0
- package/shared/utils/dom-traversal-types.d.ts +3 -0
- package/shared/utils/first-of-type.d.ts +2 -0
- package/shared/utils/last-of-type.d.ts +2 -0
- package/shared/utils/nested-children-of-type.d.ts +2 -0
- package/shared/utils/next-of-type.d.ts +2 -0
- package/shared/utils/numberConverter.d.ts +1 -1
- package/shared/utils/prev-of-type.d.ts +2 -0
- package/shared/utils/promise.d.ts +2 -2
- package/shared/utils/siblings-of-type.d.ts +2 -0
- package/styles/core/all.css +2 -2
- package/styles/core/theme.css +2 -2
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/unbundled/slottable-request.cjs +7 -5
- package/unbundled/slottable-request.js +7 -6
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/vivid.api.json +727 -38
package/data-grid/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { I as N, i as W } from "../bundled/definition2.js";
|
|
2
|
-
import { V as $, h as u, a as f, o as a, b as
|
|
2
|
+
import { V as $, h as u, a as f, o as a, b as A, U as D, O as H, n as J, c as X, d as F } from "../bundled/vivid-element.js";
|
|
3
3
|
import { V as Y, v as Z } from "../bundled/definition14.js";
|
|
4
|
-
import { D as v, a as _, b as g, G as b, c as
|
|
5
|
-
import { R as
|
|
4
|
+
import { D as v, a as _, b as g, G as b, c as O } from "../bundled/data-grid.options.js";
|
|
5
|
+
import { R as L } from "../bundled/repeat.js";
|
|
6
6
|
import { n as T } from "../bundled/normalize.js";
|
|
7
|
-
import { d as ee, e as te, f as
|
|
8
|
-
import { H as
|
|
9
|
-
import { c as
|
|
10
|
-
import { s as
|
|
7
|
+
import { d as ee, e as te, f as P, k as M, a as K, g as oe, h as ie, i as le, j as ne, b as ae, c as re, l as se } from "../bundled/key-codes.js";
|
|
8
|
+
import { H as U, a as V } from "../bundled/host-semantics.js";
|
|
9
|
+
import { c as q } from "../bundled/children.js";
|
|
10
|
+
import { s as S, e as Q } from "../bundled/slotted.js";
|
|
11
11
|
import { L as ce } from "../bundled/localized.js";
|
|
12
12
|
import { c as B } from "../bundled/class-names.js";
|
|
13
13
|
import { w as I } from "../bundled/when.js";
|
|
14
|
-
const
|
|
15
|
-
var me = Object.defineProperty, C = (
|
|
16
|
-
for (var
|
|
17
|
-
(r =
|
|
18
|
-
return
|
|
14
|
+
const z = "focus", G = "focusin", w = "focusout", y = "keydown", de = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.base{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}", ue = ".base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}", he = ':host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){position:sticky;z-index:5;background:var(--data-grid-cell-background, var(--vvd-color-surface-2dp))}:host([data-fixed]):before{position:absolute;z-index:1;top:0;right:0;width:1px;block-size:100%;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d;content:"";pointer-events:none}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:flex;box-sizing:border-box;align-items:center;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, var(--_data-grid-cell-default-block-size));color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-block:13px 14px;padding-inline:12px}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_data-grid-cell-default-white-space: nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size: 100%;--_data-grid-cell-default-white-space: normal}:host(:is([selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}.content{display:flex;overflow:hidden;align-items:center}.content[role=button]{cursor:pointer}slot:not([name]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, var(--_data-grid-cell-default-white-space))}:host(:not([cell-type=columnheader][aria-sort])) slot:not([name]){inline-size:100%}.header-icon{flex-shrink:0;margin-inline-start:16px}slot[name=action-items]{display:flex;flex-shrink:0;align-items:center}.base.has-action-items slot[name=action-items]{margin-inline-start:16px}';
|
|
15
|
+
var me = Object.defineProperty, C = (i, e, t, l) => {
|
|
16
|
+
for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
|
|
17
|
+
(r = i[n]) && (o = r(e, t, o) || o);
|
|
18
|
+
return o && me(e, t, o), o;
|
|
19
19
|
};
|
|
20
20
|
const fe = u`
|
|
21
21
|
<template>
|
|
22
|
-
${(
|
|
22
|
+
${(i) => i.rowData === null || i.columnDefinition === null || i.columnDefinition.columnDataKey === null ? null : i.rowData[i.columnDefinition.columnDataKey]}
|
|
23
23
|
</template>
|
|
24
24
|
`, pe = u`
|
|
25
25
|
<template>
|
|
26
|
-
${(
|
|
26
|
+
${(i) => i.columnDefinition.title === void 0 ? i.columnDefinition.columnDataKey : i.columnDefinition.title}
|
|
27
27
|
</template>
|
|
28
28
|
`;
|
|
29
|
-
class p extends ce(
|
|
29
|
+
class p extends ce(U($)) {
|
|
30
30
|
constructor() {
|
|
31
31
|
super(...arguments), this.cellType = v.default, this.rowData = null, this.columnDefinition = null, this.isActiveCell = !1, this.customCellView = null, this.updateCellStyle = () => {
|
|
32
32
|
this.gridColumn && !this.gridColumn.includes("undefined") ? this.style.gridColumn = this.gridColumn : this.style.removeProperty("grid-column");
|
|
@@ -68,13 +68,13 @@ class p extends ce(K($)) {
|
|
|
68
68
|
* @internal
|
|
69
69
|
*/
|
|
70
70
|
connectedCallback() {
|
|
71
|
-
super.connectedCallback(), this.addEventListener(
|
|
71
|
+
super.connectedCallback(), this.addEventListener(G, this.handleFocusin), this.addEventListener(w, this.handleFocusout), this.addEventListener(y, this.handleKeydown), this.style.gridColumn = `${this.columnDefinition?.gridColumn === void 0 ? 0 : this.columnDefinition.gridColumn}`, this.updateCellView(), this.updateCellStyle(), this.updateFixedStyle();
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* @internal
|
|
75
75
|
*/
|
|
76
76
|
disconnectedCallback() {
|
|
77
|
-
super.disconnectedCallback(), this.removeEventListener(
|
|
77
|
+
super.disconnectedCallback(), this.removeEventListener(G, this.handleFocusin), this.removeEventListener(
|
|
78
78
|
w,
|
|
79
79
|
this.handleFocusout
|
|
80
80
|
), this.removeEventListener(y, this.handleKeydown), this.disconnectCellView();
|
|
@@ -108,7 +108,7 @@ class p extends ce(K($)) {
|
|
|
108
108
|
handleKeydown(e) {
|
|
109
109
|
if (!(e.defaultPrevented || this.columnDefinition === null || this.cellType === v.default && this.columnDefinition.cellInternalFocusQueue !== !0 || this.cellType === v.columnHeader && this.columnDefinition.headerCellInternalFocusQueue !== !0))
|
|
110
110
|
switch (e.key) {
|
|
111
|
-
case
|
|
111
|
+
case P:
|
|
112
112
|
case te:
|
|
113
113
|
if (this.contains(document.activeElement) && document.activeElement !== this)
|
|
114
114
|
return;
|
|
@@ -220,12 +220,15 @@ C([
|
|
|
220
220
|
C([
|
|
221
221
|
f({ attribute: "sort-direction" })
|
|
222
222
|
], p.prototype, "sortDirection");
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
C([
|
|
224
|
+
a
|
|
225
|
+
], p.prototype, "_actionItemsSlottedContent");
|
|
226
|
+
var ve = Object.defineProperty, h = (i, e, t, l) => {
|
|
227
|
+
for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
|
|
228
|
+
(r = i[n]) && (o = r(e, t, o) || o);
|
|
229
|
+
return o && ve(e, t, o), o;
|
|
227
230
|
};
|
|
228
|
-
class c extends
|
|
231
|
+
class c extends U($) {
|
|
229
232
|
constructor() {
|
|
230
233
|
super(...arguments), this.rowType = g.default, this.rowData = null, this.columnDefinitions = null, this.behaviorOrchestrator = null, this.focusColumnIndex = 0, this.updateRowStyle = () => {
|
|
231
234
|
this.style.gridTemplateColumns = this.gridTemplateColumns;
|
|
@@ -261,8 +264,8 @@ class c extends K($) {
|
|
|
261
264
|
connectedCallback() {
|
|
262
265
|
super.connectedCallback();
|
|
263
266
|
/* v8 ignore else -- @preserve */
|
|
264
|
-
this.behaviorOrchestrator === null && (this.updateItemTemplate(), this.behaviorOrchestrator =
|
|
265
|
-
new
|
|
267
|
+
this.behaviorOrchestrator === null && (this.updateItemTemplate(), this.behaviorOrchestrator = A.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(
|
|
268
|
+
new L(
|
|
266
269
|
T((e) => e.columnDefinitions),
|
|
267
270
|
T((e) => e.activeCellItemTemplate),
|
|
268
271
|
{ positioning: !0 }
|
|
@@ -291,7 +294,7 @@ class c extends K($) {
|
|
|
291
294
|
return;
|
|
292
295
|
let t = 0;
|
|
293
296
|
switch (e.key) {
|
|
294
|
-
case
|
|
297
|
+
case ie:
|
|
295
298
|
t = Math.max(0, this.focusColumnIndex - 1), this.cellElements[t].focus(), e.preventDefault();
|
|
296
299
|
break;
|
|
297
300
|
case oe:
|
|
@@ -300,10 +303,10 @@ class c extends K($) {
|
|
|
300
303
|
this.focusColumnIndex + 1
|
|
301
304
|
), this.cellElements[t].focus(), e.preventDefault();
|
|
302
305
|
break;
|
|
303
|
-
case
|
|
306
|
+
case K:
|
|
304
307
|
e.ctrlKey || (this.cellElements[0].focus(), e.preventDefault());
|
|
305
308
|
break;
|
|
306
|
-
case
|
|
309
|
+
case M:
|
|
307
310
|
e.ctrlKey || (this.cellElements[this.cellElements.length - 1].focus(), e.preventDefault());
|
|
308
311
|
break;
|
|
309
312
|
}
|
|
@@ -357,10 +360,10 @@ h([
|
|
|
357
360
|
h([
|
|
358
361
|
f({ mode: "boolean" })
|
|
359
362
|
], c.prototype, "selected");
|
|
360
|
-
var ge = Object.defineProperty, d = (
|
|
361
|
-
for (var
|
|
362
|
-
(r =
|
|
363
|
-
return
|
|
363
|
+
var ge = Object.defineProperty, d = (i, e, t, l) => {
|
|
364
|
+
for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
|
|
365
|
+
(r = i[n]) && (o = r(e, t, o) || o);
|
|
366
|
+
return o && ge(e, t, o), o;
|
|
364
367
|
};
|
|
365
368
|
const m = {
|
|
366
369
|
none: "none",
|
|
@@ -370,26 +373,26 @@ const m = {
|
|
|
370
373
|
multiCell: "multi-cell"
|
|
371
374
|
}, s = class k extends $ {
|
|
372
375
|
constructor() {
|
|
373
|
-
super(), this.noTabbing = !1, this.generateHeader = b.default, this.rowsData = [], this.columnDefinitions = null, this.focusRowIndex = 0, this.focusColumnIndex = 0, this.fixedColumnsPositions = [], this.behaviorOrchestrator = null, this.generatedHeader = null, this.isUpdatingFocus = !1, this.pendingFocusUpdate = !1, this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !0, this.generatedGridTemplateColumns = "", this.focusOnCell = (e, t,
|
|
376
|
+
super(), this.noTabbing = !1, this.generateHeader = b.default, this.rowsData = [], this.columnDefinitions = null, this.focusRowIndex = 0, this.focusColumnIndex = 0, this.fixedColumnsPositions = [], this.behaviorOrchestrator = null, this.generatedHeader = null, this.isUpdatingFocus = !1, this.pendingFocusUpdate = !1, this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !0, this.generatedGridTemplateColumns = "", this.focusOnCell = (e, t, l) => {
|
|
374
377
|
if (this.rowElements.length === 0) {
|
|
375
378
|
this.focusRowIndex = 0, this.focusColumnIndex = 0;
|
|
376
379
|
return;
|
|
377
380
|
}
|
|
378
|
-
const
|
|
381
|
+
const o = Math.max(
|
|
379
382
|
0,
|
|
380
383
|
Math.min(this.rowElements.length - 1, e)
|
|
381
|
-
), r = this.rowElements[
|
|
384
|
+
), r = this.rowElements[o].querySelectorAll(
|
|
382
385
|
'[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"], [data-vvd-component="data-grid-cell"]'
|
|
383
386
|
), x = Math.max(
|
|
384
387
|
0,
|
|
385
388
|
Math.min(r.length - 1, t)
|
|
386
|
-
),
|
|
387
|
-
|
|
389
|
+
), R = r[x];
|
|
390
|
+
l && this.scrollHeight !== this.clientHeight && (o < this.focusRowIndex && this.scrollTop > 0 || o > this.focusRowIndex && this.scrollTop < this.scrollHeight - this.clientHeight) && R.scrollIntoView({ block: "center", inline: "center" }), R.focus();
|
|
388
391
|
}, this.onChildListChange = (e, t) => {
|
|
389
392
|
/* v8 ignore else -- @preserve */
|
|
390
|
-
e && e.length && (e.forEach((
|
|
391
|
-
|
|
392
|
-
|
|
393
|
+
e && e.length && (e.forEach((l) => {
|
|
394
|
+
l.addedNodes.forEach((o) => {
|
|
395
|
+
o.nodeType === 1 && (o.getAttribute("role") === "row" || o.getAttribute("row-type") === "default") && (o.columnDefinitions = this.columnDefinitions);
|
|
393
396
|
});
|
|
394
397
|
}), this.queueRowIndexUpdate());
|
|
395
398
|
}, this.queueRowIndexUpdate = () => {
|
|
@@ -405,28 +408,28 @@ const m = {
|
|
|
405
408
|
}
|
|
406
409
|
e = this.generatedGridTemplateColumns;
|
|
407
410
|
}
|
|
408
|
-
this.rowElements.forEach((t,
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
+
this.rowElements.forEach((t, l) => {
|
|
412
|
+
const o = t;
|
|
413
|
+
o.rowIndex = l, o.gridTemplateColumns = e, this.columnDefinitionsStale && (o.columnDefinitions = this.columnDefinitions);
|
|
411
414
|
}), this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !1;
|
|
412
|
-
}, this.#
|
|
415
|
+
}, this.#i = (e) => {
|
|
413
416
|
(e.key === "Enter" || e.key === " ") && this.#t(e);
|
|
414
|
-
}, this.#t = ({ target: e, ctrlKey: t, shiftKey:
|
|
417
|
+
}, this.#t = ({ target: e, ctrlKey: t, shiftKey: l, metaKey: o }) => {
|
|
415
418
|
if (!(e.getAttribute("role") !== "gridcell" || e.getAttribute("cell-type") !== "default")) {
|
|
416
419
|
if (this.selectionMode === m.singleCell || this.selectionMode === m.multiCell) {
|
|
417
|
-
this.#
|
|
420
|
+
this.#l({ target: e, ctrlKey: t, shiftKey: l, metaKey: o });
|
|
418
421
|
return;
|
|
419
422
|
}
|
|
420
|
-
(this.selectionMode === m.singleRow || this.selectionMode === m.multiRow) && this.#n({ target: e, ctrlKey: t, shiftKey:
|
|
423
|
+
(this.selectionMode === m.singleRow || this.selectionMode === m.multiRow) && this.#n({ target: e, ctrlKey: t, shiftKey: l, metaKey: o });
|
|
421
424
|
}
|
|
422
|
-
}, this.#
|
|
425
|
+
}, this.#l = ({
|
|
423
426
|
target: e,
|
|
424
427
|
ctrlKey: t,
|
|
425
|
-
shiftKey:
|
|
426
|
-
metaKey:
|
|
428
|
+
shiftKey: l,
|
|
429
|
+
metaKey: o
|
|
427
430
|
}) => {
|
|
428
431
|
const n = e;
|
|
429
|
-
if (this.selectionMode === m.multiCell && (t ||
|
|
432
|
+
if (this.selectionMode === m.multiCell && (t || l || o))
|
|
430
433
|
n.selected = !this.#r.includes(n);
|
|
431
434
|
else {
|
|
432
435
|
const r = n.selected;
|
|
@@ -435,11 +438,11 @@ const m = {
|
|
|
435
438
|
}, this.#n = ({
|
|
436
439
|
target: e,
|
|
437
440
|
ctrlKey: t,
|
|
438
|
-
shiftKey:
|
|
439
|
-
metaKey:
|
|
441
|
+
shiftKey: l,
|
|
442
|
+
metaKey: o
|
|
440
443
|
}) => {
|
|
441
444
|
const n = e.parentNode;
|
|
442
|
-
if (this.selectionMode === m.multiRow && (t ||
|
|
445
|
+
if (this.selectionMode === m.multiRow && (t || l || o))
|
|
443
446
|
n.selected = !this.#a.includes(n);
|
|
444
447
|
else {
|
|
445
448
|
const r = n.selected;
|
|
@@ -456,32 +459,32 @@ const m = {
|
|
|
456
459
|
}, this._resetSelection = (e = !1) => {
|
|
457
460
|
const t = Array.from(
|
|
458
461
|
this.querySelectorAll('[role="gridcell"], [cell-type="default"]')
|
|
459
|
-
),
|
|
462
|
+
), l = Array.from(
|
|
460
463
|
this.querySelectorAll('[role="row"], [row-type="default"]')
|
|
461
464
|
);
|
|
462
465
|
if (this.selectionMode === m.singleCell || this.selectionMode === m.multiCell) {
|
|
463
|
-
for (const
|
|
464
|
-
|
|
465
|
-
for (const
|
|
466
|
-
|
|
466
|
+
for (const o of t)
|
|
467
|
+
o._selectable = !0, o.selected = e ? !1 : o.selected || !1;
|
|
468
|
+
for (const o of l)
|
|
469
|
+
o._selectable = !1, o.selected = !1;
|
|
467
470
|
}
|
|
468
471
|
if (this.selectionMode === m.none)
|
|
469
|
-
for (const
|
|
470
|
-
|
|
472
|
+
for (const o of [...t, ...l])
|
|
473
|
+
o._selectable = !1, o.selected = !1;
|
|
471
474
|
if (this.selectionMode === m.singleRow || this.selectionMode === m.multiRow) {
|
|
472
|
-
for (const
|
|
473
|
-
|
|
474
|
-
for (const
|
|
475
|
-
|
|
475
|
+
for (const o of t)
|
|
476
|
+
o._selectable = !1, o.selected = !1;
|
|
477
|
+
for (const o of l)
|
|
478
|
+
o._selectable = !0, o.selected = e ? !1 : o.selected || !1;
|
|
476
479
|
}
|
|
477
|
-
}, this.addEventListener("click", this.#t), this.addEventListener("keydown", this.#
|
|
480
|
+
}, this.addEventListener("click", this.#t), this.addEventListener("keydown", this.#i);
|
|
478
481
|
}
|
|
479
482
|
/**
|
|
480
483
|
* generates a gridTemplateColumns based on columndata array
|
|
481
484
|
*/
|
|
482
485
|
static generateTemplateColumns(e) {
|
|
483
486
|
let t = "";
|
|
484
|
-
return e.forEach((
|
|
487
|
+
return e.forEach((l) => {
|
|
485
488
|
t = `${t}${t === "" ? "" : " "}1fr`;
|
|
486
489
|
}), t;
|
|
487
490
|
}
|
|
@@ -572,14 +575,14 @@ const m = {
|
|
|
572
575
|
/* v8 ignore else -- @preserve */
|
|
573
576
|
this.rowItemTemplate === void 0 && (this.rowItemTemplate = this.defaultRowItemTemplate);
|
|
574
577
|
/* v8 ignore else -- @preserve */
|
|
575
|
-
this.behaviorOrchestrator === null && (this.behaviorOrchestrator =
|
|
576
|
-
new
|
|
578
|
+
this.behaviorOrchestrator === null && (this.behaviorOrchestrator = A.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(
|
|
579
|
+
new L(
|
|
577
580
|
T((e) => e.rowsData),
|
|
578
581
|
T((e) => e.rowItemTemplate),
|
|
579
582
|
{ positioning: !0 }
|
|
580
583
|
),
|
|
581
584
|
this.appendChild(document.createComment(""))
|
|
582
|
-
)), this.toggleGeneratedHeader(), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(
|
|
585
|
+
)), this.toggleGeneratedHeader(), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(z, this.handleFocus), this.addEventListener(y, this.handleKeydown), this.addEventListener(w, this.handleFocusOut), this.observer = new MutationObserver(this.onChildListChange), this.observer.observe(this, { childList: !0 }), this.setupResizeObserver(), D.enqueue(this.queueRowIndexUpdate), this.#e(), H.getNotifier(this).subscribe(
|
|
583
586
|
this.#o,
|
|
584
587
|
"columnDefinitions"
|
|
585
588
|
);
|
|
@@ -588,10 +591,10 @@ const m = {
|
|
|
588
591
|
* @internal
|
|
589
592
|
*/
|
|
590
593
|
disconnectedCallback() {
|
|
591
|
-
super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(
|
|
594
|
+
super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(z, this.handleFocus), this.removeEventListener(y, this.handleKeydown), this.removeEventListener(
|
|
592
595
|
w,
|
|
593
596
|
this.handleFocusOut
|
|
594
|
-
), this.observer.disconnect(), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0), this.generatedHeader = null,
|
|
597
|
+
), this.observer.disconnect(), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0), this.generatedHeader = null, H.getNotifier(this).unsubscribe(
|
|
595
598
|
this.#o,
|
|
596
599
|
"columnDefinitions"
|
|
597
600
|
);
|
|
@@ -623,7 +626,7 @@ const m = {
|
|
|
623
626
|
if (e.defaultPrevented)
|
|
624
627
|
return;
|
|
625
628
|
let t;
|
|
626
|
-
const
|
|
629
|
+
const l = this.rowElements.length - 1, o = this.offsetHeight + this.scrollTop, n = this.rowElements[l];
|
|
627
630
|
switch (e.key) {
|
|
628
631
|
case re:
|
|
629
632
|
e.preventDefault(), this.focusOnCell(this.focusRowIndex - 1, this.focusColumnIndex, !0);
|
|
@@ -649,18 +652,18 @@ const m = {
|
|
|
649
652
|
}
|
|
650
653
|
this.focusOnCell(t, this.focusColumnIndex, !1);
|
|
651
654
|
break;
|
|
652
|
-
case
|
|
655
|
+
case le:
|
|
653
656
|
if (e.preventDefault(), this.rowElements.length === 0) {
|
|
654
657
|
this.focusOnCell(0, 0, !1);
|
|
655
658
|
break;
|
|
656
659
|
}
|
|
657
|
-
if (this.focusRowIndex >=
|
|
658
|
-
this.focusOnCell(
|
|
660
|
+
if (this.focusRowIndex >= l || n.offsetTop + n.offsetHeight <= o) {
|
|
661
|
+
this.focusOnCell(l, this.focusColumnIndex, !1);
|
|
659
662
|
return;
|
|
660
663
|
}
|
|
661
|
-
for (t = this.focusRowIndex + 1, t; t <=
|
|
664
|
+
for (t = this.focusRowIndex + 1, t; t <= l; t++) {
|
|
662
665
|
const r = this.rowElements[t];
|
|
663
|
-
if (r.offsetTop + r.offsetHeight >
|
|
666
|
+
if (r.offsetTop + r.offsetHeight > o) {
|
|
664
667
|
let x = 0;
|
|
665
668
|
this.generateHeader === b.sticky && this.generatedHeader !== null && (x = this.generatedHeader.clientHeight), this.scrollTop = r.offsetTop - x;
|
|
666
669
|
break;
|
|
@@ -668,12 +671,12 @@ const m = {
|
|
|
668
671
|
}
|
|
669
672
|
this.focusOnCell(t, this.focusColumnIndex, !1);
|
|
670
673
|
break;
|
|
671
|
-
case
|
|
674
|
+
case K: {
|
|
672
675
|
/* v8 ignore else -- @preserve */
|
|
673
676
|
e.ctrlKey && (e.preventDefault(), this.focusOnCell(0, 0, !0));
|
|
674
677
|
break;
|
|
675
678
|
}
|
|
676
|
-
case
|
|
679
|
+
case M: {
|
|
677
680
|
/* v8 ignore else -- @preserve */
|
|
678
681
|
e.ctrlKey && this.columnDefinitions !== null && (e.preventDefault(), this.focusOnCell(
|
|
679
682
|
this.rowElements.length - 1,
|
|
@@ -714,10 +717,10 @@ const m = {
|
|
|
714
717
|
}
|
|
715
718
|
get #r() {
|
|
716
719
|
return this.rowElements.reduce((e, t) => {
|
|
717
|
-
const
|
|
720
|
+
const o = Array.from(t.children).filter(
|
|
718
721
|
(n) => n.selected
|
|
719
722
|
);
|
|
720
|
-
return e.concat(
|
|
723
|
+
return e.concat(o);
|
|
721
724
|
}, []);
|
|
722
725
|
}
|
|
723
726
|
selectionModeChanged(e) {
|
|
@@ -727,15 +730,15 @@ const m = {
|
|
|
727
730
|
}
|
|
728
731
|
this._resetSelection(!0);
|
|
729
732
|
}
|
|
730
|
-
#l;
|
|
731
|
-
#t;
|
|
732
733
|
#i;
|
|
734
|
+
#t;
|
|
735
|
+
#l;
|
|
733
736
|
#n;
|
|
734
737
|
#o;
|
|
735
738
|
static generateColumns(e) {
|
|
736
|
-
return Object.keys(e).map((t,
|
|
739
|
+
return Object.keys(e).map((t, l) => ({
|
|
737
740
|
columnDataKey: t,
|
|
738
|
-
gridColumn: `${
|
|
741
|
+
gridColumn: `${l}`
|
|
739
742
|
}));
|
|
740
743
|
}
|
|
741
744
|
/**
|
|
@@ -757,12 +760,12 @@ const m = {
|
|
|
757
760
|
const t = e.querySelectorAll(
|
|
758
761
|
'[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
|
|
759
762
|
);
|
|
760
|
-
this.fixedColumnsPositions.forEach((
|
|
763
|
+
this.fixedColumnsPositions.forEach((l, o) => {
|
|
761
764
|
/* v8 ignore else -- @preserve */
|
|
762
|
-
if (
|
|
763
|
-
const n = t[
|
|
765
|
+
if (o < t.length) {
|
|
766
|
+
const n = t[o];
|
|
764
767
|
/* v8 ignore else -- @preserve */
|
|
765
|
-
typeof n.setFixedPosition == "function" && n.setFixedPosition(`${
|
|
768
|
+
typeof n.setFixedPosition == "function" && n.setFixedPosition(`${l}px`);
|
|
766
769
|
}
|
|
767
770
|
});
|
|
768
771
|
});
|
|
@@ -777,8 +780,8 @@ const m = {
|
|
|
777
780
|
'[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
|
|
778
781
|
);
|
|
779
782
|
let t = 0;
|
|
780
|
-
for (let
|
|
781
|
-
this.fixedColumnsPositions.push(t), t += e[
|
|
783
|
+
for (let l = 0; l < Math.min(this.fixedColumns, e.length); l++)
|
|
784
|
+
this.fixedColumnsPositions.push(t), t += e[l].offsetWidth;
|
|
782
785
|
}
|
|
783
786
|
/**
|
|
784
787
|
* Clears all fixed columns state and styling
|
|
@@ -793,10 +796,10 @@ const m = {
|
|
|
793
796
|
const t = e.querySelectorAll(
|
|
794
797
|
'[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
|
|
795
798
|
);
|
|
796
|
-
this.fixedColumnsPositions.forEach((
|
|
799
|
+
this.fixedColumnsPositions.forEach((l, o) => {
|
|
797
800
|
/* v8 ignore else -- @preserve */
|
|
798
|
-
if (
|
|
799
|
-
const n = t[
|
|
801
|
+
if (o < t.length) {
|
|
802
|
+
const n = t[o];
|
|
800
803
|
/* v8 ignore else -- @preserve */
|
|
801
804
|
typeof n.setFixedPosition == "function" && n.setFixedPosition(void 0);
|
|
802
805
|
}
|
|
@@ -853,37 +856,37 @@ d([
|
|
|
853
856
|
f({ attribute: "selection-mode" })
|
|
854
857
|
], s.prototype, "selectionMode");
|
|
855
858
|
let Ce = s;
|
|
856
|
-
function be(
|
|
857
|
-
const e =
|
|
859
|
+
function be(i) {
|
|
860
|
+
const e = i.tagFor(c);
|
|
858
861
|
return u`
|
|
859
862
|
<${e}
|
|
860
863
|
:rowData="${(t) => t}"
|
|
861
|
-
:cellItemTemplate="${(t,
|
|
862
|
-
:headerCellItemTemplate="${(t,
|
|
864
|
+
:cellItemTemplate="${(t, l) => l.parent.cellItemTemplate}"
|
|
865
|
+
:headerCellItemTemplate="${(t, l) => l.parent.headerCellItemTemplate}"
|
|
863
866
|
></${e}>
|
|
864
867
|
`;
|
|
865
868
|
}
|
|
866
|
-
function we(
|
|
867
|
-
return
|
|
869
|
+
function we(i) {
|
|
870
|
+
return i.selectionMode === void 0 || i.selectionMode === m.none ? null : i.selectionMode.includes("multi") ? "true" : "false";
|
|
868
871
|
}
|
|
869
|
-
function ye(
|
|
870
|
-
if (
|
|
871
|
-
const e =
|
|
872
|
+
function ye(i) {
|
|
873
|
+
if (i.columnDefinitions === null) {
|
|
874
|
+
const e = i.querySelector(
|
|
872
875
|
'[cell-type="columnheader"]'
|
|
873
876
|
)?.parentElement;
|
|
874
|
-
if (
|
|
877
|
+
if (i.generateHeader === b.default && (e?.getAttribute("row-type") === g.header || e?.getAttribute("row-type") === g.stickyHeader))
|
|
875
878
|
return;
|
|
876
879
|
if (e) {
|
|
877
|
-
const t =
|
|
880
|
+
const t = i.generateHeader === b.sticky ? g.stickyHeader : g.header;
|
|
878
881
|
e.setAttribute("row-type", t);
|
|
879
882
|
}
|
|
880
883
|
}
|
|
881
884
|
}
|
|
882
|
-
function _e(
|
|
885
|
+
function _e(i, { event: e }) {
|
|
883
886
|
e.stopPropagation();
|
|
884
887
|
}
|
|
885
|
-
const xe = (
|
|
886
|
-
const e = be(
|
|
888
|
+
const xe = (i) => {
|
|
889
|
+
const e = be(i), t = i.tagFor(c, !0);
|
|
887
890
|
return u`
|
|
888
891
|
<template
|
|
889
892
|
aria-multiselectable="${we}"
|
|
@@ -892,55 +895,55 @@ const xe = (o) => {
|
|
|
892
895
|
@sort="${_e}"
|
|
893
896
|
:rowElementTag="${() => t}"
|
|
894
897
|
:defaultRowItemTemplate="${e}"
|
|
895
|
-
${
|
|
898
|
+
${q({
|
|
896
899
|
property: "rowElements",
|
|
897
900
|
filter: Q("[role=row],[data-vvd-component=data-grid-row]")
|
|
898
901
|
})}
|
|
899
902
|
>
|
|
900
903
|
<div class="base">
|
|
901
904
|
${ye}
|
|
902
|
-
<slot ${
|
|
905
|
+
<slot ${S("slottedRowElements")}></slot>
|
|
903
906
|
</div>
|
|
904
907
|
</template>
|
|
905
908
|
`;
|
|
906
909
|
};
|
|
907
|
-
function De(
|
|
908
|
-
return
|
|
910
|
+
function De(i) {
|
|
911
|
+
return i._selectable && i.selected ? "true" : i._selectable && !i.selected ? "false" : null;
|
|
909
912
|
}
|
|
910
|
-
function Te(
|
|
911
|
-
const e =
|
|
913
|
+
function Te(i) {
|
|
914
|
+
const e = i.tagFor(p);
|
|
912
915
|
return u`
|
|
913
916
|
<${e}
|
|
914
917
|
cell-type="${(t) => t.isRowHeader ? "rowheader" : void 0}"
|
|
915
|
-
grid-column="${(t,
|
|
916
|
-
:rowData="${(t,
|
|
918
|
+
grid-column="${(t, l) => l.index + 1}"
|
|
919
|
+
:rowData="${(t, l) => l.parent.rowData}"
|
|
917
920
|
:columnDefinition="${(t) => t}"
|
|
918
|
-
selected="${(t,
|
|
921
|
+
selected="${(t, l) => l.parent.ariaSelected === "true" ? !0 : null}"
|
|
919
922
|
></${e}>
|
|
920
923
|
`;
|
|
921
924
|
}
|
|
922
|
-
function Ie(
|
|
923
|
-
const e =
|
|
925
|
+
function Ie(i) {
|
|
926
|
+
const e = i.tagFor(p);
|
|
924
927
|
return u`
|
|
925
928
|
<${e}
|
|
926
929
|
cell-type="columnheader"
|
|
927
|
-
grid-column="${(t,
|
|
930
|
+
grid-column="${(t, l) => l.index + 1}"
|
|
928
931
|
:columnDefinition="${(t) => t}"
|
|
929
932
|
></${e}>
|
|
930
933
|
`;
|
|
931
934
|
}
|
|
932
|
-
const ke = (
|
|
933
|
-
const e = Te(
|
|
935
|
+
const ke = (i) => {
|
|
936
|
+
const e = Te(i), t = Ie(i), l = (o) => B("base", ["selected", !!o.selected]);
|
|
934
937
|
return u`
|
|
935
938
|
<template
|
|
936
|
-
${
|
|
939
|
+
${V({
|
|
937
940
|
role: "row",
|
|
938
941
|
ariaSelected: De
|
|
939
942
|
})}
|
|
940
|
-
class="${(
|
|
943
|
+
class="${(o) => o.rowType !== "default" ? o.rowType : ""}"
|
|
941
944
|
:defaultCellItemTemplate="${e}"
|
|
942
945
|
:defaultHeaderCellItemTemplate="${t}"
|
|
943
|
-
${
|
|
946
|
+
${q({
|
|
944
947
|
property: "cellElements",
|
|
945
948
|
filter: Q(
|
|
946
949
|
'[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],[data-vvd-component="data-grid-cell"]'
|
|
@@ -948,25 +951,25 @@ const ke = (o) => {
|
|
|
948
951
|
})}
|
|
949
952
|
>
|
|
950
953
|
<div
|
|
951
|
-
class="${
|
|
952
|
-
style="grid-template-columns: ${(
|
|
954
|
+
class="${l}"
|
|
955
|
+
style="grid-template-columns: ${(o) => o.gridTemplateColumns};"
|
|
953
956
|
>
|
|
954
|
-
<slot ${
|
|
957
|
+
<slot ${S("slottedCellElements")}></slot>
|
|
955
958
|
</div>
|
|
956
959
|
</template>
|
|
957
960
|
`;
|
|
958
961
|
};
|
|
959
|
-
function E(
|
|
960
|
-
return
|
|
962
|
+
function E(i) {
|
|
963
|
+
return i.cellType === "columnheader" && i.sortDirection !== void 0 && i.sortDirection !== _.other;
|
|
961
964
|
}
|
|
962
|
-
function Ee(
|
|
963
|
-
return
|
|
965
|
+
function Ee(i) {
|
|
966
|
+
return i.sortDirection === _.ascending ? "sort-asc-solid" : i.sortDirection === _.descending ? "sort-desc-solid" : "sort-solid";
|
|
964
967
|
}
|
|
965
|
-
function $e(
|
|
966
|
-
return
|
|
968
|
+
function $e(i) {
|
|
969
|
+
return i._selectable && i.selected ? "true" : i._selectable && !i.selected ? "false" : null;
|
|
967
970
|
}
|
|
968
|
-
function Fe(
|
|
969
|
-
const e =
|
|
971
|
+
function Fe(i) {
|
|
972
|
+
const e = i.tagFor(N);
|
|
970
973
|
return u`
|
|
971
974
|
${I(
|
|
972
975
|
E,
|
|
@@ -976,59 +979,74 @@ function Fe(o) {
|
|
|
976
979
|
)}
|
|
977
980
|
`;
|
|
978
981
|
}
|
|
979
|
-
function Se(
|
|
980
|
-
return
|
|
982
|
+
function Se(i) {
|
|
983
|
+
return i.cellType === v.columnHeader && i.sortDirection !== void 0;
|
|
981
984
|
}
|
|
982
|
-
function j(
|
|
983
|
-
return
|
|
985
|
+
function j(i) {
|
|
986
|
+
return i.sortDirection ?? _.none;
|
|
984
987
|
}
|
|
985
|
-
function Re(
|
|
986
|
-
const e = j(
|
|
987
|
-
return
|
|
988
|
+
function Re(i) {
|
|
989
|
+
const e = j(i);
|
|
990
|
+
return i.locale.dataGrid.cell.sortStatus?.[e];
|
|
988
991
|
}
|
|
989
|
-
function He(
|
|
990
|
-
const e = j(
|
|
991
|
-
return
|
|
992
|
+
function He(i) {
|
|
993
|
+
const e = j(i);
|
|
994
|
+
return i.locale.dataGrid.cell.sortInstruction?.[e];
|
|
992
995
|
}
|
|
993
|
-
function Oe(
|
|
994
|
-
return [Re(
|
|
996
|
+
function Oe(i) {
|
|
997
|
+
return [Re(i), He(i)].filter((e) => !!e).join(" ").trim();
|
|
995
998
|
}
|
|
996
|
-
function ze(
|
|
997
|
-
|
|
999
|
+
function ze(i, e) {
|
|
1000
|
+
if (e.key === P || e.key === se) {
|
|
1001
|
+
if (e.target.closest('[slot="action-items"]')) return !0;
|
|
1002
|
+
i._handleInteraction();
|
|
1003
|
+
}
|
|
1004
|
+
return !0;
|
|
1005
|
+
}
|
|
1006
|
+
function Ge(i, e) {
|
|
1007
|
+
return e.target.closest('[slot="action-items"]') || i._handleInteraction(), !0;
|
|
998
1008
|
}
|
|
999
|
-
const
|
|
1000
|
-
const e =
|
|
1009
|
+
const Ae = (i) => {
|
|
1010
|
+
const e = i.tagFor(Y), t = ({
|
|
1011
|
+
selected: l,
|
|
1012
|
+
_actionItemsSlottedContent: o
|
|
1013
|
+
}) => B(
|
|
1014
|
+
"base",
|
|
1015
|
+
["selected", !!l],
|
|
1016
|
+
["has-action-items", !!o?.length]
|
|
1017
|
+
);
|
|
1001
1018
|
return u`
|
|
1002
1019
|
<template
|
|
1003
1020
|
tabindex="-1"
|
|
1004
|
-
${
|
|
1005
|
-
role: (
|
|
1021
|
+
${V({
|
|
1022
|
+
role: (l) => O[l.cellType] ?? O.default,
|
|
1006
1023
|
ariaSelected: $e,
|
|
1007
|
-
ariaSort: (
|
|
1024
|
+
ariaSort: (l) => l.sortDirection ?? null
|
|
1008
1025
|
})}
|
|
1009
|
-
@click="${(
|
|
1010
|
-
@keydown="${(
|
|
1026
|
+
@click="${(l, o) => Ge(l, o.event)}"
|
|
1027
|
+
@keydown="${(l, o) => ze(l, o.event)}"
|
|
1011
1028
|
>
|
|
1012
|
-
<div
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1029
|
+
<div class="${t}">
|
|
1030
|
+
<div
|
|
1031
|
+
class="content"
|
|
1032
|
+
role="${(l) => E(l) ? "button" : void 0}"
|
|
1033
|
+
>
|
|
1034
|
+
${(l) => l.selected ? u`<${e}
|
|
1017
1035
|
data-announcement="selection"
|
|
1018
1036
|
>
|
|
1019
|
-
${(
|
|
1037
|
+
${(o) => o.locale.dataGrid.cell.selected}
|
|
1020
1038
|
</${e}>` : null}
|
|
1021
|
-
|
|
1022
|
-
|
|
1039
|
+
<slot></slot>
|
|
1040
|
+
${I(
|
|
1023
1041
|
E,
|
|
1024
1042
|
u`<${e}
|
|
1025
1043
|
data-announcement="button-role"
|
|
1026
1044
|
>
|
|
1027
|
-
${(
|
|
1045
|
+
${(l) => l.locale.dataGrid.cell.button}
|
|
1028
1046
|
</${e}>
|
|
1029
|
-
|
|
1047
|
+
`
|
|
1030
1048
|
)}
|
|
1031
|
-
|
|
1049
|
+
${I(
|
|
1032
1050
|
Se,
|
|
1033
1051
|
u`<${e}
|
|
1034
1052
|
aria-live="polite"
|
|
@@ -1037,33 +1055,38 @@ const Ge = (o) => {
|
|
|
1037
1055
|
${Oe}
|
|
1038
1056
|
</${e}>`
|
|
1039
1057
|
)}
|
|
1040
|
-
|
|
1058
|
+
${(l) => Fe(i)}
|
|
1059
|
+
</div>
|
|
1060
|
+
<slot
|
|
1061
|
+
name="action-items"
|
|
1062
|
+
${S("_actionItemsSlottedContent")}
|
|
1063
|
+
></slot>
|
|
1041
1064
|
</div>
|
|
1042
1065
|
</template>
|
|
1043
1066
|
`;
|
|
1044
|
-
},
|
|
1067
|
+
}, Le = F(
|
|
1045
1068
|
"data-grid-cell",
|
|
1046
1069
|
p,
|
|
1047
|
-
|
|
1070
|
+
Ae,
|
|
1048
1071
|
[W, Z],
|
|
1049
1072
|
{
|
|
1050
1073
|
styles: he
|
|
1051
1074
|
}
|
|
1052
|
-
),
|
|
1075
|
+
), Pe = F(
|
|
1053
1076
|
"data-grid-row",
|
|
1054
1077
|
c,
|
|
1055
1078
|
ke,
|
|
1056
|
-
[
|
|
1079
|
+
[Le],
|
|
1057
1080
|
{
|
|
1058
1081
|
styles: ue
|
|
1059
1082
|
}
|
|
1060
|
-
),
|
|
1083
|
+
), Me = F(
|
|
1061
1084
|
"data-grid",
|
|
1062
1085
|
Ce,
|
|
1063
1086
|
xe,
|
|
1064
|
-
[
|
|
1087
|
+
[Pe],
|
|
1065
1088
|
{
|
|
1066
1089
|
styles: de
|
|
1067
1090
|
}
|
|
1068
|
-
),
|
|
1069
|
-
|
|
1091
|
+
), Ke = X(Me);
|
|
1092
|
+
Ke();
|