@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.91
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_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_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +1 -1
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +180 -169
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
- package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +58 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +234 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
- package/components/dropdown/v4/index.d.ts +203 -35
- package/components/dropdown/v4/index.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +40 -26
- package/components/popover/v4/index.d.ts +46 -8
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +82 -74
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1093 -204
- package/index.js +1 -1
- package/mocks/words.d.ts +1 -1
- package/package.json +3 -3
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
- package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
- package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
- package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
|
@@ -1,37 +1,32 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css"; import { defineComponent as ne, useCssVars as ce, unref as t, useSlots as re, computed as g, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as B, toDisplayString as E, isRef as ue, createCommentVNode as r, Fragment as I, renderList as p, mergeProps as V, createBlock as z } from "vue";
|
|
2
|
+
import A from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import he from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import ye from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
+
import G from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useVModel as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class: "checkbox-cell"
|
|
16
|
-
}, Be = {
|
|
7
|
+
import { tableCommon as fe } from "../common/Table.common.js";
|
|
8
|
+
import Se from "./SortIcon.vue.js";
|
|
9
|
+
import ke from "./HelpIcon.vue.js";
|
|
10
|
+
import me from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ge from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as ve } from "@vueuse/core";
|
|
13
|
+
import { CHECKBOX_COLUMN_ID as be } from "../common/consts.js";
|
|
14
|
+
const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = { class: "search-wrapper" }, Be = ["data-testid"], Ee = ["data-testid"], Ie = {
|
|
17
15
|
key: 1,
|
|
18
16
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "checkbox-cell"
|
|
22
|
-
}, Me = {
|
|
17
|
+
}, pe = ["onClick"], Ae = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Pe = {
|
|
23
18
|
key: 1,
|
|
24
19
|
class: "expand-toggle-cell"
|
|
25
|
-
},
|
|
20
|
+
}, Ve = {
|
|
26
21
|
key: 2,
|
|
27
22
|
class: "expanded-row"
|
|
28
23
|
}, He = {
|
|
29
24
|
key: 3,
|
|
30
25
|
class: "floating-row"
|
|
31
|
-
},
|
|
26
|
+
}, Ne = { key: 1 }, Fe = {
|
|
32
27
|
key: 0,
|
|
33
28
|
class: "table-footer"
|
|
34
|
-
},
|
|
29
|
+
}, Ze = /* @__PURE__ */ ne({
|
|
35
30
|
__name: "DataGrid",
|
|
36
31
|
props: {
|
|
37
32
|
title: { default: "" },
|
|
@@ -61,78 +56,86 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
61
56
|
searchAutoFocus: { type: Boolean, default: !1 },
|
|
62
57
|
zIndexBase: { default: 100 },
|
|
63
58
|
rowCustomClassKey: { default: "" },
|
|
64
|
-
rowDataKey: { default: "" }
|
|
59
|
+
rowDataKey: { default: "" },
|
|
60
|
+
isSelectionSticky: { type: Boolean, default: !1 },
|
|
61
|
+
isSelectionBordered: { type: Boolean, default: !1 }
|
|
65
62
|
},
|
|
66
63
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
67
64
|
setup(s, { expose: k, emit: y }) {
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
const a = s;
|
|
66
|
+
ce((l) => ({
|
|
67
|
+
"7552e08c": s.zIndexBase,
|
|
68
|
+
"7f4c0eae": t(_),
|
|
69
|
+
b761a3b2: t(N),
|
|
70
|
+
"79122e22": t(Z)
|
|
74
71
|
}));
|
|
75
|
-
const b =
|
|
76
|
-
list:
|
|
77
|
-
containerProps:
|
|
78
|
-
wrapperProps:
|
|
79
|
-
activeRow:
|
|
80
|
-
gridColumnTemplate:
|
|
81
|
-
toggleSortOrder:
|
|
82
|
-
columnsStickyPositions:
|
|
83
|
-
hasSearchSlot:
|
|
84
|
-
containerStyle:
|
|
72
|
+
const b = re(), Y = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
|
|
73
|
+
list: H,
|
|
74
|
+
containerProps: Q,
|
|
75
|
+
wrapperProps: W,
|
|
76
|
+
activeRow: C,
|
|
77
|
+
gridColumnTemplate: N,
|
|
78
|
+
toggleSortOrder: X,
|
|
79
|
+
columnsStickyPositions: L,
|
|
80
|
+
hasSearchSlot: j,
|
|
81
|
+
containerStyle: q,
|
|
85
82
|
onScroll: F,
|
|
86
|
-
savingRows:
|
|
87
|
-
hasExpandSlot:
|
|
88
|
-
toggleExpandRow:
|
|
89
|
-
cssRowHeight:
|
|
90
|
-
cssExpandGridCol:
|
|
91
|
-
isRowExpanded:
|
|
92
|
-
hasCheckboxes:
|
|
93
|
-
activeMenuRow:
|
|
94
|
-
scrollTo:
|
|
95
|
-
} =
|
|
96
|
-
const
|
|
97
|
-
return !!
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(
|
|
83
|
+
savingRows: O,
|
|
84
|
+
hasExpandSlot: $,
|
|
85
|
+
toggleExpandRow: J,
|
|
86
|
+
cssRowHeight: Z,
|
|
87
|
+
cssExpandGridCol: _,
|
|
88
|
+
isRowExpanded: M,
|
|
89
|
+
hasCheckboxes: D,
|
|
90
|
+
activeMenuRow: ee,
|
|
91
|
+
scrollTo: te
|
|
92
|
+
} = fe(a, y), K = g(() => !!b.footer), v = ve(a, "search", y), se = g(() => a.selection.length || 0), P = g(() => {
|
|
93
|
+
const l = a.rows.map((d, e) => a.getRowId(d, e));
|
|
94
|
+
return !!l.length && l.every((d) => R(d));
|
|
95
|
+
}), R = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, le = (l) => {
|
|
96
|
+
R(l) ? (x(
|
|
97
|
+
a.selection.filter(
|
|
98
|
+
(d) => !a.selectedMatcher(l, d)
|
|
102
99
|
)
|
|
103
|
-
), y("selectRow", !1)) : (x([...
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
100
|
+
), y("selectRow", !1)) : (x([...a.selection, l]), y("selectRow", !0));
|
|
101
|
+
}, ae = () => {
|
|
102
|
+
if (P.value)
|
|
106
103
|
x([]), y("selectAll", !1);
|
|
107
104
|
else {
|
|
108
|
-
const
|
|
109
|
-
x([...
|
|
105
|
+
const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !R(d));
|
|
106
|
+
x([...a.selection, ...l]), y("selectAll", !0);
|
|
110
107
|
}
|
|
111
|
-
}, x = (
|
|
112
|
-
y("update:selection",
|
|
113
|
-
},
|
|
114
|
-
() =>
|
|
115
|
-
),
|
|
116
|
-
() =>
|
|
117
|
-
)
|
|
108
|
+
}, x = (l) => {
|
|
109
|
+
y("update:selection", l);
|
|
110
|
+
}, ie = (l) => !a.isLoading && C.value === l, oe = g(
|
|
111
|
+
() => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
|
|
112
|
+
), de = g(
|
|
113
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
|
|
114
|
+
), U = g(() => ({
|
|
115
|
+
class: {
|
|
116
|
+
sticky: a.isSelectionSticky,
|
|
117
|
+
bordered: a.isSelectionBordered
|
|
118
|
+
},
|
|
119
|
+
style: a.isSelectionSticky ? L.value[be] : null
|
|
120
|
+
}));
|
|
118
121
|
return k({
|
|
119
|
-
scrollTo:
|
|
120
|
-
}), (
|
|
122
|
+
scrollTo: te
|
|
123
|
+
}), (l, d) => (i(), o("div", {
|
|
121
124
|
class: "table-container",
|
|
122
125
|
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
123
|
-
onMouseleave:
|
|
126
|
+
onMouseleave: d[3] || (d[3] = (e) => C.value = null)
|
|
124
127
|
}, [
|
|
125
128
|
u("table", {
|
|
126
|
-
ref: t(
|
|
127
|
-
style: T(t(
|
|
129
|
+
ref: t(Q).ref,
|
|
130
|
+
style: T(t(q)),
|
|
128
131
|
class: f({
|
|
129
|
-
hasFooter: t(
|
|
132
|
+
hasFooter: t(K)
|
|
130
133
|
}),
|
|
131
134
|
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
132
|
-
onScrollPassive:
|
|
135
|
+
onScrollPassive: d[2] || (d[2] = //@ts-ignore
|
|
133
136
|
(...e) => t(F) && t(F)(...e))
|
|
134
137
|
}, [
|
|
135
|
-
s.title || t(b).title || t(
|
|
138
|
+
s.title || t(b).title || t(j) || t(b)["table-header-actions"] ? (i(), o("div", {
|
|
136
139
|
key: 0,
|
|
137
140
|
class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
138
141
|
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
@@ -141,40 +144,40 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
141
144
|
class: "table-title",
|
|
142
145
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
143
146
|
}, [
|
|
144
|
-
c(
|
|
145
|
-
h(t(
|
|
147
|
+
c(l.$slots, "title", {}, () => [
|
|
148
|
+
h(t(A), { variant: "h3" }, {
|
|
146
149
|
default: w(() => [
|
|
147
|
-
E(
|
|
150
|
+
B(E(s.title), 1)
|
|
148
151
|
]),
|
|
149
152
|
_: 1
|
|
150
153
|
})
|
|
151
154
|
])
|
|
152
|
-
], 8,
|
|
155
|
+
], 8, xe),
|
|
153
156
|
u("div", {
|
|
154
157
|
class: "table-header-right",
|
|
155
158
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
156
159
|
}, [
|
|
157
|
-
s.showSearch ? c(
|
|
158
|
-
u("div",
|
|
159
|
-
h(t(
|
|
160
|
-
modelValue: t(
|
|
161
|
-
"onUpdate:modelValue":
|
|
160
|
+
s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
|
|
161
|
+
u("div", we, [
|
|
162
|
+
h(t(ge), {
|
|
163
|
+
modelValue: t(v),
|
|
164
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => ue(v) ? v.value = e : null),
|
|
162
165
|
placeholder: s.searchPlaceholder,
|
|
163
166
|
"auto-focus": s.searchAutoFocus,
|
|
164
167
|
"test-id": s.testId,
|
|
165
|
-
onOnClear:
|
|
168
|
+
onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
|
|
166
169
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
167
170
|
])
|
|
168
171
|
]) : r("", !0)
|
|
169
|
-
], 8,
|
|
170
|
-
t(b)["table-header-actions"] ? (
|
|
172
|
+
], 8, Te),
|
|
173
|
+
t(b)["table-header-actions"] ? (i(), o("div", {
|
|
171
174
|
key: 0,
|
|
172
175
|
class: "table-header-actions",
|
|
173
176
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
174
177
|
}, [
|
|
175
|
-
c(
|
|
176
|
-
], 8,
|
|
177
|
-
], 10,
|
|
178
|
+
c(l.$slots, "table-header-actions")
|
|
179
|
+
], 8, Be)) : r("", !0)
|
|
180
|
+
], 10, Re)) : r("", !0),
|
|
178
181
|
u("thead", {
|
|
179
182
|
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
180
183
|
}, [
|
|
@@ -182,38 +185,41 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
182
185
|
class: "sections",
|
|
183
186
|
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
184
187
|
}, [
|
|
185
|
-
(
|
|
188
|
+
(i(!0), o(I, null, p(s.sections, (e) => (i(), o("div", {
|
|
186
189
|
key: e.id,
|
|
187
190
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
188
191
|
}, [
|
|
189
|
-
c(
|
|
192
|
+
c(l.$slots, `section-${e.id}`, {}, () => [
|
|
190
193
|
u("div", {
|
|
191
194
|
style: T({ width: e.width + "px" }),
|
|
192
195
|
class: f({ section: !0 })
|
|
193
196
|
}, [
|
|
194
|
-
h(t(
|
|
197
|
+
h(t(A), { variant: "body2" }, {
|
|
195
198
|
default: w(() => [
|
|
196
|
-
E(
|
|
199
|
+
B(E(e.title), 1)
|
|
197
200
|
]),
|
|
198
201
|
_: 2
|
|
199
202
|
}, 1024)
|
|
200
203
|
], 4)
|
|
201
204
|
])
|
|
202
205
|
], 2))), 128))
|
|
203
|
-
], 8,
|
|
206
|
+
], 8, Ee),
|
|
204
207
|
u("tr", null, [
|
|
205
|
-
t(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
t(D) ? (i(), o("th", V({
|
|
209
|
+
key: 0,
|
|
210
|
+
class: "checkbox-cell"
|
|
211
|
+
}, t(U)), [
|
|
212
|
+
c(l.$slots, "select-all-checkbox", {}, () => [
|
|
213
|
+
h(t(G), {
|
|
208
214
|
disabled: s.isLoading,
|
|
209
|
-
"is-checked": t(
|
|
210
|
-
"is-indeterminate": !t(
|
|
211
|
-
"onUpdate:isChecked":
|
|
215
|
+
"is-checked": t(P),
|
|
216
|
+
"is-indeterminate": !t(P) && t(se) > 0,
|
|
217
|
+
"onUpdate:isChecked": ae
|
|
212
218
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
213
219
|
])
|
|
214
|
-
])) : r("", !0),
|
|
215
|
-
t(
|
|
216
|
-
(
|
|
220
|
+
], 16)) : r("", !0),
|
|
221
|
+
t($) ? (i(), o("th", Ie)) : r("", !0),
|
|
222
|
+
(i(!0), o(I, null, p(s.columns, (e) => (i(), o("th", {
|
|
217
223
|
key: e.id,
|
|
218
224
|
class: f({
|
|
219
225
|
sticky: e.isSticky,
|
|
@@ -223,62 +229,65 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
223
229
|
isSortable: e.isSortable,
|
|
224
230
|
[`column-${e.id}`]: !0
|
|
225
231
|
}),
|
|
226
|
-
style: T(e.isSticky ? t(
|
|
227
|
-
onClick: (m) => e.isSortable ? t(
|
|
232
|
+
style: T(e.isSticky ? t(L)[e.id] : null),
|
|
233
|
+
onClick: (m) => e.isSortable ? t(X)(e) : null
|
|
228
234
|
}, [
|
|
229
235
|
u("div", Ae, [
|
|
230
|
-
c(
|
|
231
|
-
h(t(
|
|
236
|
+
c(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
237
|
+
h(t(A), { variant: "tableLabel" }, {
|
|
232
238
|
default: w(() => [
|
|
233
|
-
E(
|
|
239
|
+
B(E(e.title), 1)
|
|
234
240
|
]),
|
|
235
241
|
_: 2
|
|
236
242
|
}, 1024)
|
|
237
243
|
]),
|
|
238
|
-
e.helpText ? (
|
|
244
|
+
e.helpText ? (i(), z(ke, {
|
|
239
245
|
key: 0,
|
|
240
246
|
"hover-help-text": e.helpText,
|
|
241
247
|
"hover-help-text-placement": e.helpTextPlacement
|
|
242
248
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
243
|
-
e.isSortable && e.id === s.sort?.sortBy ? (
|
|
249
|
+
e.isSortable && e.id === s.sort?.sortBy ? (i(), z(Se, {
|
|
244
250
|
key: 1,
|
|
245
251
|
"sort-order": s.sort.sortOrder
|
|
246
252
|
}, null, 8, ["sort-order"])) : r("", !0)
|
|
247
253
|
])
|
|
248
|
-
], 14,
|
|
254
|
+
], 14, pe))), 128))
|
|
249
255
|
])
|
|
250
256
|
], 2),
|
|
251
257
|
u("tbody", null, [
|
|
252
|
-
t(
|
|
258
|
+
t(H).length > 0 ? (i(), o("div", V({
|
|
253
259
|
key: 0,
|
|
254
260
|
class: "table-body-wrapper",
|
|
255
261
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
256
|
-
}, t(
|
|
257
|
-
(
|
|
262
|
+
}, t(W)), [
|
|
263
|
+
(i(!0), o(I, null, p(t(H), (e) => (i(), o("tr", {
|
|
258
264
|
key: s.getRowKey(e.data, e.index),
|
|
259
265
|
class: f(["table-row", {
|
|
260
|
-
loading: s.isLoading || s.isLoading && !e.data || t(
|
|
261
|
-
active: t(
|
|
262
|
-
activeMenu: t(
|
|
263
|
-
expanded: t(
|
|
264
|
-
[
|
|
266
|
+
loading: s.isLoading || s.isLoading && !e.data || t(O).includes(e.index),
|
|
267
|
+
active: t(C) === e.index,
|
|
268
|
+
activeMenu: t(ee) === e.index,
|
|
269
|
+
expanded: t($) && t(M)(e.index),
|
|
270
|
+
[Y(e.index)]: !0
|
|
265
271
|
}]),
|
|
266
|
-
onMouseenter: (m) =>
|
|
272
|
+
onMouseenter: (m) => C.value = e.index,
|
|
267
273
|
onClick: (m) => y("clickRow", e.index)
|
|
268
274
|
}, [
|
|
269
|
-
t(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
275
|
+
t(D) ? (i(), o("td", V({
|
|
276
|
+
key: 0,
|
|
277
|
+
class: "checkbox-cell"
|
|
278
|
+
}, t(U)), [
|
|
279
|
+
h(t(G), {
|
|
280
|
+
"is-checked": R(s.getRowId(e.data, e.index)),
|
|
281
|
+
"onUpdate:isChecked": (m) => le(s.getRowId(e.data, e.index))
|
|
273
282
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
274
|
-
])) : r("", !0),
|
|
275
|
-
t(
|
|
276
|
-
h(
|
|
277
|
-
expanded: t(
|
|
278
|
-
onClick: (m) => t(
|
|
283
|
+
], 16)) : r("", !0),
|
|
284
|
+
t($) ? (i(), o("td", Pe, [
|
|
285
|
+
h(me, {
|
|
286
|
+
expanded: t(M)(e.index),
|
|
287
|
+
onClick: (m) => t(J)(e.index, m)
|
|
279
288
|
}, null, 8, ["expanded", "onClick"])
|
|
280
289
|
])) : r("", !0),
|
|
281
|
-
(
|
|
290
|
+
(i(!0), o(I, null, p(s.columns, (m, n) => (i(), o("td", {
|
|
282
291
|
key: n,
|
|
283
292
|
class: f({
|
|
284
293
|
sticky: s.columns[n].isSticky,
|
|
@@ -288,63 +297,63 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
288
297
|
[`column-${s.columns[n].id}`]: !0
|
|
289
298
|
}),
|
|
290
299
|
style: T(
|
|
291
|
-
s.columns[n].isSticky ? t(
|
|
300
|
+
s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
|
|
292
301
|
)
|
|
293
302
|
}, [
|
|
294
|
-
!s.isLoading || s.isLoading && e.data[n] ? (
|
|
303
|
+
!s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
|
|
295
304
|
key: 0,
|
|
296
305
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
297
306
|
}, [
|
|
298
|
-
c(
|
|
307
|
+
c(l.$slots, `cell-${s.columns[n].id}`, {
|
|
299
308
|
cell: e.data[n],
|
|
300
|
-
isLoading: t(
|
|
309
|
+
isLoading: t(O).includes(e.index),
|
|
301
310
|
cellIndex: n,
|
|
302
311
|
row: e,
|
|
303
312
|
rowIndex: e.index
|
|
304
313
|
}, () => [
|
|
305
|
-
h(t(
|
|
314
|
+
h(t(A), { variant: "body1" }, {
|
|
306
315
|
default: w(() => [
|
|
307
|
-
E(
|
|
316
|
+
B(E(e.data[n]), 1)
|
|
308
317
|
]),
|
|
309
318
|
_: 2
|
|
310
319
|
}, 1024)
|
|
311
320
|
])
|
|
312
|
-
], 2)) : c(
|
|
313
|
-
h(t(
|
|
321
|
+
], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
|
|
322
|
+
h(t(he), { round: "" })
|
|
314
323
|
])
|
|
315
324
|
], 6))), 128)),
|
|
316
|
-
t(
|
|
317
|
-
c(
|
|
325
|
+
t($) && t(M)(e.index) ? (i(), o("div", Ve, [
|
|
326
|
+
c(l.$slots, "expanded", {
|
|
318
327
|
row: e,
|
|
319
|
-
gridColumnTemplate: t(
|
|
328
|
+
gridColumnTemplate: t(N)
|
|
320
329
|
})
|
|
321
330
|
])) : r("", !0),
|
|
322
|
-
|
|
323
|
-
c(
|
|
331
|
+
ie(e.index) ? (i(), o("div", He, [
|
|
332
|
+
c(l.$slots, "floating-row", {
|
|
324
333
|
row: e,
|
|
325
334
|
rowIndex: e.index
|
|
326
335
|
})
|
|
327
336
|
])) : r("", !0)
|
|
328
|
-
], 42,
|
|
329
|
-
], 16,
|
|
330
|
-
c(
|
|
331
|
-
h(t(
|
|
337
|
+
], 42, Me))), 128))
|
|
338
|
+
], 16, Le)) : (i(), o("div", Ne, [
|
|
339
|
+
c(l.$slots, "empty-state", {}, () => [
|
|
340
|
+
h(t(ye), {
|
|
332
341
|
class: "empty-state",
|
|
333
342
|
title: s.emptyStateTitle,
|
|
334
|
-
subtitle: t(
|
|
335
|
-
variant: t(
|
|
343
|
+
subtitle: t(de),
|
|
344
|
+
variant: t(oe),
|
|
336
345
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
337
346
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
338
347
|
])
|
|
339
348
|
]))
|
|
340
349
|
])
|
|
341
|
-
], 46,
|
|
342
|
-
t(
|
|
343
|
-
c(
|
|
350
|
+
], 46, $e),
|
|
351
|
+
t(K) ? (i(), o("div", Fe, [
|
|
352
|
+
c(l.$slots, "footer")
|
|
344
353
|
])) : r("", !0)
|
|
345
|
-
], 40,
|
|
354
|
+
], 40, Ce));
|
|
346
355
|
}
|
|
347
356
|
});
|
|
348
357
|
export {
|
|
349
|
-
|
|
358
|
+
Ze as default
|
|
350
359
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGridMenu.
|
|
4
|
-
const
|
|
1
|
+
import o from "./DataGridMenu.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ddfaf207"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGridMenu.
|
|
1
|
+
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css"; import { defineComponent as u, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as r, createVNode as c, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
|
|
2
2
|
import g from "../../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -8,7 +8,7 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
11
|
-
import "../../dropdown/v4/
|
|
11
|
+
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
12
12
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
13
13
|
import "../../icon/v4/IconFlag.vue.js";
|
|
14
14
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
@@ -118,11 +118,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
118
118
|
loadingRowCount: number;
|
|
119
119
|
emptyStateTitle: string;
|
|
120
120
|
isSticky: boolean;
|
|
121
|
+
zIndexBase: number;
|
|
121
122
|
emptyStateSubtitle: string;
|
|
122
123
|
getRowId: (row: Row, index: number) => unknown;
|
|
123
124
|
getRowKey: (row: Row, index: number) => string | number;
|
|
124
125
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
125
|
-
zIndexBase: number;
|
|
126
126
|
rowCustomClassKey: string;
|
|
127
127
|
rowDataKey: string;
|
|
128
128
|
totalCount: number;
|