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

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 (280) 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/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_8e8df067_lang.css +1 -0
  14. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
  15. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  16. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  17. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  19. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  20. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  21. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  22. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  23. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  24. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  25. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  26. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  27. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
  28. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  29. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
  30. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  31. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  32. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  33. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  34. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
  35. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  36. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  37. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  38. package/components/appIcon/index.d.ts +3 -3
  39. package/components/banner/Banner.vue.d.ts +3 -3
  40. package/components/banner/index.d.ts +7 -7
  41. package/components/button/common/consts.d.ts +1 -0
  42. package/components/button/v3/Button.vue.d.ts +3 -3
  43. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  44. package/components/button/v3/IconButton.vue.d.ts +3 -3
  45. package/components/button/v3/index.d.ts +14 -14
  46. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  47. package/components/button/v4/ButtonV4.vue.js +4 -4
  48. package/components/button/v4/ButtonV4.vue2.js +28 -27
  49. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  50. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  51. package/components/chart/Chart.vue.d.ts +158 -37
  52. package/components/chart/Chart.vue.js +2 -2
  53. package/components/chart/Chart.vue2.js +150 -297
  54. package/components/chart/ChartHeader.vue.d.ts +50 -11
  55. package/components/chart/ChartHeader.vue.js +3 -3
  56. package/components/chart/ChartHeader.vue2.js +73 -54
  57. package/components/chart/ChartHeaderTrend.vue.d.ts +48 -0
  58. package/components/chart/ChartHeaderTrend.vue.js +7 -0
  59. package/components/chart/ChartHeaderTrend.vue2.js +96 -0
  60. package/components/chart/ChartLegend.vue.d.ts +24 -0
  61. package/components/chart/ChartLegend.vue.js +3 -3
  62. package/components/chart/ChartLegend.vue2.js +82 -63
  63. package/components/chart/ChartPlane.vue.d.ts +226 -0
  64. package/components/chart/ChartPlane.vue.js +7 -0
  65. package/components/chart/ChartPlane.vue2.js +370 -0
  66. package/components/chart/ChartStoryArgs.d.ts +184 -0
  67. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  68. package/components/chart/ChartTooltip.vue.js +2 -2
  69. package/components/chart/ChartTooltip.vue2.js +50 -55
  70. package/components/chart/LegendSorting.vue.d.ts +37 -0
  71. package/components/chart/LegendSorting.vue.js +45 -0
  72. package/components/chart/LegendSorting.vue2.js +4 -0
  73. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  74. package/components/chart/SettingsHeader.vue.js +3 -3
  75. package/components/chart/SettingsHeader.vue2.js +17 -16
  76. package/components/chart/SubHeader.vue.d.ts +52 -0
  77. package/components/chart/SubHeader.vue.js +7 -0
  78. package/components/chart/SubHeader.vue2.js +61 -0
  79. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  80. package/components/chart/TooltipHeader.vue.js +7 -0
  81. package/components/chart/TooltipHeader.vue2.js +69 -0
  82. package/components/chart/colorPalette.d.ts +5 -0
  83. package/components/chart/colorPalette.js +68 -0
  84. package/components/chart/composables/useChartHeight.d.ts +5 -0
  85. package/components/chart/composables/useChartHeight.js +24 -0
  86. package/components/chart/composables/useColorsMap.d.ts +12 -0
  87. package/components/chart/composables/useColorsMap.js +48 -0
  88. package/components/chart/composables/useTooltipPosition.d.ts +1 -1
  89. package/components/chart/composables/useTooltipPosition.js +11 -15
  90. package/components/chart/consts.d.ts +29 -7
  91. package/components/chart/consts.js +41 -21
  92. package/components/chart/index.d.ts +554 -119
  93. package/components/chart/mockData.d.ts +44 -5
  94. package/components/chart/types.d.ts +38 -6
  95. package/components/chart/types.js +5 -2
  96. package/components/chart/utils/formatNumber.d.ts +0 -1
  97. package/components/chart/utils/highlightUtils.d.ts +3 -0
  98. package/components/chart/utils/highlightUtils.js +18 -0
  99. package/components/chart/utils/utils.d.ts +3 -3
  100. package/components/chart/utils/utils.js +19 -10
  101. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  102. package/components/checkbox/v3/index.d.ts +7 -7
  103. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  104. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  105. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  106. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  107. package/components/columnPicker/OptionChip.vue.js +7 -0
  108. package/components/columnPicker/OptionChip.vue2.js +46 -0
  109. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  110. package/components/columnPicker/RemoveButton.vue.js +7 -0
  111. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  112. package/components/columnPicker/index.d.ts +388 -0
  113. package/components/columnPicker/index.js +6 -0
  114. package/components/columnPicker/mockData.d.ts +8 -0
  115. package/components/dateRange/common/DateRange.common.js +81 -75
  116. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  117. package/components/dateRange/common/DateServices.common.js +88 -92
  118. package/components/dateRange/common/consts.common.d.ts +5 -0
  119. package/components/dateRange/common/consts.common.js +9 -3
  120. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  121. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  122. package/components/dateRange/v3/index.d.ts +7 -7
  123. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  124. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  125. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  126. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  127. package/components/dateRange/v4/index.d.ts +7 -7
  128. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  129. package/components/dialog/v3/index.d.ts +46 -46
  130. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  131. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  132. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  133. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  134. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  135. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  136. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  137. package/components/dialog/v4/DialogV4.vue.js +4 -4
  138. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  139. package/components/dialog/v4/index.d.ts +164 -164
  140. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  141. package/components/dropdown/common/Dropdown.common.js +172 -160
  142. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  143. package/components/dropdown/v3/index.d.ts +20 -20
  144. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  145. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  146. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  147. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  148. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +1 -1
  149. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  150. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  151. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  152. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  153. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  154. package/components/dropdown/v4/ConditionalDropdown.vue2.js +151 -129
  155. package/components/dropdown/v4/DropdownV4.vue.d.ts +34 -1
  156. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  157. package/components/dropdown/v4/DropdownV4.vue2.js +241 -189
  158. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  159. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  160. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  161. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  162. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  163. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  164. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  165. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  166. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  167. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  168. package/components/dropdown/v4/index.d.ts +701 -162
  169. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  170. package/components/emptyState/v4/index.d.ts +7 -7
  171. package/components/forms/FormRow.vue.d.ts +9 -2
  172. package/components/forms/FormRow.vue.js +3 -3
  173. package/components/forms/FormRow.vue2.js +25 -14
  174. package/components/forms/index.d.ts +25 -5
  175. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  176. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  177. package/components/includeExclude/index.d.ts +40 -40
  178. package/components/link/Link.vue.d.ts +70 -0
  179. package/components/link/Link.vue.js +7 -0
  180. package/components/link/Link.vue2.js +43 -0
  181. package/components/link/index.d.ts +201 -0
  182. package/components/link/index.js +6 -0
  183. package/components/search/v3/index.d.ts +3 -3
  184. package/components/shared/FieldLabel.vue.d.ts +19 -7
  185. package/components/shared/FieldLabel.vue.js +3 -3
  186. package/components/shared/FieldLabel.vue2.js +50 -37
  187. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  188. package/components/sortableList/SortableItem.vue.js +3 -3
  189. package/components/sortableList/SortableItem.vue2.js +86 -70
  190. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  191. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  192. package/components/sortableList/SortableList.types.d.ts +1 -0
  193. package/components/sortableList/SortableList.vue.d.ts +10 -0
  194. package/components/sortableList/SortableList.vue.js +3 -3
  195. package/components/sortableList/SortableList.vue2.js +104 -96
  196. package/components/sortableList/composables/useHoverEffect.js +1 -1
  197. package/components/sortableList/index.d.ts +39 -1
  198. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  199. package/components/switch/v4/SwitchV4.vue.js +3 -3
  200. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  201. package/components/switch/v4/index.d.ts +29 -0
  202. package/components/table/common/Table.common.d.ts +0 -1
  203. package/components/table/common/Table.common.js +38 -39
  204. package/components/table/common/Table.types.d.ts +2 -0
  205. package/components/table/common/consts.d.ts +1 -0
  206. package/components/table/common/consts.js +2 -1
  207. package/components/table/v4/DataGrid.vue.d.ts +15 -4
  208. package/components/table/v4/DataGrid.vue.js +4 -4
  209. package/components/table/v4/DataGrid.vue2.js +288 -230
  210. package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
  211. package/components/table/v4/index.d.ts +50 -15
  212. package/components/table/v4/storyUtils.d.ts +19 -0
  213. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  214. package/components/tabs/v3/index.d.ts +7 -7
  215. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  216. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  217. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  218. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  219. package/components/tooltip/v3/index.d.ts +7 -7
  220. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  221. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  222. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  223. package/components/tooltip/v4/index.d.ts +27 -8
  224. package/components/typography/Text.vue.d.ts +3 -3
  225. package/components/typography/index.d.ts +7 -7
  226. package/composables/useDateService.d.ts +7 -0
  227. package/composables/useDateService.js +10 -0
  228. package/composables/useFormValidation.d.ts +1 -0
  229. package/composables/useFormValidation.js +32 -27
  230. package/composables/useFullPageHeight.d.ts +10 -0
  231. package/composables/useFullPageHeight.js +15 -0
  232. package/consts/common.d.ts +1 -0
  233. package/consts/common.js +4 -0
  234. package/consts/regex.d.ts +1 -0
  235. package/consts/regex.js +2 -1
  236. package/index.d.ts +2068 -739
  237. package/index.js +148 -132
  238. package/mocks/apps.d.ts +1 -0
  239. package/mocks/optionsWithIcons.d.ts +2 -0
  240. package/package.json +13 -1
  241. package/testids/index.d.ts +8 -0
  242. package/testids/index.js +35 -33
  243. package/utils/formatNumbers.d.ts +1 -1
  244. package/utils/formatNumbers.js +19 -6
  245. package/utils/index.js +7 -0
  246. package/utils/text.d.ts +3 -0
  247. package/utils/text.js +24 -5
  248. package/utils/totals.d.ts +5 -0
  249. package/utils/totals.js +9 -0
  250. package/utils/utils.d.ts +1 -0
  251. package/utils/utils.js +4 -0
  252. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  253. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +0 -1
  254. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  255. package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +0 -1
  256. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
  257. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
  258. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
  259. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  260. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +0 -1
  261. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  262. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
  263. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  264. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  265. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  266. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  267. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  268. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  269. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  270. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  271. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  272. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  273. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  274. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  275. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  276. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  277. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  278. package/components/chart/composables/useChartValues.d.ts +0 -12
  279. package/components/chart/composables/useChartValues.js +0 -32
  280. package/components/chart/utils/formatNumber.js +0 -11
