@ironsource/shared-ui 2.1.3-rc.1 → 2.1.3-rc.11
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/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_f9d4e49d_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_e36c9442_lang.css +1 -0
- package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
- package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +68 -0
- package/components/alert/Alert.vue.js +7 -0
- package/components/alert/Alert.vue2.js +86 -0
- package/components/alert/index.d.ts +82 -0
- package/components/alert/index.js +6 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +44 -35
- package/components/autocomplete/Autocomplete.vue.d.ts +117 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +84 -0
- package/components/autocomplete/index.d.ts +366 -0
- package/components/autocomplete/index.js +6 -0
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v3/IconButton.vue.d.ts +1 -1
- package/components/button/v3/index.d.ts +34 -34
- package/components/button/v4/ButtonV4.vue.d.ts +1 -1
- package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
- package/components/button/v4/index.d.ts +40 -40
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
- package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
- package/components/checkbox/v4/index.d.ts +12 -12
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v4/index.d.ts +17 -17
- package/components/dropdown/common/Dropdown.common.js +93 -92
- package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
- package/components/dropdown/v3/index.d.ts +159 -159
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DropdownV4.vue.d.ts +13 -13
- package/components/dropdown/v4/index.d.ts +573 -573
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
- package/components/emptyState/v4/index.d.ts +58 -1
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/CardPanel.vue.d.ts +20 -0
- package/components/forms/CardPanel.vue.js +2 -2
- package/components/forms/CardPanel.vue2.js +26 -14
- package/components/forms/FormCard.vue.d.ts +5 -0
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +62 -36
- package/components/forms/FormRow.vue.d.ts +10 -0
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +22 -29
- package/components/forms/index.d.ts +136 -3
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
- package/components/includeExclude/index.d.ts +168 -168
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +2 -2
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +7 -7
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +83 -90
- package/components/input/v4/index.d.ts +122 -122
- package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/search/v3/Search.vue.d.ts +1 -1
- package/components/search/v3/index.d.ts +9 -9
- package/components/shared/FieldLabel.vue.d.ts +5 -0
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +63 -46
- package/components/shared/FieldMaxLength.vue.d.ts +34 -0
- package/components/shared/FieldMaxLength.vue.js +7 -0
- package/components/shared/FieldMaxLength.vue2.js +24 -0
- package/components/skeleton/v4/index.d.ts +2 -2
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +64 -60
- package/components/table/common/Table.types.d.ts +3 -0
- package/components/table/common/TableContext.d.ts +1 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +136 -128
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
- package/components/table/v4/DataGridMenu.vue.js +4 -4
- package/components/table/v4/DataGridMenu.vue2.js +46 -47
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
- package/components/table/v4/HelpIcon.vue.d.ts +40 -0
- package/components/table/v4/HelpIcon.vue.js +7 -0
- package/components/table/v4/HelpIcon.vue2.js +32 -0
- package/components/table/v4/index.d.ts +71 -44
- package/components/table-cells/common/Editable.common.js +15 -15
- package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +31 -22
- package/components/table-cells/v4/index.d.ts +43 -1
- package/components/tabs/v3/Tabs.vue.d.ts +1 -1
- package/components/tabs/v3/index.d.ts +20 -20
- package/components/textArea/v3/TextArea.vue.js +7 -0
- package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
- package/components/textArea/v4/TextAreaV4.vue.js +7 -0
- package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
- package/components/textArea/v4/index.d.ts +136 -0
- package/components/textArea/v4/index.js +6 -0
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +28 -28
- package/components/typography/index.d.ts +12 -12
- package/index.d.ts +2363 -1842
- package/index.js +131 -123
- package/package.json +11 -2
- package/testids/index.d.ts +9 -1
- package/testids/index.js +25 -24
- package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
- package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
- package/components/textArea/TextArea.vue.js +0 -7
- /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
- /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/textArea/{index.js → v3/index.js} +0 -0
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; import { defineComponent as se, useCssVars as ae, unref as e, useSlots as ie, computed as g, openBlock as i, createElementBlock as l, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
|
|
2
|
+
import p from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as f } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
7
|
+
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
|
+
import re from "./SortIcon.vue.js";
|
|
9
|
+
import ue from "./HelpIcon.vue.js";
|
|
10
|
+
import he from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ye from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as fe } from "@vueuse/core";
|
|
13
|
+
const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "checkbox-cell"
|
|
15
|
-
},
|
|
16
|
+
}, Te = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "expand-toggle-cell"
|
|
18
|
-
},
|
|
19
|
+
}, Ce = ["onClick"], Ee = { class: "table-head-container" }, Be = ["data-testid"], Ie = ["onMouseenter"], pe = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "checkbox-cell"
|
|
21
|
-
},
|
|
22
|
+
}, we = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "expand-toggle-cell"
|
|
24
|
-
},
|
|
25
|
+
}, Pe = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "expanded-row"
|
|
27
|
-
}, Ve = { key: 1 },
|
|
28
|
+
}, Ve = { key: 1 }, He = {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "table-footer"
|
|
30
|
-
},
|
|
31
|
+
}, We = /* @__PURE__ */ se({
|
|
31
32
|
__name: "DataGrid",
|
|
32
33
|
props: {
|
|
33
34
|
title: { default: "" },
|
|
@@ -59,37 +60,38 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
59
60
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
|
|
60
61
|
setup(s, { emit: S }) {
|
|
61
62
|
const o = s;
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
63
|
+
ae((a) => ({
|
|
64
|
+
"634e78fd": s.zIndexBase,
|
|
65
|
+
"279a8c9e": e(J),
|
|
66
|
+
"7237246a": e(L),
|
|
67
|
+
"79cce51c": e(q)
|
|
67
68
|
}));
|
|
68
|
-
const
|
|
69
|
-
list:
|
|
69
|
+
const v = ie(), {
|
|
70
|
+
list: H,
|
|
70
71
|
containerProps: U,
|
|
71
72
|
wrapperProps: G,
|
|
72
|
-
activeRow:
|
|
73
|
-
gridColumnTemplate:
|
|
74
|
-
toggleSortOrder:
|
|
75
|
-
columnsStickyPositions:
|
|
76
|
-
hasSearchSlot:
|
|
77
|
-
containerStyle:
|
|
78
|
-
onScroll:
|
|
79
|
-
savingRows:
|
|
80
|
-
hasExpandSlot:
|
|
81
|
-
toggleExpandRow:
|
|
82
|
-
cssRowHeight:
|
|
83
|
-
cssExpandGridCol:
|
|
84
|
-
isRowExpanded:
|
|
85
|
-
hasCheckboxes:
|
|
86
|
-
|
|
73
|
+
activeRow: w,
|
|
74
|
+
gridColumnTemplate: L,
|
|
75
|
+
toggleSortOrder: Y,
|
|
76
|
+
columnsStickyPositions: M,
|
|
77
|
+
hasSearchSlot: Q,
|
|
78
|
+
containerStyle: W,
|
|
79
|
+
onScroll: A,
|
|
80
|
+
savingRows: N,
|
|
81
|
+
hasExpandSlot: b,
|
|
82
|
+
toggleExpandRow: j,
|
|
83
|
+
cssRowHeight: q,
|
|
84
|
+
cssExpandGridCol: J,
|
|
85
|
+
isRowExpanded: P,
|
|
86
|
+
hasCheckboxes: F,
|
|
87
|
+
activeMenuRow: K
|
|
88
|
+
} = ce(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), V = g(() => {
|
|
87
89
|
const a = o.rows.map((d, t) => o.getRowId(d, t));
|
|
88
90
|
return a.length && a.every((d) => $(d));
|
|
89
|
-
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1,
|
|
91
|
+
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
|
|
90
92
|
$(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
|
|
91
|
-
},
|
|
92
|
-
if (
|
|
93
|
+
}, _ = () => {
|
|
94
|
+
if (V.value)
|
|
93
95
|
R([]);
|
|
94
96
|
else {
|
|
95
97
|
const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
|
|
@@ -97,72 +99,72 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
97
99
|
}
|
|
98
100
|
}, R = (a) => {
|
|
99
101
|
S("update:selection", a);
|
|
100
|
-
},
|
|
101
|
-
() => o.emptyStateVariant ?? (
|
|
102
|
-
),
|
|
103
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
102
|
+
}, ee = g(
|
|
103
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
104
|
+
), te = g(
|
|
105
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
104
106
|
);
|
|
105
107
|
return (a, d) => (i(), l("div", {
|
|
106
108
|
class: "table-container",
|
|
107
109
|
"data-testid": `${s.testId}-${e(f).CONTAINER}`,
|
|
108
|
-
onMouseleave: d[2] || (d[2] = (t) =>
|
|
110
|
+
onMouseleave: d[2] || (d[2] = (t) => w.value = null)
|
|
109
111
|
}, [
|
|
110
|
-
|
|
112
|
+
u("table", {
|
|
111
113
|
ref: e(U).ref,
|
|
112
|
-
style:
|
|
114
|
+
style: x(e(W)),
|
|
113
115
|
class: y({
|
|
114
|
-
hasFooter: e(
|
|
116
|
+
hasFooter: e(O)
|
|
115
117
|
}),
|
|
116
118
|
"data-testid": `${s.testId}-${e(f).TABLE}`,
|
|
117
119
|
onScrollPassive: d[1] || (d[1] = //@ts-ignore
|
|
118
|
-
(...t) => e(
|
|
120
|
+
(...t) => e(A) && e(A)(...t))
|
|
119
121
|
}, [
|
|
120
|
-
s.title || e(
|
|
122
|
+
s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
|
|
121
123
|
key: 0,
|
|
122
124
|
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
123
125
|
"data-testid": `${s.testId}-${e(f).HEADER}`
|
|
124
126
|
}, [
|
|
125
|
-
|
|
127
|
+
u("div", {
|
|
126
128
|
class: "table-title",
|
|
127
129
|
"data-testid": `${s.testId}-${e(f).TITLE}`
|
|
128
130
|
}, [
|
|
129
131
|
c(a.$slots, "title", {}, () => [
|
|
130
|
-
|
|
131
|
-
default:
|
|
132
|
-
|
|
132
|
+
h(e(p), { variant: "h3" }, {
|
|
133
|
+
default: T(() => [
|
|
134
|
+
C(E(s.title), 1)
|
|
133
135
|
]),
|
|
134
136
|
_: 1
|
|
135
137
|
})
|
|
136
138
|
], !0)
|
|
137
|
-
], 8,
|
|
138
|
-
|
|
139
|
+
], 8, ge),
|
|
140
|
+
u("div", {
|
|
139
141
|
class: "table-header-right",
|
|
140
142
|
"data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
|
|
141
143
|
}, [
|
|
142
144
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
modelValue: e(
|
|
146
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) =>
|
|
145
|
+
u("div", be, [
|
|
146
|
+
h(e(ye), {
|
|
147
|
+
modelValue: e(m),
|
|
148
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
|
|
147
149
|
placeholder: s.searchPlaceholder,
|
|
148
150
|
"auto-focus": s.searchAutoFocus,
|
|
149
151
|
"test-id": s.testId
|
|
150
152
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
151
153
|
])
|
|
152
|
-
], !0) :
|
|
153
|
-
], 8,
|
|
154
|
-
e(
|
|
154
|
+
], !0) : r("", !0)
|
|
155
|
+
], 8, ve),
|
|
156
|
+
e(v)["table-header-actions"] ? (i(), l("div", {
|
|
155
157
|
key: 0,
|
|
156
158
|
class: "table-header-actions",
|
|
157
159
|
"data-testid": `${s.testId}-${e(f).ACTIONS}`
|
|
158
160
|
}, [
|
|
159
161
|
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
160
|
-
], 8,
|
|
161
|
-
], 10,
|
|
162
|
-
|
|
162
|
+
], 8, $e)) : r("", !0)
|
|
163
|
+
], 10, ke)) : r("", !0),
|
|
164
|
+
u("thead", {
|
|
163
165
|
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
164
166
|
}, [
|
|
165
|
-
|
|
167
|
+
u("div", {
|
|
166
168
|
class: "sections",
|
|
167
169
|
"data-testid": `${s.testId}-${e(f).SECTIONS}`
|
|
168
170
|
}, [
|
|
@@ -171,32 +173,32 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
171
173
|
class: y(["section-container", { sticky: t.isSticky }])
|
|
172
174
|
}, [
|
|
173
175
|
c(a.$slots, `section-${t.id}`, {}, () => [
|
|
174
|
-
|
|
175
|
-
style:
|
|
176
|
+
u("div", {
|
|
177
|
+
style: x({ width: t.width + "px" }),
|
|
176
178
|
class: y({ section: !0 })
|
|
177
179
|
}, [
|
|
178
|
-
|
|
179
|
-
default:
|
|
180
|
-
|
|
180
|
+
h(e(p), { variant: "body2" }, {
|
|
181
|
+
default: T(() => [
|
|
182
|
+
C(E(t.title), 1)
|
|
181
183
|
]),
|
|
182
184
|
_: 2
|
|
183
185
|
}, 1024)
|
|
184
186
|
], 4)
|
|
185
187
|
], !0)
|
|
186
188
|
], 2))), 128))
|
|
187
|
-
], 8,
|
|
188
|
-
|
|
189
|
-
e(
|
|
189
|
+
], 8, Re),
|
|
190
|
+
u("tr", null, [
|
|
191
|
+
e(F) ? (i(), l("th", xe, [
|
|
190
192
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
191
|
-
|
|
193
|
+
h(e(D), {
|
|
192
194
|
disabled: s.isLoading,
|
|
193
|
-
"is-checked": e(
|
|
194
|
-
"is-indeterminate": !e(
|
|
195
|
-
"onUpdate:isChecked":
|
|
195
|
+
"is-checked": e(V),
|
|
196
|
+
"is-indeterminate": !e(V) && e(X) > 0,
|
|
197
|
+
"onUpdate:isChecked": _
|
|
196
198
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
197
199
|
], !0)
|
|
198
|
-
])) :
|
|
199
|
-
e(
|
|
200
|
+
])) : r("", !0),
|
|
201
|
+
e(b) ? (i(), l("th", Te)) : r("", !0),
|
|
200
202
|
(i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
|
|
201
203
|
key: t.id,
|
|
202
204
|
class: y({
|
|
@@ -207,55 +209,61 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
207
209
|
isSortable: t.isSortable,
|
|
208
210
|
[`column-${t.id}`]: !0
|
|
209
211
|
}),
|
|
210
|
-
style:
|
|
211
|
-
onClick: (
|
|
212
|
+
style: x(t.isSticky ? e(M)[t.id] : null),
|
|
213
|
+
onClick: (k) => t.isSortable ? e(Y)(t) : null
|
|
212
214
|
}, [
|
|
213
|
-
|
|
215
|
+
u("div", Ee, [
|
|
214
216
|
c(a.$slots, `header-${t.id}`, { column: t }, () => [
|
|
215
|
-
|
|
216
|
-
default:
|
|
217
|
-
|
|
217
|
+
h(e(p), { variant: "tableLabel" }, {
|
|
218
|
+
default: T(() => [
|
|
219
|
+
C(E(t.title), 1)
|
|
218
220
|
]),
|
|
219
221
|
_: 2
|
|
220
222
|
}, 1024)
|
|
221
223
|
], !0),
|
|
222
|
-
t.
|
|
224
|
+
t.helpText ? (i(), z(ue, {
|
|
223
225
|
key: 0,
|
|
226
|
+
"hover-help-text": t.helpText,
|
|
227
|
+
"hover-help-text-placement": t.helpTextPlacement
|
|
228
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
229
|
+
t.isSortable && t.id === s.sort?.sortBy ? (i(), z(re, {
|
|
230
|
+
key: 1,
|
|
224
231
|
"sort-order": s.sort.sortOrder
|
|
225
|
-
}, null, 8, ["sort-order"])) :
|
|
232
|
+
}, null, 8, ["sort-order"])) : r("", !0)
|
|
226
233
|
])
|
|
227
|
-
], 14,
|
|
234
|
+
], 14, Ce))), 128))
|
|
228
235
|
])
|
|
229
236
|
], 2),
|
|
230
|
-
|
|
231
|
-
e(
|
|
237
|
+
u("tbody", null, [
|
|
238
|
+
e(H).length > 0 ? (i(), l("div", de({
|
|
232
239
|
key: 0,
|
|
233
240
|
class: "table-body-wrapper",
|
|
234
241
|
"data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
|
|
235
242
|
}, e(G)), [
|
|
236
|
-
(i(!0), l(B, null, I(e(
|
|
243
|
+
(i(!0), l(B, null, I(e(H), (t) => (i(), l("tr", {
|
|
237
244
|
key: t.index,
|
|
238
245
|
class: y(["table-row", {
|
|
239
|
-
loading: s.isLoading || s.isLoading && !t.data || e(
|
|
240
|
-
active: e(
|
|
241
|
-
|
|
246
|
+
loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
|
|
247
|
+
active: e(w) === t.index,
|
|
248
|
+
activeMenu: e(K) === t.index,
|
|
249
|
+
expanded: e(b) && e(P)(t.index)
|
|
242
250
|
}]),
|
|
243
|
-
onMouseenter: (
|
|
251
|
+
onMouseenter: (k) => w.value = t.index
|
|
244
252
|
}, [
|
|
245
|
-
e(
|
|
246
|
-
|
|
253
|
+
e(F) ? (i(), l("td", pe, [
|
|
254
|
+
h(e(D), {
|
|
247
255
|
"is-checked": $(s.getRowId(t.data, t.index)),
|
|
248
256
|
size: "sm",
|
|
249
|
-
"onUpdate:isChecked": (
|
|
257
|
+
"onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
|
|
250
258
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
251
|
-
])) :
|
|
252
|
-
e(
|
|
253
|
-
|
|
254
|
-
expanded: e(
|
|
255
|
-
onClick: (
|
|
259
|
+
])) : r("", !0),
|
|
260
|
+
e(b) ? (i(), l("td", we, [
|
|
261
|
+
h(he, {
|
|
262
|
+
expanded: e(P)(t.index),
|
|
263
|
+
onClick: (k) => e(j)(t.index, k)
|
|
256
264
|
}, null, 8, ["expanded", "onClick"])
|
|
257
|
-
])) :
|
|
258
|
-
(i(!0), l(B, null, I(s.columns, (
|
|
265
|
+
])) : r("", !0),
|
|
266
|
+
(i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
|
|
259
267
|
key: n,
|
|
260
268
|
class: y({
|
|
261
269
|
sticky: s.columns[n].isSticky,
|
|
@@ -264,8 +272,8 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
264
272
|
isTextRight: s.columns[n].isTextRight,
|
|
265
273
|
[`column-${s.columns[n].id}`]: !0
|
|
266
274
|
}),
|
|
267
|
-
style:
|
|
268
|
-
s.columns[n].isSticky ? e(
|
|
275
|
+
style: x(
|
|
276
|
+
s.columns[n].isSticky ? e(M)[s.columns[n].id] : null
|
|
269
277
|
)
|
|
270
278
|
}, [
|
|
271
279
|
!s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
|
|
@@ -274,48 +282,48 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
274
282
|
}, [
|
|
275
283
|
c(a.$slots, `cell-${s.columns[n].id}`, {
|
|
276
284
|
cell: t.data[n],
|
|
277
|
-
isLoading: e(
|
|
285
|
+
isLoading: e(N).includes(t.index),
|
|
278
286
|
cellIndex: n,
|
|
279
287
|
row: t,
|
|
280
288
|
rowIndex: t.index
|
|
281
289
|
}, () => [
|
|
282
|
-
|
|
283
|
-
default:
|
|
284
|
-
|
|
290
|
+
h(e(p), { variant: "body1" }, {
|
|
291
|
+
default: T(() => [
|
|
292
|
+
C(E(t.data[n]), 1)
|
|
285
293
|
]),
|
|
286
294
|
_: 2
|
|
287
295
|
}, 1024)
|
|
288
296
|
], !0)
|
|
289
297
|
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
290
|
-
|
|
298
|
+
h(e(oe), { round: "" })
|
|
291
299
|
], !0)
|
|
292
300
|
], 6))), 128)),
|
|
293
|
-
e(
|
|
301
|
+
e(b) && e(P)(t.index) ? (i(), l("div", Pe, [
|
|
294
302
|
c(a.$slots, "expanded", {
|
|
295
303
|
row: t,
|
|
296
|
-
gridColumnTemplate: e(
|
|
304
|
+
gridColumnTemplate: e(L)
|
|
297
305
|
}, void 0, !0)
|
|
298
|
-
])) :
|
|
299
|
-
], 42,
|
|
300
|
-
], 16,
|
|
306
|
+
])) : r("", !0)
|
|
307
|
+
], 42, Ie))), 128))
|
|
308
|
+
], 16, Be)) : (i(), l("div", Ve, [
|
|
301
309
|
c(a.$slots, "empty-state", {}, () => [
|
|
302
|
-
|
|
310
|
+
h(e(ne), {
|
|
303
311
|
class: "empty-state",
|
|
304
312
|
title: s.emptyStateTitle,
|
|
305
|
-
subtitle: e(
|
|
306
|
-
variant: e(
|
|
313
|
+
subtitle: e(te),
|
|
314
|
+
variant: e(ee),
|
|
307
315
|
"test-id": `${s.testId}-${e(f).EMPTY_STATE}`
|
|
308
316
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
309
317
|
], !0)
|
|
310
318
|
]))
|
|
311
319
|
])
|
|
312
|
-
], 46,
|
|
313
|
-
e(
|
|
320
|
+
], 46, me),
|
|
321
|
+
e(O) ? (i(), l("div", He, [
|
|
314
322
|
c(a.$slots, "footer", {}, void 0, !0)
|
|
315
|
-
])) :
|
|
316
|
-
], 40,
|
|
323
|
+
])) : r("", !0)
|
|
324
|
+
], 40, Se));
|
|
317
325
|
}
|
|
318
326
|
});
|
|
319
327
|
export {
|
|
320
|
-
|
|
328
|
+
We as default
|
|
321
329
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MenuItem } from '@is-ssp/table/common/Table.types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
menuItems: MenuItem[];
|
|
4
|
-
|
|
4
|
+
rowIndex?: number;
|
|
5
5
|
}>, {
|
|
6
6
|
menuItems: () => any[];
|
|
7
|
-
|
|
7
|
+
rowIndex: any;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
selected: (option: unknown) => void;
|
|
10
10
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
menuItems: MenuItem[];
|
|
12
|
-
|
|
12
|
+
rowIndex?: number;
|
|
13
13
|
}>, {
|
|
14
14
|
menuItems: () => any[];
|
|
15
|
-
|
|
15
|
+
rowIndex: any;
|
|
16
16
|
}>>> & {
|
|
17
17
|
onSelected?: (option: unknown) => any;
|
|
18
18
|
}, {
|
|
19
|
-
|
|
19
|
+
rowIndex: number;
|
|
20
20
|
menuItems: MenuItem[];
|
|
21
21
|
}>;
|
|
22
22
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGridMenu.
|
|
4
|
-
const a = /* @__PURE__ */ e
|
|
1
|
+
import e from "./DataGridMenu.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-13f1ce76"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,61 +1,60 @@
|
|
|
1
|
-
import "../../../DataGridMenu.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as n, withCtx as o, createVNode as m, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
|
|
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";
|
|
5
5
|
import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
7
|
+
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
8
|
+
import k from "../../icon/v4/IconV4.vue.js";
|
|
9
|
+
import { useTableContext as y } from "../common/TableContext.js";
|
|
10
|
+
const O = /* @__PURE__ */ p({
|
|
10
11
|
__name: "DataGridMenu",
|
|
11
12
|
props: {
|
|
12
13
|
menuItems: { default: () => [] },
|
|
13
|
-
|
|
14
|
+
rowIndex: { default: null }
|
|
14
15
|
},
|
|
15
16
|
emits: ["selected"],
|
|
16
|
-
setup(r, { emit:
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
o(
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
setup(r, { emit: u }) {
|
|
18
|
+
const t = r, i = y("DataGridMenu"), s = (d) => d.text, c = () => {
|
|
19
|
+
t.rowIndex && i.setActiveMenuRow(t.rowIndex);
|
|
20
|
+
}, a = () => {
|
|
21
|
+
t.rowIndex && i.setActiveMenuRow(null);
|
|
22
|
+
};
|
|
23
|
+
return f(a), (d, l) => (x(), w(n(g), {
|
|
24
|
+
class: "data-grid-menu",
|
|
25
|
+
options: r.menuItems,
|
|
26
|
+
"display-value": s,
|
|
27
|
+
"predefined-trigger": "icon-button",
|
|
28
|
+
placement: "left-start",
|
|
29
|
+
skidding: -4,
|
|
30
|
+
"onUpdate:selected": l[0] || (l[0] = (e) => u("selected", e)),
|
|
31
|
+
onOpened: c,
|
|
32
|
+
onClosed: a
|
|
33
|
+
}, {
|
|
34
|
+
default: o(({ option: e }) => [
|
|
35
|
+
m(n(C), { option: e }, I({
|
|
36
|
+
default: o(() => [
|
|
37
|
+
v(" " + M(s(e)), 1)
|
|
38
|
+
]),
|
|
39
|
+
_: 2
|
|
40
|
+
}, [
|
|
41
|
+
e.icon ? {
|
|
42
|
+
name: "icon-start",
|
|
43
|
+
fn: o(() => [
|
|
44
|
+
m(n(k), {
|
|
45
|
+
class: "menu-icon",
|
|
46
|
+
name: e.icon,
|
|
47
|
+
size: "20px"
|
|
48
|
+
}, null, 8, ["name"])
|
|
38
49
|
]),
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class: "menu-icon",
|
|
46
|
-
name: e.icon,
|
|
47
|
-
size: "20px"
|
|
48
|
-
}, null, 8, ["name"])
|
|
49
|
-
]),
|
|
50
|
-
key: "0"
|
|
51
|
-
} : void 0
|
|
52
|
-
]), 1032, ["option"])
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["options", "container"])
|
|
56
|
-
], 512));
|
|
50
|
+
key: "0"
|
|
51
|
+
} : void 0
|
|
52
|
+
]), 1032, ["option"])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["options"]));
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
O as default
|
|
61
60
|
};
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
count?: number;
|
|
3
3
|
totalCount?: number;
|
|
4
|
+
displayingText?: string;
|
|
5
|
+
outOfText?: string;
|
|
6
|
+
totalText?: string;
|
|
4
7
|
}>, {
|
|
5
8
|
count: number;
|
|
6
9
|
totalCount: number;
|
|
10
|
+
displayingText: string;
|
|
11
|
+
outOfText: string;
|
|
12
|
+
totalText: string;
|
|
7
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
14
|
count?: number;
|
|
9
15
|
totalCount?: number;
|
|
16
|
+
displayingText?: string;
|
|
17
|
+
outOfText?: string;
|
|
18
|
+
totalText?: string;
|
|
10
19
|
}>, {
|
|
11
20
|
count: number;
|
|
12
21
|
totalCount: number;
|
|
22
|
+
displayingText: string;
|
|
23
|
+
outOfText: string;
|
|
24
|
+
totalText: string;
|
|
13
25
|
}>>>, {
|
|
14
26
|
count: number;
|
|
15
27
|
totalCount: number;
|
|
28
|
+
displayingText: string;
|
|
29
|
+
outOfText: string;
|
|
30
|
+
totalText: string;
|
|
16
31
|
}>;
|
|
17
32
|
export default _default;
|
|
18
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGridRowsCounter.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGridRowsCounter.
|
|
4
|
-
const r = /* @__PURE__ */
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-06751538"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|