@ironsource/shared-ui 2.1.12-test.98 → 2.1.12

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 (248) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
  11. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  12. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  13. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  14. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  15. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  16. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  21. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  22. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_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/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  26. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  27. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  28. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  29. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  30. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_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_9aec4e9b_lang.css +1 -0
  34. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  35. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  36. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  37. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  38. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  39. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  40. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  41. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  42. package/components/chart/Chart.vue.d.ts +21 -1
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +130 -114
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +49 -44
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  50. package/components/chart/ChartHeaderTrend.vue2.js +43 -39
  51. package/components/chart/ChartLegend.vue.d.ts +5 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +76 -71
  54. package/components/chart/ChartPlane.vue.d.ts +15 -0
  55. package/components/chart/ChartPlane.vue.js +5 -5
  56. package/components/chart/ChartPlane.vue2.js +173 -156
  57. package/components/chart/ChartStoryArgs.d.ts +17 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +39 -35
  61. package/components/chart/LegendSorting.vue.d.ts +5 -0
  62. package/components/chart/LegendSorting.vue.js +16 -14
  63. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  64. package/components/chart/SettingsHeader.vue.js +3 -3
  65. package/components/chart/SettingsHeader.vue2.js +36 -29
  66. package/components/chart/TooltipHeader.vue.js +3 -3
  67. package/components/chart/TooltipHeader.vue2.js +26 -26
  68. package/components/chart/colorPalette.d.ts +2 -1
  69. package/components/chart/colorPalette.js +47 -33
  70. package/components/chart/composables/useColorsMap.d.ts +3 -1
  71. package/components/chart/composables/useColorsMap.js +32 -30
  72. package/components/chart/consts.d.ts +5 -1
  73. package/components/chart/consts.js +30 -26
  74. package/components/chart/index.d.ts +77 -1
  75. package/components/chart/mockData.d.ts +15 -0
  76. package/components/chart/types.d.ts +3 -1
  77. package/components/chart/types.js +5 -5
  78. package/components/chart/utils/utils.d.ts +1 -1
  79. package/components/chart/utils/utils.js +20 -14
  80. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  81. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  82. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  83. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  84. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  85. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  86. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  87. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  88. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  89. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  90. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  91. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  92. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  93. package/components/columnConfigurator/consts.d.ts +1 -0
  94. package/components/columnConfigurator/consts.js +4 -0
  95. package/components/columnConfigurator/index.d.ts +73 -0
  96. package/components/columnConfigurator/index.js +6 -0
  97. package/components/columnConfigurator/mockData.d.ts +30 -0
  98. package/components/columnConfigurator/utils.d.ts +2 -0
  99. package/components/columnConfigurator/utils.js +18 -0
  100. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  101. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  102. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  103. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  104. package/components/columnPicker/OptionChip.vue.js +7 -0
  105. package/components/columnPicker/OptionChip.vue2.js +46 -0
  106. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  107. package/components/columnPicker/RemoveButton.vue.js +7 -0
  108. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  109. package/components/columnPicker/index.d.ts +388 -0
  110. package/components/columnPicker/index.js +6 -0
  111. package/components/columnPicker/mockData.d.ts +8 -0
  112. package/components/dateRange/common/DateRange.common.js +60 -60
  113. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  114. package/components/dialog/v3/index.d.ts +46 -46
  115. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  116. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  117. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  118. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  119. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  120. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  121. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  122. package/components/dialog/v4/DialogV4.vue.js +3 -3
  123. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  124. package/components/dialog/v4/index.d.ts +157 -157
  125. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  126. package/components/dropdown/v3/index.d.ts +20 -20
  127. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  128. package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
  129. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  130. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  131. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  133. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  134. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  138. package/components/dropdown/v4/index.d.ts +81 -3
  139. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  140. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  141. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  142. package/components/emptyState/v4/index.d.ts +20 -1
  143. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  144. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  145. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  146. package/components/includeExclude/index.d.ts +70 -70
  147. package/components/input/v4/TextField.vue.d.ts +12 -0
  148. package/components/input/v4/TextField.vue.js +3 -3
  149. package/components/input/v4/TextField.vue2.js +129 -105
  150. package/components/input/v4/index.d.ts +46 -2
  151. package/components/link/Link.vue.d.ts +95 -0
  152. package/components/link/Link.vue.js +7 -0
  153. package/components/link/Link.vue2.js +65 -0
  154. package/components/link/index.d.ts +296 -0
  155. package/components/link/index.js +6 -0
  156. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  157. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  158. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  159. package/components/radioButton/v3/index.d.ts +20 -1
  160. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  161. package/components/sortableList/LoaderBars.vue.js +7 -0
  162. package/components/sortableList/LoaderBars.vue2.js +25 -0
  163. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  164. package/components/sortableList/SortableItem.vue.js +5 -5
  165. package/components/sortableList/SortableItem.vue2.js +86 -70
  166. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  167. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  168. package/components/sortableList/SortableList.types.d.ts +1 -0
  169. package/components/sortableList/SortableList.vue.d.ts +12 -2
  170. package/components/sortableList/SortableList.vue.js +5 -5
  171. package/components/sortableList/SortableList.vue2.js +111 -113
  172. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  173. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  174. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  175. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  176. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  177. package/components/sortableList/composables/useHoverEffect.js +1 -1
  178. package/components/sortableList/consts.d.ts +2 -0
  179. package/components/sortableList/consts.js +4 -2
  180. package/components/sortableList/index.d.ts +77 -39
  181. package/components/table/common/consts.d.ts +2 -0
  182. package/components/table/common/consts.js +6 -4
  183. package/components/table/v4/DataGrid.vue.d.ts +12 -7
  184. package/components/table/v4/DataGrid.vue.js +4 -4
  185. package/components/table/v4/DataGrid.vue2.js +273 -268
  186. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  187. package/components/table/v4/DataGridContainer.vue.js +7 -0
  188. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  189. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  190. package/components/table/v4/DataGridHeader.vue.js +7 -0
  191. package/components/table/v4/DataGridHeader.vue2.js +84 -0
  192. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  193. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  194. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  195. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  196. package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
  197. package/components/table/v4/index.d.ts +646 -332
  198. package/components/table/v4/index.js +11 -5
  199. package/components/table/v4/storyUtils.d.ts +25 -0
  200. package/components/tagsField/TagsField.types.d.ts +4 -0
  201. package/components/tagsField/TagsField.vue.d.ts +65 -0
  202. package/components/tagsField/TagsField.vue.js +7 -0
  203. package/components/tagsField/TagsField.vue2.js +90 -0
  204. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  205. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  206. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  207. package/components/tagsField/consts.d.ts +1 -0
  208. package/components/tagsField/consts.js +4 -0
  209. package/components/tagsField/index.d.ts +75 -0
  210. package/components/tagsField/index.js +6 -0
  211. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  212. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  213. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  214. package/components/tooltip/v4/index.d.ts +20 -1
  215. package/index.d.ts +2675 -1649
  216. package/index.js +137 -121
  217. package/package.json +18 -1
  218. package/testids/index.d.ts +47 -1
  219. package/testids/index.js +40 -32
  220. package/utils/date.d.ts +1 -0
  221. package/utils/date.js +9 -0
  222. package/utils/formatNumbers.d.ts +1 -1
  223. package/utils/formatNumbers.js +38 -21
  224. package/utils/object.d.ts +2 -0
  225. package/utils/object.js +9 -5
  226. package/utils/search.js +1 -1
  227. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  228. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  229. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  230. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  231. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  232. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  233. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  234. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
  235. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  236. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  237. package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
  238. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  239. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  240. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  241. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  242. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  243. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  244. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  245. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  246. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
  247. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
  248. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -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