@@ -0,0 +1,60 @@
1
+ import "../../../DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css"; import { defineComponent as C, openBlock as l, createElementBlock as T, createElementVNode as g, mergeProps as r, unref as e, renderSlot as L, createBlock as u, withCtx as c, createTextVNode as d, toDisplayString as i, createCommentVNode as f } from "vue";
2
+ import B from "../../button/v4/ButtonV4.vue.js";
3
+ import "../../button/v4/IconButtonV4.vue.js";
4
+ import "../../button/v4/ButtonGroup.vue.js";
5
+ import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
+ import { DialogTestIdModifiers as a } from "../../../testids/index.js";
7
+ import { useTestIdAttrs as N } from "../../../utils/testIds.js";
8
+ const b = { class: "footer" }, O = /* @__PURE__ */ C({
9
+ __name: "DialogFooter",
10
+ props: {
11
+ showCancelButton: { type: Boolean, default: !0 },
12
+ showSaveButton: { type: Boolean, default: !0 },
13
+ saveButtonLabel: { default: "Save" },
14
+ saveButtonLoading: { type: Boolean, default: !1 },
15
+ saveButtonColor: { default: "primary" },
16
+ cancelButtonLabel: { default: "Cancel" },
17
+ cancelButtonColor: { default: "default" },
18
+ testId: { default: "" }
19
+ },
20
+ emits: ["save", "cancel"],
21
+ setup(t, { emit: s }) {
22
+ const n = N(t.testId, a);
23
+ return (m, o) => (l(), T("footer", b, [
24
+ g("div", r({ class: "action-buttons" }, e(n)[e(a).ACTION_BUTTONS_WRAPPER]), [
25
+ L(m.$slots, "footer", {}, () => [
26
+ t.showCancelButton ? (l(), u(e(B), r({
27
+ key: 0,
28
+ class: "form-action",
29
+ variant: "outlined",
30
+ color: t.cancelButtonColor,
31
+ disabled: t.saveButtonLoading
32
+ }, e(n)[e(a).CANCEL_BUTTON], {
33
+ onClick: o[0] || (o[0] = (v) => s("cancel"))
34
+ }), {
35
+ default: c(() => [
36
+ d(i(t.cancelButtonLabel), 1)
37
+ ]),
38
+ _: 1
39
+ }, 16, ["color", "disabled"])) : f("", !0),
40
+ t.showSaveButton ? (l(), u(e(B), r({
41
+ key: 1,
42
+ class: "form-action",
43
+ loading: t.saveButtonLoading,
44
+ color: t.saveButtonColor
45
+ }, e(n)[e(a).SAVE_BUTTON], {
46
+ onClick: o[1] || (o[1] = (v) => s("save"))
47
+ }), {
48
+ default: c(() => [
49
+ d(i(t.saveButtonLabel), 1)
50
+ ]),
51
+ _: 1
52
+ }, 16, ["loading", "color"])) : f("", !0)
53
+ ], !0)
54
+ ], 16)
55
+ ]));
56
+ }
57
+ });
58
+ export {
59
+ O as default
60
+ };
@@ -0,0 +1,60 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ title?: string;
3
+ subtitle?: string;
4
+ showCloseButton?: boolean;
5
+ disableCloseButton?: boolean;
6
+ testId?: string;
7
+ }>, {
8
+ title: string;
9
+ subtitle: string;
10
+ showCloseButton: boolean;
11
+ disableCloseButton: boolean;
12
+ testId: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ close: () => void;
15
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ title?: string;
17
+ subtitle?: string;
18
+ showCloseButton?: boolean;
19
+ disableCloseButton?: boolean;
20
+ testId?: string;
21
+ }>, {
22
+ title: string;
23
+ subtitle: string;
24
+ showCloseButton: boolean;
25
+ disableCloseButton: boolean;
26
+ testId: string;
27
+ }>>> & {
28
+ onClose?: () => any;
29
+ }, {
30
+ title: string;
31
+ testId: string;
32
+ subtitle: string;
33
+ showCloseButton: boolean;
34
+ disableCloseButton: boolean;
35
+ }>, {
36
+ header?(_: {}): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: import('vue').PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_WithDefaults<P, D> = {
49
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
+ default: D[K];
51
+ }> : P[K];
52
+ };
53
+ type __VLS_Prettify<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./DialogHeader.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css"; //*');
4
+ const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9a814ec3"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,58 @@
1
+ import "../../../DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css"; import { defineComponent as b, openBlock as o, createElementBlock as B, mergeProps as n, unref as t, createElementVNode as C, renderSlot as y, createBlock as l, withCtx as d, createTextVNode as u, toDisplayString as m, createCommentVNode as s } from "vue";
2
+ import "../../button/v4/ButtonV4.vue.js";
3
+ import h from "../../button/v4/IconButtonV4.vue.js";
4
+ import "../../button/v4/ButtonGroup.vue.js";
5
+ import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
+ import c from "../../typography/v4/Typography.vue.js";
7
+ import { useTestIdAttrs as k } from "../../../utils/testIds.js";
8
+ import { DialogTestIdModifiers as r } from "../../../testids/index.js";
9
+ const I = { class: "title" }, V = /* @__PURE__ */ b({
10
+ __name: "DialogHeader",
11
+ props: {
12
+ title: { default: "" },
13
+ subtitle: { default: "" },
14
+ showCloseButton: { type: Boolean, default: !0 },
15
+ disableCloseButton: { type: Boolean, default: !1 },
16
+ testId: { default: "" }
17
+ },
18
+ emits: ["close"],
19
+ setup(e, { emit: f }) {
20
+ const a = k(e.testId, r);
21
+ return (p, i) => (o(), B("header", n({ class: "header" }, t(a)[t(r).HEADER]), [
22
+ C("div", I, [
23
+ y(p.$slots, "header", {}, () => [
24
+ e.title ? (o(), l(t(c), {
25
+ key: 0,
26
+ variant: "h3"
27
+ }, {
28
+ default: d(() => [
29
+ u(m(e.title), 1)
30
+ ]),
31
+ _: 1
32
+ })) : s("", !0),
33
+ e.subtitle ? (o(), l(t(c), {
34
+ key: 1,
35
+ class: "subtitle",
36
+ variant: "body1"
37
+ }, {
38
+ default: d(() => [
39
+ u(m(e.subtitle), 1)
40
+ ]),
41
+ _: 1
42
+ })) : s("", !0)
43
+ ], !0)
44
+ ]),
45
+ e.showCloseButton ? (o(), l(t(h), n({
46
+ key: 0,
47
+ class: "close-button",
48
+ "icon-name": "x",
49
+ disabled: e.disableCloseButton
50
+ }, t(a)[t(r).ACTION_CLOSE], {
51
+ onClick: i[0] || (i[0] = (E) => f("close"))
52
+ }), null, 16, ["disabled"])) : s("", !0)
53
+ ], 16));
54
+ }
55
+ });
56
+ export {
57
+ V as default
58
+ };
@@ -1,4 +1,5 @@
1
1
  import { Reason } from '@/components/dialog/common/Reason';
