@ironsource/shared-ui 2.1.12-rc.5 → 2.1.12-rc.50

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 (352) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  5. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  6. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_908ef54f_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +1 -0
  9. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  10. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_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_8cc86a27_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css +1 -0
  14. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  15. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  16. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_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_f9907ea0_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_1a766750_lang.css +1 -0
  25. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  26. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  27. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  28. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  29. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  30. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  31. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  32. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  33. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  34. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  35. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  36. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  37. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  38. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  39. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  40. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  41. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  42. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  43. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  44. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  45. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  46. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  47. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  48. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  49. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  50. package/components/appIcon/index.d.ts +3 -3
  51. package/components/banner/Banner.vue.d.ts +3 -3
  52. package/components/banner/index.d.ts +7 -7
  53. package/components/button/common/consts.d.ts +1 -0
  54. package/components/button/v3/Button.vue.d.ts +3 -3
  55. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  56. package/components/button/v3/IconButton.vue.d.ts +3 -3
  57. package/components/button/v3/index.d.ts +14 -14
  58. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  59. package/components/button/v4/ButtonV4.vue.js +4 -4
  60. package/components/button/v4/ButtonV4.vue2.js +28 -27
  61. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  62. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  63. package/components/chart/Chart.vue.d.ts +123 -10
  64. package/components/chart/Chart.vue.js +3 -3
  65. package/components/chart/Chart.vue2.js +120 -64
  66. package/components/chart/ChartHeader.vue.d.ts +36 -7
  67. package/components/chart/ChartHeader.vue.js +3 -3
  68. package/components/chart/ChartHeader.vue2.js +60 -63
  69. package/components/chart/ChartHeaderTrend.vue.d.ts +19 -5
  70. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  71. package/components/chart/ChartHeaderTrend.vue2.js +83 -18
  72. package/components/chart/ChartLegend.vue.d.ts +24 -0
  73. package/components/chart/ChartLegend.vue.js +3 -3
  74. package/components/chart/ChartLegend.vue2.js +80 -62
  75. package/components/chart/ChartPlane.vue.d.ts +106 -13
  76. package/components/chart/ChartPlane.vue.js +5 -5
  77. package/components/chart/ChartPlane.vue2.js +313 -238
  78. package/components/chart/ChartStoryArgs.d.ts +63 -2
  79. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  80. package/components/chart/ChartTooltip.vue.js +2 -2
  81. package/components/chart/ChartTooltip.vue2.js +52 -58
  82. package/components/chart/LegendSorting.vue.d.ts +37 -0
  83. package/components/chart/LegendSorting.vue.js +45 -0
  84. package/components/chart/LegendSorting.vue2.js +4 -0
  85. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  86. package/components/chart/SettingsHeader.vue.js +3 -3
  87. package/components/chart/SettingsHeader.vue2.js +17 -16
  88. package/components/chart/SubHeader.vue.d.ts +52 -0
  89. package/components/chart/SubHeader.vue.js +7 -0
  90. package/components/chart/SubHeader.vue2.js +61 -0
  91. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  92. package/components/chart/TooltipHeader.vue.js +7 -0
  93. package/components/chart/TooltipHeader.vue2.js +69 -0
  94. package/components/chart/colorPalette.d.ts +5 -0
  95. package/components/chart/colorPalette.js +68 -0
  96. package/components/chart/composables/useChartHeight.d.ts +2 -2
  97. package/components/chart/composables/useChartHeight.js +16 -14
  98. package/components/chart/composables/useColorsMap.d.ts +5 -3
  99. package/components/chart/composables/useColorsMap.js +43 -12
  100. package/components/chart/consts.d.ts +29 -8
  101. package/components/chart/consts.js +45 -26
  102. package/components/chart/index.d.ts +473 -76
  103. package/components/chart/mockData.d.ts +33 -5
  104. package/components/chart/types.d.ts +35 -6
  105. package/components/chart/types.js +5 -2
  106. package/components/chart/utils/highlightUtils.d.ts +3 -0
  107. package/components/chart/utils/highlightUtils.js +18 -0
  108. package/components/chart/utils/utils.d.ts +3 -3
  109. package/components/chart/utils/utils.js +25 -10
  110. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  111. package/components/checkbox/v3/index.d.ts +7 -7
  112. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  113. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  114. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  115. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  116. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  117. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  118. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  119. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  120. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  121. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  122. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  123. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  124. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  125. package/components/columnConfigurator/consts.d.ts +1 -0
  126. package/components/columnConfigurator/consts.js +4 -0
  127. package/components/columnConfigurator/index.d.ts +72 -0
  128. package/components/columnConfigurator/index.js +6 -0
  129. package/components/columnConfigurator/mockData.d.ts +30 -0
  130. package/components/columnConfigurator/utils.d.ts +2 -0
  131. package/components/columnConfigurator/utils.js +18 -0
  132. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  133. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  134. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  135. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  136. package/components/columnPicker/OptionChip.vue.js +7 -0
  137. package/components/columnPicker/OptionChip.vue2.js +46 -0
  138. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  139. package/components/columnPicker/RemoveButton.vue.js +7 -0
  140. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  141. package/components/columnPicker/index.d.ts +388 -0
  142. package/components/columnPicker/index.js +6 -0
  143. package/components/columnPicker/mockData.d.ts +8 -0
  144. package/components/dateRange/common/DateRange.common.js +100 -94
  145. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  146. package/components/dateRange/common/DateServices.common.js +88 -92
  147. package/components/dateRange/common/consts.common.d.ts +5 -0
  148. package/components/dateRange/common/consts.common.js +9 -3
  149. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  150. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  151. package/components/dateRange/v3/index.d.ts +7 -7
  152. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  153. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  154. package/components/dateRange/v4/index.d.ts +7 -7
  155. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  156. package/components/dialog/v3/index.d.ts +46 -46
  157. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  158. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  159. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  160. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  161. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  162. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  163. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  164. package/components/dialog/v4/DialogV4.vue.js +4 -4
  165. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  166. package/components/dialog/v4/index.d.ts +164 -164
  167. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  168. package/components/dropdown/common/Dropdown.common.js +161 -149
  169. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  170. package/components/dropdown/v3/index.d.ts +39 -39
  171. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  172. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  173. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  174. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  175. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  176. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  177. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  178. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  179. package/components/dropdown/v4/ConditionalDropdown.vue2.js +205 -176
  180. package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -1
  181. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  182. package/components/dropdown/v4/DropdownV4.vue2.js +257 -199
  183. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  184. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  185. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  186. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  187. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  188. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  189. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  190. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  191. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  192. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  193. package/components/dropdown/v4/index.d.ts +702 -162
  194. package/components/forms/FormRow.vue.d.ts +9 -2
  195. package/components/forms/FormRow.vue.js +3 -3
  196. package/components/forms/FormRow.vue2.js +25 -14
  197. package/components/forms/index.d.ts +25 -5
  198. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  199. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  200. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  201. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  202. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  203. package/components/includeExclude/index.d.ts +110 -110
  204. package/components/input/v4/TextField.vue.d.ts +12 -0
  205. package/components/input/v4/TextField.vue.js +3 -3
  206. package/components/input/v4/TextField.vue2.js +129 -105
  207. package/components/input/v4/index.d.ts +46 -2
  208. package/components/link/Link.vue.d.ts +95 -0
  209. package/components/link/Link.vue.js +7 -0
  210. package/components/link/Link.vue2.js +65 -0
  211. package/components/link/index.d.ts +296 -0
  212. package/components/link/index.js +6 -0
  213. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  214. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  215. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  216. package/components/radioButton/v3/index.d.ts +20 -1
  217. package/components/search/v3/index.d.ts +3 -3
  218. package/components/shared/FieldLabel.vue.d.ts +19 -7
  219. package/components/shared/FieldLabel.vue.js +3 -3
  220. package/components/shared/FieldLabel.vue2.js +50 -37
  221. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  222. package/components/sortableList/LoaderBars.vue.js +7 -0
  223. package/components/sortableList/LoaderBars.vue2.js +25 -0
  224. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  225. package/components/sortableList/SortableItem.vue.js +5 -5
  226. package/components/sortableList/SortableItem.vue2.js +86 -70
  227. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  228. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  229. package/components/sortableList/SortableList.types.d.ts +1 -0
  230. package/components/sortableList/SortableList.vue.d.ts +12 -2
  231. package/components/sortableList/SortableList.vue.js +5 -5
  232. package/components/sortableList/SortableList.vue2.js +111 -113
  233. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  234. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  235. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  236. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  237. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  238. package/components/sortableList/composables/useHoverEffect.js +1 -1
  239. package/components/sortableList/consts.d.ts +2 -0
  240. package/components/sortableList/consts.js +4 -2
  241. package/components/sortableList/index.d.ts +77 -39
  242. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  243. package/components/switch/v4/SwitchV4.vue.js +3 -3
  244. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  245. package/components/switch/v4/index.d.ts +29 -0
  246. package/components/table/common/Table.common.d.ts +0 -1
  247. package/components/table/common/Table.common.js +38 -39
  248. package/components/table/common/Table.types.d.ts +2 -0
  249. package/components/table/common/consts.d.ts +1 -0
  250. package/components/table/common/consts.js +2 -1
  251. package/components/table/v4/DataGrid.vue.d.ts +19 -7
  252. package/components/table/v4/DataGrid.vue.js +5 -5
  253. package/components/table/v4/DataGrid.vue2.js +375 -307
  254. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  255. package/components/table/v4/DataGridContainer.vue.js +7 -0
  256. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  257. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  258. package/components/table/v4/DataGridHeader.vue.js +7 -0
  259. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  260. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  261. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  262. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  263. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  264. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  265. package/components/table/v4/index.d.ts +581 -298
  266. package/components/table/v4/index.js +7 -4
  267. package/components/table/v4/storyUtils.d.ts +27 -0
  268. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  269. package/components/tabs/v3/index.d.ts +7 -7
  270. package/components/tagsField/TagsField.types.d.ts +4 -0
  271. package/components/tagsField/TagsField.vue.d.ts +65 -0
  272. package/components/tagsField/TagsField.vue.js +7 -0
  273. package/components/tagsField/TagsField.vue2.js +90 -0
  274. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  275. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  276. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  277. package/components/tagsField/consts.d.ts +1 -0
  278. package/components/tagsField/consts.js +4 -0
  279. package/components/tagsField/index.d.ts +75 -0
  280. package/components/tagsField/index.js +6 -0
  281. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  282. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  283. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  284. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  285. package/components/tooltip/v3/index.d.ts +7 -7
  286. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  287. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  288. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  289. package/components/tooltip/v4/index.d.ts +27 -8
  290. package/components/typography/Text.vue.d.ts +3 -3
  291. package/components/typography/index.d.ts +7 -7
  292. package/composables/useDateService.d.ts +7 -0
  293. package/composables/useDateService.js +10 -0
  294. package/composables/useFormValidation.d.ts +1 -0
  295. package/composables/useFormValidation.js +32 -27
  296. package/consts/common.d.ts +1 -0
  297. package/consts/common.js +4 -0
  298. package/consts/regex.d.ts +1 -0
  299. package/consts/regex.js +2 -1
  300. package/index.d.ts +10373 -8457
  301. package/index.js +158 -134
  302. package/mocks/apps.d.ts +1 -0
  303. package/mocks/optionsWithIcons.d.ts +2 -0
  304. package/package.json +21 -1
  305. package/testids/index.d.ts +24 -1
  306. package/testids/index.js +36 -32
  307. package/utils/date.d.ts +1 -0
  308. package/utils/date.js +9 -0
  309. package/utils/formatNumbers.d.ts +1 -1
  310. package/utils/formatNumbers.js +39 -8
  311. package/utils/index.js +7 -0
  312. package/utils/object.d.ts +2 -0
  313. package/utils/object.js +9 -5
  314. package/utils/search.js +1 -1
  315. package/utils/text.d.ts +3 -0
  316. package/utils/text.js +24 -5
  317. package/utils/totals.d.ts +5 -0
  318. package/utils/totals.js +9 -0
  319. package/utils/utils.d.ts +1 -0
  320. package/utils/utils.js +4 -0
  321. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  322. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  323. package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
  324. package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
  325. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
  326. package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
  327. package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
  328. package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +0 -1
  329. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  330. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
  331. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  332. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  333. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  334. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  335. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  336. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  337. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  338. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  339. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  340. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  341. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  342. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  343. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  344. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  345. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  346. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  347. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  348. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  349. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  350. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  351. package/components/chart/composables/useChartValues.d.ts +0 -12
  352. package/components/chart/composables/useChartValues.js +0 -32
