@ironsource/shared-ui 2.1.6-rc.2 → 2.1.6-rc.21

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 (89) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
  2. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
  3. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
  4. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  5. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
  7. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  8. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  11. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  12. package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
  13. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  14. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
  15. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
  16. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  17. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  18. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  19. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  20. package/components/appHeader/AppHeader.vue.js +2 -2
  21. package/components/appHeader/AppHeader.vue2.js +30 -28
  22. package/components/appHeader/index.d.ts +6 -2
  23. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  24. package/components/autocomplete/Autocomplete.vue.js +3 -3
  25. package/components/autocomplete/Autocomplete.vue2.js +82 -61
  26. package/components/autocomplete/index.d.ts +20 -1
  27. package/components/dialog/v4/DialogV4.vue.js +3 -3
  28. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  29. package/components/dropdown/common/Dropdown.common.js +21 -21
  30. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  31. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  32. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  33. package/components/dropdown/v3/index.d.ts +13 -1
  34. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
  35. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  36. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
  37. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  38. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  39. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  40. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +40 -49
  41. package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
  42. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  43. package/components/dropdown/v4/DropdownV4.vue2.js +140 -128
  44. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  45. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  46. package/components/dropdown/v4/OptionV4.vue2.js +61 -44
  47. package/components/dropdown/v4/index.d.ts +105 -4
  48. package/components/forms/FormCard.vue.js +2 -2
  49. package/components/forms/FormCard.vue2.js +9 -9
  50. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  51. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  52. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  53. package/components/inlineCopy/index.d.ts +6 -2
  54. package/components/input/v4/TextField.vue.d.ts +5 -0
  55. package/components/input/v4/TextField.vue.js +3 -3
  56. package/components/input/v4/TextField.vue2.js +24 -21
  57. package/components/input/v4/index.d.ts +20 -1
  58. package/components/shared/FieldLabel.vue.js +3 -3
  59. package/components/shared/FieldLabel.vue2.js +9 -9
  60. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  61. package/components/table/v4/DataGrid.vue.js +3 -3
  62. package/components/table/v4/DataGrid.vue2.js +147 -147
  63. package/components/table/v4/index.d.ts +14 -2
  64. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  65. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  66. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  67. package/components/toggle/v4/ToggleV4.vue2.js +12 -12
  68. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  69. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  70. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  71. package/components/tooltip/v4/index.d.ts +17 -5
  72. package/index.d.ts +336 -32
  73. package/package.json +1 -1
  74. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  75. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  76. package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +0 -1
  77. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  78. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  79. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +0 -1
  80. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  81. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  82. package/DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css +0 -1
  83. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  84. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  85. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  86. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
  87. package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +0 -1
  88. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
  89. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
@@ -1,16 +1,16 @@
1
- import "../../../Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css"; import "../../../Dropdown.vue_vue_type_style_index_1_lang.css"; import { defineComponent as le, openBlock as a, createElementBlock as i, normalizeClass as T, unref as e, renderSlot as b, createVNode as s, withCtx as n, Transition as ae, createTextVNode as r, toDisplayString as h, createCommentVNode as o, createBlock as I, isRef as de, createElementVNode as m, mergeProps as P, withModifiers as N, Fragment as oe, renderList as ie, toRaw as $, pushScopeId as ne, popScopeId as se } from "vue";
2
- import x from "../../button/v3/Button.vue.js";
1
+ import "../../../Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css"; import "../../../Dropdown.vue_vue_type_style_index_1_lang.css"; import { defineComponent as le, openBlock as a, createElementBlock as i, normalizeClass as T, unref as e, renderSlot as b, createVNode as s, withCtx as n, Transition as ae, createTextVNode as r, toDisplayString as h, createCommentVNode as o, createBlock as I, isRef as de, createElementVNode as m, mergeProps as P, withModifiers as A, Fragment as oe, renderList as ie, toRaw as $, pushScopeId as ne, popScopeId as se } from "vue";
2
+ import N from "../../button/v3/Button.vue.js";
3
3
  import "../../button/v3/IconButton.vue.js";
