@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.51

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 (182) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  7. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  8. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  11. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  12. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  13. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  14. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  15. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  16. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  17. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  18. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  19. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  20. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  21. package/README.md +4 -15
  22. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  23. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
  24. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  25. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
  26. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
  27. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  28. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
  29. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  30. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  31. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
  32. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  33. package/components/button/v3/Button.vue.d.ts +6 -6
  34. package/components/button/v3/index.d.ts +14 -14
  35. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
  36. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  37. package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
  38. package/components/button/v4/index.d.ts +9 -3
  39. package/components/chart/Chart.vue.d.ts +17 -4
  40. package/components/chart/Chart.vue.js +5 -5
  41. package/components/chart/Chart.vue2.js +127 -110
  42. package/components/chart/ChartHeader.vue.d.ts +13 -6
  43. package/components/chart/ChartHeader.vue.js +2 -2
  44. package/components/chart/ChartHeader.vue2.js +32 -29
  45. package/components/chart/ChartLegend.vue.d.ts +5 -0
  46. package/components/chart/ChartLegend.vue.js +3 -3
  47. package/components/chart/ChartLegend.vue2.js +99 -49
  48. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  49. package/components/chart/ChartTooltip.vue.js +2 -2
  50. package/components/chart/ChartTooltip.vue2.js +64 -43
  51. package/components/chart/SettingsHeader.vue2.js +3 -2
  52. package/components/chart/index.d.ts +74 -35
  53. package/components/chart/mockData.d.ts +15 -2
  54. package/components/chart/types.d.ts +15 -1
  55. package/components/chart/utils/utils.js +5 -5
  56. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  57. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  58. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  59. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  60. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  61. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  62. package/components/dialog/v4/DialogV4.vue.js +3 -3
  63. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  64. package/components/dialog/v4/index.d.ts +58 -1
  65. package/components/dropdown/common/Dropdown.common.js +200 -189
  66. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  67. package/components/dropdown/v3/index.d.ts +39 -39
  68. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  69. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  70. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  71. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  72. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  74. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  75. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  76. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
  77. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
  78. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  79. package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
  80. package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
  81. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  82. package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
  83. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
  84. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  85. package/components/dropdown/v4/OptionV4.vue2.js +135 -98
  86. package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
  87. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  88. package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
  89. package/components/dropdown/v4/index.d.ts +443 -110
  90. package/components/dropdown/v4/index.js +6 -3
  91. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  92. package/components/emptyState/v3/index.d.ts +7 -7
  93. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  94. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  95. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  96. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  97. package/components/forms/FormCard.vue.js +3 -3
  98. package/components/forms/FormCard.vue2.js +1 -1
  99. package/components/icon/v4/consts.d.ts +1 -1
  100. package/components/icon/v4/consts.js +1 -1
  101. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  102. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  103. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  104. package/components/inlineCopy/index.d.ts +9 -0
  105. package/components/input/v4/TextField.vue.js +3 -3
  106. package/components/input/v4/TextField.vue2.js +12 -12
  107. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  108. package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
  109. package/components/popover/v4/PopoverV4.vue.js +4 -3
  110. package/components/popover/v4/PopoverV4.vue2.js +40 -24
  111. package/components/popover/v4/index.d.ts +55 -11
  112. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  113. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  114. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  115. package/components/sortableList/SortableItem.vue.js +3 -3
  116. package/components/sortableList/SortableItem.vue2.js +57 -56
  117. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  118. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  119. package/components/sortableList/SortableList.vue.d.ts +1 -1
  120. package/components/sortableList/SortableList.vue.js +3 -3
  121. package/components/sortableList/SortableList.vue2.js +82 -76
  122. package/components/sortableList/index.d.ts +4 -4
  123. package/components/table/common/Table.common.d.ts +1 -1
  124. package/components/table/common/Table.common.js +83 -77
  125. package/components/table/common/Table.types.d.ts +1 -1
  126. package/components/table/common/consts.d.ts +4 -0
  127. package/components/table/common/consts.js +7 -0
  128. package/components/table/v3/Table.vue.d.ts +1 -1
  129. package/components/table/v3/index.d.ts +5 -5
  130. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  131. package/components/table/v4/DataGrid.vue.js +2 -2
  132. package/components/table/v4/DataGrid.vue2.js +164 -155
  133. package/components/table/v4/DataGridMenu.vue.js +5 -5
  134. package/components/table/v4/DataGridMenu.vue2.js +4 -3
  135. package/components/table/v4/index.d.ts +64 -26
  136. package/components/table-cells/common/Editable.common.js +24 -19
  137. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  138. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  139. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  140. package/components/tooltip/v4/index.d.ts +39 -1
  141. package/components/typography/v4/Typography.vue.js +3 -3
  142. package/components/typography/v4/Typography.vue2.js +24 -18
  143. package/composables/useFormValidation.d.ts +1 -1
  144. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  145. package/index.d.ts +1426 -320
  146. package/index.js +1 -1
  147. package/mocks/options.d.ts +48 -6
  148. package/mocks/words.d.ts +1 -1
  149. package/package.json +3 -239
  150. package/style/v4/grid.css +1 -1
  151. package/style/v4/grid.css.map +1 -1
  152. package/style/v4/spacings.scss +1 -0
  153. package/testids/index.d.ts +1 -0
  154. package/testids/index.js +13 -13
  155. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  156. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  157. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  158. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  159. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  160. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  161. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  162. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  163. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  164. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  165. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  166. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  167. package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
  168. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  169. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  170. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  171. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  172. package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
  173. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
  174. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  175. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  176. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  177. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  178. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  179. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
  180. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  181. package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
  182. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
