@ironsource/shared-ui 2.1.8-test.1 → 2.1.9-test.0

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 (46) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
  3. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_119e4bc3_lang.css +1 -0
  5. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  6. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +1 -0
  7. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
  8. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +1 -0
  9. package/components/chart/Chart.vue.d.ts +5 -0
  10. package/components/chart/Chart.vue.js +4 -4
  11. package/components/chart/Chart.vue2.js +51 -49
  12. package/components/chart/ChartHeader.vue.d.ts +5 -0
  13. package/components/chart/ChartHeader.vue.js +2 -2
  14. package/components/chart/ChartHeader.vue2.js +35 -22
  15. package/components/chart/ChartLegend.vue.js +3 -3
  16. package/components/chart/ChartLegend.vue2.js +35 -28
  17. package/components/chart/SettingsHeader.vue.js +3 -3
  18. package/components/chart/SettingsHeader.vue2.js +33 -26
  19. package/components/chart/index.d.ts +20 -1
  20. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  21. package/components/dropdown/common/Dropdown.common.js +207 -178
  22. package/components/dropdown/common/consts.d.ts +1 -0
  23. package/components/dropdown/common/consts.js +4 -0
  24. package/components/dropdown/common/useGroupedOptions.d.ts +10 -0
  25. package/components/dropdown/common/useGroupedOptions.js +57 -0
  26. package/components/dropdown/v4/DropdownV4.vue.d.ts +12 -0
  27. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  28. package/components/dropdown/v4/DropdownV4.vue2.js +184 -162
  29. package/components/dropdown/v4/GroupOption.vue.d.ts +9 -0
  30. package/components/dropdown/v4/GroupOption.vue.js +7 -0
  31. package/components/dropdown/v4/GroupOption.vue2.js +29 -0
  32. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  33. package/components/dropdown/v4/index.d.ts +45 -1
  34. package/components/typography/v4/Typography.vue.js +2 -2
  35. package/components/typography/v4/Typography.vue2.js +1 -1
  36. package/index.d.ts +90 -3
  37. package/index.js +111 -116
  38. package/mocks/apps.d.ts +7 -0
  39. package/package.json +1 -1
  40. package/utils/formatNumbers.js +7 -15
  41. package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
  42. package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
  43. package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
  44. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +0 -1
  45. package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
  46. package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +0 -1
@@ -1,39 +1,40 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as se, computed as H, openBlock as i, createElementBlock as n, mergeProps as u, unref as t, renderSlot as I, createElementVNode as m, createVNode as a, withCtx as c, Transition as ue, normalizeClass as K, normalizeStyle as ce, isRef as ye, createCommentVNode as r, createTextVNode as T, toDisplayString as fe, withModifiers as U, Fragment as me, renderList as pe, toRaw as w, createBlock as W, resolveDynamicComponent as ge } from "vue";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_119e4bc3_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ce, computed as G, openBlock as i, createElementBlock as a, mergeProps as c, unref as t, renderSlot as T, createElementVNode as m, createVNode as n, withCtx as s, Transition as ye, normalizeClass as K, normalizeStyle as fe, createTextVNode as p, createCommentVNode as d, isRef as me, toDisplayString as U, withModifiers as W, Fragment as pe, renderList as ge, toRaw as I, createBlock as M, resolveDynamicComponent as Te } from "vue";
2
2
  import L 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 "./DropdownV4.vue.js";
6
- import Te from "./DefaultDropdownTrigger.vue.js";
6
+ import ke from "./DefaultDropdownTrigger.vue.js";
7
7
  import be from "./IconButtonDropdownTrigger.vue.js";
8
- import ke from "./ChipDropdownTrigger.vue.js";
9
- import he from "./AppDropdownTrigger.vue.js";
8
+ import he from "./ChipDropdownTrigger.vue.js";
9
+ import we from "./AppDropdownTrigger.vue.js";
10
10
  import "./ButtonDropdownTrigger.vue.js";
11
11
  import "./ButtonFilterDropdownTrigger.vue.js";
12
12
  import "./TreeDropdown.vue.js";
13
- import M from "./OptionV4.vue.js";
13
+ import X from "./OptionV4.vue.js";
14
14
  import Ie from "../../search/v4/SearchV4.vue.js";
