@ironsource/shared-ui 2.1.9-test.0 → 2.1.9-test.2

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