@@ -1,91 +1,88 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css"; import { defineComponent as b, computed as k, openBlock as r, createElementBlock as C, normalizeClass as w, createElementVNode as i, createVNode as n, unref as a, withCtx as d, renderSlot as B, createTextVNode as m, toDisplayString as f, createBlock as c, createCommentVNode as u, isRef as S } from "vue";
2
- import p from "../typography/v4/Typography.vue.js";
3
- import g from "../switch/v4/SwitchV4.vue.js";
4
- import { ChartType as l } from "./types.js";
5
- import x from "../tooltip/v4/TooltipV4.vue.js";
6
- import y from "./ChartHeaderTrend.vue.js";
7
- const D = { class: "header-texts" }, N = { class: "header-row" }, L = { class: "header-row" }, U = /* @__PURE__ */ b({
1
+ import "../../ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css"; import { defineComponent as k, computed as m, openBlock as r, createElementBlock as C, normalizeClass as S, createElementVNode as c, createVNode as p, createSlots as w, withCtx as f, renderSlot as x, unref as a, createTextVNode as B, toDisplayString as N, createBlock as l, normalizeProps as y, mergeProps as T, createCommentVNode as d, isRef as g } from "vue";
2
+ import D from "../typography/v4/Typography.vue.js";
3
+ import P from "../switch/v4/SwitchV4.vue.js";
4
+ import H from "../chip/v4/ChipV4.vue.js";
5
+ import { ChartType as n, TrendDirection as L } from "./types.js";
6
+ import b from "./ChartHeaderTrend.vue.js";
7
+ import $ from "./SubHeader.vue.js";
8
+ const z = { class: "header-texts" }, E = { class: "header-row" }, U = { class: "header-actions" }, I = /* @__PURE__ */ k({
8
9
  __name: "ChartHeader",
9
10
  props: {
10
- chartType: { default: l.Line },
11
+ chartType: { default: n.Line },
11
12
  typeSwitcher: { type: Boolean, default: !0 },
12
13
  header: { default: "" },
13
14
  subheader: { default: "" },
15
+ subheaderTooltip: { default: null },
16
+ trendTooltip: { default: null },
14
17
  compact: { type: Boolean, default: !1 },
15
18
  trendValue: { default: null },
16
- trendDirection: { default: "up" }
19
+ trendDirection: { default: L.UP },
20
+ noteText: { default: "" }
17
21
  },
18
22
  emits: ["update:chartType"],
19
- setup(e, { emit: v }) {
20
- const V = e, h = [
21
- { id: l.Line, icon: "chart-line-up" },
22
- { id: l.Bar, icon: "chart-bar" },
23
- { id: l.StackedLine, icon: "chart-line" }
24
- ], o = k({
23
+ setup(e, { emit: V }) {
24
+ const o = e, u = [
25
+ { id: n.Line, icon: "chart-line-up" },
26
+ { id: n.Bar, icon: "chart-bar" },
27
+ { id: n.StackedLine, icon: "chart-line" }
28
+ ], i = m({
25
29
  get() {
26
- return h.find(({ id: t }) => t === V.chartType);
30
+ return u.find(({ id: t }) => t === o.chartType);
27
31
  },
28
32
  set(t) {
29
- v("update:chartType", t.id);
33
+ V("update:chartType", t.id);
30
34
  }
31
- });
32
- return (t, s) => (r(), C("div", {
33
- class: w(["chart-header", { "chart-header--compact": e.compact }])
35
+ }), s = m(() => ({
36
+ value: o.trendValue,
37
+ direction: o.trendDirection,
38
+ trendTooltip: o.trendTooltip
39
+ }));
40
+ return (t, h) => (r(), C("div", {
41
+ class: S(["chart-header", { "chart-header--compact": e.compact }])
34
42
  }, [
35
- i("div", D, [
36
- i("div", N, [
37
- n(a(x), {
38
- placement: "right",
39
- disabled: !t.$slots["subheader-tooltip"]
40
- }, {
41
- tooltip: d(() => [
42
- B(t.$slots, "subheader-tooltip", {}, void 0, !0)
43
- ]),
44
- default: d(() => [
45
- n(a(p), {
46
- class: "subheader",
47
- variant: "h5"
48
- }, {
49
- default: d(() => [
50
- m(f(e.subheader + (e.compact ? ":" : "")), 1)
51
- ]),
52
- _: 1
53
- })
43
+ c("div", z, [
44
+ p($, {
45
+ subheader: e.subheader,
46
+ "subheader-tooltip": e.subheaderTooltip,
47
+ "show-separator": e.compact && (!!e.header || !!e.trendValue)
48
+ }, w({ _: 2 }, [
49
+ t.$slots["subheader-tooltip"] ? {
50
+ name: "subheader-tooltip",
51
+ fn: f(() => [
52
+ x(t.$slots, "subheader-tooltip", {}, void 0, !0)
54
53
  ]),
55
- _: 3
56
- }, 8, ["disabled"])
57
- ]),
58
- i("div", L, [
59
- n(a(p), {
54
+ key: "0"
55
+ } : void 0
56
+ ]), 1032, ["subheader", "subheader-tooltip", "show-separator"]),
57
+ c("div", E, [
58
+ p(a(D), {
60
59
  class: "header-text",
61
60
  variant: e.compact ? "h5" : "chart2"
62
61
  }, {
63
- default: d(() => [
64
- m(f(e.header), 1)
62
+ default: f(() => [
63
+ B(N(e.header), 1)
65
64
  ]),
66
65
  _: 1
67
66
  }, 8, ["variant"]),
68
- !e.compact && e.trendValue !== null ? (r(), c(y, {
69
- key: 0,
70
- value: e.trendValue,
71
- direction: e.trendDirection
72
- }, null, 8, ["value", "direction"])) : u("", !0)
67
+ !e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
73
68
  ]),
74
- e.compact && e.trendValue !== null ? (r(), c(y, {
75
- key: 0,
76
- value: e.trendValue,
77
- direction: e.trendDirection
78
- }, null, 8, ["value", "direction"])) : u("", !0)
69
+ e.compact && e.trendValue !== null ? (r(), l(b, y(T({ key: 0 }, a(s))), null, 16)) : d("", !0)
79
70
  ]),
80
- e.typeSwitcher ? (r(), c(a(g), {
81
- key: 0,
82
- modelValue: a(o),
83
- "onUpdate:modelValue": s[0] || (s[0] = (T) => S(o) ? o.value = T : null),
84
- options: h
85
- }, null, 8, ["modelValue"])) : u("", !0)
71
+ c("div", U, [
72
+ e.noteText ? (r(), l(a(H), {
73
+ key: 0,
74
+ label: `Note: ${e.noteText}`
75
+ }, null, 8, ["label"])) : d("", !0),
76
+ e.typeSwitcher ? (r(), l(a(P), {
77
+ key: 1,
78
+ modelValue: a(i),
79
+ "onUpdate:modelValue": h[0] || (h[0] = (v) => g(i) ? i.value = v : null),
80
+ options: u
81
+ }, null, 8, ["modelValue"])) : d("", !0)
82
+ ])
86
83
  ], 2));
87
84
  }
88
85
  });
89
86
  export {
90
- U as default
87
+ I as default
91
88
  };
@@ -1,18 +1,32 @@
1
+ import { TrendDirection } from '@/components/chart/types';
1
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
3
  value?: number | string;
3
- direction?: 'up' | 'down';
4
+ direction?: TrendDirection;
5
+ trendTooltip?: {
6
+ header?: string;
7
+ rangeCurrent?: string;
8
+ rangePrevious?: string;
9
+ };
4
10
  }>, {
5
11
  value: any;
6
- direction: string;
12
+ direction: TrendDirection;
13
+ trendTooltip: any;
7
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
15
  value?: number | string;
9
- direction?: 'up' | 'down';
16
+ direction?: TrendDirection;
17
+ trendTooltip?: {
18
+ header?: string;
19
+ rangeCurrent?: string;
20
+ rangePrevious?: string;
21
+ };
10
22
  }>, {
11
23
  value: any;
12
- direction: string;
24
+ direction: TrendDirection;
25
+ trendTooltip: any;
13
26
  }>>>, {
14
27
  value: number | string;
15
- direction: 'up' | 'down';
28
+ direction: TrendDirection;
29
+ trendTooltip: any;
16
30
  }>;
17
31
  export default _default;
18
32
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeaderTrend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e4c673e7"]]);
3
+ // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2f916aeb"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,32 +1,97 @@
1
- import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css"; import { defineComponent as a, openBlock as n, createElementBlock as o, normalizeClass as i, createVNode as t, unref as r, withCtx as c, createTextVNode as l, toDisplayString as d } from "vue";
2
- import m from "../typography/v4/Typography.vue.js";
3
- import p from "../icon/v4/IconV4.vue.js";
1
+ import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css"; import { defineComponent as g, computed as p, openBlock as n, createElementBlock as m, normalizeClass as y, createVNode as l, unref as t, withCtx as o, createElementVNode as u, createBlock as s, createTextVNode as a, toDisplayString as d, createCommentVNode as c, pushScopeId as C, popScopeId as _ } from "vue";
2
+ import i from "../typography/v4/Typography.vue.js";
3
+ import b from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- const y = /* @__PURE__ */ a({
5
+ import x from "../tooltip/v4/TooltipV4.vue.js";
6
+ import { TrendDirection as h } from "./types.js";
7
+ const f = (e) => (C("data-v-2f916aeb"), e = e(), _(), e), k = { class: "trend-tooltip" }, N = {
8
+ key: 2,
9
+ class: "separator"
10
+ }, I = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), P = /* @__PURE__ */ f(() => /* @__PURE__ */ u("hr", null, null, -1)), U = /* @__PURE__ */ g({
6
11
  __name: "ChartHeaderTrend",
7
12
  props: {
8
13
  value: { default: null },
9
- direction: { default: "up" }
14
+ direction: { default: h.UP },
15
+ trendTooltip: { default: null }
10
16
  },
11
17
  setup(e) {
12
- return (u, s) => (n(), o("div", {
13
- class: i(["chart-trend", [`chart-trend--${e.direction}`]])
18
+ const r = e, T = p(
19
+ () => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
20
+ ), v = p(
21
+ () => r.direction === h.NEUTRAL ? "minus" : `arrow-${r.direction}`
22
+ );
23
+ return (S, V) => (n(), m("div", {
24
+ class: y(["chart-trend", [`chart-trend--${e.direction}`]])
14
25
  }, [
15
- t(r(p), {
16
- class: "trend-icon",
17
- type: "bold",
18
- name: `arrow-${e.direction}`,
19
- size: "13px"
20
- }, null, 8, ["name"]),
21
- t(r(m), { variant: "chipLabel" }, {
22
- default: c(() => [
23
- l(d(e.value), 1)
26
+ l(t(x), {
27
+ disabled: !t(T)
28
+ }, {
29
+ tooltip: o(() => [
30
+ u("div", k, [
31
+ e.trendTooltip?.header ? (n(), s(t(i), {
32
+ key: 0,
33
+ class: "trend-tooltip__header",
34
+ variant: "subtitle2"
35
+ }, {
36
+ default: o(() => [
37
+ a(d(e.trendTooltip.header), 1)
38
+ ]),
39
+ _: 1
40
+ })) : c("", !0),
41
+ e.trendTooltip?.rangeCurrent ? (n(), s(t(i), {
42
+ key: 1,
43
+ variant: "body2",
44
+ class: "trend-tooltip__text"
45
+ }, {
46
+ default: o(() => [
47
+ a(d(e.trendTooltip.rangeCurrent), 1)
48
+ ]),
49
+ _: 1
50
+ })) : c("", !0),
51
+ e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (n(), m("div", N, [
52
+ I,
53
+ l(t(i), {
54
+ class: "separator__text",
55
+ variant: "caption"
56
+ }, {
57
+ default: o(() => [
58
+ a(" vs. ")
59
+ ]),
60
+ _: 1
61
+ }),
62
+ P
63
+ ])) : c("", !0),
64
+ e.trendTooltip?.rangePrevious ? (n(), s(t(i), {
65
+ key: 3,
66
+ variant: "body2",
67
+ class: "trend-tooltip__text"
68
+ }, {
69
+ default: o(() => [
70
+ a(d(e.trendTooltip.rangePrevious), 1)
71
+ ]),
72
+ _: 1
73
+ })) : c("", !0)
74
+ ])
75
+ ]),
76
+ default: o(() => [
77
+ l(t(b), {
78
+ class: "trend-icon",
79
+ type: "bold",
80
+ name: t(v),
81
+ size: "15px"
82
+ }, null, 8, ["name"]),
83
+ l(t(i), { variant: "chipLabel" }, {
84
+ default: o(() => [
85
+ a(d(e.value), 1)
86
+ ]),
87
+ _: 1
88
+ })
24
89
  ]),
25
90
  _: 1
26
- })
91
+ }, 8, ["disabled"])
27
92
  ], 2));
28
93
  }
29
94
  });
30
95
  export {
31
- y as default
96
+ U as default
32
97
  };
@@ -2,37 +2,61 @@ import { LegendItem } from '@/components/chart/types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  items: LegendItem[];
4
4
  visibleIds: unknown[];
5
+ highlightedId?: string | number;
5
6
  minVisible?: number;
6
7
  maxVisible?: number;
7
8
  maxLimitTooltipText?: string;
9
+ sortSelected?: unknown;
10
+ sortOptions?: unknown[];
11
+ sortOptionNameKey?: string;
8
12
  }>, {
9
13
  items: () => any[];
10
14
  visibleIds: () => any[];
15
+ highlightedId: any;
11
16
  minVisible: number;
12
17
  maxVisible: number;
13
18
  maxLimitTooltipText: string;
19
+ sortSelected: any;
20
+ sortOptions: () => any[];
21
+ sortOptionNameKey: string;
14
22
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
23
  "update:visibleIds": (visibleIds: unknown[]) => void;
24
+ "update:sortSelected": (sortOption: unknown) => void;
25
+ "update:highlightedId": (id: string | number) => void;
16
26
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
27
  items: LegendItem[];
18
28
  visibleIds: unknown[];
29
+ highlightedId?: string | number;
19
30
  minVisible?: number;
20
31
  maxVisible?: number;
21
32
  maxLimitTooltipText?: string;
33
+ sortSelected?: unknown;
34
+ sortOptions?: unknown[];
35
+ sortOptionNameKey?: string;
22
36
  }>, {
23
37
  items: () => any[];
24
38
  visibleIds: () => any[];
39
+ highlightedId: any;
25
40
  minVisible: number;
26
41
  maxVisible: number;
27
42
  maxLimitTooltipText: string;
43
+ sortSelected: any;
44
+ sortOptions: () => any[];
45
+ sortOptionNameKey: string;
28
46
  }>>> & {
29
47
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
48
+ "onUpdate:sortSelected"?: (sortOption: unknown) => any;
49
+ "onUpdate:highlightedId"?: (id: string | number) => any;
30
50
  }, {
31
51
  items: LegendItem[];
32
52
  visibleIds: unknown[];
53
+ highlightedId: string | number;
33
54
  minVisible: number;
34
55
  maxVisible: number;
35
56
  maxLimitTooltipText: string;
57
+ sortSelected: any;
58
+ sortOptions: unknown[];
59
+ sortOptionNameKey: string;
36
60
  }>;
37
61
  export default _default;
38
62
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartLegend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-532f23bc"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-6103d8bd"]]);
5
5
  export {
6
- c as default
6
+ s as default
7
7
  };
@@ -1,133 +1,151 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css"; import { defineComponent as S, ref as P, computed as m, openBlock as s, createElementBlock as c, createElementVNode as r, createVNode as d, unref as o, mergeProps as I, withCtx as p, createTextVNode as b, Fragment as A, renderList as F, normalizeClass as H, withModifiers as U, createBlock as k, createCommentVNode as L, toDisplayString as g } from "vue";
2
- import { useVirtualList as z } from "@vueuse/core";
3
- import f from "../typography/v4/Typography.vue.js";
4
- import R from "../checkbox/v4/CheckboxV4.vue.js";
5
- import q from "../search/v4/SearchV4.vue.js";
6
- import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
7
- import $ from "../icon/v4/IconV4.vue.js";
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css"; import { defineComponent as F, ref as H, computed as v, openBlock as s, createElementBlock as u, createElementVNode as r, createVNode as c, unref as o, createBlock as g, isRef as R, createCommentVNode as x, mergeProps as T, withCtx as p, createTextVNode as I, Fragment as $, renderList as z, normalizeClass as K, withModifiers as q, toDisplayString as V } from "vue";
2
+ import { useVModel as C, useVirtualList as G } from "@vueuse/core";
3
+ import k from "../typography/v4/Typography.vue.js";
4
+ import X from "../checkbox/v4/CheckboxV4.vue.js";
5
+ import j from "../search/v4/SearchV4.vue.js";
6
+ import { DEFAULT_MIN_VISIBLE as J, DEFAULT_MAX_VISIBLE as Q } from "./consts.js";
7
+ import W from "../icon/v4/IconV4.vue.js";
8
8
  import "../icon/v4/IconFlag.vue.js";
9
- import j from "../tooltip/v4/TooltipV4.vue.js";
10
- const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
9
+ import Y from "../tooltip/v4/TooltipV4.vue.js";
10
+ import Z from "./LegendSorting.vue.js";
11
+ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
11
12
  key: 0,
12
13
  class: "empty-list"
13
- }, Q = ["onClick"], W = { class: "label-container" }, ne = /* @__PURE__ */ S({
14
+ }, le = ["onMouseenter"], ie = ["onClick"], se = { class: "label-container" }, be = /* @__PURE__ */ F({
14
15
  __name: "ChartLegend",
15
16
  props: {
16
17
  items: { default: () => [] },
17
18
  visibleIds: { default: () => [] },
18
- minVisible: { default: G },
19
- maxVisible: { default: X },
20
- maxLimitTooltipText: { default: "" }
19
+ highlightedId: { default: null },
20
+ minVisible: { default: J },
21
+ maxVisible: { default: Q },
22
+ maxLimitTooltipText: { default: "" },
23
+ sortSelected: { default: null },
24
+ sortOptions: { default: () => [] },
25
+ sortOptionNameKey: { default: "" }
21
26
  },
22
- emits: ["update:visibleIds"],
23
- setup(h, { emit: T }) {
24
- const l = h, y = 32, u = P(""), C = m(() => {
25
- const t = u.value.toLowerCase();
27
+ emits: ["update:visibleIds", "update:sortSelected", "update:highlightedId"],
28
+ setup(a, { emit: m }) {
29
+ const l = a, M = 32, h = C(l, "sortSelected", m), y = C(l, "highlightedId", m), w = (t) => {
30
+ y.value = n(t) ? t.id : null;
31
+ }, E = () => {
32
+ y.value = null;
33
+ }, f = H(""), S = v(() => {
34
+ const t = f.value.toLowerCase();
26
35
  return l.items.filter(
27
36
  (i) => i.label.toLowerCase().includes(t)
28
37
  );
29
- }), a = (t) => l.visibleIds.includes(t.id), v = m(
38
+ }), n = (t) => l.visibleIds.includes(t.id), L = v(
30
39
  () => l.visibleIds.length >= l.maxVisible
31
- ), V = m(
40
+ ), N = v(
32
41
  () => l.visibleIds.length <= l.minVisible
33
- ), n = (t) => V.value && a(t) || v.value && !a(t), w = (t) => !l.maxLimitTooltipText || a(t) || !v.value, E = (t, i) => {
34
- T(
42
+ ), d = (t) => N.value && n(t) || L.value && !n(t), B = (t) => !l.maxLimitTooltipText || n(t) || !L.value, D = (t, i) => {
43
+ m(
35
44
  "update:visibleIds",
36
45
  t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
37
46
  );
38
- }, { list: x, containerProps: N, wrapperProps: B } = z(C, {
39
- itemHeight: y,
47
+ }, { list: _, containerProps: O, wrapperProps: P } = G(S, {
48
+ itemHeight: M,
40
49
  overscan: 10
41
- }), D = (t) => {
42
- n(t) || E(!a(t), t);
50
+ }), U = (t) => {
51
+ d(t) || D(!n(t), t);
43
52
  };
44
- return (t, i) => (s(), c("div", J, [
45
- r("div", K, [
46
- d(o(q), {
47
- modelValue: u.value,
48
- "onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
49
- }, null, 8, ["modelValue"])
53
+ return (t, i) => (s(), u("div", ee, [
54
+ r("div", te, [
55
+ c(o(j), {
56
+ modelValue: f.value,
57
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => f.value = e)
58
+ }, null, 8, ["modelValue"]),
59
+ a.sortOptions?.length > 0 ? (s(), g(Z, {
60
+ key: 0,
61
+ selected: o(h),
62
+ "onUpdate:selected": i[1] || (i[1] = (e) => R(h) ? h.value = e : null),
63
+ options: a.sortOptions,
64
+ "option-name-key": a.sortOptionNameKey
65
+ }, null, 8, ["selected", "options", "option-name-key"])) : x("", !0)
50
66
  ]),
51
- r("div", I({ class: "legend" }, o(N)), [
52
- r("ul", I({ class: "legend__list" }, o(B)), [
53
- o(x).length === 0 ? (s(), c("li", O, [
54
- d(o(f), { variant: "body2" }, {
67
+ r("div", T({ class: "legend" }, o(O)), [
68
+ r("ul", T({ class: "legend__list" }, o(P)), [
69
+ o(_).length === 0 ? (s(), u("li", oe, [
70
+ c(o(k), { variant: "body2" }, {
55
71
  default: p(() => [
56
- b("No results")
72
+ I("No results")
57
73
  ]),
58
74
  _: 1
59
75
  })
60
- ])) : (s(!0), c(A, { key: 1 }, F(o(x), ({ data: e, index: M }) => (s(), c("li", {
61
- key: M,
62
- class: H({ "disabled-item": n(e) })
76
+ ])) : (s(!0), u($, { key: 1 }, z(o(_), ({ data: e, index: A }) => (s(), u("li", {
77
+ key: A,
78
+ class: K({ "disabled-item": d(e) }),
79
+ onMouseenter: (b) => w(e),
80
+ onMouseleave: E
63
81
  }, [
64
- d(o(j), {
65
- text: h.maxLimitTooltipText,
66
- disabled: w(e),
82
+ c(o(Y), {
83
+ text: a.maxLimitTooltipText,
84
+ disabled: B(e),
67
85
  class: "disabled-tooltip"
68
86
  }, {
69
87
  default: p(() => [
70
88
  r("div", {
71
89
  class: "item-wrapper",
72
- onClick: (_) => D(e)
90
+ onClick: (b) => U(e)
73
91
  }, [
74
- d(o(R), {
92
+ c(o(X), {
75
93
  color: e.color,
76
- "is-checked": a(e),
77
- disabled: n(e),
78
- onClick: i[1] || (i[1] = U(
79
- (_) => {
80
- _.stopPropagation();
94
+ "is-checked": n(e),
95
+ disabled: d(e),
96
+ onClick: i[2] || (i[2] = q(
97
+ (b) => {
98
+ b.stopPropagation();
81
99
  },
82
100
  ["stop"]
83
101
  ))
84
102
  }, null, 8, ["color", "is-checked", "disabled"]),
85
- e.icon ? (s(), k(o($), {
103
+ e.icon ? (s(), g(o(W), {
86
104
  key: 0,
87
105
  class: "icon-color",
88
106
  type: e.iconType,
89
107
  name: e.icon,
90
108
  size: "16px"
91
- }, null, 8, ["type", "name"])) : L("", !0),
92
- r("div", W, [
93
- d(o(f), {
109
+ }, null, 8, ["type", "name"])) : x("", !0),
110
+ r("div", se, [
111
+ c(o(k), {
94
112
  variant: "body2",
95
113
  class: "legend-label",
96
114
  "is-truncated": "",
97
- "with-tooltip": !n(e),
115
+ "with-tooltip": !d(e),
98
116
  "tooltip-text": e.label,
99
117
  "tooltip-placement": "left"
100
118
  }, {
101
119
  default: p(() => [
102
- b(g(e.label), 1)
120
+ I(V(e.label), 1)
103
121
  ]),
104
122
  _: 2
105
123
  }, 1032, ["with-tooltip", "tooltip-text"]),
106
- e.caption ? (s(), k(o(f), {
124
+ e.caption ? (s(), g(o(k), {
107
125
  key: 0,
108
126
  variant: "caption",
109
127
  class: "legend-caption legend-label",
110
128
  "is-truncated": "",
111
- "with-tooltip": !n(e),
129
+ "with-tooltip": !d(e),
112
130
  "tooltip-text": e.caption,
113
131
  "tooltip-placement": "left"
114
132
  }, {
115
133
  default: p(() => [
116
- b(g(e.caption), 1)
134
+ I(V(e.caption), 1)
117
135
  ]),
118
136
  _: 2
119
- }, 1032, ["with-tooltip", "tooltip-text"])) : L("", !0)
137
+ }, 1032, ["with-tooltip", "tooltip-text"])) : x("", !0)
120
138
  ])
121
- ], 8, Q)
139
+ ], 8, ie)
122
140
  ]),
123
141
  _: 2
124
142
  }, 1032, ["text", "disabled"])
125
- ], 2))), 128))
143
+ ], 42, le))), 128))
126
144
  ], 16)
127
145
  ], 16)
128
146
  ]));
129
147
  }
130
148
  });
131
149
  export {
132
- ne as default
150
+ be as default
133
151
  };