2
+ import { ButtonColor } from '@/components/button/common/consts';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  modelValue: boolean;
4
5
  content?: string;
@@ -18,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
19
  showFooter?: boolean;
19
20
  saveButtonLabel?: string;
20
21
  saveButtonLoading?: boolean;
21
- saveButtonColor?: string;
22
+ saveButtonColor?: ButtonColor;
22
23
  cancelButtonLabel?: string;
23
24
  cancelButtonColor?: string;
24
25
  testId?: string;
@@ -71,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
71
72
  showFooter?: boolean;
72
73
  saveButtonLabel?: string;
73
74
  saveButtonLoading?: boolean;
74
- saveButtonColor?: string;
75
+ saveButtonColor?: ButtonColor;
75
76
  cancelButtonLabel?: string;
76
77
  cancelButtonColor?: string;
77
78
  testId?: string;
@@ -103,30 +104,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
103
104
  "onUpdate:modelValue"?: (value: boolean) => any;
104
105
  onClose?: (reason: Reason) => any;
105
106
  onCancel?: () => any;
106
- onOpen?: () => any;
107
107
  onSave?: () => any;
108
+ onOpen?: () => any;
108
109
  }, {
109
110
  title: string;
110
111
  testId: string;
111
112
  size: "small" | "medium" | "extraSmall";
112
113
  content: string;
113
114
  subtitle: string;
114
- appendToBody: boolean;
115
- closeDelay: number;
116
- openDelay: number;
117
- escapeToClose: boolean;
118
- showBackdrop: boolean;
119
- closeOnClickOutside: boolean;
120
- beforeClose: (show: () => void) => void;
121
115
  showCloseButton: boolean;
122
116
  showCancelButton: boolean;
123
117
  showSaveButton: boolean;
124
- showFooter: boolean;
125
118
  saveButtonLabel: string;
126
119
  saveButtonLoading: boolean;
127
- saveButtonColor: string;
120
+ saveButtonColor: ButtonColor;
128
121
  cancelButtonLabel: string;
129
122
  cancelButtonColor: string;
123
+ appendToBody: boolean;
124
+ showBackdrop: boolean;
125
+ closeDelay: number;
126
+ openDelay: number;
127
+ escapeToClose: boolean;
128
+ closeOnClickOutside: boolean;
129
+ beforeClose: (show: () => void) => void;
130
+ showFooter: boolean;
130
131
  noPadding: boolean;
131
132
  }>, {
132
133
  header?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./DialogV4.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-37da643b"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cc99f1e3"]]);
