@shtabapp/ui-kit 1.85.0 → 1.85.2
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 +12 -0
- package/dist/components/SAvatar/SAvatar.types.cjs +60 -0
- package/dist/components/SAvatar/SAvatar.types.js +55 -0
- package/dist/components/SAvatar/SAvatar.vue.cjs +6 -0
- package/dist/components/SAvatar/SAvatar.vue.js +6 -0
- package/dist/components/SAvatar/SAvatar.vue_vue_type_script_setup_true_lang.cjs +174 -0
- package/dist/components/SAvatar/SAvatar.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/components/SAvatar/constants/SAvatar.constants.cjs +42 -0
- package/dist/components/SAvatar/constants/SAvatar.constants.js +40 -0
- package/dist/components/SAvatar/utils/getAvatarInitialsTextColor.cjs +22 -0
- package/dist/components/SAvatar/utils/getAvatarInitialsTextColor.js +22 -0
- package/dist/components/SAvatar/utils/resolveAvatarColor.cjs +21 -0
- package/dist/components/SAvatar/utils/resolveAvatarColor.js +20 -0
- package/dist/components/SAvatar/utils/useAvatarBadge.cjs +132 -0
- package/dist/components/SAvatar/utils/useAvatarBadge.js +132 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.types.cjs +9 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.types.js +9 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.vue.cjs +6 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.vue.js +6 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.vue_vue_type_script_setup_true_lang.cjs +63 -0
- package/dist/components/SAvatarGroup/SAvatarGroup.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/SBadge/SBadge.types.cjs +29 -0
- package/dist/components/SBadge/SBadge.types.js +27 -0
- package/dist/components/SBadge/SBadge.vue.cjs +6 -0
- package/dist/components/SBadge/SBadge.vue.js +6 -0
- package/dist/components/SBadge/SBadge.vue_vue_type_script_setup_true_lang.cjs +120 -0
- package/dist/components/SBadge/SBadge.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/components/SBanner/SBanner.vue.cjs +6 -0
- package/dist/components/SBanner/SBanner.vue.js +6 -0
- package/dist/components/SBanner/SBanner.vue_vue_type_script_setup_true_lang.cjs +115 -0
- package/dist/components/SBanner/SBanner.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/SButton/SButton.types.cjs +27 -0
- package/dist/components/SButton/SButton.types.js +25 -0
- package/dist/components/SButton/SButton.vue.cjs +6 -0
- package/dist/components/SButton/SButton.vue.js +6 -0
- package/dist/components/SButton/SButton.vue_vue_type_script_setup_true_lang.cjs +250 -0
- package/dist/components/SButton/SButton.vue_vue_type_script_setup_true_lang.js +250 -0
- package/dist/components/SButton/utils/useButtonBadge.cjs +69 -0
- package/dist/components/SButton/utils/useButtonBadge.js +69 -0
- package/dist/components/SButtonGroup/SButtonGroup.types.cjs +8 -0
- package/dist/components/SButtonGroup/SButtonGroup.types.js +8 -0
- package/dist/components/SButtonGroup/SButtonGroup.vue.cjs +6 -0
- package/dist/components/SButtonGroup/SButtonGroup.vue.js +6 -0
- package/dist/components/SButtonGroup/SButtonGroup.vue_vue_type_script_setup_true_lang.cjs +89 -0
- package/dist/components/SButtonGroup/SButtonGroup.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/components/SButtonGroup/utils/context.cjs +4 -0
- package/dist/components/SButtonGroup/utils/context.js +4 -0
- package/dist/components/SCalendar/utils/buildWorkTimeLegendItems.cjs +8 -0
- package/dist/components/SCalendar/utils/buildWorkTimeLegendItems.js +8 -0
- package/dist/components/SCalendar/utils/calendar.const.cjs +17 -0
- package/dist/components/SCalendar/utils/calendar.const.js +16 -0
- package/dist/components/SCalendar/utils/calendar.types.cjs +10 -0
- package/dist/components/SCalendar/utils/calendar.types.js +10 -0
- package/dist/components/SCalendar/utils/formatDurationHM.cjs +9 -0
- package/dist/components/SCalendar/utils/formatDurationHM.js +9 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.types.cjs +13 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.types.js +12 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.cjs +6 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.js +6 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue_vue_type_script_setup_true_lang.cjs +196 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue_vue_type_script_setup_true_lang.js +196 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.types.cjs +4 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.types.js +4 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue.cjs +6 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue.js +6 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue_vue_type_script_setup_true_lang.cjs +101 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/components/SCard/SCard.types.cjs +8 -0
- package/dist/components/SCard/SCard.types.js +8 -0
- package/dist/components/SCard/SCard.vue.cjs +6 -0
- package/dist/components/SCard/SCard.vue.js +6 -0
- package/dist/components/SCard/SCard.vue_vue_type_script_setup_true_lang.cjs +183 -0
- package/dist/components/SCard/SCard.vue_vue_type_script_setup_true_lang.js +183 -0
- package/dist/components/SChartBar/SChartBar.vue.cjs +6 -0
- package/dist/components/SChartBar/SChartBar.vue.js +6 -0
- package/dist/components/SChartBar/SChartBar.vue_vue_type_script_setup_true_lang.cjs +151 -0
- package/dist/components/SChartBar/SChartBar.vue_vue_type_script_setup_true_lang.js +151 -0
- package/dist/components/SChartBar/utils/buildBarChartConfig.cjs +166 -0
- package/dist/components/SChartBar/utils/buildBarChartConfig.js +166 -0
- package/dist/components/SChartBar/utils/createBarTargetLinePlugin.cjs +53 -0
- package/dist/components/SChartBar/utils/createBarTargetLinePlugin.js +53 -0
- package/dist/components/SChartBar/utils/createBarValueLabelPlugin.cjs +37 -0
- package/dist/components/SChartBar/utils/createBarValueLabelPlugin.js +37 -0
- package/dist/components/SChartBar/utils/skeletonBarSeries.cjs +33 -0
- package/dist/components/SChartBar/utils/skeletonBarSeries.js +33 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue.cjs +6 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue.js +6 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue_vue_type_script_setup_true_lang.cjs +110 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/components/SChartBurnup/utils/buildBurnupChartConfig.cjs +146 -0
- package/dist/components/SChartBurnup/utils/buildBurnupChartConfig.js +146 -0
- package/dist/components/SChartBurnup/utils/skeletonBurnupPoints.cjs +40 -0
- package/dist/components/SChartBurnup/utils/skeletonBurnupPoints.js +40 -0
- package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue.cjs +6 -0
- package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue.js +6 -0
- package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue_vue_type_script_setup_true_lang.cjs +95 -0
- package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/components/SChartHorizontalBar/utils/buildSChartHorizontalBarConfig.cjs +5 -0
- package/dist/components/SChartHorizontalBar/utils/buildSChartHorizontalBarConfig.js +5 -0
- package/dist/components/SChartLegend/SChartLegend.types.cjs +10 -0
- package/dist/components/SChartLegend/SChartLegend.types.js +10 -0
- package/dist/components/SChartLegend/SChartLegend.vue.cjs +6 -0
- package/dist/components/SChartLegend/SChartLegend.vue.js +6 -0
- package/dist/components/SChartLegend/SChartLegend.vue_vue_type_script_setup_true_lang.cjs +101 -0
- package/dist/components/SChartLegend/SChartLegend.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/components/SChartLine/SChartLine.vue.cjs +6 -0
- package/dist/components/SChartLine/SChartLine.vue.js +6 -0
- package/dist/components/SChartLine/SChartLine.vue_vue_type_script_setup_true_lang.cjs +93 -0
- package/dist/components/SChartLine/SChartLine.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/components/SChartLine/utils/buildLineChartConfig.cjs +95 -0
- package/dist/components/SChartLine/utils/buildLineChartConfig.js +95 -0
- package/dist/components/SChartLine/utils/skeletonChartPoints.cjs +29 -0
- package/dist/components/SChartLine/utils/skeletonChartPoints.js +29 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.cjs +6 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.js +6 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue_vue_type_script_setup_true_lang.cjs +155 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue_vue_type_script_setup_true_lang.js +155 -0
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.cjs +148 -0
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.js +148 -0
- package/dist/components/SChartMultiLine/utils/skeletonMultiLineSeries.cjs +48 -0
- package/dist/components/SChartMultiLine/utils/skeletonMultiLineSeries.js +48 -0
- package/dist/components/SChartPie/SChartPie.types.cjs +10 -0
- package/dist/components/SChartPie/SChartPie.types.js +10 -0
- package/dist/components/SChartPie/SChartPie.vue.cjs +6 -0
- package/dist/components/SChartPie/SChartPie.vue.js +6 -0
- package/dist/components/SChartPie/SChartPie.vue_vue_type_script_setup_true_lang.cjs +219 -0
- package/dist/components/SChartPie/SChartPie.vue_vue_type_script_setup_true_lang.js +219 -0
- package/dist/components/SChartPie/utils/buildPieChartConfig.cjs +67 -0
- package/dist/components/SChartPie/utils/buildPieChartConfig.js +67 -0
- package/dist/components/SChartPie/utils/skeletonPieSlices.cjs +27 -0
- package/dist/components/SChartPie/utils/skeletonPieSlices.js +27 -0
- package/dist/components/SChartProgress/SChartProgress.vue.cjs +6 -0
- package/dist/components/SChartProgress/SChartProgress.vue.js +6 -0
- package/dist/components/SChartProgress/SChartProgress.vue_vue_type_script_setup_true_lang.cjs +85 -0
- package/dist/components/SChartProgress/SChartProgress.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/components/SChartProgress/utils/buildProgressChartConfig.cjs +111 -0
- package/dist/components/SChartProgress/utils/buildProgressChartConfig.js +111 -0
- package/dist/components/SChartProgress/utils/buildProgressChartData.cjs +32 -0
- package/dist/components/SChartProgress/utils/buildProgressChartData.js +32 -0
- package/dist/components/SChartProgress/utils/formatProgressChartDate.cjs +8 -0
- package/dist/components/SChartProgress/utils/formatProgressChartDate.js +8 -0
- package/dist/components/SChartProgress/utils/resolveProgressChartPointStyle.cjs +25 -0
- package/dist/components/SChartProgress/utils/resolveProgressChartPointStyle.js +24 -0
- package/dist/components/SChartProgress/utils/skeletonProgressSnapshots.cjs +29 -0
- package/dist/components/SChartProgress/utils/skeletonProgressSnapshots.js +29 -0
- package/dist/components/SChartScatter/SChartScatter.vue.cjs +6 -0
- package/dist/components/SChartScatter/SChartScatter.vue.js +6 -0
- package/dist/components/SChartScatter/SChartScatter.vue_vue_type_script_setup_true_lang.cjs +109 -0
- package/dist/components/SChartScatter/SChartScatter.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/components/SChartScatter/utils/buildScatterChartConfig.cjs +181 -0
- package/dist/components/SChartScatter/utils/buildScatterChartConfig.js +181 -0
- package/dist/components/SChartScatter/utils/skeletonScatter.cjs +24 -0
- package/dist/components/SChartScatter/utils/skeletonScatter.js +23 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.cjs +6 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.js +6 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue_vue_type_script_setup_true_lang.cjs +174 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.cjs +91 -0
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.js +91 -0
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.cjs +84 -0
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.js +84 -0
- package/dist/components/SChartSegmentedBar/utils/skeletonSegments.cjs +15 -0
- package/dist/components/SChartSegmentedBar/utils/skeletonSegments.js +15 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.types.cjs +8 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.types.js +8 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.vue.cjs +6 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.vue.js +6 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.vue_vue_type_script_setup_true_lang.cjs +32 -0
- package/dist/components/SChartSkeletonHost/SChartSkeletonHost.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/components/SChartStackedArea/SChartStackedArea.vue.cjs +6 -0
- package/dist/components/SChartStackedArea/SChartStackedArea.vue.js +6 -0
- package/dist/components/SChartStackedArea/SChartStackedArea.vue_vue_type_script_setup_true_lang.cjs +101 -0
- package/dist/components/SChartStackedArea/SChartStackedArea.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/components/SChartStackedArea/utils/buildStackedAreaChartConfig.cjs +114 -0
- package/dist/components/SChartStackedArea/utils/buildStackedAreaChartConfig.js +114 -0
- package/dist/components/SChartStackedArea/utils/skeletonStackedSeries.cjs +108 -0
- package/dist/components/SChartStackedArea/utils/skeletonStackedSeries.js +108 -0
- package/dist/components/SChartStackedBar/SChartStackedBar.vue.cjs +6 -0
- package/dist/components/SChartStackedBar/SChartStackedBar.vue.js +6 -0
- package/dist/components/SChartStackedBar/SChartStackedBar.vue_vue_type_script_setup_true_lang.cjs +126 -0
- package/dist/components/SChartStackedBar/SChartStackedBar.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/SChartStackedBar/utils/buildStackedBarChartConfig.cjs +147 -0
- package/dist/components/SChartStackedBar/utils/buildStackedBarChartConfig.js +147 -0
- package/dist/components/SChartStackedBar/utils/createStackedBarTotalsPlugin.cjs +46 -0
- package/dist/components/SChartStackedBar/utils/createStackedBarTotalsPlugin.js +46 -0
- package/dist/components/SChartStackedBar/utils/createStackedBarTrendPlugin.cjs +45 -0
- package/dist/components/SChartStackedBar/utils/createStackedBarTrendPlugin.js +44 -0
- package/dist/components/SChartStackedBar/utils/skeletonStackedBarSeries.cjs +79 -0
- package/dist/components/SChartStackedBar/utils/skeletonStackedBarSeries.js +79 -0
- package/dist/components/SChartWidget/SChartWidget.vue.cjs +6 -0
- package/dist/components/SChartWidget/SChartWidget.vue.js +6 -0
- package/dist/components/SChartWidget/SChartWidget.vue_vue_type_script_setup_true_lang.cjs +96 -0
- package/dist/components/SChartWidget/SChartWidget.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/components/SCheckbox/SCheckbox.types.cjs +20 -0
- package/dist/components/SCheckbox/SCheckbox.types.js +18 -0
- package/dist/components/SCheckbox/SCheckbox.vue.cjs +6 -0
- package/dist/components/SCheckbox/SCheckbox.vue.js +6 -0
- package/dist/components/SCheckbox/SCheckbox.vue_vue_type_script_setup_true_lang.cjs +124 -0
- package/dist/components/SCheckbox/SCheckbox.vue_vue_type_script_setup_true_lang.js +124 -0
- package/dist/components/SChip/SChip.types.cjs +17 -0
- package/dist/components/SChip/SChip.types.js +16 -0
- package/dist/components/SChip/SChip.vue.cjs +6 -0
- package/dist/components/SChip/SChip.vue.js +6 -0
- package/dist/components/SChip/SChip.vue_vue_type_script_setup_true_lang.cjs +135 -0
- package/dist/components/SChip/SChip.vue_vue_type_script_setup_true_lang.js +135 -0
- package/dist/components/SColorPalette/SColorPalette.types.cjs +8 -0
- package/dist/components/SColorPalette/SColorPalette.types.js +8 -0
- package/dist/components/SColorPalette/SColorPalette.vue.cjs +6 -0
- package/dist/components/SColorPalette/SColorPalette.vue.js +6 -0
- package/dist/components/SColorPalette/SColorPalette.vue_vue_type_script_setup_true_lang.cjs +162 -0
- package/dist/components/SColorPalette/SColorPalette.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/components/SColorPicker/SColorPicker.vue.cjs +6 -0
- package/dist/components/SColorPicker/SColorPicker.vue.js +6 -0
- package/dist/components/SColorPicker/SColorPicker.vue_vue_type_script_setup_true_lang.cjs +209 -0
- package/dist/components/SColorPicker/SColorPicker.vue_vue_type_script_setup_true_lang.js +209 -0
- package/dist/components/SColorPicker/constants/SColorPicker.constants.cjs +4 -0
- package/dist/components/SColorPicker/constants/SColorPicker.constants.js +4 -0
- package/dist/components/SColorPicker/parts/SColorArea.vue.cjs +6 -0
- package/dist/components/SColorPicker/parts/SColorArea.vue.js +6 -0
- package/dist/components/SColorPicker/parts/SColorArea.vue_vue_type_script_setup_true_lang.cjs +94 -0
- package/dist/components/SColorPicker/parts/SColorArea.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/SColorPicker/parts/SColorValues.vue.cjs +6 -0
- package/dist/components/SColorPicker/parts/SColorValues.vue.js +6 -0
- package/dist/components/SColorPicker/parts/SColorValues.vue_vue_type_script_setup_true_lang.cjs +266 -0
- package/dist/components/SColorPicker/parts/SColorValues.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/components/SColorPicker/utils/resolveColorSwatchFillElement.cjs +10 -0
- package/dist/components/SColorPicker/utils/resolveColorSwatchFillElement.js +10 -0
- package/dist/components/SColorPicker/utils/useColorArea.cjs +156 -0
- package/dist/components/SColorPicker/utils/useColorArea.js +156 -0
- package/dist/components/SDayTimeline/SDayTimeline.types.cjs +5 -0
- package/dist/components/SDayTimeline/SDayTimeline.types.js +5 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue.cjs +6 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue.js +6 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue_vue_type_script_setup_true_lang.cjs +229 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue_vue_type_script_setup_true_lang.js +229 -0
- package/dist/components/SDropdown/SDropdown.types.cjs +6 -0
- package/dist/components/SDropdown/SDropdown.types.js +6 -0
- package/dist/components/SDropdown/SDropdown.vue.cjs +6 -0
- package/dist/components/SDropdown/SDropdown.vue.js +6 -0
- package/dist/components/SDropdown/SDropdown.vue_vue_type_script_setup_true_lang.cjs +307 -0
- package/dist/components/SDropdown/SDropdown.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/SDropdown/parts/SDropdownSheet.vue.cjs +6 -0
- package/dist/components/SDropdown/parts/SDropdownSheet.vue.js +6 -0
- package/dist/components/SDropdown/parts/SDropdownSheet.vue_vue_type_script_setup_true_lang.cjs +135 -0
- package/dist/components/SDropdown/parts/SDropdownSheet.vue_vue_type_script_setup_true_lang.js +135 -0
- package/dist/components/SDropdown/utils/context.cjs +4 -0
- package/dist/components/SDropdown/utils/context.js +4 -0
- package/dist/components/SDropdown/utils/dropdownFocusables.cjs +58 -0
- package/dist/components/SDropdown/utils/dropdownFocusables.js +54 -0
- package/dist/components/SDropdown/utils/resolveTriggerReference.cjs +11 -0
- package/dist/components/SDropdown/utils/resolveTriggerReference.js +11 -0
- package/dist/components/SDropdown/utils/useDropdownFocus.cjs +145 -0
- package/dist/components/SDropdown/utils/useDropdownFocus.js +145 -0
- package/dist/components/SDropdown/utils/useDropdownPanelTransition.cjs +30 -0
- package/dist/components/SDropdown/utils/useDropdownPanelTransition.js +30 -0
- package/dist/components/SDropdown/utils/useDropdownSheetMode.cjs +16 -0
- package/dist/components/SDropdown/utils/useDropdownSheetMode.js +16 -0
- package/dist/components/SDropdown/utils/useDropdownTree.cjs +42 -0
- package/dist/components/SDropdown/utils/useDropdownTree.js +42 -0
- package/dist/components/SDropdown/utils/useSheetDrag.cjs +124 -0
- package/dist/components/SDropdown/utils/useSheetDrag.js +124 -0
- package/dist/components/SDropdownMenu/SDropdownMenu.vue.cjs +6 -0
- package/dist/components/SDropdownMenu/SDropdownMenu.vue.js +6 -0
- package/dist/components/SDropdownMenu/SDropdownMenu.vue_vue_type_script_setup_true_lang.cjs +49 -0
- package/dist/components/SDropdownMenu/SDropdownMenu.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/SInlineGroup/SInlineGroup.types.cjs +8 -0
- package/dist/components/SInlineGroup/SInlineGroup.types.js +8 -0
- package/dist/components/SInlineGroup/SInlineGroup.vue.cjs +6 -0
- package/dist/components/SInlineGroup/SInlineGroup.vue.js +6 -0
- package/dist/components/SInlineGroup/SInlineGroup.vue_vue_type_script_setup_true_lang.cjs +17 -0
- package/dist/components/SInlineGroup/SInlineGroup.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/components/SInlineInput/SInlineInput.types.cjs +8 -0
- package/dist/components/SInlineInput/SInlineInput.types.js +8 -0
- package/dist/components/SInlineInput/SInlineInput.vue.cjs +6 -0
- package/dist/components/SInlineInput/SInlineInput.vue.js +6 -0
- package/dist/components/SInlineInput/SInlineInput.vue_vue_type_script_setup_true_lang.cjs +167 -0
- package/dist/components/SInlineInput/SInlineInput.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/SInlineInput/utils/inlineInputTextPatterns.cjs +7 -0
- package/dist/components/SInlineInput/utils/inlineInputTextPatterns.js +5 -0
- package/dist/components/SInlineInput/utils/useCursorManagement.cjs +122 -0
- package/dist/components/SInlineInput/utils/useCursorManagement.js +122 -0
- package/dist/components/SInlineInput/utils/useInlineInput.cjs +309 -0
- package/dist/components/SInlineInput/utils/useInlineInput.js +309 -0
- package/dist/components/SInlineInput/utils/useStringHistory.cjs +115 -0
- package/dist/components/SInlineInput/utils/useStringHistory.js +115 -0
- package/dist/components/SInlineMessage/SInlineMessage.types.cjs +8 -0
- package/dist/components/SInlineMessage/SInlineMessage.types.js +8 -0
- package/dist/components/SInlineMessage/SInlineMessage.vue.cjs +6 -0
- package/dist/components/SInlineMessage/SInlineMessage.vue.js +6 -0
- package/dist/components/SInlineMessage/SInlineMessage.vue_vue_type_script_setup_true_lang.cjs +20 -0
- package/dist/components/SInlineMessage/SInlineMessage.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/components/SInput/SInput.types.cjs +9 -0
- package/dist/components/SInput/SInput.types.js +9 -0
- package/dist/components/SInput/SInput.vue.cjs +6 -0
- package/dist/components/SInput/SInput.vue.js +6 -0
- package/dist/components/SInput/SInput.vue_vue_type_script_setup_true_lang.cjs +309 -0
- package/dist/components/SInput/SInput.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/components/SInput/utils/fieldLabelId.cjs +8 -0
- package/dist/components/SInput/utils/fieldLabelId.js +8 -0
- package/dist/components/SLabel/SLabel.types.cjs +17 -0
- package/dist/components/SLabel/SLabel.types.js +16 -0
- package/dist/components/SLabel/SLabel.vue.cjs +6 -0
- package/dist/components/SLabel/SLabel.vue.js +6 -0
- package/dist/components/SLabel/SLabel.vue_vue_type_script_setup_true_lang.cjs +76 -0
- package/dist/components/SLabel/SLabel.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/SList/SList.types.cjs +15 -0
- package/dist/components/SList/SList.types.js +15 -0
- package/dist/components/SList/SList.vue.cjs +6 -0
- package/dist/components/SList/SList.vue.js +6 -0
- package/dist/components/SList/SList.vue_vue_type_script_setup_true_lang.cjs +631 -0
- package/dist/components/SList/SList.vue_vue_type_script_setup_true_lang.js +631 -0
- package/dist/components/SList/utils/context.cjs +4 -0
- package/dist/components/SList/utils/context.js +4 -0
- package/dist/components/SList/utils/listGapTokens.cjs +29 -0
- package/dist/components/SList/utils/listGapTokens.js +27 -0
- package/dist/components/SList/utils/listOptionId.cjs +6 -0
- package/dist/components/SList/utils/listOptionId.js +6 -0
- package/dist/components/SList/utils/resolveListItemFields.cjs +22 -0
- package/dist/components/SList/utils/resolveListItemFields.js +20 -0
- package/dist/components/SListItem/SListItem.types.cjs +29 -0
- package/dist/components/SListItem/SListItem.types.js +28 -0
- package/dist/components/SListItem/SListItem.vue.cjs +6 -0
- package/dist/components/SListItem/SListItem.vue.js +6 -0
- package/dist/components/SListItem/SListItem.vue_vue_type_script_setup_true_lang.cjs +347 -0
- package/dist/components/SListItem/SListItem.vue_vue_type_script_setup_true_lang.js +347 -0
- package/dist/components/SListItem/utils/listItemAria.cjs +47 -0
- package/dist/components/SListItem/utils/listItemAria.js +47 -0
- package/dist/components/SNotification/SNotification.types.cjs +30 -0
- package/dist/components/SNotification/SNotification.types.js +27 -0
- package/dist/components/SNotification/SNotification.vue.cjs +6 -0
- package/dist/components/SNotification/SNotification.vue.js +6 -0
- package/dist/components/SNotification/SNotification.vue_vue_type_script_setup_true_lang.cjs +271 -0
- package/dist/components/SNotification/SNotification.vue_vue_type_script_setup_true_lang.js +271 -0
- package/dist/components/SNotification/resolveNotificationIcon.cjs +17 -0
- package/dist/components/SNotification/resolveNotificationIcon.js +17 -0
- package/dist/components/SOverflowGroup/SOverflowGroup.vue.cjs +4 -0
- package/dist/components/SOverflowGroup/SOverflowGroup.vue.js +5 -0
- package/dist/components/SOverflowGroup/SOverflowGroup.vue_vue_type_script_setup_true_lang.cjs +46 -0
- package/dist/components/SOverflowGroup/SOverflowGroup.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.types.cjs +15 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.types.js +14 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.vue.cjs +6 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.vue.js +6 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.vue_vue_type_script_setup_true_lang.cjs +185 -0
- package/dist/components/SPhotoEdit/SPhotoEdit.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/components/SRadio/SRadio.types.cjs +8 -0
- package/dist/components/SRadio/SRadio.types.js +8 -0
- package/dist/components/SRadio/SRadio.vue.cjs +6 -0
- package/dist/components/SRadio/SRadio.vue.js +6 -0
- package/dist/components/SRadio/SRadio.vue_vue_type_script_setup_true_lang.cjs +77 -0
- package/dist/components/SRadio/SRadio.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/components/SRoadmap/SRoadmap.types.cjs +13 -0
- package/dist/components/SRoadmap/SRoadmap.types.js +13 -0
- package/dist/components/SRoadmap/SRoadmap.vue.cjs +6 -0
- package/dist/components/SRoadmap/SRoadmap.vue.js +6 -0
- package/dist/components/SRoadmap/SRoadmap.vue_vue_type_script_setup_true_lang.cjs +231 -0
- package/dist/components/SRoadmap/SRoadmap.vue_vue_type_script_setup_true_lang.js +231 -0
- package/dist/components/SRoadmap/utils/buildRoadmapRows.cjs +35 -0
- package/dist/components/SRoadmap/utils/buildRoadmapRows.js +35 -0
- package/dist/components/SRoadmap/utils/roadmapDate.cjs +40 -0
- package/dist/components/SRoadmap/utils/roadmapDate.js +38 -0
- package/dist/components/SSegmentControl/SSegmentControl.types.cjs +16 -0
- package/dist/components/SSegmentControl/SSegmentControl.types.js +15 -0
- package/dist/components/SSegmentControl/SSegmentControl.vue.cjs +6 -0
- package/dist/components/SSegmentControl/SSegmentControl.vue.js +6 -0
- package/dist/components/SSegmentControl/SSegmentControl.vue_vue_type_script_setup_true_lang.cjs +108 -0
- package/dist/components/SSegmentControl/SSegmentControl.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/SSegmentControl/SSegmentControlItem.vue.cjs +4 -0
- package/dist/components/SSegmentControl/SSegmentControlItem.vue.js +5 -0
- package/dist/components/SSegmentControl/SSegmentControlItem.vue_vue_type_script_setup_true_lang.cjs +144 -0
- package/dist/components/SSegmentControl/SSegmentControlItem.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/components/SSegmentControl/utils/context.cjs +4 -0
- package/dist/components/SSegmentControl/utils/context.js +4 -0
- package/dist/components/SSegmentControl/utils/useSegmentIndicator.cjs +45 -0
- package/dist/components/SSegmentControl/utils/useSegmentIndicator.js +45 -0
- package/dist/components/SSelect/SSelect.types.cjs +8 -0
- package/dist/components/SSelect/SSelect.types.js +8 -0
- package/dist/components/SSelect/SSelect.vue.cjs +6 -0
- package/dist/components/SSelect/SSelect.vue.js +6 -0
- package/dist/components/SSelect/SSelect.vue_vue_type_script_setup_true_lang.cjs +710 -0
- package/dist/components/SSelect/SSelect.vue_vue_type_script_setup_true_lang.js +710 -0
- package/dist/components/SSelect/utils/buildSelectListItemProps.cjs +18 -0
- package/dist/components/SSelect/utils/buildSelectListItemProps.js +18 -0
- package/dist/components/SSelect/utils/resolveSelectItemValue.cjs +35 -0
- package/dist/components/SSelect/utils/resolveSelectItemValue.js +30 -0
- package/dist/components/SSelect/utils/useSelectState.cjs +192 -0
- package/dist/components/SSelect/utils/useSelectState.js +192 -0
- package/dist/components/STab/STab.types.cjs +14 -0
- package/dist/components/STab/STab.types.js +13 -0
- package/dist/components/STab/STab.vue.cjs +6 -0
- package/dist/components/STab/STab.vue.js +6 -0
- package/dist/components/STab/STab.vue_vue_type_script_setup_true_lang.cjs +366 -0
- package/dist/components/STab/STab.vue_vue_type_script_setup_true_lang.js +366 -0
- package/dist/components/STable/STable.types.cjs +99 -0
- package/dist/components/STable/STable.types.js +88 -0
- package/dist/components/STable/STable.vue.cjs +6 -0
- package/dist/components/STable/STable.vue.js +6 -0
- package/dist/components/STable/STable.vue_vue_type_script_setup_true_lang.cjs +1355 -0
- package/dist/components/STable/STable.vue_vue_type_script_setup_true_lang.js +1355 -0
- package/dist/components/STable/constants/tableSizes.cjs +36 -0
- package/dist/components/STable/constants/tableSizes.js +29 -0
- package/dist/components/STable/parts/STableCellText.vue.cjs +4 -0
- package/dist/components/STable/parts/STableCellText.vue.js +5 -0
- package/dist/components/STable/parts/STableCellText.vue_vue_type_script_setup_true_lang.cjs +31 -0
- package/dist/components/STable/parts/STableCellText.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/STable/parts/STableCheckbox.vue.cjs +4 -0
- package/dist/components/STable/parts/STableCheckbox.vue.js +5 -0
- package/dist/components/STable/parts/STableCheckbox.vue_vue_type_script_setup_true_lang.cjs +56 -0
- package/dist/components/STable/parts/STableCheckbox.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/STable/parts/STableContentRow.vue.cjs +4 -0
- package/dist/components/STable/parts/STableContentRow.vue.js +5 -0
- package/dist/components/STable/parts/STableContentRow.vue_vue_type_script_setup_true_lang.cjs +55 -0
- package/dist/components/STable/parts/STableContentRow.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/STable/parts/STableGroupRow.vue.cjs +4 -0
- package/dist/components/STable/parts/STableGroupRow.vue.js +5 -0
- package/dist/components/STable/parts/STableGroupRow.vue_vue_type_script_setup_true_lang.cjs +210 -0
- package/dist/components/STable/parts/STableGroupRow.vue_vue_type_script_setup_true_lang.js +210 -0
- package/dist/components/STable/parts/STableHeaderCell.vue.cjs +4 -0
- package/dist/components/STable/parts/STableHeaderCell.vue.js +5 -0
- package/dist/components/STable/parts/STableHeaderCell.vue_vue_type_script_setup_true_lang.cjs +201 -0
- package/dist/components/STable/parts/STableHeaderCell.vue_vue_type_script_setup_true_lang.js +201 -0
- package/dist/components/STable/parts/STableHint.vue.cjs +4 -0
- package/dist/components/STable/parts/STableHint.vue.js +5 -0
- package/dist/components/STable/parts/STableHint.vue_vue_type_script_setup_true_lang.cjs +31 -0
- package/dist/components/STable/parts/STableHint.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/STable/parts/STablePlaceholderRow.vue.cjs +4 -0
- package/dist/components/STable/parts/STablePlaceholderRow.vue.js +5 -0
- package/dist/components/STable/parts/STablePlaceholderRow.vue_vue_type_script_setup_true_lang.cjs +53 -0
- package/dist/components/STable/parts/STablePlaceholderRow.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/components/STable/parts/STableRow.vue.cjs +4 -0
- package/dist/components/STable/parts/STableRow.vue.js +5 -0
- package/dist/components/STable/parts/STableRow.vue_vue_type_script_setup_true_lang.cjs +360 -0
- package/dist/components/STable/parts/STableRow.vue_vue_type_script_setup_true_lang.js +360 -0
- package/dist/components/STable/parts/STableSkeletonRow.vue.cjs +4 -0
- package/dist/components/STable/parts/STableSkeletonRow.vue.js +5 -0
- package/dist/components/STable/parts/STableSkeletonRow.vue_vue_type_script_setup_true_lang.cjs +47 -0
- package/dist/components/STable/parts/STableSkeletonRow.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/STable/utils/resolveTableRowColor.cjs +19 -0
- package/dist/components/STable/utils/resolveTableRowColor.js +18 -0
- package/dist/components/STable/utils/tableDndShared.cjs +15 -0
- package/dist/components/STable/utils/tableDndShared.js +12 -0
- package/dist/components/STable/utils/useFlatTableRows.cjs +252 -0
- package/dist/components/STable/utils/useFlatTableRows.js +249 -0
- package/dist/components/STable/utils/useTableCellPlans.cjs +118 -0
- package/dist/components/STable/utils/useTableCellPlans.js +118 -0
- package/dist/components/STable/utils/useTableColumnDnd.cjs +155 -0
- package/dist/components/STable/utils/useTableColumnDnd.js +155 -0
- package/dist/components/STable/utils/useTableColumnResize.cjs +144 -0
- package/dist/components/STable/utils/useTableColumnResize.js +144 -0
- package/dist/components/STable/utils/useTableColumns.cjs +311 -0
- package/dist/components/STable/utils/useTableColumns.js +309 -0
- package/dist/components/STable/utils/useTableGridFocus.cjs +400 -0
- package/dist/components/STable/utils/useTableGridFocus.js +398 -0
- package/dist/components/STable/utils/useTableGridKeyboard.cjs +224 -0
- package/dist/components/STable/utils/useTableGridKeyboard.js +224 -0
- package/dist/components/STable/utils/useTableRenderEntries.cjs +115 -0
- package/dist/components/STable/utils/useTableRenderEntries.js +115 -0
- package/dist/components/STable/utils/useTableRowDnd.cjs +308 -0
- package/dist/components/STable/utils/useTableRowDnd.js +308 -0
- package/dist/components/STable/utils/useTableRowHydration.cjs +136 -0
- package/dist/components/STable/utils/useTableRowHydration.js +136 -0
- package/dist/components/STable/utils/useTableScrollScale.cjs +222 -0
- package/dist/components/STable/utils/useTableScrollScale.js +222 -0
- package/dist/components/STable/utils/useTableSelection.cjs +137 -0
- package/dist/components/STable/utils/useTableSelection.js +137 -0
- package/dist/components/STable/utils/useTableServiceRows.cjs +125 -0
- package/dist/components/STable/utils/useTableServiceRows.js +125 -0
- package/dist/components/STable/utils/useTableSorting.cjs +89 -0
- package/dist/components/STable/utils/useTableSorting.js +89 -0
- package/dist/components/STable/utils/useTableStickyRows.cjs +132 -0
- package/dist/components/STable/utils/useTableStickyRows.js +132 -0
- package/dist/components/STable/utils/useTableStyleVars.cjs +41 -0
- package/dist/components/STable/utils/useTableStyleVars.js +41 -0
- package/dist/components/STable/utils/useTableVirtualRows.cjs +251 -0
- package/dist/components/STable/utils/useTableVirtualRows.js +251 -0
- package/dist/components/STabs/STabs.vue.cjs +6 -0
- package/dist/components/STabs/STabs.vue.js +6 -0
- package/dist/components/STabs/STabs.vue_vue_type_script_setup_true_lang.cjs +133 -0
- package/dist/components/STabs/STabs.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/components/STabs/utils/context.cjs +4 -0
- package/dist/components/STabs/utils/context.js +4 -0
- package/dist/components/STabs/utils/useTabsIndicator.cjs +53 -0
- package/dist/components/STabs/utils/useTabsIndicator.js +53 -0
- package/dist/components/STag/STag.types.cjs +28 -0
- package/dist/components/STag/STag.types.js +27 -0
- package/dist/components/STag/STag.vue.cjs +6 -0
- package/dist/components/STag/STag.vue.js +6 -0
- package/dist/components/STag/STag.vue_vue_type_script_setup_true_lang.cjs +163 -0
- package/dist/components/STag/STag.vue_vue_type_script_setup_true_lang.js +163 -0
- package/dist/components/STag/utils/resolveTagColor.cjs +19 -0
- package/dist/components/STag/utils/resolveTagColor.js +17 -0
- package/dist/components/STagGroup/STagGroup.vue.cjs +6 -0
- package/dist/components/STagGroup/STagGroup.vue.js +6 -0
- package/dist/components/STagGroup/STagGroup.vue_vue_type_script_setup_true_lang.cjs +49 -0
- package/dist/components/STagGroup/STagGroup.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/STagGroup/utils/applyTagGroupItemProps.cjs +13 -0
- package/dist/components/STagGroup/utils/applyTagGroupItemProps.js +13 -0
- package/dist/components/STextarea/STextarea.vue.cjs +6 -0
- package/dist/components/STextarea/STextarea.vue.js +6 -0
- package/dist/components/STextarea/STextarea.vue_vue_type_script_setup_true_lang.cjs +237 -0
- package/dist/components/STextarea/STextarea.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/components/SToast/SToast.vue.cjs +6 -0
- package/dist/components/SToast/SToast.vue.js +6 -0
- package/dist/components/SToast/SToast.vue_vue_type_script_setup_true_lang.cjs +101 -0
- package/dist/components/SToast/SToast.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/components/SToastProvider/SToastProvider.vue.cjs +6 -0
- package/dist/components/SToastProvider/SToastProvider.vue.js +6 -0
- package/dist/components/SToastProvider/SToastProvider.vue_vue_type_script_setup_true_lang.cjs +212 -0
- package/dist/components/SToastProvider/SToastProvider.vue_vue_type_script_setup_true_lang.js +212 -0
- package/dist/components/SToastProvider/SToastProviderToast.vue.cjs +4 -0
- package/dist/components/SToastProvider/SToastProviderToast.vue.js +5 -0
- package/dist/components/SToastProvider/SToastProviderToast.vue_vue_type_script_setup_true_lang.cjs +75 -0
- package/dist/components/SToastProvider/SToastProviderToast.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/SToastProvider/useToast.cjs +96 -0
- package/dist/components/SToastProvider/useToast.js +97 -0
- package/dist/components/SToastProvider/utils/computeAutoDuration.cjs +14 -0
- package/dist/components/SToastProvider/utils/computeAutoDuration.js +11 -0
- package/dist/components/SToastProvider/utils/toastProviderConstants.cjs +4 -0
- package/dist/components/SToastProvider/utils/toastProviderConstants.js +4 -0
- package/dist/components/SToggle/SToggle.types.cjs +15 -0
- package/dist/components/SToggle/SToggle.types.js +14 -0
- package/dist/components/SToggle/SToggle.vue.cjs +6 -0
- package/dist/components/SToggle/SToggle.vue.js +6 -0
- package/dist/components/SToggle/SToggle.vue_vue_type_script_setup_true_lang.cjs +80 -0
- package/dist/components/SToggle/SToggle.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/composables/connectedPosition/computeArrowPosition.cjs +51 -0
- package/dist/composables/connectedPosition/computeArrowPosition.js +51 -0
- package/dist/composables/connectedPosition/computeConnectedPosition.cjs +96 -0
- package/dist/composables/connectedPosition/computeConnectedPosition.js +96 -0
- package/dist/composables/connectedPosition/flipSide.cjs +22 -0
- package/dist/composables/connectedPosition/flipSide.js +22 -0
- package/dist/composables/connectedPosition/getBoundaryRect.cjs +37 -0
- package/dist/composables/connectedPosition/getBoundaryRect.js +37 -0
- package/dist/composables/connectedPosition/getOverflow.cjs +60 -0
- package/dist/composables/connectedPosition/getOverflow.js +54 -0
- package/dist/composables/connectedPosition/getScrollParents.cjs +21 -0
- package/dist/composables/connectedPosition/getScrollParents.js +21 -0
- package/dist/composables/connectedPosition/getViewportRect.cjs +33 -0
- package/dist/composables/connectedPosition/getViewportRect.js +32 -0
- package/dist/composables/connectedPosition/parseAnchor.cjs +78 -0
- package/dist/composables/connectedPosition/parseAnchor.js +77 -0
- package/dist/composables/connectedPosition/positionCoordinates.cjs +109 -0
- package/dist/composables/connectedPosition/positionCoordinates.js +107 -0
- package/dist/composables/connectedPosition/resolveElement.cjs +9 -0
- package/dist/composables/connectedPosition/resolveElement.js +9 -0
- package/dist/composables/connectedPosition/types.cjs +47 -0
- package/dist/composables/connectedPosition/types.js +43 -0
- package/dist/composables/treeKeyboardNavigation.cjs +58 -0
- package/dist/composables/treeKeyboardNavigation.js +55 -0
- package/dist/composables/useAriaAttrs.cjs +37 -0
- package/dist/composables/useAriaAttrs.js +37 -0
- package/dist/composables/useChart.cjs +51 -0
- package/dist/composables/useChart.js +51 -0
- package/dist/composables/useChartInteractivity.cjs +26 -0
- package/dist/composables/useChartInteractivity.js +26 -0
- package/dist/composables/useEscapeDismiss.cjs +23 -0
- package/dist/composables/useEscapeDismiss.js +23 -0
- package/dist/composables/useFieldAttrs.cjs +36 -0
- package/dist/composables/useFieldAttrs.js +36 -0
- package/dist/composables/useFieldFilled.cjs +17 -0
- package/dist/composables/useFieldFilled.js +17 -0
- package/dist/composables/useFieldFocus.cjs +29 -0
- package/dist/composables/useFieldFocus.js +29 -0
- package/dist/composables/useFieldMessages.cjs +15 -0
- package/dist/composables/useFieldMessages.js +15 -0
- package/dist/composables/useFlatTreeList.cjs +148 -0
- package/dist/composables/useFlatTreeList.js +147 -0
- package/dist/composables/useFloatingOverlay.cjs +268 -0
- package/dist/composables/useFloatingOverlay.js +268 -0
- package/dist/composables/useHasListener.cjs +8 -0
- package/dist/composables/useHasListener.js +8 -0
- package/dist/composables/useLink.cjs +79 -0
- package/dist/composables/useLink.js +79 -0
- package/dist/composables/useOverflowGroup.cjs +29 -0
- package/dist/composables/useOverflowGroup.js +29 -0
- package/dist/composables/useResizeAutoScroll.cjs +163 -0
- package/dist/composables/useResizeAutoScroll.js +163 -0
- package/dist/composables/useSListEndReached.cjs +18 -0
- package/dist/composables/useSListEndReached.js +18 -0
- package/dist/composables/useSelectLink.cjs +16 -0
- package/dist/composables/useSelectLink.js +16 -0
- package/dist/composables/useSelectionGroup.cjs +323 -0
- package/dist/composables/useSelectionGroup.js +318 -0
- package/dist/composables/useSelectionGroupItem.cjs +62 -0
- package/dist/composables/useSelectionGroupItem.js +62 -0
- package/dist/entries/avatar-group.cjs +5 -1
- package/dist/entries/avatar-group.js +3 -2
- package/dist/entries/avatar.cjs +9 -1
- package/dist/entries/avatar.js +3 -2
- package/dist/entries/badge.cjs +6 -1
- package/dist/entries/badge.js +3 -2
- package/dist/entries/button-group.cjs +8 -1
- package/dist/entries/button-group.js +4 -3
- package/dist/entries/button.cjs +7 -1
- package/dist/entries/button.js +3 -2
- package/dist/entries/calendar.cjs +23 -1
- package/dist/entries/calendar.js +11 -2
- package/dist/entries/card.cjs +5 -1
- package/dist/entries/card.js +3 -2
- package/dist/entries/chart-bar.cjs +3 -1
- package/dist/entries/chart-bar.js +2 -2
- package/dist/entries/chart-burnup.cjs +3 -1
- package/dist/entries/chart-burnup.js +2 -2
- package/dist/entries/chart-horizontal-bar.cjs +3 -1
- package/dist/entries/chart-horizontal-bar.js +2 -2
- package/dist/entries/chart-line.cjs +3 -1
- package/dist/entries/chart-line.js +2 -2
- package/dist/entries/chart-multi-line.cjs +3 -1
- package/dist/entries/chart-multi-line.js +2 -2
- package/dist/entries/chart-pie.cjs +5 -1
- package/dist/entries/chart-pie.js +3 -2
- package/dist/entries/chart-progress.cjs +3 -1
- package/dist/entries/chart-progress.js +2 -2
- package/dist/entries/chart-scatter.cjs +3 -1
- package/dist/entries/chart-scatter.js +2 -2
- package/dist/entries/chart-stacked-area.cjs +3 -1
- package/dist/entries/chart-stacked-area.js +2 -2
- package/dist/entries/chart-stacked-bar.cjs +3 -1
- package/dist/entries/chart-stacked-bar.js +2 -2
- package/dist/entries/checkbox.cjs +7 -1
- package/dist/entries/checkbox.js +3 -2
- package/dist/entries/chip.cjs +6 -1
- package/dist/entries/chip.js +3 -2
- package/dist/entries/color-palette.cjs +14 -1
- package/dist/entries/color-palette.js +7 -3
- package/dist/entries/color-picker.cjs +16 -1
- package/dist/entries/color-picker.js +8 -4
- package/dist/entries/composables.cjs +18 -1
- package/dist/entries/composables.js +8 -5
- package/dist/entries/dropdown-menu.cjs +3 -0
- package/dist/entries/dropdown-menu.js +2 -0
- package/dist/entries/dropdown.cjs +7 -1
- package/dist/entries/dropdown.js +4 -3
- package/dist/entries/icon.cjs +9 -1
- package/dist/entries/inline-input.cjs +5 -1
- package/dist/entries/inline-input.js +3 -2
- package/dist/entries/inline-message.cjs +5 -1
- package/dist/entries/inline-message.js +3 -2
- package/dist/entries/input.cjs +5 -1
- package/dist/entries/input.js +3 -2
- package/dist/entries/label.cjs +6 -1
- package/dist/entries/label.js +3 -2
- package/dist/entries/list-item.cjs +6 -1
- package/dist/entries/list-item.js +3 -2
- package/dist/entries/list.cjs +5 -1
- package/dist/entries/list.js +3 -2
- package/dist/entries/photo-edit.cjs +6 -1
- package/dist/entries/photo-edit.js +3 -2
- package/dist/entries/progress-bar.cjs +9 -1
- package/dist/entries/radio.cjs +5 -1
- package/dist/entries/radio.js +3 -2
- package/dist/entries/segment-control.cjs +6 -1
- package/dist/entries/segment-control.js +3 -2
- package/dist/entries/select.cjs +5 -1
- package/dist/entries/select.js +3 -2
- package/dist/entries/separator.cjs +14 -1
- package/dist/entries/separator.js +2 -2
- package/dist/entries/skeleton.cjs +9 -1
- package/dist/entries/spinner.cjs +9 -1
- package/dist/entries/tab.cjs +6 -1
- package/dist/entries/tab.js +3 -2
- package/dist/entries/table.cjs +16 -1
- package/dist/entries/table.js +3 -2
- package/dist/entries/tabs.cjs +8 -1
- package/dist/entries/tabs.js +4 -3
- package/dist/entries/tag-group.cjs +6 -1
- package/dist/entries/tag-group.js +3 -3
- package/dist/entries/tag.cjs +6 -1
- package/dist/entries/tag.js +3 -2
- package/dist/entries/textarea.cjs +3 -1
- package/dist/entries/textarea.js +2 -2
- package/dist/entries/toggle.cjs +6 -1
- package/dist/entries/toggle.js +3 -2
- package/dist/entries/tokens.cjs +9 -1
- package/dist/index.cjs +298 -1
- package/dist/index.js +105 -1269
- package/dist/uikit-components.css +1 -1
- package/dist/utils/chart/bar/createStackedBarHoverOutlinePlugin.cjs +63 -0
- package/dist/utils/chart/bar/createStackedBarHoverOutlinePlugin.js +63 -0
- package/dist/utils/chart/bar/createStackedBarTooltipCallbacks.cjs +53 -0
- package/dist/utils/chart/bar/createStackedBarTooltipCallbacks.js +51 -0
- package/dist/utils/chart/bar/resolveBarStackedSeriesColor.cjs +11 -0
- package/dist/utils/chart/bar/resolveBarStackedSeriesColor.js +11 -0
- package/dist/utils/chart/burnup/createBurnupTagPlugin.cjs +63 -0
- package/dist/utils/chart/burnup/createBurnupTagPlugin.js +63 -0
- package/dist/utils/chart/burnup/createBurnupTodayLinePlugin.cjs +24 -0
- package/dist/utils/chart/burnup/createBurnupTodayLinePlugin.js +24 -0
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.cjs +17 -0
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.js +16 -0
- package/dist/utils/chart/core/applyChartHighlightedYTick.cjs +21 -0
- package/dist/utils/chart/core/applyChartHighlightedYTick.js +21 -0
- package/dist/utils/chart/core/buildCartesianChartScales.cjs +42 -0
- package/dist/utils/chart/core/buildCartesianChartScales.js +42 -0
- package/dist/utils/chart/core/buildChartLegendItems.cjs +7 -0
- package/dist/utils/chart/core/buildChartLegendItems.js +7 -0
- package/dist/utils/chart/core/buildChartMirrorScale.cjs +17 -0
- package/dist/utils/chart/core/buildChartMirrorScale.js +16 -0
- package/dist/utils/chart/core/buildChartSeriesPoints.cjs +7 -0
- package/dist/utils/chart/core/buildChartSeriesPoints.js +7 -0
- package/dist/utils/chart/core/chartCssVariables.cjs +151 -0
- package/dist/utils/chart/core/chartCssVariables.js +144 -0
- package/dist/utils/chart/core/chartInteractivity.cjs +178 -0
- package/dist/utils/chart/core/chartInteractivity.js +170 -0
- package/dist/utils/chart/core/chartSkeletonConfig.cjs +17 -0
- package/dist/utils/chart/core/chartSkeletonConfig.js +15 -0
- package/dist/utils/chart/core/createChartMarkersPlugin.cjs +85 -0
- package/dist/utils/chart/core/createChartMarkersPlugin.js +85 -0
- package/dist/utils/chart/core/createCustomTooltipCallbacks.cjs +12 -0
- package/dist/utils/chart/core/createCustomTooltipCallbacks.js +12 -0
- package/dist/utils/chart/core/createZeroLinePlugin.cjs +24 -0
- package/dist/utils/chart/core/createZeroLinePlugin.js +24 -0
- package/dist/utils/chart/core/registerChartJs.cjs +42 -0
- package/dist/utils/chart/core/registerChartJs.js +42 -0
- package/dist/utils/chart/core/resolveChartValueRange.cjs +19 -0
- package/dist/utils/chart/core/resolveChartValueRange.js +19 -0
- package/dist/utils/chart/core/resolveSeriesPaletteColor.cjs +11 -0
- package/dist/utils/chart/core/resolveSeriesPaletteColor.js +11 -0
- package/dist/utils/chart/core/splitChartAxisLabel.cjs +5 -0
- package/dist/utils/chart/core/splitChartAxisLabel.js +5 -0
- package/dist/utils/chart/css/applyOpacityToCssColor.cjs +8 -0
- package/dist/utils/chart/css/applyOpacityToCssColor.js +8 -0
- package/dist/utils/chart/css/readCssColor.cjs +8 -0
- package/dist/utils/chart/css/readCssColor.js +8 -0
- package/dist/utils/chart/css/readCssNumber.cjs +11 -0
- package/dist/utils/chart/css/readCssNumber.js +11 -0
- package/dist/utils/chart/css/resolveChartLabelFont.cjs +8 -0
- package/dist/utils/chart/css/resolveChartLabelFont.js +8 -0
- package/dist/utils/chart/css/resolveCssColorValue.cjs +10 -0
- package/dist/utils/chart/css/resolveCssColorValue.js +10 -0
- package/dist/utils/chart/horizontalBar/buildHorizontalBarChartConfig.cjs +96 -0
- package/dist/utils/chart/horizontalBar/buildHorizontalBarChartConfig.js +96 -0
- package/dist/utils/chart/horizontalBar/buildHorizontalBarChartScales.cjs +53 -0
- package/dist/utils/chart/horizontalBar/buildHorizontalBarChartScales.js +53 -0
- package/dist/utils/chart/horizontalBar/createHorizontalBarValueLabelPlugin.cjs +47 -0
- package/dist/utils/chart/horizontalBar/createHorizontalBarValueLabelPlugin.js +46 -0
- package/dist/utils/chart/horizontalBar/resolveHorizontalBarColor.cjs +11 -0
- package/dist/utils/chart/horizontalBar/resolveHorizontalBarColor.js +11 -0
- package/dist/utils/chart/horizontalBar/resolveHorizontalBarXMax.cjs +11 -0
- package/dist/utils/chart/horizontalBar/resolveHorizontalBarXMax.js +11 -0
- package/dist/utils/chart/horizontalBar/skeletonHorizontalBarFixture.cjs +29 -0
- package/dist/utils/chart/horizontalBar/skeletonHorizontalBarFixture.js +29 -0
- package/dist/utils/chart/line/createChartAreaFillGradient.cjs +41 -0
- package/dist/utils/chart/line/createChartAreaFillGradient.js +39 -0
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.cjs +43 -0
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.js +43 -0
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.cjs +29 -0
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.js +27 -0
- package/dist/utils/chart/multiLine/resolveMultiLineSeriesColor.cjs +11 -0
- package/dist/utils/chart/multiLine/resolveMultiLineSeriesColor.js +11 -0
- package/dist/utils/chart/pie/createPieSegmentBadgePlugin.cjs +61 -0
- package/dist/utils/chart/pie/createPieSegmentBadgePlugin.js +61 -0
- package/dist/utils/chart/pie/createPieTooltipCallbacks.cjs +11 -0
- package/dist/utils/chart/pie/createPieTooltipCallbacks.js +11 -0
- package/dist/utils/chart/pie/resolvePieSliceColor.cjs +11 -0
- package/dist/utils/chart/pie/resolvePieSliceColor.js +11 -0
- package/dist/utils/chart/progress/createProgressChartTooltipPositioner.cjs +25 -0
- package/dist/utils/chart/progress/createProgressChartTooltipPositioner.js +24 -0
- package/dist/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.cjs +30 -0
- package/dist/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.js +30 -0
- package/dist/utils/chart/stacked/areChartSeriesAligned.cjs +14 -0
- package/dist/utils/chart/stacked/areChartSeriesAligned.js +14 -0
- package/dist/utils/chart/stacked/createChartCrosshairPlugin.cjs +23 -0
- package/dist/utils/chart/stacked/createChartCrosshairPlugin.js +23 -0
- package/dist/utils/chart/stacked/createStackedAreaTooltipCallbacks.cjs +34 -0
- package/dist/utils/chart/stacked/createStackedAreaTooltipCallbacks.js +32 -0
- package/dist/utils/chart/stacked/resolveStackedChartContext.cjs +21 -0
- package/dist/utils/chart/stacked/resolveStackedChartContext.js +21 -0
- package/dist/utils/chart/stacked/resolveStackedSeriesColor.cjs +11 -0
- package/dist/utils/chart/stacked/resolveStackedSeriesColor.js +11 -0
- package/dist/utils/chart/stacked/resolveStackedYMax.cjs +16 -0
- package/dist/utils/chart/stacked/resolveStackedYMax.js +16 -0
- package/dist/utils/color/colorFormatChannels.cjs +165 -0
- package/dist/utils/color/colorFormatChannels.js +158 -0
- package/dist/utils/color/colorValue.cjs +31 -0
- package/dist/utils/color/colorValue.js +27 -0
- package/dist/utils/color/contrastSurfaceTextColor.cjs +60 -0
- package/dist/utils/color/contrastSurfaceTextColor.js +59 -0
- package/dist/utils/color/defaultPaletteColors.cjs +17 -0
- package/dist/utils/color/defaultPaletteColors.js +17 -0
- package/dist/utils/color/formatColorForDisplay.cjs +45 -0
- package/dist/utils/color/formatColorForDisplay.js +42 -0
- package/dist/utils/color/parseColorFromInput.cjs +34 -0
- package/dist/utils/color/parseColorFromInput.js +34 -0
- package/dist/utils/color/recommendedColorPalette.cjs +36 -0
- package/dist/utils/color/recommendedColorPalette.js +36 -0
- package/dist/utils/color/types.cjs +25 -0
- package/dist/utils/color/types.js +24 -0
- package/dist/utils/getIndicatorMetricsPercent.cjs +34 -0
- package/dist/utils/getIndicatorMetricsPercent.js +33 -0
- package/dist/utils/normalizeFieldMessages.cjs +8 -0
- package/dist/utils/normalizeFieldMessages.js +8 -0
- package/dist/utils/vnodes/collectSlotVnodes.cjs +39 -0
- package/dist/utils/vnodes/collectSlotVnodes.js +39 -0
- package/dist/utils/vnodes/renderVnodeList.cjs +16 -0
- package/dist/utils/vnodes/renderVnodeList.js +16 -0
- package/dist/utils/vueRouterLinkPresentation.cjs +30 -0
- package/dist/utils/vueRouterLinkPresentation.js +28 -0
- package/dist/vendor/lodash-es/_Symbol.cjs +5 -0
- package/dist/vendor/lodash-es/_Symbol.js +6 -0
- package/dist/vendor/lodash-es/_baseGetTag.cjs +21 -0
- package/dist/vendor/lodash-es/_baseGetTag.js +21 -0
- package/dist/vendor/lodash-es/_baseTrim.cjs +16 -0
- package/dist/vendor/lodash-es/_baseTrim.js +16 -0
- package/dist/vendor/lodash-es/_freeGlobal.cjs +5 -0
- package/dist/vendor/lodash-es/_freeGlobal.js +5 -0
- package/dist/vendor/lodash-es/_getRawTag.cjs +34 -0
- package/dist/vendor/lodash-es/_getRawTag.js +34 -0
- package/dist/vendor/lodash-es/_objectToString.cjs +19 -0
- package/dist/vendor/lodash-es/_objectToString.js +19 -0
- package/dist/vendor/lodash-es/_root.cjs +8 -0
- package/dist/vendor/lodash-es/_root.js +8 -0
- package/dist/vendor/lodash-es/_trimmedEndIndex.cjs +18 -0
- package/dist/vendor/lodash-es/_trimmedEndIndex.js +18 -0
- package/dist/vendor/lodash-es/debounce.cjs +132 -0
- package/dist/vendor/lodash-es/debounce.js +132 -0
- package/dist/vendor/lodash-es/isObject.cjs +32 -0
- package/dist/vendor/lodash-es/isObject.js +32 -0
- package/dist/vendor/lodash-es/isObjectLike.cjs +30 -0
- package/dist/vendor/lodash-es/isObjectLike.js +30 -0
- package/dist/vendor/lodash-es/isSymbol.cjs +27 -0
- package/dist/vendor/lodash-es/isSymbol.js +27 -0
- package/dist/vendor/lodash-es/now.cjs +23 -0
- package/dist/vendor/lodash-es/now.js +23 -0
- package/dist/vendor/lodash-es/toNumber.cjs +51 -0
- package/dist/vendor/lodash-es/toNumber.js +51 -0
- package/package.json +1 -1
- package/dist/SAvatar-6uaisUHm.js +0 -267
- package/dist/SAvatar-BQNqFdkk.cjs +0 -1
- package/dist/SAvatarGroup-D27squmU.cjs +0 -1
- package/dist/SAvatarGroup-DnVhY7I1.js +0 -47
- package/dist/SBadge-Dn87LB9z.cjs +0 -1
- package/dist/SBadge-Du9iIiXS.js +0 -85
- package/dist/SButton-CZW6Y8Vw.cjs +0 -1
- package/dist/SButton-n2Zuqh04.js +0 -249
- package/dist/SButtonGroup-BqW5Rz1p.js +0 -88
- package/dist/SButtonGroup-DSi8mQSz.cjs +0 -1
- package/dist/SCard-CYPxwmOm.cjs +0 -1
- package/dist/SCard-CuiQMwUB.js +0 -132
- package/dist/SChartBar-BAO2FtIO.cjs +0 -1
- package/dist/SChartBar-DHjm1H0N.js +0 -304
- package/dist/SChartBurnup-9s2KNzCr.cjs +0 -1
- package/dist/SChartBurnup-B1KU1E5B.js +0 -261
- package/dist/SChartHorizontalBar-DwY63iRT.cjs +0 -1
- package/dist/SChartHorizontalBar-VKU0b6Jx.js +0 -245
- package/dist/SChartLegend-At0mMO09.js +0 -88
- package/dist/SChartLegend-DQMLr6yV.cjs +0 -1
- package/dist/SChartLine-rnEsQv-q.js +0 -165
- package/dist/SChartLine-tj-AapTr.cjs +0 -1
- package/dist/SChartMultiLine-C4jjmLEb.js +0 -282
- package/dist/SChartMultiLine-dtd6k59D.cjs +0 -1
- package/dist/SChartPie-Ddk8r-_I.cjs +0 -1
- package/dist/SChartPie-Ebg7WSga.js +0 -267
- package/dist/SChartProgress-DRSh_taf.js +0 -211
- package/dist/SChartProgress-DozBX6ve.cjs +0 -1
- package/dist/SChartScatter-DilWNoz0.cjs +0 -1
- package/dist/SChartScatter-DnmTw18x.js +0 -249
- package/dist/SChartStackedArea-BJ5HsJzQ.cjs +0 -1
- package/dist/SChartStackedArea-zIygTOp8.js +0 -278
- package/dist/SChartStackedBar-CXpVSagd.js +0 -350
- package/dist/SChartStackedBar-Dj6esSCS.cjs +0 -2
- package/dist/SCheckbox-Dkbk21Id.cjs +0 -1
- package/dist/SCheckbox-Dulusx5v.js +0 -105
- package/dist/SChip-CdKh_3Bo.js +0 -101
- package/dist/SChip-DwjDiD7C.cjs +0 -1
- package/dist/SColorPalette-CqIA4Qtp.cjs +0 -1
- package/dist/SColorPalette-OCu-tgZ3.js +0 -146
- package/dist/SColorPicker-BfJD4dt_.js +0 -642
- package/dist/SColorPicker-NqSNxcwH.cjs +0 -1
- package/dist/SDropdown-B_nsm3Jf.cjs +0 -1
- package/dist/SDropdown-aWjZrahp.js +0 -541
- package/dist/SDropdownMenu-2koPU6IG.js +0 -38
- package/dist/SDropdownMenu-k9SxaFVH.cjs +0 -1
- package/dist/SInlineInput-D3vCX4QA.cjs +0 -1
- package/dist/SInlineInput-DO_glYxP.js +0 -517
- package/dist/SInlineMessage-Dirk5RwO.js +0 -17
- package/dist/SInlineMessage-gjkMiE-W.cjs +0 -1
- package/dist/SInput-DwUxyUwU.js +0 -226
- package/dist/SInput-x0GgJDEY.cjs +0 -1
- package/dist/SLabel-DLKfepRW.cjs +0 -1
- package/dist/SLabel-FHHPlcKq.js +0 -59
- package/dist/SList-CmMkLkdG.cjs +0 -1
- package/dist/SList-T_fgzdb3.js +0 -477
- package/dist/SListItem-CQKZw5Uj.js +0 -246
- package/dist/SListItem-CrAnC2MG.cjs +0 -1
- package/dist/SOverflowGroup-CyksOav7.js +0 -79
- package/dist/SOverflowGroup-rmU10_7L.cjs +0 -1
- package/dist/SPhotoEdit-CoJLP7rt.cjs +0 -1
- package/dist/SPhotoEdit-DiEnt3tE.js +0 -122
- package/dist/SRadio-B9qQ-PEk.cjs +0 -1
- package/dist/SRadio-BhoLtFUS.js +0 -60
- package/dist/SSegmentControl-BQ8fg3m-.js +0 -212
- package/dist/SSegmentControl-jPA19SVO.cjs +0 -1
- package/dist/SSelect-BSbEFqAB.cjs +0 -1
- package/dist/SSelect-DM4-PF5I.js +0 -685
- package/dist/STab-BkQzKaLY.cjs +0 -1
- package/dist/STab-D7SATMfv.js +0 -242
- package/dist/STable-BnS7Ijfz.js +0 -3556
- package/dist/STable-CfdGC7jb.cjs +0 -1
- package/dist/STabs-CDNAhgMN.cjs +0 -1
- package/dist/STabs-_Zwxu8-o.js +0 -151
- package/dist/STag-C21nN8ow.js +0 -125
- package/dist/STag-qKbkpXjI.cjs +0 -1
- package/dist/STagGroup-6Z8CKlut.cjs +0 -1
- package/dist/STagGroup-CW9kWSnz.js +0 -47
- package/dist/STextarea-CCnFvaU3.js +0 -269
- package/dist/STextarea-DxjrKM9g.cjs +0 -1
- package/dist/SToggle-BNgLiIrQ.cjs +0 -1
- package/dist/SToggle-MSdprnRP.js +0 -62
- package/dist/applyChartHighlightedYTick-CKsVe7PW.cjs +0 -1
- package/dist/applyChartHighlightedYTick-DOxlsWPd.js +0 -17
- package/dist/areChartSeriesAligned-DiBX3TTk.cjs +0 -1
- package/dist/areChartSeriesAligned-DjonrIMm.js +0 -8
- package/dist/buildCartesianChartScales-Dck5yBMo.cjs +0 -1
- package/dist/buildCartesianChartScales-EofFq3ry.js +0 -42
- package/dist/buildChartMirrorScale-CBUIRPYX.cjs +0 -1
- package/dist/buildChartMirrorScale-_PhGNiFR.js +0 -15
- package/dist/buildChartSeriesPoints-BTyOpkin.js +0 -10
- package/dist/buildChartSeriesPoints-Cqo2ed-n.cjs +0 -1
- package/dist/buildMultiLineChartScales-BweU2ftq.cjs +0 -1
- package/dist/buildMultiLineChartScales-DbRe2UFD.js +0 -38
- package/dist/buildWorkTimeLegendItems-CifzZM9C.js +0 -411
- package/dist/buildWorkTimeLegendItems-DPx5Yma0.cjs +0 -1
- package/dist/colorValue-CSh0chxp.js +0 -5
- package/dist/colorValue-Dda7fKd3.cjs +0 -1
- package/dist/context-C3WoLJS4.js +0 -4
- package/dist/context-kCi2xRHY.cjs +0 -1
- package/dist/contrastSurfaceTextColor-BDlLSSXC.js +0 -33
- package/dist/contrastSurfaceTextColor-BRjRzXyZ.cjs +0 -1
- package/dist/createChartCrosshairPlugin-B4LrgKjG.js +0 -14
- package/dist/createChartCrosshairPlugin-COIICTCz.cjs +0 -1
- package/dist/createChartMarkersPlugin-L7qomZVK.cjs +0 -1
- package/dist/createChartMarkersPlugin-bAEeP-5Z.js +0 -43
- package/dist/createCustomTooltipCallbacks-CxeEfJLl.js +0 -12
- package/dist/createCustomTooltipCallbacks-oRAimZTt.cjs +0 -1
- package/dist/getIndicatorMetricsPercent-CFGy_nB8.cjs +0 -1
- package/dist/getIndicatorMetricsPercent-CWrH_ONg.js +0 -19
- package/dist/resolveBarStackedSeriesColor-BDJ7XBIB.cjs +0 -1
- package/dist/resolveBarStackedSeriesColor-zEV1Ps7h.js +0 -11
- package/dist/resolveChartLabelFont-D_Pxt-gs.cjs +0 -1
- package/dist/resolveChartLabelFont-WtZd0pFD.js +0 -4
- package/dist/resolveChartValueRange-DBCYLCXs.cjs +0 -1
- package/dist/resolveChartValueRange-DZybnmaX.js +0 -10
- package/dist/resolveCssColorValue-BBK7CTmP.js +0 -8
- package/dist/resolveCssColorValue-D3fS-cK8.cjs +0 -1
- package/dist/resolveSeriesPaletteColor-Bk52kyZo.js +0 -10
- package/dist/resolveSeriesPaletteColor-CVEsFs0o.cjs +0 -1
- package/dist/resolveStackedChartContext-BE3ZW2Sf.cjs +0 -1
- package/dist/resolveStackedChartContext-Dc6Foe7D.js +0 -26
- package/dist/splitChartAxisLabel-D-IFyucJ.js +0 -4
- package/dist/splitChartAxisLabel-DAmQOJn6.cjs +0 -2
- package/dist/treeKeyboardNavigation-BOz2SVus.cjs +0 -1
- package/dist/treeKeyboardNavigation-SmxTdnDz.js +0 -131
- package/dist/useAriaAttrs-CxGRTeye.js +0 -15
- package/dist/useAriaAttrs-D748yeJ_.cjs +0 -1
- package/dist/useChartInteractivity-Yk7qEYgl.cjs +0 -2
- package/dist/useChartInteractivity-sgbPZgcH.js +0 -416
- package/dist/useFieldMessages-2TaArixP.cjs +0 -1
- package/dist/useFieldMessages-C-GXaf_q.js +0 -43
- package/dist/useFloatingOverlay-CwGCMrig.cjs +0 -1
- package/dist/useFloatingOverlay-TxzVisMJ.js +0 -489
- package/dist/useHasListener-BPgtbbo6.cjs +0 -1
- package/dist/useHasListener-RSjlUyqH.js +0 -8
- package/dist/useLink-1LLWpdDZ.cjs +0 -1
- package/dist/useLink-Com5VhOk.js +0 -55
- package/dist/useSelectLink-2aCIYmF6.js +0 -47
- package/dist/useSelectLink-DZIAhQ2J.cjs +0 -1
- package/dist/useSelectionGroup-BCAmPf3R.js +0 -211
- package/dist/useSelectionGroup-NJvi3hNo.cjs +0 -1
package/dist/STable-BnS7Ijfz.js
DELETED
|
@@ -1,3556 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./contrastSurfaceTextColor-BDlLSSXC.js";
|
|
2
|
-
import { t as n } from "./colorValue-CSh0chxp.js";
|
|
3
|
-
import { i as r, n as i, r as a, t as o } from "./SButton-n2Zuqh04.js";
|
|
4
|
-
import { i as s, t as c } from "./SCheckbox-Dulusx5v.js";
|
|
5
|
-
import { s as l } from "./useFloatingOverlay-TxzVisMJ.js";
|
|
6
|
-
import { t as u } from "./SDropdown-aWjZrahp.js";
|
|
7
|
-
import { t as d } from "./SDropdownMenu-2koPU6IG.js";
|
|
8
|
-
import { a as f, o as p, r as m } from "./treeKeyboardNavigation-SmxTdnDz.js";
|
|
9
|
-
import { t as h } from "./SListItem-CQKZw5Uj.js";
|
|
10
|
-
import { n as g, r as _, t as v } from "./SToggle-MSdprnRP.js";
|
|
11
|
-
import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, isMemoSame as k, markRaw as A, mergeModels as j, mergeProps as M, nextTick as ee, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as te, openBlock as I, ref as L, renderList as R, renderSlot as z, shallowRef as B, toDisplayString as V, toRaw as ne, toValue as H, unref as U, useId as re, useModel as ie, useSlots as ae, useTemplateRef as oe, watch as W, withCtx as G, withModifiers as se } from "vue";
|
|
12
|
-
import { ESSkeletonType as ce, SIcon as le, SSeparator as ue, SSkeleton as de, useUiKitI18n as fe } from "@shtabapp/ui-kit-primitives";
|
|
13
|
-
import { tryOnScopeDispose as pe, useElementSize as me, useEventListener as K, useRafFn as he, useResizeObserver as ge, useTimeoutFn as _e } from "@vueuse/core";
|
|
14
|
-
import { elementScroll as ve, observeElementOffset as ye, useVirtualizer as be } from "@tanstack/vue-virtual";
|
|
15
|
-
import { combine as xe } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
16
|
-
import { draggable as q, dropTargetForElements as Se, monitorForElements as Ce } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
17
|
-
import { setCustomNativeDragPreview as we } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
|
|
18
|
-
import { pointerOutsideOfPreview as Te } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
|
|
19
|
-
import { attachClosestEdge as Ee, extractClosestEdge as De } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
|
|
20
|
-
import { disableNativeDragPreview as Oe } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
|
|
21
|
-
import { autoScrollForElements as ke } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
|
|
22
|
-
//#region src/components/STable/STable.types.ts
|
|
23
|
-
var J = /* @__PURE__ */ function(e) {
|
|
24
|
-
return e.LEFT = "left", e.RIGHT = "right", e;
|
|
25
|
-
}({}), Y = /* @__PURE__ */ function(e) {
|
|
26
|
-
return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e;
|
|
27
|
-
}({}), X = /* @__PURE__ */ function(e) {
|
|
28
|
-
return e.ASC = "asc", e.DESC = "desc", e;
|
|
29
|
-
}({}), Ae = /* @__PURE__ */ function(e) {
|
|
30
|
-
return e.DEFAULT = "default", e.COMPLETED = "completed", e;
|
|
31
|
-
}({}), je = /* @__PURE__ */ function(e) {
|
|
32
|
-
return e.RED_ORANGE = "red-orange", e.ORANGE = "orange", e.YELLOW = "yellow", e.GREEN = "green", e.TEAL = "teal", e.CYAN = "cyan", e.BLUE = "blue", e.INDIGO = "indigo", e.VIOLET = "violet", e.MAGENTA = "magenta", e.PINK = "pink", e.RED = "red", e;
|
|
33
|
-
}({}), Me = /* @__PURE__ */ function(e) {
|
|
34
|
-
return e.DEFAULT = "default", e.DISABLED = "disabled", e.READONLY = "readonly", e.EDITING = "editing", e;
|
|
35
|
-
}({}), Ne = /* @__PURE__ */ function(e) {
|
|
36
|
-
return e.AUTO = "auto", e.FIXED = "fixed", e;
|
|
37
|
-
}({}), Pe = /* @__PURE__ */ function(e) {
|
|
38
|
-
return e.FLAT = "flat", e.TREE = "tree", e;
|
|
39
|
-
}({}), Fe = /* @__PURE__ */ function(e) {
|
|
40
|
-
return e.BEFORE = "before", e.AFTER = "after", e.CHILD = "child", e;
|
|
41
|
-
}({}), Ie = /* @__PURE__ */ function(e) {
|
|
42
|
-
return e.NEUTRAL = "neutral", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e;
|
|
43
|
-
}({}), Z = /* @__PURE__ */ function(e) {
|
|
44
|
-
return e.UNCHECKED = "unchecked", e.CHECKED = "checked", e.INDETERMINATE = "indeterminate", e;
|
|
45
|
-
}({}), Q = /* @__PURE__ */ function(e) {
|
|
46
|
-
return e.ROW = "row", e.GROUP = "group", e.DEPTH_FOOTER = "depthFooter", e.LOAD_MORE = "loadMore", e;
|
|
47
|
-
}({}), Le = 16e6, Re = 1e5, ze = 1e9, Be = 2e3, Ve = .3, He = 1300, Ue = "__s-ui-table-filler__", We = /* @__PURE__ */ O({
|
|
48
|
-
__name: "STableCheckbox",
|
|
49
|
-
props: /*@__PURE__*/ j({
|
|
50
|
-
screenReaderLabel: {},
|
|
51
|
-
indeterminate: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !1
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
modelValue: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !1
|
|
59
|
-
},
|
|
60
|
-
modelModifiers: {}
|
|
61
|
-
}),
|
|
62
|
-
emits: ["update:modelValue"],
|
|
63
|
-
setup(e) {
|
|
64
|
-
let t = ie(e, "modelValue"), n = oe("checkboxRef");
|
|
65
|
-
return W([n, () => e.screenReaderLabel], () => {
|
|
66
|
-
let t = n.value?.$el, r = t instanceof HTMLElement ? t.querySelector("input") : void 0;
|
|
67
|
-
r && (r.tabIndex = -1, r.setAttribute("aria-label", e.screenReaderLabel));
|
|
68
|
-
}, {
|
|
69
|
-
immediate: !0,
|
|
70
|
-
flush: "post"
|
|
71
|
-
}), (r, i) => (I(), x(U(c), {
|
|
72
|
-
ref_key: "checkboxRef",
|
|
73
|
-
ref: n,
|
|
74
|
-
modelValue: t.value,
|
|
75
|
-
"onUpdate:modelValue": i[0] ||= (e) => t.value = e,
|
|
76
|
-
indeterminate: e.indeterminate,
|
|
77
|
-
size: U(s).EXTRA_SMALL
|
|
78
|
-
}, null, 8, [
|
|
79
|
-
"modelValue",
|
|
80
|
-
"indeterminate",
|
|
81
|
-
"size"
|
|
82
|
-
]));
|
|
83
|
-
}
|
|
84
|
-
}), Ge = [
|
|
85
|
-
"id",
|
|
86
|
-
"aria-colindex",
|
|
87
|
-
"data-column-key",
|
|
88
|
-
"data-row-key",
|
|
89
|
-
"data-section",
|
|
90
|
-
"tabindex"
|
|
91
|
-
], Ke = /* @__PURE__ */ O({
|
|
92
|
-
__name: "STableContentRow",
|
|
93
|
-
props: {
|
|
94
|
-
cells: {},
|
|
95
|
-
contentColumnKey: {},
|
|
96
|
-
cellClass: {},
|
|
97
|
-
contentClass: {},
|
|
98
|
-
contentStyle: {},
|
|
99
|
-
section: {},
|
|
100
|
-
rowKey: {},
|
|
101
|
-
cellIdPrefix: {},
|
|
102
|
-
focusColumnKey: {}
|
|
103
|
-
},
|
|
104
|
-
setup(e) {
|
|
105
|
-
return (t, n) => (I(), C("tr", null, [(I(!0), C(y, null, R(e.cells, ({ key: n, cellPlan: r }) => (I(), C(y, { key: n }, [r ? (I(), C("td", {
|
|
106
|
-
key: 1,
|
|
107
|
-
id: `${e.cellIdPrefix}${e.rowKey ?? ""}-${r.descriptor.key}`,
|
|
108
|
-
class: N([r.cellClass, e.cellClass]),
|
|
109
|
-
style: P(r.style),
|
|
110
|
-
"aria-colindex": r.descriptor.colIndex,
|
|
111
|
-
"data-column-key": r.descriptor.key,
|
|
112
|
-
"data-row-key": e.rowKey,
|
|
113
|
-
"data-section": e.section,
|
|
114
|
-
tabindex: r.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
115
|
-
}, [r.descriptor.key === e.contentColumnKey ? (I(), C("div", {
|
|
116
|
-
key: 0,
|
|
117
|
-
class: N(e.contentClass),
|
|
118
|
-
style: P(e.contentStyle)
|
|
119
|
-
}, [z(t.$slots, "default")], 6)) : S("", !0)], 14, Ge)) : (I(), C("td", {
|
|
120
|
-
key: 0,
|
|
121
|
-
class: N([
|
|
122
|
-
"s-ui-table__cell",
|
|
123
|
-
"s-ui-table__filler-cell",
|
|
124
|
-
e.cellClass
|
|
125
|
-
]),
|
|
126
|
-
role: "presentation"
|
|
127
|
-
}, null, 2))], 64))), 128))]));
|
|
128
|
-
}
|
|
129
|
-
}), qe = /* @__PURE__ */ function(e) {
|
|
130
|
-
return e.INDICATOR = "indicator", e.CHECKBOX = "checkbox", e.RIGHT_EDGE = "rightEdge", e.COLUMNS_MANAGER = "columnsManager", e;
|
|
131
|
-
}({}), Je = {
|
|
132
|
-
indicator: "indicator",
|
|
133
|
-
checkbox: "checkbox",
|
|
134
|
-
rightEdge: "right-edge",
|
|
135
|
-
columnsManager: "columns-manager"
|
|
136
|
-
}, Ye = new Set(["rightEdge", "columnsManager"]), Xe = (e) => Ye.has(e) ? J.RIGHT : J.LEFT, Ze = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "-"), Qe = (e) => `--s-ui-table-col-w-${Ze(e)}`, $e = (e) => `--s-ui-table-sticky-${Ze(e)}`, et = (e) => `--s-ui-table-live-w-${Ze(e)}`, tt = (e) => `--s-ui-table-live-sticky-${Ze(e)}`, nt = (e, t) => e.maxWidth === void 0 ? Infinity : Math.max(0, e.maxWidth - e.baseWidth - t), rt = (e, t, n) => {
|
|
137
|
-
let r = e.reduce((e, t) => e + t.baseWidth, 0), i = 0;
|
|
138
|
-
return e.forEach((a, o) => {
|
|
139
|
-
let s = o === e.length - 1 ? t - i : Math.floor(t * a.baseWidth / r), c = n.get(a.key) ?? 0, l = Math.min(s, nt(a, c));
|
|
140
|
-
n.set(a.key, c + l), i += l;
|
|
141
|
-
}), t - i;
|
|
142
|
-
}, it = (e) => e ? 430 : 160, at = (e) => {
|
|
143
|
-
let t = e.filter((e) => e.sticky === J.LEFT), n = t[t.length - 1];
|
|
144
|
-
n && (n.lastStickyLeft = !0);
|
|
145
|
-
let r = e.find((e) => e.sticky === J.RIGHT);
|
|
146
|
-
r && (r.firstStickyRight = !0);
|
|
147
|
-
}, ot = (e, t) => {
|
|
148
|
-
let n = /* @__PURE__ */ new Map(), r = t;
|
|
149
|
-
for (let t = 0; t < e.length && r > 0; t += 1) {
|
|
150
|
-
let t = e.filter((e) => nt(e, n.get(e.key) ?? 0) > 0);
|
|
151
|
-
if (t.length === 0) return n;
|
|
152
|
-
r = rt(t, r, n);
|
|
153
|
-
}
|
|
154
|
-
return n;
|
|
155
|
-
}, st = (e, t) => {
|
|
156
|
-
let n = e.reduce((e, t) => e + t.baseWidth, 0), r = e.filter((e) => e.flexible), i = Math.floor(t) - n;
|
|
157
|
-
if (i <= 0 || r.length === 0) return e;
|
|
158
|
-
let a = ot(r, i);
|
|
159
|
-
return e.map((e) => {
|
|
160
|
-
let t = a.get(e.key);
|
|
161
|
-
return t ? {
|
|
162
|
-
...e,
|
|
163
|
-
width: e.baseWidth + t
|
|
164
|
-
} : e;
|
|
165
|
-
});
|
|
166
|
-
}, ct = ({ columns: e, columnOrder: t, columnWidths: n, hiddenColumns: r, hasIndicator: i, hasCheckbox: a, hasRightEdge: o, hasColumnsManager: s, columnsManagerWidth: c = 32, columnsResizable: l, columnsDraggable: u, viewportWidth: d }) => {
|
|
167
|
-
let f = b(() => {
|
|
168
|
-
let t = H(e);
|
|
169
|
-
return t.find((e) => e.primary)?.key ?? t[0]?.key;
|
|
170
|
-
}), p = b(() => {
|
|
171
|
-
let n = H(e), i = new Set(r.value ?? []), a = t.value, o = new Map(n.map((e) => [e.key, e])), s = [];
|
|
172
|
-
a ? (a.forEach((e) => {
|
|
173
|
-
o.has(e) && s.push(e);
|
|
174
|
-
}), n.forEach((e) => {
|
|
175
|
-
a.includes(e.key) || s.push(e.key);
|
|
176
|
-
})) : n.forEach((e) => {
|
|
177
|
-
s.push(e.key);
|
|
178
|
-
});
|
|
179
|
-
let c = [];
|
|
180
|
-
s.forEach((e) => {
|
|
181
|
-
let t = o.get(e);
|
|
182
|
-
t && (e !== f.value && i.has(e) || c.push(t));
|
|
183
|
-
});
|
|
184
|
-
let l = [], u = [], d = [], p = [], m = [];
|
|
185
|
-
return c.forEach((e) => {
|
|
186
|
-
e.key === f.value ? u.push(e) : e.leading ? l.push(e) : e.sticky === J.LEFT ? d.push(e) : e.sticky === J.RIGHT ? m.push(e) : p.push(e);
|
|
187
|
-
}), [
|
|
188
|
-
...l,
|
|
189
|
-
...u,
|
|
190
|
-
...d,
|
|
191
|
-
...p,
|
|
192
|
-
...m
|
|
193
|
-
];
|
|
194
|
-
}), m = (e, t) => {
|
|
195
|
-
let r = n.value?.[e.key];
|
|
196
|
-
return r ? {
|
|
197
|
-
baseWidth: r,
|
|
198
|
-
flexible: !1
|
|
199
|
-
} : e.width ? {
|
|
200
|
-
baseWidth: e.width,
|
|
201
|
-
flexible: !1
|
|
202
|
-
} : {
|
|
203
|
-
baseWidth: it(t),
|
|
204
|
-
flexible: e.sticky !== J.RIGHT
|
|
205
|
-
};
|
|
206
|
-
}, h = (e) => {
|
|
207
|
-
H(o) && e("rightEdge", 40), H(s) && e("columnsManager", H(c));
|
|
208
|
-
}, g = b(() => {
|
|
209
|
-
let e = [], t = H(l), n = H(u), r = (t, n) => {
|
|
210
|
-
let r = Xe(t);
|
|
211
|
-
e.push({
|
|
212
|
-
key: `__s-ui-table-${t}`,
|
|
213
|
-
service: t,
|
|
214
|
-
width: n,
|
|
215
|
-
baseWidth: n,
|
|
216
|
-
flexible: !1,
|
|
217
|
-
minWidth: n,
|
|
218
|
-
maxWidth: n,
|
|
219
|
-
sticky: r,
|
|
220
|
-
align: Y.LEFT,
|
|
221
|
-
primary: !1,
|
|
222
|
-
resizable: !1,
|
|
223
|
-
draggable: !1,
|
|
224
|
-
sortable: !1,
|
|
225
|
-
hideable: !1,
|
|
226
|
-
colIndex: 0,
|
|
227
|
-
widthVar: Qe(t),
|
|
228
|
-
liveWidthVar: et(t),
|
|
229
|
-
stickyOffsetVar: $e(t),
|
|
230
|
-
liveStickyOffsetVar: tt(t),
|
|
231
|
-
lastStickyLeft: !1,
|
|
232
|
-
firstStickyRight: !1
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
H(i) && r("indicator", 2), H(a) && r("checkbox", 24), p.value.forEach((r) => {
|
|
236
|
-
let i = r.key === f.value, a = !!r.leading && !i, o = i || a ? J.LEFT : r.sticky, { baseWidth: s, flexible: c } = m(r, i);
|
|
237
|
-
e.push({
|
|
238
|
-
key: r.key,
|
|
239
|
-
column: r,
|
|
240
|
-
width: s,
|
|
241
|
-
baseWidth: s,
|
|
242
|
-
flexible: c,
|
|
243
|
-
minWidth: r.minWidth ?? 60,
|
|
244
|
-
maxWidth: r.maxWidth,
|
|
245
|
-
sticky: o,
|
|
246
|
-
align: r.align ?? Y.LEFT,
|
|
247
|
-
primary: i,
|
|
248
|
-
resizable: t && (r.resizable ?? !0),
|
|
249
|
-
draggable: n && !i && !a && (r.draggable ?? !0),
|
|
250
|
-
sortable: r.sortable ?? !1,
|
|
251
|
-
hideable: !i && !a && (r.hideable ?? !0),
|
|
252
|
-
colIndex: 0,
|
|
253
|
-
widthVar: Qe(r.key),
|
|
254
|
-
liveWidthVar: et(r.key),
|
|
255
|
-
stickyOffsetVar: o ? $e(r.key) : void 0,
|
|
256
|
-
liveStickyOffsetVar: o ? tt(r.key) : void 0,
|
|
257
|
-
lastStickyLeft: !1,
|
|
258
|
-
firstStickyRight: !1
|
|
259
|
-
});
|
|
260
|
-
}), h(r);
|
|
261
|
-
let o = 0;
|
|
262
|
-
return e.forEach((e) => {
|
|
263
|
-
e.sticky !== J.RIGHT && (o += 1, e.colIndex = o);
|
|
264
|
-
}), e.forEach((e) => {
|
|
265
|
-
e.sticky === J.RIGHT && (o += 1, e.colIndex = o);
|
|
266
|
-
}), at(e), e;
|
|
267
|
-
}), _ = b(() => st(g.value, H(d))), v = b(() => _.value.reduce((e, t) => e + t.width, 0)), y = b(() => {
|
|
268
|
-
let e = {}, t = 0;
|
|
269
|
-
_.value.forEach((n) => {
|
|
270
|
-
e[n.widthVar] = `${n.width}px`, n.sticky === J.LEFT && n.stickyOffsetVar && (e[n.stickyOffsetVar] = `${t}px`, t += n.width);
|
|
271
|
-
});
|
|
272
|
-
let n = 0;
|
|
273
|
-
return [..._.value].reverse().forEach((t) => {
|
|
274
|
-
t.sticky === J.RIGHT && t.stickyOffsetVar && (e[t.stickyOffsetVar] = `${n}px`, n += t.width);
|
|
275
|
-
}), e;
|
|
276
|
-
});
|
|
277
|
-
return {
|
|
278
|
-
primaryColumnKey: f,
|
|
279
|
-
orderedDataColumns: p,
|
|
280
|
-
columnDescriptors: _,
|
|
281
|
-
dataColumnDescriptors: b(() => _.value.filter((e) => e.column)),
|
|
282
|
-
columnCssVars: y,
|
|
283
|
-
totalWidth: v,
|
|
284
|
-
columnCount: b(() => _.value.length)
|
|
285
|
-
};
|
|
286
|
-
}, $ = /* @__PURE__ */ function(e) {
|
|
287
|
-
return e.HEADER = "h", e.BODY = "b", e.CREATION = "c", e.AGGREGATE = "a", e;
|
|
288
|
-
}({}), lt = "button, a[href], input, select, textarea, [tabindex]", ut = Object.values($), dt = (e) => ut.find((t) => t === e), ft = ({ tableRootElement: e, tableElement: t, exitElement: n, scrollElement: r, columnDescriptors: i, flatRows: a, snapshot: o, groupColumnKey: s, depthFooterColumnKey: c, loadMoreColumnKey: l, creationColumnKey: u, hasCreationRow: d, hasAggregateRow: f, isRowNavigable: p, pageSize: m, buildCellDomId: h, onBodyRowFocused: g, scrollToRowIndex: _ }) => {
|
|
289
|
-
let v = B(), y = B(), x = B(!1), S = B(0), C = b(() => i.value.filter((e) => e.service !== qe.INDICATOR).map((e) => e.key)), w = b(() => i.value.filter((e) => e.service !== qe.INDICATOR && e.service !== qe.COLUMNS_MANAGER).map((e) => e.key)), T = (e) => {
|
|
290
|
-
if (!e) return;
|
|
291
|
-
let t = o.value.getRowIndexByKey(e);
|
|
292
|
-
return t === void 0 ? void 0 : a.value[t];
|
|
293
|
-
}, E = (e) => {
|
|
294
|
-
if (e.kind === Q.ROW) return w.value;
|
|
295
|
-
let t = {
|
|
296
|
-
[Q.ROW]: void 0,
|
|
297
|
-
[Q.GROUP]: H(s),
|
|
298
|
-
[Q.DEPTH_FOOTER]: H(c),
|
|
299
|
-
[Q.LOAD_MORE]: H(l)
|
|
300
|
-
}[e.kind];
|
|
301
|
-
return t ? [t] : [];
|
|
302
|
-
}, D = (e) => {
|
|
303
|
-
if (e.section === "h") return C.value;
|
|
304
|
-
if (e.section === "c") {
|
|
305
|
-
let e = H(u);
|
|
306
|
-
return H(d) && e ? [e] : [];
|
|
307
|
-
}
|
|
308
|
-
if (e.section === "a") return H(f) ? w.value : [];
|
|
309
|
-
let t = T(e.rowKey);
|
|
310
|
-
return t && p(t) ? E(t) : [];
|
|
311
|
-
}, O = (e, t) => {
|
|
312
|
-
if (t && e.includes(t)) return t;
|
|
313
|
-
let n = C.value, r = t ? n.indexOf(t) : -1, i = e[0] ?? "";
|
|
314
|
-
if (r === -1) return i;
|
|
315
|
-
let a = i, o = Infinity;
|
|
316
|
-
return e.forEach((e) => {
|
|
317
|
-
let t = Math.abs(n.indexOf(e) - r);
|
|
318
|
-
t < o && (o = t, a = e);
|
|
319
|
-
}), a;
|
|
320
|
-
}, k = b(() => ({
|
|
321
|
-
section: "h",
|
|
322
|
-
columnKey: O(C.value, y.value)
|
|
323
|
-
})), A = b(() => {
|
|
324
|
-
let e = v.value;
|
|
325
|
-
if (!e) return k.value;
|
|
326
|
-
let t = D(e);
|
|
327
|
-
return t.length === 0 ? k.value : t.includes(e.columnKey) ? e : {
|
|
328
|
-
...e,
|
|
329
|
-
columnKey: O(t, e.columnKey)
|
|
330
|
-
};
|
|
331
|
-
}), j = b(() => a.value.length), M = b(() => j.value + +!!H(d) + +!!H(f)), N = (e) => {
|
|
332
|
-
if (e.section === "h") return 0;
|
|
333
|
-
if (e.section === "c") return j.value + 1;
|
|
334
|
-
if (e.section === "a") return j.value + 1 + +!!H(d);
|
|
335
|
-
let t = e.rowKey === void 0 ? void 0 : o.value.getRowIndexByKey(e.rowKey);
|
|
336
|
-
return t === void 0 ? void 0 : t + 1;
|
|
337
|
-
}, P = (e, t) => {
|
|
338
|
-
if (e <= 0) return {
|
|
339
|
-
section: "h",
|
|
340
|
-
columnKey: O(C.value, t)
|
|
341
|
-
};
|
|
342
|
-
if (e <= j.value) {
|
|
343
|
-
let n = a.value[e - 1];
|
|
344
|
-
if (!n || !p(n)) return;
|
|
345
|
-
let r = E(n);
|
|
346
|
-
return r.length === 0 ? void 0 : {
|
|
347
|
-
section: "b",
|
|
348
|
-
rowKey: n.key,
|
|
349
|
-
columnKey: O(r, t)
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
if (H(d) && e === j.value + 1) {
|
|
353
|
-
let e = H(u);
|
|
354
|
-
return e ? {
|
|
355
|
-
section: "c",
|
|
356
|
-
columnKey: e
|
|
357
|
-
} : void 0;
|
|
358
|
-
}
|
|
359
|
-
if (H(f) && e === M.value) return {
|
|
360
|
-
section: "a",
|
|
361
|
-
columnKey: O(C.value, t)
|
|
362
|
-
};
|
|
363
|
-
}, F = (e, t) => {
|
|
364
|
-
let n = e;
|
|
365
|
-
for (; n >= 0 && n <= M.value;) {
|
|
366
|
-
let e = P(n, y.value);
|
|
367
|
-
if (e) return e;
|
|
368
|
-
n += t;
|
|
369
|
-
}
|
|
370
|
-
}, te = (e) => document.getElementById(h(e)) ?? void 0, I = () => te(A.value), L = () => {
|
|
371
|
-
let t = r.value, n = I();
|
|
372
|
-
if (!t || !n || n.classList.contains("s-ui-table__cell--sticky-left") || n.classList.contains("s-ui-table__cell--sticky-right")) return;
|
|
373
|
-
let i = t.getBoundingClientRect(), a = e.value, o = i.left, s = i.right, c = a?.querySelector("th.s-ui-table__cell--last-sticky-left");
|
|
374
|
-
c && (o = Math.max(o, c.getBoundingClientRect().right));
|
|
375
|
-
let l = a?.querySelector("th.s-ui-table__cell--first-sticky-right");
|
|
376
|
-
l && (s = Math.min(s, l.getBoundingClientRect().left));
|
|
377
|
-
let u = n.getBoundingClientRect();
|
|
378
|
-
if (u.left < o) {
|
|
379
|
-
t.scrollLeft -= o - u.left;
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
u.right > s && (t.scrollLeft += u.right - s);
|
|
383
|
-
}, R = (e, t) => {
|
|
384
|
-
v.value = e, t && (y.value = e.columnKey);
|
|
385
|
-
let n = N(e);
|
|
386
|
-
n !== void 0 && (S.value = n);
|
|
387
|
-
}, z = (e, t) => {
|
|
388
|
-
let n = D(e), r = n.length > 0 && !n.includes(e.columnKey) ? {
|
|
389
|
-
...e,
|
|
390
|
-
columnKey: O(n, e.columnKey)
|
|
391
|
-
} : e;
|
|
392
|
-
if (R(r, t?.updateDesired ?? !0), x.value = !1, r.section === "b" && r.rowKey) {
|
|
393
|
-
g(r.rowKey);
|
|
394
|
-
let e = o.value.getRowIndexByKey(r.rowKey);
|
|
395
|
-
(t?.scroll ?? !0) && e !== void 0 && _(e);
|
|
396
|
-
}
|
|
397
|
-
t?.focusElement !== !1 && ee(() => {
|
|
398
|
-
I()?.focus({ preventScroll: !0 }), L();
|
|
399
|
-
});
|
|
400
|
-
}, V = (e, t) => {
|
|
401
|
-
let n = A.value;
|
|
402
|
-
if (t !== 0) {
|
|
403
|
-
let e = D(n), r = e[e.indexOf(n.columnKey) + t];
|
|
404
|
-
r && z({
|
|
405
|
-
...n,
|
|
406
|
-
columnKey: r
|
|
407
|
-
});
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
if (e === 0) return;
|
|
411
|
-
let r = e > 0 ? 1 : -1, i = F((N(n) ?? S.value) + r, r);
|
|
412
|
-
i && z(i, { updateDesired: !1 });
|
|
413
|
-
}, ne = (e) => {
|
|
414
|
-
let t = A.value, n = D(t), r = e === "start" ? n[0] : n[n.length - 1];
|
|
415
|
-
r && z({
|
|
416
|
-
...t,
|
|
417
|
-
columnKey: r
|
|
418
|
-
});
|
|
419
|
-
}, U = (e) => {
|
|
420
|
-
let t = e === "first" ? F(0, 1) : F(M.value, -1);
|
|
421
|
-
if (!t) return;
|
|
422
|
-
let n = D(t), r = e === "first" ? n[0] : n[n.length - 1];
|
|
423
|
-
z(r ? {
|
|
424
|
-
...t,
|
|
425
|
-
columnKey: r
|
|
426
|
-
} : t);
|
|
427
|
-
}, re = (e) => {
|
|
428
|
-
let t = N(A.value) ?? S.value, n = Math.max(1, Math.round(H(m))), r = Math.min(M.value, Math.max(0, t + e * n)), i = F(r, e) ?? F(r, e === 1 ? -1 : 1);
|
|
429
|
-
i && z(i, { updateDesired: !1 });
|
|
430
|
-
}, ie = (e) => {
|
|
431
|
-
let t = [];
|
|
432
|
-
return e.querySelectorAll(lt).forEach((e) => {
|
|
433
|
-
!(e instanceof HTMLElement) || e.offsetParent === null || e.hasAttribute("disabled") || e.closest("[aria-hidden=\"true\"]") || t.push(e);
|
|
434
|
-
}), t;
|
|
435
|
-
}, ae = () => {
|
|
436
|
-
let e = I(), t = e ? ie(e)[0] : void 0;
|
|
437
|
-
return t ? (x.value = !0, t.focus(), !0) : !1;
|
|
438
|
-
}, oe = () => {
|
|
439
|
-
x.value = !1, I()?.focus({ preventScroll: !0 });
|
|
440
|
-
}, G = (e) => {
|
|
441
|
-
let t = I(), n = t ? ie(t) : [], r = document.activeElement, i = n.findIndex((e) => e === r || r instanceof Node && e.contains(r)), a = i === -1 ? void 0 : n[i + e];
|
|
442
|
-
return a ? (a.focus(), !0) : !1;
|
|
443
|
-
}, se = (e) => {
|
|
444
|
-
x.value = !1, (e === 1 ? n.value : t.value)?.focus({ preventScroll: !0 });
|
|
445
|
-
}, ce = () => {
|
|
446
|
-
let e = A.value, n = D(e);
|
|
447
|
-
if (n.length > 0) {
|
|
448
|
-
z({
|
|
449
|
-
...e,
|
|
450
|
-
columnKey: O(n, y.value)
|
|
451
|
-
}, {
|
|
452
|
-
scroll: !1,
|
|
453
|
-
updateDesired: !1
|
|
454
|
-
});
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
let r = Math.min(S.value, M.value), i = F(r, -1) ?? F(r, 1);
|
|
458
|
-
if (i) {
|
|
459
|
-
z(i, {
|
|
460
|
-
scroll: !1,
|
|
461
|
-
updateDesired: !1
|
|
462
|
-
});
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
if (C.value.length > 0) {
|
|
466
|
-
z(k.value, {
|
|
467
|
-
scroll: !1,
|
|
468
|
-
updateDesired: !1
|
|
469
|
-
});
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
t.value?.focus();
|
|
473
|
-
};
|
|
474
|
-
W(() => {
|
|
475
|
-
let e = v.value?.rowKey;
|
|
476
|
-
return e === void 0 ? void 0 : o.value.getRowIndexByKey(e);
|
|
477
|
-
}, (e, t) => {
|
|
478
|
-
t === void 0 || e !== void 0 || document.activeElement === document.body && ce();
|
|
479
|
-
}, { flush: "post" });
|
|
480
|
-
let le = (e, t) => {
|
|
481
|
-
R(e, !0), x.value = t, e.section === "b" && e.rowKey && g(e.rowKey);
|
|
482
|
-
}, ue = (e, t, n) => {
|
|
483
|
-
let r = A.value;
|
|
484
|
-
return r.section === e && r.rowKey === t && r.columnKey === n;
|
|
485
|
-
}, de = (e, t, n) => ue(e, t, n) ? 0 : -1, fe = b(() => {
|
|
486
|
-
let e = A.value;
|
|
487
|
-
return e.section === "b" ? e.rowKey : void 0;
|
|
488
|
-
});
|
|
489
|
-
return {
|
|
490
|
-
focusAddress: A,
|
|
491
|
-
focusedBodyRowKey: fe,
|
|
492
|
-
focusBodyRowIndex: b(() => {
|
|
493
|
-
let e = fe.value;
|
|
494
|
-
return e === void 0 ? void 0 : o.value.getRowIndexByKey(e);
|
|
495
|
-
}),
|
|
496
|
-
cellEntered: x,
|
|
497
|
-
isCellFocused: ue,
|
|
498
|
-
getCellTabIndex: de,
|
|
499
|
-
moveFocus: V,
|
|
500
|
-
moveToRowEdge: ne,
|
|
501
|
-
moveToGridEdge: U,
|
|
502
|
-
moveByPage: re,
|
|
503
|
-
focusAddressNow: z,
|
|
504
|
-
syncFocusAddress: le,
|
|
505
|
-
enterCell: ae,
|
|
506
|
-
exitCell: oe,
|
|
507
|
-
moveCellFocus: G,
|
|
508
|
-
leaveGrid: se,
|
|
509
|
-
restoreFocusAfterUnmount: ce,
|
|
510
|
-
ensureFocusedCellVisibleHorizontally: L,
|
|
511
|
-
queryFocusedCellElement: I
|
|
512
|
-
};
|
|
513
|
-
}, pt = [
|
|
514
|
-
"data-index",
|
|
515
|
-
"aria-rowindex",
|
|
516
|
-
"aria-level",
|
|
517
|
-
"aria-expanded"
|
|
518
|
-
], mt = [
|
|
519
|
-
"id",
|
|
520
|
-
"aria-colindex",
|
|
521
|
-
"data-column-key",
|
|
522
|
-
"data-row-key",
|
|
523
|
-
"data-section",
|
|
524
|
-
"tabindex"
|
|
525
|
-
], ht = { class: "s-ui-table__group-main" }, gt = { class: "s-ui-table__group-title" }, _t = { class: "s-ui-table__group-counter" }, vt = [
|
|
526
|
-
"id",
|
|
527
|
-
"aria-colindex",
|
|
528
|
-
"data-column-key",
|
|
529
|
-
"data-row-key",
|
|
530
|
-
"data-section",
|
|
531
|
-
"tabindex"
|
|
532
|
-
], yt = /* @__PURE__ */ O({
|
|
533
|
-
__name: "STableGroupRow",
|
|
534
|
-
props: {
|
|
535
|
-
row: {},
|
|
536
|
-
rowIndex: {},
|
|
537
|
-
leadingPlans: {},
|
|
538
|
-
trailingPlans: {},
|
|
539
|
-
groupColumnKey: {},
|
|
540
|
-
treeIndent: {},
|
|
541
|
-
count: {},
|
|
542
|
-
total: {},
|
|
543
|
-
expanded: { type: Boolean },
|
|
544
|
-
active: { type: Boolean },
|
|
545
|
-
title: {},
|
|
546
|
-
stuck: {
|
|
547
|
-
type: Boolean,
|
|
548
|
-
default: !1
|
|
549
|
-
},
|
|
550
|
-
extraRowStyle: {},
|
|
551
|
-
dndRef: { type: Function },
|
|
552
|
-
dragging: {
|
|
553
|
-
type: Boolean,
|
|
554
|
-
default: !1
|
|
555
|
-
},
|
|
556
|
-
dropPosition: {},
|
|
557
|
-
cellIdPrefix: {},
|
|
558
|
-
focusColumnKey: {},
|
|
559
|
-
treegrid: {
|
|
560
|
-
type: Boolean,
|
|
561
|
-
default: !1
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
emits: [
|
|
565
|
-
"toggle",
|
|
566
|
-
"rowClick",
|
|
567
|
-
"menuOpen"
|
|
568
|
-
],
|
|
569
|
-
setup(e, { emit: t }) {
|
|
570
|
-
let n = t, s = ae(), { t: c } = fe(), f = L(!1), p = (e) => {
|
|
571
|
-
n("menuOpen"), e();
|
|
572
|
-
}, m = b(() => ({
|
|
573
|
-
"s-ui-table__group-row--active": e.active,
|
|
574
|
-
"s-ui-table__group-row--collapsed": !e.expanded,
|
|
575
|
-
"s-ui-table__group-row--stuck": e.stuck,
|
|
576
|
-
"s-ui-table__group-row--dragging": e.dragging,
|
|
577
|
-
"s-ui-table__group-row--drop-before": e.dropPosition === "before",
|
|
578
|
-
"s-ui-table__group-row--drop-after": e.dropPosition === "after",
|
|
579
|
-
"s-ui-table__group-row--drop-inside": e.dropPosition === "inside"
|
|
580
|
-
})), h = b(() => {
|
|
581
|
-
if (e.row.depth !== 0) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e.row.depth * e.treeIndent}px)` };
|
|
582
|
-
}), g = b(() => e.total === void 0 ? String(e.count) : `${e.count}/${e.total}`), _ = b(() => e.expanded ? "chevronMiniDown" : "chevronMiniRight"), v = b(() => e.expanded ? c("table.collapse") : c("table.expand"));
|
|
583
|
-
return (t, b) => (I(), C("tr", {
|
|
584
|
-
ref: e.dndRef,
|
|
585
|
-
class: N(["s-ui-table__group-row", m.value]),
|
|
586
|
-
style: P(e.extraRowStyle),
|
|
587
|
-
"data-index": e.rowIndex,
|
|
588
|
-
"aria-rowindex": e.rowIndex + 2,
|
|
589
|
-
"aria-level": e.treegrid ? e.row.depth + 1 : void 0,
|
|
590
|
-
"aria-expanded": e.treegrid && e.row.hasChildren ? e.expanded : void 0,
|
|
591
|
-
onClick: b[3] ||= (e) => n("rowClick", e)
|
|
592
|
-
}, [
|
|
593
|
-
(I(!0), C(y, null, R(e.leadingPlans, (m) => (I(), C("td", {
|
|
594
|
-
id: `${e.cellIdPrefix}${e.row.key}-${m.descriptor.key}`,
|
|
595
|
-
key: m.descriptor.key,
|
|
596
|
-
class: N([m.cellClass, "s-ui-table__group-cell"]),
|
|
597
|
-
style: P(m.style),
|
|
598
|
-
"aria-colindex": m.descriptor.colIndex,
|
|
599
|
-
"data-column-key": m.descriptor.key,
|
|
600
|
-
"data-row-key": e.row.key,
|
|
601
|
-
"data-section": U($).BODY,
|
|
602
|
-
tabindex: m.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
603
|
-
}, [m.descriptor.key === e.groupColumnKey ? (I(), C("div", {
|
|
604
|
-
key: 1,
|
|
605
|
-
class: "s-ui-table__group-content",
|
|
606
|
-
style: P(h.value)
|
|
607
|
-
}, [z(t.$slots, "row", {}, () => [
|
|
608
|
-
D(U(o), {
|
|
609
|
-
class: "s-ui-table__group-chevron",
|
|
610
|
-
appearance: U(i).BARE,
|
|
611
|
-
variant: U(r).NEUTRAL,
|
|
612
|
-
size: U(a).SMALL,
|
|
613
|
-
icon: _.value,
|
|
614
|
-
"aria-label": v.value,
|
|
615
|
-
tabindex: "-1",
|
|
616
|
-
onClick: b[0] ||= se((e) => n("toggle"), ["stop"])
|
|
617
|
-
}, null, 8, [
|
|
618
|
-
"appearance",
|
|
619
|
-
"variant",
|
|
620
|
-
"size",
|
|
621
|
-
"icon",
|
|
622
|
-
"aria-label"
|
|
623
|
-
]),
|
|
624
|
-
w("div", ht, [z(t.$slots, "title", {}, () => [w("span", gt, V(e.title), 1)]), w("span", _t, V(g.value), 1)]),
|
|
625
|
-
w("div", {
|
|
626
|
-
class: "s-ui-table__group-actions",
|
|
627
|
-
onClick: b[2] ||= se(() => {}, ["stop"])
|
|
628
|
-
}, [z(t.$slots, "actions"), U(s).menu ? (I(), x(U(u), {
|
|
629
|
-
key: 0,
|
|
630
|
-
modelValue: f.value,
|
|
631
|
-
"onUpdate:modelValue": b[1] ||= (e) => f.value = e,
|
|
632
|
-
placement: U(l).BOTTOM_END,
|
|
633
|
-
"teleport-to": !1
|
|
634
|
-
}, {
|
|
635
|
-
trigger: G(({ toggle: e }) => [D(U(o), {
|
|
636
|
-
class: N(["s-ui-table__group-kebab", { "s-ui-table__group-kebab--open": f.value }]),
|
|
637
|
-
appearance: U(i).BARE,
|
|
638
|
-
variant: U(r).NEUTRAL,
|
|
639
|
-
size: U(a).SMALL,
|
|
640
|
-
icon: "menu",
|
|
641
|
-
"aria-label": U(c)("table.groupMenu"),
|
|
642
|
-
tabindex: "-1",
|
|
643
|
-
onClick: (t) => p(e)
|
|
644
|
-
}, null, 8, [
|
|
645
|
-
"class",
|
|
646
|
-
"appearance",
|
|
647
|
-
"variant",
|
|
648
|
-
"size",
|
|
649
|
-
"aria-label",
|
|
650
|
-
"onClick"
|
|
651
|
-
])]),
|
|
652
|
-
content: G(() => [D(U(d), { width: 220 }, {
|
|
653
|
-
default: G(() => [z(t.$slots, "menu")]),
|
|
654
|
-
_: 3
|
|
655
|
-
})]),
|
|
656
|
-
_: 3
|
|
657
|
-
}, 8, ["modelValue", "placement"])) : S("", !0)])
|
|
658
|
-
])], 4)) : z(t.$slots, "group-cell", {
|
|
659
|
-
key: 0,
|
|
660
|
-
columnKey: m.descriptor.key
|
|
661
|
-
})], 14, mt))), 128)),
|
|
662
|
-
b[4] ||= w("td", {
|
|
663
|
-
class: "s-ui-table__cell s-ui-table__filler-cell s-ui-table__group-cell",
|
|
664
|
-
role: "presentation"
|
|
665
|
-
}, null, -1),
|
|
666
|
-
(I(!0), C(y, null, R(e.trailingPlans, (t) => (I(), C("td", {
|
|
667
|
-
id: `${e.cellIdPrefix}${e.row.key}-${t.descriptor.key}`,
|
|
668
|
-
key: t.descriptor.key,
|
|
669
|
-
class: N([t.cellClass, "s-ui-table__group-cell"]),
|
|
670
|
-
style: P(t.style),
|
|
671
|
-
"aria-colindex": t.descriptor.colIndex,
|
|
672
|
-
"data-column-key": t.descriptor.key,
|
|
673
|
-
"data-row-key": e.row.key,
|
|
674
|
-
"data-section": U($).BODY,
|
|
675
|
-
tabindex: t.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
676
|
-
}, null, 14, vt))), 128))
|
|
677
|
-
], 14, pt));
|
|
678
|
-
}
|
|
679
|
-
}), bt = {
|
|
680
|
-
key: 0,
|
|
681
|
-
class: "s-ui-table__hint-bubble",
|
|
682
|
-
role: "tooltip"
|
|
683
|
-
}, xt = /* @__PURE__ */ O({
|
|
684
|
-
__name: "STableHint",
|
|
685
|
-
props: { text: {} },
|
|
686
|
-
setup(e) {
|
|
687
|
-
let t = L(!1);
|
|
688
|
-
return (n, r) => (I(), C("span", {
|
|
689
|
-
class: "s-ui-table__hint",
|
|
690
|
-
tabindex: "-1",
|
|
691
|
-
onPointerenter: r[0] ||= (e) => t.value = !0,
|
|
692
|
-
onPointerleave: r[1] ||= (e) => t.value = !1,
|
|
693
|
-
onFocusin: r[2] ||= (e) => t.value = !0,
|
|
694
|
-
onFocusout: r[3] ||= (e) => t.value = !1
|
|
695
|
-
}, [D(U(le), {
|
|
696
|
-
class: "s-ui-table__hint-icon",
|
|
697
|
-
name: "infoCircle",
|
|
698
|
-
size: 16
|
|
699
|
-
}), t.value ? (I(), C("span", bt, V(e.text), 1)) : S("", !0)], 32));
|
|
700
|
-
}
|
|
701
|
-
}), St = {
|
|
702
|
-
key: 0,
|
|
703
|
-
class: "s-ui-table__header-grip-area"
|
|
704
|
-
}, Ct = { class: "s-ui-table__header-name" }, wt = { class: "s-ui-table__header-title" }, Tt = {
|
|
705
|
-
key: 1,
|
|
706
|
-
class: "s-ui-table__header-sort",
|
|
707
|
-
"aria-hidden": "true"
|
|
708
|
-
}, Et = {
|
|
709
|
-
key: 0,
|
|
710
|
-
class: "s-ui-table__header-sort-badge"
|
|
711
|
-
}, Dt = /* @__PURE__ */ O({
|
|
712
|
-
__name: "STableHeaderCell",
|
|
713
|
-
props: {
|
|
714
|
-
descriptor: {},
|
|
715
|
-
sortDirection: {},
|
|
716
|
-
sortIndex: {},
|
|
717
|
-
menuOpen: {
|
|
718
|
-
type: Boolean,
|
|
719
|
-
default: !1
|
|
720
|
-
},
|
|
721
|
-
menuEnabled: {
|
|
722
|
-
type: Boolean,
|
|
723
|
-
default: !0
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
emits: [
|
|
727
|
-
"update:menuOpen",
|
|
728
|
-
"sortToggle",
|
|
729
|
-
"sortSet",
|
|
730
|
-
"hide"
|
|
731
|
-
],
|
|
732
|
-
setup(e, { emit: t }) {
|
|
733
|
-
let n = t, s = ae(), { t: c } = fe(), f = b(() => e.menuEnabled === !1 ? !1 : !!s.menu || e.descriptor.sortable || e.descriptor.hideable), p = b(() => ({
|
|
734
|
-
"s-ui-table__header-plaque--sorted": !!e.sortDirection,
|
|
735
|
-
"s-ui-table__header-plaque--sortable": e.descriptor.sortable,
|
|
736
|
-
"s-ui-table__header-plaque--align-center": e.descriptor.align === Y.CENTER,
|
|
737
|
-
"s-ui-table__header-plaque--align-right": e.descriptor.align === Y.RIGHT
|
|
738
|
-
})), m = b(() => ({ "s-ui-table__header-actions--open": e.menuOpen })), g = b(() => e.sortDirection === X.DESC ? "descending" : "ascending"), _ = (t) => {
|
|
739
|
-
e.descriptor.sortable && n("sortToggle", t.shiftKey || t.ctrlKey || t.metaKey);
|
|
740
|
-
}, v = (e, t) => {
|
|
741
|
-
n("sortSet", e), t();
|
|
742
|
-
}, T = (e) => {
|
|
743
|
-
n("hide"), e();
|
|
744
|
-
};
|
|
745
|
-
return (t, b) => (I(), C("div", {
|
|
746
|
-
class: N(["s-ui-table__header-plaque", p.value]),
|
|
747
|
-
onClick: _
|
|
748
|
-
}, [
|
|
749
|
-
e.descriptor.draggable ? (I(), C("span", St, [D(U(o), {
|
|
750
|
-
class: "s-ui-table__header-grip",
|
|
751
|
-
appearance: U(i).BARE,
|
|
752
|
-
variant: U(r).NEUTRAL,
|
|
753
|
-
size: U(a).SMALL,
|
|
754
|
-
icon: "dragAndDrop",
|
|
755
|
-
"aria-label": U(c)("table.dragColumn"),
|
|
756
|
-
tabindex: "-1",
|
|
757
|
-
onClick: b[0] ||= se(() => {}, ["stop"])
|
|
758
|
-
}, null, 8, [
|
|
759
|
-
"appearance",
|
|
760
|
-
"variant",
|
|
761
|
-
"size",
|
|
762
|
-
"aria-label"
|
|
763
|
-
])])) : S("", !0),
|
|
764
|
-
w("span", Ct, [
|
|
765
|
-
w("span", wt, [z(t.$slots, "default", {}, () => [E(V(e.descriptor.column?.title), 1)])]),
|
|
766
|
-
e.descriptor.column?.description ? (I(), x(xt, {
|
|
767
|
-
key: 0,
|
|
768
|
-
text: e.descriptor.column.description
|
|
769
|
-
}, null, 8, ["text"])) : S("", !0),
|
|
770
|
-
e.sortDirection ? (I(), C("span", Tt, [D(U(le), {
|
|
771
|
-
name: g.value,
|
|
772
|
-
size: 16
|
|
773
|
-
}, null, 8, ["name"]), e.sortIndex === void 0 ? S("", !0) : (I(), C("span", Et, V(e.sortIndex), 1))])) : S("", !0),
|
|
774
|
-
e.descriptor.sortable && !e.sortDirection ? (I(), x(U(o), {
|
|
775
|
-
key: 2,
|
|
776
|
-
class: "s-ui-table__header-sort-button",
|
|
777
|
-
appearance: U(i).BARE,
|
|
778
|
-
variant: U(r).NEUTRAL,
|
|
779
|
-
size: U(a).SMALL,
|
|
780
|
-
icon: "ascending",
|
|
781
|
-
"aria-label": U(c)("table.sortAsc"),
|
|
782
|
-
tabindex: "-1",
|
|
783
|
-
onClick: b[1] ||= se((e) => n("sortToggle", e.shiftKey || e.ctrlKey || e.metaKey), ["stop"])
|
|
784
|
-
}, null, 8, [
|
|
785
|
-
"appearance",
|
|
786
|
-
"variant",
|
|
787
|
-
"size",
|
|
788
|
-
"aria-label"
|
|
789
|
-
])) : S("", !0)
|
|
790
|
-
]),
|
|
791
|
-
f.value ? (I(), C("span", {
|
|
792
|
-
key: 1,
|
|
793
|
-
class: N(["s-ui-table__header-actions", m.value]),
|
|
794
|
-
onClick: b[3] ||= se(() => {}, ["stop"])
|
|
795
|
-
}, [D(U(u), {
|
|
796
|
-
"model-value": e.menuOpen,
|
|
797
|
-
placement: U(l).BOTTOM_END,
|
|
798
|
-
"teleport-to": !1,
|
|
799
|
-
"onUpdate:modelValue": b[2] ||= (e) => n("update:menuOpen", e)
|
|
800
|
-
}, {
|
|
801
|
-
trigger: G(({ toggle: e }) => [D(U(o), {
|
|
802
|
-
class: "s-ui-table__header-kebab",
|
|
803
|
-
appearance: U(i).BARE,
|
|
804
|
-
variant: U(r).NEUTRAL,
|
|
805
|
-
size: U(a).SMALL,
|
|
806
|
-
icon: "menu",
|
|
807
|
-
"aria-label": U(c)("table.columnMenu"),
|
|
808
|
-
tabindex: "-1",
|
|
809
|
-
onClick: (t) => e()
|
|
810
|
-
}, null, 8, [
|
|
811
|
-
"appearance",
|
|
812
|
-
"variant",
|
|
813
|
-
"size",
|
|
814
|
-
"aria-label",
|
|
815
|
-
"onClick"
|
|
816
|
-
])]),
|
|
817
|
-
content: G(({ close: n }) => [D(U(d), { width: 220 }, {
|
|
818
|
-
default: G(() => [U(s).menu ? z(t.$slots, "menu", { key: 0 }) : (I(), C(y, { key: 1 }, [
|
|
819
|
-
e.descriptor.sortable ? (I(), x(U(h), {
|
|
820
|
-
key: 0,
|
|
821
|
-
title: U(c)("table.sortAsc"),
|
|
822
|
-
"icon-left": "ascending",
|
|
823
|
-
selected: e.sortDirection === U(X).ASC,
|
|
824
|
-
onClick: (e) => v(U(X).ASC, n)
|
|
825
|
-
}, null, 8, [
|
|
826
|
-
"title",
|
|
827
|
-
"selected",
|
|
828
|
-
"onClick"
|
|
829
|
-
])) : S("", !0),
|
|
830
|
-
e.descriptor.sortable ? (I(), x(U(h), {
|
|
831
|
-
key: 1,
|
|
832
|
-
title: U(c)("table.sortDesc"),
|
|
833
|
-
"icon-left": "descending",
|
|
834
|
-
selected: e.sortDirection === U(X).DESC,
|
|
835
|
-
onClick: (e) => v(U(X).DESC, n)
|
|
836
|
-
}, null, 8, [
|
|
837
|
-
"title",
|
|
838
|
-
"selected",
|
|
839
|
-
"onClick"
|
|
840
|
-
])) : S("", !0),
|
|
841
|
-
e.descriptor.sortable && e.sortDirection ? (I(), x(U(h), {
|
|
842
|
-
key: 2,
|
|
843
|
-
title: U(c)("table.sortReset"),
|
|
844
|
-
"icon-left": "closeMini",
|
|
845
|
-
onClick: (e) => v(void 0, n)
|
|
846
|
-
}, null, 8, ["title", "onClick"])) : S("", !0),
|
|
847
|
-
e.descriptor.hideable ? (I(), x(U(h), {
|
|
848
|
-
key: 3,
|
|
849
|
-
title: U(c)("table.hideColumn"),
|
|
850
|
-
"icon-left": "eyeOff",
|
|
851
|
-
onClick: (e) => T(n)
|
|
852
|
-
}, null, 8, ["title", "onClick"])) : S("", !0)
|
|
853
|
-
], 64))]),
|
|
854
|
-
_: 2
|
|
855
|
-
}, 1024)]),
|
|
856
|
-
_: 3
|
|
857
|
-
}, 8, ["model-value", "placement"])], 2)) : S("", !0)
|
|
858
|
-
], 2));
|
|
859
|
-
}
|
|
860
|
-
}), Ot = ["data-index", "aria-rowindex"], kt = {
|
|
861
|
-
key: 0,
|
|
862
|
-
class: "s-ui-table__cell s-ui-table__filler-cell",
|
|
863
|
-
role: "presentation"
|
|
864
|
-
}, At = ["data-column-key", "data-row-key"], jt = {
|
|
865
|
-
key: 0,
|
|
866
|
-
class: "s-ui-table__cell-body"
|
|
867
|
-
}, Mt = /* @__PURE__ */ O({
|
|
868
|
-
__name: "STablePlaceholderRow",
|
|
869
|
-
props: {
|
|
870
|
-
rowIndex: {},
|
|
871
|
-
rowKey: {},
|
|
872
|
-
cells: {},
|
|
873
|
-
rowHeight: {}
|
|
874
|
-
},
|
|
875
|
-
setup(e) {
|
|
876
|
-
let t = b(() => e.rowHeight ? { height: `${e.rowHeight}px` } : void 0);
|
|
877
|
-
return (n, r) => (I(), C("tr", {
|
|
878
|
-
class: "s-ui-table__row s-ui-table__row--placeholder",
|
|
879
|
-
style: P(t.value),
|
|
880
|
-
"data-index": e.rowIndex,
|
|
881
|
-
"aria-rowindex": e.rowIndex + 2,
|
|
882
|
-
"data-placeholder": "true"
|
|
883
|
-
}, [(I(!0), C(y, null, R(e.cells, (t) => (I(), C(y, { key: t.key }, [t.cellPlan ? (I(), C("td", {
|
|
884
|
-
key: 1,
|
|
885
|
-
class: N(t.cellPlan.cellClass),
|
|
886
|
-
style: P(t.cellPlan.style),
|
|
887
|
-
"data-column-key": t.cellPlan.descriptor.key,
|
|
888
|
-
"data-row-key": e.rowKey
|
|
889
|
-
}, [t.cellPlan.descriptor.service ? S("", !0) : (I(), C("div", jt, [...r[0] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]]))], 14, At)) : (I(), C("td", kt))], 64))), 128))], 12, Ot));
|
|
890
|
-
}
|
|
891
|
-
}), Nt = (t) => e(t) || n(t), Pt = (e) => Nt(e) ? void 0 : `s-ui-table__row--color-${e}`, Ft = (n) => {
|
|
892
|
-
if (!Nt(n)) return;
|
|
893
|
-
let r = { "--s-ui-table-row-color": n };
|
|
894
|
-
return e(n) && (r["--s-ui-table-row-color-contrast"] = t(n)), r;
|
|
895
|
-
}, It = "__s-ui-table-load-more:", Lt = "__s-ui-table-depth-footer:", Rt = (e) => `${It}${e}`, zt = (e) => `${Lt}${e}`, Bt = p, Vt = (e, t) => {
|
|
896
|
-
let n = e[t];
|
|
897
|
-
if (Array.isArray(n)) return n;
|
|
898
|
-
}, Ht = (e, t) => t ? typeof t == "function" ? t(e) === !0 : e[t] === !0 : !1, Ut = (e, t) => {
|
|
899
|
-
if (!t) return;
|
|
900
|
-
if (typeof t == "function") return t(e);
|
|
901
|
-
let n = e[t];
|
|
902
|
-
if (typeof n == "string" || typeof n == "number") return n;
|
|
903
|
-
}, Wt = (e, t) => {
|
|
904
|
-
if (!t) return;
|
|
905
|
-
let n = e[t];
|
|
906
|
-
return typeof n == "number" ? n : void 0;
|
|
907
|
-
}, Gt = (e, t, n, r) => A({
|
|
908
|
-
key: e,
|
|
909
|
-
item: t,
|
|
910
|
-
depth: n,
|
|
911
|
-
index: 0,
|
|
912
|
-
kind: Q.ROW,
|
|
913
|
-
hasChildren: !1,
|
|
914
|
-
expanded: !1,
|
|
915
|
-
parentKey: r,
|
|
916
|
-
subtreeEnd: 0
|
|
917
|
-
}), Kt = ({ items: e, itemKey: t, childrenKey: n, groupRow: r, expanded: i, depthFooter: a, hasMoreChildrenKey: o }) => {
|
|
918
|
-
let s = /* @__PURE__ */ new WeakMap(), c = (e, t, n) => {
|
|
919
|
-
let r = /* @__PURE__ */ new Map(), i = [], a = (e, i, a) => {
|
|
920
|
-
let s = Bt(e, t);
|
|
921
|
-
if (!s) return;
|
|
922
|
-
let c = {
|
|
923
|
-
key: s,
|
|
924
|
-
item: e,
|
|
925
|
-
parentKey: a,
|
|
926
|
-
depth: i,
|
|
927
|
-
subtreeSize: 0,
|
|
928
|
-
children: void 0,
|
|
929
|
-
row: void 0
|
|
930
|
-
};
|
|
931
|
-
r.set(s, c);
|
|
932
|
-
let l = Vt(e, n);
|
|
933
|
-
return l && o(c, l), c;
|
|
934
|
-
}, o = (e, t) => {
|
|
935
|
-
let n = [];
|
|
936
|
-
t.forEach((t) => {
|
|
937
|
-
let r = a(t, e.depth + 1, e.key);
|
|
938
|
-
r && n.push(r);
|
|
939
|
-
}), e.children = n, e.subtreeSize = n.reduce((e, t) => e + 1 + t.subtreeSize, 0), t.length > 0 && i.push(e.key);
|
|
940
|
-
}, s = [];
|
|
941
|
-
return e.forEach((e) => {
|
|
942
|
-
let t = a(e, 0, void 0);
|
|
943
|
-
t && s.push(t);
|
|
944
|
-
}), A({
|
|
945
|
-
nodeByKey: r,
|
|
946
|
-
roots: s,
|
|
947
|
-
expandableKeys: i
|
|
948
|
-
});
|
|
949
|
-
}, l = b(() => {
|
|
950
|
-
let r = ne(H(e)), i = H(t), a = H(n), o = s.get(r);
|
|
951
|
-
if (o && o.itemKeyValue === i && o.childrenKeyValue === a) return o.index;
|
|
952
|
-
let l = c(r, i, a);
|
|
953
|
-
return s.set(r, {
|
|
954
|
-
itemKeyValue: i,
|
|
955
|
-
childrenKeyValue: a,
|
|
956
|
-
index: l
|
|
957
|
-
}), l;
|
|
958
|
-
}), u = b(() => new Set(i.value)), d = /* @__PURE__ */ new WeakMap(), f = (e) => {
|
|
959
|
-
let t = d.get(e);
|
|
960
|
-
if (t) return t;
|
|
961
|
-
let n = /* @__PURE__ */ new Map();
|
|
962
|
-
return d.set(e, n), n;
|
|
963
|
-
}, p = b(() => {
|
|
964
|
-
let t = ne(H(e)), { roots: n, nodeByKey: i } = l.value, s = H(r), c = H(a), d = H(o), p = u.value, m = c ? new Set(c.depths) : void 0, h = c?.show ?? (() => !0), g = f(t), _ = [], v = [], y = /* @__PURE__ */ new Map(), b = (e, t, n, r) => (e.index = _.length, e.kind = t, e.hasChildren = n, e.expanded = r, e.subtreeEnd = e.index, _.push(e), e), x = (e, t, n, r) => (e.row ||= Gt(e.key, e.item, e.depth, e.parentKey), b(e.row, t, n, r)), S = (e, t, n) => {
|
|
965
|
-
let r = g.get(e);
|
|
966
|
-
return r || (r = Gt(e, t.item, t.depth + 1, t.key), g.set(e, r)), b(r, n, !1, !1);
|
|
967
|
-
}, C = (e) => {
|
|
968
|
-
d && e.item[d] === !0 && S(Rt(e.key), e, Q.LOAD_MORE);
|
|
969
|
-
}, w = (e) => {
|
|
970
|
-
if (m !== void 0 && m.has(e.depth) && h(e.item, e.depth)) {
|
|
971
|
-
let t = S(zt(e.key), e, Q.DEPTH_FOOTER);
|
|
972
|
-
y.set(e.key, t.index);
|
|
973
|
-
}
|
|
974
|
-
}, T = (e) => s && Ht(e.item, s) ? Q.GROUP : Q.ROW, E = (e) => e.children !== void 0 && e.children.length > 0, D = (e, t, n) => (t || n) && p.has(e.key), O = (e) => {
|
|
975
|
-
let t = T(e), n = t === Q.GROUP, r = E(e), i = D(e, r, n), a = x(e, t, r, i);
|
|
976
|
-
n && v.push(a.index), i && (e.children?.forEach((e) => O(e)), C(e), w(e)), a.subtreeEnd = _.length - 1;
|
|
977
|
-
};
|
|
978
|
-
n.forEach((e) => O(e));
|
|
979
|
-
let k = A(_), j = (e) => i.get(e)?.row ?? g.get(e), M = (e) => {
|
|
980
|
-
let t = j(e);
|
|
981
|
-
return t && k[t.index] === t ? t : void 0;
|
|
982
|
-
};
|
|
983
|
-
return A({
|
|
984
|
-
flatRows: k,
|
|
985
|
-
getRowIndexByKey: (e) => M(e)?.index,
|
|
986
|
-
getSubtreeRangeByKey: (e) => {
|
|
987
|
-
let t = M(e);
|
|
988
|
-
return t ? [t.index, t.subtreeEnd] : void 0;
|
|
989
|
-
},
|
|
990
|
-
groupRowIndexes: v,
|
|
991
|
-
depthFooterIndexByParentKey: y
|
|
992
|
-
});
|
|
993
|
-
}), m = b(() => p.value.flatRows), h = (e) => u.value.has(e), g = (e, t) => {
|
|
994
|
-
l.value.nodeByKey.get(e)?.children?.forEach((e) => {
|
|
995
|
-
t.add(e.key), g(e.key, t);
|
|
996
|
-
});
|
|
997
|
-
};
|
|
998
|
-
return {
|
|
999
|
-
treeIndex: l,
|
|
1000
|
-
snapshot: p,
|
|
1001
|
-
flatRows: m,
|
|
1002
|
-
isExpanded: h,
|
|
1003
|
-
toggleExpanded: (e) => {
|
|
1004
|
-
let t = new Set(i.value);
|
|
1005
|
-
if (t.has(e)) {
|
|
1006
|
-
t.delete(e);
|
|
1007
|
-
let n = /* @__PURE__ */ new Set();
|
|
1008
|
-
g(e, n), n.forEach((e) => {
|
|
1009
|
-
t.delete(e);
|
|
1010
|
-
});
|
|
1011
|
-
} else t.add(e);
|
|
1012
|
-
i.value = [...t];
|
|
1013
|
-
},
|
|
1014
|
-
expandAll: () => {
|
|
1015
|
-
i.value = [...l.value.expandableKeys];
|
|
1016
|
-
},
|
|
1017
|
-
collapseAll: () => {
|
|
1018
|
-
i.value = [];
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
}, qt = {
|
|
1022
|
-
key: 0,
|
|
1023
|
-
class: "s-ui-table__cell-text"
|
|
1024
|
-
}, Jt = {
|
|
1025
|
-
key: 1,
|
|
1026
|
-
class: "s-ui-table__cell-placeholder"
|
|
1027
|
-
}, Yt = /* @__PURE__ */ O({
|
|
1028
|
-
__name: "STableCellText",
|
|
1029
|
-
props: {
|
|
1030
|
-
column: {},
|
|
1031
|
-
item: {}
|
|
1032
|
-
},
|
|
1033
|
-
setup(e) {
|
|
1034
|
-
let t = b(() => Ut(e.item, e.column.value ?? e.column.key)), n = b(() => t.value !== void 0 && t.value !== "");
|
|
1035
|
-
return (r, i) => n.value ? (I(), C("span", qt, V(t.value), 1)) : e.column.placeholder ? (I(), C("span", Jt, V(e.column.placeholder), 1)) : S("", !0);
|
|
1036
|
-
}
|
|
1037
|
-
}), Xt = [
|
|
1038
|
-
"id",
|
|
1039
|
-
"data-index",
|
|
1040
|
-
"aria-rowindex",
|
|
1041
|
-
"aria-level",
|
|
1042
|
-
"aria-expanded",
|
|
1043
|
-
"aria-selected"
|
|
1044
|
-
], Zt = [
|
|
1045
|
-
"id",
|
|
1046
|
-
"aria-colindex",
|
|
1047
|
-
"data-column-key",
|
|
1048
|
-
"data-row-key",
|
|
1049
|
-
"data-section",
|
|
1050
|
-
"aria-disabled",
|
|
1051
|
-
"aria-readonly",
|
|
1052
|
-
"tabindex"
|
|
1053
|
-
], Qt = {
|
|
1054
|
-
key: 2,
|
|
1055
|
-
class: "s-ui-table__chevron-spacer"
|
|
1056
|
-
}, $t = {
|
|
1057
|
-
key: 3,
|
|
1058
|
-
class: "s-ui-table__cell-body-action"
|
|
1059
|
-
}, en = [
|
|
1060
|
-
"id",
|
|
1061
|
-
"aria-colindex",
|
|
1062
|
-
"data-column-key",
|
|
1063
|
-
"data-row-key",
|
|
1064
|
-
"data-section",
|
|
1065
|
-
"aria-disabled",
|
|
1066
|
-
"aria-readonly",
|
|
1067
|
-
"tabindex"
|
|
1068
|
-
], tn = {
|
|
1069
|
-
key: 0,
|
|
1070
|
-
class: "s-ui-table__right-edge"
|
|
1071
|
-
}, nn = {
|
|
1072
|
-
key: 2,
|
|
1073
|
-
class: "s-ui-table__cell-body-action"
|
|
1074
|
-
}, rn = /* @__PURE__ */ O({
|
|
1075
|
-
__name: "STableRow",
|
|
1076
|
-
props: {
|
|
1077
|
-
row: {},
|
|
1078
|
-
rowIndex: {},
|
|
1079
|
-
rowExpanded: {
|
|
1080
|
-
type: Boolean,
|
|
1081
|
-
default: !1
|
|
1082
|
-
},
|
|
1083
|
-
leadingPlans: {},
|
|
1084
|
-
trailingPlans: {},
|
|
1085
|
-
domId: {},
|
|
1086
|
-
selected: {
|
|
1087
|
-
type: Boolean,
|
|
1088
|
-
default: !1
|
|
1089
|
-
},
|
|
1090
|
-
indeterminate: {
|
|
1091
|
-
type: Boolean,
|
|
1092
|
-
default: !1
|
|
1093
|
-
},
|
|
1094
|
-
rowSelectable: {
|
|
1095
|
-
type: Boolean,
|
|
1096
|
-
default: !1
|
|
1097
|
-
},
|
|
1098
|
-
active: {
|
|
1099
|
-
type: Boolean,
|
|
1100
|
-
default: !1
|
|
1101
|
-
},
|
|
1102
|
-
disabled: {
|
|
1103
|
-
type: Boolean,
|
|
1104
|
-
default: !1
|
|
1105
|
-
},
|
|
1106
|
-
treeIndent: {},
|
|
1107
|
-
rowState: {},
|
|
1108
|
-
rowColor: {},
|
|
1109
|
-
extraRowClass: {},
|
|
1110
|
-
extraRowStyle: {},
|
|
1111
|
-
dndRef: { type: Function },
|
|
1112
|
-
dragging: {
|
|
1113
|
-
type: Boolean,
|
|
1114
|
-
default: !1
|
|
1115
|
-
},
|
|
1116
|
-
dropPosition: {},
|
|
1117
|
-
placeholder: {
|
|
1118
|
-
type: Boolean,
|
|
1119
|
-
default: !1
|
|
1120
|
-
},
|
|
1121
|
-
placeholderHeight: {},
|
|
1122
|
-
cellIdPrefix: {},
|
|
1123
|
-
focusColumnKey: {},
|
|
1124
|
-
treegrid: {
|
|
1125
|
-
type: Boolean,
|
|
1126
|
-
default: !1
|
|
1127
|
-
}
|
|
1128
|
-
},
|
|
1129
|
-
emits: [
|
|
1130
|
-
"rowClick",
|
|
1131
|
-
"rowContextMenu",
|
|
1132
|
-
"cellClick",
|
|
1133
|
-
"toggleExpand",
|
|
1134
|
-
"toggleSelected"
|
|
1135
|
-
],
|
|
1136
|
-
setup(e, { emit: t }) {
|
|
1137
|
-
let n = t, s = ae(), { t: c } = fe(), l = $.BODY, u = (t) => `${e.cellIdPrefix}${e.row.key}-${t}`, d = (t) => t === e.focusColumnKey ? 0 : -1, f = b(() => [
|
|
1138
|
-
{
|
|
1139
|
-
"s-ui-table__row--selected": e.selected,
|
|
1140
|
-
"s-ui-table__row--active": e.active,
|
|
1141
|
-
"s-ui-table__row--disabled": e.disabled,
|
|
1142
|
-
"s-ui-table__row--dragging": e.dragging,
|
|
1143
|
-
"s-ui-table__row--drop-before": e.dropPosition === "before",
|
|
1144
|
-
"s-ui-table__row--drop-after": e.dropPosition === "after",
|
|
1145
|
-
"s-ui-table__row--drop-inside": e.dropPosition === "inside",
|
|
1146
|
-
"s-ui-table__row--colored": !!e.rowColor
|
|
1147
|
-
},
|
|
1148
|
-
k.value,
|
|
1149
|
-
p.value,
|
|
1150
|
-
e.extraRowClass
|
|
1151
|
-
]), p = b(() => e.rowColor ? Pt(e.rowColor) : void 0), m = b(() => e.rowColor ? Ft(e.rowColor) : void 0), h = b(() => {
|
|
1152
|
-
let t = e.placeholder && e.placeholderHeight ? { height: `${e.placeholderHeight}px` } : void 0;
|
|
1153
|
-
if (!(!e.extraRowStyle && !t && !m.value)) return {
|
|
1154
|
-
...e.extraRowStyle,
|
|
1155
|
-
...m.value,
|
|
1156
|
-
...t
|
|
1157
|
-
};
|
|
1158
|
-
}), g = (t) => {
|
|
1159
|
-
if (!(!t.chevron || e.row.depth === 0)) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e.row.depth * e.treeIndent}px)` };
|
|
1160
|
-
}, _ = {
|
|
1161
|
-
[Ae.DEFAULT]: void 0,
|
|
1162
|
-
[Ae.COMPLETED]: "s-ui-table__row--state-completed"
|
|
1163
|
-
}, v = {
|
|
1164
|
-
[Me.DEFAULT]: void 0,
|
|
1165
|
-
[Me.DISABLED]: "s-ui-table__cell-body--state-disabled",
|
|
1166
|
-
[Me.READONLY]: "s-ui-table__cell-body--state-readonly",
|
|
1167
|
-
[Me.EDITING]: "s-ui-table__cell-body--state-editing"
|
|
1168
|
-
}, T = (t) => {
|
|
1169
|
-
let n = t.descriptor.column?.cellState;
|
|
1170
|
-
return n ? typeof n == "function" ? n(e.row.item) : n : Me.DEFAULT;
|
|
1171
|
-
}, E = (e) => v[T(e)], D = (e) => T(e) === Me.DISABLED || void 0, O = (e) => T(e) === Me.READONLY || void 0, k = b(() => e.rowState ? _[e.rowState] : void 0), A = () => ({
|
|
1172
|
-
...e.row,
|
|
1173
|
-
selected: e.selected,
|
|
1174
|
-
indeterminate: e.indeterminate,
|
|
1175
|
-
active: e.active,
|
|
1176
|
-
disabled: e.disabled,
|
|
1177
|
-
group: e.row.kind === Q.GROUP,
|
|
1178
|
-
toggleExpanded: () => {
|
|
1179
|
-
n("toggleExpand");
|
|
1180
|
-
},
|
|
1181
|
-
toggleSelected: () => {
|
|
1182
|
-
n("toggleSelected");
|
|
1183
|
-
}
|
|
1184
|
-
}), j = (t) => {
|
|
1185
|
-
let n = t.descriptor.column ?? { key: t.descriptor.key };
|
|
1186
|
-
return {
|
|
1187
|
-
...A(),
|
|
1188
|
-
column: n,
|
|
1189
|
-
value: Ut(e.row.item, n.value ?? n.key),
|
|
1190
|
-
cellState: T(t)
|
|
1191
|
-
};
|
|
1192
|
-
}, ee = (t) => {
|
|
1193
|
-
let n = [...e.leadingPlans, ...e.trailingPlans].find((e) => e.descriptor.key === t);
|
|
1194
|
-
return n ? T(n) === Me.DISABLED : !1;
|
|
1195
|
-
}, F = (e) => {
|
|
1196
|
-
let t = e.target;
|
|
1197
|
-
if (t instanceof Element) {
|
|
1198
|
-
let r = t.closest("td[data-column-key]")?.getAttribute("data-column-key");
|
|
1199
|
-
r && !ee(r) && n("cellClick", r, e);
|
|
1200
|
-
}
|
|
1201
|
-
n("rowClick", e);
|
|
1202
|
-
};
|
|
1203
|
-
return (t, p) => (I(), C("tr", {
|
|
1204
|
-
id: e.domId,
|
|
1205
|
-
ref: e.dndRef,
|
|
1206
|
-
class: N(["s-ui-table__row", f.value]),
|
|
1207
|
-
style: P(h.value),
|
|
1208
|
-
"data-index": e.rowIndex,
|
|
1209
|
-
"aria-rowindex": e.rowIndex + 2,
|
|
1210
|
-
"aria-level": e.treegrid ? e.row.depth + 1 : void 0,
|
|
1211
|
-
"aria-expanded": e.treegrid && e.row.hasChildren ? e.rowExpanded : void 0,
|
|
1212
|
-
"aria-selected": e.selected || void 0,
|
|
1213
|
-
onClick: F,
|
|
1214
|
-
onContextmenu: p[3] ||= (e) => n("rowContextMenu", e)
|
|
1215
|
-
}, [
|
|
1216
|
-
(I(!0), C(y, null, R(e.leadingPlans, (f) => (I(), C("td", {
|
|
1217
|
-
id: u(f.descriptor.key),
|
|
1218
|
-
key: f.descriptor.key,
|
|
1219
|
-
class: N(f.cellClass),
|
|
1220
|
-
style: P(f.style),
|
|
1221
|
-
"aria-colindex": f.descriptor.colIndex,
|
|
1222
|
-
"data-column-key": f.descriptor.key,
|
|
1223
|
-
"data-row-key": e.row.key,
|
|
1224
|
-
"data-section": U(l),
|
|
1225
|
-
"aria-disabled": D(f),
|
|
1226
|
-
"aria-readonly": O(f),
|
|
1227
|
-
tabindex: d(f.descriptor.key)
|
|
1228
|
-
}, [f.descriptor.service === U(qe).INDICATOR ? (I(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : z(t.$slots, "indicator", M({
|
|
1229
|
-
key: 0,
|
|
1230
|
-
ref_for: !0
|
|
1231
|
-
}, A()))], 64)) : f.descriptor.service === U(qe).CHECKBOX ? (I(), C(y, { key: 1 }, [U(s).checkbox && !e.placeholder ? z(t.$slots, "checkbox", M({
|
|
1232
|
-
key: 0,
|
|
1233
|
-
ref_for: !0
|
|
1234
|
-
}, A())) : e.rowSelectable && !e.placeholder ? (I(), x(We, {
|
|
1235
|
-
key: 1,
|
|
1236
|
-
class: N(["s-ui-table__row-checkbox", { "s-ui-table__row-checkbox--active": e.selected || e.indeterminate }]),
|
|
1237
|
-
"model-value": e.selected,
|
|
1238
|
-
indeterminate: e.indeterminate,
|
|
1239
|
-
"screen-reader-label": U(c)("table.selectRow"),
|
|
1240
|
-
"onUpdate:modelValue": p[0] ||= (e) => n("toggleSelected"),
|
|
1241
|
-
onClick: p[1] ||= se(() => {}, ["stop"])
|
|
1242
|
-
}, null, 8, [
|
|
1243
|
-
"class",
|
|
1244
|
-
"model-value",
|
|
1245
|
-
"indeterminate",
|
|
1246
|
-
"screen-reader-label"
|
|
1247
|
-
])) : S("", !0)], 64)) : e.placeholder ? (I(), C("div", {
|
|
1248
|
-
key: 2,
|
|
1249
|
-
class: "s-ui-table__cell-body",
|
|
1250
|
-
style: P(g(f))
|
|
1251
|
-
}, [...p[4] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (I(), C("div", {
|
|
1252
|
-
key: 3,
|
|
1253
|
-
class: N(["s-ui-table__cell-body", E(f)]),
|
|
1254
|
-
style: P(g(f))
|
|
1255
|
-
}, [
|
|
1256
|
-
f.chevron ? (I(), C(y, { key: 0 }, [U(s).chevron ? z(t.$slots, "chevron", M({
|
|
1257
|
-
key: 0,
|
|
1258
|
-
ref_for: !0
|
|
1259
|
-
}, A())) : e.row.hasChildren ? (I(), x(U(o), {
|
|
1260
|
-
key: 1,
|
|
1261
|
-
class: "s-ui-table__chevron",
|
|
1262
|
-
appearance: U(i).BARE,
|
|
1263
|
-
variant: U(r).NEUTRAL,
|
|
1264
|
-
size: U(a).SMALL,
|
|
1265
|
-
icon: e.rowExpanded ? "chevronMiniDown" : "chevronMiniRight",
|
|
1266
|
-
"aria-label": e.rowExpanded ? U(c)("table.collapse") : U(c)("table.expand"),
|
|
1267
|
-
tabindex: "-1",
|
|
1268
|
-
onClick: p[2] ||= se((e) => n("toggleExpand"), ["stop"])
|
|
1269
|
-
}, null, 8, [
|
|
1270
|
-
"appearance",
|
|
1271
|
-
"variant",
|
|
1272
|
-
"size",
|
|
1273
|
-
"icon",
|
|
1274
|
-
"aria-label"
|
|
1275
|
-
])) : (I(), C("span", Qt))], 64)) : S("", !0),
|
|
1276
|
-
U(s)[`cell:${f.descriptor.key}`] ? z(t.$slots, `cell:${f.descriptor.key}`, M({
|
|
1277
|
-
key: 1,
|
|
1278
|
-
ref_for: !0
|
|
1279
|
-
}, j(f))) : f.descriptor.column ? (I(), x(Yt, {
|
|
1280
|
-
key: 2,
|
|
1281
|
-
column: f.descriptor.column,
|
|
1282
|
-
item: e.row.item
|
|
1283
|
-
}, null, 8, ["column", "item"])) : S("", !0),
|
|
1284
|
-
U(s)["cell-actions"] && !e.placeholder ? (I(), C("span", $t, [z(t.$slots, "cell-actions", M({ ref_for: !0 }, j(f)))])) : S("", !0)
|
|
1285
|
-
], 6))], 14, Zt))), 128)),
|
|
1286
|
-
p[6] ||= w("td", {
|
|
1287
|
-
class: "s-ui-table__cell s-ui-table__filler-cell",
|
|
1288
|
-
role: "presentation"
|
|
1289
|
-
}, null, -1),
|
|
1290
|
-
(I(!0), C(y, null, R(e.trailingPlans, (n) => (I(), C("td", {
|
|
1291
|
-
id: u(n.descriptor.key),
|
|
1292
|
-
key: n.descriptor.key,
|
|
1293
|
-
class: N(n.cellClass),
|
|
1294
|
-
style: P(n.style),
|
|
1295
|
-
"aria-colindex": n.descriptor.colIndex,
|
|
1296
|
-
"data-column-key": n.descriptor.key,
|
|
1297
|
-
"data-row-key": e.row.key,
|
|
1298
|
-
"data-section": U(l),
|
|
1299
|
-
"aria-disabled": D(n),
|
|
1300
|
-
"aria-readonly": O(n),
|
|
1301
|
-
tabindex: d(n.descriptor.key)
|
|
1302
|
-
}, [n.descriptor.service === U(qe).RIGHT_EDGE ? (I(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : (I(), C("div", tn, [z(t.$slots, "right-edge", M({ ref_for: !0 }, A()))]))], 64)) : e.placeholder ? (I(), C("div", {
|
|
1303
|
-
key: 1,
|
|
1304
|
-
class: "s-ui-table__cell-body",
|
|
1305
|
-
style: P(g(n))
|
|
1306
|
-
}, [...p[5] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (I(), C("div", {
|
|
1307
|
-
key: 2,
|
|
1308
|
-
class: N(["s-ui-table__cell-body", E(n)]),
|
|
1309
|
-
style: P(g(n))
|
|
1310
|
-
}, [U(s)[`cell:${n.descriptor.key}`] ? z(t.$slots, `cell:${n.descriptor.key}`, M({
|
|
1311
|
-
key: 0,
|
|
1312
|
-
ref_for: !0
|
|
1313
|
-
}, j(n))) : n.descriptor.column ? (I(), x(Yt, {
|
|
1314
|
-
key: 1,
|
|
1315
|
-
column: n.descriptor.column,
|
|
1316
|
-
item: e.row.item
|
|
1317
|
-
}, null, 8, ["column", "item"])) : S("", !0), U(s)["cell-actions"] && !e.placeholder ? (I(), C("span", nn, [z(t.$slots, "cell-actions", M({ ref_for: !0 }, j(n)))])) : S("", !0)], 6))], 14, en))), 128))
|
|
1318
|
-
], 46, Xt));
|
|
1319
|
-
}
|
|
1320
|
-
}), an = {
|
|
1321
|
-
class: "s-ui-table__row s-ui-table__row--skeleton",
|
|
1322
|
-
"aria-hidden": "true"
|
|
1323
|
-
}, on = { class: "s-ui-table__cell-body" }, sn = /* @__PURE__ */ O({
|
|
1324
|
-
__name: "STableSkeletonRow",
|
|
1325
|
-
props: {
|
|
1326
|
-
leadingPlans: {},
|
|
1327
|
-
trailingPlans: {}
|
|
1328
|
-
},
|
|
1329
|
-
setup(e) {
|
|
1330
|
-
return (t, n) => (I(), C("tr", an, [
|
|
1331
|
-
(I(!0), C(y, null, R(e.leadingPlans, (e) => (I(), C("td", {
|
|
1332
|
-
key: e.descriptor.key,
|
|
1333
|
-
class: N(e.cellClass),
|
|
1334
|
-
style: P(e.style)
|
|
1335
|
-
}, [e.descriptor.column ? z(t.$slots, "default", {
|
|
1336
|
-
key: 0,
|
|
1337
|
-
descriptor: e.descriptor
|
|
1338
|
-
}, () => [w("div", on, [D(U(de), {
|
|
1339
|
-
class: "s-ui-table__skeleton",
|
|
1340
|
-
type: e.descriptor.primary ? U(ce).S_TABLE_ROW : U(ce).S_TABLE_CELL
|
|
1341
|
-
}, null, 8, ["type"])])]) : S("", !0)], 6))), 128)),
|
|
1342
|
-
n[0] ||= w("td", {
|
|
1343
|
-
class: "s-ui-table__cell s-ui-table__filler-cell",
|
|
1344
|
-
role: "presentation"
|
|
1345
|
-
}, null, -1),
|
|
1346
|
-
(I(!0), C(y, null, R(e.trailingPlans, (e) => (I(), C("td", {
|
|
1347
|
-
key: e.descriptor.key,
|
|
1348
|
-
class: N(e.cellClass),
|
|
1349
|
-
style: P(e.style)
|
|
1350
|
-
}, null, 6))), 128))
|
|
1351
|
-
]));
|
|
1352
|
-
}
|
|
1353
|
-
}), cn = "s-ui-table-column", ln = "s-ui-table-row", un = (e, t) => e.type === "s-ui-table-column" && e.tableId === t, dn = (e, t) => e.type === "s-ui-table-row" && e.tableId === t, fn = ({ tableId: e, tableRootElement: t, enabled: n, columnDescriptors: r, onReorder: i, isResizing: a }) => {
|
|
1354
|
-
let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = B(), l = B(), u = (e) => r.value.find((t) => t.key === e), d = (e, t) => {
|
|
1355
|
-
let n = u(e), r = u(t);
|
|
1356
|
-
if (!n || !r || r.primary) return !1;
|
|
1357
|
-
let i = (e) => e.sticky ?? "regular";
|
|
1358
|
-
return i(n) === i(r);
|
|
1359
|
-
}, f = (t, r) => {
|
|
1360
|
-
if (!(r instanceof HTMLElement)) {
|
|
1361
|
-
o.forEach((e, t) => {
|
|
1362
|
-
t.isConnected || (e(), o.delete(t), s.delete(t));
|
|
1363
|
-
});
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
if (s.get(r) === t) return;
|
|
1367
|
-
o.get(r)?.(), s.set(r, t);
|
|
1368
|
-
let i = xe(q({
|
|
1369
|
-
element: r,
|
|
1370
|
-
canDrag: () => {
|
|
1371
|
-
let e = u(t);
|
|
1372
|
-
return !!(H(n) && e?.draggable && !H(a));
|
|
1373
|
-
},
|
|
1374
|
-
getInitialData: () => ({
|
|
1375
|
-
type: cn,
|
|
1376
|
-
tableId: e,
|
|
1377
|
-
columnKey: t
|
|
1378
|
-
}),
|
|
1379
|
-
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
1380
|
-
let n = u(t);
|
|
1381
|
-
we({
|
|
1382
|
-
nativeSetDragImage: e,
|
|
1383
|
-
getOffset: Te({
|
|
1384
|
-
x: "8px",
|
|
1385
|
-
y: "8px"
|
|
1386
|
-
}),
|
|
1387
|
-
render: ({ container: e }) => {
|
|
1388
|
-
let r = document.createElement("div");
|
|
1389
|
-
r.className = "s-ui-table__column-drag-preview", r.textContent = n?.column?.title ?? t, e.appendChild(r);
|
|
1390
|
-
}
|
|
1391
|
-
});
|
|
1392
|
-
},
|
|
1393
|
-
onDragStart: () => {
|
|
1394
|
-
c.value = t;
|
|
1395
|
-
},
|
|
1396
|
-
onDrop: () => {
|
|
1397
|
-
c.value = void 0, l.value = void 0;
|
|
1398
|
-
}
|
|
1399
|
-
}), Se({
|
|
1400
|
-
element: r,
|
|
1401
|
-
canDrop: ({ source: n }) => un(n.data, e) && n.data.columnKey !== t && d(n.data.columnKey, t),
|
|
1402
|
-
getData: ({ input: e, element: n }) => Ee({ columnKey: t }, {
|
|
1403
|
-
input: e,
|
|
1404
|
-
element: n,
|
|
1405
|
-
allowedEdges: ["left", "right"]
|
|
1406
|
-
}),
|
|
1407
|
-
onDrag: ({ self: e }) => {
|
|
1408
|
-
let n = De(e.data);
|
|
1409
|
-
if (n === "left" || n === "right") {
|
|
1410
|
-
let e = l.value;
|
|
1411
|
-
(e?.targetKey !== t || e.edge !== n) && (l.value = {
|
|
1412
|
-
targetKey: t,
|
|
1413
|
-
edge: n
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
},
|
|
1417
|
-
onDragLeave: () => {
|
|
1418
|
-
l.value?.targetKey === t && (l.value = void 0);
|
|
1419
|
-
}
|
|
1420
|
-
}));
|
|
1421
|
-
o.set(r, i);
|
|
1422
|
-
}, p = Ce({
|
|
1423
|
-
canMonitor: ({ source: t }) => un(t.data, e),
|
|
1424
|
-
onDrop: ({ source: t, location: n }) => {
|
|
1425
|
-
c.value = void 0, l.value = void 0;
|
|
1426
|
-
let r = n.current.dropTargets[0];
|
|
1427
|
-
if (!r || !un(t.data, e)) return;
|
|
1428
|
-
let a = r.data, o = a.columnKey, s = De(a);
|
|
1429
|
-
typeof o != "string" || s !== "left" && s !== "right" || o !== t.data.columnKey && i(t.data.columnKey, o, s);
|
|
1430
|
-
}
|
|
1431
|
-
});
|
|
1432
|
-
F(() => {
|
|
1433
|
-
p(), o.forEach((e) => {
|
|
1434
|
-
e();
|
|
1435
|
-
}), o.clear(), s.clear();
|
|
1436
|
-
});
|
|
1437
|
-
let m = B();
|
|
1438
|
-
return W(l, (e) => {
|
|
1439
|
-
let n = t.value, r = e ? n?.querySelector(`th[data-column-key="${e.targetKey}"]`) : void 0;
|
|
1440
|
-
if (!e || !n || !r) {
|
|
1441
|
-
m.value = void 0;
|
|
1442
|
-
return;
|
|
1443
|
-
}
|
|
1444
|
-
let i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = e.edge === "left" ? a.left : a.right;
|
|
1445
|
-
m.value = { left: `${Math.round(o - i.left - 1)}px` };
|
|
1446
|
-
}), {
|
|
1447
|
-
registerColumnHeaderElement: f,
|
|
1448
|
-
draggingColumnKey: c,
|
|
1449
|
-
dropIndicator: l,
|
|
1450
|
-
dropLineStyle: m
|
|
1451
|
-
};
|
|
1452
|
-
}, pn = {
|
|
1453
|
-
[Y.LEFT]: "s-ui-table__cell--align-left",
|
|
1454
|
-
[Y.CENTER]: "s-ui-table__cell--align-center",
|
|
1455
|
-
[Y.RIGHT]: "s-ui-table__cell--align-right"
|
|
1456
|
-
}, mn = ({ columnDescriptors: e, hasTreeStructure: t, expandColumnKey: n, primaryColumnKey: r }) => {
|
|
1457
|
-
let i = b(() => e.value.filter((e) => e.sticky !== J.RIGHT)), a = b(() => e.value.filter((e) => e.sticky === J.RIGHT)), o = b(() => {
|
|
1458
|
-
let e = (e) => ({
|
|
1459
|
-
key: e.key,
|
|
1460
|
-
descriptor: e
|
|
1461
|
-
});
|
|
1462
|
-
return [
|
|
1463
|
-
...i.value.map(e),
|
|
1464
|
-
{
|
|
1465
|
-
key: Ue,
|
|
1466
|
-
descriptor: void 0
|
|
1467
|
-
},
|
|
1468
|
-
...a.value.map(e)
|
|
1469
|
-
];
|
|
1470
|
-
}), s = (e) => {
|
|
1471
|
-
if (!e.sticky || !e.stickyOffsetVar || !e.liveStickyOffsetVar) return;
|
|
1472
|
-
let t = `var(${e.liveStickyOffsetVar}, var(${e.stickyOffsetVar}))`;
|
|
1473
|
-
return e.sticky === J.LEFT ? {
|
|
1474
|
-
left: t,
|
|
1475
|
-
"--s-ui-table-cell-inline-offset": t
|
|
1476
|
-
} : { right: t };
|
|
1477
|
-
}, c = (e) => {
|
|
1478
|
-
let t = e.service ? Je[e.service] : void 0;
|
|
1479
|
-
return {
|
|
1480
|
-
"s-ui-table__cell--sticky-left": e.sticky === J.LEFT,
|
|
1481
|
-
"s-ui-table__cell--sticky-right": e.sticky === J.RIGHT,
|
|
1482
|
-
"s-ui-table__cell--last-sticky-left": e.lastStickyLeft,
|
|
1483
|
-
"s-ui-table__cell--first-sticky-right": e.firstStickyRight,
|
|
1484
|
-
"s-ui-table__cell--primary": e.primary,
|
|
1485
|
-
[`s-ui-table__cell--service-${t}`]: !!t,
|
|
1486
|
-
[pn[e.align]]: !!e.column
|
|
1487
|
-
};
|
|
1488
|
-
}, l = (e) => {
|
|
1489
|
-
if (!H(t) || !e.column) return !1;
|
|
1490
|
-
let i = H(n);
|
|
1491
|
-
return e.key === (i ?? H(r));
|
|
1492
|
-
}, u = (e) => {
|
|
1493
|
-
let t = ["s-ui-table__cell"];
|
|
1494
|
-
return Object.entries(c(e)).forEach(([e, n]) => {
|
|
1495
|
-
n && t.push(e);
|
|
1496
|
-
}), {
|
|
1497
|
-
descriptor: e,
|
|
1498
|
-
cellClass: t.join(" "),
|
|
1499
|
-
style: s(e),
|
|
1500
|
-
chevron: l(e)
|
|
1501
|
-
};
|
|
1502
|
-
}, d = b(() => i.value.map(u)), f = b(() => a.value.map(u));
|
|
1503
|
-
return {
|
|
1504
|
-
leadingDescriptors: i,
|
|
1505
|
-
trailingDescriptors: a,
|
|
1506
|
-
headerCells: o,
|
|
1507
|
-
getStickyCellStyle: s,
|
|
1508
|
-
getHeaderCellClasses: c,
|
|
1509
|
-
leadingCellPlans: d,
|
|
1510
|
-
trailingCellPlans: f,
|
|
1511
|
-
rowCellPlans: b(() => {
|
|
1512
|
-
let e = (e) => ({
|
|
1513
|
-
key: e.descriptor.key,
|
|
1514
|
-
cellPlan: e
|
|
1515
|
-
});
|
|
1516
|
-
return [
|
|
1517
|
-
...d.value.map(e),
|
|
1518
|
-
{
|
|
1519
|
-
key: Ue,
|
|
1520
|
-
cellPlan: void 0
|
|
1521
|
-
},
|
|
1522
|
-
...f.value.map(e)
|
|
1523
|
-
];
|
|
1524
|
-
})
|
|
1525
|
-
};
|
|
1526
|
-
}, hn = ({ tableRootElement: e, scrollElement: t, columnDescriptors: n, columnWidths: r, enabled: i, onResizeEnd: a, remeasureRows: o }) => {
|
|
1527
|
-
let s = L(), c = b(() => s.value?.columnKey), l = (e, t) => {
|
|
1528
|
-
let n = Math.max(e.minWidth, t);
|
|
1529
|
-
return e.maxWidth ? Math.min(e.maxWidth, n) : n;
|
|
1530
|
-
}, u = (t, r) => {
|
|
1531
|
-
let i = e.value;
|
|
1532
|
-
if (!i) return;
|
|
1533
|
-
let a = (e) => e.key === t ? r : e.width, o = n.value, s = o.find((e) => e.key === t);
|
|
1534
|
-
s && i.style.setProperty(s.liveWidthVar, `${r}px`);
|
|
1535
|
-
let c = 0;
|
|
1536
|
-
o.forEach((e) => {
|
|
1537
|
-
e.sticky === J.LEFT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${c}px`), c += a(e));
|
|
1538
|
-
});
|
|
1539
|
-
let l = 0;
|
|
1540
|
-
[...o].reverse().forEach((e) => {
|
|
1541
|
-
e.sticky === J.RIGHT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${l}px`), l += a(e));
|
|
1542
|
-
});
|
|
1543
|
-
}, d = () => {
|
|
1544
|
-
let t = e.value;
|
|
1545
|
-
t && n.value.forEach((e) => {
|
|
1546
|
-
t.style.removeProperty(e.liveWidthVar), e.liveStickyOffsetVar && t.style.removeProperty(e.liveStickyOffsetVar);
|
|
1547
|
-
});
|
|
1548
|
-
}, f = (e, t) => {
|
|
1549
|
-
r.value = {
|
|
1550
|
-
...r.value,
|
|
1551
|
-
[e]: t
|
|
1552
|
-
}, a(e, t), o();
|
|
1553
|
-
}, p = (e) => {
|
|
1554
|
-
let t = s.value;
|
|
1555
|
-
t && (s.value = void 0, e && f(t.columnKey, t.liveWidth), d());
|
|
1556
|
-
};
|
|
1557
|
-
return K("pointermove", (e) => {
|
|
1558
|
-
let t = s.value;
|
|
1559
|
-
if (!t || e.pointerId !== t.pointerId) return;
|
|
1560
|
-
let r = n.value.find((e) => e.key === t.columnKey);
|
|
1561
|
-
if (!r) return;
|
|
1562
|
-
let i = l(r, t.startWidth + (e.clientX - t.startClientX));
|
|
1563
|
-
i !== t.liveWidth && (t.liveWidth = i, u(t.columnKey, i));
|
|
1564
|
-
}), K("pointerup", (e) => {
|
|
1565
|
-
s.value && e.pointerId === s.value.pointerId && p(!0);
|
|
1566
|
-
}), K("pointercancel", () => {
|
|
1567
|
-
p(!1);
|
|
1568
|
-
}), K("blur", () => {
|
|
1569
|
-
p(!1);
|
|
1570
|
-
}), K("keydown", (e) => {
|
|
1571
|
-
s.value && e.key === "Escape" && (e.preventDefault(), p(!1));
|
|
1572
|
-
}), {
|
|
1573
|
-
resizingColumnKey: c,
|
|
1574
|
-
handleResizeHandlePointerdown: (e, t) => {
|
|
1575
|
-
if (!H(i)) return;
|
|
1576
|
-
let r = n.value.find((e) => e.key === t);
|
|
1577
|
-
r?.resizable && (e.preventDefault(), e.stopPropagation(), e.isTrusted && e.target instanceof Element && e.target.setPointerCapture(e.pointerId), s.value = {
|
|
1578
|
-
columnKey: t,
|
|
1579
|
-
startClientX: e.clientX,
|
|
1580
|
-
startWidth: r.width,
|
|
1581
|
-
liveWidth: r.width,
|
|
1582
|
-
pointerId: e.pointerId
|
|
1583
|
-
});
|
|
1584
|
-
},
|
|
1585
|
-
handleResizeHandleKeydown: (e, t) => {
|
|
1586
|
-
if (!H(i) || e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
1587
|
-
let r = n.value.find((e) => e.key === t);
|
|
1588
|
-
if (!r?.resizable) return;
|
|
1589
|
-
e.preventDefault();
|
|
1590
|
-
let a = e.shiftKey ? 1 : 8, o = e.key === "ArrowRight" ? 1 : -1, s = l(r, r.width + o * a);
|
|
1591
|
-
s !== r.width && f(t, s);
|
|
1592
|
-
},
|
|
1593
|
-
handleResizeHandleDblclick: (e) => {
|
|
1594
|
-
if (!H(i)) return;
|
|
1595
|
-
let r = n.value.find((t) => t.key === e), a = t.value;
|
|
1596
|
-
if (!r?.resizable || !a) return;
|
|
1597
|
-
let o = r.minWidth;
|
|
1598
|
-
a.querySelectorAll(`td[data-column-key="${e}"] .s-ui-table__cell-body`).forEach((e) => {
|
|
1599
|
-
e instanceof HTMLElement && (o = Math.max(o, e.scrollWidth + 8));
|
|
1600
|
-
});
|
|
1601
|
-
let s = l(r, Math.min(640, o));
|
|
1602
|
-
s !== r.width && f(e, s);
|
|
1603
|
-
}
|
|
1604
|
-
};
|
|
1605
|
-
}, gn = "input, textarea, select, [contenteditable=\"true\"]", _n = ({ gridFocus: e, columnDescriptors: t, flatRows: n, expandColumnKey: r, primaryColumnKey: i, groupColumnKey: a, selectable: o, openMenuColumnKey: s, toggleExpanded: c, toggleRowSelected: l, applySortCycle: u, setColumnMenuOpen: d, resizeColumnByKeyboard: f, onDepthFooterActivate: p, onLoadMoreActivate: h, onRowActivate: g }) => {
|
|
1606
|
-
let _ = () => {
|
|
1607
|
-
let n = e.focusAddress.value.columnKey;
|
|
1608
|
-
return t.value.find((e) => e.key === n);
|
|
1609
|
-
}, v = () => {
|
|
1610
|
-
let t = e.focusBodyRowIndex.value;
|
|
1611
|
-
return t === void 0 ? void 0 : n.value[t];
|
|
1612
|
-
}, y = (e) => e.kind === Q.GROUP ? H(a) : H(r) ?? H(i), b = (t, n, r) => {
|
|
1613
|
-
let i = t.currentTarget, a = t.relatedTarget;
|
|
1614
|
-
return !(i instanceof Node && a instanceof Node && i.contains(a)) && n.matches(":focus-visible") && !n.matches(gn) && !e.isCellFocused(r.section, r.rowKey, r.columnKey);
|
|
1615
|
-
}, x = (e) => {
|
|
1616
|
-
let t = dt(e.dataset.section ?? null), n = e.dataset.columnKey;
|
|
1617
|
-
return !t || !n ? null : {
|
|
1618
|
-
section: t,
|
|
1619
|
-
rowKey: e.dataset.rowKey,
|
|
1620
|
-
columnKey: n
|
|
1621
|
-
};
|
|
1622
|
-
}, S = (t) => {
|
|
1623
|
-
let n = t.target;
|
|
1624
|
-
if (!(n instanceof HTMLElement)) return;
|
|
1625
|
-
let r = n.closest("[data-section]"), i = r instanceof HTMLElement ? x(r) : null;
|
|
1626
|
-
if (!i) return;
|
|
1627
|
-
let a = r !== n;
|
|
1628
|
-
if (a && b(t, n, i)) {
|
|
1629
|
-
e.focusAddressNow(e.focusAddress.value, { scroll: !1 });
|
|
1630
|
-
return;
|
|
1631
|
-
}
|
|
1632
|
-
e.syncFocusAddress(i, a);
|
|
1633
|
-
}, C = (t) => {
|
|
1634
|
-
let r = e.focusAddress.value;
|
|
1635
|
-
if (r.section !== $.BODY || !r.rowKey) return !1;
|
|
1636
|
-
let i = v();
|
|
1637
|
-
if (!i || i.kind === Q.DEPTH_FOOTER || r.columnKey !== y(i)) return !1;
|
|
1638
|
-
let a = m(t, i.key, n.value);
|
|
1639
|
-
return a ? a.type === "select" ? (e.focusAddressNow({
|
|
1640
|
-
section: $.BODY,
|
|
1641
|
-
rowKey: a.rowKey,
|
|
1642
|
-
columnKey: r.columnKey
|
|
1643
|
-
}), !0) : (c(a.rowKey), !0) : !1;
|
|
1644
|
-
}, w = (t) => {
|
|
1645
|
-
let n = e.focusAddress.value;
|
|
1646
|
-
if (n.section === $.HEADER) {
|
|
1647
|
-
let n = _();
|
|
1648
|
-
if (n?.sortable) {
|
|
1649
|
-
u(n.key, t.shiftKey || t.ctrlKey || t.metaKey);
|
|
1650
|
-
return;
|
|
1651
|
-
}
|
|
1652
|
-
e.enterCell();
|
|
1653
|
-
return;
|
|
1654
|
-
}
|
|
1655
|
-
let r = v();
|
|
1656
|
-
if (!r) {
|
|
1657
|
-
e.enterCell();
|
|
1658
|
-
return;
|
|
1659
|
-
}
|
|
1660
|
-
if (r.kind === Q.DEPTH_FOOTER) {
|
|
1661
|
-
p(r);
|
|
1662
|
-
return;
|
|
1663
|
-
}
|
|
1664
|
-
if (r.kind === Q.LOAD_MORE) {
|
|
1665
|
-
h(r);
|
|
1666
|
-
return;
|
|
1667
|
-
}
|
|
1668
|
-
if ((r.hasChildren || r.kind === Q.GROUP) && n.columnKey === y(r)) {
|
|
1669
|
-
c(r.key);
|
|
1670
|
-
return;
|
|
1671
|
-
}
|
|
1672
|
-
e.enterCell() || g(r, t);
|
|
1673
|
-
}, T = (t) => {
|
|
1674
|
-
if (t.defaultPrevented) return;
|
|
1675
|
-
let n = t.shiftKey ? -1 : 1;
|
|
1676
|
-
if (e.cellEntered.value && e.moveCellFocus(n)) {
|
|
1677
|
-
t.preventDefault();
|
|
1678
|
-
return;
|
|
1679
|
-
}
|
|
1680
|
-
e.leaveGrid(n);
|
|
1681
|
-
}, E = (t) => {
|
|
1682
|
-
t.key === "Escape" && (t.preventDefault(), e.exitCell());
|
|
1683
|
-
}, D = (t) => {
|
|
1684
|
-
let n = _();
|
|
1685
|
-
if (!n) return !1;
|
|
1686
|
-
let r = t.key === "ArrowLeft" || t.key === "ArrowRight";
|
|
1687
|
-
if (t.altKey && t.shiftKey && r) return t.preventDefault(), f(n, t.key === "ArrowRight" ? 1 : -1), !0;
|
|
1688
|
-
let i = t.altKey && t.key === "ArrowDown" || t.key === "ContextMenu", a = e.focusAddress.value.section === $.HEADER;
|
|
1689
|
-
return n.column && a && i ? (t.preventDefault(), d(n.key, H(s) !== n.key), !0) : !1;
|
|
1690
|
-
};
|
|
1691
|
-
return {
|
|
1692
|
-
handleGridFocusIn: S,
|
|
1693
|
-
handleGridKeydown: (t) => {
|
|
1694
|
-
if (t.key === "Tab") {
|
|
1695
|
-
T(t);
|
|
1696
|
-
return;
|
|
1697
|
-
}
|
|
1698
|
-
if (e.cellEntered.value) {
|
|
1699
|
-
E(t);
|
|
1700
|
-
return;
|
|
1701
|
-
}
|
|
1702
|
-
if (!D(t)) switch (t.key) {
|
|
1703
|
-
case "ArrowRight":
|
|
1704
|
-
t.preventDefault(), C("ArrowRight") || e.moveFocus(0, 1);
|
|
1705
|
-
break;
|
|
1706
|
-
case "ArrowLeft":
|
|
1707
|
-
t.preventDefault(), C("ArrowLeft") || e.moveFocus(0, -1);
|
|
1708
|
-
break;
|
|
1709
|
-
case "ArrowDown":
|
|
1710
|
-
t.preventDefault(), e.moveFocus(1, 0);
|
|
1711
|
-
break;
|
|
1712
|
-
case "ArrowUp":
|
|
1713
|
-
t.preventDefault(), e.moveFocus(-1, 0);
|
|
1714
|
-
break;
|
|
1715
|
-
case "Home":
|
|
1716
|
-
t.preventDefault(), t.ctrlKey || t.metaKey ? e.moveToGridEdge("first") : e.moveToRowEdge("start");
|
|
1717
|
-
break;
|
|
1718
|
-
case "End":
|
|
1719
|
-
t.preventDefault(), t.ctrlKey || t.metaKey ? e.moveToGridEdge("last") : e.moveToRowEdge("end");
|
|
1720
|
-
break;
|
|
1721
|
-
case "PageDown":
|
|
1722
|
-
t.preventDefault(), e.moveByPage(1);
|
|
1723
|
-
break;
|
|
1724
|
-
case "PageUp":
|
|
1725
|
-
t.preventDefault(), e.moveByPage(-1);
|
|
1726
|
-
break;
|
|
1727
|
-
case "F2":
|
|
1728
|
-
t.preventDefault(), e.enterCell();
|
|
1729
|
-
break;
|
|
1730
|
-
case "Enter":
|
|
1731
|
-
t.preventDefault(), w(t);
|
|
1732
|
-
break;
|
|
1733
|
-
case " ":
|
|
1734
|
-
case "Spacebar": {
|
|
1735
|
-
t.preventDefault();
|
|
1736
|
-
let n = e.focusedBodyRowKey.value;
|
|
1737
|
-
if (!H(o) || !n) break;
|
|
1738
|
-
l(n);
|
|
1739
|
-
break;
|
|
1740
|
-
}
|
|
1741
|
-
default: break;
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
};
|
|
1745
|
-
}, vn = ({ tableId: e, enabled: t, dragMode: n, snapshot: r, scrollElement: i, isRowDraggable: a, dragExpandDelayMs: o, dragInsideDelayMs: s, isExpanded: c, onHoverExpand: l, onReorder: u, onTreeDrop: d, resolveRowPreviewTitle: f }) => {
|
|
1746
|
-
let p = /* @__PURE__ */ new Map(), m = B(), h = B(), g = B(), _ = (e) => {
|
|
1747
|
-
if (!(e instanceof HTMLElement)) return;
|
|
1748
|
-
let t = Number(e.dataset.index);
|
|
1749
|
-
if (Number.isInteger(t)) return r.value.flatRows[t];
|
|
1750
|
-
}, v = (e) => {
|
|
1751
|
-
if (!e || !H(t) || e.kind !== Q.ROW && e.kind !== Q.GROUP) return !1;
|
|
1752
|
-
let n = H(a);
|
|
1753
|
-
return n ? n(e.item) !== !1 : !0;
|
|
1754
|
-
}, y = (e, t) => {
|
|
1755
|
-
let { getSubtreeRangeByKey: n, getRowIndexByKey: i } = r.value, a = n(e), o = i(t);
|
|
1756
|
-
return !a || o === void 0 ? !1 : o >= a[0] && o <= a[1];
|
|
1757
|
-
}, b = _e(() => {
|
|
1758
|
-
let e = x.value;
|
|
1759
|
-
e && !c(e) && l(e);
|
|
1760
|
-
}, () => H(o) ?? 500, { immediate: !1 }), x = B(), S = _e(() => {
|
|
1761
|
-
w.value = C.value;
|
|
1762
|
-
}, () => H(s) ?? 1300, { immediate: !1 }), C = B(), w = B(), T = (e) => {
|
|
1763
|
-
!(e.hasChildren || e.kind === Q.GROUP) || e.expanded || x.value !== e.key && (x.value = e.key, b.stop(), b.start());
|
|
1764
|
-
}, E = () => {
|
|
1765
|
-
b.stop(), x.value = void 0, S.stop(), C.value = void 0, w.value = void 0;
|
|
1766
|
-
}, D = (e, t, r, i) => {
|
|
1767
|
-
if (H(n) === Pe.TREE) {
|
|
1768
|
-
let n = t.getBoundingClientRect(), i = Ve * n.height / 2;
|
|
1769
|
-
if (Math.abs(r - (n.top + n.height / 2)) <= i) {
|
|
1770
|
-
if (e.kind === Q.GROUP || w.value === e.key) return Fe.CHILD;
|
|
1771
|
-
C.value !== e.key && (C.value = e.key, S.stop(), S.start());
|
|
1772
|
-
} else C.value === e.key && (S.stop(), C.value = void 0, w.value = void 0);
|
|
1773
|
-
}
|
|
1774
|
-
return i === "top" ? Fe.BEFORE : Fe.AFTER;
|
|
1775
|
-
}, O, k = (e) => {
|
|
1776
|
-
[e, ...e.querySelectorAll("[id], [tabindex]")].forEach((e) => {
|
|
1777
|
-
e.removeAttribute("id"), e.removeAttribute("tabindex");
|
|
1778
|
-
});
|
|
1779
|
-
}, A = (e) => {
|
|
1780
|
-
let t = e.querySelector(".s-ui-table__cell--primary .s-ui-table__cell-body, .s-ui-table__cell--primary .s-ui-table__group-content"), n = t?.closest("td");
|
|
1781
|
-
return t && n ? {
|
|
1782
|
-
content: t,
|
|
1783
|
-
cell: n
|
|
1784
|
-
} : void 0;
|
|
1785
|
-
}, j = (e, t) => {
|
|
1786
|
-
let n = document.createElement("div");
|
|
1787
|
-
n.className = "s-ui-table__row-drag-preview", n.setAttribute("aria-hidden", "true");
|
|
1788
|
-
let r = A(e);
|
|
1789
|
-
if (!r) return n.textContent = t ? f(t) : "", n;
|
|
1790
|
-
let i = r.content.cloneNode(!0);
|
|
1791
|
-
return i instanceof Element && k(i), n.style.inlineSize = `${Math.round(r.cell.getBoundingClientRect().width)}px`, n.appendChild(i), n;
|
|
1792
|
-
}, M = (e, t) => {
|
|
1793
|
-
O && (O.style.transform = `translate(${e + 8}px, ${t + 8}px)`);
|
|
1794
|
-
}, ee = (e) => {
|
|
1795
|
-
M(e.clientX, e.clientY);
|
|
1796
|
-
}, N = (e, t, n) => {
|
|
1797
|
-
P(), O = document.createElement("div"), O.className = "s-ui-table__row-drag-layer", O.appendChild(e), document.body.appendChild(O), document.addEventListener("dragover", ee), M(t, n);
|
|
1798
|
-
}, P = () => {
|
|
1799
|
-
document.removeEventListener("dragover", ee), O?.remove(), O = void 0;
|
|
1800
|
-
}, te = (t) => {
|
|
1801
|
-
if (!(t instanceof HTMLElement)) {
|
|
1802
|
-
p.forEach((e, t) => {
|
|
1803
|
-
t.isConnected || (e(), p.delete(t));
|
|
1804
|
-
});
|
|
1805
|
-
return;
|
|
1806
|
-
}
|
|
1807
|
-
if (p.has(t)) return;
|
|
1808
|
-
let n = xe(q({
|
|
1809
|
-
element: t,
|
|
1810
|
-
canDrag: () => v(_(t)),
|
|
1811
|
-
getInitialData: () => {
|
|
1812
|
-
let n = _(t);
|
|
1813
|
-
return {
|
|
1814
|
-
type: ln,
|
|
1815
|
-
tableId: e,
|
|
1816
|
-
rowKey: n?.key ?? "",
|
|
1817
|
-
rowIndex: n?.index ?? -1
|
|
1818
|
-
};
|
|
1819
|
-
},
|
|
1820
|
-
onGenerateDragPreview: ({ nativeSetDragImage: e, location: n }) => {
|
|
1821
|
-
let r = j(t, _(t)), { clientX: i, clientY: a } = n.current.input;
|
|
1822
|
-
Oe({ nativeSetDragImage: e }), N(r, i, a);
|
|
1823
|
-
},
|
|
1824
|
-
onDragStart: () => {
|
|
1825
|
-
m.value = _(t)?.key, g.value = void 0;
|
|
1826
|
-
},
|
|
1827
|
-
onDrop: () => {
|
|
1828
|
-
m.value = void 0, h.value = void 0, E(), P();
|
|
1829
|
-
}
|
|
1830
|
-
}), Se({
|
|
1831
|
-
element: t,
|
|
1832
|
-
canDrop: ({ source: n }) => {
|
|
1833
|
-
if (!dn(n.data, e)) return !1;
|
|
1834
|
-
let r = _(t);
|
|
1835
|
-
return !r || r.key === n.data.rowKey ? !1 : !y(n.data.rowKey, r.key);
|
|
1836
|
-
},
|
|
1837
|
-
getData: ({ input: e, element: t }) => Ee({ rowKey: _(t)?.key ?? "" }, {
|
|
1838
|
-
input: e,
|
|
1839
|
-
element: t,
|
|
1840
|
-
allowedEdges: ["top", "bottom"]
|
|
1841
|
-
}),
|
|
1842
|
-
onDrag: ({ self: e, location: n }) => {
|
|
1843
|
-
let r = _(t);
|
|
1844
|
-
if (!r) return;
|
|
1845
|
-
T(r);
|
|
1846
|
-
let i = De(e.data), a = i === "top" || i === "bottom" ? i : null, o = D(r, t, n.current.input.clientY, a), s = o === Fe.CHILD ? r.depth + 1 : r.depth, c = h.value;
|
|
1847
|
-
(c?.targetKey !== r.key || c.action !== o || c.depth !== s) && (h.value = {
|
|
1848
|
-
targetKey: r.key,
|
|
1849
|
-
action: o,
|
|
1850
|
-
depth: s
|
|
1851
|
-
}), g.value = {
|
|
1852
|
-
targetKey: r.key,
|
|
1853
|
-
action: o,
|
|
1854
|
-
depth: s
|
|
1855
|
-
};
|
|
1856
|
-
},
|
|
1857
|
-
onDragLeave: () => {
|
|
1858
|
-
let e = _(t);
|
|
1859
|
-
h.value?.targetKey === e?.key && (h.value = void 0), x.value === e?.key && (b.stop(), x.value = void 0);
|
|
1860
|
-
}
|
|
1861
|
-
}));
|
|
1862
|
-
p.set(t, n);
|
|
1863
|
-
}, I = Ce({
|
|
1864
|
-
canMonitor: ({ source: t }) => dn(t.data, e),
|
|
1865
|
-
onDrop: ({ source: t, location: i }) => {
|
|
1866
|
-
let a = g.value;
|
|
1867
|
-
if (g.value = void 0, m.value = void 0, h.value = void 0, E(), !i.current.dropTargets[0] || !a || !dn(t.data, e)) return;
|
|
1868
|
-
let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey), l = s(a.targetKey), f = c === void 0 ? void 0 : o[c], p = l === void 0 ? void 0 : o[l];
|
|
1869
|
-
if (!f || !p || f.key === p.key || y(f.key, p.key)) return;
|
|
1870
|
-
if (H(n) === Pe.FLAT) {
|
|
1871
|
-
if (a.action === Fe.CHILD) return;
|
|
1872
|
-
u({
|
|
1873
|
-
action: a.action,
|
|
1874
|
-
sourceKey: f.key,
|
|
1875
|
-
sourceItem: f.item,
|
|
1876
|
-
targetKey: p.key,
|
|
1877
|
-
targetItem: p.item,
|
|
1878
|
-
sourceIndex: f.index,
|
|
1879
|
-
targetIndex: p.index
|
|
1880
|
-
});
|
|
1881
|
-
return;
|
|
1882
|
-
}
|
|
1883
|
-
let _ = a.action === Fe.CHILD, v = _ ? p.key : p.parentKey, b = v === void 0 ? void 0 : s(v), x = b === void 0 ? void 0 : o[b];
|
|
1884
|
-
d({
|
|
1885
|
-
action: a.action,
|
|
1886
|
-
sourceKey: f.key,
|
|
1887
|
-
sourceItem: f.item,
|
|
1888
|
-
targetKey: p.key,
|
|
1889
|
-
targetItem: p.item,
|
|
1890
|
-
parentKey: v,
|
|
1891
|
-
parentItem: x?.item,
|
|
1892
|
-
depth: _ ? p.depth + 1 : p.depth
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
}), L;
|
|
1896
|
-
return W(i, (t) => {
|
|
1897
|
-
L?.(), L = void 0, t && (L = ke({
|
|
1898
|
-
element: t,
|
|
1899
|
-
canScroll: ({ source: t }) => dn(t.data, e)
|
|
1900
|
-
}));
|
|
1901
|
-
}, { immediate: !0 }), F(() => {
|
|
1902
|
-
I(), L?.(), P(), p.forEach((e) => {
|
|
1903
|
-
e();
|
|
1904
|
-
}), p.clear();
|
|
1905
|
-
}), {
|
|
1906
|
-
registerRowElement: te,
|
|
1907
|
-
draggingRowKey: m,
|
|
1908
|
-
dropIndicator: h
|
|
1909
|
-
};
|
|
1910
|
-
}, yn = ({ flatRows: e, virtualEnabled: t, windowIndexes: n, uiTotalSize: r, getRowUiOffset: i, activeGroupRowIndex: a, activeDepthFooterRowIndexes: o, leavingDepthFooterRowIndex: s, slidingDepthFooterRowIndexes: c, farDepthFooterRowIndexes: l, activeRowIndex: u }) => {
|
|
1911
|
-
let d = b(() => {
|
|
1912
|
-
let e = [];
|
|
1913
|
-
return a.value !== void 0 && e.push(a.value), e.push(...o.value), u.value !== void 0 && e.push(u.value), e;
|
|
1914
|
-
});
|
|
1915
|
-
return { renderEntries: b(() => {
|
|
1916
|
-
let u = e.value, f = a.value, p = new Set(o.value), m = new Set(c.value), h = new Set(l.value), g = s.value, _ = g === void 0 ? void 0 : i(g), v = _ ? _.end - _.start : void 0, y = [], b = (e, t, n) => e && !t && !n ? v : void 0, x = (e) => {
|
|
1917
|
-
let t = i(e.index), n = p.has(e.index), r = e.index === g, a = m.has(e.index);
|
|
1918
|
-
y.push({
|
|
1919
|
-
row: e,
|
|
1920
|
-
renderKey: e.key,
|
|
1921
|
-
stuckTop: e.index === f,
|
|
1922
|
-
stuckBottom: n,
|
|
1923
|
-
stuckBottomLeaving: r,
|
|
1924
|
-
stuckBottomSliding: a,
|
|
1925
|
-
stuckBottomCoverHeight: b(n, r, a),
|
|
1926
|
-
stuckBottomFar: h.has(e.index),
|
|
1927
|
-
rowHeight: t ? t.end - t.start : void 0
|
|
1928
|
-
});
|
|
1929
|
-
};
|
|
1930
|
-
if (!H(t)) return u.forEach(x), y;
|
|
1931
|
-
let S = r.value, C = n.value.filter((e) => {
|
|
1932
|
-
let t = i(e);
|
|
1933
|
-
return !t || t.end > 0 && t.start < S;
|
|
1934
|
-
}), w = C[0], T = C[C.length - 1], E = /* @__PURE__ */ new Set();
|
|
1935
|
-
d.value.forEach((e) => {
|
|
1936
|
-
u[e] && E.add(e);
|
|
1937
|
-
});
|
|
1938
|
-
let D = [];
|
|
1939
|
-
w !== void 0 && T !== void 0 && D.push({
|
|
1940
|
-
startIndex: w,
|
|
1941
|
-
endIndex: T
|
|
1942
|
-
}), E.forEach((e) => {
|
|
1943
|
-
w !== void 0 && T !== void 0 && e >= w && e <= T || D.push({
|
|
1944
|
-
startIndex: e,
|
|
1945
|
-
endIndex: e
|
|
1946
|
-
});
|
|
1947
|
-
}), D.sort((e, t) => e.startIndex - t.startIndex);
|
|
1948
|
-
let O = 0, k = 0, A = (e) => {
|
|
1949
|
-
y.push({
|
|
1950
|
-
renderKey: `spacer-${O}`,
|
|
1951
|
-
spacer: !0,
|
|
1952
|
-
spacerHeight: Math.max(0, Math.round(e))
|
|
1953
|
-
}), O += 1;
|
|
1954
|
-
}, j = (e) => {
|
|
1955
|
-
let t = i(e.startIndex), n = i(e.endIndex);
|
|
1956
|
-
return !t || !n ? {
|
|
1957
|
-
start: k,
|
|
1958
|
-
height: 0
|
|
1959
|
-
} : {
|
|
1960
|
-
start: t.start,
|
|
1961
|
-
height: n.end - t.start
|
|
1962
|
-
};
|
|
1963
|
-
};
|
|
1964
|
-
return D.forEach((e) => {
|
|
1965
|
-
let { start: t, height: n } = j(e), r = Math.min(S, Math.max(k, t));
|
|
1966
|
-
A(r - k);
|
|
1967
|
-
for (let t = e.startIndex; t <= e.endIndex; t += 1) {
|
|
1968
|
-
let e = u[t];
|
|
1969
|
-
e && x(e);
|
|
1970
|
-
}
|
|
1971
|
-
k = r + n;
|
|
1972
|
-
}), A(S - k), y;
|
|
1973
|
-
}) };
|
|
1974
|
-
}, bn = ({ selected: e, cascade: t, treeIndex: n, groupRow: r, disabledKey: i, isItemSelectable: a }) => {
|
|
1975
|
-
let o = b(() => new Set(e.value)), s = (e) => n.value.nodeByKey.get(e)?.parentKey, c = (e) => {
|
|
1976
|
-
let t = n.value.nodeByKey.get(e);
|
|
1977
|
-
if (!t || Ht(t.item, H(r)) || Ht(t.item, H(i))) return !1;
|
|
1978
|
-
let o = H(a);
|
|
1979
|
-
return o ? o(t.item) !== !1 : !0;
|
|
1980
|
-
}, l = b(() => {
|
|
1981
|
-
let e = [];
|
|
1982
|
-
return n.value.nodeByKey.forEach((t, n) => {
|
|
1983
|
-
c(n) && e.push(n);
|
|
1984
|
-
}), A(e);
|
|
1985
|
-
}), u = b(() => {
|
|
1986
|
-
let e = /* @__PURE__ */ new Map();
|
|
1987
|
-
return o.value.forEach((t) => {
|
|
1988
|
-
let n = s(t);
|
|
1989
|
-
for (; n;) e.set(n, (e.get(n) ?? 0) + 1), n = s(n);
|
|
1990
|
-
}), A(e);
|
|
1991
|
-
}), d = (e) => o.value.has(e), f = (e) => o.value.has(e) ? Z.CHECKED : (u.value.get(e) ?? 0) > 0 ? Z.INDETERMINATE : Z.UNCHECKED, p = (e, t) => {
|
|
1992
|
-
c(e) && t.push(e), n.value.nodeByKey.get(e)?.children?.forEach((e) => {
|
|
1993
|
-
p(e.key, t);
|
|
1994
|
-
});
|
|
1995
|
-
}, m = (e, t) => {
|
|
1996
|
-
let r = n.value.nodeByKey.get(e)?.children;
|
|
1997
|
-
return !r || r.length === 0 ? !1 : r.every((e) => c(e.key) ? t.has(e.key) : m(e.key, t));
|
|
1998
|
-
}, h = (e, t) => {
|
|
1999
|
-
let n = s(e);
|
|
2000
|
-
for (; n;) {
|
|
2001
|
-
if (c(n) && m(n, t)) t.add(n);
|
|
2002
|
-
else if (c(n)) break;
|
|
2003
|
-
n = s(n);
|
|
2004
|
-
}
|
|
2005
|
-
}, g = (e, t) => {
|
|
2006
|
-
let n = s(e);
|
|
2007
|
-
for (; n;) t.delete(n), n = s(n);
|
|
2008
|
-
}, _ = (n) => {
|
|
2009
|
-
if (!c(n)) return;
|
|
2010
|
-
let r = new Set(e.value);
|
|
2011
|
-
if (!H(t)) {
|
|
2012
|
-
r.has(n) ? r.delete(n) : r.add(n), e.value = [...r];
|
|
2013
|
-
return;
|
|
2014
|
-
}
|
|
2015
|
-
let i = [];
|
|
2016
|
-
p(n, i), f(n) === Z.UNCHECKED ? (i.forEach((e) => {
|
|
2017
|
-
r.add(e);
|
|
2018
|
-
}), h(n, r)) : (i.forEach((e) => {
|
|
2019
|
-
r.delete(e);
|
|
2020
|
-
}), g(n, r)), e.value = [...r];
|
|
2021
|
-
}, v = b(() => {
|
|
2022
|
-
let e = l.value.length, t = l.value.reduce((e, t) => o.value.has(t) ? e + 1 : e, 0);
|
|
2023
|
-
return e === 0 || t === 0 ? Z.UNCHECKED : t >= e ? Z.CHECKED : Z.INDETERMINATE;
|
|
2024
|
-
});
|
|
2025
|
-
return {
|
|
2026
|
-
isSelected: d,
|
|
2027
|
-
isNodeSelectable: c,
|
|
2028
|
-
getCheckState: f,
|
|
2029
|
-
toggleRow: _,
|
|
2030
|
-
headerCheckState: v,
|
|
2031
|
-
toggleSelectAll: () => {
|
|
2032
|
-
if (v.value === Z.CHECKED) {
|
|
2033
|
-
e.value = [];
|
|
2034
|
-
return;
|
|
2035
|
-
}
|
|
2036
|
-
e.value = [...l.value];
|
|
2037
|
-
},
|
|
2038
|
-
clearSelection: () => {
|
|
2039
|
-
e.value = [];
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
2042
|
-
}, xn = ({ columns: e, primaryColumnKey: t, treeNodeByKey: n, groupTotalKey: r, depthFooter: i, groupContentColumnKey: a, creationContentColumnKey: o, loadMoreContentColumnKey: s, treeIndent: c, loadingMoreChildrenKeys: l, footerValues: u, stuckDepthFooterRowIndex: d, onDepthFooterClick: f, onLoadMoreChildren: p }) => {
|
|
2043
|
-
let m = b(() => H(e).find((e) => e.key === t.value)), h = b(() => H(i)?.columnKey ?? t.value), g = b(() => H(a) ?? t.value), _ = b(() => H(o) ?? t.value), v = b(() => H(s) ?? t.value), y = (e) => n.value.get(e.key)?.subtreeSize ?? 0, x = (e) => Wt(e.item, H(r)), S = (e) => {
|
|
2044
|
-
let t = Ut(e.item, m.value?.value ?? m.value?.key);
|
|
2045
|
-
return t === void 0 ? void 0 : String(t);
|
|
2046
|
-
}, C = (e) => ({ paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e * H(c)}px)` }), w = (e) => {
|
|
2047
|
-
f({
|
|
2048
|
-
parentKey: e.parentKey ?? "",
|
|
2049
|
-
parentItem: e.item,
|
|
2050
|
-
depth: e.depth - 1
|
|
2051
|
-
});
|
|
2052
|
-
}, T = (e) => ({
|
|
2053
|
-
parentKey: e.parentKey ?? "",
|
|
2054
|
-
parentItem: e.item,
|
|
2055
|
-
depth: e.depth - 1,
|
|
2056
|
-
stuck: e.index === d.value,
|
|
2057
|
-
click: () => {
|
|
2058
|
-
w(e);
|
|
2059
|
-
}
|
|
2060
|
-
}), E = b(() => new Set(H(l))), D = (e) => e.parentKey ? E.value.has(e.parentKey) : !1, O = (e) => {
|
|
2061
|
-
!e.parentKey || D(e) || p({
|
|
2062
|
-
key: e.parentKey,
|
|
2063
|
-
item: e.item
|
|
2064
|
-
});
|
|
2065
|
-
}, k = (e) => ({
|
|
2066
|
-
parentKey: e.parentKey ?? "",
|
|
2067
|
-
parentItem: e.item,
|
|
2068
|
-
depth: e.depth,
|
|
2069
|
-
loading: D(e),
|
|
2070
|
-
loadMore: () => {
|
|
2071
|
-
O(e);
|
|
2072
|
-
}
|
|
2073
|
-
}), A = (e) => H(u)?.[e];
|
|
2074
|
-
return {
|
|
2075
|
-
depthFooterColumnKey: h,
|
|
2076
|
-
groupColumnKey: g,
|
|
2077
|
-
creationColumnKey: _,
|
|
2078
|
-
loadMoreColumnKey: v,
|
|
2079
|
-
getGroupCount: y,
|
|
2080
|
-
getGroupTotal: x,
|
|
2081
|
-
getGroupTitle: S,
|
|
2082
|
-
getDepthIndentStyle: C,
|
|
2083
|
-
emitDepthFooterClick: w,
|
|
2084
|
-
getDepthFooterSlotScope: T,
|
|
2085
|
-
isLoadMoreRowLoading: D,
|
|
2086
|
-
emitLoadMoreChildren: O,
|
|
2087
|
-
getLoadMoreSlotScope: k,
|
|
2088
|
-
getFooterValueText: (e) => {
|
|
2089
|
-
let t = A(e);
|
|
2090
|
-
return t ? t.limit === void 0 ? String(t.value) : `${t.value}/${t.limit}` : "";
|
|
2091
|
-
},
|
|
2092
|
-
getFooterToneClass: (e) => {
|
|
2093
|
-
let t = A(e)?.tone;
|
|
2094
|
-
return t ? `s-ui-table__aggregate-cell--tone-${t}` : void 0;
|
|
2095
|
-
},
|
|
2096
|
-
getFooterSlotScope: (t) => ({
|
|
2097
|
-
column: H(e).find((e) => e.key === t) ?? { key: t },
|
|
2098
|
-
footerValue: A(t)
|
|
2099
|
-
})
|
|
2100
|
-
};
|
|
2101
|
-
}, Sn = ({ sortState: e, onSortChange: t }) => {
|
|
2102
|
-
let n = b(() => new Map(e.value.map((e) => [e.key, e]))), r = (e) => n.value.get(e)?.direction, i = (t) => {
|
|
2103
|
-
if (e.value.length < 2) return;
|
|
2104
|
-
let n = e.value.findIndex((e) => e.key === t);
|
|
2105
|
-
return n === -1 ? void 0 : n + 1;
|
|
2106
|
-
}, a = (n) => {
|
|
2107
|
-
e.value = n, t(n);
|
|
2108
|
-
};
|
|
2109
|
-
return {
|
|
2110
|
-
getColumnSortDirection: r,
|
|
2111
|
-
getColumnSortIndex: i,
|
|
2112
|
-
applySortCycle: (t, n) => {
|
|
2113
|
-
let r = [...e.value], i = r.findIndex((e) => e.key === t), o = i === -1 ? void 0 : r[i], s = o ? o.direction === X.ASC ? {
|
|
2114
|
-
key: t,
|
|
2115
|
-
direction: X.DESC
|
|
2116
|
-
} : void 0 : {
|
|
2117
|
-
key: t,
|
|
2118
|
-
direction: X.ASC
|
|
2119
|
-
};
|
|
2120
|
-
if (!n) {
|
|
2121
|
-
a(s ? [s] : []);
|
|
2122
|
-
return;
|
|
2123
|
-
}
|
|
2124
|
-
i === -1 ? s && r.push(s) : s ? r.splice(i, 1, s) : r.splice(i, 1), a(r);
|
|
2125
|
-
},
|
|
2126
|
-
applySortExact: (t, n) => {
|
|
2127
|
-
let r = [...e.value], i = r.findIndex((e) => e.key === t);
|
|
2128
|
-
if (!n) {
|
|
2129
|
-
i !== -1 && (r.splice(i, 1), a(r));
|
|
2130
|
-
return;
|
|
2131
|
-
}
|
|
2132
|
-
let o = {
|
|
2133
|
-
key: t,
|
|
2134
|
-
direction: n
|
|
2135
|
-
};
|
|
2136
|
-
i === -1 ? r.push(o) : r.splice(i, 1, o), a(r);
|
|
2137
|
-
},
|
|
2138
|
-
getHeaderAriaSort: (e) => {
|
|
2139
|
-
if (!e.column) return;
|
|
2140
|
-
let t = r(e.key);
|
|
2141
|
-
if (t) return t === X.ASC ? "ascending" : "descending";
|
|
2142
|
-
},
|
|
2143
|
-
getHeaderSlotScope: (e) => e.column ? {
|
|
2144
|
-
column: e.column,
|
|
2145
|
-
sortDirection: r(e.key),
|
|
2146
|
-
sortIndex: i(e.key)
|
|
2147
|
-
} : { column: { key: e.key } }
|
|
2148
|
-
};
|
|
2149
|
-
}, Cn = ({ windowIndexes: e, visibleRange: t, getRowKey: n, rowsVersion: r, pinnedRowKey: i, enabled: a }) => {
|
|
2150
|
-
let o = /* @__PURE__ */ new Set(), s = B(/* @__PURE__ */ new Set()), c = [], l = 12, u = 0, d = !1, f = !1, p = 0, m = "", h = () => {
|
|
2151
|
-
u = performance.now(), d = !0, s.value = new Set(o);
|
|
2152
|
-
}, g = (e) => {
|
|
2153
|
-
let t = c.splice(0, e);
|
|
2154
|
-
return t.forEach((e) => {
|
|
2155
|
-
o.add(e);
|
|
2156
|
-
}), t.length;
|
|
2157
|
-
}, _ = (e) => {
|
|
2158
|
-
if (e > 34) {
|
|
2159
|
-
l = Math.max(2, Math.floor(l / 2));
|
|
2160
|
-
return;
|
|
2161
|
-
}
|
|
2162
|
-
e < 20 && (l = Math.min(64, l + 2));
|
|
2163
|
-
}, v = () => {
|
|
2164
|
-
d && (d = !1, _(performance.now() - u));
|
|
2165
|
-
}, y = he(() => {
|
|
2166
|
-
p = 0, v(), f ? f = !1 : g(l) > 0 && h(), c.length === 0 && y.pause();
|
|
2167
|
-
}, { immediate: !1 }), b = (e) => {
|
|
2168
|
-
let n = t.value, r = n ? (n.startIndex + n.endIndex) / 2 : 0;
|
|
2169
|
-
return [...e].sort((e, t) => Math.abs(e - r) - Math.abs(t - r));
|
|
2170
|
-
}, x = (e) => {
|
|
2171
|
-
let t = [];
|
|
2172
|
-
return b(e).forEach((e) => {
|
|
2173
|
-
let r = n(e);
|
|
2174
|
-
r !== void 0 && !o.has(r) && t.push(r);
|
|
2175
|
-
}), t;
|
|
2176
|
-
}, S = (e) => {
|
|
2177
|
-
let t = H(i), n = t === void 0 ? -1 : e.indexOf(t);
|
|
2178
|
-
return n > 0 && (e.splice(n, 1), e.unshift(t ?? "")), e;
|
|
2179
|
-
}, C = (e) => {
|
|
2180
|
-
let t = new Set(e.map(n)), r = 0;
|
|
2181
|
-
return o.forEach((e) => {
|
|
2182
|
-
t.has(e) || (o.delete(e), r += 1);
|
|
2183
|
-
}), r;
|
|
2184
|
-
}, w = (e) => {
|
|
2185
|
-
e > 0 && (h(), f = !0);
|
|
2186
|
-
}, T = (e) => {
|
|
2187
|
-
(c.length > 0 || e > 0) && y.resume();
|
|
2188
|
-
}, E = (e) => e.map((e) => n(e) ?? "").join("\0"), D = (e) => {
|
|
2189
|
-
let t = E(e);
|
|
2190
|
-
if (!H(a) || t === m) return;
|
|
2191
|
-
m = t, c = S(x(e));
|
|
2192
|
-
let n = C(e), r = g(Math.max(0, l - p));
|
|
2193
|
-
p += r, w(n + r), T(r);
|
|
2194
|
-
};
|
|
2195
|
-
return W(e, D, {
|
|
2196
|
-
flush: "sync",
|
|
2197
|
-
immediate: !0
|
|
2198
|
-
}), W(() => H(r), () => D(e.value), { flush: "sync" }), W(() => H(a), () => {
|
|
2199
|
-
m = "", D(e.value);
|
|
2200
|
-
}), {
|
|
2201
|
-
isRowHydrated: (e) => !H(a) || e === H(i) || s.value.has(e),
|
|
2202
|
-
hydratedKeys: s
|
|
2203
|
-
};
|
|
2204
|
-
}, wn = {
|
|
2205
|
-
pinned: [],
|
|
2206
|
-
sliding: []
|
|
2207
|
-
}, Tn = ({ snapshot: e, visibleRange: t, groupRowSticky: n, depthFooterSticky: r, bottomVisibleRowIndex: i, getRowOffset: a }) => {
|
|
2208
|
-
let o = b(() => {
|
|
2209
|
-
let r = t.value;
|
|
2210
|
-
if (!r || !H(n)) return;
|
|
2211
|
-
let { flatRows: i, getRowIndexByKey: a } = e.value, o = i[r.startIndex];
|
|
2212
|
-
if (!o) return;
|
|
2213
|
-
let s = o.kind === Q.GROUP ? o.key : o.parentKey;
|
|
2214
|
-
for (; s;) {
|
|
2215
|
-
let e = a(s), t = e === void 0 ? void 0 : i[e];
|
|
2216
|
-
if (!t) return;
|
|
2217
|
-
if (t.kind === Q.GROUP) return t.index;
|
|
2218
|
-
s = t.parentKey;
|
|
2219
|
-
}
|
|
2220
|
-
}), s = (e) => e.kind === Q.DEPTH_FOOTER || e.kind === Q.LOAD_MORE ? e.parentKey : e.key, c = (t) => {
|
|
2221
|
-
let { flatRows: n, getRowIndexByKey: r } = e.value, i = r(t);
|
|
2222
|
-
return i === void 0 ? void 0 : n[i]?.parentKey;
|
|
2223
|
-
}, l = (t) => {
|
|
2224
|
-
let { flatRows: n, depthFooterIndexByParentKey: r } = e.value, i = n[t], a = i ? s(i) : void 0;
|
|
2225
|
-
for (; a;) {
|
|
2226
|
-
let e = r.get(a);
|
|
2227
|
-
if (e !== void 0) return e;
|
|
2228
|
-
a = c(a);
|
|
2229
|
-
}
|
|
2230
|
-
}, u = (e, t) => {
|
|
2231
|
-
let n = a(e)?.start;
|
|
2232
|
-
return n !== void 0 && n - t < 1200;
|
|
2233
|
-
}, d = (e, t) => {
|
|
2234
|
-
let n = [e], r = e;
|
|
2235
|
-
for (; n.length < 6 && u(r, t);) {
|
|
2236
|
-
let e = l(r + 1);
|
|
2237
|
-
if (e === void 0) return n;
|
|
2238
|
-
n.push(e), r = e;
|
|
2239
|
-
}
|
|
2240
|
-
return n;
|
|
2241
|
-
}, f = (e) => {
|
|
2242
|
-
let t = l(e);
|
|
2243
|
-
return t === void 0 ? [] : d(t, a(e)?.end ?? 0);
|
|
2244
|
-
}, p = (t, n) => {
|
|
2245
|
-
let { flatRows: r } = e.value;
|
|
2246
|
-
return [t - 2, t - 1].filter((e) => r[e]?.kind === Q.DEPTH_FOOTER && !n.includes(e));
|
|
2247
|
-
}, m = b(() => {
|
|
2248
|
-
let e = i.value;
|
|
2249
|
-
if (!H(r) || e === void 0) return wn;
|
|
2250
|
-
let t = f(e);
|
|
2251
|
-
return {
|
|
2252
|
-
pinned: t,
|
|
2253
|
-
sliding: p(e, t)
|
|
2254
|
-
};
|
|
2255
|
-
}), h = b(() => {
|
|
2256
|
-
let { pinned: e, sliding: t } = m.value;
|
|
2257
|
-
return [...t, ...e];
|
|
2258
|
-
});
|
|
2259
|
-
return {
|
|
2260
|
-
activeGroupRowIndex: o,
|
|
2261
|
-
activeDepthFooterRowIndex: b(() => m.value.pinned[0]),
|
|
2262
|
-
activeDepthFooterRowIndexes: h,
|
|
2263
|
-
leavingDepthFooterRowIndex: b(() => {
|
|
2264
|
-
let [e, t] = m.value.pinned;
|
|
2265
|
-
return t === void 0 ? void 0 : e;
|
|
2266
|
-
}),
|
|
2267
|
-
slidingDepthFooterRowIndexes: b(() => m.value.sliding),
|
|
2268
|
-
farDepthFooterRowIndexes: b(() => m.value.pinned.slice(2))
|
|
2269
|
-
};
|
|
2270
|
-
}, En = (e) => typeof e == "number" ? `${e}px` : e || void 0, Dn = ({ tfootBarStackHeight: e, hasFooterValues: t, scrollClientWidth: n, columnCssVars: r, totalWidth: i, height: a, maxHeight: o }) => ({
|
|
2271
|
-
rootStyle: b(() => {
|
|
2272
|
-
let i = H(n);
|
|
2273
|
-
return {
|
|
2274
|
-
"--s-ui-table-header-height": "40px",
|
|
2275
|
-
"--s-ui-table-row-min-height": "40px",
|
|
2276
|
-
"--s-ui-table-scrollbar-size": "12px",
|
|
2277
|
-
"--s-ui-table-header-stack": "40px",
|
|
2278
|
-
"--s-ui-table-bottom-stack": `${e.value}px`,
|
|
2279
|
-
"--s-ui-table-footer-bar-height": "40px",
|
|
2280
|
-
"--s-ui-table-create-row-height": "40px",
|
|
2281
|
-
"--s-ui-table-aggregate-offset": H(t) ? "40px" : "0px",
|
|
2282
|
-
...i > 0 ? { "--s-ui-table-viewport-width": `${i}px` } : {},
|
|
2283
|
-
...r.value
|
|
2284
|
-
};
|
|
2285
|
-
}),
|
|
2286
|
-
scrollStyle: b(() => ({
|
|
2287
|
-
height: En(H(a)),
|
|
2288
|
-
maxHeight: En(H(o))
|
|
2289
|
-
})),
|
|
2290
|
-
tableStyle: b(() => ({ width: `max(100%, ${i.value}px)` }))
|
|
2291
|
-
}), On, kn = () => {
|
|
2292
|
-
if (On !== void 0) return On;
|
|
2293
|
-
if (typeof document > "u") return On = Le, On;
|
|
2294
|
-
let e = document.createElement("div");
|
|
2295
|
-
e.style.cssText = `position:absolute;visibility:hidden;pointer-events:none;width:1px;height:${ze}px`, document.body.appendChild(e);
|
|
2296
|
-
let t = e.offsetHeight;
|
|
2297
|
-
return e.remove(), On = t > 0 ? t : Le, On;
|
|
2298
|
-
}, An = (e) => e > 16e6 ? kn() - Re : Infinity, jn = (e, t, n) => {
|
|
2299
|
-
if (!e) return 0;
|
|
2300
|
-
let r = Math.max(t, Be);
|
|
2301
|
-
return n > 4 * r ? r : 0;
|
|
2302
|
-
}, Mn = (e, t) => !e.active || t <= e.edgeZone ? t : t >= e.maxUiScrollTop - e.edgeZone ? Math.min(e.maxModelScrollTop, e.maxModelScrollTop - (e.maxUiScrollTop - t)) : e.edgeZone + (t - e.edgeZone) * e.ratio, Nn = (e, t) => e.active ? t <= e.edgeZone ? Math.max(0, t) : t >= e.maxModelScrollTop - e.edgeZone ? Math.min(e.maxUiScrollTop, e.maxUiScrollTop - (e.maxModelScrollTop - t)) : e.edgeZone + (t - e.edgeZone) / e.ratio : t, Pn = (e, t) => e.active === t.active && e.maxUiScrollTop === t.maxUiScrollTop && e.maxModelScrollTop === t.maxModelScrollTop && e.edgeZone === t.edgeZone, Fn = (e, t) => !Pn(e, t) && (e.active || t.active), In = ({ scrollElement: e, totalSize: t, viewportHeight: n, extraHeight: r, onRescale: i }) => {
|
|
2303
|
-
let a = B(0), o = b(() => {
|
|
2304
|
-
let e = H(t), i = H(r), a = H(n), o = An(e), s = e > o, c = s ? o : e, l = Math.max(1, c + i - a), u = Math.max(0, e + i - a), d = jn(s, a, l);
|
|
2305
|
-
return {
|
|
2306
|
-
active: s,
|
|
2307
|
-
uiHeight: c,
|
|
2308
|
-
maxUiScrollTop: l,
|
|
2309
|
-
maxModelScrollTop: u,
|
|
2310
|
-
edgeZone: d,
|
|
2311
|
-
ratio: s ? (u - 2 * d) / (l - 2 * d) : 1
|
|
2312
|
-
};
|
|
2313
|
-
}), s = (e) => Mn(o.value, e), c = (e) => Nn(o.value, e), l = B(0), u = B(-1);
|
|
2314
|
-
K(e, "scroll", () => {
|
|
2315
|
-
let t = e.value;
|
|
2316
|
-
t && (a.value = t.scrollTop, t.scrollTop !== u.value && (u.value = t.scrollTop, l.value = s(t.scrollTop)));
|
|
2317
|
-
}, { passive: !0 });
|
|
2318
|
-
let d = (e) => e.scrollTop === u.value ? l.value : s(e.scrollTop), f = b(() => o.value.active ? l.value : s(a.value)), p = b(() => o.value.active ? f.value - a.value : 0), m = b(() => o.value.uiHeight), h = b(() => o.value.maxModelScrollTop), g = b(() => o.value.active), _ = (e, t, n) => {
|
|
2319
|
-
e.scrollTop = t, a.value = e.scrollTop, u.value = e.scrollTop, l.value = n !== void 0 && Math.abs(e.scrollTop - t) <= 4 ? Math.max(0, Math.min(o.value.maxModelScrollTop, n)) : s(e.scrollTop);
|
|
2320
|
-
}, v = (t) => t === "y" ? H(n) : e.value?.clientWidth ?? 0, y = (e, t) => e === WheelEvent.DOM_DELTA_LINE ? 40 : e === WheelEvent.DOM_DELTA_PAGE ? v(t) : 1, x = (e, t) => (t === "x" ? e.deltaX : e.deltaY) * y(e.deltaMode, t), S = (e) => o.value.active && e.deltaY !== 0 && !e.ctrlKey, C = (t) => {
|
|
2321
|
-
let n = e.value;
|
|
2322
|
-
if (!n || !S(t)) return;
|
|
2323
|
-
let { maxModelScrollTop: r } = o.value, i = d(n), a = Math.max(0, Math.min(r, i + x(t, "y")));
|
|
2324
|
-
a !== i && (t.preventDefault(), _(n, c(a), a), n.scrollLeft += x(t, "x"));
|
|
2325
|
-
}, w, T = (t) => {
|
|
2326
|
-
w?.(), w = t ? K(e, "wheel", C, { passive: !1 }) : void 0;
|
|
2327
|
-
};
|
|
2328
|
-
pe(() => {
|
|
2329
|
-
w?.();
|
|
2330
|
-
});
|
|
2331
|
-
let E = (e, t) => e.scrollTop === u.value ? l.value : Mn(t, e.scrollTop);
|
|
2332
|
-
return te(() => {
|
|
2333
|
-
W(o, (t, n) => {
|
|
2334
|
-
let r = e.value;
|
|
2335
|
-
if (!r || !Fn(t, n)) return;
|
|
2336
|
-
let a = E(r, n);
|
|
2337
|
-
_(r, Nn(t, a), a), i?.(a);
|
|
2338
|
-
}), W(g, T, { immediate: !0 });
|
|
2339
|
-
}), {
|
|
2340
|
-
uiScrollTop: a,
|
|
2341
|
-
modelScrollOffset: f,
|
|
2342
|
-
uiShift: p,
|
|
2343
|
-
uiTotalSize: m,
|
|
2344
|
-
maxModelScrollTop: h,
|
|
2345
|
-
active: g,
|
|
2346
|
-
uiToModel: s,
|
|
2347
|
-
modelToUi: c,
|
|
2348
|
-
resolveModelOffset: d,
|
|
2349
|
-
setScrollTop: _
|
|
2350
|
-
};
|
|
2351
|
-
}, Ln = ({ rowCount: e, enabled: t, autoMeasure: n, estimateRowSize: r, estimateRowSizeByIndex: i, overscan: a, scrollElement: o, getRowKey: s, rowsVersion: c, viewportHeight: l, extraHeight: u, headerHeight: d }) => {
|
|
2352
|
-
let f, p = In({
|
|
2353
|
-
scrollElement: o,
|
|
2354
|
-
totalSize: () => _.value.getTotalSize(),
|
|
2355
|
-
viewportHeight: l,
|
|
2356
|
-
extraHeight: u,
|
|
2357
|
-
onRescale: (e) => {
|
|
2358
|
-
f?.(e, !1);
|
|
2359
|
-
}
|
|
2360
|
-
}), m = B(0), h = 0, g = (e, t, n) => {
|
|
2361
|
-
let r = Math.round((e - h) / n);
|
|
2362
|
-
h = e, m.value = t ? Math.max(-24, Math.min(24, r)) : 0;
|
|
2363
|
-
}, _ = be(b(() => {
|
|
2364
|
-
let n = H(r);
|
|
2365
|
-
return {
|
|
2366
|
-
count: H(e),
|
|
2367
|
-
enabled: H(t),
|
|
2368
|
-
getScrollElement: () => o.value,
|
|
2369
|
-
estimateSize: (e) => i?.(e) ?? n,
|
|
2370
|
-
getItemKey: s,
|
|
2371
|
-
overscan: H(a),
|
|
2372
|
-
shouldAdjustScrollPositionOnItemSizeChange: () => !1,
|
|
2373
|
-
observeElementOffset: (e, t) => (f = t, ye(e, (e, r) => {
|
|
2374
|
-
let i = p.uiToModel(e);
|
|
2375
|
-
g(i, r, n), t(i, r);
|
|
2376
|
-
})),
|
|
2377
|
-
scrollToFn: (e, t, n) => {
|
|
2378
|
-
ve(p.modelToUi(e + (t.adjustments ?? 0)), { behavior: t.behavior }, n);
|
|
2379
|
-
}
|
|
2380
|
-
};
|
|
2381
|
-
})), v = b(() => H(t) ? _.value.getVirtualItems() : []), y = b(() => _.value.getTotalSize()), x = (e, t) => Array.from({ length: Math.max(0, t - e + 1) }, (t, n) => e + n), S = (t, n) => {
|
|
2382
|
-
let r = t[0], i = t[t.length - 1];
|
|
2383
|
-
if (!(!r || !i)) return n > 0 ? [i.index + 1, Math.min(H(e) - 1, i.index + n)] : [Math.max(0, r.index + n), r.index - 1];
|
|
2384
|
-
}, C = b(() => {
|
|
2385
|
-
let e = v.value, t = e.map((e) => e.index), n = m.value, r = n === 0 ? void 0 : S(e, n);
|
|
2386
|
-
if (!r) return t;
|
|
2387
|
-
let i = x(r[0], r[1]);
|
|
2388
|
-
return n > 0 ? [...t, ...i] : [...i, ...t];
|
|
2389
|
-
}), w = /* @__PURE__ */ new Set(), T = (e) => {
|
|
2390
|
-
if (!(e instanceof HTMLElement) || e.dataset.placeholder) return;
|
|
2391
|
-
let t = Number(e.dataset.index);
|
|
2392
|
-
return Number.isInteger(t) ? t : void 0;
|
|
2393
|
-
}, E = (e) => {
|
|
2394
|
-
if (!H(t) || !H(n)) return;
|
|
2395
|
-
let r = o.value;
|
|
2396
|
-
if (!r) return;
|
|
2397
|
-
let i = r.querySelectorAll("tr[data-index]"), a = [];
|
|
2398
|
-
if (i.forEach((t) => {
|
|
2399
|
-
let n = T(t);
|
|
2400
|
-
n === void 0 || !(t instanceof HTMLElement) || (!e || !w.has(s(n))) && a.push(t);
|
|
2401
|
-
}), a.length === 0) return;
|
|
2402
|
-
let c = _.value.measurementsCache, l = r.getBoundingClientRect().top + H(d), u = p.resolveModelOffset(r), f = [], m = Infinity;
|
|
2403
|
-
a.forEach((e) => {
|
|
2404
|
-
let t = Number(e.dataset.index), n = e.getBoundingClientRect();
|
|
2405
|
-
f.push([t, Math.round(n.height)]), n.bottom > l + 1 && t < m && (m = t);
|
|
2406
|
-
});
|
|
2407
|
-
let h = 0;
|
|
2408
|
-
f.forEach(([e, t]) => {
|
|
2409
|
-
if (t <= 0) return;
|
|
2410
|
-
w.add(s(e));
|
|
2411
|
-
let n = c[e]?.size;
|
|
2412
|
-
e < m && n !== void 0 && (h += t - n), _.value.resizeItem(e, t);
|
|
2413
|
-
}), h !== 0 && p.setScrollTop(r, p.modelToUi(u + h), u + h);
|
|
2414
|
-
};
|
|
2415
|
-
W(C, () => E(!0), { flush: "post" });
|
|
2416
|
-
let D = () => {
|
|
2417
|
-
E(!0);
|
|
2418
|
-
}, O = () => {
|
|
2419
|
-
w.clear(), E(!1);
|
|
2420
|
-
};
|
|
2421
|
-
ge(o, () => {
|
|
2422
|
-
O();
|
|
2423
|
-
}), W(() => H(c), () => {
|
|
2424
|
-
w.clear(), E(!1);
|
|
2425
|
-
}, { flush: "post" });
|
|
2426
|
-
let k = (e, t) => {
|
|
2427
|
-
if (e !== "auto") return e;
|
|
2428
|
-
let n = H(l) - H(u), r = p.modelScrollOffset.value;
|
|
2429
|
-
return t.end >= r + n ? "end" : t.start <= r ? "start" : void 0;
|
|
2430
|
-
}, A = (e, t) => {
|
|
2431
|
-
let n = H(l) - H(u);
|
|
2432
|
-
return e === "start" ? t.start : e === "end" ? t.end - n : t.start - (n - t.size) / 2;
|
|
2433
|
-
}, j = (e, t) => {
|
|
2434
|
-
let n = _.value.measurementsCache, r = n[Math.max(0, Math.min(e, n.length - 1))];
|
|
2435
|
-
if (!r) return;
|
|
2436
|
-
let i = k(t, r);
|
|
2437
|
-
if (!i) return;
|
|
2438
|
-
let a = A(i, r);
|
|
2439
|
-
return Math.max(0, Math.min(p.maxModelScrollTop.value, a));
|
|
2440
|
-
}, M = (e, t = "auto") => {
|
|
2441
|
-
let n = o.value;
|
|
2442
|
-
if (!p.active.value || !n) {
|
|
2443
|
-
_.value.scrollToIndex(e, { align: t });
|
|
2444
|
-
return;
|
|
2445
|
-
}
|
|
2446
|
-
let r = j(e, t);
|
|
2447
|
-
r !== void 0 && p.setScrollTop(n, p.modelToUi(r), r);
|
|
2448
|
-
}, ee = b(() => {
|
|
2449
|
-
if (!(!H(t) || v.value.length === 0)) return _.value.range ?? void 0;
|
|
2450
|
-
}), N = (e) => {
|
|
2451
|
-
let t = _.value.measurementsCache;
|
|
2452
|
-
if (t.length === 0) return;
|
|
2453
|
-
let n = 0, r = t.length - 1;
|
|
2454
|
-
for (; n < r;) {
|
|
2455
|
-
let i = Math.floor((n + r) / 2), a = t[i];
|
|
2456
|
-
if (!a) return;
|
|
2457
|
-
a.end <= e ? n = i + 1 : r = i;
|
|
2458
|
-
}
|
|
2459
|
-
return n;
|
|
2460
|
-
}, P = (e) => {
|
|
2461
|
-
let t = _.value.measurementsCache[e];
|
|
2462
|
-
if (t) return {
|
|
2463
|
-
start: t.start,
|
|
2464
|
-
end: t.end
|
|
2465
|
-
};
|
|
2466
|
-
};
|
|
2467
|
-
return {
|
|
2468
|
-
rowVirtualizer: _,
|
|
2469
|
-
virtualItems: v,
|
|
2470
|
-
windowIndexes: C,
|
|
2471
|
-
totalSize: y,
|
|
2472
|
-
uiTotalSize: p.uiTotalSize,
|
|
2473
|
-
modelScrollOffset: p.modelScrollOffset,
|
|
2474
|
-
scrollCompressed: p.active,
|
|
2475
|
-
measureWindowRows: O,
|
|
2476
|
-
measureNewRows: D,
|
|
2477
|
-
scrollToIndex: M,
|
|
2478
|
-
visibleRange: ee,
|
|
2479
|
-
getRowOffset: P,
|
|
2480
|
-
getRowUiOffset: (e) => {
|
|
2481
|
-
let t = P(e);
|
|
2482
|
-
if (!t) return;
|
|
2483
|
-
let n = p.uiShift.value;
|
|
2484
|
-
return {
|
|
2485
|
-
start: t.start - n,
|
|
2486
|
-
end: t.end - n
|
|
2487
|
-
};
|
|
2488
|
-
},
|
|
2489
|
-
getRowIndexAtOffset: N
|
|
2490
|
-
};
|
|
2491
|
-
}, Rn = [
|
|
2492
|
-
"role",
|
|
2493
|
-
"aria-rowcount",
|
|
2494
|
-
"aria-colcount",
|
|
2495
|
-
"aria-busy"
|
|
2496
|
-
], zn = { class: "s-ui-table__head" }, Bn = {
|
|
2497
|
-
class: "s-ui-table__head-row",
|
|
2498
|
-
"aria-rowindex": 1
|
|
2499
|
-
}, Vn = {
|
|
2500
|
-
key: 0,
|
|
2501
|
-
class: "s-ui-table__header-cell s-ui-table__filler-cell",
|
|
2502
|
-
role: "presentation"
|
|
2503
|
-
}, Hn = [
|
|
2504
|
-
"id",
|
|
2505
|
-
"data-column-key",
|
|
2506
|
-
"data-section",
|
|
2507
|
-
"aria-colindex",
|
|
2508
|
-
"aria-sort",
|
|
2509
|
-
"tabindex"
|
|
2510
|
-
], Un = {
|
|
2511
|
-
key: 2,
|
|
2512
|
-
class: "s-ui-table__columns-manager"
|
|
2513
|
-
}, Wn = { class: "s-ui-table__columns-item-main" }, Gn = { class: "s-ui-table__columns-item-title" }, Kn = [
|
|
2514
|
-
"aria-label",
|
|
2515
|
-
"aria-valuenow",
|
|
2516
|
-
"aria-valuemin",
|
|
2517
|
-
"aria-valuemax",
|
|
2518
|
-
"aria-valuetext",
|
|
2519
|
-
"onPointerdown",
|
|
2520
|
-
"onKeydown",
|
|
2521
|
-
"onDblclick"
|
|
2522
|
-
], qn = { class: "s-ui-table__body" }, Jn = {
|
|
2523
|
-
key: 0,
|
|
2524
|
-
class: "s-ui-table__empty-row",
|
|
2525
|
-
"aria-rowindex": 2
|
|
2526
|
-
}, Yn = ["colspan"], Xn = { class: "s-ui-table__empty-content" }, Zn = { class: "s-ui-table__empty-text" }, Qn = {
|
|
2527
|
-
key: 0,
|
|
2528
|
-
class: "s-ui-table__spacer",
|
|
2529
|
-
"aria-hidden": "true"
|
|
2530
|
-
}, $n = ["colspan"], er = {
|
|
2531
|
-
key: 0,
|
|
2532
|
-
class: "s-ui-table__foot"
|
|
2533
|
-
}, tr = ["aria-rowindex"], nr = {
|
|
2534
|
-
key: 0,
|
|
2535
|
-
class: "s-ui-table__aggregate-cell s-ui-table__filler-cell",
|
|
2536
|
-
role: "presentation"
|
|
2537
|
-
}, rr = [
|
|
2538
|
-
"id",
|
|
2539
|
-
"aria-colindex",
|
|
2540
|
-
"data-column-key",
|
|
2541
|
-
"data-section",
|
|
2542
|
-
"tabindex"
|
|
2543
|
-
], ir = {
|
|
2544
|
-
key: 1,
|
|
2545
|
-
class: "s-ui-table__aggregate-text"
|
|
2546
|
-
}, ar = /* @__PURE__ */ O({
|
|
2547
|
-
__name: "STable",
|
|
2548
|
-
props: /*@__PURE__*/ j({
|
|
2549
|
-
items: {},
|
|
2550
|
-
columns: {},
|
|
2551
|
-
itemKey: {
|
|
2552
|
-
type: [String, Function],
|
|
2553
|
-
default: "id"
|
|
2554
|
-
},
|
|
2555
|
-
childrenKey: { default: "children" },
|
|
2556
|
-
groupRow: { type: [String, Function] },
|
|
2557
|
-
groupRowSticky: {
|
|
2558
|
-
type: Boolean,
|
|
2559
|
-
default: !0
|
|
2560
|
-
},
|
|
2561
|
-
columnsManagerBodySticky: {
|
|
2562
|
-
type: Boolean,
|
|
2563
|
-
default: !0
|
|
2564
|
-
},
|
|
2565
|
-
groupTotalKey: {},
|
|
2566
|
-
groupContentColumnKey: {},
|
|
2567
|
-
disabledKey: {},
|
|
2568
|
-
selectable: {
|
|
2569
|
-
type: Boolean,
|
|
2570
|
-
default: !1
|
|
2571
|
-
},
|
|
2572
|
-
cascadeSelection: {
|
|
2573
|
-
type: Boolean,
|
|
2574
|
-
default: !1
|
|
2575
|
-
},
|
|
2576
|
-
isItemSelectable: { type: Function },
|
|
2577
|
-
columnsManageable: { type: Boolean },
|
|
2578
|
-
columnsManagerWidth: { default: () => 32 },
|
|
2579
|
-
rowState: { type: Function },
|
|
2580
|
-
rowColor: { type: Function },
|
|
2581
|
-
expandColumnKey: {},
|
|
2582
|
-
expandOnClick: {
|
|
2583
|
-
type: Boolean,
|
|
2584
|
-
default: !1
|
|
2585
|
-
},
|
|
2586
|
-
treeIndent: { default: () => 18 },
|
|
2587
|
-
depthFooter: {},
|
|
2588
|
-
creationRow: {
|
|
2589
|
-
type: Boolean,
|
|
2590
|
-
default: !1
|
|
2591
|
-
},
|
|
2592
|
-
creationContentColumnKey: {},
|
|
2593
|
-
footerValues: {},
|
|
2594
|
-
virtual: {
|
|
2595
|
-
type: Boolean,
|
|
2596
|
-
default: !0
|
|
2597
|
-
},
|
|
2598
|
-
rowHeightMode: { default: () => Ne.AUTO },
|
|
2599
|
-
estimateRowSize: { default: () => 40 },
|
|
2600
|
-
overscan: { default: () => 8 },
|
|
2601
|
-
height: {},
|
|
2602
|
-
maxHeight: {},
|
|
2603
|
-
endReachedDistance: { default: 0 },
|
|
2604
|
-
canLoadMore: { type: Function },
|
|
2605
|
-
loading: {
|
|
2606
|
-
type: Boolean,
|
|
2607
|
-
default: !1
|
|
2608
|
-
},
|
|
2609
|
-
loadingMore: {
|
|
2610
|
-
type: Boolean,
|
|
2611
|
-
default: !1
|
|
2612
|
-
},
|
|
2613
|
-
skeletonRowCount: { default: () => 8 },
|
|
2614
|
-
hasMoreChildrenKey: {},
|
|
2615
|
-
loadingMoreChildrenKeys: { default: () => [] },
|
|
2616
|
-
loadMoreContentColumnKey: {},
|
|
2617
|
-
rowsDraggable: {
|
|
2618
|
-
type: Boolean,
|
|
2619
|
-
default: !1
|
|
2620
|
-
},
|
|
2621
|
-
rowsDragMode: {},
|
|
2622
|
-
isRowDraggable: { type: Function },
|
|
2623
|
-
dragExpandDelayMs: { default: () => 500 },
|
|
2624
|
-
dragInsideDelayMs: { default: () => He },
|
|
2625
|
-
columnsResizable: {
|
|
2626
|
-
type: Boolean,
|
|
2627
|
-
default: !0
|
|
2628
|
-
},
|
|
2629
|
-
columnsDraggable: {
|
|
2630
|
-
type: Boolean,
|
|
2631
|
-
default: !0
|
|
2632
|
-
},
|
|
2633
|
-
columnMenu: {
|
|
2634
|
-
type: Boolean,
|
|
2635
|
-
default: !0
|
|
2636
|
-
},
|
|
2637
|
-
scrollSeekPlaceholders: {
|
|
2638
|
-
type: Boolean,
|
|
2639
|
-
default: !0
|
|
2640
|
-
},
|
|
2641
|
-
rowClass: { type: Function },
|
|
2642
|
-
rowStyle: { type: Function }
|
|
2643
|
-
}, {
|
|
2644
|
-
modelValue: {},
|
|
2645
|
-
modelModifiers: {},
|
|
2646
|
-
selected: { default: () => [] },
|
|
2647
|
-
selectedModifiers: {},
|
|
2648
|
-
expanded: { default: () => [] },
|
|
2649
|
-
expandedModifiers: {},
|
|
2650
|
-
columnOrder: {},
|
|
2651
|
-
columnOrderModifiers: {},
|
|
2652
|
-
columnWidths: {},
|
|
2653
|
-
columnWidthsModifiers: {},
|
|
2654
|
-
hiddenColumns: {},
|
|
2655
|
-
hiddenColumnsModifiers: {},
|
|
2656
|
-
sortState: { default: () => [] },
|
|
2657
|
-
sortStateModifiers: {}
|
|
2658
|
-
}),
|
|
2659
|
-
emits: /*@__PURE__*/ j([
|
|
2660
|
-
"rowClick",
|
|
2661
|
-
"rowContextMenu",
|
|
2662
|
-
"cellClick",
|
|
2663
|
-
"sortChange",
|
|
2664
|
-
"endReached",
|
|
2665
|
-
"loadMoreChildren",
|
|
2666
|
-
"depthFooterClick",
|
|
2667
|
-
"groupMenuOpen",
|
|
2668
|
-
"columnResizeEnd",
|
|
2669
|
-
"columnReorder",
|
|
2670
|
-
"rowsReorder",
|
|
2671
|
-
"rowsDrop"
|
|
2672
|
-
], [
|
|
2673
|
-
"update:modelValue",
|
|
2674
|
-
"update:selected",
|
|
2675
|
-
"update:expanded",
|
|
2676
|
-
"update:columnOrder",
|
|
2677
|
-
"update:columnWidths",
|
|
2678
|
-
"update:hiddenColumns",
|
|
2679
|
-
"update:sortState"
|
|
2680
|
-
]),
|
|
2681
|
-
setup(e, { expose: t, emit: n }) {
|
|
2682
|
-
let s = ie(e, "modelValue"), c = ie(e, "selected"), p = ie(e, "expanded"), m = ie(e, "columnOrder"), h = ie(e, "columnWidths"), O = ie(e, "hiddenColumns"), A = ie(e, "sortState"), j = n, F = ae(), { t: te } = fe(), L = re(), ne = oe("scrollElementRef"), H = oe("tableElementRef"), ce = oe("gridExitRef"), de = oe("tableRootRef"), { width: pe, height: K } = me(ne), { primaryColumnKey: he, columnDescriptors: ge, columnCssVars: _e, totalWidth: ve, columnCount: ye } = ct({
|
|
2683
|
-
columns: () => e.columns,
|
|
2684
|
-
columnOrder: m,
|
|
2685
|
-
columnWidths: h,
|
|
2686
|
-
hiddenColumns: O,
|
|
2687
|
-
hasIndicator: () => !!F.indicator,
|
|
2688
|
-
hasCheckbox: () => e.selectable,
|
|
2689
|
-
hasRightEdge: () => !!F["right-edge"],
|
|
2690
|
-
hasColumnsManager: () => e.columnsManageable,
|
|
2691
|
-
columnsManagerWidth: () => e.columnsManagerWidth,
|
|
2692
|
-
columnsResizable: () => e.columnsResizable,
|
|
2693
|
-
columnsDraggable: () => e.columnsDraggable,
|
|
2694
|
-
viewportWidth: () => pe.value
|
|
2695
|
-
}), { treeIndex: be, snapshot: xe, flatRows: q, toggleExpanded: Se, expandAll: Ce, collapseAll: we } = Kt({
|
|
2696
|
-
items: () => e.items,
|
|
2697
|
-
itemKey: () => e.itemKey,
|
|
2698
|
-
childrenKey: () => e.childrenKey,
|
|
2699
|
-
groupRow: () => e.groupRow,
|
|
2700
|
-
expanded: p,
|
|
2701
|
-
depthFooter: () => e.depthFooter,
|
|
2702
|
-
hasMoreChildrenKey: () => e.hasMoreChildrenKey
|
|
2703
|
-
}), { leadingDescriptors: Te, trailingDescriptors: Ee, headerCells: De, getStickyCellStyle: Oe, getHeaderCellClasses: ke, leadingCellPlans: J, trailingCellPlans: Y, rowCellPlans: X } = mn({
|
|
2704
|
-
columnDescriptors: ge,
|
|
2705
|
-
hasTreeStructure: () => je.value,
|
|
2706
|
-
expandColumnKey: () => e.expandColumnKey,
|
|
2707
|
-
primaryColumnKey: he
|
|
2708
|
-
}), Ae = b(() => ge.value.length + 1), je = b(() => be.value.expandableKeys.length > 0), Me = b(() => je.value ? "treegrid" : "grid"), Ie = b(() => q.value.length + 1 + +!!e.creationRow + +!!e.footerValues), Le = b(() => e.virtual), Re = b(() => ({
|
|
2709
|
-
"s-ui-table--rows-fixed": e.rowHeightMode === Ne.FIXED,
|
|
2710
|
-
"s-ui-table--columns-manager-body-static": !e.columnsManagerBodySticky
|
|
2711
|
-
})), ze = b(() => {
|
|
2712
|
-
let t = 0;
|
|
2713
|
-
return e.footerValues && (t += 40), e.creationRow && (t += 40), t;
|
|
2714
|
-
}), Be = [];
|
|
2715
|
-
W(q, (e) => {
|
|
2716
|
-
Be = e;
|
|
2717
|
-
}, {
|
|
2718
|
-
flush: "sync",
|
|
2719
|
-
immediate: !0
|
|
2720
|
-
});
|
|
2721
|
-
let { windowIndexes: Ve, uiTotalSize: He, modelScrollOffset: Ue, scrollToIndex: Ge, visibleRange: Je, getRowOffset: Ye, getRowUiOffset: Xe, getRowIndexAtOffset: Ze, measureWindowRows: Qe, measureNewRows: $e } = Ln({
|
|
2722
|
-
rowCount: () => q.value.length,
|
|
2723
|
-
enabled: Le,
|
|
2724
|
-
autoMeasure: () => e.rowHeightMode === Ne.AUTO,
|
|
2725
|
-
estimateRowSize: () => e.estimateRowSize,
|
|
2726
|
-
estimateRowSizeByIndex: void 0,
|
|
2727
|
-
overscan: () => e.overscan,
|
|
2728
|
-
scrollElement: ne,
|
|
2729
|
-
getRowKey: (e) => Be[e]?.key ?? e,
|
|
2730
|
-
rowsVersion: q,
|
|
2731
|
-
viewportHeight: () => K.value,
|
|
2732
|
-
extraHeight: () => 40 + ze.value,
|
|
2733
|
-
headerHeight: () => 40
|
|
2734
|
-
}), { isRowHydrated: et, hydratedKeys: tt } = Cn({
|
|
2735
|
-
windowIndexes: Ve,
|
|
2736
|
-
visibleRange: Je,
|
|
2737
|
-
getRowKey: (e) => Be[e]?.key,
|
|
2738
|
-
rowsVersion: q,
|
|
2739
|
-
pinnedRowKey: () => s.value,
|
|
2740
|
-
enabled: () => Le.value && e.scrollSeekPlaceholders
|
|
2741
|
-
});
|
|
2742
|
-
W(tt, $e, { flush: "post" });
|
|
2743
|
-
let { resizingColumnKey: nt, handleResizeHandlePointerdown: rt, handleResizeHandleKeydown: it, handleResizeHandleDblclick: at } = hn({
|
|
2744
|
-
tableRootElement: de,
|
|
2745
|
-
scrollElement: ne,
|
|
2746
|
-
columnDescriptors: ge,
|
|
2747
|
-
columnWidths: h,
|
|
2748
|
-
enabled: () => e.columnsResizable,
|
|
2749
|
-
onResizeEnd: (e, t) => {
|
|
2750
|
-
j("columnResizeEnd", {
|
|
2751
|
-
key: e,
|
|
2752
|
-
width: t
|
|
2753
|
-
});
|
|
2754
|
-
},
|
|
2755
|
-
remeasureRows: () => {
|
|
2756
|
-
Qe();
|
|
2757
|
-
}
|
|
2758
|
-
}), ot = b(() => e.rowsDragMode ? e.rowsDragMode : je.value ? Pe.TREE : Pe.FLAT), { registerColumnHeaderElement: st, draggingColumnKey: lt, dropLineStyle: ut } = fn({
|
|
2759
|
-
tableId: L,
|
|
2760
|
-
tableRootElement: de,
|
|
2761
|
-
enabled: () => e.columnsDraggable,
|
|
2762
|
-
columnDescriptors: ge,
|
|
2763
|
-
onReorder: (t, n, r) => {
|
|
2764
|
-
let i = m.value?.length ? [...m.value] : e.columns.map((e) => e.key);
|
|
2765
|
-
e.columns.forEach((e) => {
|
|
2766
|
-
i.includes(e.key) || i.push(e.key);
|
|
2767
|
-
});
|
|
2768
|
-
let a = i.filter((e) => e !== t), o = a.indexOf(n);
|
|
2769
|
-
if (o === -1) return;
|
|
2770
|
-
let s = r === "left" ? o : o + 1;
|
|
2771
|
-
a.splice(s, 0, t), m.value = a, j("columnReorder", {
|
|
2772
|
-
key: t,
|
|
2773
|
-
toIndex: s,
|
|
2774
|
-
order: a
|
|
2775
|
-
});
|
|
2776
|
-
},
|
|
2777
|
-
isResizing: () => !!nt.value
|
|
2778
|
-
}), dt = (e, t) => {
|
|
2779
|
-
(e instanceof Element || e === null) && st(t, e);
|
|
2780
|
-
}, { registerRowElement: pt, draggingRowKey: mt, dropIndicator: ht } = vn({
|
|
2781
|
-
tableId: L,
|
|
2782
|
-
enabled: () => e.rowsDraggable,
|
|
2783
|
-
dragMode: ot,
|
|
2784
|
-
snapshot: xe,
|
|
2785
|
-
scrollElement: ne,
|
|
2786
|
-
isRowDraggable: () => e.isRowDraggable,
|
|
2787
|
-
dragExpandDelayMs: () => e.dragExpandDelayMs,
|
|
2788
|
-
dragInsideDelayMs: () => e.dragInsideDelayMs,
|
|
2789
|
-
isExpanded: (e) => p.value.includes(e),
|
|
2790
|
-
onHoverExpand: (e) => {
|
|
2791
|
-
Se(e);
|
|
2792
|
-
},
|
|
2793
|
-
onReorder: (e) => {
|
|
2794
|
-
j("rowsReorder", e);
|
|
2795
|
-
},
|
|
2796
|
-
onTreeDrop: (e) => {
|
|
2797
|
-
j("rowsDrop", e);
|
|
2798
|
-
},
|
|
2799
|
-
resolveRowPreviewTitle: (e) => kn(e) ?? e.key
|
|
2800
|
-
}), gt = (e) => {
|
|
2801
|
-
(e instanceof Element || e === null) && pt(e);
|
|
2802
|
-
}, _t = (e) => {
|
|
2803
|
-
let t = ht.value;
|
|
2804
|
-
if (!(!t || t.targetKey !== e)) return t.action === Fe.CHILD ? "inside" : t.action === Fe.BEFORE ? "before" : "after";
|
|
2805
|
-
}, { activeGroupRowIndex: vt, activeDepthFooterRowIndex: bt, activeDepthFooterRowIndexes: xt, leavingDepthFooterRowIndex: St, slidingDepthFooterRowIndexes: Ct, farDepthFooterRowIndexes: wt } = Tn({
|
|
2806
|
-
snapshot: xe,
|
|
2807
|
-
visibleRange: Je,
|
|
2808
|
-
groupRowSticky: () => e.groupRowSticky,
|
|
2809
|
-
depthFooterSticky: () => e.depthFooter?.sticky !== !1,
|
|
2810
|
-
bottomVisibleRowIndex: b(() => {
|
|
2811
|
-
if (!Le.value || K.value === 0) return;
|
|
2812
|
-
let e = Ue.value + K.value - 40 - ze.value;
|
|
2813
|
-
return Ze(Math.max(0, e));
|
|
2814
|
-
}),
|
|
2815
|
-
getRowOffset: Ye
|
|
2816
|
-
}), { renderEntries: Tt } = yn({
|
|
2817
|
-
flatRows: q,
|
|
2818
|
-
virtualEnabled: Le,
|
|
2819
|
-
windowIndexes: Ve,
|
|
2820
|
-
uiTotalSize: He,
|
|
2821
|
-
getRowUiOffset: Xe,
|
|
2822
|
-
activeGroupRowIndex: vt,
|
|
2823
|
-
activeDepthFooterRowIndexes: xt,
|
|
2824
|
-
leavingDepthFooterRowIndex: St,
|
|
2825
|
-
slidingDepthFooterRowIndexes: Ct,
|
|
2826
|
-
farDepthFooterRowIndexes: wt,
|
|
2827
|
-
activeRowIndex: b(() => {
|
|
2828
|
-
if (s.value) return xe.value.getRowIndexByKey(s.value);
|
|
2829
|
-
})
|
|
2830
|
-
}), Et = b(() => !e.loading && q.value.length === 0), { rootStyle: Ot, scrollStyle: kt, tableStyle: At } = Dn({
|
|
2831
|
-
tfootBarStackHeight: ze,
|
|
2832
|
-
hasFooterValues: () => !!e.footerValues,
|
|
2833
|
-
scrollClientWidth: () => pe.value,
|
|
2834
|
-
columnCssVars: _e,
|
|
2835
|
-
totalWidth: ve,
|
|
2836
|
-
height: () => e.height,
|
|
2837
|
-
maxHeight: () => e.maxHeight
|
|
2838
|
-
}), { getColumnSortDirection: jt, getColumnSortIndex: Nt, applySortCycle: Pt, applySortExact: Ft, getHeaderAriaSort: It, getHeaderSlotScope: Lt } = Sn({
|
|
2839
|
-
sortState: A,
|
|
2840
|
-
onSortChange: (e) => {
|
|
2841
|
-
j("sortChange", e);
|
|
2842
|
-
}
|
|
2843
|
-
}), Rt = B(), zt = (e, t) => {
|
|
2844
|
-
Rt.value = t ? e : void 0;
|
|
2845
|
-
}, Bt = (e) => {
|
|
2846
|
-
let t = e.column?.title;
|
|
2847
|
-
return t ? te("table.resizeNamedColumn", { title: t }) : te("table.resizeColumn");
|
|
2848
|
-
}, Vt = (t, n) => {
|
|
2849
|
-
if (!e.columnsResizable || !t.resizable) return;
|
|
2850
|
-
let r = Math.min(t.maxWidth ?? Infinity, Math.max(t.minWidth, t.width + n * 8));
|
|
2851
|
-
r !== t.width && (h.value = {
|
|
2852
|
-
...h.value,
|
|
2853
|
-
[t.key]: r
|
|
2854
|
-
}, j("columnResizeEnd", {
|
|
2855
|
-
key: t.key,
|
|
2856
|
-
width: r
|
|
2857
|
-
}));
|
|
2858
|
-
}, Ut = B(!1), Wt = b(() => e.columns.filter((e) => e.key !== he.value && (e.hideable ?? !0))), Gt = (e) => (O.value ?? []).includes(e), qt = b(() => {
|
|
2859
|
-
let e = Wt.value.map((e) => {
|
|
2860
|
-
let t = Gt(e.key);
|
|
2861
|
-
return {
|
|
2862
|
-
column: e,
|
|
2863
|
-
hidden: t,
|
|
2864
|
-
classes: { "s-ui-table__columns-item--hidden": t }
|
|
2865
|
-
};
|
|
2866
|
-
});
|
|
2867
|
-
return [e.filter((e) => !e.hidden), e.filter((e) => e.hidden)].filter((e) => e.length > 0);
|
|
2868
|
-
}), Jt = (e) => {
|
|
2869
|
-
let t = new Set(O.value ?? []);
|
|
2870
|
-
t.has(e) ? t.delete(e) : t.add(e), O.value = [...t];
|
|
2871
|
-
}, Yt = (e) => {
|
|
2872
|
-
let t = new Set(O.value ?? []);
|
|
2873
|
-
t.add(e), O.value = [...t];
|
|
2874
|
-
}, Xt = bn({
|
|
2875
|
-
selected: c,
|
|
2876
|
-
cascade: () => e.cascadeSelection,
|
|
2877
|
-
treeIndex: be,
|
|
2878
|
-
groupRow: () => e.groupRow,
|
|
2879
|
-
disabledKey: () => e.disabledKey,
|
|
2880
|
-
isItemSelectable: () => e.isItemSelectable
|
|
2881
|
-
}), Zt = Xt.headerCheckState, Qt = (e) => Xt.isSelected(e), $t = (t) => e.cascadeSelection && Xt.getCheckState(t) === Z.INDETERMINATE, en = (e) => {
|
|
2882
|
-
Xt.toggleRow(e);
|
|
2883
|
-
}, tn = (t) => Ht(t.item, e.disabledKey), nn = ({ row: t, spacerHeight: n, rowHeight: r, stuckTop: i, stuckBottom: a, stuckBottomLeaving: o, stuckBottomSliding: c, stuckBottomCoverHeight: l, stuckBottomFar: u }, d) => [
|
|
2884
|
-
t ?? n,
|
|
2885
|
-
t?.index,
|
|
2886
|
-
t?.expanded,
|
|
2887
|
-
t?.item,
|
|
2888
|
-
t?.kind,
|
|
2889
|
-
t?.hasChildren,
|
|
2890
|
-
t?.depth,
|
|
2891
|
-
t?.parentKey,
|
|
2892
|
-
t ? Qt(t.key) : !1,
|
|
2893
|
-
t ? $t(t.key) : !1,
|
|
2894
|
-
t ? s.value === t.key : !1,
|
|
2895
|
-
t ? yr(t.key) : void 0,
|
|
2896
|
-
t ? mt.value === t.key : !1,
|
|
2897
|
-
t ? _t(t.key) : void 0,
|
|
2898
|
-
r,
|
|
2899
|
-
i,
|
|
2900
|
-
a,
|
|
2901
|
-
o,
|
|
2902
|
-
c,
|
|
2903
|
-
l,
|
|
2904
|
-
u,
|
|
2905
|
-
ge.value,
|
|
2906
|
-
dn.value,
|
|
2907
|
-
wn.value,
|
|
2908
|
-
d,
|
|
2909
|
-
e.loadingMoreChildrenKeys,
|
|
2910
|
-
e.treeIndent,
|
|
2911
|
-
e.rowClass,
|
|
2912
|
-
e.rowStyle,
|
|
2913
|
-
e.rowState,
|
|
2914
|
-
e.rowColor,
|
|
2915
|
-
e.selectable,
|
|
2916
|
-
e.cascadeSelection,
|
|
2917
|
-
e.rowsDraggable,
|
|
2918
|
-
je.value
|
|
2919
|
-
], an = (e) => {
|
|
2920
|
-
if (e !== void 0) return { "--s-ui-table-stuck-cover-height": `${e}px` };
|
|
2921
|
-
}, on = b(() => Tt.value.map((e) => {
|
|
2922
|
-
let t = e.row?.kind === Q.ROW && !et(e.row.key);
|
|
2923
|
-
return {
|
|
2924
|
-
...e,
|
|
2925
|
-
placeholder: t,
|
|
2926
|
-
memoKeys: nn(e, t)
|
|
2927
|
-
};
|
|
2928
|
-
})), cn = b(() => Object.keys(F).filter((e) => e.startsWith("cell:"))), ln = (e) => `s-ui-table-${L}-row-${e}`, un = (e) => ({
|
|
2929
|
-
...e,
|
|
2930
|
-
selected: Qt(e.key),
|
|
2931
|
-
indeterminate: !1,
|
|
2932
|
-
active: s.value === e.key,
|
|
2933
|
-
disabled: tn(e),
|
|
2934
|
-
group: e.kind === Q.GROUP,
|
|
2935
|
-
toggleExpanded: () => {
|
|
2936
|
-
Se(e.key);
|
|
2937
|
-
},
|
|
2938
|
-
toggleSelected: () => {
|
|
2939
|
-
en(e.key);
|
|
2940
|
-
}
|
|
2941
|
-
}), { depthFooterColumnKey: dn, groupColumnKey: pn, creationColumnKey: gn, loadMoreColumnKey: wn, getGroupCount: En, getGroupTotal: On, getGroupTitle: kn, getDepthIndentStyle: An, emitDepthFooterClick: jn, getDepthFooterSlotScope: Mn, isLoadMoreRowLoading: Nn, emitLoadMoreChildren: Pn, getLoadMoreSlotScope: Fn, getFooterValueText: In, getFooterToneClass: ar, getFooterSlotScope: or } = xn({
|
|
2942
|
-
columns: () => e.columns,
|
|
2943
|
-
primaryColumnKey: he,
|
|
2944
|
-
treeNodeByKey: b(() => be.value.nodeByKey),
|
|
2945
|
-
groupTotalKey: () => e.groupTotalKey,
|
|
2946
|
-
depthFooter: () => e.depthFooter,
|
|
2947
|
-
groupContentColumnKey: () => e.groupContentColumnKey,
|
|
2948
|
-
creationContentColumnKey: () => e.creationContentColumnKey,
|
|
2949
|
-
loadMoreContentColumnKey: () => e.loadMoreContentColumnKey,
|
|
2950
|
-
treeIndent: () => e.treeIndent,
|
|
2951
|
-
loadingMoreChildrenKeys: () => e.loadingMoreChildrenKeys,
|
|
2952
|
-
footerValues: () => e.footerValues,
|
|
2953
|
-
stuckDepthFooterRowIndex: bt,
|
|
2954
|
-
onDepthFooterClick: (e) => {
|
|
2955
|
-
j("depthFooterClick", e);
|
|
2956
|
-
},
|
|
2957
|
-
onLoadMoreChildren: (e) => {
|
|
2958
|
-
j("loadMoreChildren", e);
|
|
2959
|
-
}
|
|
2960
|
-
}), sr = (e) => ({
|
|
2961
|
-
...un(e),
|
|
2962
|
-
count: En(e),
|
|
2963
|
-
total: On(e)
|
|
2964
|
-
}), cr = (t, n) => {
|
|
2965
|
-
tn(t) || (s.value = t.key, e.expandOnClick && (t.hasChildren || t.kind === Q.GROUP) && Se(t.key), j("rowClick", {
|
|
2966
|
-
key: t.key,
|
|
2967
|
-
item: t.item,
|
|
2968
|
-
event: n
|
|
2969
|
-
}));
|
|
2970
|
-
}, lr = (e, t) => {
|
|
2971
|
-
j("rowContextMenu", {
|
|
2972
|
-
key: e.key,
|
|
2973
|
-
item: e.item,
|
|
2974
|
-
event: t
|
|
2975
|
-
});
|
|
2976
|
-
}, ur = b(() => {
|
|
2977
|
-
let e = /* @__PURE__ */ new Set();
|
|
2978
|
-
return ge.value.forEach((t) => {
|
|
2979
|
-
t.column && e.add(t.key);
|
|
2980
|
-
}), e;
|
|
2981
|
-
}), dr = (e, t, n) => {
|
|
2982
|
-
!ur.value.has(t) || tn(e) || j("cellClick", {
|
|
2983
|
-
key: e.key,
|
|
2984
|
-
item: e.item,
|
|
2985
|
-
columnKey: t,
|
|
2986
|
-
event: n
|
|
2987
|
-
});
|
|
2988
|
-
}, fr = (e) => e ? !tn(e) : !1, pr = b(() => {
|
|
2989
|
-
let t = K.value - 40 - ze.value;
|
|
2990
|
-
return Math.max(1, Math.floor(t / e.estimateRowSize));
|
|
2991
|
-
});
|
|
2992
|
-
f(() => ne.value, {
|
|
2993
|
-
distance: () => e.endReachedDistance,
|
|
2994
|
-
canLoadMore: () => e.canLoadMore?.() ?? !0,
|
|
2995
|
-
onEndReached: () => {
|
|
2996
|
-
j("endReached", { direction: "bottom" });
|
|
2997
|
-
}
|
|
2998
|
-
});
|
|
2999
|
-
let mr = (e, t) => {
|
|
3000
|
-
let n = xe.value.getRowIndexByKey(e);
|
|
3001
|
-
if (n !== void 0) {
|
|
3002
|
-
if (Le.value) {
|
|
3003
|
-
Ge(n, t?.align ?? "auto");
|
|
3004
|
-
return;
|
|
3005
|
-
}
|
|
3006
|
-
document.getElementById(ln(e))?.scrollIntoView({ block: t?.align === "center" ? "center" : "nearest" });
|
|
3007
|
-
}
|
|
3008
|
-
}, hr = (e) => `s-ui-table-${L}-cell-${e.section}-${e.rowKey ?? ""}-${e.columnKey}`, gr = ft({
|
|
3009
|
-
tableRootElement: de,
|
|
3010
|
-
tableElement: H,
|
|
3011
|
-
exitElement: ce,
|
|
3012
|
-
scrollElement: ne,
|
|
3013
|
-
columnDescriptors: ge,
|
|
3014
|
-
flatRows: q,
|
|
3015
|
-
snapshot: xe,
|
|
3016
|
-
groupColumnKey: pn,
|
|
3017
|
-
depthFooterColumnKey: dn,
|
|
3018
|
-
loadMoreColumnKey: wn,
|
|
3019
|
-
creationColumnKey: gn,
|
|
3020
|
-
hasCreationRow: () => !!e.creationRow,
|
|
3021
|
-
hasAggregateRow: () => !!e.footerValues,
|
|
3022
|
-
isRowNavigable: fr,
|
|
3023
|
-
pageSize: pr,
|
|
3024
|
-
buildCellDomId: hr,
|
|
3025
|
-
onBodyRowFocused: (e) => {
|
|
3026
|
-
s.value = e;
|
|
3027
|
-
},
|
|
3028
|
-
scrollToRowIndex: (e) => {
|
|
3029
|
-
let t = q.value[e];
|
|
3030
|
-
t && mr(t.key);
|
|
3031
|
-
}
|
|
3032
|
-
}), _r = `s-ui-table-${L}-cell-${$.BODY}-`, vr = `s-ui-table-${L}-cell-${$.CREATION}-`, yr = (e) => gr.focusedBodyRowKey.value === e ? gr.focusAddress.value.columnKey : void 0, br = (e) => {
|
|
3033
|
-
let t = gr.focusAddress.value;
|
|
3034
|
-
return t.section === e ? t.columnKey : void 0;
|
|
3035
|
-
}, xr = (e, t, n) => gr.getCellTabIndex(e, t, n), { handleGridFocusIn: Sr, handleGridKeydown: Cr } = _n({
|
|
3036
|
-
gridFocus: gr,
|
|
3037
|
-
columnDescriptors: ge,
|
|
3038
|
-
flatRows: q,
|
|
3039
|
-
expandColumnKey: () => e.expandColumnKey,
|
|
3040
|
-
primaryColumnKey: he,
|
|
3041
|
-
groupColumnKey: pn,
|
|
3042
|
-
selectable: () => e.selectable,
|
|
3043
|
-
openMenuColumnKey: Rt,
|
|
3044
|
-
toggleExpanded: Se,
|
|
3045
|
-
toggleRowSelected: (e) => {
|
|
3046
|
-
Xt.toggleRow(e);
|
|
3047
|
-
},
|
|
3048
|
-
applySortCycle: Pt,
|
|
3049
|
-
setColumnMenuOpen: zt,
|
|
3050
|
-
resizeColumnByKeyboard: Vt,
|
|
3051
|
-
onDepthFooterActivate: jn,
|
|
3052
|
-
onLoadMoreActivate: Pn,
|
|
3053
|
-
onRowActivate: (e, t) => {
|
|
3054
|
-
j("rowClick", {
|
|
3055
|
-
key: e.key,
|
|
3056
|
-
item: e.item,
|
|
3057
|
-
event: t
|
|
3058
|
-
});
|
|
3059
|
-
}
|
|
3060
|
-
});
|
|
3061
|
-
return t({
|
|
3062
|
-
focusNavigation: async () => {
|
|
3063
|
-
gr.focusAddressNow(gr.focusAddress.value), await ee();
|
|
3064
|
-
},
|
|
3065
|
-
scrollToRow: mr,
|
|
3066
|
-
expandAll: Ce,
|
|
3067
|
-
collapseAll: we,
|
|
3068
|
-
clearSelection: () => {
|
|
3069
|
-
Xt.clearSelection();
|
|
3070
|
-
},
|
|
3071
|
-
getScrollElement: () => ne.value ?? void 0
|
|
3072
|
-
}), (t, n) => (I(), C("div", {
|
|
3073
|
-
ref_key: "tableRootRef",
|
|
3074
|
-
ref: de,
|
|
3075
|
-
class: N(["s-ui-table", Re.value]),
|
|
3076
|
-
style: P(U(Ot))
|
|
3077
|
-
}, [
|
|
3078
|
-
w("div", {
|
|
3079
|
-
ref_key: "scrollElementRef",
|
|
3080
|
-
ref: ne,
|
|
3081
|
-
class: "s-ui-table__scroll",
|
|
3082
|
-
style: P(U(kt))
|
|
3083
|
-
}, [w("table", {
|
|
3084
|
-
class: "s-ui-table__table",
|
|
3085
|
-
style: P(U(At)),
|
|
3086
|
-
role: Me.value,
|
|
3087
|
-
"aria-rowcount": Ie.value,
|
|
3088
|
-
"aria-colcount": U(ye),
|
|
3089
|
-
"aria-busy": e.loading || e.loadingMore || void 0,
|
|
3090
|
-
ref_key: "tableElementRef",
|
|
3091
|
-
ref: H,
|
|
3092
|
-
tabindex: "-1",
|
|
3093
|
-
onKeydown: n[5] ||= (...e) => U(Cr) && U(Cr)(...e),
|
|
3094
|
-
onFocusin: n[6] ||= (...e) => U(Sr) && U(Sr)(...e)
|
|
3095
|
-
}, [
|
|
3096
|
-
w("colgroup", null, [
|
|
3097
|
-
(I(!0), C(y, null, R(U(Te), (e) => (I(), C("col", {
|
|
3098
|
-
key: e.key,
|
|
3099
|
-
style: P({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
|
|
3100
|
-
}, null, 4))), 128)),
|
|
3101
|
-
n[7] ||= w("col", { class: "s-ui-table__filler-col" }, null, -1),
|
|
3102
|
-
(I(!0), C(y, null, R(U(Ee), (e) => (I(), C("col", {
|
|
3103
|
-
key: e.key,
|
|
3104
|
-
style: P({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
|
|
3105
|
-
}, null, 4))), 128))
|
|
3106
|
-
]),
|
|
3107
|
-
w("thead", zn, [w("tr", Bn, [(I(!0), C(y, null, R(U(De), ({ key: s, descriptor: c }) => (I(), C(y, { key: s }, [c ? (I(), C("th", {
|
|
3108
|
-
key: 1,
|
|
3109
|
-
id: hr({
|
|
3110
|
-
section: U($).HEADER,
|
|
3111
|
-
columnKey: c.key
|
|
3112
|
-
}),
|
|
3113
|
-
ref_for: !0,
|
|
3114
|
-
ref: (e) => dt(e, c.key),
|
|
3115
|
-
class: N(["s-ui-table__header-cell", [U(ke)(c), { "s-ui-table__header-cell--dragging": U(lt) === c.key }]]),
|
|
3116
|
-
style: P(U(Oe)(c)),
|
|
3117
|
-
"data-column-key": c.key,
|
|
3118
|
-
"data-section": U($).HEADER,
|
|
3119
|
-
"aria-colindex": c.colIndex,
|
|
3120
|
-
"aria-sort": U(It)(c),
|
|
3121
|
-
tabindex: xr(U($).HEADER, void 0, c.key),
|
|
3122
|
-
scope: "col"
|
|
3123
|
-
}, [c.column ? (I(), x(Dt, {
|
|
3124
|
-
key: 0,
|
|
3125
|
-
descriptor: c,
|
|
3126
|
-
"sort-direction": U(jt)(c.key),
|
|
3127
|
-
"sort-index": U(Nt)(c.key),
|
|
3128
|
-
"menu-enabled": e.columnMenu,
|
|
3129
|
-
"menu-open": Rt.value === c.key,
|
|
3130
|
-
"onUpdate:menuOpen": (e) => zt(c.key, e),
|
|
3131
|
-
onSortToggle: (e) => U(Pt)(c.key, e),
|
|
3132
|
-
onSortSet: (e) => U(Ft)(c.key, e),
|
|
3133
|
-
onHide: (e) => Yt(c.key)
|
|
3134
|
-
}, T({ _: 2 }, [U(F)[`header:${c.key}`] ? {
|
|
3135
|
-
name: "default",
|
|
3136
|
-
fn: G(() => [z(t.$slots, `header:${c.key}`, M({ ref_for: !0 }, U(Lt)(c)))]),
|
|
3137
|
-
key: "0"
|
|
3138
|
-
} : void 0, U(F)[`header-menu:${c.key}`] ? {
|
|
3139
|
-
name: "menu",
|
|
3140
|
-
fn: G(() => [z(t.$slots, `header-menu:${c.key}`, M({ ref_for: !0 }, U(Lt)(c)))]),
|
|
3141
|
-
key: "1"
|
|
3142
|
-
} : void 0]), 1032, [
|
|
3143
|
-
"descriptor",
|
|
3144
|
-
"sort-direction",
|
|
3145
|
-
"sort-index",
|
|
3146
|
-
"menu-enabled",
|
|
3147
|
-
"menu-open",
|
|
3148
|
-
"onUpdate:menuOpen",
|
|
3149
|
-
"onSortToggle",
|
|
3150
|
-
"onSortSet",
|
|
3151
|
-
"onHide"
|
|
3152
|
-
])) : c.service === U(qe).CHECKBOX ? (I(), x(We, {
|
|
3153
|
-
key: 1,
|
|
3154
|
-
class: N(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": U(Zt) !== U(Z).UNCHECKED }]),
|
|
3155
|
-
"model-value": U(Zt) === U(Z).CHECKED,
|
|
3156
|
-
indeterminate: U(Zt) === U(Z).INDETERMINATE,
|
|
3157
|
-
"screen-reader-label": U(Zt) === U(Z).CHECKED ? U(te)("table.deselectAll") : U(te)("table.selectAll"),
|
|
3158
|
-
"onUpdate:modelValue": n[0] ||= (e) => U(Xt).toggleSelectAll()
|
|
3159
|
-
}, null, 8, [
|
|
3160
|
-
"class",
|
|
3161
|
-
"model-value",
|
|
3162
|
-
"indeterminate",
|
|
3163
|
-
"screen-reader-label"
|
|
3164
|
-
])) : c.service === U(qe).COLUMNS_MANAGER ? (I(), C("div", Un, [D(U(u), {
|
|
3165
|
-
modelValue: Ut.value,
|
|
3166
|
-
"onUpdate:modelValue": n[1] ||= (e) => Ut.value = e,
|
|
3167
|
-
placement: U(l).BOTTOM_END,
|
|
3168
|
-
shift: "",
|
|
3169
|
-
"fit-viewport": ""
|
|
3170
|
-
}, {
|
|
3171
|
-
trigger: G(({ toggle: e }) => [D(U(o), {
|
|
3172
|
-
class: "s-ui-table__columns-manager-button",
|
|
3173
|
-
appearance: U(i).BARE,
|
|
3174
|
-
variant: U(r).MAIN,
|
|
3175
|
-
size: U(a).SMALL,
|
|
3176
|
-
icon: "tablePlus",
|
|
3177
|
-
"aria-label": U(te)("table.manageColumns"),
|
|
3178
|
-
tabindex: "-1",
|
|
3179
|
-
onClick: (t) => e()
|
|
3180
|
-
}, null, 8, [
|
|
3181
|
-
"appearance",
|
|
3182
|
-
"variant",
|
|
3183
|
-
"size",
|
|
3184
|
-
"aria-label",
|
|
3185
|
-
"onClick"
|
|
3186
|
-
])]),
|
|
3187
|
-
content: G(() => [D(U(d), {
|
|
3188
|
-
class: "s-ui-table__columns-menu",
|
|
3189
|
-
width: 300
|
|
3190
|
-
}, {
|
|
3191
|
-
default: G(() => [z(t.$slots, "columns-menu", {
|
|
3192
|
-
columns: Wt.value,
|
|
3193
|
-
isColumnHidden: Gt,
|
|
3194
|
-
toggleColumn: Jt
|
|
3195
|
-
}, () => [(I(!0), C(y, null, R(qt.value, (e, t) => (I(), C(y, { key: t }, [t > 0 ? (I(), x(U(ue), {
|
|
3196
|
-
key: 0,
|
|
3197
|
-
class: "s-ui-table__columns-separator"
|
|
3198
|
-
})) : S("", !0), (I(!0), C(y, null, R(e, (e) => (I(), x(U(v), {
|
|
3199
|
-
key: e.column.key,
|
|
3200
|
-
class: N(["s-ui-table__columns-item", e.classes]),
|
|
3201
|
-
size: U(_).SMALL,
|
|
3202
|
-
"label-placement": U(g).LEFT,
|
|
3203
|
-
"model-value": !e.hidden,
|
|
3204
|
-
"onUpdate:modelValue": (t) => Jt(e.column.key)
|
|
3205
|
-
}, {
|
|
3206
|
-
default: G(() => [w("span", Wn, [e.column.icon ? (I(), x(U(le), {
|
|
3207
|
-
key: 0,
|
|
3208
|
-
name: e.column.icon,
|
|
3209
|
-
size: 16
|
|
3210
|
-
}, null, 8, ["name"])) : S("", !0), w("span", Gn, V(e.column.title ?? e.column.key), 1)])]),
|
|
3211
|
-
_: 2
|
|
3212
|
-
}, 1032, [
|
|
3213
|
-
"class",
|
|
3214
|
-
"size",
|
|
3215
|
-
"label-placement",
|
|
3216
|
-
"model-value",
|
|
3217
|
-
"onUpdate:modelValue"
|
|
3218
|
-
]))), 128))], 64))), 128))])]),
|
|
3219
|
-
_: 3
|
|
3220
|
-
})]),
|
|
3221
|
-
_: 3
|
|
3222
|
-
}, 8, ["modelValue", "placement"])])) : S("", !0), c.resizable ? (I(), C("span", {
|
|
3223
|
-
key: 3,
|
|
3224
|
-
class: N(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": U(nt) === c.key }]),
|
|
3225
|
-
role: "separator",
|
|
3226
|
-
"aria-orientation": "vertical",
|
|
3227
|
-
"aria-label": Bt(c),
|
|
3228
|
-
"aria-valuenow": c.width,
|
|
3229
|
-
"aria-valuemin": c.minWidth,
|
|
3230
|
-
"aria-valuemax": c.maxWidth,
|
|
3231
|
-
"aria-valuetext": U(te)("table.columnWidth", { width: String(c.width) }),
|
|
3232
|
-
tabindex: "-1",
|
|
3233
|
-
onPointerdown: (e) => U(rt)(e, c.key),
|
|
3234
|
-
onKeydown: (e) => U(it)(e, c.key),
|
|
3235
|
-
onDblclick: (e) => U(at)(c.key),
|
|
3236
|
-
onClick: n[2] ||= se(() => {}, ["stop"])
|
|
3237
|
-
}, null, 42, Kn)) : S("", !0)], 14, Hn)) : (I(), C("th", Vn))], 64))), 128))])]),
|
|
3238
|
-
w("tbody", qn, [
|
|
3239
|
-
Et.value ? (I(), C("tr", Jn, [w("td", {
|
|
3240
|
-
class: "s-ui-table__empty-cell",
|
|
3241
|
-
colspan: Ae.value
|
|
3242
|
-
}, [w("div", Xn, [z(t.$slots, "empty", {}, () => [w("span", Zn, V(U(te)("table.empty")), 1)])])], 8, Yn)])) : S("", !0),
|
|
3243
|
-
e.loading ? (I(!0), C(y, { key: 1 }, R(e.skeletonRowCount, (e) => (I(), x(sn, {
|
|
3244
|
-
key: `skeleton-${e}`,
|
|
3245
|
-
"leading-plans": U(J),
|
|
3246
|
-
"trailing-plans": U(Y)
|
|
3247
|
-
}, T({ _: 2 }, [U(F)["skeleton-row"] ? {
|
|
3248
|
-
name: "default",
|
|
3249
|
-
fn: G((e) => [z(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
|
|
3250
|
-
key: "0"
|
|
3251
|
-
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (I(!0), C(y, { key: 2 }, R(on.value, ({ row: n, renderKey: c, spacer: l, spacerHeight: u, rowHeight: d, stuckTop: f, stuckBottom: p, stuckBottomLeaving: m, stuckBottomSliding: h, stuckBottomCoverHeight: g, stuckBottomFar: _, placeholder: v, memoKeys: b }, O, A, ee) => {
|
|
3252
|
-
let L = b;
|
|
3253
|
-
if (ee && ee.el && ee.key === c && k(ee, L)) return ee;
|
|
3254
|
-
let B = (I(), C(y, { key: c }, [l ? (I(), C("tr", Qn, [w("td", {
|
|
3255
|
-
class: "s-ui-table__spacer-cell",
|
|
3256
|
-
colspan: Ae.value,
|
|
3257
|
-
style: P({ height: `${u}px` })
|
|
3258
|
-
}, null, 12, $n)])) : n && n.kind === U(Q).GROUP ? (I(), x(yt, {
|
|
3259
|
-
key: 1,
|
|
3260
|
-
id: ln(n.key),
|
|
3261
|
-
stuck: f,
|
|
3262
|
-
row: n,
|
|
3263
|
-
"dnd-ref": e.rowsDraggable ? gt : void 0,
|
|
3264
|
-
dragging: U(mt) === n.key,
|
|
3265
|
-
"drop-position": _t(n.key),
|
|
3266
|
-
"row-index": n.index,
|
|
3267
|
-
"leading-plans": U(J),
|
|
3268
|
-
"trailing-plans": U(Y),
|
|
3269
|
-
"group-column-key": U(pn),
|
|
3270
|
-
"tree-indent": e.treeIndent,
|
|
3271
|
-
count: U(En)(n),
|
|
3272
|
-
total: U(On)(n),
|
|
3273
|
-
title: U(kn)(n),
|
|
3274
|
-
"extra-row-style": e.rowStyle?.(n.item, n),
|
|
3275
|
-
expanded: n.expanded,
|
|
3276
|
-
active: s.value === n.key,
|
|
3277
|
-
"cell-id-prefix": _r,
|
|
3278
|
-
"focus-column-key": yr(n.key),
|
|
3279
|
-
treegrid: je.value,
|
|
3280
|
-
onToggle: (e) => U(Se)(n.key),
|
|
3281
|
-
onRowClick: (e) => cr(n, e),
|
|
3282
|
-
onMenuOpen: (e) => j("groupMenuOpen", {
|
|
3283
|
-
key: n.key,
|
|
3284
|
-
item: n.item
|
|
3285
|
-
})
|
|
3286
|
-
}, T({ _: 2 }, [
|
|
3287
|
-
U(F)["group-menu"] ? {
|
|
3288
|
-
name: "menu",
|
|
3289
|
-
fn: G(() => [z(t.$slots, "group-menu", M({ ref_for: !0 }, sr(n)))]),
|
|
3290
|
-
key: "0"
|
|
3291
|
-
} : void 0,
|
|
3292
|
-
U(F)["group-row"] ? {
|
|
3293
|
-
name: "row",
|
|
3294
|
-
fn: G(() => [z(t.$slots, "group-row", M({ ref_for: !0 }, sr(n)))]),
|
|
3295
|
-
key: "1"
|
|
3296
|
-
} : void 0,
|
|
3297
|
-
U(F)["group-cell"] ? {
|
|
3298
|
-
name: "group-cell",
|
|
3299
|
-
fn: G((e) => [z(t.$slots, "group-cell", M({ ref_for: !0 }, {
|
|
3300
|
-
...sr(n),
|
|
3301
|
-
...e
|
|
3302
|
-
}))]),
|
|
3303
|
-
key: "2"
|
|
3304
|
-
} : void 0,
|
|
3305
|
-
U(F)["group-title"] ? {
|
|
3306
|
-
name: "title",
|
|
3307
|
-
fn: G(() => [z(t.$slots, "group-title", M({ ref_for: !0 }, sr(n)))]),
|
|
3308
|
-
key: "3"
|
|
3309
|
-
} : void 0,
|
|
3310
|
-
U(F)["group-actions"] ? {
|
|
3311
|
-
name: "actions",
|
|
3312
|
-
fn: G(() => [z(t.$slots, "group-actions", M({ ref_for: !0 }, sr(n)))]),
|
|
3313
|
-
key: "4"
|
|
3314
|
-
} : void 0
|
|
3315
|
-
]), 1032, [
|
|
3316
|
-
"id",
|
|
3317
|
-
"stuck",
|
|
3318
|
-
"row",
|
|
3319
|
-
"dnd-ref",
|
|
3320
|
-
"dragging",
|
|
3321
|
-
"drop-position",
|
|
3322
|
-
"row-index",
|
|
3323
|
-
"leading-plans",
|
|
3324
|
-
"trailing-plans",
|
|
3325
|
-
"group-column-key",
|
|
3326
|
-
"tree-indent",
|
|
3327
|
-
"count",
|
|
3328
|
-
"total",
|
|
3329
|
-
"title",
|
|
3330
|
-
"extra-row-style",
|
|
3331
|
-
"expanded",
|
|
3332
|
-
"active",
|
|
3333
|
-
"focus-column-key",
|
|
3334
|
-
"treegrid",
|
|
3335
|
-
"onToggle",
|
|
3336
|
-
"onRowClick",
|
|
3337
|
-
"onMenuOpen"
|
|
3338
|
-
])) : n && n.kind === U(Q).DEPTH_FOOTER ? (I(), x(Ke, {
|
|
3339
|
-
key: 2,
|
|
3340
|
-
class: N(["s-ui-table__depth-footer-row", {
|
|
3341
|
-
"s-ui-table__depth-footer-row--stuck": p,
|
|
3342
|
-
"s-ui-table__depth-footer-row--stuck-leaving": m,
|
|
3343
|
-
"s-ui-table__depth-footer-row--stuck-sliding": h,
|
|
3344
|
-
"s-ui-table__depth-footer-row--stuck-covered": g !== void 0,
|
|
3345
|
-
"s-ui-table__depth-footer-row--stuck-covered-far": _
|
|
3346
|
-
}]),
|
|
3347
|
-
style: P(an(g)),
|
|
3348
|
-
"data-index": n.index,
|
|
3349
|
-
"aria-rowindex": n.index + 2,
|
|
3350
|
-
cells: U(X),
|
|
3351
|
-
"content-column-key": U(dn),
|
|
3352
|
-
"cell-class": "s-ui-table__depth-footer-cell",
|
|
3353
|
-
"content-class": "s-ui-table__depth-footer-content",
|
|
3354
|
-
"content-style": U(An)(n.depth),
|
|
3355
|
-
section: U($).BODY,
|
|
3356
|
-
"row-key": n.key,
|
|
3357
|
-
"cell-id-prefix": _r,
|
|
3358
|
-
"focus-column-key": yr(n.key)
|
|
3359
|
-
}, {
|
|
3360
|
-
default: G(() => [z(t.$slots, "depth-footer", M({ ref_for: !0 }, U(Mn)(n)))]),
|
|
3361
|
-
_: 2
|
|
3362
|
-
}, 1032, [
|
|
3363
|
-
"class",
|
|
3364
|
-
"style",
|
|
3365
|
-
"data-index",
|
|
3366
|
-
"aria-rowindex",
|
|
3367
|
-
"cells",
|
|
3368
|
-
"content-column-key",
|
|
3369
|
-
"content-style",
|
|
3370
|
-
"section",
|
|
3371
|
-
"row-key",
|
|
3372
|
-
"focus-column-key"
|
|
3373
|
-
])) : n && n.kind === U(Q).LOAD_MORE ? (I(), x(Ke, {
|
|
3374
|
-
key: 3,
|
|
3375
|
-
class: "s-ui-table__load-more-row",
|
|
3376
|
-
"data-index": n.index,
|
|
3377
|
-
"aria-rowindex": n.index + 2,
|
|
3378
|
-
cells: U(X),
|
|
3379
|
-
"content-column-key": U(wn),
|
|
3380
|
-
"content-class": "s-ui-table__load-more-content",
|
|
3381
|
-
"content-style": U(An)(n.depth),
|
|
3382
|
-
section: U($).BODY,
|
|
3383
|
-
"row-key": n.key,
|
|
3384
|
-
"cell-id-prefix": _r,
|
|
3385
|
-
"focus-column-key": yr(n.key)
|
|
3386
|
-
}, {
|
|
3387
|
-
default: G(() => [z(t.$slots, "load-more", M({ ref_for: !0 }, U(Fn)(n)), () => [D(U(o), {
|
|
3388
|
-
appearance: U(i).BARE,
|
|
3389
|
-
variant: U(r).NEUTRAL,
|
|
3390
|
-
size: U(a).SMALL,
|
|
3391
|
-
loading: U(Nn)(n),
|
|
3392
|
-
tabindex: "-1",
|
|
3393
|
-
onClick: (e) => U(Pn)(n)
|
|
3394
|
-
}, {
|
|
3395
|
-
default: G(() => [E(V(U(te)("table.loadMore")), 1)]),
|
|
3396
|
-
_: 1
|
|
3397
|
-
}, 8, [
|
|
3398
|
-
"appearance",
|
|
3399
|
-
"variant",
|
|
3400
|
-
"size",
|
|
3401
|
-
"loading",
|
|
3402
|
-
"onClick"
|
|
3403
|
-
])])]),
|
|
3404
|
-
_: 2
|
|
3405
|
-
}, 1032, [
|
|
3406
|
-
"data-index",
|
|
3407
|
-
"aria-rowindex",
|
|
3408
|
-
"cells",
|
|
3409
|
-
"content-column-key",
|
|
3410
|
-
"content-style",
|
|
3411
|
-
"section",
|
|
3412
|
-
"row-key",
|
|
3413
|
-
"focus-column-key"
|
|
3414
|
-
])) : n && v ? (I(), x(Mt, {
|
|
3415
|
-
key: 4,
|
|
3416
|
-
"row-index": n.index,
|
|
3417
|
-
"row-key": n.key,
|
|
3418
|
-
cells: U(X),
|
|
3419
|
-
"row-height": d
|
|
3420
|
-
}, null, 8, [
|
|
3421
|
-
"row-index",
|
|
3422
|
-
"row-key",
|
|
3423
|
-
"cells",
|
|
3424
|
-
"row-height"
|
|
3425
|
-
])) : n ? (I(), x(rn, {
|
|
3426
|
-
key: 5,
|
|
3427
|
-
row: n,
|
|
3428
|
-
"row-index": n.index,
|
|
3429
|
-
"row-expanded": n.expanded,
|
|
3430
|
-
"leading-plans": U(J),
|
|
3431
|
-
"trailing-plans": U(Y),
|
|
3432
|
-
"dnd-ref": e.rowsDraggable ? gt : void 0,
|
|
3433
|
-
dragging: U(mt) === n.key,
|
|
3434
|
-
"drop-position": _t(n.key),
|
|
3435
|
-
"placeholder-height": d,
|
|
3436
|
-
"dom-id": ln(n.key),
|
|
3437
|
-
selected: Qt(n.key),
|
|
3438
|
-
indeterminate: $t(n.key),
|
|
3439
|
-
"row-selectable": e.selectable && U(Xt).isNodeSelectable(n.key),
|
|
3440
|
-
active: s.value === n.key,
|
|
3441
|
-
disabled: tn(n),
|
|
3442
|
-
"tree-indent": e.treeIndent,
|
|
3443
|
-
"row-state": e.rowState?.(n.item),
|
|
3444
|
-
"row-color": e.rowColor?.(n.item, n),
|
|
3445
|
-
"extra-row-class": e.rowClass?.(n.item, n),
|
|
3446
|
-
"extra-row-style": e.rowStyle?.(n.item, n),
|
|
3447
|
-
"cell-id-prefix": _r,
|
|
3448
|
-
"focus-column-key": yr(n.key),
|
|
3449
|
-
treegrid: je.value,
|
|
3450
|
-
onRowClick: (e) => cr(n, e),
|
|
3451
|
-
onRowContextMenu: (e) => lr(n, e),
|
|
3452
|
-
onCellClick: (e, t) => dr(n, e, t),
|
|
3453
|
-
onToggleExpand: (e) => U(Se)(n.key),
|
|
3454
|
-
onToggleSelected: (e) => en(n.key)
|
|
3455
|
-
}, T({ _: 2 }, [
|
|
3456
|
-
R(cn.value, (e) => ({
|
|
3457
|
-
name: e,
|
|
3458
|
-
fn: G((n) => [z(t.$slots, e, M({ ref_for: !0 }, n))])
|
|
3459
|
-
})),
|
|
3460
|
-
U(F).chevron ? {
|
|
3461
|
-
name: "chevron",
|
|
3462
|
-
fn: G((e) => [z(t.$slots, "chevron", M({ ref_for: !0 }, e))]),
|
|
3463
|
-
key: "0"
|
|
3464
|
-
} : void 0,
|
|
3465
|
-
U(F)["cell-actions"] ? {
|
|
3466
|
-
name: "cell-actions",
|
|
3467
|
-
fn: G((e) => [z(t.$slots, "cell-actions", M({ ref_for: !0 }, e))]),
|
|
3468
|
-
key: "1"
|
|
3469
|
-
} : void 0,
|
|
3470
|
-
U(F).indicator ? {
|
|
3471
|
-
name: "indicator",
|
|
3472
|
-
fn: G((e) => [z(t.$slots, "indicator", M({ ref_for: !0 }, e))]),
|
|
3473
|
-
key: "2"
|
|
3474
|
-
} : void 0,
|
|
3475
|
-
U(F).checkbox ? {
|
|
3476
|
-
name: "checkbox",
|
|
3477
|
-
fn: G((e) => [z(t.$slots, "checkbox", M({ ref_for: !0 }, e))]),
|
|
3478
|
-
key: "3"
|
|
3479
|
-
} : void 0,
|
|
3480
|
-
U(F)["right-edge"] ? {
|
|
3481
|
-
name: "right-edge",
|
|
3482
|
-
fn: G((e) => [z(t.$slots, "right-edge", M({ ref_for: !0 }, e))]),
|
|
3483
|
-
key: "4"
|
|
3484
|
-
} : void 0
|
|
3485
|
-
]), 1032, /* @__PURE__ */ "row.row-index.row-expanded.leading-plans.trailing-plans.dnd-ref.dragging.drop-position.placeholder-height.dom-id.selected.indeterminate.row-selectable.active.disabled.tree-indent.row-state.row-color.extra-row-class.extra-row-style.focus-column-key.treegrid.onRowClick.onRowContextMenu.onCellClick.onToggleExpand.onToggleSelected".split("."))) : S("", !0)], 64));
|
|
3486
|
-
return B.memo = L, B;
|
|
3487
|
-
}, n, 3), 128)),
|
|
3488
|
-
e.loadingMore && !e.loading ? (I(!0), C(y, { key: 3 }, R(Math.min(3, e.skeletonRowCount), (e) => (I(), x(sn, {
|
|
3489
|
-
key: `skeleton-more-${e}`,
|
|
3490
|
-
"leading-plans": U(J),
|
|
3491
|
-
"trailing-plans": U(Y)
|
|
3492
|
-
}, T({ _: 2 }, [U(F)["skeleton-row"] ? {
|
|
3493
|
-
name: "default",
|
|
3494
|
-
fn: G((e) => [z(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
|
|
3495
|
-
key: "0"
|
|
3496
|
-
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : S("", !0)
|
|
3497
|
-
]),
|
|
3498
|
-
e.creationRow || e.footerValues ? (I(), C("tfoot", er, [e.creationRow ? (I(), x(Ke, {
|
|
3499
|
-
key: 0,
|
|
3500
|
-
class: "s-ui-table__create-row",
|
|
3501
|
-
"aria-rowindex": U(q).length + 2,
|
|
3502
|
-
cells: U(X),
|
|
3503
|
-
"content-column-key": U(gn),
|
|
3504
|
-
"cell-class": "s-ui-table__create-cell",
|
|
3505
|
-
"content-class": "s-ui-table__create-content",
|
|
3506
|
-
section: U($).CREATION,
|
|
3507
|
-
"cell-id-prefix": vr,
|
|
3508
|
-
"focus-column-key": br(U($).CREATION)
|
|
3509
|
-
}, {
|
|
3510
|
-
default: G(() => [z(t.$slots, "creation-row")]),
|
|
3511
|
-
_: 3
|
|
3512
|
-
}, 8, [
|
|
3513
|
-
"aria-rowindex",
|
|
3514
|
-
"cells",
|
|
3515
|
-
"content-column-key",
|
|
3516
|
-
"section",
|
|
3517
|
-
"focus-column-key"
|
|
3518
|
-
])) : S("", !0), e.footerValues ? (I(), C("tr", {
|
|
3519
|
-
key: 1,
|
|
3520
|
-
class: "s-ui-table__aggregate-row",
|
|
3521
|
-
"aria-rowindex": U(q).length + 2 + +!!e.creationRow
|
|
3522
|
-
}, [(I(!0), C(y, null, R(U(X), ({ key: e, cellPlan: n }) => (I(), C(y, { key: e }, [n ? (I(), C("td", {
|
|
3523
|
-
key: 1,
|
|
3524
|
-
id: hr({
|
|
3525
|
-
section: U($).AGGREGATE,
|
|
3526
|
-
columnKey: n.descriptor.key
|
|
3527
|
-
}),
|
|
3528
|
-
class: N(["s-ui-table__aggregate-cell", [n.cellClass, U(ar)(n.descriptor.key)]]),
|
|
3529
|
-
style: P(n.style),
|
|
3530
|
-
"aria-colindex": n.descriptor.colIndex,
|
|
3531
|
-
"data-column-key": n.descriptor.key,
|
|
3532
|
-
"data-section": U($).AGGREGATE,
|
|
3533
|
-
tabindex: xr(U($).AGGREGATE, void 0, n.descriptor.key)
|
|
3534
|
-
}, [n.descriptor.column ? (I(), C(y, { key: 0 }, [U(F)[`footer:${n.descriptor.key}`] ? z(t.$slots, `footer:${n.descriptor.key}`, M({
|
|
3535
|
-
key: 0,
|
|
3536
|
-
ref_for: !0
|
|
3537
|
-
}, U(or)(n.descriptor.key))) : (I(), C("span", ir, V(U(In)(n.descriptor.key)), 1))], 64)) : S("", !0)], 14, rr)) : (I(), C("td", nr))], 64))), 128))], 8, tr)) : S("", !0)])) : S("", !0)
|
|
3538
|
-
], 44, Rn)], 4),
|
|
3539
|
-
w("span", {
|
|
3540
|
-
ref_key: "gridExitRef",
|
|
3541
|
-
ref: ce,
|
|
3542
|
-
class: "s-ui-table__grid-exit",
|
|
3543
|
-
tabindex: "-1",
|
|
3544
|
-
"aria-hidden": "true"
|
|
3545
|
-
}, null, 512),
|
|
3546
|
-
U(ut) ? (I(), C("div", {
|
|
3547
|
-
key: 0,
|
|
3548
|
-
class: "s-ui-table__column-drop-line",
|
|
3549
|
-
style: P(U(ut)),
|
|
3550
|
-
"aria-hidden": "true"
|
|
3551
|
-
}, null, 4)) : S("", !0)
|
|
3552
|
-
], 6));
|
|
3553
|
-
}
|
|
3554
|
-
});
|
|
3555
|
-
//#endregion
|
|
3556
|
-
export { J as a, je as c, Ae as d, Pe as f, Y as i, Ne as l, Me as n, Fe as o, X as p, Z as r, Ie as s, ar as t, Q as u };
|