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

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_5160f12d_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 +70 -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
package/index.js CHANGED
@@ -1,27 +1,27 @@
1
- import './Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css';
2
- import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
1
+ import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
2
+ import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
- import { MenuItemTypes as po } from "./components/menuItem/index.js";
4
+ import { MenuItemTypes as ao } from "./components/menuItem/index.js";
5
5
  import { MenuTypes as fo } from "./components/menu/index.js";
6
- import { AppIconTypes as xo } from "./components/appIcon/index.js";
7
- import { FloatingToolbarTypes as no } from "./components/floatingToolbar/index.js";
8
- import { IncludeExcludeTypes as uo } from "./components/includeExclude/index.js";
9
- import { ID_INJECTION_KEY as To, useId as co } from "./composables/useId.js";
10
- import { FilterDropdownTypes as go } from "./components/filterDropdown/index.js";
11
- import { TypographyTypes as Io } from "./components/typography/index.js";
12
- import { TypographyTypesV4 as Eo } from "./components/typography/v4/index.js";
13
- import { MultiBarTypes as Do } from "./components/multibar/index.js";
14
- import { FoldableSectionTypes as Bo } from "./components/layout/index.js";
15
- import { FormCardTypes as bo, FormFieldTypes as wo } from "./components/forms/index.js";
6
+ import { AppIconTypes as so } from "./components/appIcon/index.js";
7
+ import { FloatingToolbarTypes as lo } from "./components/floatingToolbar/index.js";
8
+ import { IncludeExcludeTypes as $o } from "./components/includeExclude/index.js";
9
+ import { ID_INJECTION_KEY as co, useId as yo } from "./composables/useId.js";
10
+ import { FilterDropdownTypes as Fo } from "./components/filterDropdown/index.js";
11
+ import { TypographyTypes as Ao } from "./components/typography/index.js";
12
+ import { TypographyTypesV4 as Co } from "./components/typography/v4/index.js";
13
+ import { MultiBarTypes as ho } from "./components/multibar/index.js";
14
+ import { FoldableSectionTypes as Mo } from "./components/layout/index.js";
15
+ import { FormCardTypes as wo, FormFieldTypes as ko } from "./components/forms/index.js";
16
16
  import * as o from "./components/button/v3/index.js";
17
17
  import * as r from "./components/button/v4/index.js";
18
18
  import * as e from "./components/chip/v3/index.js";
19
- import * as m from "./components/chip/v4/index.js";
20
- import * as t from "./components/switch/v3/index.js";
19
+ import * as t from "./components/chip/v4/index.js";
20
+ import * as m from "./components/switch/v3/index.js";
21
21
  import * as p from "./components/switch/v4/index.js";
22
22
  import * as a from "./components/dropdown/v3/index.js";
23
- import * as f from "./components/dropdown/v4/index.js";
24
- import * as i from "./components/search/v3/index.js";
23
+ import * as i from "./components/dropdown/v4/index.js";
24
+ import * as f from "./components/search/v3/index.js";
25
25
  import * as d from "./components/search/v4/index.js";
26
26
  import * as x from "./components/filtersPanel/v3/index.js";
27
27
  import * as s from "./components/filtersPanel/v4/index.js";
@@ -44,72 +44,79 @@ import * as B from "./components/table/v4/index.js";
44
44
  import * as M from "./components/table-cells/v3/index.js";
45
45
  import * as b from "./components/table-cells/v4/index.js";
46
46
  import * as w from "./components/skeleton/v3/index.js";
47
- import * as O from "./components/skeleton/v4/index.js";
48
- import * as H from "./components/loader/v4/index.js";
49
- import * as N from "./components/emptyState/v3/index.js";
47
+ import * as k from "./components/skeleton/v4/index.js";
48
+ import * as O from "./components/loader/v4/index.js";
49
+ import * as P from "./components/emptyState/v3/index.js";
50
50
  import * as S from "./components/emptyState/v4/index.js";
51
- import * as V from "./components/snackbar/v3/index.js";
52
- import * as v from "./components/snackbar/v4/index.js";
53
- import * as J from "./components/radioButton/v3/index.js";
54
- import * as K from "./components/radioButton/v4/index.js";
55
- import * as P from "./components/textArea/v3/index.js";
56
- import * as _ from "./components/textArea/v4/index.js";
57
- import * as j from "./components/ThemeWrapper/index.js";
58
- import * as k from "./components/appHeader/index.js";
59
- import * as q from "./components/inlineCopy/index.js";
60
- import * as z from "./components/statusDot/index.js";
61
- import * as G from "./components/sortableList/index.js";
62
- import * as L from "./components/datePicker/v3/index.js";
63
- import * as Q from "./components/datePicker/v4/index.js";
64
- import * as R from "./components/dateRange/v3/index.js";
51
+ import * as v from "./components/snackbar/v3/index.js";
52
+ import * as H from "./components/snackbar/v4/index.js";
53
+ import * as L from "./components/radioButton/v3/index.js";
54
+ import * as N from "./components/radioButton/v4/index.js";
55
+ import * as V from "./components/textArea/v3/index.js";
56
+ import * as J from "./components/textArea/v4/index.js";
57
+ import * as K from "./components/ThemeWrapper/index.js";
58
+ import * as R from "./components/appHeader/index.js";
59
+ import * as _ from "./components/inlineCopy/index.js";
60
+ import * as j from "./components/statusDot/index.js";
61
+ import * as q from "./components/sortableList/index.js";
62
+ import * as z from "./components/datePicker/v3/index.js";
63
+ import * as G from "./components/datePicker/v4/index.js";
64
+ import * as Q from "./components/dateRange/v3/index.js";
65
65
  import * as Y from "./components/dateRange/v4/index.js";
66
66
  import * as U from "./components/popover/v3/index.js";
67
67
  import * as W from "./components/popover/v4/index.js";
