@ironsource/shared-ui 2.1.11-rc.2 → 2.1.11-rc.21
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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b1bde483_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c7e688b1_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +34 -26
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dropdown/common/Dropdown.common.js +174 -171
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +66 -44
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +75 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +159 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +20 -6
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +211 -187
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +161 -116
- package/components/dropdown/v4/index.d.ts +313 -86
- package/components/dropdown/v4/index.js +6 -3
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/sortableList/SortableList.vue.d.ts +1 -1
- package/components/sortableList/index.d.ts +4 -4
- package/components/table/common/Table.common.js +26 -28
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/index.d.ts +2 -2
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/index.d.ts +860 -213
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -2
- package/package.json +3 -2
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_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_6ac5f602_lang.css +0 -1
|
@@ -73,6 +73,7 @@ declare const SortableListTypes: () => ({
|
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
75
|
}>> & {
|
|
76
|
+
onClearSearch?: () => any;
|
|
76
77
|
onSortableItemDragged?: (event: {
|
|
77
78
|
id: string;
|
|
78
79
|
newIndex: number;
|
|
@@ -82,7 +83,6 @@ declare const SortableListTypes: () => ({
|
|
|
82
83
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
83
84
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
84
85
|
"onUpdate:search"?: (query: string) => any;
|
|
85
|
-
onClearSearch?: () => any;
|
|
86
86
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle">;
|
|
87
87
|
$attrs: {
|
|
88
88
|
[x: string]: unknown;
|
|
@@ -156,6 +156,7 @@ declare const SortableListTypes: () => ({
|
|
|
156
156
|
default: string;
|
|
157
157
|
};
|
|
158
158
|
}>> & {
|
|
159
|
+
onClearSearch?: () => any;
|
|
159
160
|
onSortableItemDragged?: (event: {
|
|
160
161
|
id: string;
|
|
161
162
|
newIndex: number;
|
|
@@ -165,7 +166,6 @@ declare const SortableListTypes: () => ({
|
|
|
165
166
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
166
167
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
167
168
|
"onUpdate:search"?: (query: string) => any;
|
|
168
|
-
onClearSearch?: () => any;
|
|
169
169
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
170
170
|
sortableItemDragged: (event: {
|
|
171
171
|
id: string;
|
|
@@ -267,6 +267,7 @@ declare const SortableListTypes: () => ({
|
|
|
267
267
|
default: string;
|
|
268
268
|
};
|
|
269
269
|
}>> & {
|
|
270
|
+
onClearSearch?: () => any;
|
|
270
271
|
onSortableItemDragged?: (event: {
|
|
271
272
|
id: string;
|
|
272
273
|
newIndex: number;
|
|
@@ -276,7 +277,6 @@ declare const SortableListTypes: () => ({
|
|
|
276
277
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
277
278
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
278
279
|
"onUpdate:search"?: (query: string) => any;
|
|
279
|
-
onClearSearch?: () => any;
|
|
280
280
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
281
281
|
__isFragment?: never;
|
|
282
282
|
__isTeleport?: never;
|
|
@@ -337,6 +337,7 @@ declare const SortableListTypes: () => ({
|
|
|
337
337
|
default: string;
|
|
338
338
|
};
|
|
339
339
|
}>> & {
|
|
340
|
+
onClearSearch?: () => any;
|
|
340
341
|
onSortableItemDragged?: (event: {
|
|
341
342
|
id: string;
|
|
342
343
|
newIndex: number;
|
|
@@ -346,7 +347,6 @@ declare const SortableListTypes: () => ({
|
|
|
346
347
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
347
348
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
348
349
|
"onUpdate:search"?: (query: string) => any;
|
|
349
|
-
onClearSearch?: () => any;
|
|
350
350
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
351
351
|
sortableItemDragged: (event: {
|
|
352
352
|
id: string;
|
|
@@ -4,17 +4,15 @@ import { TableContext as J } from "./TableContext.js";
|
|
|
4
4
|
const Q = 46, U = 46, tt = (e, u) => {
|
|
5
5
|
const S = G(), a = c([]);
|
|
6
6
|
N(J, {
|
|
7
|
-
onClose({ rowIndex: t, cellIndex: o, value:
|
|
8
|
-
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: o, value: l } = {}) {
|
|
8
|
+
a.value = [...a.value, t], u("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
10
10
|
cellIndex: o,
|
|
11
|
-
value:
|
|
11
|
+
value: l,
|
|
12
12
|
confirm: () => {
|
|
13
|
-
a.value = a.value.filter(
|
|
14
|
-
(i) => i !== t
|
|
15
|
-
);
|
|
13
|
+
a.value = a.value.filter((n) => n !== t);
|
|
16
14
|
}
|
|
17
|
-
})
|
|
15
|
+
});
|
|
18
16
|
},
|
|
19
17
|
setActiveMenuRow(t) {
|
|
20
18
|
x.value = t;
|
|
@@ -22,26 +20,26 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
22
20
|
});
|
|
23
21
|
const y = s(() => !!e.selection), C = s(() => {
|
|
24
22
|
const t = (y.value ? `${U}px ` : "") + (g.value ? `${Q}px ` : "");
|
|
25
|
-
return e.columns.reduce((o,
|
|
26
|
-
const
|
|
27
|
-
return `${o} ${
|
|
23
|
+
return e.columns.reduce((o, l) => {
|
|
24
|
+
const n = l.width ? `${l.width}px` : `${l.colSpan || 1}fr`;
|
|
25
|
+
return `${o} ${n}`;
|
|
28
26
|
}, t);
|
|
29
27
|
}), g = s(() => !!S.expanded), A = c(null), x = c(null), R = s(() => Array(e.loadingRowCount).fill(
|
|
30
28
|
Array(e.columns.length).fill("")
|
|
31
29
|
)), H = s(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...R.value] : e.rows : e.isLoading ? [
|
|
32
30
|
...e.rows.map((o) => o[e.rowDataKey]),
|
|
33
31
|
...R.value
|
|
34
|
-
] : e.rows.map((o) => o[e.rowDataKey])), { list: T, containerProps:
|
|
32
|
+
] : e.rows.map((o) => o[e.rowDataKey])), { list: T, containerProps: i, wrapperProps: $, scrollTo: b } = q(
|
|
35
33
|
H,
|
|
36
34
|
{
|
|
37
35
|
itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
|
|
38
36
|
}
|
|
39
37
|
), k = c(null), h = c(0), B = s(() => !!S.search), I = (t) => {
|
|
40
|
-
|
|
38
|
+
i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
|
|
41
39
|
};
|
|
42
40
|
V(() => {
|
|
43
|
-
h.value =
|
|
44
|
-
|
|
41
|
+
h.value = i.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
|
|
42
|
+
i.ref.value?.scrollTo({
|
|
45
43
|
top: e.defaultScrollPosition,
|
|
46
44
|
behavior: "smooth"
|
|
47
45
|
});
|
|
@@ -50,16 +48,16 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
50
48
|
const O = s(() => {
|
|
51
49
|
const [t] = T.value;
|
|
52
50
|
return t && t.index > 0;
|
|
53
|
-
}), P = s(() =>
|
|
51
|
+
}), P = s(() => i.style), L = s(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
|
|
54
52
|
F(
|
|
55
|
-
|
|
53
|
+
i.ref,
|
|
56
54
|
() => {
|
|
57
55
|
e.isInfiniteScroll && u("loadMore");
|
|
58
56
|
},
|
|
59
57
|
{ distance: e.infiniteScrollThreshold }
|
|
60
58
|
);
|
|
61
59
|
function E() {
|
|
62
|
-
|
|
60
|
+
i.ref.value?.scrollTo({
|
|
63
61
|
top: 0,
|
|
64
62
|
behavior: "smooth"
|
|
65
63
|
});
|
|
@@ -70,33 +68,33 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
70
68
|
const o = e.sort.sortBy === t.id;
|
|
71
69
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
72
70
|
return;
|
|
73
|
-
let
|
|
74
|
-
o ?
|
|
71
|
+
let n = e.sort.sortOrder, f = e.sort.sortBy;
|
|
72
|
+
o ? n = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: n });
|
|
75
73
|
}
|
|
76
74
|
function M(t) {
|
|
77
|
-
const { isSticky: o, width:
|
|
78
|
-
if (!o || !
|
|
75
|
+
const { isSticky: o, width: l } = t;
|
|
76
|
+
if (!o || !l)
|
|
79
77
|
return null;
|
|
80
|
-
const
|
|
78
|
+
const n = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, m) => m < n ? r + v.width : r, 0), z = e.columns.reduce((r, v, m) => m > n ? r + v.width : r, 0);
|
|
81
79
|
return {
|
|
82
80
|
...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
|
|
83
81
|
zIndex: 1
|
|
84
82
|
};
|
|
85
83
|
}
|
|
86
84
|
const d = c([]), w = {}, _ = (t) => d.value.includes(t), K = async (t, o) => {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
85
|
+
const l = d.value.indexOf(t);
|
|
86
|
+
if (l === -1) {
|
|
89
87
|
d.value.push(t);
|
|
90
|
-
const
|
|
91
|
-
await j(),
|
|
88
|
+
const n = o.target.closest("tr");
|
|
89
|
+
await j(), n && (w[t] = n.offsetHeight);
|
|
92
90
|
} else
|
|
93
|
-
d.value.splice(
|
|
91
|
+
d.value.splice(l, 1), delete w[t];
|
|
94
92
|
}, W = s(() => `${e.rowHeight}px`), X = s(
|
|
95
93
|
() => `1 / span ${e.columns.length + 1}`
|
|
96
94
|
);
|
|
97
95
|
return {
|
|
98
96
|
list: T,
|
|
99
|
-
containerProps:
|
|
97
|
+
containerProps: i,
|
|
100
98
|
wrapperProps: $,
|
|
101
99
|
activeRow: A,
|
|
102
100
|
gridColumnTemplate: C,
|
|
@@ -8,10 +8,11 @@ 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/ConditionalDropdown.vue.js";
|
|
11
12
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
12
13
|
import "../../icon/v4/IconFlag.vue.js";
|
|
13
14
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
14
|
-
const
|
|
15
|
+
const h = /* @__PURE__ */ u({
|
|
15
16
|
__name: "DataGridMenu",
|
|
16
17
|
props: {
|
|
17
18
|
menuItems: { default: () => [] },
|
|
@@ -61,5 +62,5 @@ const z = /* @__PURE__ */ u({
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
h as default
|
|
65
66
|
};
|
|
@@ -169,7 +169,7 @@ declare const DataGridTypes: () => (({
|
|
|
169
169
|
}>;
|
|
170
170
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
171
171
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
172
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "
|
|
172
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "loadMore") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
173
173
|
$el: any;
|
|
174
174
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
175
175
|
sort: {
|
|
@@ -906,7 +906,7 @@ declare const DataGridTypes: () => (({
|
|
|
906
906
|
}>;
|
|
907
907
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
908
908
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
909
|
-
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "
|
|
909
|
+
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
|
|
910
910
|
tableIndex: number;
|
|
911
911
|
}) => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
|
|
912
912
|
$el: any;
|
|
@@ -11,6 +11,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
testId?: string;
|
|
12
12
|
distance?: string | number;
|
|
13
13
|
container?: string;
|
|
14
|
+
shown?: boolean;
|
|
15
|
+
autoHide?: boolean;
|
|
14
16
|
}>, {
|
|
15
17
|
text: any;
|
|
16
18
|
header: any;
|
|
@@ -23,6 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
25
|
testId: string;
|
|
24
26
|
distance: string;
|
|
25
27
|
container: string;
|
|
28
|
+
shown: any;
|
|
29
|
+
autoHide: boolean;
|
|
26
30
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
31
|
show: () => void;
|
|
28
32
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -37,6 +41,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
41
|
testId?: string;
|
|
38
42
|
distance?: string | number;
|
|
39
43
|
container?: string;
|
|
44
|
+
shown?: boolean;
|
|
45
|
+
autoHide?: boolean;
|
|
40
46
|
}>, {
|
|
41
47
|
text: any;
|
|
42
48
|
header: any;
|
|
@@ -49,6 +55,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
55
|
testId: string;
|
|
50
56
|
distance: string;
|
|
51
57
|
container: string;
|
|
58
|
+
shown: any;
|
|
59
|
+
autoHide: boolean;
|
|
52
60
|
}>>> & {
|
|
53
61
|
onShow?: () => any;
|
|
54
62
|
}, {
|
|
@@ -63,6 +71,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
71
|
disabled: boolean;
|
|
64
72
|
distance: string | number;
|
|
65
73
|
container: string;
|
|
74
|
+
shown: boolean;
|
|
75
|
+
autoHide: boolean;
|
|
66
76
|
}>, {
|
|
67
77
|
default?(_: {}): any;
|
|
68
78
|
tooltip?(_: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TooltipV4.
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
5
|
+
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-82b46d6d"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as m, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
|
|
2
2
|
import g from "./TextWithTitleContent.vue.js";
|
|
3
|
-
import { Tooltip as
|
|
3
|
+
import { Tooltip as w } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { tooltipCommon as
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
const
|
|
5
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { tooltipCommon as v } from "../common/Tooltip.common.js";
|
|
7
|
+
import { useTestIdAttrs as b } from "../../../utils/testIds.js";
|
|
8
|
+
const B = {
|
|
9
9
|
ref: "container",
|
|
10
10
|
class: "container"
|
|
11
|
-
}, D = /* @__PURE__ */
|
|
11
|
+
}, D = /* @__PURE__ */ c({
|
|
12
12
|
__name: "TooltipV4",
|
|
13
13
|
props: {
|
|
14
14
|
text: { default: null },
|
|
@@ -21,12 +21,14 @@ const I = {
|
|
|
21
21
|
disabled: { type: Boolean, default: !1 },
|
|
22
22
|
testId: { default: "" },
|
|
23
23
|
distance: { default: "10" },
|
|
24
|
-
container: { default: "body" }
|
|
24
|
+
container: { default: "body" },
|
|
25
|
+
shown: { type: Boolean, default: null },
|
|
26
|
+
autoHide: { type: Boolean, default: !0 }
|
|
25
27
|
},
|
|
26
28
|
emits: ["show"],
|
|
27
|
-
setup(e, { emit:
|
|
28
|
-
const
|
|
29
|
-
return (a,
|
|
29
|
+
setup(e, { emit: h }) {
|
|
30
|
+
const r = e, { textForDisplay: o } = v(r), s = b(r.testId, i);
|
|
31
|
+
return (a, u) => (l(), d(t(w), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
|
|
30
32
|
theme: e.theme,
|
|
31
33
|
"no-auto-focus": "",
|
|
32
34
|
triggers: e.triggers,
|
|
@@ -36,33 +38,34 @@ const I = {
|
|
|
36
38
|
"popper-class": [e.theme, e.placement, "v4-tooltip"],
|
|
37
39
|
class: ["v4-tooltip"],
|
|
38
40
|
distance: e.distance,
|
|
39
|
-
"auto-hide":
|
|
40
|
-
|
|
41
|
+
"auto-hide": e.autoHide,
|
|
42
|
+
shown: e.shown,
|
|
43
|
+
onApplyShow: u[0] || (u[0] = (I) => h("show"))
|
|
41
44
|
}), {
|
|
42
|
-
popper:
|
|
43
|
-
|
|
45
|
+
popper: n(() => [
|
|
46
|
+
m(a.$slots, "tooltip", { text: t(o) }, () => [
|
|
44
47
|
e.header ? (l(), d(g, {
|
|
45
48
|
key: 1,
|
|
46
49
|
text: e.text,
|
|
47
50
|
header: e.header
|
|
48
|
-
}, null, 8, ["text", "header"])) : (l(), d(t(
|
|
51
|
+
}, null, 8, ["text", "header"])) : (l(), d(t(x), f({
|
|
49
52
|
key: 0,
|
|
50
53
|
variant: "body2"
|
|
51
54
|
}, t(s)[t(i).TEXT]), {
|
|
52
|
-
default:
|
|
55
|
+
default: n(() => [
|
|
53
56
|
p(y(t(o)), 1)
|
|
54
57
|
]),
|
|
55
58
|
_: 1
|
|
56
59
|
}, 16))
|
|
57
60
|
], !0)
|
|
58
61
|
]),
|
|
59
|
-
default:
|
|
60
|
-
T("div",
|
|
61
|
-
|
|
62
|
+
default: n(() => [
|
|
63
|
+
T("div", B, [
|
|
64
|
+
m(a.$slots, "default", {}, void 0, !0)
|
|
62
65
|
], 512)
|
|
63
66
|
]),
|
|
64
67
|
_: 3
|
|
65
|
-
}, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance"]));
|
|
68
|
+
}, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance", "auto-hide", "shown"]));
|
|
66
69
|
}
|
|
67
70
|
});
|
|
68
71
|
export {
|
|
@@ -15,6 +15,8 @@ declare const TooltipTypes: () => ({
|
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
distance: string | number;
|
|
17
17
|
container: string;
|
|
18
|
+
shown: boolean;
|
|
19
|
+
autoHide: boolean;
|
|
18
20
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
19
21
|
header: {
|
|
20
22
|
type: import("vue").PropType<string>;
|
|
@@ -60,9 +62,17 @@ declare const TooltipTypes: () => ({
|
|
|
60
62
|
type: import("vue").PropType<string>;
|
|
61
63
|
default: string;
|
|
62
64
|
};
|
|
65
|
+
shown: {
|
|
66
|
+
type: import("vue").PropType<boolean>;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
autoHide: {
|
|
70
|
+
type: import("vue").PropType<boolean>;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
63
73
|
}>> & {
|
|
64
74
|
onShow?: () => any;
|
|
65
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container">;
|
|
75
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide">;
|
|
66
76
|
$attrs: {
|
|
67
77
|
[x: string]: unknown;
|
|
68
78
|
};
|
|
@@ -121,6 +131,14 @@ declare const TooltipTypes: () => ({
|
|
|
121
131
|
type: import("vue").PropType<string>;
|
|
122
132
|
default: string;
|
|
123
133
|
};
|
|
134
|
+
shown: {
|
|
135
|
+
type: import("vue").PropType<boolean>;
|
|
136
|
+
default: any;
|
|
137
|
+
};
|
|
138
|
+
autoHide: {
|
|
139
|
+
type: import("vue").PropType<boolean>;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
124
142
|
}>> & {
|
|
125
143
|
onShow?: () => any;
|
|
126
144
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -137,6 +155,8 @@ declare const TooltipTypes: () => ({
|
|
|
137
155
|
disabled: boolean;
|
|
138
156
|
distance: string | number;
|
|
139
157
|
container: string;
|
|
158
|
+
shown: boolean;
|
|
159
|
+
autoHide: boolean;
|
|
140
160
|
}, {}, string> & {
|
|
141
161
|
beforeCreate?: (() => void) | (() => void)[];
|
|
142
162
|
created?: (() => void) | (() => void)[];
|
|
@@ -202,6 +222,14 @@ declare const TooltipTypes: () => ({
|
|
|
202
222
|
type: import("vue").PropType<string>;
|
|
203
223
|
default: string;
|
|
204
224
|
};
|
|
225
|
+
shown: {
|
|
226
|
+
type: import("vue").PropType<boolean>;
|
|
227
|
+
default: any;
|
|
228
|
+
};
|
|
229
|
+
autoHide: {
|
|
230
|
+
type: import("vue").PropType<boolean>;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
205
233
|
}>> & {
|
|
206
234
|
onShow?: () => any;
|
|
207
235
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -253,6 +281,14 @@ declare const TooltipTypes: () => ({
|
|
|
253
281
|
type: import("vue").PropType<string>;
|
|
254
282
|
default: string;
|
|
255
283
|
};
|
|
284
|
+
shown: {
|
|
285
|
+
type: import("vue").PropType<boolean>;
|
|
286
|
+
default: any;
|
|
287
|
+
};
|
|
288
|
+
autoHide: {
|
|
289
|
+
type: import("vue").PropType<boolean>;
|
|
290
|
+
default: boolean;
|
|
291
|
+
};
|
|
256
292
|
}>> & {
|
|
257
293
|
onShow?: () => any;
|
|
258
294
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -269,6 +305,8 @@ declare const TooltipTypes: () => ({
|
|
|
269
305
|
disabled: boolean;
|
|
270
306
|
distance: string | number;
|
|
271
307
|
container: string;
|
|
308
|
+
shown: boolean;
|
|
309
|
+
autoHide: boolean;
|
|
272
310
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
273
311
|
$slots: {
|
|
274
312
|
default?(_: {}): any;
|