5
5
  export {
6
- a as default
6
+ t as default
7
7
  };
@@ -1,22 +1,17 @@
1
- import "../../../DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css"; import { defineComponent as L, openBlock as o, createBlock as u, Teleport as E, createVNode as A, Transition as P, withCtx as i, unref as t, createElementBlock as m, createElementVNode as y, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as l } from "vue";
1
+ import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; import { defineComponent as k, openBlock as l, createBlock as s, Teleport as T, createVNode as L, Transition as D, withCtx as d, unref as t, createElementBlock as C, createElementVNode as g, mergeProps as B, renderSlot as b, createCommentVNode as u, createTextVNode as O, toDisplayString as p } from "vue";
2
2
  import { NOOP as I } from "@vue/shared";
3
- import b from "../../typography/v4/Typography.vue.js";
4
- import O from "../../button/v4/ButtonV4.vue.js";
5
- import S from "../../button/v4/IconButtonV4.vue.js";
6
- import "../../button/v4/ButtonGroup.vue.js";
7
- import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import { Reason as g } from "../common/Reason.js";
9
- import { dialogCommon as V } from "../common/Dialog.common.js";
10
- import { DialogTestIdModifiers as a } from "../../../testids/index.js";
11
- import { useTestIdAttrs as p } from "../../../utils/testIds.js";
12
- import { useMagicKeys as D, whenever as R } from "@vueuse/core";
13
- const $ = {
3
+ import N from "../../typography/v4/Typography.vue.js";
4
+ import { Reason as v } from "../common/Reason.js";
5
+ import { dialogCommon as P } from "../common/Dialog.common.js";
6
+ import { DialogTestIdModifiers as i } from "../../../testids/index.js";
7
+ import { useTestIdAttrs as V } from "../../../utils/testIds.js";
8
+ import { useMagicKeys as $, whenever as S } from "@vueuse/core";
9
+ import E from "./DialogHeader.vue.js";
10
+ import A from "./DialogFooter.vue.js";
11
+ const F = {
14
12
  key: 0,
15
13
  class: "container light-theme-v4"
16
- }, F = { class: "title" }, U = {
17
- key: 1,
18
- class: "footer"
19
- }, Y = /* @__PURE__ */ L({
14
+ }, J = /* @__PURE__ */ k({
20
15
  __name: "DialogV4",
21
16
  props: {
22
17
  modelValue: { type: Boolean },
@@ -44,115 +39,78 @@ const $ = {
44
39
  noPadding: { type: Boolean, default: !1 }
45
40
  },
46
41
  emits: ["update:modelValue", "open", "close", "save", "cancel"],
47
- setup(e, { emit: C }) {
48
- const r = e, { escape: w } = D(), n = p(r.testId, a), { visible: h, handleClose: v } = V(r, C);
49
- R(w, () => {
50
- h.value && r.escapeToClose && !r.saveButtonLoading && v(g.Escape);
42
+ setup(e, { emit: c }) {
43
+ const a = e, { escape: h } = $(), r = V(a.testId, i), { visible: m, handleClose: f } = P(a, c);
44
+ S(h, () => {
45
+ m.value && a.escapeToClose && !a.saveButtonLoading && f(v.Escape);
51
46
  });
52
- const N = () => {
53
- const { closeOnClickOutside: c, saveButtonLoading: d } = r;
54
- c && !d ? v(g.Backdrop) : I();
47
+ const w = () => {
48
+ const { closeOnClickOutside: n, saveButtonLoading: o } = a;
49
+ n && !o ? f(v.Backdrop) : I();
55
50
  };
56
- return (c, d) => (o(), u(E, {
51
+ return (n, o) => (l(), s(T, {
57
52
  to: "body",
58
53
  disabled: !e.appendToBody
59
54
  }, [
60
- A(P, null, {
61
- default: i(() => [
62
- t(h) ? (o(), m("div", $, [
63
- y("div", s({
55
+ L(D, null, {
56
+ default: d(() => [
57
+ t(m) ? (l(), C("div", F, [
58
+ g("div", B({
64
59
  class: ["dialog", [`dialog--${e.size}`]]
65
- }, t(n)[t(a).WRAPPER]), [
66
- e.title || e.subtitle || e.showCloseButton ? (o(), m("header", s({
60
+ }, t(r)[t(i).WRAPPER]), [
61
+ e.title || e.subtitle || e.showCloseButton ? (l(), s(E, {
67
62
  key: 0,
68
- class: "header"
69
- }, t(n)[t(a).HEADER]), [
70
- y("div", F, [
71
- k(c.$slots, "header", {}, () => [
72
- e.title ? (o(), u(t(b), {
73
- key: 0,
74
- variant: "h3"
75
- }, {
76
- default: i(() => [
77
- f(B(e.title), 1)
78
- ]),
79
- _: 1
80
- })) : l("", !0),
81
- e.subtitle ? (o(), u(t(b), {
82
- key: 1,
83
- class: "subtitle",
84
- variant: "body1"
85
- }, {
86
- default: i(() => [
87
- f(B(e.subtitle), 1)
88
- ]),
89
- _: 1
90
- })) : l("", !0)
91
- ], !0)
63
+ title: e.title,
64
+ subtitle: e.subtitle,
65
+ "show-close-button": e.showCloseButton,
66
+ "disable-close-button": e.saveButtonLoading,
67
+ "test-id": e.testId,
68
+ onClose: o[0] || (o[0] = (y) => t(f)(t(v).CloseButton))
69
+ }, {
70
+ header: d(() => [
71
+ b(n.$slots, "header", {}, void 0, !0)
92
72
  ]),
93
- e.showCloseButton ? (o(), u(t(S), s({
94
- key: 0,
95
- class: "close-button",
96
- "icon-name": "x",
97
- disabled: e.saveButtonLoading
98
- }, t(n)[t(a).ACTION_CLOSE], {
99
- onClick: d[0] || (d[0] = (T) => t(v)(t(g).CloseButton))
100
- }), null, 16, ["disabled"])) : l("", !0)
101
- ], 16)) : l("", !0),
102
- y("div", s({
73
+ _: 3
74
+ }, 8, ["title", "subtitle", "show-close-button", "disable-close-button", "test-id"])) : u("", !0),
75
+ g("div", B({
103
76
  class: ["content", { "content--no-padding": e.noPadding }]
104
- }, t(n)[t(a).CONTENT]), [
105
- k(c.$slots, "default", {}, () => [
106
- e.content ? (o(), u(t(b), {
77
+ }, t(r)[t(i).CONTENT]), [
78
+ b(n.$slots, "default", {}, () => [
79
+ e.content ? (l(), s(t(N), {
107
80
  key: 0,
108
81
  variant: "body1"
109
82
  }, {
110
- default: i(() => [
111
- f(B(e.content), 1)
83
+ default: d(() => [
84
+ O(p(e.content), 1)
112
85
  ]),
113
86
  _: 1
114
- })) : l("", !0)
87
+ })) : u("", !0)
115
88
  ], !0)
116
89
  ], 16),
117
- e.showFooter ? (o(), m("footer", U, [
118
- y("div", s({ class: "action-buttons" }, t(n)[t(a).ACTION_BUTTONS_WRAPPER]), [
119
- k(c.$slots, "footer", {}, () => [
120
- e.showCancelButton ? (o(), u(t(O), s({
121
- key: 0,
122
- class: "form-action",
123
- variant: "outlined",
124
- color: e.cancelButtonColor,
125
- disabled: e.saveButtonLoading
126
- }, t(n)[t(a).CANCEL_BUTTON], {
127
- onClick: d[1] || (d[1] = (T) => C("cancel"))
128
- }), {
129
- default: i(() => [
130
- f(B(e.cancelButtonLabel), 1)
131
- ]),
132
- _: 1
133
- }, 16, ["color", "disabled"])) : l("", !0),
134
- e.showSaveButton ? (o(), u(t(O), s({
135
- key: 1,
136
- class: "form-action",
137
- loading: e.saveButtonLoading,
138
- color: e.saveButtonColor
139
- }, t(n)[t(a).SAVE_BUTTON], {
140
- onClick: d[2] || (d[2] = (T) => C("save"))
141
- }), {
142
- default: i(() => [
143
- f(B(e.saveButtonLabel), 1)
144
- ]),
145
- _: 1
146
- }, 16, ["loading", "color"])) : l("", !0)
147
- ], !0)
148
- ], 16)
149
- ])) : l("", !0)
90
+ e.showFooter ? (l(), s(A, {
91
+ key: 1,
92
+ "show-cancel-button": e.showCancelButton,
93
+ "show-save-button": e.showSaveButton,
94
+ "save-button-label": e.saveButtonLabel,
95
+ "save-button-loading": e.saveButtonLoading,
96
+ "save-button-color": e.saveButtonColor,
97
+ "cancel-button-label": e.cancelButtonLabel,
98
+ "cancel-button-color": e.cancelButtonColor,
99
+ "test-id": e.testId,
100
+ onSave: o[1] || (o[1] = (y) => c("save")),
101
+ onCancel: o[2] || (o[2] = (y) => c("cancel"))
102
+ }, {
103
+ footer: d(() => [
104
+ b(n.$slots, "footer", {}, void 0, !0)
105
+ ]),
106
+ _: 3
107
+ }, 8, ["show-cancel-button", "show-save-button", "save-button-label", "save-button-loading", "save-button-color", "cancel-button-label", "cancel-button-color", "test-id"])) : u("", !0)
150
108
  ], 16),
151
- e.showBackdrop ? (o(), m("div", s({
109
+ e.showBackdrop ? (l(), C("div", B({
152
110
  key: 0,
153
111
  class: "dialog-backdrop"
154
- }, t(n)[t(a).BACKDROP], { onClick: N }), null, 16)) : l("", !0)
155
- ])) : l("", !0)
112
+ }, t(r)[t(i).BACKDROP], { onClick: w }), null, 16)) : u("", !0)
113
+ ])) : u("", !0)
156
114
  ]),
157
115
  _: 3
158
116
  })
@@ -160,5 +118,5 @@ const $ = {
160
118
  }
161
119
  });
162
120
  export {
163
- Y as default
121
+ J as default
164
122
  };