@ironsource/shared-ui 2.1.12-rc.1 → 2.1.12-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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +57 -39
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +98 -297
- package/components/chart/ChartHeader.vue.d.ts +20 -10
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +74 -52
- package/components/chart/ChartHeaderTrend.vue.d.ts +34 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +32 -0
- package/components/chart/ChartLegend.vue.js +2 -2
- package/components/chart/ChartLegend.vue2.js +36 -35
- package/components/chart/ChartPlane.vue.d.ts +143 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +306 -0
- package/components/chart/ChartStoryArgs.d.ts +135 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +36 -35
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +22 -0
- package/components/chart/composables/useColorsMap.d.ts +10 -0
- package/components/chart/composables/useColorsMap.js +17 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +5 -0
- package/components/chart/consts.js +20 -15
- package/components/chart/index.d.ts +189 -113
- package/components/chart/mockData.d.ts +27 -1
- package/components/chart/types.d.ts +4 -0
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dropdown/common/Dropdown.common.js +92 -85
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +76 -76
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +96 -86
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +152 -142
- package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
- package/components/table/v4/index.d.ts +15 -14
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/index.d.ts +48 -42
- package/index.js +103 -101
- package/package.json +1 -1
- package/testids/index.d.ts +2 -1
- package/testids/index.js +10 -10
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +18 -5
- package/utils/index.js +7 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_48ba81e5_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/components/chart/utils/formatNumber.js +0 -11
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as H, watch as me, openBlock as a, createElementBlock as s, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as pe, normalizeClass as E, normalizeStyle as ge, createTextVNode as T, createCommentVNode as d, isRef as Te, toDisplayString as U, withModifiers as G, Fragment as ke, renderList as he, toRaw as C, createBlock as X, resolveDynamicComponent as be } from "vue";
|
|
2
|
+
import O from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
6
|
import "./DropdownV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import we from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Ie from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import ve from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Ce from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
14
|
import q from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
16
|
+
import Se from "../../search/v4/SearchV4.vue.js";
|
|
17
17
|
import Y from "../../typography/v4/Typography.vue.js";
|
|
18
|
-
import { Dropdown as
|
|
18
|
+
import { Dropdown as Ke } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
20
|
+
import { dropdownCommon as Ae } from "../common/Dropdown.common.js";
|
|
21
21
|
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
-
import { useTestIdAttrs as
|
|
22
|
+
import { useTestIdAttrs as Le } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
24
24
|
import { useElementSize as Ee } from "@vueuse/core";
|
|
25
25
|
import Oe from "../../shared/FieldHelpText.vue.js";
|
|
26
|
-
import
|
|
27
|
-
const
|
|
26
|
+
import Be from "./GroupOption.vue.js";
|
|
27
|
+
const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe = { key: 1 }, De = { key: 2 }, Pe = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, Re = { class: "dropdown-conditions" }, ze = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, $e = ["aria-selected", "aria-disabled", "onClick"], Me = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, We = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
}, He = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" },
|
|
39
|
+
}, He = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, kt = /* @__PURE__ */ fe({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -104,7 +104,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
104
104
|
},
|
|
105
105
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
106
106
|
setup(e, { expose: j, emit: B }) {
|
|
107
|
-
const
|
|
107
|
+
const n = e, F = {
|
|
108
108
|
MULTILINE_LIST_HEIGHT: 48,
|
|
109
109
|
LIST_HEIGHT: 32 + 4,
|
|
110
110
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -113,7 +113,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
113
113
|
VERSION: 4
|
|
114
114
|
}, {
|
|
115
115
|
onKeydown: b,
|
|
116
|
-
open:
|
|
116
|
+
open: r,
|
|
117
117
|
toggleMenu: I,
|
|
118
118
|
onButtonKeydown: N,
|
|
119
119
|
query: v,
|
|
@@ -128,7 +128,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
128
128
|
virtualOptions: x,
|
|
129
129
|
isSelected: A,
|
|
130
130
|
selectedOption: h,
|
|
131
|
-
selectedOptionPrevious:
|
|
131
|
+
selectedOptionPrevious: L,
|
|
132
132
|
selectedValue: oe,
|
|
133
133
|
onSelect: D,
|
|
134
134
|
activeIndex: P,
|
|
@@ -138,20 +138,30 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
138
138
|
listRef: ae,
|
|
139
139
|
buttonRef: R,
|
|
140
140
|
apply: de,
|
|
141
|
-
cancel:
|
|
142
|
-
el:
|
|
141
|
+
cancel: se,
|
|
142
|
+
el: re,
|
|
143
143
|
onClearAllSelections: z,
|
|
144
144
|
clearAll: ue,
|
|
145
145
|
isGroup: ce
|
|
146
|
-
} =
|
|
146
|
+
} = Ae(n, B, F), g = Le(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT ? we : n.predefinedTrigger === k.APP ? Ce : null), { width: M } = Ee(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT || n.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
147
|
+
me(
|
|
148
|
+
() => n.optionsListWidth,
|
|
149
|
+
() => {
|
|
150
|
+
n.optionsListWidth && document.documentElement.style.setProperty(
|
|
151
|
+
"--options-list-width",
|
|
152
|
+
n.optionsListWidth
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
const W = () => {
|
|
147
157
|
I();
|
|
148
158
|
};
|
|
149
159
|
return j({
|
|
150
160
|
selectItem: D,
|
|
151
161
|
scrollTo: ne
|
|
152
|
-
}), (c, l) => (
|
|
162
|
+
}), (c, l) => (a(), s("div", y({
|
|
153
163
|
ref_key: "el",
|
|
154
|
-
ref:
|
|
164
|
+
ref: re,
|
|
155
165
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
156
166
|
tabindex: e.disabled ? -1 : 0
|
|
157
167
|
}, t(g)[t(p).WRAPPER], {
|
|
@@ -159,8 +169,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
159
169
|
(...o) => t(b) && t(b)(...o))
|
|
160
170
|
}), [
|
|
161
171
|
f(c.$slots, "label", {}, void 0, !0),
|
|
162
|
-
m("div",
|
|
163
|
-
i(t(
|
|
172
|
+
m("div", Ne, [
|
|
173
|
+
i(t(Ke), y({
|
|
164
174
|
theme: e.theme,
|
|
165
175
|
"popper-class": [
|
|
166
176
|
e.popperClass,
|
|
@@ -173,33 +183,33 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
173
183
|
distance: e.distance,
|
|
174
184
|
flip: e.flip,
|
|
175
185
|
triggers: [],
|
|
176
|
-
shown: !!t(
|
|
186
|
+
shown: !!t(r),
|
|
177
187
|
"auto-hide": !1,
|
|
178
188
|
container: e.container,
|
|
179
189
|
"auto-size": e.autoSize
|
|
180
190
|
}, t(g)[t(p).TRIGGER]), {
|
|
181
191
|
popper: u(() => [
|
|
182
|
-
i(
|
|
192
|
+
i(pe, null, {
|
|
183
193
|
default: u(() => [
|
|
184
|
-
t(
|
|
194
|
+
t(r) ? (a(), s("div", {
|
|
185
195
|
key: 0,
|
|
186
196
|
ref_key: "listRef",
|
|
187
197
|
ref: ae,
|
|
188
|
-
class:
|
|
198
|
+
class: E(["light-theme-v4", {
|
|
189
199
|
"dropdown--disabled": e.disabled,
|
|
190
200
|
"inline-search": e.inlineSearch
|
|
191
201
|
}]),
|
|
192
|
-
style:
|
|
202
|
+
style: ge({ width: t(ye) })
|
|
193
203
|
}, [
|
|
194
|
-
t(
|
|
204
|
+
t(r) ? (a(), s("div", {
|
|
195
205
|
key: 0,
|
|
196
|
-
class:
|
|
206
|
+
class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
197
207
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
198
208
|
(...o) => t(b) && t(b)(...o))
|
|
199
209
|
}, [
|
|
200
|
-
t(
|
|
210
|
+
t(r) && e.inlineSearch ? (a(), s("div", Pe, [
|
|
201
211
|
e.withConditions ? f(c.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
202
|
-
m("div",
|
|
212
|
+
m("div", Re, [
|
|
203
213
|
i(t(Y), { variant: "body2" }, {
|
|
204
214
|
default: u(() => [
|
|
205
215
|
T("Conditions")
|
|
@@ -207,12 +217,12 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
207
217
|
_: 1
|
|
208
218
|
})
|
|
209
219
|
])
|
|
210
|
-
], !0) :
|
|
220
|
+
], !0) : d("", !0),
|
|
211
221
|
f(c.$slots, "inline-search", {}, () => [
|
|
212
|
-
i(t(
|
|
222
|
+
i(t(Se), {
|
|
213
223
|
modelValue: t(v),
|
|
214
224
|
"onUpdate:modelValue": [
|
|
215
|
-
l[4] || (l[4] = (o) =>
|
|
225
|
+
l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
|
|
216
226
|
e.onClearSearch
|
|
217
227
|
],
|
|
218
228
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -223,8 +233,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
223
233
|
onKeydown: t(b)
|
|
224
234
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
225
235
|
], !0)
|
|
226
|
-
])) :
|
|
227
|
-
f(c.$slots, "input-list", { open: t(
|
|
236
|
+
])) : d("", !0),
|
|
237
|
+
f(c.$slots, "input-list", { open: t(r) }, void 0, !0),
|
|
228
238
|
m("div", y({
|
|
229
239
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
230
240
|
style: { height: `${t(Q)}rem` }
|
|
@@ -240,14 +250,14 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
240
250
|
"list--with-conditions": e.withConditions
|
|
241
251
|
}]
|
|
242
252
|
}), [
|
|
243
|
-
!t(_).length && !e.loading && !e.withConditions ? (
|
|
253
|
+
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li", ze, [
|
|
244
254
|
i(t(Y), y({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
245
255
|
default: u(() => [
|
|
246
|
-
T(
|
|
256
|
+
T(U(e.noResultsText), 1)
|
|
247
257
|
]),
|
|
248
258
|
_: 1
|
|
249
259
|
}, 16)
|
|
250
|
-
])) :
|
|
260
|
+
])) : d("", !0),
|
|
251
261
|
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 1 }, () => [
|
|
252
262
|
m("li", null, [
|
|
253
263
|
i(t(q), y(
|
|
@@ -261,7 +271,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
261
271
|
},
|
|
262
272
|
t(g)[t(p).SELECT_ALL],
|
|
263
273
|
{
|
|
264
|
-
onClick: l[5] || (l[5] =
|
|
274
|
+
onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
|
|
265
275
|
}
|
|
266
276
|
), {
|
|
267
277
|
default: u(() => [
|
|
@@ -270,17 +280,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
270
280
|
_: 1
|
|
271
281
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
272
282
|
])
|
|
273
|
-
], !0) :
|
|
274
|
-
t(x).length && !e.loading ? (
|
|
283
|
+
], !0) : d("", !0),
|
|
284
|
+
t(x).length && !e.loading ? (a(!0), s(ke, { key: 2 }, he(t(x), ({ data: o, index: w }) => (a(), s("li", {
|
|
275
285
|
key: w,
|
|
276
286
|
"aria-selected": t(A)(C(t(h)), o),
|
|
277
287
|
"aria-disabled": !!e.disabled,
|
|
278
|
-
onClick:
|
|
288
|
+
onClick: G(() => t(D)(o, w), ["stop"])
|
|
279
289
|
}, [
|
|
280
290
|
e.groupedOptions && t(ce)(o) ? f(c.$slots, "group-option", { key: 0 }, () => [
|
|
281
|
-
i(
|
|
291
|
+
i(Be, null, {
|
|
282
292
|
default: u(() => [
|
|
283
|
-
T(
|
|
293
|
+
T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
284
294
|
]),
|
|
285
295
|
_: 2
|
|
286
296
|
}, 1024)
|
|
@@ -290,13 +300,13 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
290
300
|
index: w,
|
|
291
301
|
selected: t(A)(C(t(h)), o),
|
|
292
302
|
active: C(t(P)) === w,
|
|
293
|
-
disabled: o[
|
|
303
|
+
disabled: o[n.disabledOptionKey]
|
|
294
304
|
}, () => [
|
|
295
305
|
i(t(q), {
|
|
296
306
|
option: o,
|
|
297
307
|
"selected-prop": t(A)(t(h), o),
|
|
298
308
|
active: C(t(P)) === w,
|
|
299
|
-
disabled: o[
|
|
309
|
+
disabled: o[n.disabledOptionKey],
|
|
300
310
|
"name-key": e.optionNameKey,
|
|
301
311
|
"image-key": e.optionImageKey,
|
|
302
312
|
"icon-key": e.optionIconKey,
|
|
@@ -310,18 +320,18 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
310
320
|
"is-multi": e.multi
|
|
311
321
|
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
|
|
312
322
|
], !0)
|
|
313
|
-
], 8,
|
|
314
|
-
e.loading || e.loadMoreLoading ? (
|
|
323
|
+
], 8, $e))), 128)) : d("", !0),
|
|
324
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", Me, [
|
|
315
325
|
i(t(S), { round: "" }),
|
|
316
326
|
i(t(S), { round: "" }),
|
|
317
327
|
i(t(S), { round: "" }),
|
|
318
328
|
i(t(S), { round: "" })
|
|
319
|
-
])) :
|
|
329
|
+
])) : d("", !0)
|
|
320
330
|
], 16)
|
|
321
331
|
], 16),
|
|
322
|
-
e.multi ? (
|
|
332
|
+
e.multi ? (a(), s("div", We, [
|
|
323
333
|
m("div", He, [
|
|
324
|
-
i(t(
|
|
334
|
+
i(t(O), y(
|
|
325
335
|
{
|
|
326
336
|
ref_key: "clearAll",
|
|
327
337
|
ref: ue,
|
|
@@ -341,10 +351,10 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
341
351
|
}, 16)
|
|
342
352
|
]),
|
|
343
353
|
m("div", Ue, [
|
|
344
|
-
i(t(
|
|
354
|
+
i(t(O), y(
|
|
345
355
|
{
|
|
346
356
|
ref_key: "cancel",
|
|
347
|
-
ref:
|
|
357
|
+
ref: se,
|
|
348
358
|
size: "small",
|
|
349
359
|
variant: "outlined",
|
|
350
360
|
color: "primary"
|
|
@@ -357,7 +367,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
357
367
|
]),
|
|
358
368
|
_: 1
|
|
359
369
|
}, 16, ["onClick"]),
|
|
360
|
-
i(t(
|
|
370
|
+
i(t(O), y({
|
|
361
371
|
ref_key: "apply",
|
|
362
372
|
ref: de,
|
|
363
373
|
"data-testid": "mutli-apply",
|
|
@@ -370,17 +380,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
370
380
|
_: 1
|
|
371
381
|
}, 16, ["onClick"])
|
|
372
382
|
])
|
|
373
|
-
])) :
|
|
374
|
-
], 34)) :
|
|
375
|
-
], 6)) :
|
|
383
|
+
])) : d("", !0)
|
|
384
|
+
], 34)) : d("", !0)
|
|
385
|
+
], 6)) : d("", !0)
|
|
376
386
|
]),
|
|
377
387
|
_: 3
|
|
378
388
|
})
|
|
379
389
|
]),
|
|
380
390
|
default: u(() => [
|
|
381
391
|
m("div", {
|
|
382
|
-
class:
|
|
383
|
-
"button__container--open": !!t(
|
|
392
|
+
class: E(["button__container", {
|
|
393
|
+
"button__container--open": !!t(r),
|
|
384
394
|
[`button__container--${e.size}`]: !0,
|
|
385
395
|
"button__container--disabled": e.disabled
|
|
386
396
|
}])
|
|
@@ -391,21 +401,21 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
391
401
|
}, [
|
|
392
402
|
f(c.$slots, "dropdown-trigger", {
|
|
393
403
|
buttonTriggerProps: {
|
|
394
|
-
open: t(
|
|
404
|
+
open: t(r),
|
|
395
405
|
disabled: e.disabled,
|
|
396
406
|
label: t(oe) || e.placeholder,
|
|
397
407
|
onClick: () => t(I)()
|
|
398
408
|
},
|
|
399
409
|
defaultTriggerProps: {
|
|
400
410
|
placeholder: e.placeholder,
|
|
401
|
-
open: t(
|
|
411
|
+
open: t(r),
|
|
402
412
|
label: e.triggerLabel,
|
|
403
413
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
404
414
|
mandatory: e.mandatory,
|
|
405
415
|
testId: e.testId,
|
|
406
416
|
multi: e.multi,
|
|
407
417
|
disabled: e.disabled,
|
|
408
|
-
selectedOption: e.multi ? t(
|
|
418
|
+
selectedOption: e.multi ? t(L) : t(h),
|
|
409
419
|
displayValue: e.displayValue,
|
|
410
420
|
options: e.options,
|
|
411
421
|
optionNameKey: e.optionNameKey,
|
|
@@ -423,20 +433,20 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
423
433
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
424
434
|
allSelected: t(K),
|
|
425
435
|
onKeydown: t(N),
|
|
426
|
-
onClick:
|
|
436
|
+
onClick: W
|
|
427
437
|
}
|
|
428
438
|
}, () => [
|
|
429
|
-
t($) ? (
|
|
430
|
-
(
|
|
439
|
+
t($) ? (a(), s("div", Ve, [
|
|
440
|
+
(a(), X(be(t($)), {
|
|
431
441
|
placeholder: e.placeholder,
|
|
432
|
-
open: t(
|
|
442
|
+
open: t(r),
|
|
433
443
|
label: e.triggerLabel,
|
|
434
444
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
435
445
|
mandatory: e.mandatory,
|
|
436
446
|
"test-id": e.testId,
|
|
437
447
|
multi: e.multi,
|
|
438
448
|
disabled: e.disabled,
|
|
439
|
-
"selected-option": e.multi ? t(
|
|
449
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
440
450
|
"display-value": e.displayValue,
|
|
441
451
|
options: e.options,
|
|
442
452
|
"option-name-key": e.optionNameKey,
|
|
@@ -454,47 +464,47 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
454
464
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
455
465
|
"all-selected": t(K),
|
|
456
466
|
onKeydown: t(N),
|
|
457
|
-
onClick:
|
|
467
|
+
onClick: W,
|
|
458
468
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
459
469
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
460
|
-
])) :
|
|
461
|
-
e.predefinedTrigger === t(k).ICON_BUTTON ? (
|
|
462
|
-
i(t(
|
|
470
|
+
])) : d("", !0),
|
|
471
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div", xe, [
|
|
472
|
+
i(t(Ie), {
|
|
463
473
|
onClick: l[1] || (l[1] = (o) => t(I)())
|
|
464
474
|
})
|
|
465
|
-
])) :
|
|
466
|
-
e.predefinedTrigger === t(k).CHIP ? (
|
|
467
|
-
i(t(
|
|
468
|
-
open: t(
|
|
475
|
+
])) : d("", !0),
|
|
476
|
+
e.predefinedTrigger === t(k).CHIP ? (a(), s("div", De, [
|
|
477
|
+
i(t(ve), {
|
|
478
|
+
open: t(r),
|
|
469
479
|
label: e.placeholder,
|
|
470
480
|
"test-id": e.testId,
|
|
471
481
|
options: e.options,
|
|
472
|
-
"selected-option": e.multi ? t(
|
|
482
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
473
483
|
"display-value": e.displayValue,
|
|
474
484
|
multi: e.multi,
|
|
475
485
|
"all-selected": t(K),
|
|
476
486
|
onClick: l[2] || (l[2] = (o) => t(I)()),
|
|
477
487
|
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
478
488
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
479
|
-
])) :
|
|
489
|
+
])) : d("", !0)
|
|
480
490
|
], !0)
|
|
481
491
|
], 512)
|
|
482
492
|
], 2)
|
|
483
493
|
]),
|
|
484
494
|
_: 3
|
|
485
495
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
486
|
-
e.triggerFeedbackText ? (
|
|
496
|
+
e.triggerFeedbackText ? (a(), X(Oe, {
|
|
487
497
|
key: 0,
|
|
488
498
|
text: e.triggerFeedbackText,
|
|
489
499
|
variant: e.triggerFeedbackVariant,
|
|
490
500
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
491
501
|
"test-id": e.testId,
|
|
492
502
|
class: "dropdown-field-help-text"
|
|
493
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
503
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
494
504
|
])
|
|
495
|
-
], 16,
|
|
505
|
+
], 16, Fe));
|
|
496
506
|
}
|
|
497
507
|
});
|
|
498
508
|
export {
|
|
499
|
-
|
|
509
|
+
kt as default
|
|
500
510
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TreeDropdown.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TreeDropdown.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4ba9e4bd"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|