@ironsource/shared-ui 2.1.12-test.98 → 2.1.12

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 (248) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
  11. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  12. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  13. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  14. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  15. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  16. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  21. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  22. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  23. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  24. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  25. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  26. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  27. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  28. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  29. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  30. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  32. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  33. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  34. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  35. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  36. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  37. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  38. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  39. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  40. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  41. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  42. package/components/chart/Chart.vue.d.ts +21 -1
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +130 -114
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +49 -44
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  50. package/components/chart/ChartHeaderTrend.vue2.js +43 -39
  51. package/components/chart/ChartLegend.vue.d.ts +5 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +76 -71
  54. package/components/chart/ChartPlane.vue.d.ts +15 -0
  55. package/components/chart/ChartPlane.vue.js +5 -5
  56. package/components/chart/ChartPlane.vue2.js +173 -156
  57. package/components/chart/ChartStoryArgs.d.ts +17 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +39 -35
  61. package/components/chart/LegendSorting.vue.d.ts +5 -0
  62. package/components/chart/LegendSorting.vue.js +16 -14
  63. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  64. package/components/chart/SettingsHeader.vue.js +3 -3
  65. package/components/chart/SettingsHeader.vue2.js +36 -29
  66. package/components/chart/TooltipHeader.vue.js +3 -3
  67. package/components/chart/TooltipHeader.vue2.js +26 -26
  68. package/components/chart/colorPalette.d.ts +2 -1
  69. package/components/chart/colorPalette.js +47 -33
  70. package/components/chart/composables/useColorsMap.d.ts +3 -1
  71. package/components/chart/composables/useColorsMap.js +32 -30
  72. package/components/chart/consts.d.ts +5 -1
  73. package/components/chart/consts.js +30 -26
  74. package/components/chart/index.d.ts +77 -1
  75. package/components/chart/mockData.d.ts +15 -0
  76. package/components/chart/types.d.ts +3 -1
  77. package/components/chart/types.js +5 -5
  78. package/components/chart/utils/utils.d.ts +1 -1
  79. package/components/chart/utils/utils.js +20 -14
  80. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  81. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  82. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  83. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  84. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  85. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  86. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  87. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  88. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  89. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  90. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  91. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  92. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  93. package/components/columnConfigurator/consts.d.ts +1 -0
  94. package/components/columnConfigurator/consts.js +4 -0
  95. package/components/columnConfigurator/index.d.ts +73 -0
  96. package/components/columnConfigurator/index.js +6 -0
  97. package/components/columnConfigurator/mockData.d.ts +30 -0
  98. package/components/columnConfigurator/utils.d.ts +2 -0
  99. package/components/columnConfigurator/utils.js +18 -0
  100. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  101. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  102. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  103. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  104. package/components/columnPicker/OptionChip.vue.js +7 -0
  105. package/components/columnPicker/OptionChip.vue2.js +46 -0
  106. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  107. package/components/columnPicker/RemoveButton.vue.js +7 -0
  108. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  109. package/components/columnPicker/index.d.ts +388 -0
  110. package/components/columnPicker/index.js +6 -0
  111. package/components/columnPicker/mockData.d.ts +8 -0
  112. package/components/dateRange/common/DateRange.common.js +60 -60
  113. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  114. package/components/dialog/v3/index.d.ts +46 -46
  115. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  116. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  117. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  118. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  119. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  120. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  121. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  122. package/components/dialog/v4/DialogV4.vue.js +3 -3
  123. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  124. package/components/dialog/v4/index.d.ts +157 -157
  125. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  126. package/components/dropdown/v3/index.d.ts +20 -20
  127. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  128. package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
  129. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  130. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  131. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  133. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  134. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  138. package/components/dropdown/v4/index.d.ts +81 -3
  139. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  140. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  141. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  142. package/components/emptyState/v4/index.d.ts +20 -1
  143. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  144. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  145. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  146. package/components/includeExclude/index.d.ts +70 -70
  147. package/components/input/v4/TextField.vue.d.ts +12 -0
  148. package/components/input/v4/TextField.vue.js +3 -3
  149. package/components/input/v4/TextField.vue2.js +129 -105
  150. package/components/input/v4/index.d.ts +46 -2
  151. package/components/link/Link.vue.d.ts +95 -0
  152. package/components/link/Link.vue.js +7 -0
  153. package/components/link/Link.vue2.js +65 -0
  154. package/components/link/index.d.ts +296 -0
  155. package/components/link/index.js +6 -0
  156. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  157. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  158. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  159. package/components/radioButton/v3/index.d.ts +20 -1
  160. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  161. package/components/sortableList/LoaderBars.vue.js +7 -0
  162. package/components/sortableList/LoaderBars.vue2.js +25 -0
  163. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  164. package/components/sortableList/SortableItem.vue.js +5 -5
  165. package/components/sortableList/SortableItem.vue2.js +86 -70
  166. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  167. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  168. package/components/sortableList/SortableList.types.d.ts +1 -0
  169. package/components/sortableList/SortableList.vue.d.ts +12 -2
  170. package/components/sortableList/SortableList.vue.js +5 -5
  171. package/components/sortableList/SortableList.vue2.js +111 -113
  172. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  173. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  174. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  175. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  176. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  177. package/components/sortableList/composables/useHoverEffect.js +1 -1
  178. package/components/sortableList/consts.d.ts +2 -0
  179. package/components/sortableList/consts.js +4 -2
  180. package/components/sortableList/index.d.ts +77 -39
  181. package/components/table/common/consts.d.ts +2 -0
  182. package/components/table/common/consts.js +6 -4
  183. package/components/table/v4/DataGrid.vue.d.ts +12 -7
  184. package/components/table/v4/DataGrid.vue.js +4 -4
  185. package/components/table/v4/DataGrid.vue2.js +273 -268
  186. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  187. package/components/table/v4/DataGridContainer.vue.js +7 -0
  188. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  189. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  190. package/components/table/v4/DataGridHeader.vue.js +7 -0
  191. package/components/table/v4/DataGridHeader.vue2.js +84 -0
  192. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  193. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  194. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  195. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  196. package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
  197. package/components/table/v4/index.d.ts +646 -332
  198. package/components/table/v4/index.js +11 -5
  199. package/components/table/v4/storyUtils.d.ts +25 -0
  200. package/components/tagsField/TagsField.types.d.ts +4 -0
  201. package/components/tagsField/TagsField.vue.d.ts +65 -0
  202. package/components/tagsField/TagsField.vue.js +7 -0
  203. package/components/tagsField/TagsField.vue2.js +90 -0
  204. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  205. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  206. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  207. package/components/tagsField/consts.d.ts +1 -0
  208. package/components/tagsField/consts.js +4 -0
  209. package/components/tagsField/index.d.ts +75 -0
  210. package/components/tagsField/index.js +6 -0
  211. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  212. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  213. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  214. package/components/tooltip/v4/index.d.ts +20 -1
  215. package/index.d.ts +2675 -1649
  216. package/index.js +137 -121
  217. package/package.json +18 -1
  218. package/testids/index.d.ts +47 -1
  219. package/testids/index.js +40 -32
  220. package/utils/date.d.ts +1 -0
  221. package/utils/date.js +9 -0
  222. package/utils/formatNumbers.d.ts +1 -1
  223. package/utils/formatNumbers.js +38 -21
  224. package/utils/object.d.ts +2 -0
  225. package/utils/object.js +9 -5
  226. package/utils/search.js +1 -1
  227. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  228. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  229. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  230. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  231. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  232. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  233. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  234. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
  235. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  236. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  237. package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
  238. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  239. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  240. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  241. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  242. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  243. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  244. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  245. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  246. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
  247. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
  248. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -0,0 +1,25 @@
