@ironsource/shared-ui 2.1.12-rc.21 → 2.1.12-rc.22

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.
Files changed (48) hide show
  1. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
  2. package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_lang.css +1 -0
  4. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
  5. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
  6. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  7. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  8. package/components/chart/ChartStoryArgs.d.ts +1 -1
  9. package/components/dateRange/common/DateServices.common.d.ts +6 -0
  10. package/components/dateRange/common/DateServices.common.js +87 -92
  11. package/components/dateRange/common/consts.common.d.ts +5 -0
  12. package/components/dateRange/common/consts.common.js +9 -3
  13. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  14. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  15. package/components/dateRange/v3/index.d.ts +7 -7
  16. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  17. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  18. package/components/dateRange/v4/index.d.ts +7 -7
  19. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  20. package/components/dropdown/common/Dropdown.common.js +44 -43
  21. package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
  22. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  23. package/components/dropdown/v4/DropdownV4.vue2.js +218 -189
  24. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  25. package/components/dropdown/v4/OptionV4.vue2.js +71 -68
  26. package/components/dropdown/v4/index.d.ts +39 -1
  27. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  28. package/components/switch/v4/SwitchV4.vue.js +3 -3
  29. package/components/switch/v4/SwitchV4.vue2.js +25 -23
  30. package/components/switch/v4/index.d.ts +11 -0
  31. package/components/table/common/Table.common.d.ts +0 -1
  32. package/components/table/common/Table.common.js +38 -39
  33. package/components/table/common/Table.types.d.ts +2 -0
  34. package/components/table/common/consts.d.ts +1 -0
  35. package/components/table/common/consts.js +2 -1
  36. package/components/table/v4/DataGrid.vue.d.ts +10 -1
  37. package/components/table/v4/DataGrid.vue.js +4 -4
  38. package/components/table/v4/DataGrid.vue2.js +294 -237
  39. package/components/table/v4/index.d.ts +34 -1
  40. package/components/table/v4/storyUtils.d.ts +2 -0
  41. package/index.d.ts +182 -18
  42. package/index.js +1 -1
  43. package/package.json +1 -1
  44. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
  45. package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +0 -1
  46. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
  47. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
  48. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
@@ -1,42 +1,42 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as me, computed as H, watch as pe, openBlock as a, createElementBlock as s, mergeProps as f, unref as t, renderSlot as y, createElementVNode as m, createVNode as i, withCtx as u, Transition as ge, normalizeClass as E, normalizeStyle as ke, createTextVNode as k, createCommentVNode as d, isRef as Te, toDisplayString as U, withModifiers as G, Fragment as he, renderList as we, toRaw as C, createSlots as be, createBlock as X, resolveDynamicComponent as Ie } from "vue";
2
- import O from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as Te, computed as E, watch as he, toRaw as I, openBlock as d, createElementBlock as r, mergeProps as f, unref as t, renderSlot as m, createElementVNode as p, createVNode as a, withCtx as u, Transition as be, normalizeClass as B, normalizeStyle as we, createTextVNode as h, createCommentVNode as s, isRef as Ie, toDisplayString as U, withModifiers as X, Fragment as ve, renderList as Se, createSlots as Ce, createBlock as q, resolveDynamicComponent as Ke } from "vue";
2
+ import x 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 ve from "./DefaultDropdownTrigger.vue.js";
8
- import Ce from "./IconButtonDropdownTrigger.vue.js";
9
- import Se from "./ChipDropdownTrigger.vue.js";
10
- import Ke from "./AppDropdownTrigger.vue.js";
7
+ import Ae from "./DefaultDropdownTrigger.vue.js";
8
+ import Oe from "./IconButtonDropdownTrigger.vue.js";
9
+ import Le from "./ChipDropdownTrigger.vue.js";
10
+ import Ee from "./AppDropdownTrigger.vue.js";
11
11
  import "./ButtonDropdownTrigger.vue.js";
12
12
  import "./ButtonFilterDropdownTrigger.vue.js";
