@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.41

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 (301) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
  3. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  4. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  5. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  6. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  7. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  8. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
  9. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
  10. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  12. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
  14. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  15. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  16. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
  17. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  18. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  19. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  20. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  21. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  22. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  23. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  24. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  25. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  26. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  27. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  28. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  29. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  30. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_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_84dc8525_lang.css +1 -0
  34. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  35. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  36. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  37. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_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_4ba9e4bd_lang.css +1 -0
  42. package/components/appIcon/index.d.ts +3 -3
  43. package/components/banner/Banner.vue.d.ts +3 -3
  44. package/components/banner/index.d.ts +7 -7
  45. package/components/button/common/consts.d.ts +1 -0
  46. package/components/button/v3/Button.vue.d.ts +3 -3
  47. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  48. package/components/button/v3/IconButton.vue.d.ts +3 -3
  49. package/components/button/v3/index.d.ts +14 -14
  50. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  51. package/components/button/v4/ButtonV4.vue.js +4 -4
  52. package/components/button/v4/ButtonV4.vue2.js +28 -27
  53. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  54. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  55. package/components/chart/Chart.vue.d.ts +168 -37
  56. package/components/chart/Chart.vue.js +2 -2
  57. package/components/chart/Chart.vue2.js +154 -297
  58. package/components/chart/ChartHeader.vue.d.ts +50 -11
  59. package/components/chart/ChartHeader.vue.js +3 -3
  60. package/components/chart/ChartHeader.vue2.js +73 -54
  61. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  62. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  63. package/components/chart/ChartHeaderTrend.vue2.js +97 -0
  64. package/components/chart/ChartLegend.vue.d.ts +24 -0
  65. package/components/chart/ChartLegend.vue.js +3 -3
  66. package/components/chart/ChartLegend.vue2.js +82 -63
  67. package/components/chart/ChartPlane.vue.d.ts +236 -0
  68. package/components/chart/ChartPlane.vue.js +7 -0
  69. package/components/chart/ChartPlane.vue2.js +381 -0
  70. package/components/chart/ChartStoryArgs.d.ts +196 -0
  71. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  72. package/components/chart/ChartTooltip.vue.js +2 -2
  73. package/components/chart/ChartTooltip.vue2.js +51 -56
  74. package/components/chart/LegendSorting.vue.d.ts +37 -0
  75. package/components/chart/LegendSorting.vue.js +45 -0
  76. package/components/chart/LegendSorting.vue2.js +4 -0
  77. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  78. package/components/chart/SettingsHeader.vue.js +3 -3
  79. package/components/chart/SettingsHeader.vue2.js +17 -16
  80. package/components/chart/SubHeader.vue.d.ts +52 -0
  81. package/components/chart/SubHeader.vue.js +7 -0
  82. package/components/chart/SubHeader.vue2.js +61 -0
  83. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  84. package/components/chart/TooltipHeader.vue.js +7 -0
  85. package/components/chart/TooltipHeader.vue2.js +69 -0
  86. package/components/chart/colorPalette.d.ts +5 -0
  87. package/components/chart/colorPalette.js +68 -0
  88. package/components/chart/composables/useChartHeight.d.ts +5 -0
  89. package/components/chart/composables/useChartHeight.js +24 -0
  90. package/components/chart/composables/useColorsMap.d.ts +12 -0
  91. package/components/chart/composables/useColorsMap.js +48 -0
  92. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  93. package/components/chart/composables/useTooltipPosition.js +11 -15
  94. package/components/chart/consts.d.ts +33 -7
  95. package/components/chart/consts.js +46 -22
  96. package/components/chart/index.d.ts +592 -119
  97. package/components/chart/mockData.d.ts +59 -5
  98. package/components/chart/types.d.ts +39 -6
  99. package/components/chart/types.js +5 -2
  100. package/components/chart/utils/formatNumber.d.ts +0 -1
  101. package/components/chart/utils/highlightUtils.d.ts +3 -0
  102. package/components/chart/utils/highlightUtils.js +18 -0
  103. package/components/chart/utils/utils.d.ts +3 -3
  104. package/components/chart/utils/utils.js +25 -10
  105. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  106. package/components/checkbox/v3/index.d.ts +7 -7
  107. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  108. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  109. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  110. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  111. package/components/columnPicker/OptionChip.vue.js +7 -0
  112. package/components/columnPicker/OptionChip.vue2.js +46 -0
  113. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  114. package/components/columnPicker/RemoveButton.vue.js +7 -0
  115. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  116. package/components/columnPicker/index.d.ts +388 -0
  117. package/components/columnPicker/index.js +6 -0
  118. package/components/columnPicker/mockData.d.ts +8 -0
  119. package/components/dateRange/common/DateRange.common.js +100 -94
  120. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  121. package/components/dateRange/common/DateServices.common.js +88 -92
  122. package/components/dateRange/common/consts.common.d.ts +5 -0
  123. package/components/dateRange/common/consts.common.js +9 -3
  124. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  125. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  126. package/components/dateRange/v3/index.d.ts +7 -7
  127. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  128. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  129. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  130. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  131. package/components/dateRange/v4/index.d.ts +7 -7
  132. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  133. package/components/dialog/v3/index.d.ts +46 -46
  134. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  135. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  136. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  137. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  138. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  139. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  140. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  141. package/components/dialog/v4/DialogV4.vue.js +4 -4
  142. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  143. package/components/dialog/v4/index.d.ts +164 -164
  144. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  145. package/components/dropdown/common/Dropdown.common.js +161 -149
  146. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  147. package/components/dropdown/v3/index.d.ts +20 -20
  148. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  149. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  150. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  151. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  152. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  153. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  154. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  155. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  156. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  157. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  158. package/components/dropdown/v4/ConditionalDropdown.vue2.js +144 -122
  159. package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
  160. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  161. package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
  162. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  163. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  164. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  165. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  166. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  167. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  168. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  169. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  170. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  171. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  172. package/components/dropdown/v4/index.d.ts +701 -162
  173. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  174. package/components/emptyState/v4/index.d.ts +7 -7
  175. package/components/forms/FormRow.vue.d.ts +9 -2
  176. package/components/forms/FormRow.vue.js +3 -3
  177. package/components/forms/FormRow.vue2.js +25 -14
  178. package/components/forms/index.d.ts +25 -5
  179. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  180. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  181. package/components/includeExclude/index.d.ts +40 -40
  182. package/components/link/Link.vue.d.ts +70 -0
  183. package/components/link/Link.vue.js +7 -0
  184. package/components/link/Link.vue2.js +43 -0
  185. package/components/link/index.d.ts +201 -0
  186. package/components/link/index.js +6 -0
  187. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  188. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  189. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  190. package/components/radioButton/v3/index.d.ts +20 -1
  191. package/components/search/v3/index.d.ts +3 -3
  192. package/components/shared/FieldLabel.vue.d.ts +19 -7
  193. package/components/shared/FieldLabel.vue.js +3 -3
  194. package/components/shared/FieldLabel.vue2.js +50 -37
  195. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  196. package/components/sortableList/SortableItem.vue.js +3 -3
  197. package/components/sortableList/SortableItem.vue2.js +86 -70
  198. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  199. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  200. package/components/sortableList/SortableList.types.d.ts +1 -0
  201. package/components/sortableList/SortableList.vue.d.ts +10 -0
  202. package/components/sortableList/SortableList.vue.js +3 -3
  203. package/components/sortableList/SortableList.vue2.js +104 -96
  204. package/components/sortableList/composables/useHoverEffect.js +1 -1
  205. package/components/sortableList/index.d.ts +39 -1
  206. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  207. package/components/switch/v4/SwitchV4.vue.js +3 -3
  208. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  209. package/components/switch/v4/index.d.ts +29 -0
  210. package/components/table/common/Table.common.d.ts +0 -1
  211. package/components/table/common/Table.common.js +38 -39
  212. package/components/table/common/Table.types.d.ts +2 -0
  213. package/components/table/common/consts.d.ts +1 -0
  214. package/components/table/common/consts.js +2 -1
  215. package/components/table/v4/DataGrid.vue.d.ts +18 -7
  216. package/components/table/v4/DataGrid.vue.js +3 -3
  217. package/components/table/v4/DataGrid.vue2.js +300 -250
  218. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  219. package/components/table/v4/DataGridHeader.vue.js +7 -0
  220. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  221. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  222. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  223. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  224. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  225. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  226. package/components/table/v4/index.d.ts +575 -293
  227. package/components/table/v4/index.js +7 -4
  228. package/components/table/v4/storyUtils.d.ts +27 -0
  229. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  230. package/components/tabs/v3/index.d.ts +7 -7
  231. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  232. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  233. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  234. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  235. package/components/tooltip/v3/index.d.ts +7 -7
  236. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  237. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  238. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  239. package/components/tooltip/v4/index.d.ts +27 -8
  240. package/components/typography/Text.vue.d.ts +3 -3
  241. package/components/typography/index.d.ts +7 -7
  242. package/composables/useDateService.d.ts +7 -0
  243. package/composables/useDateService.js +10 -0
  244. package/composables/useFormValidation.d.ts +1 -0
  245. package/composables/useFormValidation.js +32 -27
  246. package/composables/useFullPageHeight.d.ts +10 -0
  247. package/composables/useFullPageHeight.js +15 -0
  248. package/consts/common.d.ts +1 -0
  249. package/consts/common.js +4 -0
  250. package/consts/regex.d.ts +1 -0
  251. package/consts/regex.js +2 -1
  252. package/index.d.ts +4185 -2363
  253. package/index.js +148 -132
  254. package/mocks/apps.d.ts +1 -0
  255. package/mocks/optionsWithIcons.d.ts +2 -0
  256. package/package.json +13 -1
  257. package/testids/index.d.ts +8 -0
  258. package/testids/index.js +35 -33
  259. package/utils/date.d.ts +1 -0
  260. package/utils/date.js +9 -0
  261. package/utils/formatNumbers.d.ts +1 -1
  262. package/utils/formatNumbers.js +37 -7
  263. package/utils/index.js +7 -0
  264. package/utils/text.d.ts +3 -0
  265. package/utils/text.js +24 -5
  266. package/utils/totals.d.ts +5 -0
  267. package/utils/totals.js +9 -0
  268. package/utils/utils.d.ts +1 -0
  269. package/utils/utils.js +4 -0
  270. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  271. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  272. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  273. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  274. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  275. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  276. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  277. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  278. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
  279. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  280. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  281. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  282. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  283. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  284. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  285. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  286. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  287. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  288. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  289. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  290. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  291. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  292. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  293. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  294. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  295. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  296. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  297. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  298. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  299. package/components/chart/composables/useChartValues.d.ts +0 -12
  300. package/components/chart/composables/useChartValues.js +0 -32
  301. package/components/chart/utils/formatNumber.js +0 -11