1
+ import "../../LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css"; import { defineComponent as s, computed as d, openBlock as e, createElementBlock as a, normalizeClass as n, unref as o, Fragment as u, renderList as m, createVNode as i } from "vue";
2
+ import p from "../skeleton/v4/SkeletonV4.vue.js";
3
+ const v = /* @__PURE__ */ s({
4
+ __name: "LoaderBars",
5
+ props: {
6
+ loadingRowCount: { default: 3 },
7
+ variant: { default: "default" }
8
+ },
9
+ setup(r) {
10
+ const l = r, t = d(() => l.variant === "compact");
11
+ return (f, C) => (e(), a("div", {
12
+ class: n(["loader-bars", { "loader-bars--compact": o(t) }])
13
+ }, [
14
+ (e(!0), a(u, null, m(r.loadingRowCount, (c) => (e(), a("div", { key: c }, [
15
+ i(o(p), {
16
+ round: "",
17
+ class: n(["loader-bar", { "loader-bar--compact": o(t) }])
18
+ }, null, 8, ["class"])
19
+ ]))), 128))
20
+ ], 2));
21
+ }
22
+ });
23
+ export {
24
+ v as default
25
+ };
@@ -4,20 +4,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  index?: number;
5
5
  isOpen?: boolean;
6
6
  isSelected?: boolean;
