@ironsource/shared-ui 2.1.6-test.3 → 2.1.6-test.4

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 (143) 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/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
  5. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
  7. package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
  8. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
  9. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
  10. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
  11. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  12. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  13. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
  14. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  15. 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
  16. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  17. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
  19. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +1 -0
  20. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  21. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  22. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  23. package/components/appHeader/AppHeader.vue.js +2 -2
  24. package/components/appHeader/AppHeader.vue2.js +30 -28
  25. package/components/appHeader/index.d.ts +6 -2
  26. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  27. package/components/autocomplete/Autocomplete.vue.js +4 -4
  28. package/components/autocomplete/Autocomplete.vue2.js +43 -37
  29. package/components/autocomplete/index.d.ts +20 -1
  30. package/components/datePicker/common/DatePicker.common.d.ts +11 -0
  31. package/components/datePicker/common/DatePicker.common.js +52 -0
  32. package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
  33. package/components/datePicker/common/DatePickerMonth.common.js +66 -0
  34. package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
  35. package/components/datePicker/v3/DatePicker.vue.js +7 -0
  36. package/components/datePicker/v3/DatePicker.vue2.js +69 -0
  37. package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
  38. package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
  39. package/components/datePicker/{index.d.ts → v3/index.d.ts} +1 -1
  40. package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
  41. package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
  42. package/components/datePicker/v4/index.d.ts +184 -0
  43. package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
  44. package/components/dateRange/common/CalendarMonth.common.js +131 -0
  45. package/components/dateRange/common/DateRange.common.d.ts +47 -0
  46. package/components/dateRange/common/DateRange.common.js +265 -0
  47. package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
  48. package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
  49. package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
  50. package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
  51. package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
  52. package/components/dateRange/v3/DateRange.vue.js +7 -0
  53. package/components/dateRange/v3/DateRange.vue2.js +226 -0
  54. package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
  55. package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
  56. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
  57. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
  58. package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
  59. package/components/dateRange/v4/index.d.ts +408 -0
  60. package/components/dialog/v4/DialogV4.vue.js +3 -3
  61. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  62. package/components/dropdown/common/Dropdown.common.js +21 -21
  63. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  64. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  65. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  66. package/components/dropdown/v3/index.d.ts +13 -1
  67. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
  68. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  69. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
  70. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  71. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  72. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  74. package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
  75. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  76. package/components/dropdown/v4/DropdownV4.vue2.js +90 -85
  77. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  78. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  79. package/components/dropdown/v4/OptionV4.vue2.js +61 -44
  80. package/components/dropdown/v4/index.d.ts +105 -4
  81. package/components/filtersPanel/v3/Filter.d.ts +1 -1
  82. package/components/forms/FormCard.vue.js +2 -2
  83. package/components/forms/FormCard.vue2.js +9 -9
  84. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  85. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  86. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  87. package/components/inlineCopy/index.d.ts +6 -2
  88. package/components/input/v4/TextField.vue.d.ts +5 -0
  89. package/components/input/v4/TextField.vue.js +3 -3
  90. package/components/input/v4/TextField.vue2.js +24 -21
  91. package/components/input/v4/index.d.ts +20 -1
  92. package/components/multibar/MultiBar.vue.js +3 -3
  93. package/components/multibar/MultiBar.vue2.js +21 -21
  94. package/components/shared/FieldLabel.vue.js +3 -3
  95. package/components/shared/FieldLabel.vue2.js +9 -9
  96. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  97. package/components/table/v4/DataGrid.vue.js +3 -3
  98. package/components/table/v4/DataGrid.vue2.js +147 -147
  99. package/components/table/v4/index.d.ts +14 -2
  100. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  101. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  102. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  103. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  104. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  105. package/components/tooltip/v4/index.d.ts +17 -5
  106. package/index.d.ts +338 -34
  107. package/index.js +4 -4
  108. package/package.json +3 -3
  109. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  110. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  111. package/Autocomplete.vue_vue_type_style_index_0_scoped_e43dd7e6_lang.css +0 -1
  112. package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
  113. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  114. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  115. package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
  116. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
  117. package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
  118. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
  119. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  120. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  121. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  122. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  123. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  124. package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +0 -1
  125. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  126. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
  127. package/TextField.vue_vue_type_style_index_0_scoped_e093021d_lang.css +0 -1
  128. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
  129. package/components/datePicker/DatePicker.vue.js +0 -7
  130. package/components/datePicker/DatePicker.vue2.js +0 -97
  131. package/components/datePicker/DatePickerMonth.vue.js +0 -7
  132. package/components/datePicker/DatePickerMonth.vue2.js +0 -85
  133. package/components/dateRange/CalendarMonth.vue.js +0 -7
  134. package/components/dateRange/CalendarMonth.vue2.js +0 -244
  135. package/components/dateRange/DateRange.vue.js +0 -7
  136. package/components/dateRange/DateRange.vue2.js +0 -417
  137. /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
  138. /package/components/datePicker/{index.js → v3/index.js} +0 -0
  139. /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
  140. /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
  141. /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
  142. /package/components/dateRange/{consts.js → common/consts.common.js} +0 -0
  143. /package/components/dateRange/{index.js → v3/index.js} +0 -0
