@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +77 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +60 -60
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +84 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import $e from "./
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as y, createBlock as I, isRef as pe, createSlots as ve, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as x, renderList as C, createVNode as k, createTextVNode as P, toDisplayString as O, mergeProps as L } from "vue";
|
|
2
|
+
import V from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
+
import Q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
|
+
import Re from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
import "./DataGrid.vue.js";
|
|
8
|
+
import "./DataGridMenu.vue.js";
|
|
9
|
+
import "./DataGridRowsCounter.vue.js";
|
|
10
|
+
import $e from "./DataGridHeader.vue.js";
|
|
11
|
+
import "./DataGridContainer.vue.js";
|
|
12
|
+
import "./MultipleDataGrid.vue.js";
|
|
13
|
+
import { TableTestIdModifiers as R } from "../../../testids/index.js";
|
|
14
|
+
import { tableCommon as Te } from "../common/Table.common.js";
|
|
15
|
+
import He from "./SortIcon.vue.js";
|
|
16
|
+
import we from "./HelpIcon.vue.js";
|
|
17
|
+
import Ee from "./ExpandRowToggle.vue.js";
|
|
18
|
+
import { DEFAULT_ROW_HEIGHT as Be, CHECKBOX_COLUMN_ID as Ae, DATA_GRID_HEADER_HEIGHT as X, HEADER_ROW_HEIGHT as j } from "../common/consts.js";
|
|
19
|
+
import { useElementSize as Ie } from "@vueuse/core";
|
|
20
|
+
const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
16
21
|
key: 1,
|
|
17
22
|
class: "expand-toggle-cell"
|
|
18
|
-
},
|
|
23
|
+
}, De = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
|
|
19
24
|
key: 0,
|
|
20
25
|
class: "totals-row"
|
|
21
|
-
},
|
|
26
|
+
}, Oe = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
|
|
22
27
|
key: 2,
|
|
23
28
|
class: "expanded-row"
|
|
24
|
-
},
|
|
29
|
+
}, Ke = {
|
|
25
30
|
key: 3,
|
|
26
31
|
class: "floating-row"
|
|
27
|
-
},
|
|
32
|
+
}, Ue = {
|
|
28
33
|
key: 0,
|
|
29
34
|
class: "table-footer"
|
|
30
|
-
},
|
|
35
|
+
}, ct = /* @__PURE__ */ ke({
|
|
31
36
|
__name: "DataGrid",
|
|
32
37
|
props: {
|
|
33
38
|
title: { default: "" },
|
|
@@ -36,9 +41,9 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
36
41
|
sections: { default: null },
|
|
37
42
|
sort: { default: null },
|
|
38
43
|
selection: { default: null },
|
|
39
|
-
getRowId: { type: Function, default: (
|
|
40
|
-
getRowKey: { type: Function, default: (
|
|
41
|
-
selectedMatcher: { type: Function, default: (
|
|
44
|
+
getRowId: { type: Function, default: (l, m) => m },
|
|
45
|
+
getRowKey: { type: Function, default: (l, m) => m },
|
|
46
|
+
selectedMatcher: { type: Function, default: (l, m) => l === m },
|
|
42
47
|
isSticky: { type: Boolean, default: !0 },
|
|
43
48
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
49
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -48,11 +53,12 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
48
53
|
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
49
54
|
showTotalsRow: { type: Boolean },
|
|
50
55
|
infiniteScrollThreshold: { default: 100 },
|
|
51
|
-
rowHeight: { type: [Number, Function], default:
|
|
56
|
+
rowHeight: { type: [Number, Function], default: Be },
|
|
52
57
|
loadingRowCount: { default: 3 },
|
|
53
58
|
defaultScrollPosition: { default: null },
|
|
54
59
|
helpTooltipVariant: { default: "icon" },
|
|
55
60
|
testId: { default: "" },
|
|
61
|
+
useAvailableHeight: { type: Boolean, default: !1 },
|
|
56
62
|
search: { default: null },
|
|
57
63
|
showSearch: { type: Boolean, default: !1 },
|
|
58
64
|
searchPlaceholder: { default: "Search" },
|
|
@@ -64,207 +70,201 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
64
70
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
65
71
|
},
|
|
66
72
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
67
|
-
setup(
|
|
68
|
-
const a =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
+
setup(l, { expose: m, emit: f }) {
|
|
74
|
+
const a = l;
|
|
75
|
+
me((s) => ({
|
|
76
|
+
"423d7fe6": l.zIndexBase,
|
|
77
|
+
"38b7f4c1": t(le),
|
|
78
|
+
"9b4c490c": t(G),
|
|
79
|
+
"243617e8": t(fe)
|
|
73
80
|
}));
|
|
74
|
-
const
|
|
75
|
-
list:
|
|
76
|
-
containerProps:
|
|
77
|
-
wrapperProps:
|
|
78
|
-
activeRow:
|
|
79
|
-
gridColumnTemplate:
|
|
80
|
-
toggleSortOrder:
|
|
81
|
+
const p = be(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
82
|
+
list: $,
|
|
83
|
+
containerProps: z,
|
|
84
|
+
wrapperProps: J,
|
|
85
|
+
activeRow: T,
|
|
86
|
+
gridColumnTemplate: G,
|
|
87
|
+
toggleSortOrder: Z,
|
|
81
88
|
columnsStickyPositions: H,
|
|
82
|
-
hasSearchSlot:
|
|
83
|
-
containerStyle:
|
|
84
|
-
onScroll:
|
|
85
|
-
savingRows:
|
|
86
|
-
hasExpandSlot:
|
|
87
|
-
toggleExpandRow:
|
|
88
|
-
cssExpandGridCol:
|
|
89
|
+
hasSearchSlot: _,
|
|
90
|
+
containerStyle: ee,
|
|
91
|
+
onScroll: K,
|
|
92
|
+
savingRows: U,
|
|
93
|
+
hasExpandSlot: w,
|
|
94
|
+
toggleExpandRow: te,
|
|
95
|
+
cssExpandGridCol: le,
|
|
89
96
|
isRowExpanded: M,
|
|
90
|
-
hasCheckboxes:
|
|
91
|
-
activeMenuRow:
|
|
92
|
-
scrollTo:
|
|
93
|
-
} =
|
|
94
|
-
() => a.title ||
|
|
95
|
-
),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}),
|
|
99
|
-
|
|
97
|
+
hasCheckboxes: D,
|
|
98
|
+
activeMenuRow: se,
|
|
99
|
+
scrollTo: ae
|
|
100
|
+
} = Te(a, f), W = u(() => !!p.footer), ie = u(
|
|
101
|
+
() => a.title || p.title || _.value || p["table-header-actions"] || p["table-header-pre-search"]
|
|
102
|
+
), v = u({
|
|
103
|
+
get: () => a.search,
|
|
104
|
+
set: (s) => f("update:search", s)
|
|
105
|
+
}), oe = u(() => a.selection.length || 0), F = u(() => {
|
|
106
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e));
|
|
107
|
+
return !!s.length && s.every((o) => E(o));
|
|
108
|
+
}), E = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, de = (s) => {
|
|
109
|
+
E(s) ? (B(
|
|
100
110
|
a.selection.filter(
|
|
101
|
-
(o) => !a.selectedMatcher(
|
|
111
|
+
(o) => !a.selectedMatcher(s, o)
|
|
102
112
|
)
|
|
103
|
-
),
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
106
|
-
|
|
113
|
+
), f("selectRow", !1)) : (B([...a.selection, s]), f("selectRow", !0));
|
|
114
|
+
}, ne = () => {
|
|
115
|
+
if (F.value)
|
|
116
|
+
B([]), f("selectAll", !1);
|
|
107
117
|
else {
|
|
108
|
-
const
|
|
109
|
-
|
|
118
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...a.selection, ...s]), f("selectAll", !0);
|
|
110
120
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
() => a.emptyStateVariant ?? (
|
|
115
|
-
),
|
|
116
|
-
() => a.emptyStateSubtitle ? a.emptyStateSubtitle :
|
|
117
|
-
),
|
|
121
|
+
}, B = (s) => {
|
|
122
|
+
f("update:selection", s);
|
|
123
|
+
}, re = (s) => !a.isLoading && T.value === s, ce = u(
|
|
124
|
+
() => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
|
|
125
|
+
), ue = u(
|
|
126
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
|
|
127
|
+
), N = u(() => ({
|
|
118
128
|
class: {
|
|
119
129
|
sticky: a.isSelectionSticky,
|
|
120
130
|
bordered: a.isSelectionBordered
|
|
121
131
|
},
|
|
122
|
-
style: a.isSelectionSticky ? H.value[
|
|
123
|
-
})),
|
|
124
|
-
sticky:
|
|
125
|
-
isStickyRight:
|
|
126
|
-
bordered:
|
|
127
|
-
isTextRight:
|
|
128
|
-
}),
|
|
129
|
-
() => a.columns.map((
|
|
130
|
-
),
|
|
131
|
-
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(
|
|
132
|
-
}), A =
|
|
132
|
+
style: a.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (s) => ({
|
|
134
|
+
sticky: s.isSticky,
|
|
135
|
+
isStickyRight: s.isStickyRight,
|
|
136
|
+
bordered: s.isBordered,
|
|
137
|
+
isTextRight: s.isTextRight
|
|
138
|
+
}), Y = u(
|
|
139
|
+
() => a.columns.map((s) => he(s))
|
|
140
|
+
), ye = (s) => ({
|
|
141
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
|
|
142
|
+
}), A = u(() => $.value.reduce((s, o) => (s[o.index] = ye(o.index), s), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
|
|
143
|
+
() => Se.value - j - X
|
|
144
|
+
);
|
|
133
145
|
return m({
|
|
134
|
-
scrollTo:
|
|
135
|
-
}), (
|
|
146
|
+
scrollTo: ae
|
|
147
|
+
}), (s, o) => (i(), d("div", {
|
|
136
148
|
class: "table-container",
|
|
137
|
-
"data-testid": `${
|
|
138
|
-
onMouseleave: o[3] || (o[3] = (e) =>
|
|
149
|
+
"data-testid": `${l.testId}-${t(R).CONTAINER}`,
|
|
150
|
+
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
139
151
|
}, [
|
|
140
|
-
|
|
141
|
-
ref: t(
|
|
142
|
-
style:
|
|
143
|
-
class:
|
|
144
|
-
hasFooter: t(
|
|
152
|
+
b("table", {
|
|
153
|
+
ref: t(z).ref,
|
|
154
|
+
style: S(t(ee)),
|
|
155
|
+
class: y({
|
|
156
|
+
hasFooter: t(W)
|
|
145
157
|
}),
|
|
146
|
-
"data-testid": `${
|
|
158
|
+
"data-testid": `${l.testId}-${t(R).TABLE}`,
|
|
147
159
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
148
|
-
(...e) => t(
|
|
160
|
+
(...e) => t(K) && t(K)(...e))
|
|
149
161
|
}, [
|
|
150
|
-
t(
|
|
162
|
+
t(ie) ? (i(), I(t($e), {
|
|
151
163
|
key: 0,
|
|
152
|
-
|
|
153
|
-
"
|
|
164
|
+
search: t(v),
|
|
165
|
+
"onUpdate:search": o[0] || (o[0] = (e) => pe(v) ? v.value = e : null),
|
|
166
|
+
title: l.title,
|
|
167
|
+
"is-sticky": l.isStickyHeader,
|
|
168
|
+
"show-search": l.showSearch,
|
|
169
|
+
"search-placeholder": l.searchPlaceholder,
|
|
170
|
+
"search-auto-focus": l.searchAutoFocus,
|
|
171
|
+
"z-index-base": l.zIndexBase,
|
|
172
|
+
"test-id": l.testId,
|
|
173
|
+
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
174
|
+
}, ve({
|
|
175
|
+
title: g(() => [
|
|
176
|
+
r(s.$slots, "title")
|
|
177
|
+
]),
|
|
178
|
+
search: g(() => [
|
|
179
|
+
r(s.$slots, "search")
|
|
180
|
+
]),
|
|
181
|
+
_: 2
|
|
154
182
|
}, [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
])
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}, [
|
|
173
|
-
c(l.$slots, "table-header-pre-search")
|
|
174
|
-
], 8, Ie)) : n("", !0),
|
|
175
|
-
f("div", {
|
|
176
|
-
class: "table-header-right",
|
|
177
|
-
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
178
|
-
}, [
|
|
179
|
-
s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
|
|
180
|
-
f("div", Ae, [
|
|
181
|
-
h(t(Re), {
|
|
182
|
-
modelValue: t(C),
|
|
183
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) => Se(C) ? C.value = e : null),
|
|
184
|
-
placeholder: s.searchPlaceholder,
|
|
185
|
-
"auto-focus": s.searchAutoFocus,
|
|
186
|
-
"test-id": s.testId,
|
|
187
|
-
onOnClear: o[1] || (o[1] = (e) => k("onClearSearch"))
|
|
188
|
-
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
189
|
-
])
|
|
190
|
-
]) : n("", !0)
|
|
191
|
-
], 8, Ve),
|
|
192
|
-
t(b)["table-header-actions"] ? (i(), d("div", {
|
|
193
|
-
key: 1,
|
|
194
|
-
class: "table-header-actions",
|
|
195
|
-
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
196
|
-
}, [
|
|
197
|
-
c(l.$slots, "table-header-actions")
|
|
198
|
-
], 8, Pe)) : n("", !0)
|
|
199
|
-
], 10, He)) : n("", !0),
|
|
200
|
-
f("thead", {
|
|
201
|
-
class: u({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
183
|
+
t(p)["table-header-pre-search"] ? {
|
|
184
|
+
name: "table-header-pre-search",
|
|
185
|
+
fn: g(() => [
|
|
186
|
+
r(s.$slots, "table-header-pre-search")
|
|
187
|
+
]),
|
|
188
|
+
key: "0"
|
|
189
|
+
} : void 0,
|
|
190
|
+
t(p)["table-header-actions"] ? {
|
|
191
|
+
name: "table-header-actions",
|
|
192
|
+
fn: g(() => [
|
|
193
|
+
r(s.$slots, "table-header-actions")
|
|
194
|
+
]),
|
|
195
|
+
key: "1"
|
|
196
|
+
} : void 0
|
|
197
|
+
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
198
|
+
b("thead", {
|
|
199
|
+
class: y({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
202
200
|
}, [
|
|
203
|
-
|
|
201
|
+
b("div", {
|
|
204
202
|
class: "sections",
|
|
205
|
-
"data-testid": `${
|
|
203
|
+
"data-testid": `${l.testId}-${t(R).SECTIONS}`
|
|
206
204
|
}, [
|
|
207
|
-
(i(!0), d(
|
|
205
|
+
(i(!0), d(x, null, C(l.sections, (e) => (i(), d("div", {
|
|
208
206
|
key: e.id,
|
|
209
|
-
class:
|
|
207
|
+
class: y(["section-container", { sticky: e.isSticky }])
|
|
210
208
|
}, [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
style:
|
|
214
|
-
class:
|
|
209
|
+
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
210
|
+
b("div", {
|
|
211
|
+
style: S({ width: e.width + "px" }),
|
|
212
|
+
class: y({ section: !0 })
|
|
215
213
|
}, [
|
|
216
|
-
|
|
217
|
-
default:
|
|
218
|
-
|
|
214
|
+
k(t(V), { variant: "body2" }, {
|
|
215
|
+
default: g(() => [
|
|
216
|
+
P(O(e.title), 1)
|
|
219
217
|
]),
|
|
220
218
|
_: 2
|
|
221
219
|
}, 1024)
|
|
222
220
|
], 4)
|
|
223
221
|
])
|
|
224
222
|
], 2))), 128))
|
|
225
|
-
], 8,
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
], 8, Ve),
|
|
224
|
+
b("tr", {
|
|
225
|
+
style: S({ height: `${t(j)}px` })
|
|
226
|
+
}, [
|
|
227
|
+
t(D) ? (i(), d("th", L({
|
|
228
228
|
key: 0,
|
|
229
229
|
class: "checkbox-cell"
|
|
230
|
-
}, t(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
disabled:
|
|
234
|
-
"is-checked": t(
|
|
235
|
-
"is-indeterminate": !t(
|
|
236
|
-
"onUpdate:isChecked":
|
|
230
|
+
}, t(N)), [
|
|
231
|
+
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
232
|
+
k(t(Q), {
|
|
233
|
+
disabled: l.isLoading,
|
|
234
|
+
"is-checked": t(F),
|
|
235
|
+
"is-indeterminate": !t(F) && t(oe) > 0,
|
|
236
|
+
"onUpdate:isChecked": ne
|
|
237
237
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
238
238
|
])
|
|
239
|
-
], 16)) :
|
|
240
|
-
t(
|
|
241
|
-
(i(!0), d(
|
|
239
|
+
], 16)) : c("", !0),
|
|
240
|
+
t(w) ? (i(), d("th", Me)) : c("", !0),
|
|
241
|
+
(i(!0), d(x, null, C(l.columns, (e, h) => (i(), d("th", {
|
|
242
242
|
key: e.id,
|
|
243
|
-
class:
|
|
244
|
-
...t(
|
|
243
|
+
class: y({
|
|
244
|
+
...t(Y)[h],
|
|
245
245
|
isSortable: e.isSortable,
|
|
246
246
|
[`column-${e.id}`]: !0
|
|
247
247
|
}),
|
|
248
|
-
style:
|
|
249
|
-
onClick: (
|
|
248
|
+
style: S(e.isSticky ? t(H)[e.id] : null),
|
|
249
|
+
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
250
250
|
}, [
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
b("div", Fe, [
|
|
252
|
+
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
|
+
k(t(Re), {
|
|
254
254
|
text: e.helpText,
|
|
255
|
-
disabled: !e.helpText ||
|
|
255
|
+
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
256
256
|
placement: e.helpTextPlacement || "top",
|
|
257
257
|
"test-id": `help-tooltip-underlined-${e.id}`
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
259
|
+
default: g(() => [
|
|
260
|
+
k(t(V), {
|
|
261
261
|
variant: "tableLabel",
|
|
262
|
-
class:
|
|
263
|
-
underlined: e.helpText &&
|
|
262
|
+
class: y({
|
|
263
|
+
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
264
264
|
})
|
|
265
265
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
266
|
+
default: g(() => [
|
|
267
|
+
P(O(e.title), 1)
|
|
268
268
|
]),
|
|
269
269
|
_: 2
|
|
270
270
|
}, 1032, ["class"])
|
|
@@ -272,156 +272,161 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
272
272
|
_: 2
|
|
273
273
|
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
274
274
|
]),
|
|
275
|
-
e.helpText &&
|
|
275
|
+
e.helpText && l.helpTooltipVariant === "icon" ? (i(), I(we, {
|
|
276
276
|
key: 0,
|
|
277
277
|
"hover-help-text": e.helpText,
|
|
278
278
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
279
|
"test-id": `help-tooltip-${e.id}`
|
|
280
|
-
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) :
|
|
281
|
-
|
|
282
|
-
e.isSortable && e.id ===
|
|
280
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
281
|
+
r(s.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
|
+
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
283
283
|
key: 1,
|
|
284
|
-
"sort-order":
|
|
285
|
-
}, null, 8, ["sort-order"])) :
|
|
284
|
+
"sort-order": l.sort.sortOrder
|
|
285
|
+
}, null, 8, ["sort-order"])) : c("", !0)
|
|
286
286
|
])
|
|
287
|
-
], 14,
|
|
288
|
-
]),
|
|
289
|
-
|
|
290
|
-
t(
|
|
287
|
+
], 14, De))), 128))
|
|
288
|
+
], 4),
|
|
289
|
+
l.showTotalsRow && t($).length > 0 ? (i(), d("tr", Ne, [
|
|
290
|
+
t(D) ? (i(), d("td", L({
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "bg"
|
|
293
|
-
}, t(
|
|
294
|
-
(i(!0), d(
|
|
293
|
+
}, t(N)), null, 16)) : c("", !0),
|
|
294
|
+
(i(!0), d(x, null, C(l.columns, (e, h) => (i(), d("td", {
|
|
295
295
|
key: e.id,
|
|
296
|
-
class:
|
|
297
|
-
...t(
|
|
296
|
+
class: y({
|
|
297
|
+
...t(Y)[h],
|
|
298
298
|
[`total-${e.id}`]: !0
|
|
299
299
|
}),
|
|
300
|
-
style:
|
|
300
|
+
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
301
301
|
}, [
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
r(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
303
|
+
h === 0 ? (i(), I(t(V), {
|
|
304
304
|
key: 0,
|
|
305
305
|
variant: "h6"
|
|
306
306
|
}, {
|
|
307
|
-
default:
|
|
308
|
-
|
|
307
|
+
default: g(() => [
|
|
308
|
+
P("Totals")
|
|
309
309
|
]),
|
|
310
310
|
_: 1
|
|
311
|
-
})) :
|
|
311
|
+
})) : c("", !0)
|
|
312
312
|
])
|
|
313
313
|
], 6))), 128))
|
|
314
|
-
])) :
|
|
314
|
+
])) : c("", !0)
|
|
315
315
|
], 2),
|
|
316
|
-
|
|
317
|
-
t(
|
|
316
|
+
b("tbody", null, [
|
|
317
|
+
t($).length > 0 ? (i(), d("div", L({
|
|
318
318
|
key: 0,
|
|
319
319
|
class: "table-body-wrapper",
|
|
320
|
-
"data-testid": `${
|
|
321
|
-
}, t(
|
|
322
|
-
(i(!0), d(
|
|
323
|
-
key:
|
|
324
|
-
class:
|
|
325
|
-
loading:
|
|
326
|
-
active: t(
|
|
327
|
-
activeMenu: t(
|
|
328
|
-
expanded: t(
|
|
329
|
-
[
|
|
320
|
+
"data-testid": `${l.testId}-${t(R).BODY_WRAPPER}`
|
|
321
|
+
}, t(J)), [
|
|
322
|
+
(i(!0), d(x, null, C(t($), (e) => (i(), d("tr", {
|
|
323
|
+
key: l.getRowKey(e.data, e.index),
|
|
324
|
+
class: y(["table-row", {
|
|
325
|
+
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
326
|
+
active: t(T) === e.index,
|
|
327
|
+
activeMenu: t(se) === e.index,
|
|
328
|
+
expanded: t(w) && t(M)(e.index),
|
|
329
|
+
[q(e.index)]: !0
|
|
330
330
|
}]),
|
|
331
|
-
style:
|
|
332
|
-
onMouseenter: (
|
|
333
|
-
onClick: (
|
|
331
|
+
style: S(t(A)[e.index]),
|
|
332
|
+
onMouseenter: (h) => T.value = e.index,
|
|
333
|
+
onClick: (h) => f("clickRow", e.index)
|
|
334
334
|
}, [
|
|
335
|
-
t(
|
|
335
|
+
t(D) ? (i(), d("td", L({
|
|
336
336
|
key: 0,
|
|
337
337
|
class: "checkbox-cell"
|
|
338
|
-
}, t(
|
|
338
|
+
}, t(N), {
|
|
339
339
|
style: t(A)[e.index]
|
|
340
340
|
}), [
|
|
341
|
-
|
|
342
|
-
"is-checked":
|
|
343
|
-
"onUpdate:isChecked": (
|
|
341
|
+
k(t(Q), {
|
|
342
|
+
"is-checked": E(l.getRowId(e.data, e.index)),
|
|
343
|
+
"onUpdate:isChecked": (h) => de(l.getRowId(e.data, e.index))
|
|
344
344
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
345
|
-
], 16)) :
|
|
346
|
-
t(
|
|
345
|
+
], 16)) : c("", !0),
|
|
346
|
+
t(w) ? (i(), d("td", {
|
|
347
347
|
key: 1,
|
|
348
348
|
class: "expand-toggle-cell",
|
|
349
|
-
style:
|
|
349
|
+
style: S(t(A)[e.index])
|
|
350
350
|
}, [
|
|
351
|
-
|
|
351
|
+
k(Ee, {
|
|
352
352
|
expanded: t(M)(e.index),
|
|
353
|
-
onClick: (
|
|
353
|
+
onClick: (h) => t(te)(e.index, h)
|
|
354
354
|
}, null, 8, ["expanded", "onClick"])
|
|
355
|
-
], 4)) :
|
|
356
|
-
(i(!0), d(
|
|
357
|
-
key:
|
|
358
|
-
class:
|
|
359
|
-
sticky:
|
|
360
|
-
isStickyRight:
|
|
361
|
-
bordered:
|
|
362
|
-
isTextRight:
|
|
363
|
-
[`column-${
|
|
355
|
+
], 4)) : c("", !0),
|
|
356
|
+
(i(!0), d(x, null, C(l.columns, (h, n) => (i(), d("td", {
|
|
357
|
+
key: n,
|
|
358
|
+
class: y({
|
|
359
|
+
sticky: l.columns[n].isSticky,
|
|
360
|
+
isStickyRight: l.columns[n].isStickyRight,
|
|
361
|
+
bordered: l.columns[n].isBordered,
|
|
362
|
+
isTextRight: l.columns[n].isTextRight,
|
|
363
|
+
[`column-${l.columns[n].id}`]: !0
|
|
364
364
|
}),
|
|
365
|
-
style:
|
|
366
|
-
|
|
365
|
+
style: S([
|
|
366
|
+
l.columns[n].isSticky ? t(H)[l.columns[n].id] : null,
|
|
367
367
|
t(A)[e.index]
|
|
368
368
|
])
|
|
369
369
|
}, [
|
|
370
|
-
!
|
|
370
|
+
!l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
|
|
371
371
|
key: 0,
|
|
372
|
-
class:
|
|
372
|
+
class: y(["table-cell", { last: n === e.data.length - 1 }])
|
|
373
373
|
}, [
|
|
374
|
-
|
|
375
|
-
cell: e.data[
|
|
376
|
-
isLoading: t(
|
|
377
|
-
cellIndex:
|
|
374
|
+
r(s.$slots, `cell-${l.columns[n].id}`, {
|
|
375
|
+
cell: e.data[n],
|
|
376
|
+
isLoading: t(U).includes(e.index),
|
|
377
|
+
cellIndex: n,
|
|
378
378
|
row: e,
|
|
379
379
|
rowIndex: e.index
|
|
380
380
|
}, () => [
|
|
381
|
-
|
|
382
|
-
default:
|
|
383
|
-
|
|
381
|
+
k(t(V), { variant: "body1" }, {
|
|
382
|
+
default: g(() => [
|
|
383
|
+
P(O(e.data[n]), 1)
|
|
384
384
|
]),
|
|
385
385
|
_: 2
|
|
386
386
|
}, 1024)
|
|
387
387
|
])
|
|
388
|
-
], 2)) :
|
|
389
|
-
|
|
388
|
+
], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
|
|
389
|
+
k(t(xe), { round: "" })
|
|
390
390
|
])
|
|
391
391
|
], 6))), 128)),
|
|
392
|
-
t(
|
|
393
|
-
|
|
392
|
+
t(w) && t(M)(e.index) ? (i(), d("div", Ge, [
|
|
393
|
+
r(s.$slots, "expanded", {
|
|
394
394
|
row: e,
|
|
395
|
-
gridColumnTemplate: t(
|
|
395
|
+
gridColumnTemplate: t(G)
|
|
396
396
|
})
|
|
397
|
-
])) :
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
])) : c("", !0),
|
|
398
|
+
re(e.index) ? (i(), d("div", Ke, [
|
|
399
|
+
r(s.$slots, "floating-row", {
|
|
400
400
|
row: e,
|
|
401
401
|
rowIndex: e.index
|
|
402
402
|
})
|
|
403
|
-
])) :
|
|
404
|
-
], 46,
|
|
405
|
-
], 16,
|
|
406
|
-
|
|
407
|
-
|
|
403
|
+
])) : c("", !0)
|
|
404
|
+
], 46, ze))), 128))
|
|
405
|
+
], 16, Oe)) : (i(), d("div", {
|
|
406
|
+
key: 1,
|
|
407
|
+
style: S(
|
|
408
|
+
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
409
|
+
)
|
|
410
|
+
}, [
|
|
411
|
+
r(s.$slots, "empty-state", {}, () => [
|
|
412
|
+
k(t(Ce), {
|
|
408
413
|
class: "empty-state",
|
|
409
|
-
title:
|
|
410
|
-
subtitle: t(
|
|
411
|
-
variant: t(
|
|
414
|
+
title: l.emptyStateTitle,
|
|
415
|
+
subtitle: t(ue),
|
|
416
|
+
variant: t(ce),
|
|
412
417
|
"icon-name": "file-search",
|
|
413
|
-
"test-id": `${
|
|
418
|
+
"test-id": `${l.testId}-${t(R).EMPTY_STATE}`
|
|
414
419
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
415
420
|
])
|
|
416
|
-
]))
|
|
421
|
+
], 4))
|
|
417
422
|
])
|
|
418
|
-
], 46,
|
|
419
|
-
t(
|
|
420
|
-
|
|
421
|
-
])) :
|
|
422
|
-
], 40,
|
|
423
|
+
], 46, Le),
|
|
424
|
+
t(W) ? (i(), d("div", Ue, [
|
|
425
|
+
r(s.$slots, "footer")
|
|
426
|
+
])) : c("", !0)
|
|
427
|
+
], 40, Pe));
|
|
423
428
|
}
|
|
424
429
|
});
|
|
425
430
|
export {
|
|
426
|
-
|
|
431
|
+
ct as default
|
|
427
432
|
};
|