@ironsource/shared-ui 2.1.7-test.1 → 2.1.7-test.10
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/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/README.md +1 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +57 -45
- package/components/autocomplete/index.d.ts +20 -1
- package/components/chart/Chart.vue.js +7 -0
- package/components/chart/Chart.vue2.js +281 -0
- package/components/chart/ChartHeader.vue.js +7 -0
- package/components/chart/ChartHeader.vue2.js +51 -0
- package/components/chart/ChartLegend.vue.js +7 -0
- package/components/chart/ChartLegend.vue2.js +65 -0
- package/components/chart/ChartLoader.vue.js +25 -0
- package/components/chart/ChartLoader.vue2.js +0 -0
- package/components/chart/ChartTooltip.vue.js +7 -0
- package/components/chart/ChartTooltip.vue2.js +81 -0
- package/components/chart/composables/useChartValues.js +32 -0
- package/components/chart/composables/useTooltipPosition.js +22 -0
- package/components/chart/consts.js +21 -0
- package/components/chart/index.js +6 -0
- package/components/chart/plugins/HoverVerticalLine.js +12 -0
- package/components/chart/types.js +4 -0
- package/components/chart/utils/formatNumber.js +11 -0
- package/components/chart/utils/utils.js +12 -0
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +39 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +256 -224
- package/components/dropdown/v4/OptionV4.vue.d.ts +36 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +99 -59
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
- package/components/dropdown/v4/index.d.ts +528 -83
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +6 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +95 -90
- package/components/input/v4/index.d.ts +20 -1
- package/components/popover/common/Popover.common.d.ts +6 -0
- package/components/popover/common/Popover.common.js +17 -0
- package/components/popover/v3/Popover.vue.js +8 -0
- package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
- package/components/popover/v4/PopoverV4.vue.js +7 -0
- package/components/popover/v4/PopoverV4.vue2.js +54 -0
- package/components/popover/v4/index.d.ts +209 -0
- package/components/popover/v4/index.js +6 -0
- package/components/shared/FieldMaxLength.vue.js +3 -3
- package/components/shared/FieldMaxLength.vue2.js +2 -2
- package/components/shared/commonTypes.d.ts +2 -0
- package/components/sortableList/SortableItem.vue.js +7 -0
- package/components/sortableList/SortableItem.vue2.js +140 -0
- package/components/sortableList/SortableItemLabel.vue.js +7 -0
- package/components/sortableList/SortableItemLabel.vue2.js +60 -0
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +7 -0
- package/components/sortableList/SortableList.vue2.js +160 -0
- package/components/sortableList/composables/useHoverEffect.js +19 -0
- package/components/sortableList/consts.js +4 -0
- package/components/sortableList/index.d.ts +88 -2
- package/components/sortableList/index.js +6 -0
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +4 -4
- package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
- package/components/table/v4/index.d.ts +101 -75
- package/components/table-cells/common/Editable.common.js +37 -26
- 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 +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
- package/components/textArea/v4/index.d.ts +9 -0
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +9608 -7356
- package/index.js +136 -131
- package/mocks/options.d.ts +12 -0
- package/package.json +15 -3
- package/testids/index.d.ts +5 -0
- package/testids/index.js +27 -25
- package/utils/search.js +4 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
- package/components/popover/Popover.vue.js +0 -8
- /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
- /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/popover/{index.js → v3/index.js} +0 -0
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import "../../../TreeDropdown.
|
|
2
|
-
import
|
|
3
|
-
import "./DefaultDropdownTrigger.vue.js";
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css"; import { defineComponent as $, provide as j, ref as r, watch as v, onMounted as F, openBlock as m, createBlock as T, unref as a, withCtx as K, createVNode as k, normalizeProps as J, guardReactiveProps as R, renderSlot as G, withModifiers as U, createElementBlock as N, withDirectives as H, createElementVNode as Q, Fragment as W, renderList as X, vShow as Y, createCommentVNode as Z } from "vue";
|
|
2
|
+
import _ from "./DropdownV4.vue.js";
|
|
3
|
+
import ee from "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
7
|
import "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { useChildOptions as
|
|
12
|
-
|
|
10
|
+
import q from "./OptionV4.vue.js";
|
|
11
|
+
import { useChildOptions as ne } from "../composables/useChildOptions.js";
|
|
12
|
+
import le from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
const oe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "child-options"
|
|
15
|
-
},
|
|
16
|
+
}, ve = /* @__PURE__ */ $({
|
|
16
17
|
__name: "TreeDropdown",
|
|
17
18
|
props: {
|
|
18
19
|
options: null,
|
|
@@ -32,91 +33,186 @@ const P = {
|
|
|
32
33
|
optionEndIconType: { default: null },
|
|
33
34
|
valueToCopy: { default: null },
|
|
34
35
|
disabledOptionKey: { default: "disabled" },
|
|
35
|
-
optionChildrenKey:
|
|
36
|
+
optionChildrenKey: null,
|
|
37
|
+
optionUniqueIdKey: null
|
|
36
38
|
},
|
|
37
39
|
emits: ["update:selected", "update:isOpen"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
setup(o, { emit: I }) {
|
|
41
|
+
const l = o;
|
|
42
|
+
j("isTreeDropdown", !0);
|
|
43
|
+
const f = r([]), h = r([]), w = r({}), O = r(!1), i = r([...l.selected]), u = r("");
|
|
44
|
+
v(
|
|
45
|
+
i,
|
|
42
46
|
() => {
|
|
43
|
-
|
|
47
|
+
console.log("localSelection updated", JSON.stringify(i.value));
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
immediate: !0
|
|
51
|
+
}
|
|
52
|
+
), F(() => {
|
|
53
|
+
O.value || (l.options.forEach((n) => {
|
|
54
|
+
n[l.optionChildrenKey] && n[l.optionChildrenKey].length && (w.value[n[l.optionUniqueIdKey]] = [
|
|
55
|
+
...n[l.optionChildrenKey]
|
|
56
|
+
]);
|
|
57
|
+
}), f.value = [...l.options], h.value = [...l.options], O.value = !0);
|
|
58
|
+
}), v(
|
|
59
|
+
() => l.selected,
|
|
60
|
+
() => {
|
|
61
|
+
i.value = [...l.selected];
|
|
44
62
|
}
|
|
45
63
|
);
|
|
46
|
-
const { hasChildren:
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
-
) :
|
|
51
|
-
...
|
|
52
|
-
...
|
|
64
|
+
const { hasChildren: p, getChildren: y, allChildrenSelected: g, someChildrenSelected: V } = ne(i, l.optionChildrenKey), S = (n) => {
|
|
65
|
+
if (p(n)) {
|
|
66
|
+
g(n) ? i.value = i.value.filter(
|
|
67
|
+
(t) => !y(n).includes(t)
|
|
68
|
+
) : i.value = [
|
|
69
|
+
...i.value.filter((t) => !y(n).includes(t)),
|
|
70
|
+
...y(n)
|
|
53
71
|
];
|
|
54
72
|
return;
|
|
55
73
|
}
|
|
56
|
-
|
|
57
|
-
(
|
|
58
|
-
) :
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
74
|
+
i.value.includes(n) ? i.value = i.value.filter(
|
|
75
|
+
(t) => t !== n
|
|
76
|
+
) : i.value = [...i.value, n];
|
|
77
|
+
}, b = (n) => i.value.includes(n), z = (n) => 1 + (p(n) ? y(n).length : 0), D = () => {
|
|
78
|
+
I("update:selected", i.value);
|
|
79
|
+
}, x = () => {
|
|
80
|
+
i.value = [];
|
|
81
|
+
}, B = () => {
|
|
82
|
+
const n = /* @__PURE__ */ new Set([]);
|
|
83
|
+
h.value.forEach((e) => {
|
|
84
|
+
if (l.selected?.includes(e))
|
|
85
|
+
n.add(e);
|
|
86
|
+
else if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length) {
|
|
87
|
+
for (const s of e[l.optionChildrenKey])
|
|
88
|
+
if (l.selected?.includes(s)) {
|
|
89
|
+
n.add(e);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
const t = Array.from(n);
|
|
95
|
+
return h.value.forEach((e) => {
|
|
96
|
+
!l.selected.includes(e) && !n.has(e) && t.push(e);
|
|
97
|
+
}), t;
|
|
98
|
+
};
|
|
99
|
+
v(
|
|
100
|
+
() => l.isOpen,
|
|
101
|
+
() => {
|
|
102
|
+
l.isOpen ? f.value = B() : (i.value = [...l.selected], u.value = "");
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
const d = r({}), M = (n) => {
|
|
106
|
+
d.value[n[l.optionUniqueIdKey]] ? delete d.value[n[l.optionUniqueIdKey]] : d.value[n[l.optionUniqueIdKey]] = 1;
|
|
63
107
|
};
|
|
64
|
-
|
|
108
|
+
function P(n, t) {
|
|
109
|
+
const e = n.toLowerCase(), s = [];
|
|
110
|
+
return t.value.forEach((c) => {
|
|
111
|
+
const C = c[l.optionNameKey].toLowerCase().includes(e), E = w.value[c[l.optionUniqueIdKey]]?.filter(
|
|
112
|
+
(L) => L[l.optionNameKey].toLowerCase().includes(e)
|
|
113
|
+
) || [];
|
|
114
|
+
(C || E.length > 0) && (c[l.optionChildrenKey] = E, s.push(c));
|
|
115
|
+
}), s;
|
|
116
|
+
}
|
|
117
|
+
const A = (n) => {
|
|
118
|
+
const t = P(n, h);
|
|
119
|
+
n && (Object.keys(d.value).forEach((e) => {
|
|
120
|
+
delete d.value[e];
|
|
121
|
+
}), t.forEach((e) => {
|
|
122
|
+
Array.isArray(e[l.optionChildrenKey]) && e[l.optionChildrenKey].length && (d.value[e[l.optionUniqueIdKey]] = 1);
|
|
123
|
+
})), f.value = t;
|
|
124
|
+
};
|
|
125
|
+
return v(
|
|
126
|
+
() => u.value,
|
|
127
|
+
() => {
|
|
128
|
+
A(u.value);
|
|
129
|
+
}
|
|
130
|
+
), (n, t) => (m(), T(a(_), {
|
|
65
131
|
multi: "",
|
|
66
132
|
class: "tree-dropdown",
|
|
67
133
|
"show-select-all": !1,
|
|
68
|
-
"is-open":
|
|
69
|
-
options:
|
|
70
|
-
selected:
|
|
71
|
-
"display-value":
|
|
72
|
-
placeholder:
|
|
73
|
-
"inline-search
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
134
|
+
"is-open": o.isOpen,
|
|
135
|
+
options: f.value,
|
|
136
|
+
selected: o.selected,
|
|
137
|
+
"display-value": o.displayValue,
|
|
138
|
+
placeholder: o.placeholder,
|
|
139
|
+
"inline-search": "",
|
|
140
|
+
"inline-search-placeholder": o.inlineSearchPlaceholder,
|
|
141
|
+
"option-name-key": o.optionNameKey,
|
|
142
|
+
size: o.size,
|
|
143
|
+
"test-id": o.testId,
|
|
144
|
+
disabled: o.disabled,
|
|
78
145
|
"disable-virtual-scroll": "",
|
|
79
|
-
"override-option-count-calculation":
|
|
146
|
+
"override-option-count-calculation": z,
|
|
80
147
|
"trigger-show-all-selected-text": !1,
|
|
81
|
-
"
|
|
82
|
-
"onUpdate:isOpen":
|
|
83
|
-
onApply:
|
|
84
|
-
onClear:
|
|
148
|
+
"predefined-trigger": "default",
|
|
149
|
+
"onUpdate:isOpen": t[1] || (t[1] = (e) => I("update:isOpen", e)),
|
|
150
|
+
onApply: D,
|
|
151
|
+
onClear: x
|
|
85
152
|
}, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
153
|
+
"dropdown-trigger": K(({ defaultTriggerProps: e }) => [
|
|
154
|
+
k(a(ee), J(R(e)), {
|
|
155
|
+
"end-icon": K(() => [
|
|
156
|
+
G(n.$slots, "trigger-end-icon", {}, void 0, !0)
|
|
157
|
+
]),
|
|
158
|
+
_: 2
|
|
159
|
+
}, 1040)
|
|
160
|
+
]),
|
|
161
|
+
"inline-search": K(() => [
|
|
162
|
+
k(a(le), {
|
|
163
|
+
modelValue: u.value,
|
|
164
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value = e),
|
|
165
|
+
placeholder: o.inlineSearchPlaceholder,
|
|
166
|
+
variant: "transparent",
|
|
167
|
+
size: "md",
|
|
168
|
+
"auto-focus": "",
|
|
169
|
+
"test-id": o.testId
|
|
170
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
171
|
+
]),
|
|
172
|
+
default: K(({ option: e, index: s }) => [
|
|
173
|
+
k(a(q), {
|
|
174
|
+
option: e,
|
|
175
|
+
"selected-prop": a(p)(e) ? a(g)(e) : b(e),
|
|
176
|
+
"is-indeterminate": !a(g)(e) && a(V)(e),
|
|
177
|
+
disabled: e[o.disabledOptionKey],
|
|
178
|
+
"name-key": o.optionNameKey,
|
|
179
|
+
"image-key": o.optionImageKey,
|
|
180
|
+
"icon-key": o.optionIconKey,
|
|
181
|
+
"icon-type": o.optionIconType,
|
|
182
|
+
"end-icon-key": o.optionEndIconKey,
|
|
183
|
+
"end-icon-type": o.optionEndIconType,
|
|
184
|
+
"tree-main-option": a(p)(e),
|
|
185
|
+
"tree-main-option-expanded": d.value[e[o.optionUniqueIdKey]],
|
|
186
|
+
"stop-option-click-event-propagation": "",
|
|
187
|
+
onClick: U(() => S(e), ["stop"]),
|
|
188
|
+
onToggleTreeCollapse: M
|
|
189
|
+
}, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "tree-main-option", "tree-main-option-expanded", "onClick"]),
|
|
190
|
+
a(p)(e) ? (m(), N("div", oe, [
|
|
191
|
+
H(Q("div", null, [
|
|
192
|
+
(m(!0), N(W, null, X(a(y)(e), (c, C) => (m(), T(a(q), {
|
|
193
|
+
key: `${s}-${C}`,
|
|
194
|
+
option: c,
|
|
195
|
+
"selected-prop": b(c),
|
|
196
|
+
disabled: c[o.disabledOptionKey],
|
|
197
|
+
"name-key": o.optionNameKey,
|
|
198
|
+
"image-key": o.optionImageKey,
|
|
199
|
+
"icon-key": o.optionIconKey,
|
|
200
|
+
"icon-type": o.optionIconType,
|
|
201
|
+
"end-icon-key": o.optionEndIconKey,
|
|
202
|
+
"end-icon-type": o.optionEndIconType,
|
|
203
|
+
"tree-child-shown": d.value[e[o.optionUniqueIdKey]],
|
|
204
|
+
"stop-option-click-event-propagation": "",
|
|
205
|
+
onClick: U(() => S(c), ["stop"])
|
|
206
|
+
}, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "tree-child-shown", "onClick"]))), 128))
|
|
207
|
+
], 512), [
|
|
208
|
+
[Y, d.value[e[o.optionUniqueIdKey]]]
|
|
209
|
+
])
|
|
210
|
+
])) : Z("", !0)
|
|
115
211
|
]),
|
|
116
|
-
_:
|
|
212
|
+
_: 3
|
|
117
213
|
}, 8, ["is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled"]));
|
|
118
214
|
}
|
|
119
215
|
});
|
|
120
216
|
export {
|
|
121
|
-
|
|
217
|
+
ve as default
|
|
122
218
|
};
|
|
@@ -225,6 +225,20 @@ export declare const dropDownStoryArgs: {
|
|
|
225
225
|
category: string;
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
+
optionTwoLinesVariant: {
|
|
229
|
+
options: string[];
|
|
230
|
+
table: {
|
|
231
|
+
category: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
optionTwoLinesKey: {
|
|
235
|
+
control: {
|
|
236
|
+
type: string;
|
|
237
|
+
};
|
|
238
|
+
table: {
|
|
239
|
+
category: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
228
242
|
valueToCopy: {
|
|
229
243
|
control: {
|
|
230
244
|
type: string;
|