@@ -1,20 +1,20 @@
1
- import "../../../DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css"; import { defineComponent as A, openBlock as o, createBlock as i, Teleport as w, createVNode as T, Transition as p, withCtx as d, unref as e, createElementBlock as f, createElementVNode as m, mergeProps as s, renderSlot as b, createTextVNode as r, toDisplayString as c, createCommentVNode as u } from "vue";
2
- import { NOOP as I } from "@vue/shared";
3
- import g from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; import { defineComponent as A, openBlock as o, createBlock as c, Teleport as w, createVNode as b, Transition as I, withCtx as u, unref as e, createElementBlock as m, createElementVNode as C, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as d } from "vue";
2
+ import { NOOP as V } from "@vue/shared";
3
+ import T from "../../typography/v4/Typography.vue.js";
4
4
  import N from "../../button/v4/ButtonV4.vue.js";
5
- import L from "../../button/v4/IconButtonV4.vue.js";
6
- import { Reason as O } from "../common/Reason.js";
7
- import { dialogCommon as V } from "../common/Dialog.common.js";
5
+ import p from "../../button/v4/IconButtonV4.vue.js";
6
+ import { Reason as g } from "../common/Reason.js";
7
+ import { dialogCommon as D } from "../common/Dialog.common.js";
8
8
  import { DialogTestIdModifiers as l } from "../../../testids/index.js";
9
- import { useTestIdAttrs as $ } from "../../../utils/testIds.js";
10
- import { useMagicKeys as D, whenever as P } from "@vueuse/core";
11
- const R = {
9
+ import { useTestIdAttrs as P } from "../../../utils/testIds.js";
10
+ import { useMagicKeys as R, whenever as $ } from "@vueuse/core";
11
+ const S = {
12
12
  key: 0,
13
13
  class: "container light-theme-v4"
14
- }, S = { class: "title" }, F = {
14
+ }, F = { class: "title" }, U = {
15
15
  key: 1,
16
16
  class: "footer"
17
- }, J = /* @__PURE__ */ A({
17
+ }, Q = /* @__PURE__ */ A({
18
18
  __name: "DialogV4",
19
19
  props: {
20
20
  modelValue: { type: Boolean },
@@ -39,106 +39,111 @@ const R = {
39
39
  testId: { default: "" }
40
40
  },
41
41
  emits: ["update:modelValue", "open", "close", "save", "cancel"],
42
- setup(t, { emit: B }) {
43
- const C = t, { escape: E } = D(), a = $(C.testId, l), { visible: h, handleClose: y } = V(C, B);
44
- return P(E, () => {
45
- h.value && C.escapeToClose && y(O.Escape);
46
- }), (v, n) => (o(), i(w, {
42
+ setup(t, { emit: v }) {
43
+ const i = t, { escape: L } = R(), a = P(i.testId, l), { visible: h, handleClose: y } = D(i, v);
44
+ $(L, () => {
45
+ h.value && i.escapeToClose && !i.saveButtonLoading && y(g.Escape);
46
+ });
47
+ const E = () => {
48
+ const { closeOnClickOutside: r, saveButtonLoading: n } = i;
49
+ r && !n ? y(g.Backdrop) : V();
50
+ };
51
+ return (r, n) => (o(), c(w, {
47
52
  to: "body",
48
53
  disabled: !t.appendToBody
49
54
  }, [
50
- T(p, null, {
51
- default: d(() => [
52
- e(h) ? (o(), f("div", R, [
53
- m("div", s({
55
+ b(I, null, {
56
+ default: u(() => [
57
+ e(h) ? (o(), m("div", S, [
58
+ C("div", s({
54
59
  class: ["dialog", [`dialog--${t.size}`]]
55
60
  }, e(a)[e(l).WRAPPER]), [
56
- t.title || t.subtitle || t.showCloseButton ? (o(), f("header", s({
61
+ t.title || t.subtitle || t.showCloseButton ? (o(), m("header", s({
57
62
  key: 0,
58
63
  class: "header"
59
64
  }, e(a)[e(l).HEADER]), [
60
- m("div", S, [
61
- b(v.$slots, "header", {}, () => [
62
- t.title ? (o(), i(e(g), {
65
+ C("div", F, [
66
+ k(r.$slots, "header", {}, () => [
67
+ t.title ? (o(), c(e(T), {
63
68
  key: 0,
64
69
  variant: "h3"
65
70
  }, {
66
- default: d(() => [
67
- r(c(t.title), 1)
71
+ default: u(() => [
72
+ f(B(t.title), 1)
68
73
  ]),
69
74
  _: 1
70
- })) : u("", !0),
71
- t.subtitle ? (o(), i(e(g), {
75
+ })) : d("", !0),
76
+ t.subtitle ? (o(), c(e(T), {
72
77
  key: 1,
73
78
  class: "subtitle",
74
79
  variant: "body1"
75
80
  }, {
76
- default: d(() => [
77
- r(c(t.subtitle), 1)
81
+ default: u(() => [
82
+ f(B(t.subtitle), 1)
78
83
  ]),
79
84
  _: 1
80
- })) : u("", !0)
85
+ })) : d("", !0)
81
86
  ], !0)
82
87
  ]),
83
- t.showCloseButton ? (o(), i(e(L), s({
88
+ t.showCloseButton ? (o(), c(e(p), s({
84
89
  key: 0,
85
90
  class: "close-button",
86
- "icon-name": "x"
91
+ "icon-name": "x",
92
+ disabled: t.saveButtonLoading
87
93
  }, e(a)[e(l).ACTION_CLOSE], {
88
- onClick: n[0] || (n[0] = (k) => e(y)(e(O).CloseButton))
89
- }), null, 16)) : u("", !0)
90
- ], 16)) : u("", !0),
91
- m("div", s({ class: "content" }, e(a)[e(l).CONTENT]), [
92
- b(v.$slots, "default", {}, () => [
93
- t.content ? (o(), i(e(g), {
94
+ onClick: n[0] || (n[0] = (O) => e(y)(e(g).CloseButton))
95
+ }), null, 16, ["disabled"])) : d("", !0)
96
+ ], 16)) : d("", !0),
97
+ C("div", s({ class: "content" }, e(a)[e(l).CONTENT]), [
98
+ k(r.$slots, "default", {}, () => [
99
+ t.content ? (o(), c(e(T), {
94
100
  key: 0,
95
101
  variant: "body1"
96
102
  }, {
97
- default: d(() => [
98
- r(c(t.content), 1)
103
+ default: u(() => [
104
+ f(B(t.content), 1)
99
105
  ]),
100
106
  _: 1
101
- })) : u("", !0)
107
+ })) : d("", !0)
102
108
  ], !0)
103
109
  ], 16),
104
- t.showFooter ? (o(), f("footer", F, [
105
- m("div", s({ class: "action-buttons" }, e(a)[e(l).ACTION_BUTTONS_WRAPPER]), [
106
- b(v.$slots, "footer", {}, () => [
107
- T(e(N), s({
110
+ t.showFooter ? (o(), m("footer", U, [
111
+ C("div", s({ class: "action-buttons" }, e(a)[e(l).ACTION_BUTTONS_WRAPPER]), [
112
+ k(r.$slots, "footer", {}, () => [
113
+ b(e(N), s({
108
114
  class: "form-action",
109
115
  variant: "outlined",
110
- color: t.cancelButtonColor
116
+ color: t.cancelButtonColor,
117
+ disabled: t.saveButtonLoading
111
118
  }, e(a)[e(l).CANCEL_BUTTON], {
112
- onClick: n[1] || (n[1] = (k) => B("cancel"))
119
+ onClick: n[1] || (n[1] = (O) => v("cancel"))
113
120
  }), {
114
- default: d(() => [
115
- r(c(t.cancelButtonLabel), 1)
121
+ default: u(() => [
122
+ f(B(t.cancelButtonLabel), 1)
116
123
  ]),
117
124
  _: 1
118
- }, 16, ["color"]),
119
- T(e(N), s({
125
+ }, 16, ["color", "disabled"]),
126
+ b(e(N), s({
120
127
  class: "form-action",
121
128
  loading: t.saveButtonLoading,
122
129
  color: t.saveButtonColor
123
130
  }, e(a)[e(l).SAVE_BUTTON], {
124
- onClick: n[2] || (n[2] = (k) => B("save"))
131
+ onClick: n[2] || (n[2] = (O) => v("save"))
125
132
  }), {
126
- default: d(() => [
127
- r(c(t.saveButtonLabel), 1)
133
+ default: u(() => [
134
+ f(B(t.saveButtonLabel), 1)
128
135
  ]),
129
136
  _: 1
130
137
  }, 16, ["loading", "color"])
131
138
  ], !0)
132
139
  ], 16)
133
- ])) : u("", !0)
140
+ ])) : d("", !0)
134
141
  ], 16),
135
- t.showBackdrop ? (o(), f("div", s({
142
+ t.showBackdrop ? (o(), m("div", s({
136
143
  key: 0,
137
144
  class: "dialog-backdrop"
138
- }, e(a)[e(l).BACKDROP], {
139
- onClick: n[3] || (n[3] = (k) => t.closeOnClickOutside ? e(y)(e(O).Backdrop) : e(I)())
140
- }), null, 16)) : u("", !0)
141
- ])) : u("", !0)
145
+ }, e(a)[e(l).BACKDROP], { onClick: E }), null, 16)) : d("", !0)
146
+ ])) : d("", !0)
142
147
  ]),
143
148
  _: 3
144
149
  })
@@ -146,5 +151,5 @@ const R = {
146
151
  }
147
152
  });
148
153
  export {
149
- J as default
154
+ Q as default
150
155
  };
@@ -1,12 +1,12 @@
1
1
  import { useToggle as me } from "../../../composables/useToggle.js";
2
- import { ref as n, computed as r, watch as m, useSlots as Pe, toRaw as A, nextTick as D, provide as Te, onMounted as we } from "vue";
2
+ import { ref as n, computed as r, watch as P, useSlots as Pe, toRaw as A, nextTick as D, provide as Te, onMounted as we } from "vue";
3
3
  import { isObjectInArray as W } from "../../../utils/array.js";
4
4
  import { objectsEqual as xe } from "../../../utils/object.js";
5
5
  import { useClamp as Ie, useVirtualList as De, onClickOutside as Y } from "@vueuse/core";
6
- import { Mode as O, Type as _, DropdownContext as Ne } from "./DropdownContext.js";
6
+ import { Mode as m, Type as _, DropdownContext as Ne } from "./DropdownContext.js";
7
7
  import { pxToRem as Re } from "../../../utils/style.js";
8
8
  import { useEditableContext as Ee } from "../../table-cells/common/EditableContext.js";
9
- const Ue = (l, P, b) => {
9
+ const Ue = (l, O, b) => {
10
10
  const Z = (e, t) => l.multi ? W(e, t) : A(e) === t;
11
11
  let k;
12
12
  ((e) => {
@@ -19,20 +19,20 @@ const Ue = (l, P, b) => {
19
19
  return N?.value?.value ?? a.value;
20
20
  },
21
21
  set(e) {
22
- N.onChange?.(e), N.onClose?.(), P("update:selected", e);
22
+ N.onChange?.(e), N.onClose?.(), O("update:selected", e);
23
23
  }
24
24
  });
25
- m(
25
+ P(
26
26
  () => l.selected,
27
27
  () => {
28
28
  a.value = l.selected, v.value = l.selected;
29
29
  }
30
30
  );
31
- const p = Pe(), T = n(null), g = n(null), V = n(null), R = n(null), H = n(null), w = n(null), F = n(), B = n(null), L = n(null), U = n(null), ee = 8, le = r(() => w.value ? w.value.getBoundingClientRect().height + ee + l.distance : 0), c = n([]), x = n(-1), I = n(""), v = n([]), q = () => w.value?.focus(), [d, te, ae] = me({
31
+ const p = Pe(), T = n(null), g = n(null), V = n(null), R = n(null), H = n(null), w = n(null), F = n(), B = n(null), L = n(null), U = n(null), ee = 8, le = r(() => w.value ? w.value.getBoundingClientRect().height + ee + l.distance : 0), c = n([]), x = n(-1), I = n(""), v = n(l.selected || []), q = () => w.value?.focus(), [d, te, ae] = me({
32
32
  disabled: l.disabled,
33
33
  initialValue: l.defaultOpen
34
34
  });
35
- m(
35
+ P(
36
36
  () => l.disabled,
37
37
  (e) => {
38
38
  e !== void 0 && ae(e);
@@ -45,7 +45,7 @@ const Ue = (l, P, b) => {
45
45
  return l.isOpen;
46
46
  },
47
47
  set(e) {
48
- P("update:isOpen", e);
48
+ O("update:isOpen", e);
49
49
  }
50
50
  }), ne = r(() => s.value.length - 1), o = Ie(0, 0, ne), K = r(() => u.value ? l.displayValue(u.value) : ""), ie = (e) => {
51
51
  if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
@@ -74,7 +74,7 @@ const Ue = (l, P, b) => {
74
74
  }), s = r(() => {
75
75
  const e = Array.isArray(v.value) && l.multi && b.VERSION === 4 ? se.value : l.options;
76
76
  return l.onSearch ? e.filter((t) => l.onSearch(t, I.value)) : e;
77
- }), ce = r(() => c.value[0]?.hasSubtitle), X = r(() => i.mode === O.Multi), j = r(
77
+ }), ce = r(() => c.value[0]?.hasSubtitle), X = r(() => i.mode === m.Multi), j = r(
78
78
  () => ce.value ? b.MULTILINE_LIST_HEIGHT : b.LIST_HEIGHT
79
79
  ), {
80
80
  list: z,
@@ -85,14 +85,14 @@ const Ue = (l, P, b) => {
85
85
  itemHeight: j.value,
86
86
  overscan: 2
87
87
  });
88
- m(
88
+ P(
89
89
  () => l.isOpen,
90
90
  (e) => {
91
91
  G(e);
92
92
  }
93
- ), m([x], async () => {
93
+ ), P([x], async () => {
94
94
  await D();
95
- }), m(
95
+ }), P(
96
96
  [d, o, x],
97
97
  async ([e], [t]) => {
98
98
  d.value && (await D(), x.value !== -1 && e !== t && setTimeout(() => {
@@ -104,10 +104,10 @@ const Ue = (l, P, b) => {
104
104
  );
105
105
  const h = (e, t = !1) => {
106
106
  l.disabled || (G(e), D(() => {
107
- d.value && P("opened"), d.value || P("closed"), T.value && t && T.value.focus();
107
+ d.value && O("opened"), d.value || O("closed"), T.value && t && T.value.focus();
108
108
  }));
109
109
  };
110
- m(d, (e) => {
110
+ P(d, (e) => {
111
111
  if (e) {
112
112
  X.value && Array.isArray(u.value) && (v.value = A(u.value).slice());
113
113
  return;
@@ -124,16 +124,16 @@ const Ue = (l, P, b) => {
124
124
  a.value = [];
125
125
  return;
126
126
  }
127
- a.value = s.value;
127
+ a.value = s.value, O("selectAll");
128
128
  }
129
129
  }, fe = () => {
130
130
  de(), b.VERSION !== 4 && (u.value = a.value);
131
131
  }, ge = (e = !0) => {
132
- a.value = [], e && (u.value = [], v.value = []);
132
+ a.value = [], e && (u.value = [], v.value = [], O("clear"));
133
133
  }, C = (e, t) => {
134
134
  if (e = A(e), c.value[t]?.disabled)
135
135
  return;
136
- if (x.value = t, i.mode !== O.Multi) {
136
+ if (x.value = t, i.mode !== m.Multi) {
137
137
  l.keepOpen || h(!1), i.goToOption(
138
138
  0
139
139
  /* None */
@@ -162,7 +162,7 @@ const Ue = (l, P, b) => {
162
162
  listRef: T,
163
163
  clearable: l.clearable,
164
164
  type: p.input ? _.Search : _.Dropdown,
165
- mode: l.multi ? O.Multi : O.Single,
165
+ mode: l.multi ? m.Multi : m.Single,
166
166
  query: I,
167
167
  selectedValue: K,
168
168
  toggle: h,
@@ -173,7 +173,7 @@ const Ue = (l, P, b) => {
173
173
  placeholder: l.placeholder,
174
174
  select: C,
175
175
  clearSelection: () => {
176
- E(""), u.value = i.mode === O.Single ? null : [], v.value = i.mode === O.Single ? null : [], g.value && (g.value.value = "");
176
+ E(""), u.value = i.mode === m.Single ? null : [], v.value = i.mode === m.Single ? null : [], g.value && (g.value.value = "");
177
177
  },
178
178
  search: E,
179
179
  goToOption: async (e) => {
@@ -229,7 +229,7 @@ const Ue = (l, P, b) => {
229
229
  })), i.goToOption(0);
230
230
  });
231
231
  const Se = () => {
232
- u.value = a.value, Array.isArray(u.value) && (v.value = A(u.value).slice()), P("apply", u.value), h(!1), ye();
232
+ u.value = a.value, Array.isArray(u.value) && (v.value = A(u.value).slice()), O("apply", u.value), h(!1), ye();
233
233
  }, Q = () => {
234
234
  X.value && Array.isArray(v.value) && (u.value = A(v.value).slice()), I.value = "", h(!1);
235
235
  }, be = (e) => {
@@ -281,7 +281,7 @@ const Ue = (l, P, b) => {
281
281
  h(!0);
282
282
  return;
283
283
  }
284
- C(s.value[o.value], o.value), i.mode === O.Single && !l.keepOpen && h(!1), e.preventDefault();
284
+ C(s.value[o.value], o.value), i.mode === m.Single && !l.keepOpen && h(!1), e.preventDefault();
285
285
  break;
286
286
  }
287
287
  }
@@ -84,6 +84,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
84
84
  closed: () => void;
85
85
  opened: () => void;
86
86
  apply: (value: unknown) => void;
87
+ selectAll: () => void;
88
+ clear: () => void;
87
89
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
88
90
  modelValue?: unknown;
89
91
  placeholder?: string;
@@ -161,7 +163,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
161
163
  darkTheme: boolean;
162
164
  valueToCopy: string;
163
165
  }>>> & {
166
+ onClear?: () => any;
164
167
  onApply?: (value: unknown) => any;
168
+ onSelectAll?: () => any;
165
169
  "onUpdate:selected"?: (value: unknown) => any;
166
170
  "onUpdate:isOpen"?: (value: unknown) => any;
167
171
  onOpened?: () => any;
@@ -1,8 +1,8 @@
1
1
  import o from "./Dropdown.vue2.js";
2
- /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css"; //*');
2
+ /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css"; //*');
4
4
  // import "../../../Dropdown.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d4f8e790"]]);
5
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-aaa8c4bb"]]);
6
6
  export {
7
- r as default
7
+ a as default
8
8
  };
@@ -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;