@ironsource/shared-ui 2.1.12-rc.3 → 2.1.12-rc.30

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 (237) 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_fa533a3d_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_db8a902c_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_4f67d41d_lang.css +1 -0
  9. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
  10. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  11. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
  12. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +1 -0
  13. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
  14. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  15. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  16. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  17. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  18. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  19. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  20. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
  21. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  22. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  23. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  24. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  25. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  26. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
  27. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  28. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  29. package/components/appIcon/index.d.ts +3 -3
  30. package/components/banner/Banner.vue.d.ts +3 -3
  31. package/components/banner/index.d.ts +7 -7
  32. package/components/button/common/consts.d.ts +1 -0
  33. package/components/button/v3/Button.vue.d.ts +3 -3
  34. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  35. package/components/button/v3/IconButton.vue.d.ts +3 -3
  36. package/components/button/v3/index.d.ts +14 -14
  37. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  38. package/components/button/v4/ButtonV4.vue.js +4 -4
  39. package/components/button/v4/ButtonV4.vue2.js +28 -27
  40. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  41. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  42. package/components/chart/Chart.vue.d.ts +158 -37
  43. package/components/chart/Chart.vue.js +2 -2
  44. package/components/chart/Chart.vue2.js +150 -297
  45. package/components/chart/ChartHeader.vue.d.ts +50 -11
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +73 -54
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  50. package/components/chart/ChartHeaderTrend.vue2.js +96 -0
  51. package/components/chart/ChartLegend.vue.d.ts +24 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +82 -63
  54. package/components/chart/ChartPlane.vue.d.ts +226 -0
  55. package/components/chart/ChartPlane.vue.js +7 -0
  56. package/components/chart/ChartPlane.vue2.js +370 -0
  57. package/components/chart/ChartStoryArgs.d.ts +184 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +50 -55
  61. package/components/chart/LegendSorting.vue.d.ts +37 -0
  62. package/components/chart/LegendSorting.vue.js +45 -0
  63. package/components/chart/LegendSorting.vue2.js +4 -0
  64. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  65. package/components/chart/SettingsHeader.vue.js +3 -3
  66. package/components/chart/SettingsHeader.vue2.js +17 -16
  67. package/components/chart/SubHeader.vue.d.ts +52 -0
  68. package/components/chart/SubHeader.vue.js +7 -0
  69. package/components/chart/SubHeader.vue2.js +61 -0
  70. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  71. package/components/chart/TooltipHeader.vue.js +7 -0
  72. package/components/chart/TooltipHeader.vue2.js +69 -0
  73. package/components/chart/colorPalette.d.ts +5 -0
  74. package/components/chart/colorPalette.js +68 -0
  75. package/components/chart/composables/useChartHeight.d.ts +5 -0
  76. package/components/chart/composables/useChartHeight.js +24 -0
  77. package/components/chart/composables/useColorsMap.d.ts +12 -0
  78. package/components/chart/composables/useColorsMap.js +48 -0
  79. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  80. package/components/chart/composables/useTooltipPosition.js +11 -15
  81. package/components/chart/consts.d.ts +29 -7
  82. package/components/chart/consts.js +41 -21
  83. package/components/chart/index.d.ts +554 -119
  84. package/components/chart/mockData.d.ts +44 -5
  85. package/components/chart/types.d.ts +38 -6
  86. package/components/chart/types.js +5 -2
  87. package/components/chart/utils/formatNumber.d.ts +0 -1
  88. package/components/chart/utils/highlightUtils.d.ts +3 -0
  89. package/components/chart/utils/highlightUtils.js +18 -0
  90. package/components/chart/utils/utils.d.ts +3 -3
  91. package/components/chart/utils/utils.js +19 -10
  92. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  93. package/components/checkbox/v3/index.d.ts +7 -7
  94. package/components/dateRange/common/DateRange.common.js +81 -75
  95. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  96. package/components/dateRange/common/DateServices.common.js +88 -92
  97. package/components/dateRange/common/consts.common.d.ts +5 -0
  98. package/components/dateRange/common/consts.common.js +9 -3
  99. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  100. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  101. package/components/dateRange/v3/index.d.ts +7 -7
  102. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  103. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  104. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  105. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  106. package/components/dateRange/v4/index.d.ts +7 -7
  107. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  108. package/components/dialog/v4/DialogV4.vue.js +4 -4
  109. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  110. package/components/dialog/v4/index.d.ts +7 -7
  111. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  112. package/components/dropdown/common/Dropdown.common.js +172 -160
  113. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  114. package/components/dropdown/v3/index.d.ts +20 -20
  115. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  116. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  117. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  118. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  119. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  120. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  121. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  122. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  123. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  124. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  125. package/components/dropdown/v4/ConditionalDropdown.vue2.js +151 -129
  126. package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
  127. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  128. package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
  129. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  130. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  131. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +18 -5
  133. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  134. package/components/dropdown/v4/OptionV4.vue2.js +140 -108
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  138. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  139. package/components/dropdown/v4/index.d.ts +682 -162
  140. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  141. package/components/emptyState/v4/index.d.ts +7 -7
  142. package/components/forms/FormRow.vue.d.ts +9 -2
  143. package/components/forms/FormRow.vue.js +3 -3
  144. package/components/forms/FormRow.vue2.js +25 -14
  145. package/components/forms/index.d.ts +25 -5
  146. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  147. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  148. package/components/includeExclude/index.d.ts +40 -40
  149. package/components/link/Link.vue.d.ts +70 -0
  150. package/components/link/Link.vue.js +7 -0
  151. package/components/link/Link.vue2.js +43 -0
  152. package/components/link/index.d.ts +201 -0
  153. package/components/link/index.js +6 -0
  154. package/components/search/v3/index.d.ts +3 -3
  155. package/components/shared/FieldLabel.vue.d.ts +19 -7
  156. package/components/shared/FieldLabel.vue.js +3 -3
  157. package/components/shared/FieldLabel.vue2.js +50 -37
  158. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  159. package/components/switch/v4/SwitchV4.vue.js +3 -3
  160. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  161. package/components/switch/v4/index.d.ts +29 -0
  162. package/components/table/common/Table.common.d.ts +0 -1
  163. package/components/table/common/Table.common.js +38 -39
  164. package/components/table/common/Table.types.d.ts +2 -0
  165. package/components/table/common/consts.d.ts +1 -0
  166. package/components/table/common/consts.js +2 -1
  167. package/components/table/v4/DataGrid.vue.d.ts +15 -4
  168. package/components/table/v4/DataGrid.vue.js +4 -4
  169. package/components/table/v4/DataGrid.vue2.js +288 -230
  170. package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
  171. package/components/table/v4/index.d.ts +50 -15
  172. package/components/table/v4/storyUtils.d.ts +2 -0
  173. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  174. package/components/tabs/v3/index.d.ts +7 -7
  175. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  176. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  177. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  178. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  179. package/components/tooltip/v3/index.d.ts +7 -7
  180. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  181. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  182. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  183. package/components/tooltip/v4/index.d.ts +7 -7
  184. package/components/typography/Text.vue.d.ts +3 -3
  185. package/components/typography/index.d.ts +7 -7
  186. package/composables/useDateService.d.ts +7 -0
  187. package/composables/useDateService.js +10 -0
  188. package/composables/useFormValidation.d.ts +1 -0
  189. package/composables/useFormValidation.js +32 -27
  190. package/composables/useFullPageHeight.d.ts +10 -0
  191. package/composables/useFullPageHeight.js +15 -0
  192. package/consts/common.d.ts +1 -0
  193. package/consts/common.js +4 -0
  194. package/consts/regex.d.ts +1 -0
  195. package/consts/regex.js +2 -1
  196. package/index.d.ts +1601 -425
  197. package/index.js +148 -136
  198. package/mocks/apps.d.ts +1 -0
  199. package/mocks/optionsWithIcons.d.ts +2 -0
  200. package/package.json +9 -1
  201. package/testids/index.d.ts +4 -0
  202. package/testids/index.js +31 -30
  203. package/utils/formatNumbers.d.ts +1 -1
  204. package/utils/formatNumbers.js +19 -6
  205. package/utils/index.js +7 -0
  206. package/utils/text.d.ts +3 -0
  207. package/utils/text.js +24 -5
  208. package/utils/totals.d.ts +5 -0
  209. package/utils/totals.js +9 -0
  210. package/utils/utils.d.ts +1 -0
  211. package/utils/utils.js +4 -0
  212. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  213. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  214. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  215. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  216. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  217. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  218. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  219. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  220. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
  221. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  222. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  223. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  224. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  225. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  226. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  227. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  228. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  229. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  230. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  231. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  232. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  233. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  234. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  235. package/components/chart/composables/useChartValues.d.ts +0 -12
  236. package/components/chart/composables/useChartValues.js +0 -32
  237. package/components/chart/utils/formatNumber.js +0 -11