7
+ isDisabled?: boolean;
7
8
  selectedChildId?: string | number;
8
9
  searchQuery?: string;
9
- childListMaxHeight: string;
10
+ childListMaxHeight?: string;
10
11
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
11
12
  displayValue: (item: SortableListItem) => string;
13
+ variant?: "default" | "compact";
14
+ draggableArea?: "handle" | "full";
12
15
  }>, {
13
16
  text: string;
14
17
  isOpen: boolean;
15
18
  isSelected: boolean;
19
+ isDisabled: boolean;
16
20
  selectedChildId: any;
17
21
  searchQuery: any;
18
22
  index: any;
19
23
  childListMaxHeight: string;
20
24
  searchHandler: any;
25
+ variant: string;
26
+ draggableArea: string;
21
27
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
28
  toggle: (value: boolean) => void;
23
29
  select: () => void;
@@ -27,32 +33,41 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
33
  index?: number;
28
34
  isOpen?: boolean;
29
35
  isSelected?: boolean;
36
+ isDisabled?: boolean;
30
37
  selectedChildId?: string | number;
31
38
  searchQuery?: string;
32
- childListMaxHeight: string;
39
+ childListMaxHeight?: string;
33
40
  searchHandler?: (item: SortableListItem, searchQuery: string) => boolean;
34
41
  displayValue: (item: SortableListItem) => string;
42
+ variant?: "default" | "compact";
43
+ draggableArea?: "handle" | "full";
35
44
  }>, {
36
45
  text: string;
37
46
  isOpen: boolean;
38
47
  isSelected: boolean;
48
+ isDisabled: boolean;
39
49
  selectedChildId: any;
40
50
  searchQuery: any;
41
51
  index: any;
42
52
  childListMaxHeight: string;
43
53
  searchHandler: any;
54
+ variant: string;
55
+ draggableArea: string;
44
56
  }>>> & {
45
57
  onSelect?: () => any;
46
58
  onToggle?: (value: boolean) => any;
47
59
  onSelectChild?: (childItem: SortableListItem) => any;
48
60
  }, {
61
+ variant: "default" | "compact";
49
62
  isOpen: boolean;
50
63
  index: number;
51
64
  isSelected: boolean;
52
65
  searchQuery: string;
66
+ isDisabled: boolean;
53
67
  selectedChildId: string | number;
54
68
  childListMaxHeight: string;
55
69
  searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
70
+ draggableArea: "handle" | "full";
56
71
  }>, {
57
72
  menu?(_: {}): any;
58
73
  }>;
@@ -1,7 +1,7 @@
1
- import o from "./SortableItem.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-48542664"]]);
1
+ import e from "./SortableItem.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c72be7ed"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,156 +1,172 @@
1
- import "../../SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css"; import { defineComponent as P, useCssVars as E, useSlots as $, computed as C, watch as I, ref as R, openBlock as l, createElementBlock as n, normalizeClass as f, unref as t, withModifiers as u, createElementVNode as c, createVNode as h, createBlock as a, withCtx as b, createTextVNode as S, toDisplayString as V, createCommentVNode as d, renderSlot as D, mergeProps as F, normalizeProps as j, Fragment as q, renderList as A } from "vue";
1
+ import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; import { defineComponent as P, useCssVars as A, useSlots as E, computed as h, watch as $, ref as I, openBlock as l, createElementBlock as o, normalizeClass as d, unref as e, withModifiers as y, createElementVNode as c, createVNode as b, createBlock as n, withCtx as S, createTextVNode as V, toDisplayString as F, createCommentVNode as u, renderSlot as R, mergeProps as H, normalizeProps as j, Fragment as q, renderList as G } from "vue";
2
2
  import L from "../typography/v4/Typography.vue.js";
