@ironsource/shared-ui 2.2.0-rc.42 → 2.2.0-rc.48

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 (91) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css +1 -0
  2. package/DataGridMenu.vue_vue_type_style_index_0_scoped_b7e65177_lang.css +1 -0
  3. package/DateRangeV4.vue_vue_type_style_index_0_scoped_bb44cdf8_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css +1 -0
  5. package/FieldLabel.vue_vue_type_style_index_0_scoped_960ea8b1_lang.css +1 -0
  6. package/HelpText.vue_vue_type_style_index_0_scoped_b5caf7cd_lang.css +1 -0
  7. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_2a5345ef_lang.css +1 -0
  8. package/InlineCopy.vue_vue_type_style_index_0_scoped_8cb01c9d_lang.css +1 -0
  9. package/Link.vue_vue_type_style_index_0_scoped_c4345b08_lang.css +1 -0
  10. package/OptionV4.vue_vue_type_style_index_0_scoped_d48a9318_lang.css +1 -0
  11. package/SearchV4.vue_vue_type_style_index_0_scoped_e1a33934_lang.css +1 -0
  12. package/TabsV4.vue_vue_type_style_index_0_scoped_9747c9da_lang.css +1 -0
  13. package/TextField.vue_vue_type_style_index_0_scoped_f4275491_lang.css +1 -0
  14. package/ToggleV4.vue_vue_type_style_index_0_scoped_fbbae882_lang.css +1 -0
  15. package/TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css +1 -0
  16. package/components/autocomplete/index.d.ts +16 -16
  17. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  18. package/components/columnPicker/index.d.ts +20 -20
  19. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  20. package/components/dateRange/v4/DateRangeV4.vue2.js +28 -27
  21. package/components/dropdown/common/Dropdown.common.js +351 -274
  22. package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
  23. package/components/dropdown/v3/index.d.ts +77 -77
  24. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  25. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +38 -32
  26. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +1 -1
  27. package/components/dropdown/v4/DropdownV4.vue.d.ts +50 -41
  28. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  29. package/components/dropdown/v4/DropdownV4.vue2.js +237 -216
  30. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +5 -0
  31. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +3 -3
  32. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -9
  33. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  34. package/components/dropdown/v4/OptionV4.vue2.js +12 -12
  35. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  36. package/components/dropdown/v4/index.d.ts +2377 -2349
  37. package/components/helpText/HelpText.vue.js +3 -3
  38. package/components/helpText/HelpText.vue2.js +11 -10
  39. package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
  40. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
  41. package/components/includeExclude/index.d.ts +54 -54
  42. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  43. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  44. package/components/inlineCopy/InlineCopy.vue2.js +54 -53
  45. package/components/inlineCopy/index.d.ts +9 -0
  46. package/components/input/v4/TextField.vue.d.ts +5 -0
  47. package/components/input/v4/TextField.vue.js +2 -2
  48. package/components/input/v4/TextField.vue2.js +22 -19
  49. package/components/input/v4/index.d.ts +20 -1
  50. package/components/link/Link.vue.js +5 -5
  51. package/components/link/Link.vue2.js +30 -21
  52. package/components/search/v4/SearchV4.vue.d.ts +5 -0
  53. package/components/search/v4/SearchV4.vue.js +5 -5
  54. package/components/search/v4/SearchV4.vue2.js +23 -18
  55. package/components/search/v4/index.d.ts +9 -0
  56. package/components/shared/FieldLabel.vue.js +3 -3
  57. package/components/shared/FieldLabel.vue2.js +9 -8
  58. package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
  59. package/components/table/v4/DataGridMenu.vue.js +5 -5
  60. package/components/table/v4/DataGridMenu.vue2.js +28 -22
  61. package/components/table/v4/index.d.ts +9 -0
  62. package/components/tabs/v4/TabsV4.vue.d.ts +5 -0
  63. package/components/tabs/v4/TabsV4.vue.js +3 -3
  64. package/components/tabs/v4/TabsV4.vue2.js +74 -43
  65. package/components/tabs/v4/index.d.ts +20 -1
  66. package/components/toggle/v4/ToggleV4.vue.d.ts +5 -0
  67. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  68. package/components/toggle/v4/ToggleV4.vue2.js +50 -41
  69. package/components/toggle/v4/index.d.ts +20 -1
  70. package/components/tooltip/v4/TooltipV4.vue.d.ts +14 -1
  71. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  72. package/components/tooltip/v4/TooltipV4.vue2.js +85 -63
  73. package/components/tooltip/v4/index.d.ts +51 -4
  74. package/index.d.ts +2996 -2678
  75. package/index.js +1 -1
  76. package/package.json +5 -1
  77. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +0 -1
  78. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +0 -1
  79. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
  80. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
  81. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +0 -1
  82. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +0 -1
  83. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +0 -1
  84. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +0 -1
  85. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +0 -1
  86. package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +0 -1
  87. package/SearchV4.vue_vue_type_style_index_0_scoped_d6c42f4b_lang.css +0 -1
  88. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +0 -1
  89. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +0 -1
  90. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +0 -1
  91. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +0 -1