package/index.js CHANGED
@@ -1,27 +1,27 @@
1
- import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
2
- import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
1
+ import './Typography.vue_vue_type_style_index_0_scoped_07b259bf_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 Do } 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 Oo } 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";
@@ -37,79 +37,84 @@ import * as F from "./components/dialog/v3/index.js";
37
37
  import * as I from "./components/dialog/v4/index.js";
38
38
  import * as A from "./components/toggle/v3/index.js";
39
39
  import * as E from "./components/toggle/v4/index.js";
40
- import * as C from "./components/tooltip/v3/index.js";
41
- import * as D from "./components/tooltip/v4/index.js";
40
+ import * as D from "./components/tooltip/v3/index.js";
41
+ import * as C from "./components/tooltip/v4/index.js";
42
42
  import * as h from "./components/table/v3/index.js";
43
43
  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
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";
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";
48
+ import * as S from "./components/loader/v4/index.js";
49
+ import * as k from "./components/emptyState/v3/index.js";
50
+ import * as v from "./components/emptyState/v4/index.js";
51
+ import * as H from "./components/snackbar/v3/index.js";
52
+ import * as L from "./components/snackbar/v4/index.js";
53
+ import * as N from "./components/radioButton/v3/index.js";
54
+ import * as V from "./components/radioButton/v4/index.js";
55
+ import * as J from "./components/textArea/v3/index.js";
56
+ import * as K from "./components/textArea/v4/index.js";
57
+ import * as P 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 ko } from "./composables/useToggle.js";
70
+ import { useSearch as Ho } from "./composables/useSearch.js";
71
+ import { scrollToElementByClass as No, scrollToFirstInvalidElement as Vo, useFormValidation as Jo, yupValidation as Ko } 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 { default as or } from "./components/appTrigger/AppTrigger.vue.js";
79
+ import { default as er } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
80
+ import { default as mr } from "./components/menuItem/MenuItem.vue.js";
81
+ import { default as ar } from "./components/menu/Menu.vue.js";
82
+ import { default as fr } from "./components/appIcon/AppIcon.vue.js";
83
+ import { default as xr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
84
+ import { default as nr } from "./components/includeExclude/IncludeExclude.vue.js";
85
+ import { default as ur } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
86
+ import { default as Tr } from "./components/includeExclude/IncludeExcludeOption.vue.js";
87
+ import { default as yr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
88
+ import { default as Fr } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
89
+ import { default as Ar } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
90
+ import { default as Dr } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
91
+ import { default as hr } from "./components/filterDropdown/FilterDropdown.vue.js";
92
+ import { default as Mr } from "./components/filterDropdown/AddFilterButton.vue.js";
93
+ import { default as wr } from "./components/typography/Heading.vue.js";
94
+ import { default as Sr } from "./components/typography/Text.vue.js";
95
+ import { default as vr } from "./components/typography/v4/Typography.vue.js";
96
+ import { default as Lr } from "./components/multibar/MultiBar.vue.js";
97
+ import { default as Vr } from "./components/layout/FoldableSection.vue.js";
98
+ import { default as Kr } from "./components/forms/FormRow.vue.js";
99
+ import { default as Rr } from "./components/forms/FormCard.vue.js";
100
+ import { default as jr } from "./components/forms/CardPanel.vue.js";
101
+ import { default as zr } from "./components/forms/FormField.vue.js";
102
+ import { default as Qr } from "./components/banner/Banner.vue.js";
103
+ import { default as Ur } from "./components/alert/Alert.vue.js";
104
+ import { default as Xr } from "./components/link/Link.vue.js";
105
+ import { default as oe } from "./components/autocomplete/Autocomplete.vue.js";
106
+ import { default as ee } from "./components/chart/Chart.vue.js";
107
+ import { ChartType as me, TooltipOrder as pe, TrendDirection as ae } from "./components/chart/types.js";
108
+ const Z = {
104
109
  ...e,
105
- ...m,
106
110
  ...t,
111
+ ...m,
107
112
  ...p,
108
113
  ...o,
109
114
  ...r,
110
115
  ...a,
111
- ...f,
112
116
  ...i,
117
+ ...f,
113
118
  ...d,
114
119
  ...x,
115
120
  ...s,
@@ -121,93 +126,100 @@ const X = {
121
126
  ...g,
122
127
  ...F,
123
128
  ...I,
124
- ...C,
125
129
  ...D,
130
+ ...C,
126
131
  ...A,
127
132
  ...E,
128
133
  ...h,
129
134
  ...B,
130
135
  ...M,
131
136
  ...b,
132
- ...N,
133
- ...S,
137
+ ...k,
138
+ ...v,
134
139
  ...w,
135
140
  ...O,
141
+ ...S,
136
142
  ...H,
137
- ...V,
138
- ...v,
143
+ ...L,
139
144
  ...n,
140
145
  ...l,
141
- ...P,
142
- ..._,
143
146
  ...J,
144
147
  ...K,
148
+ ...N,
149
+ ...V,
150
+ ...P,
151
+ ...R,
152
+ ..._,
145
153
  ...j,
146
- ...k,
147
154
  ...q,
148
155
  ...z,
149
156
  ...G,
150
- ...L,
151
157
  ...Q,
152
- ...R,
153
158
  ...Y,
154
159
  ...U,
155
- ...W
160
+ ...W,
161
+ ...X
156
162
  };
157
163
  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,
164
+ Mr as AddFilterButton,
165
+ Ur as Alert,
166
+ zo as AlertTypes,
167
+ fr as AppIcon,
168
+ so as AppIconTypes,
169
+ or as AppTrigger,
170
+ eo as AppTriggerTypes,
171
+ oe as Autocomplete,
172
+ er as AutocompleteDropdown,
167
173
  mo as AutocompleteDropdownTypes,
168
- Go as AutocompleteTypes,
169
- qr as Banner,
174
+ Uo as AutocompleteTypes,
175
+ Qr as Banner,
170
176
  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,
177
+ jr as CardPanel,
178
+ ee as Chart,
179
+ me as ChartType,
180
+ Xo as ChartTypes,
181
+ hr as FilterDropdown,
182
+ Fo as FilterDropdownTypes,
183
+ xr as FloatingToolbar,
184
+ lo as FloatingToolbarTypes,
185
+ Vr as FoldableSection,
186
+ Mo as FoldableSectionTypes,
187
+ Rr as FormCard,
188
+ wo as FormCardTypes,
189
+ zr as FormField,
190
+ Oo as FormFieldTypes,
191
+ Kr as FormRow,
192
+ wr as Heading,
193
+ co as ID_INJECTION_KEY,
194
+ nr as IncludeExclude,
195
+ Ar as IncludeExcludeAppHeader,
196
+ Fr as IncludeExcludeAppTrigger,
197
+ Dr as IncludeExcludeChipFilter,
198
+ ur as IncludeExcludeDragDrop,
199
+ Tr as IncludeExcludeOption,
200
+ yr as IncludeExcludeOptionDraggable,
201
+ $o as IncludeExcludeTypes,
202
+ Xr as Link,
203
+ Qo as LinkTypes,
204
+ ar as Menu,
205
+ mr as MenuItem,
206
+ ao as MenuItemTypes,
198
207
  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
208
+ Lr as MultiBar,
209
+ ho as MultiBarTypes,
210
+ Sr as Text,
211
+ pe as TooltipOrder,
212
+ ae as TrendDirection,
213
+ vr as Typography,
214
+ Ao as TypographyTypes,
215
+ Do as TypographyTypesV4,
216
+ Z as default,
217
+ No as scrollToElementByClass,
218
+ Vo as scrollToFirstInvalidElement,
219
+ Ro as useDateService,
220
+ Jo as useFormValidation,
221
+ yo as useId,
222
+ Ho as useSearch,
223
+ ko as useToggle,
224
+ Ko as yupValidation
213
225
  };
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.3",
3
+ "version": "2.1.12-rc.30",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -222,6 +222,7 @@
222
222
  "./styleguideV4": "./style/styleguideV4.scss",
223
223
  "./banner": "./components/banner/Banner.vue.js",
224
224
  "./alert": "./components/alert/index.js",
225
+ "./link": "./components/link/index.js",
225
226
  "./multibar": "./components/multibar/index.js",
226
227
  "./typography": "./components/typography/v4/index.js",
227
228
  "./themeWrapper": "./components/ThemeWrapper/index.js",
@@ -231,6 +232,7 @@
231
232
  "./statusDot": "./components/statusDot/index.js",
232
233
  "./sortableList": "./components/sortableList/index.js",
233
234
  "./composables/useFormValidation": "./composables/useFormValidation.js",
235
+ "./composables/useDateService": "./composables/useDateService.js",
234
236
  "./utils/": "./utils/index.ts"
235
237
  },
236
238
  "typesVersions": {
@@ -436,6 +438,9 @@
436
438
  "alert": [
437
439
  "./components/alert/index.d.ts"
438
440
  ],
441
+ "link": [
442
+ "./components/link/index.d.ts"
443
+ ],
439
444
  "multibar": [
440
445
  "./components/multibar/index.d.ts"
441
446
  ],
@@ -468,6 +473,9 @@
468
473
  ],
469
474
  "composables/useFormValidation": [
470
475
  "./composables/useFormValidation.d.ts"
476
+ ],
477
+ "composables/useDateService": [
478
+ "./composables/useDateService.d.ts"
471
479
  ]
472
480
  }