+ };
@@ -104,30 +104,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
104
104
  "onUpdate:modelValue"?: (value: boolean) => any;
105
105
  onClose?: (reason: Reason) => any;
106
106
  onCancel?: () => any;
107
- onOpen?: () => any;
108
107
  onSave?: () => any;
108
+ onOpen?: () => any;
109
109
  }, {
110
110
  title: string;
111
111
  testId: string;
112
112
  size: "small" | "medium" | "extraSmall";
113
113
  content: string;
114
114
  subtitle: string;
115
- appendToBody: boolean;
116
- closeDelay: number;
117
- openDelay: number;
118
- escapeToClose: boolean;
119
- showBackdrop: boolean;
120
- closeOnClickOutside: boolean;
121
- beforeClose: (show: () => void) => void;
122
115
  showCloseButton: boolean;
123
116
  showCancelButton: boolean;
124
117
  showSaveButton: boolean;
125
- showFooter: boolean;
126
118
  saveButtonLabel: string;
127
119
  saveButtonLoading: boolean;
128
120
  saveButtonColor: ButtonColor;
129
121
  cancelButtonLabel: string;
130
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;
131
131
  noPadding: boolean;
132
132
  }>, {
133
133
  header?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./DialogV4.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-eb226e31"]]);
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
- p as default
6
+ t as default
7
7
  };
@@ -1,22 +1,17 @@
1
- import "../../../DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_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
  };