@@ -1,45 +1,47 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as he, computed as L, watch as ke, toRaw as S, openBlock as a, createElementBlock as s, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as k, createCommentVNode as r, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
2
- import P from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as we, computed as A, watch as ke, toRaw as S, openBlock as a, createElementBlock as u, mergeProps as m, unref as t, renderSlot as c, createElementVNode as f, createVNode as d, withCtx as y, Transition as ve, normalizeClass as F, normalizeStyle as Ie, createTextVNode as b, createCommentVNode as r, isRef as Se, toDisplayString as j, withModifiers as J, Fragment as Ce, renderList as Ke, createSlots as xe, createBlock as P, resolveDynamicComponent as Ee } from "vue";
2
+ import N 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 Ee from "./DefaultDropdownTrigger.vue.js";
8
- import Ae from "./IconButtonDropdownTrigger.vue.js";
9
- import xe from "./ChipDropdownTrigger.vue.js";
10
- import Oe from "./AppDropdownTrigger.vue.js";
7
+ import Ae from "./DefaultDropdownTrigger.vue.js";
8
+ import Le from "./IconButtonDropdownTrigger.vue.js";
9
+ import Oe from "./ChipDropdownTrigger.vue.js";
10
+ import Be from "./AppDropdownTrigger.vue.js";
11
11
  import "./ButtonDropdownTrigger.vue.js";
12
12
  import "./ButtonFilterDropdownTrigger.vue.js";
13
13
  import "./TreeDropdown.vue.js";
14
- import J from "./OptionV4.vue.js";
14
+ import Q from "./OptionV4.vue.js";
15
15
  import "./ConditionalDropdown.vue.js";
16
- import Le from "../../search/v4/SearchV4.vue.js";
17
- import Q from "../../typography/v4/Typography.vue.js";
18
- import { Dropdown as Be } from "floating-vue";
16
+ import $e from "../../search/v4/SearchV4.vue.js";
17
+ import Z from "../../typography/v4/Typography.vue.js";
18
+ import { Dropdown as Fe } from "floating-vue";
19
19
  import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
20
- import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
21
- import K from "../../skeleton/v4/SkeletonV4.vue.js";
22
- import { useTestIdAttrs as Pe } from "../../../utils/testIds.js";
20
+ import { dropdownCommon as Pe } from "../common/Dropdown.common.js";
21
+ import L from "../../skeleton/v4/SkeletonV4.vue.js";
22
+ import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
23
23
  import { TRIGGERS as w } from "./Dropdown.types.js";
24
- import { useElementSize as Ne } from "@vueuse/core";
25
- import Ve from "../../shared/FieldHelpText.vue.js";
26
- import De from "./GroupOption.vue.js";
27
- const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze = { key: 1 }, We = { key: 2 }, Ge = {
24
+ import { useElementSize as Ve } from "@vueuse/core";
25
+ import De from "../../shared/FieldHelpText.vue.js";
26
+ import Me from "./GroupOption.vue.js";
27
+ const Re = ["tabindex", "aria-label", "aria-expanded", "aria-disabled", "aria-controls", "aria-activedescendant"], ze = { style: { width: "100%" } }, We = { key: 0 }, Ge = { key: 1 }, He = { key: 2 }, Ue = {
28
28
  key: 0,
29
29
  class: "inline-search-wrapper"
30
- }, He = { class: "dropdown-conditions" }, Ue = {
30
+ }, Ye = { class: "dropdown-conditions" }, Xe = ["id", "aria-multiselectable"], qe = {
31
31
  key: 0,
32
32
  class: "no-result-container"
33
- }, Ye = ["aria-selected", "aria-disabled", "onClick"], Xe = {
33
+ }, je = ["id", "aria-selected"], Je = ["id", "aria-selected", "aria-disabled", "onClick"], Qe = {
34
34
  key: 3,
35
35
  class: "loader"
36
- }, qe = {
36
+ }, Ze = {
37
37
  key: 1,
38
38
  class: "actions-wrapper"
39
- }, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, Qe = {
39
+ }, _e = { class: "actions-clear-all" }, et = { class: "actions-apply-cancel" }, tt = {
40
40
  key: 2,
41
41
  class: "dropdown-footer"
42
- }, Ct = /* @__PURE__ */ he({
42
+ };
43
+ let ot = 0;
44
+ const Lt = /* @__PURE__ */ we({
43
45
  __name: "DropdownV4",
44
46
  props: {
45
47
  modelValue: { default: null },
@@ -114,11 +116,12 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
114
116
  statusType: { default: null },
115
117
  disableVirtualScroll: { type: Boolean, default: !1 },
116
118
  overrideOptionCountCalculation: { type: Function, default: null },
117
- withConditions: { type: Boolean, default: !1 }
119
+ withConditions: { type: Boolean, default: !1 },
120
+ ariaLabel: { default: "" }
118
121
  },
119
122
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
120
- setup(e, { expose: Z, emit: N }) {
121
- const o = e, V = {
123
+ setup(e, { expose: _, emit: V }) {
124
+ const o = e, D = {
122
125
  MULTILINE_LIST_HEIGHT: 48,
123
126
  LIST_HEIGHT: 32 + 4,
124
127
  MAX_NUMBER_OF_OPTIONS: 7.5,
@@ -126,39 +129,42 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
126
129
  DROPLIST_MIN_WIDTH: 240,
127
130
  VERSION: 4
128
131
  }, {
129
- onKeydown: I,
130
- open: y,
131
- toggleMenu: v,
132
- onButtonKeydown: D,
133
- query: C,
134
- containerProps: _,
135
- calculateTableHeight: ee,
136
- wrapperProps: te,
137
- filteredOptions: oe,
138
- allSelected: $,
139
- allSelectedApplied: E,
140
- isIndeterminate: ne,
141
- onSelectAll: le,
142
- virtualOptions: M,
143
- isSelected: A,
132
+ onKeydown: C,
133
+ open: s,
134
+ toggleMenu: K,
135
+ onButtonKeydown: M,
136
+ query: x,
137
+ containerProps: ee,
138
+ calculateTableHeight: te,
139
+ wrapperProps: oe,
140
+ filteredOptions: ie,
141
+ allSelected: R,
142
+ allSelectedApplied: O,
143
+ isIndeterminate: le,
144
+ onSelectAll: ne,
145
+ virtualOptions: z,
146
+ isSelected: B,
144
147
  selectedOption: T,
145
- selectedOptionPrevious: x,
146
- selectedValue: ie,
147
- onSelect: R,
148
- activeIndex: z,
149
- onCancel: ae,
150
- onApply: de,
151
- scrollTo: re,
152
- listRef: se,
153
- buttonRef: W,
154
- apply: ue,
155
- cancel: ce,
156
- el: ye,
157
- onClearAllSelections: G,
158
- clearAll: me,
159
- isGroup: fe,
160
- flattenAndMarkGroupOptions: pe
161
- } = Fe(o, N, V), g = Pe(o.testId, p), H = L(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ee : o.predefinedTrigger === w.APP ? Oe : null), { width: U } = Ne(W), ge = L(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${V.DROPLIST_MIN_WIDTH}px` : "auto");
148
+ selectedOptionPrevious: $,
149
+ selectedValue: ae,
150
+ onSelect: W,
151
+ activeIndex: k,
152
+ onCancel: de,
153
+ onApply: re,
154
+ scrollTo: se,
155
+ listRef: ue,
156
+ buttonRef: G,
157
+ apply: ce,
158
+ cancel: ye,
159
+ el: me,
160
+ onClearAllSelections: H,
161
+ clearAll: fe,
162
+ isGroup: pe,
163
+ flattenAndMarkGroupOptions: ge
164
+ } = Pe(o, V, D), g = Ne(o.testId, p), v = o.testId ? `${o.testId}-listbox` : `is-dropdown-listbox-${++ot}`, he = A(() => {
165
+ if (!(!s.value || k.value == null))
166
+ return k.value === -1 ? `${v}-select-all` : `${v}-option-${k.value}`;
167
+ }), U = A(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Be : null), { width: Y } = Ve(G), Te = A(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? Y.value - 2 > 240 ? `${Y.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
162
168
  ke(
163
169
  () => o.optionsListWidth,
164
170
  () => {
@@ -168,53 +174,60 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
168
174
  );
169
175
  }
170
176
  );
171
- const Y = () => {
172
- v();
173
- }, X = L(() => {
174
- const n = {
177
+ const X = () => {
178
+ K();
179
+ }, q = A(() => {
180
+ const i = {
175
181
  tooltipMessage: null,
176
182
  selections: []
177
183
  };
178
184
  if (o.multi && o.comparingKey) {
179
- const i = S(T.value);
185
+ const n = S(T.value);
180
186
  if (o.minSelections || o.maxSelections) {
181
- if (Array.isArray(i) && i.length <= o.minSelections)
182
- return n.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, n.selections = i.map(
187
+ if (Array.isArray(n) && n.length <= o.minSelections)
188
+ return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = n.map(
183
189
  (l) => l[o.comparingKey]
184
- ), n;
185
- if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
186
- const l = i.map(
187
- (b) => b[o.comparingKey]
188
- ), h = o.groupedOptions ? pe(o.options) : o.options;
189
- return n.tooltipMessage = `You can only select up to ${o.maxSelections} items`, n.selections = h.map((b) => {
190
- if (!l.includes(b[o.comparingKey]))
191
- return b[o.comparingKey];
192
- }), n;
190
+ ), i;
191
+ if (o.maxSelections && Array.isArray(n) && n.length >= o.maxSelections) {
192
+ const l = n.map(
193
+ (I) => I[o.comparingKey]
194
+ ), h = o.groupedOptions ? ge(o.options) : o.options;
195
+ return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = h.map((I) => {
196
+ if (!l.includes(I[o.comparingKey]))
197
+ return I[o.comparingKey];
198
+ }), i;
193
199
  }
194
200
  }
195
201
  }
196
- return n.tooltipMessage = null, n.selections = [], n;
197
- }), Te = (n) => {
202
+ return i.tooltipMessage = null, i.selections = [], i;
203
+ }), be = (i) => {
198
204
  if ((o.minSelections || o.maxSelections) && o.comparingKey)
199
- return X.value.selections.includes(
200
- n[o.comparingKey]
205
+ return q.value.selections.includes(
206
+ i[o.comparingKey]
201
207
  );
202
- }, O = (n) => n[o.disabledOptionKey] || Te(n);
203
- return Z({
204
- selectItem: R,
205
- scrollTo: re
206
- }), (n, i) => (a(), s("div", m({
208
+ }, E = (i) => i[o.disabledOptionKey] || be(i);
209
+ return _({
210
+ selectItem: W,
211
+ scrollTo: se
212
+ }), (i, n) => (a(), u("div", m({
207
213
  ref_key: "el",
208
- ref: ye,
214
+ ref: me,
209
215
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
210
- tabindex: e.disabled ? -1 : 0
216
+ tabindex: e.disabled ? -1 : 0,
217
+ role: "combobox",
218
+ "aria-haspopup": "listbox",
219
+ "aria-label": e.ariaLabel || void 0,
220
+ "aria-expanded": !!t(s),
221
+ "aria-disabled": e.disabled || void 0,
222
+ "aria-controls": t(s) ? t(v) : void 0,
223
+ "aria-activedescendant": t(he)
211
224
  }, t(g)[t(p).WRAPPER], {
212
- onKeydown: i[8] || (i[8] = //@ts-ignore
213
- (...l) => t(I) && t(I)(...l))
225
+ onKeydown: n[8] || (n[8] = //@ts-ignore
226
+ (...l) => t(C) && t(C)(...l))
214
227
  }), [
215
- u(n.$slots, "label", {}, void 0, !0),
216
- f("div", Me, [
217
- d(t(Be), m({
228
+ c(i.$slots, "label", {}, void 0, !0),
229
+ f("div", ze, [
230
+ d(t(Fe), m({
218
231
  theme: e.theme,
219
232
  "popper-class": [
220
233
  e.popperClass,
@@ -227,49 +240,49 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
227
240
  distance: e.distance,
228
241
  flip: e.flip,
229
242
  triggers: [],
230
- shown: !!t(y),
243
+ shown: !!t(s),
231
244
  "auto-hide": !1,
232
245
  container: e.container,
233
246
  "auto-size": e.autoSize
234
247
  }, t(g)[t(p).TRIGGER]), {
235
- popper: c(() => [
236
- d(we, null, {
237
- default: c(() => [
238
- t(y) ? (a(), s("div", {
248
+ popper: y(() => [
249
+ d(ve, null, {
250
+ default: y(() => [
251
+ t(s) ? (a(), u("div", {
239
252
  key: 0,
240
253
  ref_key: "listRef",
241
- ref: se,
242
- class: B(["light-theme-v4", {
254
+ ref: ue,
255
+ class: F(["light-theme-v4", {
243
256
  "dropdown--disabled": e.disabled,
244
257
  "inline-search": e.inlineSearch
245
258
  }]),
246
- style: be({ width: t(ge) })
259
+ style: Ie({ width: t(Te) })
247
260
  }, [
248
- t(y) ? (a(), s("div", {
261
+ t(s) ? (a(), u("div", {
249
262
  key: 0,
250
- class: B(["dropdown-list-wrapper", {
263
+ class: F(["dropdown-list-wrapper", {
251
264
  "dropdown-list-wrapper--multi": e.multi,
252
265
  "dropdown-list-wrapper-always-show-scroll": e.alwaysShowScroll
253
266
  }]),
254
- onKeydown: i[7] || (i[7] = //@ts-ignore
255
- (...l) => t(I) && t(I)(...l))
267
+ onKeydown: n[7] || (n[7] = //@ts-ignore
268
+ (...l) => t(C) && t(C)(...l))
256
269
  }, [
257
- t(y) && e.inlineSearch ? (a(), s("div", Ge, [
258
- e.withConditions ? u(n.$slots, "dropdown-conditions", { key: 0 }, () => [
259
- f("div", He, [
260
- d(t(Q), { variant: "body2" }, {
261
- default: c(() => [
262
- k("Conditions")
270
+ t(s) && e.inlineSearch ? (a(), u("div", Ue, [
271
+ e.withConditions ? c(i.$slots, "dropdown-conditions", { key: 0 }, () => [
272
+ f("div", Ye, [
273
+ d(t(Z), { variant: "body2" }, {
274
+ default: y(() => [
275
+ b("Conditions")
263
276
  ]),
264
277
  _: 1
265
278
  })
266
279
  ])
267
280
  ], !0) : r("", !0),
268
- u(n.$slots, "inline-search", {}, () => [
269
- d(t(Le), {
270
- modelValue: t(C),
281
+ c(i.$slots, "inline-search", {}, () => [
282
+ d(t($e), {
283
+ modelValue: t(x),
271
284
  "onUpdate:modelValue": [
272
- i[4] || (i[4] = (l) => Ie(C) ? C.value = l : null),
285
+ n[4] || (n[4] = (l) => Se(x) ? x.value = l : null),
273
286
  e.onClearSearch
274
287
  ],
275
288
  placeholder: e.inlineSearchPlaceholder,
@@ -277,86 +290,93 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
277
290
  size: "md",
278
291
  "auto-focus": e.searchAutoFocus,
279
292
  "test-id": e.testId,
280
- onKeydown: t(I)
293
+ onKeydown: t(C)
281
294
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
282
295
  ], !0)
283
296
  ])) : r("", !0),
284
- u(n.$slots, "input-list", { open: t(y) }, void 0, !0),
297
+ c(i.$slots, "input-list", { open: t(s) }, void 0, !0),
285
298
  f("div", m({
286
299
  class: ["list-container", { "list-container--multi": e.multi }],
287
- style: { height: `${t(ee)}rem` }
300
+ style: { height: `${t(te)}rem` }
288
301
  }, {
289
- ...t(_),
302
+ ...t(ee),
290
303
  ...t(g)[t(p).LIST_CONTAINER]
291
304
  }), [
292
- u(n.$slots, "custom-list-area", {}, void 0, !0),
293
- f("ul", m(t(te), {
305
+ c(i.$slots, "custom-list-area", {}, void 0, !0),
306
+ f("ul", m({ id: t(v) }, t(oe), {
294
307
  role: "listbox",
308
+ "aria-multiselectable": e.multi || void 0,
295
309
  class: ["list", {
296
310
  "list--multi": e.multi,
297
311
  "list--with-conditions": e.withConditions
298
312
  }]
299
313
  }), [
300
- !t(oe).length && !e.loading && !e.withConditions ? (a(), s("li", Ue, [
301
- d(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
302
- default: c(() => [
303
- k(q(e.noResultsText), 1)
314
+ !t(ie).length && !e.loading && !e.withConditions ? (a(), u("li", qe, [
315
+ d(t(Z), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
316
+ default: y(() => [
317
+ b(j(e.noResultsText), 1)
304
318
  ]),
305
319
  _: 1
306
320
  }, 16)
307
321
  ])) : r("", !0),
308
- e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? u(n.$slots, "select-all", { key: 1 }, () => [
309
- f("li", null, [
310
- d(t(J), m(
322
+ e.showSelectAll !== !1 && e.multi && !t(x) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? c(i.$slots, "select-all", { key: 1 }, () => [
323
+ f("li", {
324
+ id: `${t(v)}-select-all`,
325
+ role: "option",
326
+ "aria-selected": t(R)
327
+ }, [
328
+ d(t(Q), m(
311
329
  {
312
- "aria-selected": t($),
313
330
  "aria-disabled": !!e.disabled,
314
- "selected-prop": t($),
315
- "is-indeterminate": t(ne),
331
+ "selected-prop": t(R),
332
+ active: S(t(k)) === -1,
333
+ "is-indeterminate": t(le),
316
334
  "is-multi": e.multi,
317
335
  "select-all-option": ""
318
336
  },
319
337
  t(g)[t(p).SELECT_ALL],
320
338
  {
321
- onClick: i[5] || (i[5] = j((l) => t(le)(), ["stop"]))
339
+ onClick: n[5] || (n[5] = J((l) => t(ne)(), ["stop"]))
322
340
  }
323
341
  ), {
324
- default: c(() => [
325
- k(" Select all ")
342
+ default: y(() => [
343
+ b(" Select all ")
326
344
  ]),
327
345
  _: 1
328
- }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
329
- ])
346
+ }, 16, ["aria-disabled", "selected-prop", "active", "is-indeterminate", "is-multi"])
347
+ ], 8, je)
330
348
  ], !0) : r("", !0),
331
- t(M).length && !e.loading ? (a(!0), s(Se, { key: 2 }, ve(t(M), ({ data: l, index: h }) => (a(), s("li", {
349
+ t(z).length && !e.loading ? (a(!0), u(Ce, { key: 2 }, Ke(t(z), ({ data: l, index: h }) => (a(), u("li", {
350
+ id: `${t(v)}-option-${h}`,
332
351
  key: h,
333
- "aria-selected": t(A)(S(t(T)), l),
334
- "aria-disabled": !!e.disabled,
335
- onClick: j(
336
- () => !O(l) && t(R)(l, h),
352
+ role: "option",
353
+ "aria-selected": t(B)(S(t(T)), l),
354
+ "aria-disabled": E(l) || void 0,
355
+ onClick: J(
356
+ () => !E(l) && t(W)(l, h),
337
357
  ["stop"]
338
358
  )
339
359
  }, [
340
- e.groupedOptions && t(fe)(l) ? u(n.$slots, "group-option", { key: 0 }, () => [
341
- d(De, null, {
342
- default: c(() => [
343
- k(q(e.displayValue(l) || l[e.optionNameKey]), 1)
360
+ e.groupedOptions && t(pe)(l) ? c(i.$slots, "group-option", { key: 0 }, () => [
361
+ d(Me, null, {
362
+ default: y(() => [
363
+ b(j(e.displayValue(l) || l[e.optionNameKey]), 1)
344
364
  ]),
345
365
  _: 2
346
366
  }, 1024)
347
- ], !0) : u(n.$slots, "default", {
367
+ ], !0) : c(i.$slots, "default", {
348
368
  key: 1,
349
369
  option: l,
350
370
  index: h,
351
- selected: t(A)(S(t(T)), l),
352
- active: S(t(z)) === h,
353
- disabled: O(l)
371
+ selected: t(B)(S(t(T)), l),
372
+ active: S(t(k)) === h,
373
+ disabled: E(l)
354
374
  }, () => [
355
- d(t(J), {
375
+ d(t(Q), {
356
376
  option: l,
357
- "selected-prop": t(A)(t(T), l),
358
- active: S(t(z)) === h,
359
- disabled: O(l),
377
+ "selected-prop": t(B)(t(T), l),
378
+ active: S(t(k)) === h,
379
+ disabled: E(l),
360
380
  "name-key": e.optionNameKey,
361
381
  "image-key": e.optionImageKey,
362
382
  "icon-key": e.optionIconKey,
@@ -370,81 +390,81 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
370
390
  "option-two-lines-key": e.optionTwoLinesKey,
371
391
  "tooltip-placement": e.optionTooltipPosition,
372
392
  "is-multi": e.multi,
373
- "min-max-selection-tooltip-message": t(X)?.tooltipMessage
374
- }, Ce({ _: 2 }, [
375
- n.$slots["option-end"] ? {
393
+ "min-max-selection-tooltip-message": t(q)?.tooltipMessage
394
+ }, xe({ _: 2 }, [
395
+ i.$slots["option-end"] ? {
376
396
  name: "option-end",
377
- fn: c(({ option: b }) => [
378
- u(n.$slots, "option-end", { option: b }, void 0, !0)
397
+ fn: y(({ option: I }) => [
398
+ c(i.$slots, "option-end", { option: I }, void 0, !0)
379
399
  ]),
380
400
  key: "0"
381
401
  } : void 0
382
402
  ]), 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", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
383
403
  ], !0)
384
- ], 8, Ye))), 128)) : r("", !0),
385
- e.loading || e.loadMoreLoading ? (a(), s("li", Xe, [
386
- d(t(K), { round: "" }),
387
- d(t(K), { round: "" }),
388
- d(t(K), { round: "" }),
389
- d(t(K), { round: "" })
404
+ ], 8, Je))), 128)) : r("", !0),
405
+ e.loading || e.loadMoreLoading ? (a(), u("li", Qe, [
406
+ d(t(L), { round: "" }),
407
+ d(t(L), { round: "" }),
408
+ d(t(L), { round: "" }),
409
+ d(t(L), { round: "" })
390
410
  ])) : r("", !0)
391
- ], 16)
411
+ ], 16, Xe)
392
412
  ], 16),
393
- e.multi ? (a(), s("div", qe, [
394
- f("div", je, [
395
- e.showClearAll ? (a(), F(t(P), m(
413
+ e.multi ? (a(), u("div", Ze, [
414
+ f("div", _e, [
415
+ e.showClearAll ? (a(), P(t(N), m(
396
416
  {
397
417
  key: 0,
398
418
  ref_key: "clearAll",
399
- ref: me,
419
+ ref: fe,
400
420
  size: "small",
401
421
  variant: "text",
402
422
  color: "primary"
403
423
  },
404
424
  t(g)[t(p).ACTION_CLEAR_ALL],
405
425
  {
406
- onClick: i[6] || (i[6] = () => t(G)(!1))
426
+ onClick: n[6] || (n[6] = () => t(H)(!1))
407
427
  }
408
428
  ), {
409
- default: c(() => [
410
- k(" Clear all ")
429
+ default: y(() => [
430
+ b(" Clear all ")
411
431
  ]),
412
432
  _: 1
413
433
  }, 16)) : r("", !0)
414
434
  ]),
415
- f("div", Je, [
416
- d(t(P), m(
435
+ f("div", et, [
436
+ d(t(N), m(
417
437
  {
418
438
  ref_key: "cancel",
419
- ref: ce,
439
+ ref: ye,
420
440
  size: "small",
421
441
  variant: "outlined",
422
442
  color: "default"
423
443
  },
424
444
  t(g)[t(p).ACTION_CANCEL],
425
- { onClick: t(ae) }
445
+ { onClick: t(de) }
426
446
  ), {
427
- default: c(() => [
428
- k(" Cancel ")
447
+ default: y(() => [
448
+ b(" Cancel ")
429
449
  ]),
430
450
  _: 1
431
451
  }, 16, ["onClick"]),
432
- d(t(P), m({
452
+ d(t(N), m({
433
453
  ref_key: "apply",
434
- ref: ue,
454
+ ref: ce,
435
455
  "data-testid": "mutli-apply",
436
456
  size: "small",
437
457
  class: "apply-button"
438
- }, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
439
- default: c(() => [
440
- k(" Apply ")
458
+ }, t(g)[t(p).ACTION_APPLY], { onClick: t(re) }), {
459
+ default: y(() => [
460
+ b(" Apply ")
441
461
  ]),
442
462
  _: 1
443
463
  }, 16, ["onClick"])
444
464
  ])
445
465
  ])) : r("", !0),
446
- n.$slots.footer ? (a(), s("div", Qe, [
447
- u(n.$slots, "footer", {}, void 0, !0)
466
+ i.$slots.footer ? (a(), u("div", tt, [
467
+ c(i.$slots, "footer", {}, void 0, !0)
448
468
  ])) : r("", !0)
449
469
  ], 34)) : r("", !0)
450
470
  ], 6)) : r("", !0)
@@ -452,36 +472,36 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
452
472
  _: 3
453
473
  })
454
474
  ]),
455
- default: c(() => [
475
+ default: y(() => [
456
476
  f("div", {
457
- class: B(["button__container", {
458
- "button__container--open": !!t(y),
477
+ class: F(["button__container", {
478
+ "button__container--open": !!t(s),
459
479
  [`button__container--${e.size}`]: !0,
460
480
  "button__container--disabled": e.disabled
461
481
  }])
462
482
  }, [
463
483
  f("div", {
464
484
  ref_key: "buttonRef",
465
- ref: W
485
+ ref: G
466
486
  }, [
467
- u(n.$slots, "dropdown-trigger", {
487
+ c(i.$slots, "dropdown-trigger", {
468
488
  buttonTriggerProps: {
469
- open: t(y),
489
+ open: t(s),
470
490
  disabled: e.disabled,
471
- label: t(ie) || e.placeholder,
472
- onClick: () => t(v)(),
491
+ label: t(ae) || e.placeholder,
492
+ onClick: () => t(K)(),
473
493
  testId: e.testId
474
494
  },
475
495
  defaultTriggerProps: {
476
496
  placeholder: e.placeholder,
477
- open: t(y),
497
+ open: t(s),
478
498
  label: e.triggerLabel,
479
499
  showFeedbackIcon: e.triggerFeedbackShowIcon,
480
500
  mandatory: e.mandatory,
481
501
  testId: e.testId,
482
502
  multi: e.multi,
483
503
  disabled: e.disabled,
484
- selectedOption: e.multi ? t(x) : t(T),
504
+ selectedOption: e.multi ? t($) : t(T),
485
505
  displayValue: e.displayValue,
486
506
  options: e.options,
487
507
  optionNameKey: e.optionNameKey,
@@ -497,25 +517,25 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
497
517
  statusDotType: e.statusType,
498
518
  size: e.size,
499
519
  showAllSelectedText: e.triggerShowAllSelectedText,
500
- allSelected: t(E),
520
+ allSelected: t(O),
501
521
  inlineError: e.inlineError,
502
522
  inlineErrorText: e.inlineErrorText,
503
523
  inlineErrorTextPlacement: e.inlineErrorTextPlacement,
504
- onKeydown: t(D),
505
- onClick: Y
524
+ onKeydown: t(M),
525
+ onClick: X
506
526
  }
507
527
  }, () => [
508
- t(H) ? (a(), s("div", Re, [
509
- (a(), F(Ke(t(H)), {
528
+ t(U) ? (a(), u("div", We, [
529
+ (a(), P(Ee(t(U)), {
510
530
  placeholder: e.placeholder,
511
- open: t(y),
531
+ open: t(s),
512
532
  label: e.triggerLabel,
513
533
  "show-feedback-icon": e.triggerFeedbackShowIcon,
514
534
  mandatory: e.mandatory,
515
535
  "test-id": e.testId,
516
536
  multi: e.multi,
517
537
  disabled: e.disabled,
518
- "selected-option": e.multi ? t(x) : t(T),
538
+ "selected-option": e.multi ? t($) : t(T),
519
539
  "display-value": e.displayValue,
520
540
  options: e.options,
521
541
  "option-name-key": e.optionNameKey,
@@ -531,33 +551,34 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
531
551
  "status-dot-type": e.statusType,
532
552
  size: e.size,
533
553
  "show-all-selected-text": e.triggerShowAllSelectedText,
534
- "all-selected": t(E),
554
+ "all-selected": t(O),
535
555
  "inline-error": e.inlineError,
536
556
  "inline-error-text": e.inlineErrorText,
537
557
  "inline-error-text-placement": e.inlineErrorTextPlacement,
538
- onKeydown: t(D),
539
- onClick: Y,
540
- onCopyToClipboard: i[0] || (i[0] = (l) => N("copyToClipboard"))
558
+ onKeydown: t(M),
559
+ onClick: X,
560
+ onCopyToClipboard: n[0] || (n[0] = (l) => V("copyToClipboard"))
541
561
  }, 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", "inline-error", "inline-error-text", "inline-error-text-placement", "onKeydown"]))
542
562
  ])) : r("", !0),
543
- e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), s("div", ze, [
544
- d(t(Ae), {
545
- onClick: i[1] || (i[1] = (l) => t(v)())
546
- })
563
+ e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), u("div", Ge, [
564
+ d(t(Le), {
565
+ "aria-label": e.ariaLabel || void 0,
566
+ onClick: n[1] || (n[1] = (l) => t(K)())
567
+ }, null, 8, ["aria-label"])
547
568
  ])) : r("", !0),
548
- e.predefinedTrigger === t(w).CHIP ? (a(), s("div", We, [
549
- d(t(xe), {
550
- open: t(y),
569
+ e.predefinedTrigger === t(w).CHIP ? (a(), u("div", He, [
570
+ d(t(Oe), {
571
+ open: t(s),
551
572
  label: e.placeholder,
552
573
  "test-id": e.testId,
553
574
  options: e.options,
554
- "selected-option": e.multi ? t(x) : t(T),
575
+ "selected-option": e.multi ? t($) : t(T),
555
576
  "display-value": e.displayValue,
556
577
  multi: e.multi,
557
- "all-selected": t(E),
578
+ "all-selected": t(O),
558
579
  "shown-values-count": e.triggerShownValuesCount,
559
- onClick: i[2] || (i[2] = (l) => t(v)()),
560
- onClear: i[3] || (i[3] = (l) => t(G)())
580
+ onClick: n[2] || (n[2] = (l) => t(K)()),
581
+ onClear: n[3] || (n[3] = (l) => t(H)())
561
582
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
562
583
  ])) : r("", !0)
563
584
  ], !0)
@@ -566,7 +587,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
566
587
  ]),
567
588
  _: 3
568
589
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
569
- e.triggerFeedbackText ? (a(), F(Ve, {
590
+ e.triggerFeedbackText ? (a(), P(De, {
570
591
  key: 0,
571
592
  text: e.triggerFeedbackText,
572
593
  variant: e.triggerFeedbackVariant,
@@ -575,9 +596,9 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
575
596
  class: "dropdown-field-help-text"
576
597
  }, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
577
598
  ])
578
- ], 16, $e));
599
+ ], 16, Re));
579
600
  }
580
601
  });
581
602
  export {
582
- Ct as default
603
+ Lt as default
583
604
  };