68
- import { useToggle as Ho } from "./composables/useToggle.js";
69
- import { useSearch as So } from "./composables/useSearch.js";
70
- import { scrollToElementByClass as vo, scrollToFirstInvalidElement as Jo, useFormValidation as Ko, yupValidation as Po } from "./composables/useFormValidation.js";
68
+ import * as X from "./utils/index.js";
69
+ import { useToggle as Po } from "./composables/useToggle.js";
70
+ import { useSearch as vo } from "./composables/useSearch.js";
71
+ import { scrollToElementByClass as Lo, scrollToFirstInvalidElement as No, useFormValidation as Vo, yupValidation as Jo } from "./composables/useFormValidation.js";
72
+ import { useDateService as Ro } from "./composables/useDateService.js";
71
73
  import { BannerTypes as jo } from "./components/banner/index.js";
72
- import { AlertTypes as qo } from "./components/alert/index.js";
73
- import { AutocompleteTypes as Go } from "./components/autocomplete/index.js";
74
- import { ChartTypes as Qo } from "./components/chart/index.js";
75
- import { default as Yo } from "./components/appTrigger/AppTrigger.vue.js";
76
- import { default as Wo } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
77
- import { default as Zo } from "./components/menuItem/MenuItem.vue.js";
78
- import { default as rr } from "./components/menu/Menu.vue.js";
79
- import { default as mr } from "./components/appIcon/AppIcon.vue.js";
80
- import { default as pr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
81
- import { default as fr } from "./components/includeExclude/IncludeExclude.vue.js";
82
- import { default as dr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
83
- import { default as sr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
84
- import { default as lr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
85
- import { default as $r } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
86
- import { default as cr } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
87
- import { default as gr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
88
- import { default as Ir } from "./components/filterDropdown/FilterDropdown.vue.js";
89
- import { default as Er } from "./components/filterDropdown/AddFilterButton.vue.js";
90
- import { default as Dr } from "./components/typography/Heading.vue.js";
91
- import { default as Br } from "./components/typography/Text.vue.js";
92
- import { default as br } from "./components/typography/v4/Typography.vue.js";
93
- import { default as Or } from "./components/multibar/MultiBar.vue.js";
94
- import { default as Nr } from "./components/layout/FoldableSection.vue.js";
95
- import { default as Vr } from "./components/forms/FormRow.vue.js";
96
- import { default as Jr } from "./components/forms/FormCard.vue.js";
97
- import { default as Pr } from "./components/forms/CardPanel.vue.js";
98
- import { default as jr } from "./components/forms/FormField.vue.js";
99
- import { default as qr } from "./components/banner/Banner.vue.js";
100
- import { default as Gr } from "./components/alert/Alert.vue.js";
101
- import { default as Qr } from "./components/autocomplete/Autocomplete.vue.js";
102
- import { default as Yr } from "./components/chart/Chart.vue.js";
103
- const X = {
74
+ import { AlertTypes as zo } from "./components/alert/index.js";
75
+ import { LinkTypes as Qo } from "./components/link/index.js";
76
+ import { AutocompleteTypes as Uo } from "./components/autocomplete/index.js";
77
+ import { ChartTypes as Xo } from "./components/chart/index.js";
78
+ import { ColumnPickerTypes as or } from "./components/columnPicker/index.js";
79
+ import { default as er } from "./components/appTrigger/AppTrigger.vue.js";
80
+ import { default as mr } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
81
+ import { default as ar } from "./components/menuItem/MenuItem.vue.js";
82
+ import { default as fr } from "./components/menu/Menu.vue.js";
83
+ import { default as xr } from "./components/appIcon/AppIcon.vue.js";
84
+ import { default as nr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
85
+ import { default as ur } from "./components/includeExclude/IncludeExclude.vue.js";
86
+ import { default as Tr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
87
+ import { default as yr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
88
+ import { default as Fr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
89
+ import { default as Ar } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
90
+ import { default as Cr } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
91
+ import { default as hr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
92
+ import { default as Mr } from "./components/filterDropdown/FilterDropdown.vue.js";
93
+ import { default as wr } from "./components/filterDropdown/AddFilterButton.vue.js";
94
+ import { default as Or } from "./components/typography/Heading.vue.js";
95
+ import { default as Sr } from "./components/typography/Text.vue.js";
96
+ import { default as Hr } from "./components/typography/v4/Typography.vue.js";
97
+ import { default as Nr } from "./components/multibar/MultiBar.vue.js";
98
+ import { default as Jr } from "./components/layout/FoldableSection.vue.js";
99
+ import { default as Rr } from "./components/forms/FormRow.vue.js";
100
+ import { default as jr } from "./components/forms/FormCard.vue.js";
101
+ import { default as zr } from "./components/forms/CardPanel.vue.js";
102
+ import { default as Qr } from "./components/forms/FormField.vue.js";
103
+ import { default as Ur } from "./components/banner/Banner.vue.js";
104
+ import { default as Xr } from "./components/alert/Alert.vue.js";
105
+ import { default as oe } from "./components/link/Link.vue.js";
106
+ import { default as ee } from "./components/autocomplete/Autocomplete.vue.js";
107
+ import { default as me } from "./components/chart/Chart.vue.js";
108
+ import { ChartType as ae, TooltipOrder as ie, TrendDirection as fe } from "./components/chart/types.js";
109
+ import { default as xe } from "./components/columnPicker/ColumnPicker.vue.js";
110
+ const Z = {
104
111
  ...e,
105
- ...m,
106
112
  ...t,
113
+ ...m,
107
114
  ...p,
108
115
  ...o,
109
116
  ...r,
110
117
  ...a,
111
- ...f,
112
118
  ...i,
119
+ ...f,
113
120
  ...d,
114
121
  ...x,
115
122
  ...s,
@@ -129,85 +136,94 @@ const X = {
129
136
  ...B,
130
137
  ...M,
131
138
  ...b,
132
- ...N,
139
+ ...P,
133
140
  ...S,
134
141
  ...w,
142
+ ...k,
135
143
  ...O,
136
- ...H,
137
- ...V,
138
144
  ...v,
145
+ ...H,
139
146
  ...n,
140
147
  ...l,
141
- ...P,
142
- ..._,
148
+ ...V,
143
149
  ...J,
150
+ ...L,
151
+ ...N,
144
152
  ...K,
153
+ ...R,
154
+ ..._,
145
155
  ...j,
146
- ...k,
147
156
  ...q,
148
157
  ...z,
149
158
  ...G,
150
- ...L,
151
159
  ...Q,
152
- ...R,
153
160
  ...Y,
154
161
  ...U,
155
- ...W
162
+ ...W,
163
+ ...X
156
164
  };
157
165
  export {
158
- Er as AddFilterButton,
159
- Gr as Alert,
160
- qo as AlertTypes,
161
- mr as AppIcon,
162
- xo as AppIconTypes,
163
- Yo as AppTrigger,
164
- ro as AppTriggerTypes,
165
- Qr as Autocomplete,
166
- Wo as AutocompleteDropdown,
166
+ wr as AddFilterButton,
167
+ Xr as Alert,
168
+ zo as AlertTypes,
169
+ xr as AppIcon,
170
+ so as AppIconTypes,
171
+ er as AppTrigger,
172
+ eo as AppTriggerTypes,
173
+ ee as Autocomplete,
174
+ mr as AutocompleteDropdown,
167
175
  mo as AutocompleteDropdownTypes,
168
- Go as AutocompleteTypes,
169
- qr as Banner,
176
+ Uo as AutocompleteTypes,
177
+ Ur as Banner,
170
178
  jo as BannerTypes,
171
- Pr as CardPanel,
172
- Yr as Chart,
173
- Qo as ChartTypes,
174
- Ir as FilterDropdown,
175
- go as FilterDropdownTypes,
176
- pr as FloatingToolbar,
177
- no as FloatingToolbarTypes,
178
- Nr as FoldableSection,
179
- Bo as FoldableSectionTypes,
180
- Jr as FormCard,
181
- bo as FormCardTypes,
182
- jr as FormField,
183
- wo as FormFieldTypes,
184
- Vr as FormRow,
185
- Dr as Heading,
186
- To as ID_INJECTION_KEY,
187
- fr as IncludeExclude,
188
- cr as IncludeExcludeAppHeader,
189
- $r as IncludeExcludeAppTrigger,
190
- gr as IncludeExcludeChipFilter,
191
- dr as IncludeExcludeDragDrop,
192
- sr as IncludeExcludeOption,
193
- lr as IncludeExcludeOptionDraggable,
194
- uo as IncludeExcludeTypes,
195
- rr as Menu,
196
- Zo as MenuItem,
197
- po as MenuItemTypes,
179
+ zr as CardPanel,
180
+ me as Chart,
181
+ ae as ChartType,
182
+ Xo as ChartTypes,
183
+ xe as ColumnPicker,
184
+ or as ColumnPickerTypes,
185
+ Mr as FilterDropdown,
186
+ Fo as FilterDropdownTypes,
187
+ nr as FloatingToolbar,
188
+ lo as FloatingToolbarTypes,
189
+ Jr as FoldableSection,
190
+ Mo as FoldableSectionTypes,
191
+ jr as FormCard,
192
+ wo as FormCardTypes,
193
+ Qr as FormField,
194
+ ko as FormFieldTypes,
195
+ Rr as FormRow,
196
+ Or as Heading,
197
+ co as ID_INJECTION_KEY,
198
+ ur as IncludeExclude,
199
+ Cr as IncludeExcludeAppHeader,
200
+ Ar as IncludeExcludeAppTrigger,
201
+ hr as IncludeExcludeChipFilter,
202
+ Tr as IncludeExcludeDragDrop,
203
+ yr as IncludeExcludeOption,
204
+ Fr as IncludeExcludeOptionDraggable,
205
+ $o as IncludeExcludeTypes,
206
+ oe as Link,
207
+ Qo as LinkTypes,
208
+ fr as Menu,
209
+ ar as MenuItem,
210
+ ao as MenuItemTypes,
198
211
  fo as MenuTypes,
199
- Or as MultiBar,
200
- Do as MultiBarTypes,
201
- Br as Text,
202
- br as Typography,
203
- Io as TypographyTypes,
204
- Eo as TypographyTypesV4,
205
- X as default,
206
- vo as scrollToElementByClass,
207
- Jo as scrollToFirstInvalidElement,
208
- Ko as useFormValidation,
209
- co as useId,
210
- So as useSearch,
211
- Ho as useToggle,
212
- Po as yupValidation
212
+ Nr as MultiBar,
213
+ ho as MultiBarTypes,
214
+ Sr as Text,
215
+ ie as TooltipOrder,
216
+ fe as TrendDirection,
217
+ Hr as Typography,
218
+ Ao as TypographyTypes,
219
+ Co as TypographyTypesV4,
220
+ Z as default,
221
+ Lo as scrollToElementByClass,
222
+ No as scrollToFirstInvalidElement,
223
+ Ro as useDateService,
224
+ Vo as useFormValidation,
225
+ yo as useId,
226
+ vo as useSearch,
227
+ Po as useToggle,
228
+ Jo as yupValidation
213
229
  };
package/mocks/apps.d.ts CHANGED
@@ -4,6 +4,7 @@ export type Application = {
4
4
  name: string;
5
5
  image: string;
6
6
  abIcon?: string;
7
+ disabled?: boolean;
7
8
  };
8
9
  export declare const appMocks: Application[];
9
10
  export declare const optionsWithGroups: {
@@ -1,5 +1,7 @@
1
1
  export type OptionWithIcon = {
2
2
  icon: string;
3
3
  name: string;
4
+ disabled?: boolean;
5
+ optionTooltipText?: string;
4
6
  };
5
7
  export declare const optionWithIconMocks: OptionWithIcon[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-rc.4",
3
+ "version": "2.1.12-rc.40",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -152,6 +152,7 @@
152
152
  "./chart": "./components/chart/index.js",
153
153
  "./menuItem": "./components/menuItem/MenuItem.vue.js",
154
154
  "./menu": "./components/menu/Menu.vue.js",
155
+ "./columnPicker": "./components/columnPicker/index.js",
155
156
  ".": {
156
157
  "import": "./index.js"
157
158
  },
@@ -222,6 +223,7 @@
222
223
  "./styleguideV4": "./style/styleguideV4.scss",
223
224
  "./banner": "./components/banner/Banner.vue.js",
224
225
  "./alert": "./components/alert/index.js",
226
+ "./link": "./components/link/index.js",
225
227
  "./multibar": "./components/multibar/index.js",
226
228
  "./typography": "./components/typography/v4/index.js",
227
229
  "./themeWrapper": "./components/ThemeWrapper/index.js",
@@ -231,6 +233,7 @@
231
233
  "./statusDot": "./components/statusDot/index.js",
232
234
  "./sortableList": "./components/sortableList/index.js",
233
235
  "./composables/useFormValidation": "./composables/useFormValidation.js",
236
+ "./composables/useDateService": "./composables/useDateService.js",
234
237
  "./utils/": "./utils/index.ts"
235
238
  },
236
239
  "typesVersions": {
@@ -253,6 +256,9 @@
253
256
  "menu": [
254
257
  "./components/menu/Menu.vue.d.ts"
255
258
  ],
259
+ "columnPicker": [
260
+ "./components/columnPicker/index.d.ts"
261
+ ],
256
262
  "editable": [
257
263
  "./components/table-cells/v3/Editable.vue.d.ts"
258
264
  ],
@@ -436,6 +442,9 @@
436
442
  "alert": [
437
443
  "./components/alert/index.d.ts"
438
444
  ],
445
+ "link": [
446
+ "./components/link/index.d.ts"
447
+ ],
439
448
  "multibar": [
440
449
  "./components/multibar/index.d.ts"
441
450
  ],
@@ -468,6 +477,9 @@
468
477
  ],
469
478
  "composables/useFormValidation": [
470
479
  "./composables/useFormValidation.d.ts"
480
+ ],
481
+ "composables/useDateService": [
482
+ "./composables/useDateService.d.ts"
471
483
  ]
472
484
  }
473
485
  },
@@ -29,10 +29,18 @@ export declare enum DropdownTestIdModifiers {
29
29
  SELECT_ALL = "dd-select-all",
30
30
  NO_RESULT = "dd-no-result"
31
31
  }
32
+ export declare enum ColumnPickerTestIdModifiers {
33
+ TRIGGER = "column-picker-trigger",
34
+ WRAPPER = "column-picker-wrapper"
35
+ }
32
36
  export declare enum BannerTestIdModifiers {
33
37
  WRAPPER = "banner-wrapper",
34
38
  CONTENT = "banner-content"
35
39
  }
40
+ export declare enum LinkTestIdModifiers {
41
+ WRAPPER = "link-wrapper",
42
+ ICON = "link-icon"
43
+ }
36
44
  export declare enum AlertTestIdModifiers {
37
45
  WRAPPER = "alert-wrapper",
38
46
  TITLE = "alert-title",
package/testids/index.js CHANGED
@@ -1,37 +1,39 @@
1
- var a = /* @__PURE__ */ ((E) => (E.TRIGGER = "ie-trigger", E.CONTENT = "ie-content", E.SEARCH = "ie-search", E.LIST = "ie-list", E.LIST_SELECTED = "ie-list-selected", E.ACTION_CANCEL = "ie-action-cancel", E.ACTION_APPLY = "ie-action-apply", E.SELECT_ALL = "ie-select-all", E.CLEAR_ALL = "ie-clear-all", E))(a || {}), R = /* @__PURE__ */ ((E) => (E.TRIGGER = "dd-trigger", E.WRAPPER = "dd-wrapper", E.BUTTON = "dd-button", E.BUTTON_WRAPPER = "dd-button-wrapper", E.BUTTON_CONTENT = "dd-button-content", E.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", E.BUTTON_CLEAR = "dd-button-clear", E.LABEL = "dd-label", E.LIST_CONTAINER = "dd-list-container", E.SEARCH = "dd-search", E.TITLE = "dd-title", E.ACTION_CANCEL = "dd-action-cancel", E.ACTION_APPLY = "dd-action-apply", E.ACTION_CLEAR_ALL = "dd-action-clear-all", E.HELPER_TEXT = "dd-helper-text", E.HELPER_TEXT_ERROR = "dd-helper-text-error", E.SELECT_ALL = "dd-select-all", E.NO_RESULT = "dd-no-result", E))(R || {}), O = /* @__PURE__ */ ((E) => (E.WRAPPER = "banner-wrapper", E.CONTENT = "banner-content", E))(O || {}), t = /* @__PURE__ */ ((E) => (E.WRAPPER = "alert-wrapper", E.TITLE = "alert-title", E.MESSAGE = "alert-message", E.ACTION_BUTTON = "alert-action-button", E.CLOSE_BUTTON = "alert-close-button", E))(t || {}), N = /* @__PURE__ */ ((E) => (E.WRAPPER = "dialog-wrapper", E.HEADER = "dialog-header", E.ACTION_CLOSE = "dialog-action-close", E.HEADER_SECONDARY = "dialog-header-secondary", E.CONTENT = "dialog-content", E.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", E.BACKDROP = "dialog-backdrop", E.SAVE_BUTTON = "dialog-save-button", E.CANCEL_BUTTON = "dialog-cancel-button", E))(N || {}), A = /* @__PURE__ */ ((E) => (E.WRAPPER = "input-wrapper", E.TOOLTIP = "input-tooltip", E.TOOLTIP_WITHOUT_ICON = "input-tooltip-without-icon", E.MANDATORY = "input-mandatory", E.LABEL_CONTAINER = "input-label-container", E.LABEL_TEXT = "input-label-text", E.FIELD = "input-field", E.EXTRA_TEXT = "input-extra-text", E.TOGGLE_PASSWORD = "input-toggle-password-icon", E))(A || {}), L = /* @__PURE__ */ ((E) => (E.WRAPPER = "cb-wrapper", E.LABEL = "cb-label", E.FIELD = "cb-field", E.CHECKED = "cb-checked", E))(L || {}), P = /* @__PURE__ */ ((E) => (E.FIELD = "radio-field", E.LABEL = "radio-label", E.ERROR_TEXT = "radio-error-text", E.GROUP = "radio-group", E.LABEL_DESCRIPTION = "label-description", E))(P || {}), c = /* @__PURE__ */ ((E) => (E.WRAPPER = "swicth-wrapper", E.BUTTON = "swicth-button", E.TEXT = "swicth-text", E))(c || {}), _ = /* @__PURE__ */ ((E) => (E.WRAPPER = "ta-wrapper", E.LABEL = "ta-label", E.FIELD = "ta-field", E.TEXT = "ta-text", E))(_ || {}), n = /* @__PURE__ */ ((E) => (E.CONTAINER = "search-container", E.FIELD = "search-field", E.CLOSE = "search-close", E.CLEAR = "search-clear", E))(n || {}), l = /* @__PURE__ */ ((E) => (E.CONTAINER = "tbl-container", E.TABLE = "tbl-table", E.HEADER = "tbl-header", E.TITLE = "tbl-title", E.HEADER_RIGHT = "tbl-header-right", E.ACTIONS = "tbl-actions", E.SECTIONS = "tbl-sections", E.BODY_WRAPPER = "tbl-body-wrapper", E.EMPTY_STATE = "tbl-empty-state", E.PRE_SEARCH_HEADER = "tbl-pre-search-header", E))(l || {}), r = /* @__PURE__ */ ((E) => (E.CONTAINER = "rc-container", E.COUNT = "rc-count", E.TOTAL = "rc-total", E))(r || {}), C = /* @__PURE__ */ ((E) => (E.WRAPPER = "toggle-wrapper", E.BODY = "toggle-body", E.FIELD = "toggle-field", E.TEXT = "toggle-text", E.HELPER_TEXT = "toggle-helper-text", E.ERROR_TEXT = "toggle-error-text", E))(C || {}), b = /* @__PURE__ */ ((E) => (E.TEXT = "tt-text", E.TRIGGER = "tt-trigger", E.HEADER = "tt-header", E))(b || {}), p = /* @__PURE__ */ ((E) => (E.WRAPPER = "at-wrapper", E.TITLE_TEXT = "at-title-text", E.TITLE_TOOLTIP_TEXT = "at-tooltip-text", E.DESCRIPTION_TOOLTIP_TEXT = "at-description-tooltip-text", E.DESCRIPTION_TEXT = "at-description-text", E.TRIGGER_BUTTON = "at-trigger-button", E))(p || {}), v = /* @__PURE__ */ ((E) => (E.WRAPPER = "ai-wrapper", E.SELECTED_OPTION = "ai-selected-option", E.SEARCH_FIELD = "ai-search-field", E))(v || {}), u = /* @__PURE__ */ ((E) => (E.WRAPPER = "chip-wrapper", E.CLEAR = "chip-clear", E))(u || {}), S = /* @__PURE__ */ ((E) => (E.WRAPPER = "dp-wrapper", E.INPUT = "dp-input", E))(S || {}), U = /* @__PURE__ */ ((E) => (E.WRAPPER = "cm-wrapper", E.DAYS_HEADER = "cm-days-header", E.PREVIOUS = "cm-previous", E.NEXT = "cm-next", E.DAYS_WRAPPER = "cm-days-wrapper", E.DAY = "cm-day", E.MONTH_HEADER_TEXT = "cm-month-header-text", E.MONTH_HEADER = "cm-month-header", E))(U || {}), B = /* @__PURE__ */ ((E) => (E.WRAPPER = "dr-wrapper", E.FIELD = "dr-field", E.TRIGGER = "dr-trigger", E.CONTAINER = "dr-container", E.MENU = "dr-menu", E.MESSAGE = "dr-message", E.ACTION_APPLY = "dr-action-apply", E.ACTION_CANCEL = "dr-action-cancel", E))(B || {}), h = /* @__PURE__ */ ((E) => (E.WRAPPER = "tabs-wrapper", E.TAB = "tabs-tab", E))(h || {}), T = /* @__PURE__ */ ((E) => (E.TEXT = "t-text", E))(T || {}), W = /* @__PURE__ */ ((E) => (E.HEADER = "h-header", E))(W || {}), X = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-label-container", E.TEXT = "field-label-text", E.MANDATORY = "field-label-mandatory", E.TOOLTIP = "field-label-help-tooltip", E))(X || {}), m = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-help-text-container", E.TEXT = "field-help-text-text", E.ICON = "field-help-text-icon", E))(m || {}), G = /* @__PURE__ */ ((E) => (E.CONTAINER = "sb-container", E.TITLE = "sb-title", E.MESSAGE = "sb-message", E.CLOSE = "sb-close", E.ICON = "sb-icon", E.ACTION_BUTTON = "sb-action-button", E))(G || {}), H = /* @__PURE__ */ ((E) => (E.TITLE = "foldable-section-title", E.CONTENT = "foldable-section-content", E))(H || {}), Y = /* @__PURE__ */ ((E) => (E.TITLE = "form-card-title", E.CONTENT = "form-card-content", E.ACTIONS = "form-card-actions", E.SAVE_BUTTON = "form-card-save-btn", E.CANCEL_BUTTON = "form-card-cancel-btn", E))(Y || {}), y = /* @__PURE__ */ ((E) => (E.TITLE = "ah-title", E.APP_KEY = "ah-app-key", E.APP_PLATFORM = "ah-app-platform", E.AB_ICON = "ah-ab-icon", E))(y || {}), x = /* @__PURE__ */ ((E) => (E.TEXT = "ic-text", E.COPY_BTN = "ic-copy-btn", E))(x || {}), g = /* @__PURE__ */ ((E) => (E.WRAPPER = "multibar-wrapper", E.CLOSE_BTN = "multibar-close-button", E.MENU = "multibar-menu", E.ACTION = "multibar-action", E))(g || {}), w = /* @__PURE__ */ ((E) => (E.CONTAINER = "sortable-list-container", E.DRAGGABLE_LIST = "sortable-list-draggable-list", E.LOCKED_LIST = "sortable-list-locked-list", E))(w || {}), V = /* @__PURE__ */ ((E) => (E.BUTTON_A = "ab-group-button-a", E.BUTTON_B = "ab-group-button-b", E.POPOVER_TRIGGER = "ab-group-popover-trigger", E.POPOVER_AB = "ab-group-popover", E))(V || {});
1
+ var a = /* @__PURE__ */ ((E) => (E.TRIGGER = "ie-trigger", E.CONTENT = "ie-content", E.SEARCH = "ie-search", E.LIST = "ie-list", E.LIST_SELECTED = "ie-list-selected", E.ACTION_CANCEL = "ie-action-cancel", E.ACTION_APPLY = "ie-action-apply", E.SELECT_ALL = "ie-select-all", E.CLEAR_ALL = "ie-clear-all", E))(a || {}), R = /* @__PURE__ */ ((E) => (E.TRIGGER = "dd-trigger", E.WRAPPER = "dd-wrapper", E.BUTTON = "dd-button", E.BUTTON_WRAPPER = "dd-button-wrapper", E.BUTTON_CONTENT = "dd-button-content", E.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", E.BUTTON_CLEAR = "dd-button-clear", E.LABEL = "dd-label", E.LIST_CONTAINER = "dd-list-container", E.SEARCH = "dd-search", E.TITLE = "dd-title", E.ACTION_CANCEL = "dd-action-cancel", E.ACTION_APPLY = "dd-action-apply", E.ACTION_CLEAR_ALL = "dd-action-clear-all", E.HELPER_TEXT = "dd-helper-text", E.HELPER_TEXT_ERROR = "dd-helper-text-error", E.SELECT_ALL = "dd-select-all", E.NO_RESULT = "dd-no-result", E))(R || {}), O = /* @__PURE__ */ ((E) => (E.TRIGGER = "column-picker-trigger", E.WRAPPER = "column-picker-wrapper", E))(O || {}), t = /* @__PURE__ */ ((E) => (E.WRAPPER = "banner-wrapper", E.CONTENT = "banner-content", E))(t || {}), A = /* @__PURE__ */ ((E) => (E.WRAPPER = "link-wrapper", E.ICON = "link-icon", E))(A || {}), N = /* @__PURE__ */ ((E) => (E.WRAPPER = "alert-wrapper", E.TITLE = "alert-title", E.MESSAGE = "alert-message", E.ACTION_BUTTON = "alert-action-button", E.CLOSE_BUTTON = "alert-close-button", E))(N || {}), c = /* @__PURE__ */ ((E) => (E.WRAPPER = "dialog-wrapper", E.HEADER = "dialog-header", E.ACTION_CLOSE = "dialog-action-close", E.HEADER_SECONDARY = "dialog-header-secondary", E.CONTENT = "dialog-content", E.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", E.BACKDROP = "dialog-backdrop", E.SAVE_BUTTON = "dialog-save-button", E.CANCEL_BUTTON = "dialog-cancel-button", E))(c || {}), P = /* @__PURE__ */ ((E) => (E.WRAPPER = "input-wrapper", E.TOOLTIP = "input-tooltip", E.TOOLTIP_WITHOUT_ICON = "input-tooltip-without-icon", E.MANDATORY = "input-mandatory", E.LABEL_CONTAINER = "input-label-container", E.LABEL_TEXT = "input-label-text", E.FIELD = "input-field", E.EXTRA_TEXT = "input-extra-text", E.TOGGLE_PASSWORD = "input-toggle-password-icon", E))(P || {}), n = /* @__PURE__ */ ((E) => (E.WRAPPER = "cb-wrapper", E.LABEL = "cb-label", E.FIELD = "cb-field", E.CHECKED = "cb-checked", E))(n || {}), L = /* @__PURE__ */ ((E) => (E.FIELD = "radio-field", E.LABEL = "radio-label", E.ERROR_TEXT = "radio-error-text", E.GROUP = "radio-group", E.LABEL_DESCRIPTION = "label-description", E))(L || {}), _ = /* @__PURE__ */ ((E) => (E.WRAPPER = "swicth-wrapper", E.BUTTON = "swicth-button", E.TEXT = "swicth-text", E))(_ || {}), l = /* @__PURE__ */ ((E) => (E.WRAPPER = "ta-wrapper", E.LABEL = "ta-label", E.FIELD = "ta-field", E.TEXT = "ta-text", E))(l || {}), r = /* @__PURE__ */ ((E) => (E.CONTAINER = "search-container", E.FIELD = "search-field", E.CLOSE = "search-close", E.CLEAR = "search-clear", E))(r || {}), C = /* @__PURE__ */ ((E) => (E.CONTAINER = "tbl-container", E.TABLE = "tbl-table", E.HEADER = "tbl-header", E.TITLE = "tbl-title", E.HEADER_RIGHT = "tbl-header-right", E.ACTIONS = "tbl-actions", E.SECTIONS = "tbl-sections", E.BODY_WRAPPER = "tbl-body-wrapper", E.EMPTY_STATE = "tbl-empty-state", E.PRE_SEARCH_HEADER = "tbl-pre-search-header", E))(C || {}), b = /* @__PURE__ */ ((E) => (E.CONTAINER = "rc-container", E.COUNT = "rc-count", E.TOTAL = "rc-total", E))(b || {}), p = /* @__PURE__ */ ((E) => (E.WRAPPER = "toggle-wrapper", E.BODY = "toggle-body", E.FIELD = "toggle-field", E.TEXT = "toggle-text", E.HELPER_TEXT = "toggle-helper-text", E.ERROR_TEXT = "toggle-error-text", E))(p || {}), v = /* @__PURE__ */ ((E) => (E.TEXT = "tt-text", E.TRIGGER = "tt-trigger", E.HEADER = "tt-header", E))(v || {}), u = /* @__PURE__ */ ((E) => (E.WRAPPER = "at-wrapper", E.TITLE_TEXT = "at-title-text", E.TITLE_TOOLTIP_TEXT = "at-tooltip-text", E.DESCRIPTION_TOOLTIP_TEXT = "at-description-tooltip-text", E.DESCRIPTION_TEXT = "at-description-text", E.TRIGGER_BUTTON = "at-trigger-button", E))(u || {}), S = /* @__PURE__ */ ((E) => (E.WRAPPER = "ai-wrapper", E.SELECTED_OPTION = "ai-selected-option", E.SEARCH_FIELD = "ai-search-field", E))(S || {}), U = /* @__PURE__ */ ((E) => (E.WRAPPER = "chip-wrapper", E.CLEAR = "chip-clear", E))(U || {}), B = /* @__PURE__ */ ((E) => (E.WRAPPER = "dp-wrapper", E.INPUT = "dp-input", E))(B || {}), W = /* @__PURE__ */ ((E) => (E.WRAPPER = "cm-wrapper", E.DAYS_HEADER = "cm-days-header", E.PREVIOUS = "cm-previous", E.NEXT = "cm-next", E.DAYS_WRAPPER = "cm-days-wrapper", E.DAY = "cm-day", E.MONTH_HEADER_TEXT = "cm-month-header-text", E.MONTH_HEADER = "cm-month-header", E))(W || {}), h = /* @__PURE__ */ ((E) => (E.WRAPPER = "dr-wrapper", E.FIELD = "dr-field", E.TRIGGER = "dr-trigger", E.CONTAINER = "dr-container", E.MENU = "dr-menu", E.MESSAGE = "dr-message", E.ACTION_APPLY = "dr-action-apply", E.ACTION_CANCEL = "dr-action-cancel", E))(h || {}), m = /* @__PURE__ */ ((E) => (E.WRAPPER = "tabs-wrapper", E.TAB = "tabs-tab", E))(m || {}), X = /* @__PURE__ */ ((E) => (E.TEXT = "t-text", E))(X || {}), T = /* @__PURE__ */ ((E) => (E.HEADER = "h-header", E))(T || {}), G = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-label-container", E.TEXT = "field-label-text", E.MANDATORY = "field-label-mandatory", E.TOOLTIP = "field-label-help-tooltip", E))(G || {}), H = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-help-text-container", E.TEXT = "field-help-text-text", E.ICON = "field-help-text-icon", E))(H || {}), Y = /* @__PURE__ */ ((E) => (E.CONTAINER = "sb-container", E.TITLE = "sb-title", E.MESSAGE = "sb-message", E.CLOSE = "sb-close", E.ICON = "sb-icon", E.ACTION_BUTTON = "sb-action-button", E))(Y || {}), y = /* @__PURE__ */ ((E) => (E.TITLE = "foldable-section-title", E.CONTENT = "foldable-section-content", E))(y || {}), x = /* @__PURE__ */ ((E) => (E.TITLE = "form-card-title", E.CONTENT = "form-card-content", E.ACTIONS = "form-card-actions", E.SAVE_BUTTON = "form-card-save-btn", E.CANCEL_BUTTON = "form-card-cancel-btn", E))(x || {}), g = /* @__PURE__ */ ((E) => (E.TITLE = "ah-title", E.APP_KEY = "ah-app-key", E.APP_PLATFORM = "ah-app-platform", E.AB_ICON = "ah-ab-icon", E))(g || {}), w = /* @__PURE__ */ ((E) => (E.TEXT = "ic-text", E.COPY_BTN = "ic-copy-btn", E))(w || {}), V = /* @__PURE__ */ ((E) => (E.WRAPPER = "multibar-wrapper", E.CLOSE_BTN = "multibar-close-button", E.MENU = "multibar-menu", E.ACTION = "multibar-action", E))(V || {}), K = /* @__PURE__ */ ((E) => (E.CONTAINER = "sortable-list-container", E.DRAGGABLE_LIST = "sortable-list-draggable-list", E.LOCKED_LIST = "sortable-list-locked-list", E))(K || {}), D = /* @__PURE__ */ ((E) => (E.BUTTON_A = "ab-group-button-a", E.BUTTON_B = "ab-group-button-b", E.POPOVER_TRIGGER = "ab-group-popover-trigger", E.POPOVER_AB = "ab-group-popover", E))(D || {});
2
2
  export {
3
- t as AlertTestIdModifiers,
4
- y as AppHeaderTestIdModifiers,
5
- p as AppTriggerTestIdModifiers,
6
- v as AutocompleteInputTestIdModifiers,
7
- O as BannerTestIdModifiers,
8
- U as CalendarMonthTestIdModifiers,
9
- L as CheckboxTestIdModifiers,
10
- u as ChipTestIdModifiers,
11
- S as DatePickerTestIdModifiers,
12
- B as DateRangeTestIdModifiers,
13
- N as DialogTestIdModifiers,
3
+ N as AlertTestIdModifiers,
4
+ g as AppHeaderTestIdModifiers,
5
+ u as AppTriggerTestIdModifiers,
6
+ S as AutocompleteInputTestIdModifiers,
7
+ t as BannerTestIdModifiers,
8
+ W as CalendarMonthTestIdModifiers,
9
+ n as CheckboxTestIdModifiers,
10
+ U as ChipTestIdModifiers,
11
+ O as ColumnPickerTestIdModifiers,
12
+ B as DatePickerTestIdModifiers,
13
+ h as DateRangeTestIdModifiers,
14
+ c as DialogTestIdModifiers,
14
15
  R as DropdownTestIdModifiers,
15
- m as FieldHelpTextTestIdModifiers,
16
- X as FieldLabelTestIdModifiers,
17
- H as FoldableSectionTestIdModifiers,
18
- Y as FormCardTestIdModifiers,
19
- W as HeaderTestIdModifiers,
16
+ H as FieldHelpTextTestIdModifiers,
17
+ G as FieldLabelTestIdModifiers,
18
+ y as FoldableSectionTestIdModifiers,
19
+ x as FormCardTestIdModifiers,
20
+ T as HeaderTestIdModifiers,
20
21
  a as IncludeExcludeTestIdModifiers,
21
- x as InlineCopyTestIdModifiers,
22
- A as InputTestIdModifiers,
23
- g as MultiBarTestIdModifiers,
24
- P as RadioTestIdModifiers,
25
- r as RowsCounterTestIdModifiers,
26
- n as SearchTestIdModifiers,
27
- G as SnackbarTestIdModifiers,
28
- w as SortableListTestIdModifiers,
29
- c as SwitchTestIdModifiers,
30
- l as TableTestIdModifiers,
31
- h as TabsTestIdModifiers,
32
- _ as TextAreaTestIdModifiers,
33
- T as TextTestIdModifiers,
34
- V as ToggleButtonGroupABTestIdModifiers,
35
- C as ToggleTestIdModifiers,
36
- b as TooltipTestIdModifiers
22
+ w as InlineCopyTestIdModifiers,
23
+ P as InputTestIdModifiers,
24
+ A as LinkTestIdModifiers,
25
+ V as MultiBarTestIdModifiers,
26
+ L as RadioTestIdModifiers,
27
+ b as RowsCounterTestIdModifiers,
28
+ r as SearchTestIdModifiers,
29
+ Y as SnackbarTestIdModifiers,
30
+ K as SortableListTestIdModifiers,
31
+ _ as SwitchTestIdModifiers,
32
+ C as TableTestIdModifiers,
33
+ m as TabsTestIdModifiers,
34
+ l as TextAreaTestIdModifiers,
35
+ X as TextTestIdModifiers,
36
+ D as ToggleButtonGroupABTestIdModifiers,
37
+ p as ToggleTestIdModifiers,
38
+ v as TooltipTestIdModifiers
37
39
  };
@@ -0,0 +1 @@
1
+ export declare const getUTCDate: (date: Date | string | number) => Date;
package/utils/date.js ADDED
@@ -0,0 +1,9 @@
1
+ const n = (t) => {
2
+ const e = new Date(t);
3
+ return new Date(
4
+ e.valueOf() + e.getTimezoneOffset() * 60 * 1e3
5
+ );
6
+ };
7
+ export {
8
+ n as getUTCDate
9
+ };
@@ -1,4 +1,4 @@
1
1
  export declare const DEFAULT_FALLBACK = "N/A";
2
- export declare const nFormatter: (num: number | string, fallback?: string | null) => string;
2
+ export declare const nFormatter: (num: number | string, formatLowDigits?: boolean, fallback?: string | null, withSuffixSpace?: boolean) => string;
3
3
  export declare const diffInPersentage: (valueA: number | string, valueB: number | string, fallback?: string | null) => string | number;
4
4
  export declare const formatNumberWithCommas: (num: number | string, fallback?: string | null) => string;
@@ -1,11 +1,41 @@
1
- const s = "N/A", r = (n, e, t) => n.toLocaleString("en", {
1
+ const L = "N/A", O = "∞", T = "B", i = "M", S = "K";
2
+ const _ = " ", N = (s, e, r) => s.toLocaleString("en", {
2
3
  minimumFractionDigits: e,
3
- maximumFractionDigits: t
4
- }), u = (n, e = s) => {
5
- const t = Number(n), a = t % 1 !== 0;
6
- return isNaN(t) && e ? e : Math.abs(t) >= 1e12 ? "∞" : Math.abs(t) >= 1e9 ? `${r(t / 1e9, 0, 1)}B` : Math.abs(t) >= 1e6 ? `${r(t / 1e6, 0, 1)}M` : Math.abs(t) >= 1e3 ? `${r(t / 1e3, 0, 1)}K` : a && Math.abs(t) >= 100 ? r(t, 0, 0) : a && Math.abs(t) >= 10 ? r(t, 0, 1) : a ? r(t, 2, 2) : r(t, 0, 0);
4
+ maximumFractionDigits: r
5
+ }), I = (s, e, r, n = !0) => {
6
+ const t = s / e, o = ((H) => H >= 100 ? 0 : H >= 10 ? 1 : 2)(t), c = t.toFixed(o);
7
+ return n ? `${c}${_}${r}` : `${c}${r}`;
8
+ }, m = (s, e = !1, r = L, n = !0) => {
9
+ const t = Number(s), u = t % 1 !== 0;
10
+ if (isNaN(t) && r)
11
+ return r;
12
+ const o = Math.abs(t);
13
+ return o >= 1e12 ? O : o >= 1e9 ? I(
14
+ t,
15
+ 1e9,
16
+ T,
17
+ n
18
+ ) : o >= 1e6 ? I(
19
+ t,
20
+ 1e6,
21
+ i,
22
+ n
23
+ ) : o >= 1e3 ? I(
24
+ t,
25
+ 1e3,
26
+ S,
27
+ n
28
+ ) : u ? o >= 100 ? N(t, 0, 0) : o >= 10 ? N(t, 0, e ? 1 : 0) : N(t, e ? 2 : 0, e ? 2 : 0) : N(t, 0, 0);
29
+ }, D = (s, e, r = L) => {
30
+ const n = Number(s), t = Number(e);
31
+ return r && (isNaN(n) || isNaN(t)) ? r : n >= t ? (t - n) / n * 100 : (n - t) / n * -100;
32
+ }, a = (s, e = L) => {
33
+ const r = Number(s);
34
+ return isNaN(r) && e ? e : N(r, 0, 2);
7
35
  };
8
36
  export {
9
- s as DEFAULT_FALLBACK,
10
- u as nFormatter
37
+ L as DEFAULT_FALLBACK,
38
+ D as diffInPersentage,
39
+ a as formatNumberWithCommas,
40
+ m as nFormatter
11
41
  };
package/utils/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { DEFAULT_FALLBACK as m, diffInPersentage as t, formatNumberWithCommas as o, nFormatter as a } from "./formatNumbers.js";
2
+ export {
3
+ m as DEFAULT_FALLBACK,
4
+ t as diffInPersentage,
5
+ o as formatNumberWithCommas,
6
+ a as nFormatter
7
+ };
package/utils/text.d.ts CHANGED
@@ -1 +1,4 @@
1
+ import { Font } from '@/components/chart/types';
1
2
  export declare const isElementTruncated: (el: HTMLElement) => boolean;
3
+ export declare function measureTextWidth(text: string, font: Font): number;
4
+ export declare const truncateTextToFit: (text: string, font: Font, availableSpace: number) => string;