4
4
  import "../../button/v3/ScrollButton.vue.js";
5
5
  import re from "./Option.vue.js";
6
- import A from "../../icon/v3/Icon.vue.js";
6
+ import x from "../../icon/v3/Icon.vue.js";
7
7
  import ue from "../../search/v3/Search.vue.js";
8
8
  import "../../typography/Heading.vue.js";
9
9
  import y from "../../typography/Text.vue.js";
10
- import { Dropdown as fe } from "floating-vue";
10
+ import { Dropdown as ce } from "floating-vue";
11
11
  import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
12
- import { dropdownCommon as ce } from "../common/Dropdown.common.js";
13
- const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "data-testid"], pe = ["disabled", "aria-expanded", "aria-labelledby", "aria-disabled"], be = {
12
+ import { dropdownCommon as fe } from "../common/Dropdown.common.js";
13
+ const me = (t) => (ne("data-v-aaa8c4bb"), t = t(), se(), t), ye = ["tabindex", "data-testid"], pe = ["disabled", "aria-expanded", "aria-labelledby", "aria-disabled"], be = {
14
14
  key: 0,
15
15
  class: "image-slot"
16
16
  }, he = { class: "angle-down" }, ke = {
@@ -91,7 +91,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
91
91
  darkTheme: { type: Boolean, default: !0 },
92
92
  valueToCopy: { default: "" }
93
93
  },
94
- emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
94
+ emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear"],
95
95
  setup(t, { expose: L, emit: V }) {
96
96
  const K = t, H = {
97
97
  MULTILINE_LIST_HEIGHT: 48,
@@ -101,7 +101,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
101
101
  }, {
102
102
  onKeydown: p,
103
103
  location: D,
104
- open: f,
104
+ open: c,
105
105
  toggleMenu: g,
106
106
  onButtonKeydown: k,
107
107
  displayedValue: C,
@@ -127,11 +127,11 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
127
127
  cancel: ee,
128
128
  el: te,
129
129
  buttonRef: z
130
- } = ce(K, V, H);
130
+ } = fe(K, V, H);
131
131
  return L({
132
132
  selectItem: E,
133
133
  scrollTo: Q
134
- }), (c, d) => (a(), i("div", {
134
+ }), (f, d) => (a(), i("div", {
135
135
  ref_key: "el",
136
136
  ref: te,
137
137
  class: T(["dropdown", { "dropdown--disabled": t.disabled }]),
@@ -140,8 +140,8 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
140
140
  onKeydown: d[7] || (d[7] = //@ts-ignore
141
141
  (...l) => e(p) && e(p)(...l))
142
142
  }, [
143
- b(c.$slots, "label", {}, void 0, !0),
144
- s(e(fe), {
143
+ b(f.$slots, "label", {}, void 0, !0),
144
+ s(e(ce), {
145
145
  theme: t.theme,
146
146
  "popper-class": [
147
147
  t.popperClass,
@@ -152,7 +152,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
152
152
  distance: t.isOnTop ? -e(D) : t.distance,
153
153
  flip: t.flip,
154
154
  triggers: [],
155
- shown: !!e(f),
155
+ shown: !!e(c),
156
156
  "auto-hide": !1,
157
157
  container: t.container,
158
158
  "auto-size": t.autoSize,
@@ -161,7 +161,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
161
161
  popper: n(() => [
162
162
  s(ae, null, {
163
163
  default: n(() => [
164
- e(f) ? (a(), i("div", {
164
+ e(c) ? (a(), i("div", {
165
165
  key: 0,
166
166
  ref_key: "listRef",
167
167
  ref: Z,
@@ -192,13 +192,13 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
192
192
  onKeydown: e(p)
193
193
  }, null, 8, ["modelValue", "placeholder", "test-id", "onKeydown"])) : o("", !0)
194
194
  ])) : o("", !0),
195
- e(f) ? (a(), i("div", {
195
+ e(c) ? (a(), i("div", {
196
196
  key: 1,
197
197
  class: "dropdown",
198
198
  onKeydown: d[6] || (d[6] = //@ts-ignore
199
199
  (...l) => e(p) && e(p)(...l))
200
200
  }, [
201
- b(c.$slots, "input-list", { open: e(f) }, void 0, !0),
201
+ b(f.$slots, "input-list", { open: e(c) }, void 0, !0),
202
202
  m("div", P(e(G), {
203
203
  class: ["list-container", { "list-container--multi": t.multi }],
204
204
  style: { height: `${e(F)}rem` },
@@ -220,7 +220,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
220
220
  })
221
221
  ])) : o("", !0),
222
222
  t.loading ? (a(), i("li", Ie, [
223
- s(e(A), {
223
+ s(e(x), {
224
224
  "font-size": "md",
225
225
  class: "loader-icon"
226
226
  }, {
@@ -243,7 +243,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
243
243
  "selected-prop": e(S),
244
244
  "is-indeterminate": e(q),
245
245
  "select-all-option": "",
246
- onClick: d[5] || (d[5] = N((l) => e(W)(), ["stop"]))
246
+ onClick: d[5] || (d[5] = A((l) => e(W)(), ["stop"]))
247
247
  }, {
248
248
  default: n(() => [
249
249
  r("Select all ")
@@ -255,9 +255,9 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
255
255
  key: w,
256
256
  "aria-selected": e(O)($(e(R)), l),
257
257
  "aria-disabled": !!t.disabled,
258
- onClick: N(() => e(E)(l, w), ["stop"])
258
+ onClick: A(() => e(E)(l, w), ["stop"])
259
259
  }, [
260
- b(c.$slots, "default", {
260
+ b(f.$slots, "default", {
261
261
  option: l,
262
262
  selected: e(O)($(e(R)), l),
263
263
  active: $(e(Y)) === w
@@ -266,7 +266,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
266
266
  ], 16)
267
267
  ], 16, we),
268
268
  t.multi ? (a(), i("div", Se, [
269
- s(e(x), {
269
+ s(e(N), {
270
270
  ref_key: "cancel",
271
271
  ref: ee,
272
272
  size: "sm",
@@ -280,7 +280,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
280
280
  ]),
281
281
  _: 1
282
282
  }, 8, ["test-id", "onClick"]),
283
- s(e(x), {
283
+ s(e(N), {
284
284
  ref_key: "apply",
285
285
  ref: _,
286
286
  "data-testid": "mutli-apply",
@@ -304,12 +304,12 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
304
304
  default: n(() => [
305
305
  m("div", {
306
306
  class: T(["button__container", {
307
- "button__container--open": !!e(f),
307
+ "button__container--open": !!e(c),
308
308
  [`button__container--${t.size}`]: !0,
309
309
  "button__container--disabled": t.disabled
310
310
  }])
311
311
  }, [
312
- c.$slots.input ? (a(), i("div", {
312
+ f.$slots.input ? (a(), i("div", {
313
313
  key: 0,
314
314
  ref_key: "buttonRef",
315
315
  ref: z,
@@ -317,23 +317,23 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
317
317
  onKeydown: d[1] || (d[1] = //@ts-ignore
318
318
  (...l) => e(k) && e(k)(...l))
319
319
  }, [
320
- b(c.$slots, "input", {
321
- open: e(f),
320
+ b(f.$slots, "input", {
321
+ open: e(c),
322
322
  value: e(C),
323
323
  disabled: t.disabled
324
324
  }, void 0, !0)
325
325
  ], 544)) : o("", !0),
326
- c.$slots.input ? o("", !0) : (a(), i("button", {
326
+ f.$slots.input ? o("", !0) : (a(), i("button", {
327
327
  key: 1,
328
328
  ref_key: "buttonRef",
329
329
  ref: z,
330
330
  disabled: t.disabled,
331
331
  "aria-haspopup": !0,
332
- "aria-expanded": !!e(f),
332
+ "aria-expanded": !!e(c),
333
333
  "aria-labelledby": e(M)?.id,
334
334
  "aria-disabled": t.disabled,
335
335
  class: T([{
336
- "button--open": !!e(f),
336
+ "button--open": !!e(c),
337
337
  [`button--${t.size}`]: !0,
338
338
  "button--disabled": t.disabled
339
339
  }, "button"]),
@@ -341,8 +341,8 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
341
341
  (...l) => e(k) && e(k)(...l)),
342
342
  onClick: d[3] || (d[3] = (l) => e(g)())
343
343
  }, [
344
- c.$slots.image ? (a(), i("div", be, [
345
- b(c.$slots, "image", {}, void 0, !0)
344
+ f.$slots.image ? (a(), i("div", be, [
345
+ b(f.$slots, "image", {}, void 0, !0)
346
346
  ])) : o("", !0),
347
347
  s(e(y), {
348
348
  size: "sm",
@@ -354,7 +354,7 @@ const me = (t) => (ne("data-v-d4f8e790"), t = t(), se(), t), ye = ["tabindex", "
354
354
  _: 1
355
355
  }),
356
356
  m("div", he, [
357
- s(e(A), {
357
+ s(e(x), {
358
358
  name: "angle-down",
359
359
  "font-size": "sm"
360
360
  })
@@ -196,7 +196,9 @@ declare const DropdownTypes: () => (({
196
196
  default: boolean;
197
197
  };
198
198
  }>> & {
199
+ onClear?: () => any;
199
200
  onApply?: (value: unknown) => any;
201
+ onSelectAll?: () => any;
200
202
  "onUpdate:selected"?: (value: unknown) => any;
201
203
  "onUpdate:isOpen"?: (value: unknown) => any;
202
204
  onOpened?: () => any;
@@ -213,7 +215,7 @@ declare const DropdownTypes: () => (({
213
215
  }>;
214
216
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
215
217
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
216
- $emit: ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "opened") => void) & ((event: "closed") => void);
218
+ $emit: ((event: "clear") => void) & ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "selectAll") => void) & ((event: "opened") => void) & ((event: "closed") => void);
217
219
  $el: any;
218
220
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
219
221
  title: {
@@ -370,7 +372,9 @@ declare const DropdownTypes: () => (({
370
372
  default: boolean;
371
373
  };
372
374
  }>> & {
375
+ onClear?: () => any;
373
376
  onApply?: (value: unknown) => any;
377
+ onSelectAll?: () => any;
374
378
  "onUpdate:selected"?: (value: unknown) => any;
375
379
  "onUpdate:isOpen"?: (value: unknown) => any;
376
380
  onOpened?: () => any;
@@ -384,6 +388,8 @@ declare const DropdownTypes: () => (({
384
388
  closed: () => void;
385
389
  opened: () => void;
386
390
  apply: (value: unknown) => void;
391
+ selectAll: () => void;
392
+ clear: () => void;
387
393
  }, string, {
388
394
  title: string;
389
395
  theme: string;
@@ -594,7 +600,9 @@ declare const DropdownTypes: () => (({
594
600
  default: boolean;
595
601
  };
596
602
  }>> & {
603
+ onClear?: () => any;
597
604
  onApply?: (value: unknown) => any;
605
+ onSelectAll?: () => any;
598
606
  "onUpdate:selected"?: (value: unknown) => any;
599
607
  "onUpdate:isOpen"?: (value: unknown) => any;
600
608
  onOpened?: () => any;
@@ -761,7 +769,9 @@ declare const DropdownTypes: () => (({
761
769
  default: boolean;
762
770
  };
763
771
  }>> & {
772
+ onClear?: () => any;
764
773
  onApply?: (value: unknown) => any;
774
+ onSelectAll?: () => any;
765
775
  "onUpdate:selected"?: (value: unknown) => any;
766
776
  "onUpdate:isOpen"?: (value: unknown) => any;
767
777
  onOpened?: () => any;
@@ -775,6 +785,8 @@ declare const DropdownTypes: () => (({
775
785
  closed: () => void;
776
786
  opened: () => void;
777
787
  apply: (value: unknown) => void;
788
+ selectAll: () => void;
789
+ clear: () => void;
778
790
  }, string, {
779
791
  title: string;
780
792
  theme: string;
@@ -43,6 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
43
  optionIconType: any;
44
44
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
45
  click: () => void;
46
+ copyToClipboard: () => void;
46
47
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
47
48
  placeholder?: string;
48
49
  selectedOption?: unknown;
@@ -88,6 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
88
89
  optionIconType: any;
89
90
  }>>> & {
90
91
  onClick?: () => any;
92
+ onCopyToClipboard?: () => any;
91
93
  }, {
92
94
  label: string;
93
95
  disabled: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./AppDropdownTrigger.vue2.js";
2
2
  /* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css"; //*');
4
- const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-0267d003"]]);
3
+ // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css"; //*');
4
+ const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-39c47ad1"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css"; import { defineComponent as V, computed as p, openBlock as o, createElementBlock as n, normalizeClass as B, createElementVNode as a, mergeProps as h, unref as l, renderSlot as O, createCommentVNode as i, createVNode as s, withCtx as v, toDisplayString as $ } from "vue";
1
+ import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css"; import { defineComponent as V, computed as p, openBlock as o, createElementBlock as n, normalizeClass as B, createElementVNode as a, mergeProps as O, unref as l, renderSlot as T, createCommentVNode as i, createVNode as s, withCtx as v, toDisplayString as $ } from "vue";
2
2
  import r from "../../icon/v4/IconV4.vue.js";
3
3
  import x from "../../typography/v4/Typography.vue.js";
4
4
  import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
@@ -38,13 +38,13 @@ const S = { class: "app-trigger--content" }, D = {
38
38
  optionIconKey: { default: null },
39
39
  optionIconType: { default: null }
40
40
  },
41
- emits: ["click"],
42
- setup(t, { emit: T }) {
41
+ emits: ["click", "copyToClipboard"],
42
+ setup(t, { emit: y }) {
43
43
  const e = t, { copy: k, copied: C } = w({}), I = p(
44
44
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
45
45
  ), b = () => {
46
- T("click");
47
- }, y = K(e.testId, u), f = "All apps selected", m = p(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${f} (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = p(() => {
46
+ y("click");
47
+ }, f = K(e.testId, u), m = "All apps selected", g = p(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${m} (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = p(() => {
48
48
  if (!e.selectedOption)
49
49
  return null;
50
50
  if (!e.multi)
@@ -52,26 +52,26 @@ const S = { class: "app-trigger--content" }, D = {
52
52
  if (Array.isArray(e.selectedOption))
53
53
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
54
54
  }), A = async () => {
55
- await k(e.valueToCopy), C.value && z({
55
+ await k(e.valueToCopy), C.value && (z({
56
56
  title: "Copied successfully",
57
57
  type: "success",
58
58
  duration: 2e3
59
- });
59
+ }), y("copyToClipboard"));
60
60
  };
61
- return (c, g) => (o(), n("div", {
61
+ return (c, h) => (o(), n("div", {
62
62
  class: B(["app-trigger-wrapper", { "with-copy": !!t.valueToCopy }])
63
63
  }, [
64
- a("div", h({
64
+ a("div", O({
65
65
  class: ["app-trigger", [t.size, l(I), { open: t.open, disabled: t.disabled }]],
66
66
  style: {
67
67
  paddingLeft: c.$slots.image || l(d) && t.optionImageKey ? "8px" : "12px"
68
68
  }
69
- }, l(y)[l(u).BUTTON_WRAPPER], {
70
- onClick: g[0] || (g[0] = (q) => b())
69
+ }, l(f)[l(u).BUTTON_WRAPPER], {
70
+ onClick: h[0] || (h[0] = (q) => b())
71
71
  }), [
72
72
  a("div", S, [
73
73
  c.$slots.image || l(d) && t.optionImageKey ? (o(), n("div", D, [
74
- O(c.$slots, "image", {}, () => [
74
+ T(c.$slots, "image", {}, () => [
75
75
  t.optionImageKey ? (o(), n("img", {
76
76
  key: 0,
77
77
  src: l(d)[t.optionImageKey]
@@ -79,7 +79,7 @@ const S = { class: "app-trigger--content" }, D = {
79
79
  ], !0)
80
80
  ])) : i("", !0),
81
81
  c.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), n("div", P, [
82
- O(c.$slots, "icon-start", {}, () => [
82
+ T(c.$slots, "icon-start", {}, () => [
83
83
  s(l(r), {
84
84
  type: t.optionIconType,
85
85
  name: l(d)[t.optionIconKey],
@@ -87,10 +87,10 @@ const S = { class: "app-trigger--content" }, D = {
87
87
  }, null, 8, ["type", "name"])
88
88
  ], !0)
89
89
  ])) : i("", !0),
90
- s(l(x), h({ variant: "button" }, l(y)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
90
+ s(l(x), O({ variant: "button" }, l(f)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
91
91
  default: v(() => [
92
92
  a("div", R, [
93
- l(m) === f ? (o(), n("span", U, [
93
+ l(g) === m ? (o(), n("span", U, [
94
94
  s(l(r), {
95
95
  name: "cube",
96
96
  size: "20px",
@@ -98,7 +98,7 @@ const S = { class: "app-trigger--content" }, D = {
98
98
  })
99
99
  ])) : i("", !0),
100
100
  a("div", L, [
101
- a("div", M, $(l(m)), 1),
101
+ a("div", M, $(l(g)), 1),
102
102
  t.mandatory && (Array.isArray(t.selectedOption) ? !t.selectedOption.length : !t.selectedOption) ? (o(), n("span", W, "*")) : i("", !0)
103
103
  ])
104
104
  ])
@@ -1,7 +1,7 @@
1
1
  import o from "./ChipDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-889042cf"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a8fdae89"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css"; import { defineComponent as V, ref as b, computed as p, openBlock as _, createElementBlock as C, mergeProps as s, unref as t, createElementVNode as c, createVNode as d, withCtx as w, createTextVNode as k, toDisplayString as v, withDirectives as u, vShow as f, withModifiers as x } from "vue";
1
+ import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css"; import { defineComponent as V, ref as b, computed as p, openBlock as _, createElementBlock as C, mergeProps as s, unref as t, createElementVNode as c, createVNode as d, withCtx as w, createTextVNode as k, toDisplayString as v, withDirectives as u, vShow as f, withModifiers as x } from "vue";
2
2
  import m from "../../icon/v4/IconV4.vue.js";
3
3
  import A from "../../typography/v4/Typography.vue.js";
4
4
  import { DropdownTestIdModifiers as o } from "../../../testids/index.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c3033d90"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ad524750"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,21 +1,20 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css"; import { defineComponent as I, computed as r, openBlock as a, createElementBlock as n, createBlock as m, createCommentVNode as o, createElementVNode as c, mergeProps as y, unref as l, renderSlot as h, createVNode as s, withCtx as O, createTextVNode as x, toDisplayString as w } from "vue";
2
- import V from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as m, unref as l, renderSlot as y, createVNode as i, withCtx as I, createTextVNode as B, toDisplayString as V } from "vue";
2
+ import x from "../../typography/v4/Typography.vue.js";
3
3
  import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
4
- import T from "../../icon/v4/IconV4.vue.js";
5
- import B from "../../shared/FieldLabel.vue.js";
6
- import D from "../../shared/FieldHelpText.vue.js";
7
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
- import N from "../../statusDot/StatusDot.vue.js";
9
- const K = { class: "default-dropdown-wrapper" }, $ = { class: "content" }, C = {
4
+ import h from "../../icon/v4/IconV4.vue.js";
5
+ import w from "../../shared/FieldLabel.vue.js";
6
+ import { useTestIdAttrs as D } from "../../../utils/testIds.js";
7
+ import A from "../../statusDot/StatusDot.vue.js";
8
+ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
10
9
  key: 0,
11
10
  class: "image"
12
- }, H = ["src"], P = {
11
+ }, C = ["src"], P = {
13
12
  key: 1,
14
13
  class: "start-icon"
15
14
  }, S = {
16
15
  key: 2,
17
16
  class: "status-dot"
18
- }, z = { class: "caret-down" }, G = /* @__PURE__ */ I({
17
+ }, z = { class: "caret-down" }, j = /* @__PURE__ */ v({
19
18
  __name: "DefaultDropdownTrigger",
20
19
  props: {
21
20
  placeholder: { default: "Select" },
@@ -44,12 +43,12 @@ const K = { class: "default-dropdown-wrapper" }, $ = { class: "content" }, C = {
44
43
  statusDotType: { default: null }
45
44
  },
46
45
  emits: ["click"],
47
- setup(t, { emit: b }) {
48
- const e = t, g = r(
46
+ setup(t, { emit: g }) {
47
+ const e = t, T = r(
49
48
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
50
- ), k = () => {
51
- b("click");
52
- }, f = A(e.testId, u), v = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
49
+ ), b = () => {
50
+ g("click");
51
+ }, p = D(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
53
52
  if (!e.selectedOption)
54
53
  return null;
55
54
  if (!e.multi)
@@ -57,8 +56,8 @@ const K = { class: "default-dropdown-wrapper" }, $ = { class: "content" }, C = {
57
56
  if (Array.isArray(e.selectedOption))
58
57
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
59
58
  });
60
- return (i, p) => (a(), n("div", K, [
61
- t.label ? (a(), m(B, {
59
+ return (s, f) => (o(), a("div", N, [
60
+ t.label ? (o(), k(w, {
62
61
  key: 0,
63
62
  label: t.label,
64
63
  mandatory: t.mandatory,
@@ -67,58 +66,50 @@ const K = { class: "default-dropdown-wrapper" }, $ = { class: "content" }, C = {
67
66
  disabled: t.disabled,
68
67
  "test-id": t.testId,
69
68
  class: "dropdown-field-label"
70
- }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : o("", !0),
71
- c("div", y({
72
- class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
73
- }, l(f)[l(u).BUTTON_WRAPPER], {
74
- onClick: p[0] || (p[0] = (E) => k())
69
+ }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
70
+ c("div", m({
71
+ class: ["dropdown-trigger", [t.size, l(T), { open: t.open, disabled: t.disabled }]]
72
+ }, l(p)[l(u).BUTTON_WRAPPER], {
73
+ onClick: f[0] || (f[0] = (E) => b())
75
74
  }), [
76
- c("div", $, [
77
- i.$slots.image || l(d) && t.optionImageKey ? (a(), n("div", C, [
78
- h(i.$slots, "image", {}, () => [
79
- t.optionImageKey ? (a(), n("img", {
75
+ c("div", K, [
76
+ s.$slots.image || l(d) && t.optionImageKey ? (o(), a("div", $, [
77
+ y(s.$slots, "image", {}, () => [
78
+ t.optionImageKey ? (o(), a("img", {
80
79
  key: 0,
81
80
  src: l(d)[t.optionImageKey]
82
- }, null, 8, H)) : o("", !0)
81
+ }, null, 8, C)) : n("", !0)
83
82
  ], !0)
84
- ])) : o("", !0),
85
- i.$slots["icon-start"] || l(d) && t.optionIconKey ? (a(), n("div", P, [
86
- h(i.$slots, "icon-start", {}, () => [
87
- s(l(T), {
83
+ ])) : n("", !0),
84
+ s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", P, [
85
+ y(s.$slots, "icon-start", {}, () => [
86
+ i(l(h), {
88
87
  type: t.optionIconType,
89
88
  name: l(d)[t.optionIconKey],
90
89
  size: "20px"
91
90
  }, null, 8, ["type", "name"])
92
91
  ], !0)
93
- ])) : o("", !0),
94
- t.statusDotType ? (a(), n("div", S, [
95
- s(l(N), { type: t.statusDotType }, null, 8, ["type"])
96
- ])) : o("", !0),
97
- s(l(V), y({ variant: "body1" }, l(f)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
98
- default: O(() => [
99
- x(w(l(v)), 1)
92
+ ])) : n("", !0),
93
+ t.statusDotType ? (o(), a("div", S, [
94
+ i(l(A), { type: t.statusDotType }, null, 8, ["type"])
95
+ ])) : n("", !0),
96
+ i(l(x), m({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
97
+ default: I(() => [
98
+ B(V(l(O)), 1)
100
99
  ]),
101
100
  _: 1
102
101
  }, 16)
103
102
  ]),
104
103
  c("div", z, [
105
- s(l(T), {
104
+ i(l(h), {
106
105
  name: "caret-down",
107
106
  size: "20px"
108
107
  })
109
108
  ])
110
- ], 16),
111
- t.feedbackText ? (a(), m(D, {
112
- key: 1,
113
- text: t.feedbackText,
114
- variant: t.feedbackVariant,
115
- "show-icon": t.showFeedbackIcon,
116
- "test-id": t.testId,
117
- class: "dropdown-field-help-text"
118
- }, null, 8, ["text", "variant", "show-icon", "test-id"])) : o("", !0)
109
+ ], 16)
119
110
  ]));
120
111
  }
121
112
  });
122
113
  export {
123
- G as default
114
+ j as default
124
115
  };
@@ -40,6 +40,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
40
  optionIconKey?: string;
41
41
  optionImageKey?: string;
42
42
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
43
+ optionEndIconKey?: string;
44
+ optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
43
45
  valueToCopy?: string;
44
46
  disabledOptionKey?: string;
45
47
  theme?: string;
@@ -85,6 +87,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
85
87
  optionIconKey: string;
86
88
  optionImageKey: string;
87
89
  optionIconType: any;
90
+ optionEndIconKey: string;
91
+ optionEndIconType: any;
88
92
  valueToCopy: any;
89
93
  disabledOptionKey: string;
90
94
  fullWidth: boolean;
@@ -99,6 +103,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
99
103
  closed: () => void;
100
104
  opened: () => void;
101
105
  apply: (value: unknown) => void;
106
+ selectAll: () => void;
107
+ clear: () => void;
108
+ copyToClipboard: () => void;
102
109
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
103
110
  modelValue?: unknown;
104
111
  selected?: unknown;
@@ -140,6 +147,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
140
147
  optionIconKey?: string;
141
148
  optionImageKey?: string;
142
149
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
150
+ optionEndIconKey?: string;
151
+ optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
143
152
  valueToCopy?: string;
144
153
  disabledOptionKey?: string;
145
154
  theme?: string;
@@ -185,13 +194,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
185
194
  optionIconKey: string;
186
195
  optionImageKey: string;
187
196
  optionIconType: any;
197
+ optionEndIconKey: string;
198
+ optionEndIconType: any;
188
199
  valueToCopy: any;
189
200
  disabledOptionKey: string;
190
201
  fullWidth: boolean;
191
202
  optionsListWidth: any;
192
203
  statusType: any;
193
204
  }>>> & {
205
+ onCopyToClipboard?: () => any;
206
+ onClear?: () => any;
194
207
  onApply?: (value: unknown) => any;
208
+ onSelectAll?: () => any;
195
209
  "onUpdate:selected"?: (value: unknown) => any;
196
210
  "onUpdate:isOpen"?: (value: unknown) => any;
197
211
  onOpened?: () => any;
@@ -234,6 +248,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
234
248
  optionIconKey: string;
235
249
  optionImageKey: string;
236
250
  optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
251
+ optionEndIconKey: string;
252
+ optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
237
253
  valueToCopy: string;
238
254
  disabledOptionKey: string;
239
255
  fullWidth: boolean;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
- /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css"; //*');
2
+ /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bf8e7ff5"]]);
5
+ const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0363db63"]]);
6
6
  export {
7
7
  r as default
8
8
  };