@@ -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,6 +108,7 @@ 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";
102
112
  openId: string | number;
103
113
  selectedId: string | number;
104
114
  showSearch: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./SortableList.vue2.js";
2
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"]]);
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css"; //*');
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-84dc8525"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,28 +1,30 @@
1
- import "../../SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css"; import { defineComponent as P, useCssVars as z, useSlots as G, computed as S, ref as U, openBlock as s, createElementBlock as r, mergeProps as V, unref as l, normalizeClass as K, renderSlot as g, createCommentVNode as h, createBlock as p, isRef as A, withCtx as I, Fragment as x, renderList as B, createSlots as E, createElementVNode as Q, createVNode as H, createTextVNode as j, toDisplayString as J } from "vue";
2
- import { VueDraggable as W } from "vue-draggable-plus";
1
+ import "../../SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css"; import { defineComponent as z, useCssVars as G, useSlots as U, computed as f, ref as K, openBlock as s, createElementBlock as i, mergeProps as V, unref as l, normalizeClass as Q, renderSlot as y, createCommentVNode as h, createBlock as S, isRef as $, withCtx as I, Fragment as x, renderList as B, createSlots as w, createElementVNode as j, createVNode as E, createTextVNode as J, toDisplayString as W } from "vue";
2
+ import { VueDraggable as X } from "vue-draggable-plus";
3
3
  import N from "./SortableItem.vue.js";