13
13
  import "./TreeDropdown.vue.js";
14
- import q from "./OptionV4.vue.js";
14
+ import Y from "./OptionV4.vue.js";
15
15
  import "./ConditionalDropdown.vue.js";
16
- import Ae from "../../search/v4/SearchV4.vue.js";
17
- import Y from "../../typography/v4/Typography.vue.js";
18
- import { Dropdown as Le } from "floating-vue";
19
- import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
20
- import { dropdownCommon as Ee } from "../common/Dropdown.common.js";
21
- import S from "../../skeleton/v4/SkeletonV4.vue.js";
22
- import { useTestIdAttrs as Oe } from "../../../utils/testIds.js";
23
- import { TRIGGERS as T } from "./Dropdown.types.js";
24
- import { useElementSize as Be } from "@vueuse/core";
25
- import Fe from "../../shared/FieldHelpText.vue.js";
26
- import Ne from "./GroupOption.vue.js";
27
- const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe = { key: 1 }, Re = { key: 2 }, ze = {
16
+ import Be from "../../search/v4/SearchV4.vue.js";
17
+ import j from "../../typography/v4/Typography.vue.js";
18
+ import { Dropdown as xe } from "floating-vue";
19
+ import { DropdownTestIdModifiers as g } from "../../../testids/index.js";
20
+ import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
21
+ import C from "../../skeleton/v4/SkeletonV4.vue.js";
22
+ import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
23
+ import { TRIGGERS as b } from "./Dropdown.types.js";
24
+ import { useElementSize as De } from "@vueuse/core";
25
+ import Ve from "../../shared/FieldHelpText.vue.js";
26
+ import Pe from "./GroupOption.vue.js";
27
+ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me = { key: 1 }, We = { key: 2 }, Ge = {
28
28
  key: 0,
29
29
  class: "inline-search-wrapper"
30
- }, $e = { class: "dropdown-conditions" }, We = {
30
+ }, He = { class: "dropdown-conditions" }, Ue = {
31
31
  key: 0,
32
32
  class: "no-result-container"
33
- }, Me = ["aria-selected", "aria-disabled", "onClick"], He = {
33
+ }, Xe = ["aria-selected", "aria-disabled", "onClick"], qe = {
34
34
  key: 3,
35
35
  class: "loader"
36
- }, Ue = {
36
+ }, Ye = {
37
37
  key: 1,
38
38
  class: "actions-wrapper"
39
- }, Ge = { class: "actions-clear-all" }, Xe = { class: "actions-apply-cancel" }, wt = /* @__PURE__ */ me({
39
+ }, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, St = /* @__PURE__ */ Te({
40
40
  __name: "DropdownV4",
41
41
  props: {
42
42
  modelValue: { default: null },
@@ -57,6 +57,8 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
57
57
  autoSize: { type: Boolean, default: !1 },
58
58
  disableKeyboardEvents: { type: Boolean, default: !1 },
59
59
  dynamicFilterMode: { type: Boolean, default: !1 },
60
+ minSelections: { default: 0 },
61
+ maxSelections: { default: null },
60
62
  isOnTop: { type: Boolean, default: !1 },
61
63
  distance: { default: 0 },
62
64
  container: { default: "body" },
@@ -71,7 +73,7 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
71
73
  triggerShowAllSelectedText: { type: Boolean, default: !0 },
72
74
  size: { default: "medium" },
73
75
  mandatory: { type: Boolean, default: !1 },
74
- predefinedTrigger: { default: T.DEFAULT },
76
+ predefinedTrigger: { default: b.DEFAULT },
75
77
  inlineSearch: { type: Boolean, default: !1 },
76
78
  inlineSearchPlaceholder: { default: "Search" },
77
79
  onSearch: { type: Function, default: null },
@@ -104,8 +106,8 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
104
106
  withConditions: { type: Boolean, default: !1 }
105
107
  },
106
108
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
107
- setup(e, { expose: j, emit: B }) {
108
- const n = e, F = {
109
+ setup(e, { expose: J, emit: F }) {
110
+ const o = e, N = {
109
111
  MULTILINE_LIST_HEIGHT: 48,
110
112
  LIST_HEIGHT: 32 + 4,
111
113
  MAX_NUMBER_OF_OPTIONS: 7.5,
@@ -115,63 +117,87 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
115
117
  }, {
116
118
  onKeydown: w,
117
119
  open: c,
118
- toggleMenu: I,
119
- onButtonKeydown: N,
120
- query: v,
121
- containerProps: J,
122
- calculateTableHeight: Q,
123
- wrapperProps: Z,
124
- filteredOptions: _,
120
+ toggleMenu: v,
121
+ onButtonKeydown: D,
122
+ query: S,
123
+ containerProps: Q,
124
+ calculateTableHeight: Z,
125
+ wrapperProps: _,
126
+ filteredOptions: ee,
125
127
  allSelected: V,
126
128
  allSelectedApplied: K,
127
- isIndeterminate: ee,
128
- onSelectAll: te,
129
- virtualOptions: D,
129
+ isIndeterminate: te,
130
+ onSelectAll: oe,
131
+ virtualOptions: P,
130
132
  isSelected: A,
131
- selectedOption: h,
132
- selectedOptionPrevious: L,
133
- selectedValue: oe,
134
- onSelect: P,
135
- activeIndex: x,
136
- onCancel: le,
137
- onApply: ie,
138
- scrollTo: ne,
139
- listRef: ae,
140
- buttonRef: R,
141
- apply: de,
142
- cancel: se,
143
- el: re,
144
- onClearAllSelections: z,
145
- clearAll: ue,
146
- isGroup: ce
147
- } = Ee(n, B, F), g = Oe(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT ? ve : n.predefinedTrigger === T.APP ? Ke : null), { width: W } = Be(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT || n.predefinedTrigger === T.APP ? W.value - 2 > 240 ? `${W.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
148
- pe(
149
- () => n.optionsListWidth,
133
+ selectedOption: T,
134
+ selectedOptionPrevious: O,
135
+ selectedValue: ne,
136
+ onSelect: R,
137
+ activeIndex: z,
138
+ onCancel: ie,
139
+ onApply: le,
140
+ scrollTo: ae,
141
+ listRef: de,
142
+ buttonRef: $,
143
+ apply: se,
144
+ cancel: re,
145
+ el: ue,
146
+ onClearAllSelections: M,
147
+ clearAll: ce,
148
+ isGroup: ye,
149
+ flattenAndMarkGroupOptions: me
150
+ } = Fe(o, F, N), k = Ne(o.testId, g), W = E(() => !o.predefinedTrigger || o.predefinedTrigger === b.DEFAULT ? Ae : o.predefinedTrigger === b.APP ? Ee : null), { width: G } = De($), fe = E(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === b.DEFAULT || o.predefinedTrigger === b.APP ? G.value - 2 > 240 ? `${G.value - 2}px` : `${N.DROPLIST_MIN_WIDTH}px` : "auto");
151
+ he(
152
+ () => o.optionsListWidth,
150
153
  () => {
151
- n.optionsListWidth && document.documentElement.style.setProperty(
154
+ o.optionsListWidth && document.documentElement.style.setProperty(
152
155
  "--options-list-width",
153
- n.optionsListWidth
156
+ o.optionsListWidth
154
157
  );
155
158
  }
156
159
  );
157
- const M = () => {
158
- I();
159
- };
160
- return j({
161
- selectItem: P,
162
- scrollTo: ne
163
- }), (r, l) => (a(), s("div", f({
160
+ const H = () => {
161
+ v();
162
+ }, pe = E(() => {
163
+ if (o.multi && o.comparingKey) {
164
+ const i = I(T.value);
165
+ if (o.minSelections || o.maxSelections) {
166
+ if (Array.isArray(i) && i.length <= o.minSelections)
167
+ return i.map((l) => l[o.comparingKey]);
168
+ if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
169
+ const l = i.map(
170
+ (y) => y[o.comparingKey]
171
+ );
172
+ return (o.groupedOptions ? me(o.options) : o.options).map((y) => {
173
+ if (!l.includes(y[o.comparingKey]))
174
+ return y[o.comparingKey];
175
+ });
176
+ }
177
+ }
178
+ }
179
+ return [];
180
+ }), ge = (i) => {
181
+ if ((o.minSelections || o.maxSelections) && o.comparingKey)
182
+ return pe.value.includes(
183
+ i[o.comparingKey]
184
+ );
185
+ }, L = (i) => i[o.disabledOptionKey] || ge(i);
186
+ return J({
187
+ selectItem: R,
188
+ scrollTo: ae
189
+ }), (i, l) => (d(), r("div", f({
164
190
  ref_key: "el",
165
- ref: re,
191
+ ref: ue,
166
192
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
167
193
  tabindex: e.disabled ? -1 : 0
168
- }, t(g)[t(p).WRAPPER], {
194
+ }, t(k)[t(g).WRAPPER], {
169
195
  onKeydown: l[8] || (l[8] = //@ts-ignore
170
- (...o) => t(w) && t(w)(...o))
196
+ (...n) => t(w) && t(w)(...n))
171
197
  }), [
172
- y(r.$slots, "label", {}, void 0, !0),
173
- m("div", De, [
174
- i(t(Le), f({
198
+ m(i.$slots, "label", {}, void 0, !0),
199
+ p("div", ze, [
200
+ a(t(xe), f({
175
201
  theme: e.theme,
176
202
  "popper-class": [
177
203
  e.popperClass,
@@ -188,42 +214,42 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
188
214
  "auto-hide": !1,
189
215
  container: e.container,
190
216
  "auto-size": e.autoSize
191
- }, t(g)[t(p).TRIGGER]), {
217
+ }, t(k)[t(g).TRIGGER]), {
192
218
  popper: u(() => [
193
- i(ge, null, {
219
+ a(be, null, {
194
220
  default: u(() => [
195
- t(c) ? (a(), s("div", {
221
+ t(c) ? (d(), r("div", {
196
222
  key: 0,
197
223
  ref_key: "listRef",
198
- ref: ae,
199
- class: E(["light-theme-v4", {
224
+ ref: de,
225
+ class: B(["light-theme-v4", {
200
226
  "dropdown--disabled": e.disabled,
201
227
  "inline-search": e.inlineSearch
202
228
  }]),
203
- style: ke({ width: t(ye) })
229
+ style: we({ width: t(fe) })
204
230
  }, [
205
- t(c) ? (a(), s("div", {
231
+ t(c) ? (d(), r("div", {
206
232
  key: 0,
207
- class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
233
+ class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
208
234
  onKeydown: l[7] || (l[7] = //@ts-ignore
209
- (...o) => t(w) && t(w)(...o))
235
+ (...n) => t(w) && t(w)(...n))
210
236
  }, [
211
- t(c) && e.inlineSearch ? (a(), s("div", ze, [
212
- e.withConditions ? y(r.$slots, "dropdown-conditions", { key: 0 }, () => [
213
- m("div", $e, [
214
- i(t(Y), { variant: "body2" }, {
237
+ t(c) && e.inlineSearch ? (d(), r("div", Ge, [
238
+ e.withConditions ? m(i.$slots, "dropdown-conditions", { key: 0 }, () => [
239
+ p("div", He, [
240
+ a(t(j), { variant: "body2" }, {
215
241
  default: u(() => [
216
- k("Conditions")
242
+ h("Conditions")
217
243
  ]),
218
244
  _: 1
219
245
  })
220
246
  ])
221
- ], !0) : d("", !0),
222
- y(r.$slots, "inline-search", {}, () => [
223
- i(t(Ae), {
224
- modelValue: t(v),
247
+ ], !0) : s("", !0),
248
+ m(i.$slots, "inline-search", {}, () => [
249
+ a(t(Be), {
250
+ modelValue: t(S),
225
251
  "onUpdate:modelValue": [
226
- l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
252
+ l[4] || (l[4] = (n) => Ie(S) ? S.value = n : null),
227
253
  e.onClearSearch
228
254
  ],
229
255
  placeholder: e.inlineSearchPlaceholder,
@@ -234,80 +260,83 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
234
260
  onKeydown: t(w)
235
261
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
236
262
  ], !0)
237
- ])) : d("", !0),
238
- y(r.$slots, "input-list", { open: t(c) }, void 0, !0),
239
- m("div", f({
263
+ ])) : s("", !0),
264
+ m(i.$slots, "input-list", { open: t(c) }, void 0, !0),
265
+ p("div", f({
240
266
  class: ["list-container", { "list-container--multi": e.multi }],
241
- style: { height: `${t(Q)}rem` }
267
+ style: { height: `${t(Z)}rem` }
242
268
  }, {
243
- ...t(J),
244
- ...t(g)[t(p).LIST_CONTAINER]
269
+ ...t(Q),
270
+ ...t(k)[t(g).LIST_CONTAINER]
245
271
  }), [
246
- y(r.$slots, "custom-list-area", {}, void 0, !0),
247
- m("ul", f(t(Z), {
272
+ m(i.$slots, "custom-list-area", {}, void 0, !0),
273
+ p("ul", f(t(_), {
248
274
  role: "listbox",
249
275
  class: ["list", {
250
276
  "list--multi": e.multi,
251
277
  "list--with-conditions": e.withConditions
252
278
  }]
253
279
  }), [
254
- !t(_).length && !e.loading && !e.withConditions ? (a(), s("li", We, [
255
- i(t(Y), f({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
280
+ !t(ee).length && !e.loading && !e.withConditions ? (d(), r("li", Ue, [
281
+ a(t(j), f({ variant: "body2" }, t(k)[t(g).NO_RESULT]), {
256
282
  default: u(() => [
257
- k(U(e.noResultsText), 1)
283
+ h(U(e.noResultsText), 1)
258
284
  ]),
259
285
  _: 1
260
286
  }, 16)
261
- ])) : d("", !0),
262
- e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? y(r.$slots, "select-all", { key: 1 }, () => [
263
- m("li", null, [
264
- i(t(q), f(
287
+ ])) : s("", !0),
288
+ e.showSelectAll !== !1 && e.multi && !t(S) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? m(i.$slots, "select-all", { key: 1 }, () => [
289
+ p("li", null, [
290
+ a(t(Y), f(
265
291
  {
266
292
  "aria-selected": t(V),
267
293
  "aria-disabled": !!e.disabled,
268
294
  "selected-prop": t(V),
269
- "is-indeterminate": t(ee),
295
+ "is-indeterminate": t(te),
270
296
  "is-multi": e.multi,
271
297
  "select-all-option": ""
272
298
  },
273
- t(g)[t(p).SELECT_ALL],
299
+ t(k)[t(g).SELECT_ALL],
274
300
  {
275
- onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
301
+ onClick: l[5] || (l[5] = X((n) => t(oe)(), ["stop"]))
276
302
  }
277
303
  ), {
278
304
  default: u(() => [
279
- k(" Select all ")
305
+ h(" Select all ")
280
306
  ]),
281
307
  _: 1
282
308
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
283
309
  ])
284
- ], !0) : d("", !0),
285
- t(D).length && !e.loading ? (a(!0), s(he, { key: 2 }, we(t(D), ({ data: o, index: b }) => (a(), s("li", {
286
- key: b,
287
- "aria-selected": t(A)(C(t(h)), o),
310
+ ], !0) : s("", !0),
311
+ t(P).length && !e.loading ? (d(!0), r(ve, { key: 2 }, Se(t(P), ({ data: n, index: y }) => (d(), r("li", {
312
+ key: y,
313
+ "aria-selected": t(A)(I(t(T)), n),
288
314
  "aria-disabled": !!e.disabled,
289
- onClick: G(() => t(P)(o, b), ["stop"])
315
+ onClick: X(
316
+ () => !L(n) && t(R)(n, y),
317
+ ["stop"]
318
+ )
290
319
  }, [
291
- e.groupedOptions && t(ce)(o) ? y(r.$slots, "group-option", { key: 0 }, () => [
292
- i(Ne, null, {
320
+ e.groupedOptions && t(ye)(n) ? m(i.$slots, "group-option", { key: 0 }, () => [
321
+ a(Pe, null, {
293
322
  default: u(() => [
294
- k(U(e.displayValue(o) || o[e.optionNameKey]), 1)
323
+ h(U(e.displayValue(n) || n[e.optionNameKey]), 1)
295
324
  ]),
296
325
  _: 2
297
326
  }, 1024)
298
- ], !0) : y(r.$slots, "default", {
327
+ ], !0) : m(i.$slots, "default", {
299
328
  key: 1,
300
- option: o,
301
- index: b,
302
- selected: t(A)(C(t(h)), o),
303
- active: C(t(x)) === b,
304
- disabled: o[n.disabledOptionKey]
329
+ option: n,
330
+ index: y,
331
+ selected: t(A)(I(t(T)), n),
332
+ active: I(t(z)) === y,
333
+ disabled: L(n)
305
334
  }, () => [
306
- i(t(q), {
307
- option: o,
308
- "selected-prop": t(A)(t(h), o),
309
- active: C(t(x)) === b,
310
- disabled: o[n.disabledOptionKey],
335
+ a(t(Y), {
336
+ option: n,
337
+ "selected-prop": t(A)(t(T), n),
338
+ active: I(t(z)) === y,
339
+ disabled: L(n),
311
340
  "name-key": e.optionNameKey,
312
341
  "image-key": e.optionImageKey,
313
342
  "icon-key": e.optionIconKey,
@@ -320,101 +349,101 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
320
349
  "option-two-lines-variant": e.optionTwoLinesVariant,
321
350
  "option-two-lines-key": e.optionTwoLinesKey,
322
351
  "is-multi": e.multi
323
- }, be({ _: 2 }, [
324
- r.$slots["option-end"] ? {
352
+ }, Ce({ _: 2 }, [
353
+ i.$slots["option-end"] ? {
325
354
  name: "option-end",
326
- fn: u(({ option: fe }) => [
327
- y(r.$slots, "option-end", { option: fe }, void 0, !0)
355
+ fn: u(({ option: ke }) => [
356
+ m(i.$slots, "option-end", { option: ke }, void 0, !0)
328
357
  ]),
329
358
  key: "0"
330
359
  } : void 0
331
360
  ]), 1032, ["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", "warning-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
332
361
  ], !0)
333
- ], 8, Me))), 128)) : d("", !0),
334
- e.loading || e.loadMoreLoading ? (a(), s("li", He, [
335
- i(t(S), { round: "" }),
336
- i(t(S), { round: "" }),
337
- i(t(S), { round: "" }),
338
- i(t(S), { round: "" })
339
- ])) : d("", !0)
362
+ ], 8, Xe))), 128)) : s("", !0),
363
+ e.loading || e.loadMoreLoading ? (d(), r("li", qe, [
364
+ a(t(C), { round: "" }),
365
+ a(t(C), { round: "" }),
366
+ a(t(C), { round: "" }),
367
+ a(t(C), { round: "" })
368
+ ])) : s("", !0)
340
369
  ], 16)
341
370
  ], 16),
342
- e.multi ? (a(), s("div", Ue, [
343
- m("div", Ge, [
344
- i(t(O), f(
371
+ e.multi ? (d(), r("div", Ye, [
372
+ p("div", je, [
373
+ a(t(x), f(
345
374
  {
346
375
  ref_key: "clearAll",
347
- ref: ue,
376
+ ref: ce,
348
377
  size: "small",
349
378
  variant: "text",
350
379
  color: "primary"
351
380
  },
352
- t(g)[t(p).ACTION_CLEAR_ALL],
381
+ t(k)[t(g).ACTION_CLEAR_ALL],
353
382
  {
354
- onClick: l[6] || (l[6] = () => t(z)(!1))
383
+ onClick: l[6] || (l[6] = () => t(M)(!1))
355
384
  }
356
385
  ), {
357
386
  default: u(() => [
358
- k(" Clear all ")
387
+ h(" Clear all ")
359
388
  ]),
360
389
  _: 1
361
390
  }, 16)
362
391
  ]),
363
- m("div", Xe, [
364
- i(t(O), f(
392
+ p("div", Je, [
393
+ a(t(x), f(
365
394
  {
366
395
  ref_key: "cancel",
367
- ref: se,
396
+ ref: re,
368
397
  size: "small",
369
398
  variant: "outlined",
370
399
  color: "primary"
371
400
  },
372
- t(g)[t(p).ACTION_CANCEL],
373
- { onClick: t(le) }
401
+ t(k)[t(g).ACTION_CANCEL],
402
+ { onClick: t(ie) }
374
403
  ), {
375
404
  default: u(() => [
376
- k(" Cancel ")
405
+ h(" Cancel ")
377
406
  ]),
378
407
  _: 1
379
408
  }, 16, ["onClick"]),
380
- i(t(O), f({
409
+ a(t(x), f({
381
410
  ref_key: "apply",
382
- ref: de,
411
+ ref: se,
383
412
  "data-testid": "mutli-apply",
384
413
  size: "small",
385
414
  class: "apply-button"
386
- }, t(g)[t(p).ACTION_APPLY], { onClick: t(ie) }), {
415
+ }, t(k)[t(g).ACTION_APPLY], { onClick: t(le) }), {
387
416
  default: u(() => [
388
- k(" Apply ")
417
+ h(" Apply ")
389
418
  ]),
390
419
  _: 1
391
420
  }, 16, ["onClick"])
392
421
  ])
393
- ])) : d("", !0)
394
- ], 34)) : d("", !0)
395
- ], 6)) : d("", !0)
422
+ ])) : s("", !0)
423
+ ], 34)) : s("", !0)
424
+ ], 6)) : s("", !0)
396
425
  ]),
397
426
  _: 3
398
427
  })
399
428
  ]),
400
429
  default: u(() => [
401
- m("div", {
402
- class: E(["button__container", {
430
+ p("div", {
431
+ class: B(["button__container", {
403
432
  "button__container--open": !!t(c),
404
433
  [`button__container--${e.size}`]: !0,
405
434
  "button__container--disabled": e.disabled
406
435
  }])
407
436
  }, [
408
- m("div", {
437
+ p("div", {
409
438
  ref_key: "buttonRef",
410
- ref: R
439
+ ref: $
411
440
  }, [
412
- y(r.$slots, "dropdown-trigger", {
441
+ m(i.$slots, "dropdown-trigger", {
413
442
  buttonTriggerProps: {
414
443
  open: t(c),
415
444
  disabled: e.disabled,
416
- label: t(oe) || e.placeholder,
417
- onClick: () => t(I)()
445
+ label: t(ne) || e.placeholder,
446
+ onClick: () => t(v)()
418
447
  },
419
448
  defaultTriggerProps: {
420
449
  placeholder: e.placeholder,
@@ -425,7 +454,7 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
425
454
  testId: e.testId,
426
455
  multi: e.multi,
427
456
  disabled: e.disabled,
428
- selectedOption: e.multi ? t(L) : t(h),
457
+ selectedOption: e.multi ? t(O) : t(T),
429
458
  displayValue: e.displayValue,
430
459
  options: e.options,
431
460
  optionNameKey: e.optionNameKey,
@@ -442,12 +471,12 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
442
471
  size: e.size,
443
472
  showAllSelectedText: e.triggerShowAllSelectedText,
444
473
  allSelected: t(K),
445
- onKeydown: t(N),
446
- onClick: M
474
+ onKeydown: t(D),
475
+ onClick: H
447
476
  }
448
477
  }, () => [
449
- t($) ? (a(), s("div", Pe, [
450
- (a(), X(Ie(t($)), {
478
+ t(W) ? (d(), r("div", $e, [
479
+ (d(), q(Ke(t(W)), {
451
480
  placeholder: e.placeholder,
452
481
  open: t(c),
453
482
  label: e.triggerLabel,
@@ -456,7 +485,7 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
456
485
  "test-id": e.testId,
457
486
  multi: e.multi,
458
487
  disabled: e.disabled,
459
- "selected-option": e.multi ? t(L) : t(h),
488
+ "selected-option": e.multi ? t(O) : t(T),
460
489
  "display-value": e.displayValue,
461
490
  options: e.options,
462
491
  "option-name-key": e.optionNameKey,
@@ -473,48 +502,48 @@ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe
473
502
  size: e.size,
474
503
  "show-all-selected-text": e.triggerShowAllSelectedText,
475
504
  "all-selected": t(K),
476
- onKeydown: t(N),
477
- onClick: M,
478
- onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
505
+ onKeydown: t(D),
506
+ onClick: H,
507
+ onCopyToClipboard: l[0] || (l[0] = (n) => F("copyToClipboard"))
479
508
  }, 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"]))
480
- ])) : d("", !0),
481
- e.predefinedTrigger === t(T).ICON_BUTTON ? (a(), s("div", xe, [
482
- i(t(Ce), {
483
- onClick: l[1] || (l[1] = (o) => t(I)())
509
+ ])) : s("", !0),
510
+ e.predefinedTrigger === t(b).ICON_BUTTON ? (d(), r("div", Me, [
511
+ a(t(Oe), {
512
+ onClick: l[1] || (l[1] = (n) => t(v)())
484
513
  })
485
- ])) : d("", !0),
486
- e.predefinedTrigger === t(T).CHIP ? (a(), s("div", Re, [
487
- i(t(Se), {
514
+ ])) : s("", !0),
515
+ e.predefinedTrigger === t(b).CHIP ? (d(), r("div", We, [
516
+ a(t(Le), {
488
517
  open: t(c),
489
518
  label: e.placeholder,
490
519
  "test-id": e.testId,
491
520
  options: e.options,
492
- "selected-option": e.multi ? t(L) : t(h),
521
+ "selected-option": e.multi ? t(O) : t(T),
493
522
  "display-value": e.displayValue,
494
523
  multi: e.multi,
495
524
  "all-selected": t(K),
496
- onClick: l[2] || (l[2] = (o) => t(I)()),
497
- onClear: l[3] || (l[3] = (o) => t(z)())
525
+ onClick: l[2] || (l[2] = (n) => t(v)()),
526
+ onClear: l[3] || (l[3] = (n) => t(M)())
498
527
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
499
- ])) : d("", !0)
528
+ ])) : s("", !0)
500
529
  ], !0)
501
530
  ], 512)
502
531
  ], 2)
503
532
  ]),
504
533
  _: 3
505
534
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
506
- e.triggerFeedbackText ? (a(), X(Fe, {
535
+ e.triggerFeedbackText ? (d(), q(Ve, {
507
536
  key: 0,
508
537
  text: e.triggerFeedbackText,
509
538
  variant: e.triggerFeedbackVariant,
510
539
  "show-icon": e.triggerFeedbackShowIcon,
511
540
  "test-id": e.testId,
512
541
  class: "dropdown-field-help-text"
513
- }, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
542
+ }, null, 8, ["text", "variant", "show-icon", "test-id"])) : s("", !0)
514
543
  ])
515
- ], 16, Ve));
544
+ ], 16, Re));
516
545
  }
517
546
  });
518
547
  export {
519
- wt as default
548
+ St as default
520
549
  };