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

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