15
- import G from "../../typography/v4/Typography.vue.js";
16
- import { Dropdown as we } from "floating-vue";
15
+ import O from "../../typography/v4/Typography.vue.js";
16
+ import { Dropdown as ve } from "floating-vue";
17
17
  import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
18
- import { dropdownCommon as ve } from "../common/Dropdown.common.js";
19
- import Ce from "../../loader/v4/Loader.vue.js";
20
- import { useTestIdAttrs as Se } from "../../../utils/testIds.js";
21
- import { TRIGGERS as p } from "./Dropdown.types.js";
22
- import { useElementSize as Ae } from "@vueuse/core";
23
- import Ke from "../../shared/FieldHelpText.vue.js";
24
- const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, Ve = {
18
+ import { dropdownCommon as Ce } from "../common/Dropdown.common.js";
19
+ import Se from "../../loader/v4/Loader.vue.js";
20
+ import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
21
+ import { TRIGGERS as k } from "./Dropdown.types.js";
22
+ import { useElementSize as Ke } from "@vueuse/core";
23
+ import Le from "../../shared/FieldHelpText.vue.js";
24
+ import Oe from "./GroupOption.vue.js";
25
+ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, Fe = { key: 2 }, De = {
25
26
  key: 0,
26
27
  class: "inline-search-wrapper"
27
- }, Fe = {
28
+ }, Pe = { class: "dropdown-conditions" }, Re = {
28
29
  key: 0,
29
30
  class: "no-result-container"
30
- }, De = {
31
+ }, ze = {
31
32
  key: 1,
32
33
  class: "loader"
33
- }, Pe = { key: 2 }, Re = ["aria-selected", "aria-disabled", "onClick"], ze = {
34
+ }, xe = { key: 2 }, $e = ["aria-selected", "aria-disabled", "onClick"], He = {
34
35
  key: 1,
35
36
  class: "actions-wrapper"
36
- }, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, ct = /* @__PURE__ */ se({
37
+ }, Ge = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, pt = /* @__PURE__ */ ce({
37
38
  __name: "DropdownV4",
38
39
  props: {
39
40
  modelValue: { default: null },
@@ -65,7 +66,7 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
65
66
  triggerShowAllSelectedText: { type: Boolean, default: !0 },
66
67
  size: { default: "medium" },
67
68
  mandatory: { type: Boolean, default: !1 },
68
- predefinedTrigger: { default: p.DEFAULT },
69
+ predefinedTrigger: { default: k.DEFAULT },
69
70
  inlineSearch: { type: Boolean, default: !1 },
70
71
  inlineSearchPlaceholder: { default: "Search" },
71
72
  onSearch: { type: Function, default: null },
@@ -83,16 +84,18 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
83
84
  disabledOptionKey: { default: "disabled" },
84
85
  optionTwoLinesVariant: { default: void 0 },
85
86
  optionTwoLinesKey: { default: void 0 },
87
+ groupedOptions: { type: Boolean, default: !1 },
86
88
  theme: { default: "light-theme-v4" },
87
89
  fullWidth: { type: Boolean, default: !0 },
88
90
  optionsListWidth: { default: null },
89
91
  statusType: { default: null },
90
92
  disableVirtualScroll: { type: Boolean, default: !1 },
91
- overrideOptionCountCalculation: { type: Function, default: null }
93
+ overrideOptionCountCalculation: { type: Function, default: null },
94
+ withConditions: { type: Boolean, default: !1 }
92
95
  },
93
96
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
94
- setup(e, { expose: X, emit: E }) {
95
- const d = e, O = {
97
+ setup(e, { expose: q, emit: E }) {
98
+ const r = e, B = {
96
99
  MULTILINE_LIST_HEIGHT: 48,
97
100
  LIST_HEIGHT: 32 + 4,
98
101
  MAX_NUMBER_OF_OPTIONS: 7.5,
@@ -100,53 +103,54 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
100
103
  DROPLIST_MIN_WIDTH: 240,
101
104
  VERSION: 4
102
105
  }, {
103
- onKeydown: b,
104
- open: s,
106
+ onKeydown: h,
107
+ open: u,
105
108
  toggleMenu: v,
106
- onButtonKeydown: B,
109
+ onButtonKeydown: N,
107
110
  query: C,
108
- containerProps: q,
109
- calculateTableHeight: Y,
110
- wrapperProps: j,
111
- filteredOptions: J,
112
- allSelected: N,
113
- isIndeterminate: Q,
114
- onSelectAll: Z,
115
- virtualOptions: V,
111
+ containerProps: Y,
112
+ calculateTableHeight: j,
113
+ wrapperProps: J,
114
+ filteredOptions: Q,
115
+ allSelected: V,
116
+ isIndeterminate: Z,
117
+ onSelectAll: _,
118
+ virtualOptions: F,
116
119
  isSelected: S,
117
- selectedOption: g,
120
+ selectedOption: b,
118
121
  selectedOptionPrevious: A,
119
- selectedValue: _,
120
- onSelect: F,
121
- activeIndex: D,
122
- onCancel: ee,
123
- onApply: te,
124
- scrollTo: oe,
125
- listRef: le,
126
- buttonRef: P,
127
- apply: ie,
128
- cancel: ne,
129
- el: ae,
130
- onClearAllSelections: R,
131
- clearAll: de
132
- } = ve(d, E, O), f = Se(d.testId, y), z = H(() => !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT ? Te : d.predefinedTrigger === p.APP ? he : null), { width: x } = Ae(P), re = H(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT || d.predefinedTrigger === p.APP ? x.value - 2 > 240 ? `${x.value - 2}px` : `${O.DROPLIST_MIN_WIDTH}px` : "auto"), $ = () => {
122
+ selectedValue: ee,
123
+ onSelect: D,
124
+ activeIndex: P,
125
+ onCancel: te,
126
+ onApply: oe,
127
+ scrollTo: le,
128
+ listRef: ie,
129
+ buttonRef: R,
130
+ apply: ne,
131
+ cancel: ae,
132
+ el: de,
133
+ onClearAllSelections: z,
134
+ clearAll: re,
135
+ isGroup: se
136
+ } = Ce(r, E, B), f = Ae(r.testId, y), x = G(() => !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT ? ke : r.predefinedTrigger === k.APP ? we : null), { width: $ } = Ke(R), ue = G(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT || r.predefinedTrigger === k.APP ? $.value - 2 > 240 ? `${$.value - 2}px` : `${B.DROPLIST_MIN_WIDTH}px` : "auto"), H = () => {
133
137
  v();
134
138
  };
135
- return X({
136
- selectItem: F,
137
- scrollTo: oe
138
- }), (k, l) => (i(), n("div", u({
139
+ return q({
140
+ selectItem: D,
141
+ scrollTo: le
142
+ }), (g, l) => (i(), a("div", c({
139
143
  ref_key: "el",
140
- ref: ae,
144
+ ref: de,
141
145
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
142
146
  tabindex: e.disabled ? -1 : 0
143
147
  }, t(f)[t(y).WRAPPER], {
144
148
  onKeydown: l[8] || (l[8] = //@ts-ignore
145
- (...o) => t(b) && t(b)(...o))
149
+ (...o) => t(h) && t(h)(...o))
146
150
  }), [
147
- I(k.$slots, "label", {}, void 0, !0),
148
- m("div", Ee, [
149
- a(t(we), u({
151
+ T(g.$slots, "label", {}, void 0, !0),
152
+ m("div", Be, [
153
+ n(t(ve), c({
150
154
  theme: e.theme,
151
155
  "popper-class": [
152
156
  e.popperClass,
@@ -159,36 +163,46 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
159
163
  distance: e.distance,
160
164
  flip: e.flip,
161
165
  triggers: [],
162
- shown: !!t(s),
166
+ shown: !!t(u),
163
167
  "auto-hide": !1,
164
168
  container: e.container,
165
169
  "auto-size": e.autoSize
166
170
  }, t(f)[t(y).TRIGGER]), {
167
- popper: c(() => [
168
- a(ue, null, {
169
- default: c(() => [
170
- t(s) ? (i(), n("div", {
171
+ popper: s(() => [
172
+ n(ye, null, {
173
+ default: s(() => [
174
+ t(u) ? (i(), a("div", {
171
175
  key: 0,
172
176
  ref_key: "listRef",
173
- ref: le,
177
+ ref: ie,
174
178
  class: K(["light-theme-v4", {
175
179
  "dropdown--disabled": e.disabled,
176
180
  "inline-search": e.inlineSearch
177
181
  }]),
178
- style: ce({ width: t(re) })
182
+ style: fe({ width: t(ue) })
179
183
  }, [
180
- t(s) ? (i(), n("div", {
184
+ t(u) ? (i(), a("div", {
181
185
  key: 0,
182
186
  class: K(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
183
187
  onKeydown: l[7] || (l[7] = //@ts-ignore
184
- (...o) => t(b) && t(b)(...o))
188
+ (...o) => t(h) && t(h)(...o))
185
189
  }, [
186
- t(s) && e.inlineSearch ? (i(), n("div", Ve, [
187
- I(k.$slots, "inline-search", {}, () => [
188
- a(t(Ie), {
190
+ t(u) && (e.inlineSearch || e.withConditions) ? (i(), a("div", De, [
191
+ e.withConditions ? T(g.$slots, "dropdown-conditions", { key: 0 }, () => [
192
+ m("div", Pe, [
193
+ n(t(O), { variant: "body2" }, {
194
+ default: s(() => [
195
+ p("Conditions")
196
+ ]),
197
+ _: 1
198
+ })
199
+ ])
200
+ ], !0) : d("", !0),
201
+ T(g.$slots, "inline-search", {}, () => [
202
+ n(t(Ie), {
189
203
  modelValue: t(C),
190
204
  "onUpdate:modelValue": [
191
- l[4] || (l[4] = (o) => ye(C) ? C.value = o : null),
205
+ l[4] || (l[4] = (o) => me(C) ? C.value = o : null),
192
206
  e.onClear
193
207
  ],
194
208
  placeholder: e.inlineSearchPlaceholder,
@@ -196,77 +210,85 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
196
210
  size: "md",
197
211
  "auto-focus": e.searchAutoFocus,
198
212
  "test-id": e.testId,
199
- onKeydown: t(b)
213
+ onKeydown: t(h)
200
214
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
201
215
  ], !0)
202
- ])) : r("", !0),
203
- I(k.$slots, "input-list", { open: t(s) }, void 0, !0),
204
- m("div", u({
216
+ ])) : d("", !0),
217
+ T(g.$slots, "input-list", { open: t(u) }, void 0, !0),
218
+ m("div", c({
205
219
  class: ["list-container", { "list-container--multi": e.multi }],
206
- style: { height: `${t(Y)}rem` }
220
+ style: { height: `${t(j)}rem` }
207
221
  }, {
208
- ...t(q),
222
+ ...t(Y),
209
223
  ...t(f)[t(y).LIST_CONTAINER]
210
224
  }), [
211
- m("ul", u(t(j), {
225
+ m("ul", c(t(J), {
212
226
  role: "listbox",
213
227
  class: ["list", { "list--multi": e.multi }]
214
228
  }), [
215
- !t(J).length && !e.loading ? (i(), n("li", Fe, [
216
- a(t(G), u({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
217
- default: c(() => [
218
- T(fe(e.noResultsText), 1)
229
+ !t(Q).length && !e.loading ? (i(), a("li", Re, [
230
+ n(t(O), c({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
231
+ default: s(() => [
232
+ p(U(e.noResultsText), 1)
219
233
  ]),
220
234
  _: 1
221
235
  }, 16)
222
- ])) : r("", !0),
223
- e.loading ? (i(), n("li", De, [
224
- a(t(Ce)),
225
- a(t(G), null, {
226
- default: c(() => [
227
- T("Loading...")
236
+ ])) : d("", !0),
237
+ e.loading ? (i(), a("li", ze, [
238
+ n(t(Se)),
239
+ n(t(O), null, {
240
+ default: s(() => [
241
+ p("Loading...")
228
242
  ]),
229
243
  _: 1
230
244
  })
231
- ])) : r("", !0),
232
- e.showSelectAll !== !1 && e.multi ? (i(), n("li", Pe, [
233
- a(t(M), u(
245
+ ])) : d("", !0),
246
+ e.showSelectAll !== !1 && e.multi && !t(C) ? (i(), a("li", xe, [
247
+ n(t(X), c(
234
248
  {
235
- "aria-selected": t(N),
249
+ "aria-selected": t(V),
236
250
  "aria-disabled": !!e.disabled,
237
- "selected-prop": t(N),
238
- "is-indeterminate": t(Q),
251
+ "selected-prop": t(V),
252
+ "is-indeterminate": t(Z),
239
253
  "select-all-option": ""
240
254
  },
241
255
  t(f)[t(y).SELECT_ALL],
242
256
  {
243
- onClick: l[5] || (l[5] = U((o) => t(Z)(), ["stop"]))
257
+ onClick: l[5] || (l[5] = W((o) => t(_)(), ["stop"]))
244
258
  }
245
259
  ), {
246
- default: c(() => [
247
- T("Select all ")
260
+ default: s(() => [
261
+ p("Select all ")
248
262
  ]),
249
263
  _: 1
250
264
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
251
- ])) : r("", !0),
252
- t(V).length && !e.loading ? (i(!0), n(me, { key: 3 }, pe(t(V), ({ data: o, index: h }) => (i(), n("li", {
253
- key: h,
254
- "aria-selected": t(S)(w(t(g)), o),
265
+ ])) : d("", !0),
266
+ t(F).length && !e.loading ? (i(!0), a(pe, { key: 3 }, ge(t(F), ({ data: o, index: w }) => (i(), a("li", {
267
+ key: w,
268
+ "aria-selected": t(S)(I(t(b)), o),
255
269
  "aria-disabled": !!e.disabled,
256
- onClick: U(() => t(F)(o, h), ["stop"])
270
+ onClick: W(() => t(D)(o, w), ["stop"])
257
271
  }, [
258
- I(k.$slots, "default", {
272
+ e.groupedOptions && t(se)(o) ? T(g.$slots, "group-option", { key: 0 }, () => [
273
+ n(Oe, null, {
274
+ default: s(() => [
275
+ p(U(e.displayValue(o) || o[e.optionNameKey]), 1)
276
+ ]),
277
+ _: 2
278
+ }, 1024)
279
+ ], !0) : T(g.$slots, "default", {
280
+ key: 1,
259
281
  option: o,
260
- index: h,
261
- selected: t(S)(w(t(g)), o),
262
- active: w(t(D)) === h,
263
- disabled: o[d.disabledOptionKey]
282
+ index: w,
283
+ selected: t(S)(I(t(b)), o),
284
+ active: I(t(P)) === w,
285
+ disabled: o[r.disabledOptionKey]
264
286
  }, () => [
265
- a(t(M), {
287
+ n(t(X), {
266
288
  option: o,
267
- "selected-prop": t(S)(w(t(g)), o),
268
- active: w(t(D)) === h,
269
- disabled: o[d.disabledOptionKey],
289
+ "selected-prop": t(S)(I(t(b)), o),
290
+ active: I(t(P)) === w,
291
+ disabled: o[r.disabledOptionKey],
270
292
  "name-key": e.optionNameKey,
271
293
  "image-key": e.optionImageKey,
272
294
  "icon-key": e.optionIconKey,
@@ -277,96 +299,96 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
277
299
  "option-two-lines-key": e.optionTwoLinesKey
278
300
  }, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-two-lines-variant", "option-two-lines-key"])
279
301
  ], !0)
280
- ], 8, Re))), 128)) : r("", !0)
302
+ ], 8, $e))), 128)) : d("", !0)
281
303
  ], 16)
282
304
  ], 16),
283
- e.multi ? (i(), n("div", ze, [
284
- m("div", xe, [
285
- a(t(L), u(
305
+ e.multi ? (i(), a("div", He, [
306
+ m("div", Ge, [
307
+ n(t(L), c(
286
308
  {
287
309
  ref_key: "clearAll",
288
- ref: de,
310
+ ref: re,
289
311
  size: "small",
290
312
  variant: "text",
291
313
  color: "primary"
292
314
  },
293
315
  t(f)[t(y).ACTION_CLEAR_ALL],
294
316
  {
295
- onClick: l[6] || (l[6] = () => t(R)(!1))
317
+ onClick: l[6] || (l[6] = () => t(z)(!1))
296
318
  }
297
319
  ), {
298
- default: c(() => [
299
- T(" Clear all ")
320
+ default: s(() => [
321
+ p(" Clear all ")
300
322
  ]),
301
323
  _: 1
302
324
  }, 16)
303
325
  ]),
304
- m("div", $e, [
305
- a(t(L), u(
326
+ m("div", Ue, [
327
+ n(t(L), c(
306
328
  {
307
329
  ref_key: "cancel",
308
- ref: ne,
330
+ ref: ae,
309
331
  size: "small",
310
332
  variant: "outlined",
311
333
  color: "primary"
312
334
  },
313
335
  t(f)[t(y).ACTION_CANCEL],
314
- { onClick: t(ee) }
336
+ { onClick: t(te) }
315
337
  ), {
316
- default: c(() => [
317
- T(" Cancel ")
338
+ default: s(() => [
339
+ p(" Cancel ")
318
340
  ]),
319
341
  _: 1
320
342
  }, 16, ["onClick"]),
321
- a(t(L), u({
343
+ n(t(L), c({
322
344
  ref_key: "apply",
323
- ref: ie,
345
+ ref: ne,
324
346
  "data-testid": "mutli-apply",
325
347
  size: "small",
326
348
  class: "apply-button"
327
- }, t(f)[t(y).ACTION_APPLY], { onClick: t(te) }), {
328
- default: c(() => [
329
- T("Apply ")
349
+ }, t(f)[t(y).ACTION_APPLY], { onClick: t(oe) }), {
350
+ default: s(() => [
351
+ p("Apply ")
330
352
  ]),
331
353
  _: 1
332
354
  }, 16, ["onClick"])
333
355
  ])
334
- ])) : r("", !0)
335
- ], 34)) : r("", !0)
336
- ], 6)) : r("", !0)
356
+ ])) : d("", !0)
357
+ ], 34)) : d("", !0)
358
+ ], 6)) : d("", !0)
337
359
  ]),
338
360
  _: 3
339
361
  })
340
362
  ]),
341
- default: c(() => [
363
+ default: s(() => [
342
364
  m("div", {
343
365
  class: K(["button__container", {
344
- "button__container--open": !!t(s),
366
+ "button__container--open": !!t(u),
345
367
  [`button__container--${e.size}`]: !0,
346
368
  "button__container--disabled": e.disabled
347
369
  }])
348
370
  }, [
349
371
  m("div", {
350
372
  ref_key: "buttonRef",
351
- ref: P
373
+ ref: R
352
374
  }, [
353
- I(k.$slots, "dropdown-trigger", {
375
+ T(g.$slots, "dropdown-trigger", {
354
376
  buttonTriggerProps: {
355
- open: t(s),
377
+ open: t(u),
356
378
  disabled: e.disabled,
357
- label: t(_) || e.placeholder,
379
+ label: t(ee) || e.placeholder,
358
380
  onClick: () => t(v)()
359
381
  },
360
382
  defaultTriggerProps: {
361
383
  placeholder: e.placeholder,
362
- open: t(s),
384
+ open: t(u),
363
385
  label: e.triggerLabel,
364
386
  showFeedbackIcon: e.triggerFeedbackShowIcon,
365
387
  mandatory: e.mandatory,
366
388
  testId: e.testId,
367
389
  multi: e.multi,
368
390
  disabled: e.disabled,
369
- selectedOption: e.multi ? t(A) : t(g),
391
+ selectedOption: e.multi ? t(A) : t(b),
370
392
  displayValue: e.displayValue,
371
393
  options: e.options,
372
394
  optionNameKey: e.optionNameKey,
@@ -380,21 +402,21 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
380
402
  statusDotType: e.statusType,
381
403
  size: e.size,
382
404
  showAllSelectedText: e.triggerShowAllSelectedText,
383
- onKeydown: t(B),
384
- onClick: $
405
+ onKeydown: t(N),
406
+ onClick: H
385
407
  }
386
408
  }, () => [
387
- t(z) ? (i(), n("div", Oe, [
388
- (i(), W(ge(t(z)), {
409
+ t(x) ? (i(), a("div", Ne, [
410
+ (i(), M(Te(t(x)), {
389
411
  placeholder: e.placeholder,
390
- open: t(s),
412
+ open: t(u),
391
413
  label: e.triggerLabel,
392
414
  "show-feedback-icon": e.triggerFeedbackShowIcon,
393
415
  mandatory: e.mandatory,
394
416
  "test-id": e.testId,
395
417
  multi: e.multi,
396
418
  disabled: e.disabled,
397
- "selected-option": e.multi ? t(A) : t(g),
419
+ "selected-option": e.multi ? t(A) : t(b),
398
420
  "display-value": e.displayValue,
399
421
  options: e.options,
400
422
  "option-name-key": e.optionNameKey,
@@ -408,47 +430,47 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
408
430
  "status-dot-type": e.statusType,
409
431
  size: e.size,
410
432
  "show-all-selected-text": e.triggerShowAllSelectedText,
411
- onKeydown: t(B),
412
- onClick: $,
433
+ onKeydown: t(N),
434
+ onClick: H,
413
435
  onCopyToClipboard: l[0] || (l[0] = (o) => E("copyToClipboard"))
414
436
  }, 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", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "onKeydown"]))
415
- ])) : r("", !0),
416
- e.predefinedTrigger === t(p).ICON_BUTTON ? (i(), n("div", Be, [
417
- a(t(be), {
437
+ ])) : d("", !0),
438
+ e.predefinedTrigger === t(k).ICON_BUTTON ? (i(), a("div", Ve, [
439
+ n(t(be), {
418
440
  onClick: l[1] || (l[1] = (o) => t(v)())
419
441
  })
420
- ])) : r("", !0),
421
- e.predefinedTrigger === t(p).CHIP ? (i(), n("div", Ne, [
422
- a(t(ke), {
423
- open: t(s),
442
+ ])) : d("", !0),
443
+ e.predefinedTrigger === t(k).CHIP ? (i(), a("div", Fe, [
444
+ n(t(he), {
445
+ open: t(u),
424
446
  label: e.placeholder,
425
447
  "test-id": e.testId,
426
448
  options: e.options,
427
- "selected-option": e.multi ? t(A) : t(g),
449
+ "selected-option": e.multi ? t(A) : t(b),
428
450
  "display-value": e.displayValue,
429
451
  multi: e.multi,
430
452
  onClick: l[2] || (l[2] = (o) => t(v)()),
431
- onClear: l[3] || (l[3] = (o) => t(R)())
453
+ onClear: l[3] || (l[3] = (o) => t(z)())
432
454
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
433
- ])) : r("", !0)
455
+ ])) : d("", !0)
434
456
  ], !0)
435
457
  ], 512)
436
458
  ], 2)
437
459
  ]),
438
460
  _: 3
439
461
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
440
- e.triggerFeedbackText ? (i(), W(Ke, {
462
+ e.triggerFeedbackText ? (i(), M(Le, {
441
463
  key: 0,
442
464
  text: e.triggerFeedbackText,
443
465
  variant: e.triggerFeedbackVariant,
444
466
  "show-icon": e.triggerFeedbackShowIcon,
445
467
  "test-id": e.testId,
446
468
  class: "dropdown-field-help-text"
447
- }, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
469
+ }, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
448
470
  ])
449
- ], 16, Le));
471
+ ], 16, Ee));
450
472
  }
451
473
  });
452
474
  export {
453
- ct as default
475
+ pt as default
454
476
  };
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./GroupOption.vue2.js";
2
+ /* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css"; //*');
4
+ const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-5f372a81"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,29 @@
1
+ import "../../../GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css"; import { defineComponent as i, ref as l, openBlock as f, createElementBlock as s, withModifiers as a, unref as o, createVNode as u, withCtx as m, renderSlot as d } from "vue";
2
+ import { NOOP as r } from "@vue/shared";
3
+ import c from "../../typography/v4/Typography.vue.js";
4
+ const y = /* @__PURE__ */ i({
5
+ __name: "GroupOption",
6
+ setup(_) {
7
+ const t = l(null);
8
+ return (n, e) => (f(), s("div", {
9
+ ref_key: "el",
10
+ ref: t,
11
+ class: "group-option",
12
+ onClick: e[0] || (e[0] = a(
13
+ //@ts-ignore
14
+ (...p) => o(r) && o(r)(...p),
15
+ ["stop"]
16
+ ))
17
+ }, [
18
+ u(c, { variant: "h5" }, {
19
+ default: m(() => [
20
+ d(n.$slots, "default", {}, void 0, !0)
21
+ ]),
22
+ _: 3
23
+ })
24
+ ], 512));
25
+ }
26
+ });
27
+ export {
28
+ y as default
29
+ };