@ironsource/shared-ui 2.1.12-rc.0 → 2.1.12-rc.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/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/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_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 +208 -200
- package/components/dropdown/common/useGroupedOptions.d.ts +1 -0
- package/components/dropdown/common/useGroupedOptions.js +40 -39
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +10 -7
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +80 -80
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +97 -86
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +30 -0
- package/components/dropdown/v4/index.d.ts +20 -1
- 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 +88 -44
- package/index.js +102 -100
- 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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_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_8e026669_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/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_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 },
|
|
@@ -56,6 +56,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
56
56
|
keepOpen: { type: Boolean, default: !1 },
|
|
57
57
|
autoSize: { type: Boolean, default: !1 },
|
|
58
58
|
disableKeyboardEvents: { type: Boolean, default: !1 },
|
|
59
|
+
dynamicFilterMode: { type: Boolean, default: !1 },
|
|
59
60
|
isOnTop: { type: Boolean, default: !1 },
|
|
60
61
|
distance: { default: 0 },
|
|
61
62
|
container: { default: "body" },
|
|
@@ -103,7 +104,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
103
104
|
},
|
|
104
105
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
105
106
|
setup(e, { expose: j, emit: B }) {
|
|
106
|
-
const
|
|
107
|
+
const n = e, F = {
|
|
107
108
|
MULTILINE_LIST_HEIGHT: 48,
|
|
108
109
|
LIST_HEIGHT: 32 + 4,
|
|
109
110
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -112,7 +113,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
112
113
|
VERSION: 4
|
|
113
114
|
}, {
|
|
114
115
|
onKeydown: b,
|
|
115
|
-
open:
|
|
116
|
+
open: r,
|
|
116
117
|
toggleMenu: I,
|
|
117
118
|
onButtonKeydown: N,
|
|
118
119
|
query: v,
|
|
@@ -127,7 +128,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
127
128
|
virtualOptions: x,
|
|
128
129
|
isSelected: A,
|
|
129
130
|
selectedOption: h,
|
|
130
|
-
selectedOptionPrevious:
|
|
131
|
+
selectedOptionPrevious: L,
|
|
131
132
|
selectedValue: oe,
|
|
132
133
|
onSelect: D,
|
|
133
134
|
activeIndex: P,
|
|
@@ -137,20 +138,30 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
137
138
|
listRef: ae,
|
|
138
139
|
buttonRef: R,
|
|
139
140
|
apply: de,
|
|
140
|
-
cancel:
|
|
141
|
-
el:
|
|
141
|
+
cancel: se,
|
|
142
|
+
el: re,
|
|
142
143
|
onClearAllSelections: z,
|
|
143
144
|
clearAll: ue,
|
|
144
145
|
isGroup: ce
|
|
145
|
-
} =
|
|
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 = () => {
|
|
146
157
|
I();
|
|
147
158
|
};
|
|
148
159
|
return j({
|
|
149
160
|
selectItem: D,
|
|
150
161
|
scrollTo: ne
|
|
151
|
-
}), (c, l) => (
|
|
162
|
+
}), (c, l) => (a(), s("div", y({
|
|
152
163
|
ref_key: "el",
|
|
153
|
-
ref:
|
|
164
|
+
ref: re,
|
|
154
165
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
155
166
|
tabindex: e.disabled ? -1 : 0
|
|
156
167
|
}, t(g)[t(p).WRAPPER], {
|
|
@@ -158,8 +169,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
158
169
|
(...o) => t(b) && t(b)(...o))
|
|
159
170
|
}), [
|
|
160
171
|
f(c.$slots, "label", {}, void 0, !0),
|
|
161
|
-
m("div",
|
|
162
|
-
i(t(
|
|
172
|
+
m("div", Ne, [
|
|
173
|
+
i(t(Ke), y({
|
|
163
174
|
theme: e.theme,
|
|
164
175
|
"popper-class": [
|
|
165
176
|
e.popperClass,
|
|
@@ -172,33 +183,33 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
172
183
|
distance: e.distance,
|
|
173
184
|
flip: e.flip,
|
|
174
185
|
triggers: [],
|
|
175
|
-
shown: !!t(
|
|
186
|
+
shown: !!t(r),
|
|
176
187
|
"auto-hide": !1,
|
|
177
188
|
container: e.container,
|
|
178
189
|
"auto-size": e.autoSize
|
|
179
190
|
}, t(g)[t(p).TRIGGER]), {
|
|
180
191
|
popper: u(() => [
|
|
181
|
-
i(
|
|
192
|
+
i(pe, null, {
|
|
182
193
|
default: u(() => [
|
|
183
|
-
t(
|
|
194
|
+
t(r) ? (a(), s("div", {
|
|
184
195
|
key: 0,
|
|
185
196
|
ref_key: "listRef",
|
|
186
197
|
ref: ae,
|
|
187
|
-
class:
|
|
198
|
+
class: E(["light-theme-v4", {
|
|
188
199
|
"dropdown--disabled": e.disabled,
|
|
189
200
|
"inline-search": e.inlineSearch
|
|
190
201
|
}]),
|
|
191
|
-
style:
|
|
202
|
+
style: ge({ width: t(ye) })
|
|
192
203
|
}, [
|
|
193
|
-
t(
|
|
204
|
+
t(r) ? (a(), s("div", {
|
|
194
205
|
key: 0,
|
|
195
|
-
class:
|
|
206
|
+
class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
196
207
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
197
208
|
(...o) => t(b) && t(b)(...o))
|
|
198
209
|
}, [
|
|
199
|
-
t(
|
|
210
|
+
t(r) && e.inlineSearch ? (a(), s("div", Pe, [
|
|
200
211
|
e.withConditions ? f(c.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
201
|
-
m("div",
|
|
212
|
+
m("div", Re, [
|
|
202
213
|
i(t(Y), { variant: "body2" }, {
|
|
203
214
|
default: u(() => [
|
|
204
215
|
T("Conditions")
|
|
@@ -206,12 +217,12 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
206
217
|
_: 1
|
|
207
218
|
})
|
|
208
219
|
])
|
|
209
|
-
], !0) :
|
|
220
|
+
], !0) : d("", !0),
|
|
210
221
|
f(c.$slots, "inline-search", {}, () => [
|
|
211
|
-
i(t(
|
|
222
|
+
i(t(Se), {
|
|
212
223
|
modelValue: t(v),
|
|
213
224
|
"onUpdate:modelValue": [
|
|
214
|
-
l[4] || (l[4] = (o) =>
|
|
225
|
+
l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
|
|
215
226
|
e.onClearSearch
|
|
216
227
|
],
|
|
217
228
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -222,8 +233,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
222
233
|
onKeydown: t(b)
|
|
223
234
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
224
235
|
], !0)
|
|
225
|
-
])) :
|
|
226
|
-
f(c.$slots, "input-list", { open: t(
|
|
236
|
+
])) : d("", !0),
|
|
237
|
+
f(c.$slots, "input-list", { open: t(r) }, void 0, !0),
|
|
227
238
|
m("div", y({
|
|
228
239
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
229
240
|
style: { height: `${t(Q)}rem` }
|
|
@@ -239,14 +250,14 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
239
250
|
"list--with-conditions": e.withConditions
|
|
240
251
|
}]
|
|
241
252
|
}), [
|
|
242
|
-
!t(_).length && !e.loading && !e.withConditions ? (
|
|
253
|
+
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li", ze, [
|
|
243
254
|
i(t(Y), y({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
244
255
|
default: u(() => [
|
|
245
|
-
T(
|
|
256
|
+
T(U(e.noResultsText), 1)
|
|
246
257
|
]),
|
|
247
258
|
_: 1
|
|
248
259
|
}, 16)
|
|
249
|
-
])) :
|
|
260
|
+
])) : d("", !0),
|
|
250
261
|
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 1 }, () => [
|
|
251
262
|
m("li", null, [
|
|
252
263
|
i(t(q), y(
|
|
@@ -260,7 +271,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
260
271
|
},
|
|
261
272
|
t(g)[t(p).SELECT_ALL],
|
|
262
273
|
{
|
|
263
|
-
onClick: l[5] || (l[5] =
|
|
274
|
+
onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
|
|
264
275
|
}
|
|
265
276
|
), {
|
|
266
277
|
default: u(() => [
|
|
@@ -269,17 +280,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
269
280
|
_: 1
|
|
270
281
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
271
282
|
])
|
|
272
|
-
], !0) :
|
|
273
|
-
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", {
|
|
274
285
|
key: w,
|
|
275
286
|
"aria-selected": t(A)(C(t(h)), o),
|
|
276
287
|
"aria-disabled": !!e.disabled,
|
|
277
|
-
onClick:
|
|
288
|
+
onClick: G(() => t(D)(o, w), ["stop"])
|
|
278
289
|
}, [
|
|
279
290
|
e.groupedOptions && t(ce)(o) ? f(c.$slots, "group-option", { key: 0 }, () => [
|
|
280
|
-
i(
|
|
291
|
+
i(Be, null, {
|
|
281
292
|
default: u(() => [
|
|
282
|
-
T(
|
|
293
|
+
T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
283
294
|
]),
|
|
284
295
|
_: 2
|
|
285
296
|
}, 1024)
|
|
@@ -289,13 +300,13 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
289
300
|
index: w,
|
|
290
301
|
selected: t(A)(C(t(h)), o),
|
|
291
302
|
active: C(t(P)) === w,
|
|
292
|
-
disabled: o[
|
|
303
|
+
disabled: o[n.disabledOptionKey]
|
|
293
304
|
}, () => [
|
|
294
305
|
i(t(q), {
|
|
295
306
|
option: o,
|
|
296
307
|
"selected-prop": t(A)(t(h), o),
|
|
297
308
|
active: C(t(P)) === w,
|
|
298
|
-
disabled: o[
|
|
309
|
+
disabled: o[n.disabledOptionKey],
|
|
299
310
|
"name-key": e.optionNameKey,
|
|
300
311
|
"image-key": e.optionImageKey,
|
|
301
312
|
"icon-key": e.optionIconKey,
|
|
@@ -309,18 +320,18 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
309
320
|
"is-multi": e.multi
|
|
310
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"])
|
|
311
322
|
], !0)
|
|
312
|
-
], 8,
|
|
313
|
-
e.loading || e.loadMoreLoading ? (
|
|
323
|
+
], 8, $e))), 128)) : d("", !0),
|
|
324
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", Me, [
|
|
314
325
|
i(t(S), { round: "" }),
|
|
315
326
|
i(t(S), { round: "" }),
|
|
316
327
|
i(t(S), { round: "" }),
|
|
317
328
|
i(t(S), { round: "" })
|
|
318
|
-
])) :
|
|
329
|
+
])) : d("", !0)
|
|
319
330
|
], 16)
|
|
320
331
|
], 16),
|
|
321
|
-
e.multi ? (
|
|
332
|
+
e.multi ? (a(), s("div", We, [
|
|
322
333
|
m("div", He, [
|
|
323
|
-
i(t(
|
|
334
|
+
i(t(O), y(
|
|
324
335
|
{
|
|
325
336
|
ref_key: "clearAll",
|
|
326
337
|
ref: ue,
|
|
@@ -340,10 +351,10 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
340
351
|
}, 16)
|
|
341
352
|
]),
|
|
342
353
|
m("div", Ue, [
|
|
343
|
-
i(t(
|
|
354
|
+
i(t(O), y(
|
|
344
355
|
{
|
|
345
356
|
ref_key: "cancel",
|
|
346
|
-
ref:
|
|
357
|
+
ref: se,
|
|
347
358
|
size: "small",
|
|
348
359
|
variant: "outlined",
|
|
349
360
|
color: "primary"
|
|
@@ -356,7 +367,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
356
367
|
]),
|
|
357
368
|
_: 1
|
|
358
369
|
}, 16, ["onClick"]),
|
|
359
|
-
i(t(
|
|
370
|
+
i(t(O), y({
|
|
360
371
|
ref_key: "apply",
|
|
361
372
|
ref: de,
|
|
362
373
|
"data-testid": "mutli-apply",
|
|
@@ -369,17 +380,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
369
380
|
_: 1
|
|
370
381
|
}, 16, ["onClick"])
|
|
371
382
|
])
|
|
372
|
-
])) :
|
|
373
|
-
], 34)) :
|
|
374
|
-
], 6)) :
|
|
383
|
+
])) : d("", !0)
|
|
384
|
+
], 34)) : d("", !0)
|
|
385
|
+
], 6)) : d("", !0)
|
|
375
386
|
]),
|
|
376
387
|
_: 3
|
|
377
388
|
})
|
|
378
389
|
]),
|
|
379
390
|
default: u(() => [
|
|
380
391
|
m("div", {
|
|
381
|
-
class:
|
|
382
|
-
"button__container--open": !!t(
|
|
392
|
+
class: E(["button__container", {
|
|
393
|
+
"button__container--open": !!t(r),
|
|
383
394
|
[`button__container--${e.size}`]: !0,
|
|
384
395
|
"button__container--disabled": e.disabled
|
|
385
396
|
}])
|
|
@@ -390,21 +401,21 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
390
401
|
}, [
|
|
391
402
|
f(c.$slots, "dropdown-trigger", {
|
|
392
403
|
buttonTriggerProps: {
|
|
393
|
-
open: t(
|
|
404
|
+
open: t(r),
|
|
394
405
|
disabled: e.disabled,
|
|
395
406
|
label: t(oe) || e.placeholder,
|
|
396
407
|
onClick: () => t(I)()
|
|
397
408
|
},
|
|
398
409
|
defaultTriggerProps: {
|
|
399
410
|
placeholder: e.placeholder,
|
|
400
|
-
open: t(
|
|
411
|
+
open: t(r),
|
|
401
412
|
label: e.triggerLabel,
|
|
402
413
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
403
414
|
mandatory: e.mandatory,
|
|
404
415
|
testId: e.testId,
|
|
405
416
|
multi: e.multi,
|
|
406
417
|
disabled: e.disabled,
|
|
407
|
-
selectedOption: e.multi ? t(
|
|
418
|
+
selectedOption: e.multi ? t(L) : t(h),
|
|
408
419
|
displayValue: e.displayValue,
|
|
409
420
|
options: e.options,
|
|
410
421
|
optionNameKey: e.optionNameKey,
|
|
@@ -422,20 +433,20 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
422
433
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
423
434
|
allSelected: t(K),
|
|
424
435
|
onKeydown: t(N),
|
|
425
|
-
onClick:
|
|
436
|
+
onClick: W
|
|
426
437
|
}
|
|
427
438
|
}, () => [
|
|
428
|
-
t($) ? (
|
|
429
|
-
(
|
|
439
|
+
t($) ? (a(), s("div", Ve, [
|
|
440
|
+
(a(), X(be(t($)), {
|
|
430
441
|
placeholder: e.placeholder,
|
|
431
|
-
open: t(
|
|
442
|
+
open: t(r),
|
|
432
443
|
label: e.triggerLabel,
|
|
433
444
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
434
445
|
mandatory: e.mandatory,
|
|
435
446
|
"test-id": e.testId,
|
|
436
447
|
multi: e.multi,
|
|
437
448
|
disabled: e.disabled,
|
|
438
|
-
"selected-option": e.multi ? t(
|
|
449
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
439
450
|
"display-value": e.displayValue,
|
|
440
451
|
options: e.options,
|
|
441
452
|
"option-name-key": e.optionNameKey,
|
|
@@ -453,47 +464,47 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
453
464
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
454
465
|
"all-selected": t(K),
|
|
455
466
|
onKeydown: t(N),
|
|
456
|
-
onClick:
|
|
467
|
+
onClick: W,
|
|
457
468
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
458
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"]))
|
|
459
|
-
])) :
|
|
460
|
-
e.predefinedTrigger === t(k).ICON_BUTTON ? (
|
|
461
|
-
i(t(
|
|
470
|
+
])) : d("", !0),
|
|
471
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div", xe, [
|
|
472
|
+
i(t(Ie), {
|
|
462
473
|
onClick: l[1] || (l[1] = (o) => t(I)())
|
|
463
474
|
})
|
|
464
|
-
])) :
|
|
465
|
-
e.predefinedTrigger === t(k).CHIP ? (
|
|
466
|
-
i(t(
|
|
467
|
-
open: t(
|
|
475
|
+
])) : d("", !0),
|
|
476
|
+
e.predefinedTrigger === t(k).CHIP ? (a(), s("div", De, [
|
|
477
|
+
i(t(ve), {
|
|
478
|
+
open: t(r),
|
|
468
479
|
label: e.placeholder,
|
|
469
480
|
"test-id": e.testId,
|
|
470
481
|
options: e.options,
|
|
471
|
-
"selected-option": e.multi ? t(
|
|
482
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
472
483
|
"display-value": e.displayValue,
|
|
473
484
|
multi: e.multi,
|
|
474
485
|
"all-selected": t(K),
|
|
475
486
|
onClick: l[2] || (l[2] = (o) => t(I)()),
|
|
476
487
|
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
477
488
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
478
|
-
])) :
|
|
489
|
+
])) : d("", !0)
|
|
479
490
|
], !0)
|
|
480
491
|
], 512)
|
|
481
492
|
], 2)
|
|
482
493
|
]),
|
|
483
494
|
_: 3
|
|
484
495
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
485
|
-
e.triggerFeedbackText ? (
|
|
496
|
+
e.triggerFeedbackText ? (a(), X(Oe, {
|
|
486
497
|
key: 0,
|
|
487
498
|
text: e.triggerFeedbackText,
|
|
488
499
|
variant: e.triggerFeedbackVariant,
|
|
489
500
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
490
501
|
"test-id": e.testId,
|
|
491
502
|
class: "dropdown-field-help-text"
|
|
492
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
503
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
493
504
|
])
|
|
494
|
-
], 16,
|
|
505
|
+
], 16, Fe));
|
|
495
506
|
}
|
|
496
507
|
});
|
|
497
508
|
export {
|
|
498
|
-
|
|
509
|
+
kt as default
|
|
499
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
|
};
|