473
481
  },
@@ -33,6 +33,10 @@ export declare enum BannerTestIdModifiers {
33
33
  WRAPPER = "banner-wrapper",
34
34
  CONTENT = "banner-content"
35
35
  }
36
+ export declare enum LinkTestIdModifiers {
37
+ WRAPPER = "link-wrapper",
38
+ ICON = "link-icon"
39
+ }
36
40
  export declare enum AlertTestIdModifiers {
37
41
  WRAPPER = "alert-wrapper",
38
42
  TITLE = "alert-title",
package/testids/index.js CHANGED
@@ -1,37 +1,38 @@
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.WRAPPER = "banner-wrapper", E.CONTENT = "banner-content", E))(O || {}), t = /* @__PURE__ */ ((E) => (E.WRAPPER = "link-wrapper", E.ICON = "link-icon", E))(t || {}), 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 || {}), A = /* @__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))(A || {}), 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 || {}), c = /* @__PURE__ */ ((E) => (E.WRAPPER = "cb-wrapper", E.LABEL = "cb-label", E.FIELD = "cb-field", E.CHECKED = "cb-checked", E))(c || {}), 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 || {}), n = /* @__PURE__ */ ((E) => (E.WRAPPER = "swicth-wrapper", E.BUTTON = "swicth-button", E.TEXT = "swicth-text", E))(n || {}), _ = /* @__PURE__ */ ((E) => (E.WRAPPER = "ta-wrapper", E.LABEL = "ta-label", E.FIELD = "ta-field", E.TEXT = "ta-text", E))(_ || {}), l = /* @__PURE__ */ ((E) => (E.CONTAINER = "search-container", E.FIELD = "search-field", E.CLOSE = "search-close", E.CLEAR = "search-clear", E))(l || {}), r = /* @__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))(r || {}), C = /* @__PURE__ */ ((E) => (E.CONTAINER = "rc-container", E.COUNT = "rc-count", E.TOTAL = "rc-total", E))(C || {}), b = /* @__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))(b || {}), p = /* @__PURE__ */ ((E) => (E.TEXT = "tt-text", E.TRIGGER = "tt-trigger", E.HEADER = "tt-header", E))(p || {}), v = /* @__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))(v || {}), u = /* @__PURE__ */ ((E) => (E.WRAPPER = "ai-wrapper", E.SELECTED_OPTION = "ai-selected-option", E.SEARCH_FIELD = "ai-search-field", E))(u || {}), S = /* @__PURE__ */ ((E) => (E.WRAPPER = "chip-wrapper", E.CLEAR = "chip-clear", E))(S || {}), U = /* @__PURE__ */ ((E) => (E.WRAPPER = "dp-wrapper", E.INPUT = "dp-input", E))(U || {}), B = /* @__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))(B || {}), 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 || {}), W = /* @__PURE__ */ ((E) => (E.WRAPPER = "tabs-wrapper", E.TAB = "tabs-tab", E))(W || {}), X = /* @__PURE__ */ ((E) => (E.TEXT = "t-text", E))(X || {}), m = /* @__PURE__ */ ((E) => (E.HEADER = "h-header", E))(m || {}), T = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-label-container", E.TEXT = "field-label-text", E.MANDATORY = "field-label-mandatory", E.TOOLTIP = "field-label-help-tooltip", E))(T || {}), G = /* @__PURE__ */ ((E) => (E.CONTAINER = "field-help-text-container", E.TEXT = "field-help-text-text", E.ICON = "field-help-text-icon", E))(G || {}), H = /* @__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))(H || {}), Y = /* @__PURE__ */ ((E) => (E.TITLE = "foldable-section-title", E.CONTENT = "foldable-section-content", E))(Y || {}), 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 || {}), x = /* @__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))(x || {}), w = /* @__PURE__ */ ((E) => (E.TEXT = "ic-text", E.COPY_BTN = "ic-copy-btn", E))(w || {}), g = /* @__PURE__ */ ((E) => (E.WRAPPER = "multibar-wrapper", E.CLOSE_BTN = "multibar-close-button", E.MENU = "multibar-menu", E.ACTION = "multibar-action", E))(g || {}), V = /* @__PURE__ */ ((E) => (E.CONTAINER = "sortable-list-container", E.DRAGGABLE_LIST = "sortable-list-draggable-list", E.LOCKED_LIST = "sortable-list-locked-list", E))(V || {}), K = /* @__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))(K || {});
2
2
  export {
3
- t as AlertTestIdModifiers,
4
- y as AppHeaderTestIdModifiers,
5
- p as AppTriggerTestIdModifiers,
6
- v as AutocompleteInputTestIdModifiers,
3
+ N as AlertTestIdModifiers,
4
+ x as AppHeaderTestIdModifiers,
5
+ v as AppTriggerTestIdModifiers,
6
+ u as AutocompleteInputTestIdModifiers,
7
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,
8
+ B as CalendarMonthTestIdModifiers,
9
+ c as CheckboxTestIdModifiers,
10
+ S as ChipTestIdModifiers,
11
+ U as DatePickerTestIdModifiers,
12
+ h as DateRangeTestIdModifiers,
13
+ A as DialogTestIdModifiers,
14
14
  R as DropdownTestIdModifiers,
15
- m as FieldHelpTextTestIdModifiers,
16
- X as FieldLabelTestIdModifiers,
17
- H as FoldableSectionTestIdModifiers,
18
- Y as FormCardTestIdModifiers,
19
- W as HeaderTestIdModifiers,
15
+ G as FieldHelpTextTestIdModifiers,
16
+ T as FieldLabelTestIdModifiers,
17
+ Y as FoldableSectionTestIdModifiers,
18
+ y as FormCardTestIdModifiers,
19
+ m as HeaderTestIdModifiers,
20
20
  a as IncludeExcludeTestIdModifiers,
21
- x as InlineCopyTestIdModifiers,
22
- A as InputTestIdModifiers,
21
+ w as InlineCopyTestIdModifiers,
22
+ P as InputTestIdModifiers,
23
+ t as LinkTestIdModifiers,
23
24
  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,
25
+ L as RadioTestIdModifiers,
26
+ C as RowsCounterTestIdModifiers,
27
+ l as SearchTestIdModifiers,
28
+ H as SnackbarTestIdModifiers,
29
+ V as SortableListTestIdModifiers,
30
+ n as SwitchTestIdModifiers,
31
+ r as TableTestIdModifiers,
32
+ W as TabsTestIdModifiers,
32
33
  _ as TextAreaTestIdModifiers,
33
- T as TextTestIdModifiers,
34
- V as ToggleButtonGroupABTestIdModifiers,
35
- C as ToggleTestIdModifiers,
36
- b as TooltipTestIdModifiers
34
+ X as TextTestIdModifiers,
35
+ K as ToggleButtonGroupABTestIdModifiers,
36
+ b as ToggleTestIdModifiers,
37
+ p as TooltipTestIdModifiers
37
38
  };