3
- import m from "../icon/v4/IconV4.vue.js";
3
+ import f from "../icon/v4/IconV4.vue.js";
4
4
  import w from "../icon/v4/IconFlag.vue.js";
5
- import G from "./SortableItemLabel.vue.js";
6
- import { useVirtualList as J } from "@vueuse/core";
7
- import { matchString as K } from "../../utils/search.js";
8
- import { useHoverEffect as U } from "./composables/useHoverEffect.js";
9
- const W = { class: "draggable-handle" }, X = { class: "item__prefix" }, Y = ["onClick"], Z = { class: "item__text" }, _ = ["onClick"], ce = /* @__PURE__ */ P({
5
+ import J from "./SortableItemLabel.vue.js";
6
+ import { useVirtualList as K } from "@vueuse/core";
7
+ import { matchString as U } from "../../utils/search.js";
8
+ import { useHoverEffect as W } from "./composables/useHoverEffect.js";
9
+ const X = { class: "item__prefix" }, Y = ["onClick"], Z = ["onClick"], re = /* @__PURE__ */ P({
10
10
  __name: "SortableItem",
11
11
  props: {
12
12
  item: null,
13
13
  index: { default: null },
14
14
  isOpen: { type: Boolean, default: !1 },
15
15
  isSelected: { type: Boolean, default: !1 },
16
+ isDisabled: { type: Boolean, default: !1 },
16
17
  selectedChildId: { default: null },
17
18
  searchQuery: { default: null },
18
19
  childListMaxHeight: { default: "530px" },
19
20
  searchHandler: { type: Function, default: null },
20
- displayValue: null
21
+ displayValue: null,
22
+ variant: { default: "default" },
23
+ draggableArea: { default: "handle" }
21
24
  },
22
25
  emits: ["toggle", "select", "selectChild"],
23
- setup(e, { emit: y }) {
24
- const s = e;
25
- E((r) => ({
26
- "480cd4cc": e.childListMaxHeight
26
+ setup(t, { emit: g }) {
27
+ const s = t;
28
+ A((r) => ({
29
+ "6b8d7a5c": t.childListMaxHeight
27
30
  }));
28
- const H = $(), M = () => {
29
- y("toggle", !s.isOpen);
30
- }, g = C(() => (s.item.children || []).filter(
31
- (o) => s.searchHandler ? s.searchHandler(o, s.searchQuery) : K(o.displayText, s.searchQuery)
32
- )), k = C(() => g.value.length > 0), z = (r) => r.id === s.selectedChildId, {
31
+ const M = E(), z = () => {
32
+ g("toggle", !s.isOpen);
33
+ }, k = h(() => (s.item.children || []).filter(
34
+ (a) => s.searchHandler ? s.searchHandler(a, s.searchQuery) : U(a.displayText, s.searchQuery)
35
+ )), v = h(() => k.value.length > 0), m = h(() => s.draggableArea === "full"), B = (r) => r.id === s.selectedChildId, {
33
36
  list: Q,
34
- containerProps: B,
35
- wrapperProps: T,
37
+ containerProps: T,
38
+ wrapperProps: D,
36
39
  scrollTo: N
37
- } = J(g, {
40
+ } = K(k, {
38
41
  itemHeight: 34
39
42
  });
40
- I(
43
+ $(
41
44
  () => s.searchQuery,
42
45
  () => N(0)
43
46
  );
44
- const p = R(null), { handleMouseout: v, handleMouseover: x } = U(
47
+ const p = I(null), { handleMouseout: x, handleMouseover: C } = W(
45
48
  p,
46
49
  "sortable-item--hovered"
47
50
  );
48
- return (r, o) => (l(), n("div", {
51
+ return (r, a) => (l(), o("div", {
49
52
  ref_key: "itemRef",
50
53
  ref: p,
51
- class: f(["sortable-item", { "sortable-item--selected": e.isSelected }]),
52
- onMouseover: o[1] || (o[1] = //@ts-ignore
53
- (...i) => t(x) && t(x)(...i)),
54
- onMouseout: o[2] || (o[2] = //@ts-ignore
55
- (...i) => t(v) && t(v)(...i)),
56
- onClick: o[3] || (o[3] = u((i) => y("select"), ["stop"]))
54
+ class: d(["sortable-item", {
55
+ "sortable-item--fully-draggable": e(m),
56
+ "sortable-item--selected": t.isSelected,
57
+ "sortable-item--compact": t.variant === "compact",
58
+ "sortable-item--disabled": t.item.isDisabled
59
+ }]),
60
+ onMouseover: a[1] || (a[1] = //@ts-ignore
61
+ (...i) => e(C) && e(C)(...i)),
62
+ onMouseout: a[2] || (a[2] = //@ts-ignore
63
+ (...i) => e(x) && e(x)(...i)),
64
+ onClick: a[3] || (a[3] = y((i) => g("select"), ["stop"]))
57
65
  }, [
58
66
  c("div", {
59
- class: f(["item", {
60
- "drag-allowed": !e.item.isLocked && !e.searchQuery,
61
- "item--selected": e.isSelected && !e.selectedChildId
67
+ class: d(["item", {
68
+ "item--fully-draggable": e(m),
69
+ "drag-allowed": !t.item.isLocked && !t.searchQuery,
70
+ "item--selected": t.isSelected && !t.selectedChildId
62
71
  }])
63
72
  }, [
64
- c("div", W, [
65
- h(t(m), {
73
+ c("div", {
74
+ class: d(["draggable-handle", {
75
+ "handle-area": e(m),
76
+ "draggable-handle--disabled": t.item.isDisabled
77
+ }])
78
+ }, [
79
+ b(e(f), {
66
80
  name: "dots-six-vertical",
67
81
  size: "20px",
68
82
  type: "bold"
69
83
  })
70
- ]),
84
+ ], 2),
71
85
  c("div", X, [
72
- e.item.isLocked ? (l(), a(t(m), {
86
+ t.item.isLocked ? (l(), n(e(f), {
73
87
  key: 1,
74
88
  class: "locked-icon",
75
89
  name: "lock",
76
90
  size: "16px"
77
- })) : (l(), a(t(L), {
91
+ })) : (l(), n(e(L), {
78
92
  key: 0,
79
93
  class: "order-num",
80
94
  variant: "subtitle2"
81
95
  }, {
82
- default: b(() => [
83
- S(V(e.index + 1) + ". ", 1)
96
+ default: S(() => [
97
+ V(F(t.index + 1) + ". ", 1)
84
98
  ]),
85
99
  _: 1
86
100
  }))
87
101
  ]),
88
- t(k) && !e.searchQuery ? (l(), n("div", {
102
+ e(v) && !t.searchQuery ? (l(), o("div", {
89
103
  key: 0,
90
104
  class: "expand-icon",
91
- onClick: u(M, ["stop"])
105
+ onClick: y(z, ["stop"])
92
106
  }, [
93
- e.isOpen ? (l(), a(t(m), {
107
+ t.isOpen ? (l(), n(e(f), {
94
108
  key: 0,
95
109
  name: "caret-down",
96
110
  size: "16px"
97
- })) : (l(), a(t(m), {
111
+ })) : (l(), n(e(f), {
98
112
  key: 1,
99
113
  name: "caret-right",
100
114
  size: "16px"
101
115
  }))
102
- ], 8, Y)) : d("", !0),
103
- c("div", Z, [
104
- e.item.countryFlag ? (l(), a(t(w), {
116
+ ], 8, Y)) : u("", !0),
117
+ c("div", {
118
+ class: d(["item__text", { "handle-area": e(m) }])
119
+ }, [
120
+ t.item.countryFlag ? (l(), n(e(w), {
105
121
  key: 0,
106
122
  class: "country-flag",
107
- "country-code": e.item.countryFlag
108
- }, null, 8, ["country-code"])) : d("", !0),
109
- h(G, {
110
- "display-value": e.displayValue,
111
- item: e.item
123
+ "country-code": t.item.countryFlag
124
+ }, null, 8, ["country-code"])) : u("", !0),
125
+ b(J, {
126
+ "display-value": t.displayValue,
127
+ item: t.item
112
128
  }, null, 8, ["display-value", "item"])
113
- ]),
114
- t(H).menu ? (l(), n("div", {
129
+ ], 2),
130
+ e(M)?.menu ? (l(), o("div", {
115
131
  key: 1,
116
132
  class: "item__menu",
117
- onClick: o[0] || (o[0] = u(() => {
133
+ onClick: a[0] || (a[0] = y(() => {
118
134
  }, ["stop"]))
119
135
  }, [
120
- D(r.$slots, "menu", {}, void 0, !0)
121
- ])) : d("", !0)
136
+ R(r.$slots, "menu", {}, void 0, !0)
137
+ ])) : u("", !0)
122
138
  ], 2),
123
- c("div", F(t(B), { class: "child-list" }), [
124
- t(k) && e.isOpen ? (l(), n("ul", j(F({ key: 0 }, t(T))), [
125
- (l(!0), n(q, null, A(t(Q), ({ data: i, index: O }) => (l(), n("li", {
139
+ c("div", H(e(T), { class: "child-list" }), [
140
+ e(v) && t.isOpen ? (l(), o("ul", j(H({ key: 0 }, e(D))), [
141
+ (l(!0), o(q, null, G(e(Q), ({ data: i, index: O }) => (l(), o("li", {
126
142
  key: O,
127
- class: f({ selected: z(i) }),
128
- onClick: u((ee) => y("selectChild", i), ["stop"])
143
+ class: d({ selected: B(i) }),
144
+ onClick: y((_) => g("selectChild", i), ["stop"])
129
145
  }, [
130
- i.countryFlag ? (l(), a(t(w), {
146
+ i.countryFlag ? (l(), n(e(w), {
131
147
  key: 0,
132
148
  class: "country-flag",
133
149
  "country-code": i.countryFlag
134
- }, null, 8, ["country-code"])) : d("", !0),
135
- h(t(L), {
150
+ }, null, 8, ["country-code"])) : u("", !0),
151
+ b(e(L), {
136
152
  class: "country-title",
137
153
  variant: "body2",
138
154
  "tooltip-placement": "top",
139
- "tooltip-text": e.displayValue(i),
155
+ "tooltip-text": t.displayValue(i),
140
156
  "is-truncated": "",
141
157
  "with-tooltip": ""
142
158
  }, {
143
- default: b(() => [
144
- S(V(e.displayValue(i)), 1)
159
+ default: S(() => [
160
+ V(F(t.displayValue(i)), 1)
145
161
  ]),
146
162
  _: 2
147
163
  }, 1032, ["tooltip-text"])
148
- ], 10, _))), 128))
149
- ], 16)) : d("", !0)
164
+ ], 10, Z))), 128))
165
+ ], 16)) : u("", !0)
150
166
  ], 16)
151
167
  ], 34));
152
168
  }
153
169
  });
154
170
  export {
155
- ce as default
171
+ re as default
156
172
  };
@@ -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_f2ced2f4_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f2ced2f4"]]);
3
+ // import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a534c7af"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,57 +1,60 @@
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
- import n from "../typography/v4/Typography.vue.js";
3
- import _ from "../tooltip/v4/TooltipV4.vue.js";
4
- const x = { class: "tooltip-content" }, g = /* @__PURE__ */ m({
1
+ import "../../SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css"; import { defineComponent as m, openBlock as a, createBlock as u, unref as l, withCtx as t, createElementVNode as p, createElementBlock as d, Fragment as f, renderList as h, createVNode as i, createTextVNode as o, toDisplayString as r, normalizeClass as x } from "vue";
2
+ import s from "../typography/v4/Typography.vue.js";
3
+ import b from "../tooltip/v4/TooltipV4.vue.js";
4
+ const y = { class: "tooltip-content" }, k = /* @__PURE__ */ m({
5
5
  __name: "SortableItemLabel",
6
6
  props: {
7
7
  item: null,
8
8
  displayValue: null
9
9
  },
10
- setup(t) {
11
- return (y, b) => (a(), p(l(_), {
10
+ setup(e) {
11
+ return (_, v) => (a(), u(l(b), {
12
12
  class: "item-label",
13
13
  placement: "right",
14
- disabled: !t.item.helpText
14
+ disabled: !e.item.helpText
15
15
  }, {
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,
16
+ tooltip: t(() => [
17
+ p("div", y, [
18
+ (a(!0), d(f, null, h(e.item.helpText, (n, c) => (a(), d("div", {
19
+ key: c,
20
20
  class: "help"
21
21
  }, [
22
- i(l(n), {
22
+ i(l(s), {
23
23
  class: "help__title",
24
24
  variant: "h5"
25
25
  }, {
26
- default: e(() => [
27
- o(r(c.title), 1)
26
+ default: t(() => [
27
+ o(r(n.title), 1)
28
28
  ]),
29
29
  _: 2
30
30
  }, 1024),
31
- i(l(n), {
31
+ i(l(s), {
32
32
  class: "help__text",
33
33
  variant: "body2"
34
34
  }, {
35
- default: e(() => [
36
- o(r(c.text), 1)
35
+ default: t(() => [
36
+ o(r(n.text), 1)
37
37
  ]),
38
38
  _: 2
39
39
  }, 1024)
40
40
  ]))), 128))
41
41
  ])
42
42
  ]),
43
- default: e(() => [
44
- i(l(n), { variant: "body2" }, {
45
- default: e(() => [
46
- o(r(t.displayValue(t.item)), 1)
43
+ default: t(() => [
44
+ i(l(s), {
45
+ variant: "body2",
46
+ class: x(["item-text", { "item-text--disabled": e.item.isDisabled }])
47
+ }, {
48
+ default: t(() => [
49
+ o(r(e.displayValue(e.item)), 1)
47
50
  ]),
48
51
  _: 1
49
- })
52
+ }, 8, ["class"])
50
53
  ]),
51
54
  _: 1
52
55
  }, 8, ["disabled"]));
53
56
  }
54
57
  });
55
58
  export {
56
- g as default
59
+ k as default
57
60
  };
@@ -10,6 +10,7 @@ export type SortableListItem = {
10
10
  title: string;
11
11
  text: string;
12
12
  }[];
13
+ isDisabled?: boolean;
13
14
  };
14
15
  export type VirtualListResult = {
15
16
  list: Ref<UseVirtualListItem<SortableListItem>[]>;
@@ -5,6 +5,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
5
5
  openId?: string | number;
6
6
  selectedId?: string | number;
7
7
  selectedChildId?: string | number;
8
+ variant?: "default" | "compact";
9
+ draggableArea?: "handle" | "full";
8
10
  search?: string;
9
11
  showSearch?: boolean;
10
12
  searchPlaceholder?: string;
@@ -22,6 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
24
  openId: any;
23
25
  selectedId: any;
24
26
  selectedChildId: any;
27
+ variant: string;
28
+ draggableArea: string;
25
29
  search: any;
26
30
  showSearch: boolean;
27
31
  searchPlaceholder: string;
@@ -50,6 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
54
  openId?: string | number;
51
55
  selectedId?: string | number;
52
56
  selectedChildId?: string | number;
57
+ variant?: "default" | "compact";
58
+ draggableArea?: "handle" | "full";
53
59
  search?: string;
54
60
  showSearch?: boolean;
55
61
  searchPlaceholder?: string;
@@ -67,6 +73,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
73
  openId: any;
68
74
  selectedId: any;
69
75
  selectedChildId: any;
76
+ variant: string;
77
+ draggableArea: string;
70
78
  search: any;
71
79
  showSearch: boolean;
72
80
  searchPlaceholder: string;
@@ -92,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
92
100
  }, {
93
101
  search: string;
94
102
  testId: string;
103
+ variant: "default" | "compact";
95
104
  isLoading: boolean;
96
105
  displayValue: (item: SortableListItem) => string;
97
106
  searchPlaceholder: string;
@@ -99,13 +108,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
99
108
  selectedChildId: string | number;
100
109
  childListMaxHeight: string;
101
110
  searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
111
+ draggableArea: "handle" | "full";
112
+ loadingRowCount: number;
102
113
  openId: string | number;
114
+ zIndexBase: number;
103
115
  selectedId: string | number;
104
116
  showSearch: boolean;
105
- loadingRowCount: number;
106
117
  emptyStateTitle: string;
107
118
  isSticky: boolean;
108
- zIndexBase: number;
109
119
  }>, {
110
120
  header?(_: {}): any;
111
121
  menu?(_: {
@@ -1,7 +1,7 @@
1
- import o from "./SortableList.vue2.js";
2
- /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f267f88"]]);
1
+ import e from "./SortableList.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9aec4e9b"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };