@ironsource/shared-ui 2.1.12-test.52 → 2.1.12-test.53
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_3da25a36_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_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_bdd6ee48_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_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/Link.vue_vue_type_style_index_0_scoped_b10e2439_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/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_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_84dc8525_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/components/chart/Chart.vue.d.ts +16 -1
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +38 -32
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartPlane.vue.d.ts +10 -0
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +158 -147
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +6 -6
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +25 -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 +58 -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 +18 -13
- 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/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 +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +176 -171
- 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/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 +20 -0
- package/components/link/Link.vue.js +2 -2
- package/components/link/Link.vue2.js +35 -21
- package/components/link/index.d.ts +77 -1
- 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/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +3 -3
- 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 +10 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +104 -96
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/index.d.ts +39 -1
- package/components/table/v4/DataGrid.vue.d.ts +4 -4
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +237 -245
- 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 +82 -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 +6 -5
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
- package/components/table/v4/index.d.ts +552 -305
- package/components/table/v4/index.js +7 -4
- package/components/table/v4/storyUtils.d.ts +25 -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 +2153 -1419
- package/index.js +99 -95
- package/package.json +5 -1
- package/testids/index.d.ts +7 -1
- package/testids/index.js +26 -25
- package/utils/date.js +3 -3
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_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_3315b68f_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_8e8df067_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/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_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_5160f12d_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import "../../SortableList.
|
|
2
|
-
import { VueDraggable as
|
|
1
|
+
import "../../SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css"; import { defineComponent as z, useCssVars as G, useSlots as U, computed as f, ref as K, openBlock as s, createElementBlock as i, mergeProps as V, unref as l, normalizeClass as Q, renderSlot as y, createCommentVNode as h, createBlock as S, isRef as $, withCtx as I, Fragment as x, renderList as B, createSlots as w, createElementVNode as j, createVNode as E, createTextVNode as J, toDisplayString as W } from "vue";
|
|
2
|
+
import { VueDraggable as X } from "vue-draggable-plus";
|
|
3
3
|
import N from "./SortableItem.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
4
|
+
import Y from "../search/v4/SearchV4.vue.js";
|
|
5
|
+
import Z from "../typography/v4/Typography.vue.js";
|
|
6
|
+
import _ from "../skeleton/v4/SkeletonV4.vue.js";
|
|
7
|
+
import { useVModel as ee } from "@vueuse/core";
|
|
8
8
|
import { matchString as q } from "../../utils/search.js";
|
|
9
|
-
import { useTestIdAttrs as
|
|
10
|
-
import { SortableListTestIdModifiers as
|
|
9
|
+
import { useTestIdAttrs as te } from "../../utils/testIds.js";
|
|
10
|
+
import { SortableListTestIdModifiers as p } from "../../testids/index.js";
|
|
11
11
|
import { DRAG_CURSOR_CSS_CLASS as O } from "./consts.js";
|
|
12
|
-
const
|
|
12
|
+
const le = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "sortable-list-container"
|
|
15
|
-
},
|
|
15
|
+
}, ae = { class: "loader-bars" }, de = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "empty-state-title"
|
|
18
|
-
},
|
|
18
|
+
}, me = /* @__PURE__ */ z({
|
|
19
19
|
__name: "SortableList",
|
|
20
20
|
props: {
|
|
21
21
|
items: { default: () => [] },
|
|
22
|
-
displayValue: { type: Function, default: (
|
|
22
|
+
displayValue: { type: Function, default: (a) => a.displayText || a.toString() },
|
|
23
23
|
openId: { default: null },
|
|
24
24
|
selectedId: { default: null },
|
|
25
25
|
selectedChildId: { default: null },
|
|
26
|
+
variant: { default: "default" },
|
|
27
|
+
draggableArea: { default: "handle" },
|
|
26
28
|
search: { default: null },
|
|
27
29
|
showSearch: { type: Boolean, default: !1 },
|
|
28
30
|
searchPlaceholder: { default: "Search" },
|
|
@@ -36,136 +38,142 @@ const te = {
|
|
|
36
38
|
testId: { default: "" }
|
|
37
39
|
},
|
|
38
40
|
emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
setup(a, { emit: r }) {
|
|
42
|
+
const o = a;
|
|
43
|
+
G((t) => ({
|
|
44
|
+
dbaa7dcc: a.zIndexBase
|
|
43
45
|
}));
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}) :
|
|
46
|
+
const m = U(), u = ee(o, "search", r), b = f(() => !!u.value?.trim()), k = f(() => b.value ? o.items.filter((t) => {
|
|
47
|
+
const d = t.children || [], e = u.value;
|
|
48
|
+
return o.searchHandler ? o.searchHandler(t, e) : q(t.displayText, e) || // match parent item
|
|
49
|
+
d.some((n) => q(n.displayText, e));
|
|
50
|
+
}) : o.items), g = f({
|
|
49
51
|
get() {
|
|
50
|
-
return
|
|
52
|
+
return k.value.filter((t) => !t.isLocked);
|
|
51
53
|
},
|
|
52
54
|
set(t) {
|
|
53
|
-
|
|
55
|
+
r("update:items", [...t, ...C.value]);
|
|
54
56
|
}
|
|
55
|
-
}),
|
|
56
|
-
() =>
|
|
57
|
-
),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
}), C = f(
|
|
58
|
+
() => k.value.filter((t) => t.isLocked)
|
|
59
|
+
), F = f(
|
|
60
|
+
() => o.draggableArea === "handle" ? ".draggable-handle" : ".handle-area"
|
|
61
|
+
), L = K(!1), M = (t) => {
|
|
62
|
+
L.value = !0, setTimeout(() => t.target.classList.add(O), 50);
|
|
63
|
+
}, P = (t) => {
|
|
64
|
+
const { target: d, item: e, newIndex: n } = t;
|
|
65
|
+
L.value = !1, d.classList.remove(O);
|
|
62
66
|
const c = e.attributes["data-id"]?.value;
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
}, T =
|
|
71
|
-
return (t,
|
|
72
|
-
l(
|
|
67
|
+
r("sortableItemDragged", { id: c, newIndex: n });
|
|
68
|
+
}, A = (t) => (b.value || t.id === o.openId) && !L.value, D = (t, d) => {
|
|
69
|
+
d ? r("update:openId", t.id) : r("update:openId", null);
|
|
70
|
+
}, v = (t) => t.id === o.selectedId, H = (t) => {
|
|
71
|
+
r("update:selectedId", t.id), r("update:selectedChildId", null);
|
|
72
|
+
}, R = (t, d) => {
|
|
73
|
+
r("update:selectedChildId", t.id), r("update:selectedId", d.id), r("update:openId", d.id);
|
|
74
|
+
}, T = te(o.testId, p);
|
|
75
|
+
return (t, d) => (s(), i("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(p).CONTAINER]), [
|
|
76
|
+
l(m).header || a.showSearch ? (s(), i("div", {
|
|
73
77
|
key: 0,
|
|
74
|
-
class:
|
|
78
|
+
class: Q(["header-container", { sticky: a.isSticky }])
|
|
75
79
|
}, [
|
|
76
|
-
l(
|
|
77
|
-
|
|
80
|
+
l(m).header ? y(t.$slots, "header", { key: 0 }, void 0, !0) : h("", !0),
|
|
81
|
+
a.showSearch ? (s(), S(l(Y), {
|
|
78
82
|
key: 1,
|
|
79
83
|
modelValue: l(u),
|
|
80
|
-
"onUpdate:modelValue":
|
|
81
|
-
placeholder:
|
|
82
|
-
"test-id":
|
|
83
|
-
onOnClear:
|
|
84
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => $(u) ? u.value = e : null),
|
|
85
|
+
placeholder: a.searchPlaceholder,
|
|
86
|
+
"test-id": a.testId,
|
|
87
|
+
onOnClear: d[1] || (d[1] = (e) => r("clearSearch"))
|
|
84
88
|
}, null, 8, ["modelValue", "placeholder", "test-id"])) : h("", !0)
|
|
85
89
|
], 2)) : h("", !0),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
(s(!0),
|
|
89
|
-
|
|
90
|
+
a.isLoading ? y(t.$slots, "loader", { key: 2 }, () => [
|
|
91
|
+
j("div", ae, [
|
|
92
|
+
(s(!0), i(x, null, B(a.loadingRowCount, (e) => (s(), i("div", { key: e }, [
|
|
93
|
+
E(l(_), {
|
|
90
94
|
round: "",
|
|
91
95
|
class: "loader-bar"
|
|
92
96
|
})
|
|
93
97
|
]))), 128))
|
|
94
98
|
])
|
|
95
|
-
], !0) : (s(),
|
|
96
|
-
l(
|
|
99
|
+
], !0) : (s(), i("div", le, [
|
|
100
|
+
l(g).length ? (s(), S(l(X), V({
|
|
97
101
|
key: 0,
|
|
98
|
-
modelValue: l(
|
|
99
|
-
"onUpdate:modelValue":
|
|
102
|
+
modelValue: l(g),
|
|
103
|
+
"onUpdate:modelValue": d[2] || (d[2] = (e) => $(g) ? g.value = e : null),
|
|
100
104
|
class: "sortable-list",
|
|
101
105
|
filter: ".expand-icon",
|
|
102
106
|
animation: 150,
|
|
103
|
-
handle:
|
|
104
|
-
disabled: l(
|
|
105
|
-
}, l(T)[l(
|
|
106
|
-
onStart:
|
|
107
|
-
onEnd:
|
|
107
|
+
handle: l(F),
|
|
108
|
+
disabled: l(b)
|
|
109
|
+
}, l(T)[l(p).DRAGGABLE_LIST], {
|
|
110
|
+
onStart: M,
|
|
111
|
+
onEnd: P
|
|
108
112
|
}), {
|
|
109
113
|
default: I(() => [
|
|
110
|
-
(s(!0),
|
|
114
|
+
(s(!0), i(x, null, B(l(g), (e, n) => (s(), S(N, {
|
|
111
115
|
key: e.id,
|
|
112
116
|
"data-id": e.id,
|
|
113
117
|
item: e,
|
|
114
|
-
index:
|
|
115
|
-
"is-open":
|
|
116
|
-
"is-selected":
|
|
117
|
-
"
|
|
118
|
-
"
|
|
118
|
+
index: n,
|
|
119
|
+
"is-open": A(e),
|
|
120
|
+
"is-selected": v(e),
|
|
121
|
+
"is-disabled": !!e.isDisabled,
|
|
122
|
+
"selected-child-id": v(e) ? a.selectedChildId : null,
|
|
123
|
+
"display-value": a.displayValue,
|
|
119
124
|
"search-query": l(u),
|
|
120
|
-
"search-handler":
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
"search-handler": a.searchHandler,
|
|
126
|
+
variant: a.variant,
|
|
127
|
+
"draggable-area": a.draggableArea,
|
|
128
|
+
onToggle: (c) => D(e, c),
|
|
129
|
+
onSelect: (c) => H(e),
|
|
130
|
+
onSelectChild: (c) => R(c, e)
|
|
131
|
+
}, w({ _: 2 }, [
|
|
132
|
+
l(m).menu ? {
|
|
126
133
|
name: "menu",
|
|
127
134
|
fn: I(() => [
|
|
128
|
-
|
|
135
|
+
y(t.$slots, "menu", { item: e }, void 0, !0)
|
|
129
136
|
]),
|
|
130
137
|
key: "0"
|
|
131
138
|
} : void 0
|
|
132
|
-
]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
139
|
+
]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "is-disabled", "selected-child-id", "display-value", "search-query", "search-handler", "variant", "draggable-area", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
133
140
|
]),
|
|
134
141
|
_: 3
|
|
135
|
-
}, 16, ["modelValue", "disabled"])) : h("", !0),
|
|
136
|
-
l(
|
|
142
|
+
}, 16, ["modelValue", "handle", "disabled"])) : h("", !0),
|
|
143
|
+
l(C).length ? (s(), i("div", V({
|
|
137
144
|
key: 1,
|
|
138
145
|
class: "locked-list"
|
|
139
|
-
}, l(T)[l(
|
|
140
|
-
(s(!0),
|
|
146
|
+
}, l(T)[l(p).LOCKED_LIST]), [
|
|
147
|
+
(s(!0), i(x, null, B(l(C), (e) => (s(), S(N, {
|
|
141
148
|
key: e.id,
|
|
142
149
|
item: e,
|
|
143
|
-
"is-open":
|
|
144
|
-
"is-selected":
|
|
145
|
-
"selected-child-id":
|
|
146
|
-
"display-value":
|
|
150
|
+
"is-open": A(e),
|
|
151
|
+
"is-selected": v(e),
|
|
152
|
+
"selected-child-id": v(e) ? a.selectedChildId : null,
|
|
153
|
+
"display-value": a.displayValue,
|
|
147
154
|
"search-query": l(u),
|
|
148
|
-
"on-search":
|
|
149
|
-
"child-list-max-height":
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
"on-search": a.searchHandler,
|
|
156
|
+
"child-list-max-height": a.childListMaxHeight,
|
|
157
|
+
variant: a.variant,
|
|
158
|
+
onToggle: (n) => D(e, n),
|
|
159
|
+
onSelect: (n) => H(e),
|
|
160
|
+
onSelectChild: (n) => R(n, e)
|
|
161
|
+
}, w({ _: 2 }, [
|
|
162
|
+
l(m).menu ? {
|
|
155
163
|
name: "menu",
|
|
156
164
|
fn: I(() => [
|
|
157
|
-
|
|
165
|
+
y(t.$slots, "menu", { item: e }, void 0, !0)
|
|
158
166
|
]),
|
|
159
167
|
key: "0"
|
|
160
168
|
} : void 0
|
|
161
|
-
]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
169
|
+
]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "variant", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
162
170
|
], 16)) : h("", !0)
|
|
163
171
|
])),
|
|
164
|
-
!l(
|
|
165
|
-
|
|
166
|
-
|
|
172
|
+
!l(k).length && !a.isLoading ? (s(), i("div", de, [
|
|
173
|
+
y(t.$slots, "empty-state", {}, () => [
|
|
174
|
+
E(l(Z), { variant: "body2" }, {
|
|
167
175
|
default: I(() => [
|
|
168
|
-
|
|
176
|
+
J(W(a.emptyStateTitle), 1)
|
|
169
177
|
]),
|
|
170
178
|
_: 1
|
|
171
179
|
})
|
|
@@ -175,5 +183,5 @@ const te = {
|
|
|
175
183
|
}
|
|
176
184
|
});
|
|
177
185
|
export {
|
|
178
|
-
|
|
186
|
+
me as default
|
|
179
187
|
};
|
|
@@ -6,6 +6,7 @@ declare const SortableListTypes: () => ({
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
search: string;
|
|
8
8
|
testId: string;
|
|
9
|
+
variant: "default" | "compact";
|
|
9
10
|
isLoading: boolean;
|
|
10
11
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
11
12
|
searchPlaceholder: string;
|
|
@@ -13,6 +14,7 @@ declare const SortableListTypes: () => ({
|
|
|
13
14
|
selectedChildId: string | number;
|
|
14
15
|
childListMaxHeight: string;
|
|
15
16
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
17
|
+
draggableArea: "handle" | "full";
|
|
16
18
|
openId: string | number;
|
|
17
19
|
selectedId: string | number;
|
|
18
20
|
showSearch: boolean;
|
|
@@ -29,6 +31,10 @@ declare const SortableListTypes: () => ({
|
|
|
29
31
|
type: import("vue").PropType<string>;
|
|
30
32
|
default: string;
|
|
31
33
|
};
|
|
34
|
+
variant: {
|
|
35
|
+
type: import("vue").PropType<"default" | "compact">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
32
38
|
isLoading: {
|
|
33
39
|
type: import("vue").PropType<boolean>;
|
|
34
40
|
default: boolean;
|
|
@@ -59,6 +65,10 @@ declare const SortableListTypes: () => ({
|
|
|
59
65
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
60
66
|
default: any;
|
|
61
67
|
};
|
|
68
|
+
draggableArea: {
|
|
69
|
+
type: import("vue").PropType<"handle" | "full">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
62
72
|
openId: {
|
|
63
73
|
type: import("vue").PropType<string | number>;
|
|
64
74
|
default: any;
|
|
@@ -98,7 +108,7 @@ declare const SortableListTypes: () => ({
|
|
|
98
108
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
99
109
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
100
110
|
"onUpdate:search"?: (query: string) => any;
|
|
101
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "childListMaxHeight" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase">;
|
|
111
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "variant" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "childListMaxHeight" | "searchHandler" | "draggableArea" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase">;
|
|
102
112
|
$attrs: {
|
|
103
113
|
[x: string]: unknown;
|
|
104
114
|
};
|
|
@@ -124,6 +134,10 @@ declare const SortableListTypes: () => ({
|
|
|
124
134
|
type: import("vue").PropType<string>;
|
|
125
135
|
default: string;
|
|
126
136
|
};
|
|
137
|
+
variant: {
|
|
138
|
+
type: import("vue").PropType<"default" | "compact">;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
127
141
|
isLoading: {
|
|
128
142
|
type: import("vue").PropType<boolean>;
|
|
129
143
|
default: boolean;
|
|
@@ -154,6 +168,10 @@ declare const SortableListTypes: () => ({
|
|
|
154
168
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
155
169
|
default: any;
|
|
156
170
|
};
|
|
171
|
+
draggableArea: {
|
|
172
|
+
type: import("vue").PropType<"handle" | "full">;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
157
175
|
openId: {
|
|
158
176
|
type: import("vue").PropType<string | number>;
|
|
159
177
|
default: any;
|
|
@@ -207,6 +225,7 @@ declare const SortableListTypes: () => ({
|
|
|
207
225
|
}, string, {
|
|
208
226
|
search: string;
|
|
209
227
|
testId: string;
|
|
228
|
+
variant: "default" | "compact";
|
|
210
229
|
isLoading: boolean;
|
|
211
230
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
212
231
|
searchPlaceholder: string;
|
|
@@ -214,6 +233,7 @@ declare const SortableListTypes: () => ({
|
|
|
214
233
|
selectedChildId: string | number;
|
|
215
234
|
childListMaxHeight: string;
|
|
216
235
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
236
|
+
draggableArea: "handle" | "full";
|
|
217
237
|
openId: string | number;
|
|
218
238
|
selectedId: string | number;
|
|
219
239
|
showSearch: boolean;
|
|
@@ -250,6 +270,10 @@ declare const SortableListTypes: () => ({
|
|
|
250
270
|
type: import("vue").PropType<string>;
|
|
251
271
|
default: string;
|
|
252
272
|
};
|
|
273
|
+
variant: {
|
|
274
|
+
type: import("vue").PropType<"default" | "compact">;
|
|
275
|
+
default: string;
|
|
276
|
+
};
|
|
253
277
|
isLoading: {
|
|
254
278
|
type: import("vue").PropType<boolean>;
|
|
255
279
|
default: boolean;
|
|
@@ -280,6 +304,10 @@ declare const SortableListTypes: () => ({
|
|
|
280
304
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
281
305
|
default: any;
|
|
282
306
|
};
|
|
307
|
+
draggableArea: {
|
|
308
|
+
type: import("vue").PropType<"handle" | "full">;
|
|
309
|
+
default: string;
|
|
310
|
+
};
|
|
283
311
|
openId: {
|
|
284
312
|
type: import("vue").PropType<string | number>;
|
|
285
313
|
default: any;
|
|
@@ -332,6 +360,10 @@ declare const SortableListTypes: () => ({
|
|
|
332
360
|
type: import("vue").PropType<string>;
|
|
333
361
|
default: string;
|
|
334
362
|
};
|
|
363
|
+
variant: {
|
|
364
|
+
type: import("vue").PropType<"default" | "compact">;
|
|
365
|
+
default: string;
|
|
366
|
+
};
|
|
335
367
|
isLoading: {
|
|
336
368
|
type: import("vue").PropType<boolean>;
|
|
337
369
|
default: boolean;
|
|
@@ -362,6 +394,10 @@ declare const SortableListTypes: () => ({
|
|
|
362
394
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
|
|
363
395
|
default: any;
|
|
364
396
|
};
|
|
397
|
+
draggableArea: {
|
|
398
|
+
type: import("vue").PropType<"handle" | "full">;
|
|
399
|
+
default: string;
|
|
400
|
+
};
|
|
365
401
|
openId: {
|
|
366
402
|
type: import("vue").PropType<string | number>;
|
|
367
403
|
default: any;
|
|
@@ -415,6 +451,7 @@ declare const SortableListTypes: () => ({
|
|
|
415
451
|
}, string, {
|
|
416
452
|
search: string;
|
|
417
453
|
testId: string;
|
|
454
|
+
variant: "default" | "compact";
|
|
418
455
|
isLoading: boolean;
|
|
419
456
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
420
457
|
searchPlaceholder: string;
|
|
@@ -422,6 +459,7 @@ declare const SortableListTypes: () => ({
|
|
|
422
459
|
selectedChildId: string | number;
|
|
423
460
|
childListMaxHeight: string;
|
|
424
461
|
searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
|
|
462
|
+
draggableArea: "handle" | "full";
|
|
425
463
|
openId: string | number;
|
|
426
464
|
selectedId: string | number;
|
|
427
465
|
showSearch: boolean;
|
|
@@ -146,9 +146,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
146
146
|
"onUpdate:sort"?: (newSort: Sort) => any;
|
|
147
147
|
onSaveRow?: (args_0: SaveRowEvent) => any;
|
|
148
148
|
onOnClearSearch?: () => any;
|
|
149
|
+
onClickRow?: (rowIndex: number) => any;
|
|
149
150
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
150
151
|
onSelectRow?: (value: boolean) => any;
|
|
151
|
-
onClickRow?: (rowIndex: number) => any;
|
|
152
152
|
}, {
|
|
153
153
|
sort: Sort;
|
|
154
154
|
title: string;
|
|
@@ -172,11 +172,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
172
172
|
defaultScrollPosition: number;
|
|
173
173
|
getRowId: (row: Row, index: number) => unknown;
|
|
174
174
|
getRowKey: (row: Row, index: number) => string | number;
|
|
175
|
-
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
176
175
|
emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
177
|
-
helpTooltipVariant: "icon" | "underline";
|
|
178
176
|
rowCustomClassKey: string;
|
|
179
177
|
rowDataKey: string;
|
|
178
|
+
helpTooltipVariant: "icon" | "underline";
|
|
179
|
+
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
180
180
|
isSelectionSticky: boolean;
|
|
181
181
|
isSelectionBordered: boolean;
|
|
182
182
|
}>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
@@ -193,8 +193,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
193
193
|
rowIndex: number;
|
|
194
194
|
}) => any>> & {
|
|
195
195
|
title?(_: {}): any;
|
|
196
|
-
"table-header-pre-search"?(_: {}): any;
|
|
197
196
|
search?(_: {}): any;
|
|
197
|
+
"table-header-pre-search"?(_: {}): any;
|
|
198
198
|
"table-header-actions"?(_: {}): any;
|
|
199
199
|
"select-all-checkbox"?(_: {}): any;
|
|
200
200
|
loader?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-da7631e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|