@@ -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 function nFormatter(num: number, formatLowDigits?: 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,24 @@
1
- const s = "N/A", r = (n, e, t) => n.toLocaleString("en", {
2
- 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);
1
+ const s = "N/A", f = (e, t, i) => e.toLocaleString("en", {
2
+ minimumFractionDigits: t,
3
+ maximumFractionDigits: i
4
+ });
5
+ function u(e, t = !1) {
6
+ return e >= 1e12 ? "∞" : e >= 1e9 ? o(e, 1e9, "B") : e >= 1e6 ? o(e, 1e6, "M") : e >= 1e3 ? o(e, 1e3, "K") : e >= 100 ? e.toFixed(0) : e >= 10 ? e.toFixed(t ? 1 : 0) : e.toFixed(t ? 2 : 0);
7
+ }
8
+ function o(e, t, i) {
9
+ const r = e / t;
10
+ return r >= 100 ? r.toFixed(0) + i : r >= 10 ? r.toFixed(1) + i : r.toFixed(2) + i;
11
+ }
12
+ const N = (e, t, i = s) => {
13
+ const r = Number(e), n = Number(t);
14
+ return i && (isNaN(r) || isNaN(n)) ? i : r >= n ? (n - r) / r * 100 : (r - n) / r * -100;
15
+ }, c = (e, t = s) => {
16
+ const i = Number(e);
17
+ return isNaN(i) && t ? t : f(i, 0, 2);
7
18
  };
8
19
  export {
9
20
  s as DEFAULT_FALLBACK,
21
+ N as diffInPersentage,
22
+ c as formatNumberWithCommas,
10
23
  u as nFormatter
11
24
  };
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;
package/utils/text.js CHANGED
@@ -1,9 +1,28 @@
1
- const o = (t) => {
1
+ import { ELLIPSIS as a } from "../consts/common.js";
2
+ const u = (t) => {
2
3
  const e = new Range();
3
4
  e.selectNodeContents(t);
4
- const n = e.getBoundingClientRect(), c = t.getBoundingClientRect();
5
- return n.right > c.right;
6
- }, r = (t) => t ? t.scrollWidth !== t.offsetWidth ? t.scrollWidth > t.offsetWidth : o(t) : !1;
5
+ const n = e.getBoundingClientRect(), s = t.getBoundingClientRect();
6
+ return n.right > s.right;
7
+ }, w = (t) => t ? t.scrollWidth !== t.offsetWidth ? t.scrollWidth > t.offsetWidth : u(t) : !1, g = document.createElement("canvas"), o = g.getContext("2d");
8
+ function h(t, e) {
9
+ if (!o)
10
+ throw new Error("missing canvas context");
11
+ return o.font = `${e.weight} ${e.size}px ${e.family}`, o.measureText(t).width;
12
+ }
13
+ const W = (t, e, n) => {
14
+ const s = h(a, e);
15
+ if (h(t, e) <= n)
16
+ return t;
17
+ let r = 0, i = t.length, l = t;
18
+ for (; r <= i; ) {
19
+ const c = Math.floor((r + i) / 2), d = t.slice(0, c);
20
+ h(d, e) + s <= n ? (l = d, r = c + 1) : i = c - 1;
21
+ }
22
+ return l + a;
23
+ };
7
24
  export {
8
- r as isElementTruncated
25
+ w as isElementTruncated,
26
+ h as measureTextWidth,
27
+ W as truncateTextToFit
9
28
  };
@@ -0,0 +1,5 @@
1
+ export declare enum TotalType {
2
+ Total = "total",
3
+ Mean = "mean"
4
+ }
5
+ export declare const calculateTotal: (values: number[], totalType: TotalType) => number;