@@ -1,18 +1,18 @@
1
- import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css"; import { defineComponent as M, computed as $, openBlock as n, createBlock as c, Transition as A, withCtx as f, withDirectives as g, createElementVNode as a, mergeProps as l, unref as e, createVNode as z, createTextVNode as I, toDisplayString as T, createCommentVNode as d, renderSlot as h, vShow as B, createElementBlock as N, Fragment as O, renderList as V, withModifiers as x } from "vue";
2
- import U from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css"; import { defineComponent as $, computed as A, openBlock as n, createBlock as d, Transition as O, withCtx as f, withDirectives as I, createElementVNode as a, mergeProps as l, unref as t, createVNode as z, createTextVNode as T, toDisplayString as h, createCommentVNode as u, renderSlot as B, vShow as N, createElementBlock as S, Fragment as V, renderList as x, withModifiers as U } from "vue";
2
+ import D from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import D from "../../button/v4/ButtonV4.vue.js";
5
- import H from "../../button/v4/IconButtonV4.vue.js";
4
+ import H from "../../button/v4/ButtonV4.vue.js";
5
+ import F from "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import S from "../../typography/v4/Typography.vue.js";
9
- import { snackbarCommon as F } from "../common/snackbar.common.js";
10
- import { useTestIdAttrs as G } from "../../../utils/testIds.js";
8
+ import b from "../../typography/v4/Typography.vue.js";
9
+ import { snackbarCommon as G } from "../common/snackbar.common.js";
10
+ import { useTestIdAttrs as P } from "../../../utils/testIds.js";
11
11
  import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