4
- import X from "../search/v4/SearchV4.vue.js";
5
- import Y from "../typography/v4/Typography.vue.js";
6
- import Z from "../skeleton/v4/SkeletonV4.vue.js";
7
- import { useVModel as _ } from "@vueuse/core";
4
+ import Y from "../search/v4/SearchV4.vue.js";
5
+ import Z from "../typography/v4/Typography.vue.js";
6
+ import _ from "../skeleton/v4/SkeletonV4.vue.js";
7
+ import { useVModel as ee } from "@vueuse/core";
8
8
  import { matchString as q } from "../../utils/search.js";
9
- import { useTestIdAttrs as ee } from "../../utils/testIds.js";
10
- import { SortableListTestIdModifiers as v } from "../../testids/index.js";
9
+ import { useTestIdAttrs as te } from "../../utils/testIds.js";
10
+ import { SortableListTestIdModifiers as p } from "../../testids/index.js";
11
11
  import { DRAG_CURSOR_CSS_CLASS as O } from "./consts.js";
12
- const te = {
12
+ const le = {
13
13
  key: 1,
14
14
  class: "sortable-list-container"
15
- }, le = { class: "loader-bars" }, de = {
15
+ }, ae = { class: "loader-bars" }, de = {
16
16
  key: 3,
17
17
  class: "empty-state-title"
18
- }, ye = /* @__PURE__ */ P({
18
+ }, me = /* @__PURE__ */ z({
19
19
  __name: "SortableList",
20
20
  props: {
21
21
  items: { default: () => [] },
22
- displayValue: { type: Function, default: (d) => d.displayText || d.toString() },
22
+ displayValue: { type: Function, default: (a) => a.displayText || a.toString() },
23
23
  openId: { default: null },
24
24
  selectedId: { default: null },
25
25
  selectedChildId: { default: null },
26
+ variant: { default: "default" },
27
+ draggableArea: { default: "handle" },
26
28
  search: { default: null },
27
29
  showSearch: { type: Boolean, default: !1 },
28
30
  searchPlaceholder: { default: "Search" },
@@ -36,136 +38,142 @@ const te = {
36
38
  testId: { default: "" }
37
39
  },
38
40
  emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
39
- setup(d, { emit: n }) {
40
- const i = d;
41
- z((t) => ({
42
- "2b5787e0": d.zIndexBase
41
+ setup(a, { emit: r }) {
42
+ const o = a;
43
+ G((t) => ({
44
+ dbaa7dcc: a.zIndexBase
43
45
  }));
44
- const y = G(), u = _(i, "search", n), k = S(() => !!u.value?.trim()), C = S(() => k.value ? i.items.filter((t) => {
45
- const a = t.children || [], e = u.value;
46
- return i.searchHandler ? i.searchHandler(t, e) : q(t.displayText, e) || // match parent item
47
- a.some((o) => q(o.displayText, e));
48
- }) : i.items), f = S({
46
+ const m = U(), u = ee(o, "search", r), b = f(() => !!u.value?.trim()), k = f(() => b.value ? o.items.filter((t) => {
47
+ const d = t.children || [], e = u.value;
48
+ return o.searchHandler ? o.searchHandler(t, e) : q(t.displayText, e) || // match parent item
49
+ d.some((n) => q(n.displayText, e));
50
+ }) : o.items), g = f({
49
51
  get() {
50
- return C.value.filter((t) => !t.isLocked);
52
+ return k.value.filter((t) => !t.isLocked);
51
53
  },
52
54
  set(t) {
53
- n("update:items", [...t, ...L.value]);
55
+ r("update:items", [...t, ...C.value]);
54
56
  }
55
- }), L = S(
56
- () => C.value.filter((t) => t.isLocked)
57
- ), b = U(!1), F = (t) => {
58
- b.value = !0, setTimeout(() => t.target.classList.add(O), 50);
59
- }, M = (t) => {
60
- const { target: a, item: e, newIndex: o } = t;
61
- b.value = !1, a.classList.remove(O);
57
+ }), C = f(
58
+ () => k.value.filter((t) => t.isLocked)
59
+ ), F = f(
60
+ () => o.draggableArea === "handle" ? ".draggable-handle" : ".handle-area"
61
+ ), L = K(!1), M = (t) => {
62
+ L.value = !0, setTimeout(() => t.target.classList.add(O), 50);
63
+ }, P = (t) => {
64
+ const { target: d, item: e, newIndex: n } = t;
65
+ L.value = !1, d.classList.remove(O);
62
66
  const c = e.attributes["data-id"]?.value;
63
- n("sortableItemDragged", { id: c, newIndex: o });
64
- }, D = (t) => (k.value || t.id === i.openId) && !b.value, R = (t, a) => {
65
- a ? n("update:openId", t.id) : n("update:openId", null);
66
- }, m = (t) => t.id === i.selectedId, $ = (t) => {
67
- n("update:selectedId", t.id), n("update:selectedChildId", null);
68
- }, w = (t, a) => {
69
- n("update:selectedChildId", t.id), n("update:selectedId", a.id), n("update:openId", a.id);
70
- }, T = ee(i.testId, v);
71
- return (t, a) => (s(), r("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(v).CONTAINER]), [
72
- l(y).header || d.showSearch ? (s(), r("div", {
67
+ r("sortableItemDragged", { id: c, newIndex: n });
68
+ }, A = (t) => (b.value || t.id === o.openId) && !L.value, D = (t, d) => {
69
+ d ? r("update:openId", t.id) : r("update:openId", null);
70
+ }, v = (t) => t.id === o.selectedId, H = (t) => {
71
+ r("update:selectedId", t.id), r("update:selectedChildId", null);
72
+ }, R = (t, d) => {
73
+ r("update:selectedChildId", t.id), r("update:selectedId", d.id), r("update:openId", d.id);
74
+ }, T = te(o.testId, p);
75
+ return (t, d) => (s(), i("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(p).CONTAINER]), [
76
+ l(m).header || a.showSearch ? (s(), i("div", {
73
77
  key: 0,
74
- class: K(["header-container", { sticky: d.isSticky }])
78
+ class: Q(["header-container", { sticky: a.isSticky }])
75
79
  }, [
76
- l(y).header ? g(t.$slots, "header", { key: 0 }, void 0, !0) : h("", !0),
77
- d.showSearch ? (s(), p(l(X), {
80
+ l(m).header ? y(t.$slots, "header", { key: 0 }, void 0, !0) : h("", !0),
81
+ a.showSearch ? (s(), S(l(Y), {
78
82
  key: 1,
79
83
  modelValue: l(u),
80
- "onUpdate:modelValue": a[0] || (a[0] = (e) => A(u) ? u.value = e : null),
81
- placeholder: d.searchPlaceholder,
82
- "test-id": d.testId,
83
- onOnClear: a[1] || (a[1] = (e) => n("clearSearch"))
84
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => $(u) ? u.value = e : null),
85
+ placeholder: a.searchPlaceholder,
86
+ "test-id": a.testId,
87
+ onOnClear: d[1] || (d[1] = (e) => r("clearSearch"))
84
88
  }, null, 8, ["modelValue", "placeholder", "test-id"])) : h("", !0)
85
89
  ], 2)) : h("", !0),
86
- d.isLoading ? g(t.$slots, "loader", { key: 2 }, () => [
87
- Q("div", le, [
88
- (s(!0), r(x, null, B(d.loadingRowCount, (e) => (s(), r("div", { key: e }, [
89
- H(l(Z), {
90
+ a.isLoading ? y(t.$slots, "loader", { key: 2 }, () => [
91
+ j("div", ae, [
92
+ (s(!0), i(x, null, B(a.loadingRowCount, (e) => (s(), i("div", { key: e }, [
93
+ E(l(_), {
90
94
  round: "",
91
95
  class: "loader-bar"
92
96
  })
93
97
  ]))), 128))
94
98
  ])
95
- ], !0) : (s(), r("div", te, [
96
- l(f).length ? (s(), p(l(W), V({
99
+ ], !0) : (s(), i("div", le, [
100
+ l(g).length ? (s(), S(l(X), V({
97
101
  key: 0,
98
- modelValue: l(f),
99
- "onUpdate:modelValue": a[2] || (a[2] = (e) => A(f) ? f.value = e : null),
102
+ modelValue: l(g),
103
+ "onUpdate:modelValue": d[2] || (d[2] = (e) => $(g) ? g.value = e : null),
100
104
  class: "sortable-list",
101
105
  filter: ".expand-icon",
102
106
  animation: 150,
103
- handle: ".draggable-handle",
104
- disabled: l(k)
105
- }, l(T)[l(v).DRAGGABLE_LIST], {
106
- onStart: F,
107
- onEnd: M
107
+ handle: l(F),
108
+ disabled: l(b)
109
+ }, l(T)[l(p).DRAGGABLE_LIST], {
110
+ onStart: M,
111
+ onEnd: P
108
112
  }), {
109
113
  default: I(() => [
110
- (s(!0), r(x, null, B(l(f), (e, o) => (s(), p(N, {
114
+ (s(!0), i(x, null, B(l(g), (e, n) => (s(), S(N, {
111
115
  key: e.id,
112
116
  "data-id": e.id,
113
117
  item: e,
114
- index: o,
115
- "is-open": D(e),
116
- "is-selected": m(e),
117
- "selected-child-id": m(e) ? d.selectedChildId : null,
118
- "display-value": d.displayValue,
118
+ index: n,
119
+ "is-open": A(e),
120
+ "is-selected": v(e),
121
+ "is-disabled": !!e.isDisabled,
122
+ "selected-child-id": v(e) ? a.selectedChildId : null,
123
+ "display-value": a.displayValue,
119
124
  "search-query": l(u),
120
- "search-handler": d.searchHandler,
121
- onToggle: (c) => R(e, c),
122
- onSelect: (c) => $(e),
123
- onSelectChild: (c) => w(c, e)
124
- }, E({ _: 2 }, [
125
- l(y).menu ? {
125
+ "search-handler": a.searchHandler,
126
+ variant: a.variant,
127
+ "draggable-area": a.draggableArea,
128
+ onToggle: (c) => D(e, c),
129
+ onSelect: (c) => H(e),
130
+ onSelectChild: (c) => R(c, e)
131
+ }, w({ _: 2 }, [
132
+ l(m).menu ? {
126
133
  name: "menu",
127
134
  fn: I(() => [
128
- g(t.$slots, "menu", { item: e }, void 0, !0)
135
+ y(t.$slots, "menu", { item: e }, void 0, !0)
129
136
  ]),
130
137
  key: "0"
131
138
  } : void 0
132
- ]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
139
+ ]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "is-disabled", "selected-child-id", "display-value", "search-query", "search-handler", "variant", "draggable-area", "onToggle", "onSelect", "onSelectChild"]))), 128))
133
140
  ]),
134
141
  _: 3
135
- }, 16, ["modelValue", "disabled"])) : h("", !0),
136
- l(L).length ? (s(), r("div", V({
142
+ }, 16, ["modelValue", "handle", "disabled"])) : h("", !0),
143
+ l(C).length ? (s(), i("div", V({
137
144
  key: 1,
138
145
  class: "locked-list"
139
- }, l(T)[l(v).LOCKED_LIST]), [
140
- (s(!0), r(x, null, B(l(L), (e) => (s(), p(N, {
146
+ }, l(T)[l(p).LOCKED_LIST]), [
147
+ (s(!0), i(x, null, B(l(C), (e) => (s(), S(N, {
141
148
  key: e.id,
142
149
  item: e,
143
- "is-open": D(e),
144
- "is-selected": m(e),
145
- "selected-child-id": m(e) ? d.selectedChildId : null,
146
- "display-value": d.displayValue,
150
+ "is-open": A(e),
151
+ "is-selected": v(e),
152
+ "selected-child-id": v(e) ? a.selectedChildId : null,
153
+ "display-value": a.displayValue,
147
154
  "search-query": l(u),
148
- "on-search": d.searchHandler,
149
- "child-list-max-height": d.childListMaxHeight,
150
- onToggle: (o) => R(e, o),
151
- onSelect: (o) => $(e),
152
- onSelectChild: (o) => w(o, e)
153
- }, E({ _: 2 }, [
154
- l(y).menu ? {
155
+ "on-search": a.searchHandler,
156
+ "child-list-max-height": a.childListMaxHeight,
157
+ variant: a.variant,
158
+ onToggle: (n) => D(e, n),
159
+ onSelect: (n) => H(e),
160
+ onSelectChild: (n) => R(n, e)
161
+ }, w({ _: 2 }, [
162
+ l(m).menu ? {
155
163
  name: "menu",
156
164
  fn: I(() => [
157
- g(t.$slots, "menu", { item: e }, void 0, !0)
165
+ y(t.$slots, "menu", { item: e }, void 0, !0)
158
166
  ]),
159
167
  key: "0"
160
168
  } : void 0
161
- ]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "onToggle", "onSelect", "onSelectChild"]))), 128))
169
+ ]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "variant", "onToggle", "onSelect", "onSelectChild"]))), 128))
162
170
  ], 16)) : h("", !0)
163
171
  ])),
164
- !l(C).length && !d.isLoading ? (s(), r("div", de, [
165
- g(t.$slots, "empty-state", {}, () => [
166
- H(l(Y), { variant: "body2" }, {
172
+ !l(k).length && !a.isLoading ? (s(), i("div", de, [
173
+ y(t.$slots, "empty-state", {}, () => [
174
+ E(l(Z), { variant: "body2" }, {
167
175
  default: I(() => [
168
- j(J(d.emptyStateTitle), 1)
176
+ J(W(a.emptyStateTitle), 1)
169
177
  ]),
170
178
  _: 1
171
179
  })
@@ -175,5 +183,5 @@ const te = {
175
183
  }
176
184
  });
177
185
  export {
178
- ye as default
186
+ me as default
179
187
  };
@@ -10,7 +10,7 @@ const d = (e, r) => {
10
10
  ) || n.currentTarget.classList.add(r);
11
11
  },
12
12
  handleMouseout: () => {
13
- e.value.classList.remove(r);
13
+ e.value?.classList.remove(r);
14
14
  }
15
15
  };
16
16
  };
@@ -6,6 +6,7 @@ declare const SortableListTypes: () => ({
6
6
  $props: Partial<{
7
7
  search: string;
8
8
  testId: string;
9
+ variant: "default" | "compact";
9
10
  isLoading: boolean;
10
11
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
11
12
  searchPlaceholder: string;
@@ -13,6 +14,7 @@ declare const SortableListTypes: () => ({
13
14
  selectedChildId: string | number;
14
15
  childListMaxHeight: string;
15
16
  searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
17
+ draggableArea: "handle" | "full";
16
18
  openId: string | number;
17
19
  selectedId: string | number;
18
20
  showSearch: boolean;
@@ -29,6 +31,10 @@ declare const SortableListTypes: () => ({
29
31
  type: import("vue").PropType<string>;
30
32
  default: string;
31
33
  };
34
+ variant: {
35
+ type: import("vue").PropType<"default" | "compact">;
36
+ default: string;
37
+ };
32
38
  isLoading: {
33
39
  type: import("vue").PropType<boolean>;
34
40
  default: boolean;
@@ -59,6 +65,10 @@ declare const SortableListTypes: () => ({
59
65
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
60
66
  default: any;
61
67
  };
68
+ draggableArea: {
69
+ type: import("vue").PropType<"handle" | "full">;
70
+ default: string;
71
+ };
62
72
  openId: {
63
73
  type: import("vue").PropType<string | number>;
64
74
  default: any;
@@ -98,7 +108,7 @@ declare const SortableListTypes: () => ({
98
108
  "onUpdate:selectedId"?: (id: string | number) => any;
99
109
  "onUpdate:selectedChildId"?: (id: string | number) => any;
100
110
  "onUpdate:search"?: (query: string) => any;
101
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "childListMaxHeight" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase">;
111
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "variant" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "childListMaxHeight" | "searchHandler" | "draggableArea" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase">;
102
112
  $attrs: {
103
113
  [x: string]: unknown;
104
114
  };
@@ -124,6 +134,10 @@ declare const SortableListTypes: () => ({
124
134
  type: import("vue").PropType<string>;
125
135
  default: string;
126
136
  };
137
+ variant: {
138
+ type: import("vue").PropType<"default" | "compact">;
139
+ default: string;
140
+ };
127
141
  isLoading: {
128
142
  type: import("vue").PropType<boolean>;
129
143
  default: boolean;
@@ -154,6 +168,10 @@ declare const SortableListTypes: () => ({
154
168
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
155
169
  default: any;
156
170
  };
171
+ draggableArea: {
172
+ type: import("vue").PropType<"handle" | "full">;
173
+ default: string;
174
+ };
157
175
  openId: {
158
176
  type: import("vue").PropType<string | number>;
159
177
  default: any;
@@ -207,6 +225,7 @@ declare const SortableListTypes: () => ({
207
225
  }, string, {
208
226
  search: string;
209
227
  testId: string;
228
+ variant: "default" | "compact";
210
229
  isLoading: boolean;
211
230
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
212
231
  searchPlaceholder: string;
@@ -214,6 +233,7 @@ declare const SortableListTypes: () => ({
214
233
  selectedChildId: string | number;
215
234
  childListMaxHeight: string;
216
235
  searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
236
+ draggableArea: "handle" | "full";
217
237
  openId: string | number;
218
238
  selectedId: string | number;
219
239
  showSearch: boolean;
@@ -250,6 +270,10 @@ declare const SortableListTypes: () => ({
250
270
  type: import("vue").PropType<string>;
251
271
  default: string;
252
272
  };
273
+ variant: {
274
+ type: import("vue").PropType<"default" | "compact">;
275
+ default: string;
276
+ };
253
277
  isLoading: {
254
278
  type: import("vue").PropType<boolean>;
255
279
  default: boolean;
@@ -280,6 +304,10 @@ declare const SortableListTypes: () => ({
280
304
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
281
305
  default: any;
282
306
  };
307
+ draggableArea: {
308
+ type: import("vue").PropType<"handle" | "full">;
309
+ default: string;
310
+ };
283
311
  openId: {
284
312
  type: import("vue").PropType<string | number>;
285
313
  default: any;
@@ -332,6 +360,10 @@ declare const SortableListTypes: () => ({
332
360
  type: import("vue").PropType<string>;
333
361
  default: string;
334
362
  };
363
+ variant: {
364
+ type: import("vue").PropType<"default" | "compact">;
365
+ default: string;
366
+ };
335
367
  isLoading: {
336
368
  type: import("vue").PropType<boolean>;
337
369
  default: boolean;
@@ -362,6 +394,10 @@ declare const SortableListTypes: () => ({
362
394
  type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean>;
363
395
  default: any;
364
396
  };
397
+ draggableArea: {
398
+ type: import("vue").PropType<"handle" | "full">;
399
+ default: string;
400
+ };
365
401
  openId: {
366
402
  type: import("vue").PropType<string | number>;
367
403
  default: any;
@@ -415,6 +451,7 @@ declare const SortableListTypes: () => ({
415
451
  }, string, {
416
452
  search: string;
417
453
  testId: string;
454
+ variant: "default" | "compact";
418
455
  isLoading: boolean;
419
456
  displayValue: (item: import("./SortableList.types").SortableListItem) => string;
420
457
  searchPlaceholder: string;
@@ -422,6 +459,7 @@ declare const SortableListTypes: () => ({
422
459
  selectedChildId: string | number;
423
460
  childListMaxHeight: string;
424
461
  searchHandler: (item: import("./SortableList.types").SortableListItem, searchQuery: string) => boolean;
462
+ draggableArea: "handle" | "full";
425
463
  openId: string | number;
426
464
  selectedId: string | number;
427
465
  showSearch: boolean;
@@ -1,26 +1,42 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
1
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
3
  options: unknown[];
3
4
  modelValue: unknown;
5
+ variant: 'primary' | 'default';
4
6
  testId?: string;
5
7
  iconKey?: string;
8
+ tooltipTextKey?: string;
9
+ tooltipPlacement?: TooltipPositions;
6
10
  }>, {
7
11
  testId: string;
12
+ variant: string;
8
13
  iconKey: string;
14
+ tooltipTextKey: string;
15
+ tooltipPlacement: string;
9
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
17
  "update:modelValue": (...args: any[]) => void;
11
18
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
19
  options: unknown[];
13
20
  modelValue: unknown;
21
+ variant: 'primary' | 'default';
14
22
  testId?: string;
15
23
  iconKey?: string;
24
+ tooltipTextKey?: string;
25
+ tooltipPlacement?: TooltipPositions;
16
26
  }>, {
17
27
  testId: string;
28
+ variant: string;
18
29
  iconKey: string;
30
+ tooltipTextKey: string;
31
+ tooltipPlacement: string;
19
32
  }>>> & {
20
33
  "onUpdate:modelValue"?: (...args: any[]) => any;
21
34
  }, {
22
35
  testId: string;
36
+ variant: 'primary' | 'default';
37
+ tooltipPlacement: TooltipPositions;
23
38
  iconKey: string;
39
+ tooltipTextKey: string;
24
40
  }>;
25
41
  export default _default;
26
42
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./SwitchV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c2e356f5"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-cd6621a7"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,44 +1,59 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css"; import { defineComponent as p, ref as k, onMounted as v, openBlock as a, createElementBlock as d, unref as s, Fragment as I, renderList as V, createBlock as h, normalizeClass as B } from "vue";
2
- import { useVModel as C } from "@vueuse/core";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as r, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
2
+ import { useVModel as I } from "@vueuse/core";
3
+ import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
4
  import "../../button/v4/ButtonV4.vue.js";
4
5
  import $ from "../../button/v4/IconButtonV4.vue.js";
5
6
  import "../../button/v4/ButtonGroup.vue.js";
6
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
7
- import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
8
- const w = ["data-testid"], S = /* @__PURE__ */ p({
8
+ import B from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const K = ["data-testid"], A = /* @__PURE__ */ T({
9
10
  __name: "SwitchV4",
10
11
  props: {
11
12
  options: null,
12
13
  modelValue: null,
14
+ variant: { default: "default" },
13
15
  testId: { default: "" },
14
- iconKey: { default: "icon" }
16
+ iconKey: { default: "icon" },
17
+ tooltipTextKey: { default: "tooltipText" },
18
+ tooltipPlacement: { default: "top" }
15
19
  },
16
20
  emits: ["update:modelValue"],
17
- setup(e, { emit: m }) {
18
- const o = e, n = k(), u = C(o, "modelValue", m);
19
- v(() => {
20
- n.value = o.options.findIndex(
21
- (t) => t === o.modelValue
21
+ setup(t, { emit: f }) {
22
+ const i = t, n = h(), p = I(i, "modelValue", f), d = (e) => n.value === e;
23
+ k(() => {
24
+ n.value = i.options.findIndex(
25
+ (e) => e === i.modelValue
22
26
  );
23
27
  });
24
- const f = (t, i) => {
25
- n.value = i, u.value = t;
28
+ const v = (e, s) => {
29
+ n.value = s, p.value = e;
26
30
  };
27
- return (t, i) => (a(), d("div", {
28
- class: "switch",
29
- "data-testid": `${e.testId}-${s(r).WRAPPER}`
31
+ return (e, s) => (c(), r("div", {
32
+ class: m(["switch", [`switch--variant-${t.variant}`]]),
33
+ "data-testid": `${t.testId}-${a(u).WRAPPER}`
30
34
  }, [
31
- (a(!0), d(I, null, V(e.options, (c, l) => (a(), h(s($), {
35
+ (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
32
36
  key: l,
33
- class: B(["option", { "option--selected": n.value === l }]),
34
- "icon-name": c[e.iconKey],
35
- size: "small",
36
- "data-testid": `${e.testId}-${s(r).BUTTON}`,
37
- onClick: (y) => f(c, l)
38
- }, null, 8, ["class", "icon-name", "data-testid", "onClick"]))), 128))
39
- ], 8, w));
37
+ text: o[t.tooltipTextKey],
38
+ disabled: !o[t.tooltipTextKey],
39
+ placement: t.tooltipPlacement,
40
+ class: "option-wrapper"
41
+ }, {
42
+ default: y(() => [
43
+ C(a($), {
44
+ class: m(["option", { "option--selected": d(l) }]),
45
+ "icon-name": o[t.iconKey],
46
+ size: "small",
47
+ color: d(l) ? t.variant : "default",
48
+ "data-testid": `${t.testId}-${a(u).BUTTON}`,
49
+ onClick: (P) => v(o, l)
50
+ }, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["text", "disabled", "placement"]))), 128))
54
+ ], 10, K));
40
55
  }
41
56
  });
42
57
  export {
43
- S as default
58
+ A as default
44
59
  };