12
- const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { class: "message" }, J = { class: "action-wrapper" }, K = {
12
+ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { class: "message" }, K = { class: "action-wrapper" }, Q = {
13
13
  key: 0,
14
14
  class: "actions"
15
- }, Q = { class: "close-button-wrapper" }, ae = /* @__PURE__ */ M({
15
+ }, W = { class: "close-button-wrapper" }, lt = /* @__PURE__ */ $({
16
16
  __name: "SnackbarV4",
17
17
  props: {
18
18
  customClass: null,
@@ -32,15 +32,15 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
32
32
  testId: { default: "" }
33
33
  },
34
34
  emits: ["destroy"],
35
- setup(t) {
36
- const u = t, {
37
- visible: b,
38
- horizontalClass: p,
39
- positionStyle: w,
35
+ setup(e) {
36
+ const m = e, {
37
+ visible: p,
38
+ horizontalClass: w,
39
+ positionStyle: L,
40
40
  clearTimer: k,
41
41
  startTimer: C,
42
- close: L
43
- } = F(u), E = {
42
+ close: y
43
+ } = G(m), E = {
44
44
  info: {
45
45
  iconName: "info",
46
46
  class: "snackbar-icon-info"
@@ -53,83 +53,85 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
53
53
  iconName: "check-circle",
54
54
  class: "snackbar-icon-success"
55
55
  }
56
- }, y = $(() => E[u.type]), r = G(u.testId, i);
57
- return (m, o) => (n(), c(A, {
56
+ }, v = A(() => E[m.type]), r = P(m.testId, i), M = ({ closeOnClick: c, onClick: o }) => () => {
57
+ c && y(), o && o();
58
+ };
59
+ return (c, o) => (n(), d(O, {
58
60
  name: "snackbar",
59
- onBeforeLeave: t.onClose,
60
- onAfterLeave: o[3] || (o[3] = (s) => m.$emit("destroy"))
61
+ onBeforeLeave: e.onClose,
62
+ onAfterLeave: o[3] || (o[3] = (s) => c.$emit("destroy"))
61
63
  }, {
62
64
  default: f(() => [
63
- g(a("div", l({
64
- id: t.id,
65
- class: ["snackbar light-theme-v4", [t.customClass, e(p)]],
66
- style: e(w),
65
+ I(a("div", l({
66
+ id: e.id,
67
+ class: ["snackbar light-theme-v4", [e.customClass, t(w)]],
68
+ style: t(L),
67
69
  role: "alert"
68
- }, e(r)[e(i).CONTAINER], {
70
+ }, t(r)[t(i).CONTAINER], {
69
71
  onMouseenter: o[0] || (o[0] = //@ts-ignore
70
- (...s) => e(k) && e(k)(...s)),
72
+ (...s) => t(k) && t(k)(...s)),
71
73
  onMouseleave: o[1] || (o[1] = //@ts-ignore
72
- (...s) => e(C) && e(C)(...s)),
74
+ (...s) => t(C) && t(C)(...s)),
73
75
  onClick: o[2] || (o[2] = //@ts-ignore
74
- (...s) => t.onClick && t.onClick(...s))
76
+ (...s) => e.onClick && e.onClick(...s))
75
77
  }), [
76
- a("div", R, [
77
- a("div", j, [
78
- t.title ? (n(), c(e(S), l({
78
+ a("div", j, [
79
+ a("div", q, [
80
+ e.title ? (n(), d(t(b), l({
79
81
  key: 0,
80
82
  variant: "h4",
81
83
  class: "title"
82
- }, e(r)[e(i).TITLE]), {
84
+ }, t(r)[t(i).TITLE]), {
83
85
  default: f(() => [
84
- z(e(U), l({
85
- name: e(y).iconName,
86
+ z(t(D), l({
87
+ name: t(v).iconName,
86
88
  type: "fill",
87
89
  size: "20px",
88
- class: [e(y).class, "icon-container"]
89
- }, e(r)[e(i).ICON]), null, 16, ["name", "class"]),
90
- I(" " + T(t.title), 1)
90
+ class: [t(v).class, "icon-container"]
91
+ }, t(r)[t(i).ICON]), null, 16, ["name", "class"]),
92
+ T(" " + h(e.title), 1)
91
93
  ]),
92
94
  _: 1
93
- }, 16)) : d("", !0),
94
- g(a("div", q, [
95
- h(m.$slots, "default", {}, () => [
96
- t.dangerouslyUseHTMLString ? d("", !0) : (n(), c(e(S), l({
95
+ }, 16)) : u("", !0),
96
+ I(a("div", J, [
97
+ B(c.$slots, "default", {}, () => [
98
+ e.dangerouslyUseHTMLString ? u("", !0) : (n(), d(t(b), l({
97
99
  key: 0,
98
100
  variant: "body2"
99
- }, e(r)[e(i).MESSAGE]), {
101
+ }, t(r)[t(i).MESSAGE]), {
100
102
  default: f(() => [
101
- I(T(t.message), 1)
103
+ T(h(e.message), 1)
102
104
  ]),
103
105
  _: 1
104
106
  }, 16))
105
107
  ], !0)
106
108
  ], 512), [
107
- [B, t.message]
109
+ [N, e.message]
108
110
  ]),
109
- a("div", J, [
110
- h(m.$slots, "actions", {}, () => [
111
- t.actionButtons ? (n(), N("div", K, [
112
- (n(!0), N(O, null, V(t.actionButtons, (s, v) => (n(), c(e(D), l({
113
- key: v,
114
- "data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${v}` : "",
111
+ a("div", K, [
112
+ B(c.$slots, "actions", {}, () => [
113
+ e.actionButtons ? (n(), S("div", Q, [
114
+ (n(!0), S(V, null, x(e.actionButtons, (s, g) => (n(), d(t(H), l({
115
+ key: g,
116
+ "data-testid": e.testId ? `${e.testId}-${t(i).ACTION_BUTTON}-${g}` : "",
115
117
  size: "small"
116
- }, { ...s }), null, 16, ["data-testid"]))), 128))
117
- ])) : d("", !0)
118
+ }, { ...s, onClick: M(s) }), null, 16, ["data-testid"]))), 128))
119
+ ])) : u("", !0)
118
120
  ], !0)
119
121
  ])
120
122
  ]),
121
- a("div", Q, [
122
- t.showClose ? (n(), c(e(H), l({
123
+ a("div", W, [
124
+ e.showClose ? (n(), d(t(F), l({
123
125
  key: 0,
124
126
  "icon-name": "x",
125
127
  size: "small"
126
- }, e(r)[e(i).CLOSE], {
127
- onClick: x(e(L), ["stop"])
128
- }), null, 16, ["onClick"])) : d("", !0)
128
+ }, t(r)[t(i).CLOSE], {
129
+ onClick: U(t(y), ["stop"])
130
+ }), null, 16, ["onClick"])) : u("", !0)
129
131
  ])
130
132
  ])
131
- ], 16, P), [
132
- [B, e(b)]
133
+ ], 16, R), [
134
+ [N, t(p)]
133
135
  ])
134
136
  ]),
135
137
  _: 3
@@ -137,5 +139,5 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
137
139
  }
138
140
  });
139
141
  export {
140
- ae as default
142
+ lt as default
141
143
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SortableItem.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9dd4d372"]]);
3
+ // import "../../SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7cb676f1"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css"; import { defineComponent as P, computed as x, watch as E, ref as $, openBlock as o, createElementBlock as a, normalizeClass as f, unref as e, withModifiers as c, createElementVNode as r, createVNode as h, createBlock as s, withCtx as b, createTextVNode as w, toDisplayString as F, createCommentVNode as u, renderSlot as z, mergeProps as S, normalizeProps as I, Fragment as R, renderList as D } from "vue";
1
+ import "../../SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css"; import { defineComponent as P, useSlots as E, computed as x, watch as $, ref as I, openBlock as l, createElementBlock as i, normalizeClass as f, unref as e, withModifiers as u, createElementVNode as a, createVNode as h, createBlock as r, withCtx as b, createTextVNode as S, toDisplayString as w, createCommentVNode as d, renderSlot as R, mergeProps as F, normalizeProps as D, Fragment as j, renderList as q } from "vue";
2
2
  import V from "../typography/v4/Typography.vue.js";
3
3
  import m from "../icon/v4/IconV4.vue.js";
4
4
  import L from "../icon/v4/IconFlag.vue.js";
5
- import j from "./SortableItemLabel.vue.js";
6
- import { useVirtualList as q } from "@vueuse/core";
7
- import { matchString as A } from "../../utils/search.js";
8
- import { useHoverEffect as G } from "./composables/useHoverEffect.js";
9
- const J = { class: "draggable-handle" }, K = { class: "item__prefix" }, U = ["onClick"], W = { class: "item__text" }, X = ["onClick"], re = /* @__PURE__ */ P({
5
+ import A from "./SortableItemLabel.vue.js";
6
+ import { useVirtualList as G } from "@vueuse/core";
7
+ import { matchString as J } from "../../utils/search.js";
8
+ import { useHoverEffect as K } from "./composables/useHoverEffect.js";
9
+ const U = { class: "draggable-handle" }, W = { class: "item__prefix" }, X = ["onClick"], Y = { class: "item__text" }, Z = ["onClick"], ae = /* @__PURE__ */ P({
10
10
  __name: "SortableItem",
11
11
  props: {
12
12
  item: null,
@@ -20,121 +20,122 @@ const J = { class: "draggable-handle" }, K = { class: "item__prefix" }, U = ["on
20
20
  },
21
21
  emits: ["toggle", "select", "selectChild"],
22
22
  setup(t, { emit: y }) {
23
- const n = t, Q = () => {
23
+ const n = t, Q = E(), B = () => {
24
24
  y("toggle", !n.isOpen);
25
25
  }, g = x(() => (n.item.children || []).filter(
26
- (l) => n.searchHandler ? n.searchHandler(l, n.searchQuery) : A(l.displayText, n.searchQuery)
27
- )), p = x(() => g.value.length > 0), B = (d) => d.id === n.selectedChildId, {
28
- list: H,
29
- containerProps: M,
30
- wrapperProps: T,
26
+ (o) => n.searchHandler ? n.searchHandler(o, n.searchQuery) : J(o.displayText, n.searchQuery)
27
+ )), k = x(() => g.value.length > 0), H = (c) => c.id === n.selectedChildId, {
28
+ list: M,
29
+ containerProps: T,
30
+ wrapperProps: z,
31
31
  scrollTo: N
32
- } = q(g, {
32
+ } = G(g, {
33
33
  itemHeight: 34
34
34
  });
35
- E(
35
+ $(
36
36
  () => n.searchQuery,
37
37
  () => N(0)
38
38
  );
39
- const k = $(null), { handleMouseout: v, handleMouseover: C } = G(
40
- k,
39
+ const p = I(null), { handleMouseout: v, handleMouseover: C } = K(
40
+ p,
41
41
  "sortable-item--hovered"
42
42
  );
43
- return (d, l) => (o(), a("div", {
43
+ return (c, o) => (l(), i("div", {
44
44
  ref_key: "itemRef",
45
- ref: k,
45
+ ref: p,
46
46
  class: f(["sortable-item", { "sortable-item--selected": t.isSelected }]),
47
- onMouseover: l[1] || (l[1] = //@ts-ignore
48
- (...i) => e(C) && e(C)(...i)),
49
- onMouseout: l[2] || (l[2] = //@ts-ignore
50
- (...i) => e(v) && e(v)(...i)),
51
- onClick: l[3] || (l[3] = c((i) => y("select"), ["stop"]))
47
+ onMouseover: o[1] || (o[1] = //@ts-ignore
48
+ (...s) => e(C) && e(C)(...s)),
49
+ onMouseout: o[2] || (o[2] = //@ts-ignore
50
+ (...s) => e(v) && e(v)(...s)),
51
+ onClick: o[3] || (o[3] = u((s) => y("select"), ["stop"]))
52
52
  }, [
53
- r("div", {
53
+ a("div", {
54
54
  class: f(["item", { "drag-allowed": !t.item.isLocked && !t.searchQuery }])
55
55
  }, [
56
- r("div", J, [
56
+ a("div", U, [
57
57
  h(e(m), {
58
58
  name: "dots-six-vertical",
59
59
  width: "20px",
60
60
  type: "bold"
61
61
  })
62
62
  ]),
63
- r("div", K, [
64
- t.item.isLocked ? (o(), s(e(m), {
63
+ a("div", W, [
64
+ t.item.isLocked ? (l(), r(e(m), {
65
65
  key: 1,
66
66
  class: "locked-icon",
67
67
  name: "lock",
68
68
  width: "16px"
69
- })) : (o(), s(e(V), {
69
+ })) : (l(), r(e(V), {
70
70
  key: 0,
71
71
  class: "order-num",
72
72
  variant: "subtitle2"
73
73
  }, {
74
74
  default: b(() => [
75
- w(F(t.index + 1) + ". ", 1)
75
+ S(w(t.index + 1) + ". ", 1)
76
76
  ]),
77
77
  _: 1
78
78
  }))
79
79
  ]),
80
- e(p) && !t.searchQuery ? (o(), a("div", {
80
+ e(k) && !t.searchQuery ? (l(), i("div", {
81
81
  key: 0,
82
82
  class: "expand-icon",
83
- onClick: c(Q, ["stop"])
83
+ onClick: u(B, ["stop"])
84
84
  }, [
85
- t.isOpen ? (o(), s(e(m), {
85
+ t.isOpen ? (l(), r(e(m), {
86
86
  key: 0,
87
87
  name: "caret-down",
88
- width: "16px"
89
- })) : (o(), s(e(m), {
88
+ size: "16px"
89
+ })) : (l(), r(e(m), {
90
90
  key: 1,
91
91
  name: "caret-right",
92
- width: "16px"
92
+ size: "16px"
93
93
  }))
94
- ], 8, U)) : u("", !0),
95
- r("div", W, [
96
- t.item.countryFlag ? (o(), s(e(L), {
94
+ ], 8, X)) : d("", !0),
95
+ a("div", Y, [
96
+ t.item.countryFlag ? (l(), r(e(L), {
97
97
  key: 0,
98
98
  class: "country-flag",
99
99
  "country-code": t.item.countryFlag
100
- }, null, 8, ["country-code"])) : u("", !0),
101
- h(j, {
100
+ }, null, 8, ["country-code"])) : d("", !0),
101
+ h(A, {
102
102
  "display-value": t.displayValue,
103
103
  item: t.item
104
104
  }, null, 8, ["display-value", "item"])
105
105
  ]),
106
- r("div", {
106
+ e(Q).menu ? (l(), i("div", {
107
+ key: 1,
107
108
  class: "item__menu",
108
- onClick: l[0] || (l[0] = c(() => {
109
+ onClick: o[0] || (o[0] = u(() => {
109
110
  }, ["stop"]))
110
111
  }, [
111
- z(d.$slots, "menu", {}, void 0, !0)
112
- ])
112
+ R(c.$slots, "menu", {}, void 0, !0)
113
+ ])) : d("", !0)
113
114
  ], 2),
114
- r("div", S(e(M), { class: "child-list" }), [
115
- e(p) && t.isOpen ? (o(), a("ul", I(S({ key: 0 }, e(T))), [
116
- (o(!0), a(R, null, D(e(H), ({ data: i, index: O }) => (o(), a("li", {
115
+ a("div", F(e(T), { class: "child-list" }), [
116
+ e(k) && t.isOpen ? (l(), i("ul", D(F({ key: 0 }, e(z))), [
117
+ (l(!0), i(j, null, q(e(M), ({ data: s, index: O }) => (l(), i("li", {
117
118
  key: O,
118
- class: f({ selected: B(i) }),
119
- onClick: c((Y) => y("selectChild", i), ["stop"])
119
+ class: f({ selected: H(s) }),
120
+ onClick: u((_) => y("selectChild", s), ["stop"])
120
121
  }, [
121
- i.countryFlag ? (o(), s(e(L), {
122
+ s.countryFlag ? (l(), r(e(L), {
122
123
  key: 0,
123
124
  class: "country-flag",
124
- "country-code": i.countryFlag
125
- }, null, 8, ["country-code"])) : u("", !0),
125
+ "country-code": s.countryFlag
126
+ }, null, 8, ["country-code"])) : d("", !0),
126
127
  h(e(V), { variant: "body2" }, {
127
128
  default: b(() => [
128
- w(F(t.displayValue(i)), 1)
129
+ S(w(t.displayValue(s)), 1)
129
130
  ]),
130
131
  _: 2
131
132
  }, 1024)
132
- ], 10, X))), 128))
133
- ], 16)) : u("", !0)
133
+ ], 10, Z))), 128))
134
+ ], 16)) : d("", !0)
134
135
  ], 16)
135
136
  ], 34));
136
137
  }
137
138
  });
138
139
  export {
139
- re as default
140
+ ae as default
140
141
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./SortableItemLabel.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1386ae20"]]);
3
+ // import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f2ced2f4"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,30 +1,30 @@
1
- import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css"; import { defineComponent as m, openBlock as a, createBlock as u, unref as l, withCtx as t, createElementVNode as p, createElementBlock as c, Fragment as h, renderList as f, createVNode as i, createTextVNode as o, toDisplayString as r, normalizeClass as x } from "vue";
1
+ import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css"; import { defineComponent as m, openBlock as a, createBlock as p, unref as l, withCtx as e, createElementVNode as u, createElementBlock as d, Fragment as f, renderList as h, createVNode as i, createTextVNode as o, toDisplayString as r } from "vue";
2
2
  import n from "../typography/v4/Typography.vue.js";
3
- import y from "../tooltip/v4/TooltipV4.vue.js";
4
- const _ = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
3
+ import _ from "../tooltip/v4/TooltipV4.vue.js";
4
+ const x = { class: "tooltip-content" }, g = /* @__PURE__ */ m({
5
5
  __name: "SortableItemLabel",
6
6
  props: {
7
7
  item: null,
8
8
  displayValue: null
9
9
  },
10
- setup(e) {
11
- return (b, T) => (a(), u(l(y), {
10
+ setup(t) {
11
+ return (y, b) => (a(), p(l(_), {
12
12
  class: "item-label",
13
13
  placement: "right",
14
- disabled: !e.item.helpText
14
+ disabled: !t.item.helpText
15
15
  }, {
16
- tooltip: t(() => [
17
- p("div", _, [
18
- (a(!0), c(h, null, f(e.item.helpText, (s, d) => (a(), c("div", {
19
- key: d,
16
+ tooltip: e(() => [
17
+ u("div", x, [
18
+ (a(!0), d(f, null, h(t.item.helpText, (c, s) => (a(), d("div", {
19
+ key: s,
20
20
  class: "help"
21
21
  }, [
22
22
  i(l(n), {
23
23
  class: "help__title",
24
24
  variant: "h5"
25
25
  }, {
26
- default: t(() => [
27
- o(r(s.title), 1)
26
+ default: e(() => [
27
+ o(r(c.title), 1)
28
28
  ]),
29
29
  _: 2
30
30
  }, 1024),
@@ -32,29 +32,26 @@ const _ = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
32
32
  class: "help__text",
33
33
  variant: "body2"
34
34
  }, {
35
- default: t(() => [
36
- o(r(s.text), 1)
35
+ default: e(() => [
36
+ o(r(c.text), 1)
37
37
  ]),
38
38
  _: 2
39
39
  }, 1024)
40
40
  ]))), 128))
41
41
  ])
42
42
  ]),
43
- default: t(() => [
44
- i(l(n), {
45
- variant: "body2",
46
- class: x({ "decorated-text": e.item.helpText?.length })
47
- }, {
48
- default: t(() => [
49
- o(r(e.displayValue(e.item)), 1)
43
+ default: e(() => [
44
+ i(l(n), { variant: "body2" }, {
45
+ default: e(() => [
46
+ o(r(t.displayValue(t.item)), 1)
50
47
  ]),
51
48
  _: 1
52
- }, 8, ["class"])
49
+ })
53
50
  ]),
54
51
  _: 1
55
52
  }, 8, ["disabled"]));
56
53
  }
57
54
  });
58
55
  export {
59
- k as default
56
+ g as default
60
57
  };
@@ -67,6 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
67
  emptyStateTitle: string;
68
68
  testId: string;
69
69
  }>>> & {
70
+ onClearSearch?: () => any;
70
71
  onSortableItemDragged?: (event: {
71
72
  id: string;
72
73
  newIndex: number;
@@ -76,7 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
76
77
  "onUpdate:selectedId"?: (id: string | number) => any;
77
78
  "onUpdate:selectedChildId"?: (id: string | number) => any;
78
79
  "onUpdate:search"?: (query: string) => any;
79
- onClearSearch?: () => any;
80
80
  }, {
81
81
  search: string;
82
82
  testId: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./SortableList.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; //*');
4
- const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9cd63b8"]]);
2
+ /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css"; //*');
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-156c01ca"]]);
5
5
  export {
6
6
  c as default
7
7
  };