@ironsource/shared-ui 2.1.12-test.52 → 2.1.12-test.53

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 (153) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  2. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  3. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
  4. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
  5. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  6. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
  8. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  9. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  10. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  11. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  12. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  13. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +1 -0
  14. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  15. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  16. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  17. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  18. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  19. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
  20. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  21. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
  22. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  23. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  24. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  25. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  26. package/components/chart/Chart.vue.d.ts +16 -1
  27. package/components/chart/Chart.vue.js +4 -4
  28. package/components/chart/Chart.vue2.js +38 -32
  29. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  30. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  31. package/components/chart/ChartPlane.vue.d.ts +10 -0
  32. package/components/chart/ChartPlane.vue.js +4 -4
  33. package/components/chart/ChartPlane.vue2.js +158 -147
  34. package/components/chart/ChartStoryArgs.d.ts +17 -0
  35. package/components/chart/ChartTooltip.vue.js +2 -2
  36. package/components/chart/ChartTooltip.vue2.js +6 -6
  37. package/components/chart/TooltipHeader.vue.js +3 -3
  38. package/components/chart/TooltipHeader.vue2.js +25 -26
  39. package/components/chart/colorPalette.d.ts +2 -1
  40. package/components/chart/colorPalette.js +47 -33
  41. package/components/chart/composables/useColorsMap.d.ts +3 -1
  42. package/components/chart/composables/useColorsMap.js +32 -30
  43. package/components/chart/consts.d.ts +5 -1
  44. package/components/chart/consts.js +30 -26
  45. package/components/chart/index.d.ts +58 -1
  46. package/components/chart/mockData.d.ts +15 -0
  47. package/components/chart/types.d.ts +3 -1
  48. package/components/chart/types.js +5 -5
  49. package/components/chart/utils/utils.d.ts +1 -1
  50. package/components/chart/utils/utils.js +18 -13
  51. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  52. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  53. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  54. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  55. package/components/columnPicker/OptionChip.vue.js +7 -0
  56. package/components/columnPicker/OptionChip.vue2.js +46 -0
  57. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  58. package/components/columnPicker/RemoveButton.vue.js +7 -0
  59. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  60. package/components/columnPicker/index.d.ts +388 -0
  61. package/components/columnPicker/index.js +6 -0
  62. package/components/columnPicker/mockData.d.ts +8 -0
  63. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  64. package/components/dialog/v3/index.d.ts +46 -46
  65. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  66. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  67. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  68. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  69. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  70. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  71. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  72. package/components/dialog/v4/DialogV4.vue.js +3 -3
  73. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  74. package/components/dialog/v4/index.d.ts +157 -157
  75. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  76. package/components/dropdown/v3/index.d.ts +20 -20
  77. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  78. package/components/dropdown/v4/ConditionalDropdown.vue2.js +176 -171
  79. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  80. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  81. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  82. package/components/dropdown/v4/index.d.ts +20 -1
  83. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  84. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  85. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  86. package/components/includeExclude/index.d.ts +70 -70
  87. package/components/input/v4/TextField.vue.d.ts +12 -0
  88. package/components/input/v4/TextField.vue.js +3 -3
  89. package/components/input/v4/TextField.vue2.js +129 -105
  90. package/components/input/v4/index.d.ts +46 -2
  91. package/components/link/Link.vue.d.ts +20 -0
  92. package/components/link/Link.vue.js +2 -2
  93. package/components/link/Link.vue2.js +35 -21
  94. package/components/link/index.d.ts +77 -1
  95. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  96. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  97. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  98. package/components/radioButton/v3/index.d.ts +20 -1
  99. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  100. package/components/sortableList/SortableItem.vue.js +3 -3
  101. package/components/sortableList/SortableItem.vue2.js +86 -70
  102. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  103. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  104. package/components/sortableList/SortableList.types.d.ts +1 -0
  105. package/components/sortableList/SortableList.vue.d.ts +10 -0
  106. package/components/sortableList/SortableList.vue.js +3 -3
  107. package/components/sortableList/SortableList.vue2.js +104 -96
  108. package/components/sortableList/composables/useHoverEffect.js +1 -1
  109. package/components/sortableList/index.d.ts +39 -1
  110. package/components/table/v4/DataGrid.vue.d.ts +4 -4
  111. package/components/table/v4/DataGrid.vue.js +3 -3
  112. package/components/table/v4/DataGrid.vue2.js +237 -245
  113. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  114. package/components/table/v4/DataGridHeader.vue.js +7 -0
  115. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  116. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  117. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
  119. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  120. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  121. package/components/table/v4/index.d.ts +552 -305
  122. package/components/table/v4/index.js +7 -4
  123. package/components/table/v4/storyUtils.d.ts +25 -0
  124. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  125. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  126. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  127. package/components/tooltip/v4/index.d.ts +20 -1
  128. package/index.d.ts +2153 -1419
  129. package/index.js +99 -95
  130. package/package.json +5 -1
  131. package/testids/index.d.ts +7 -1
  132. package/testids/index.js +26 -25
  133. package/utils/date.js +3 -3
  134. package/utils/formatNumbers.d.ts +1 -1
  135. package/utils/formatNumbers.js +38 -21
  136. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  137. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  138. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  139. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +0 -1
  140. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  141. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
  142. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  143. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  144. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +0 -1
  145. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  146. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  147. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  148. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  149. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  150. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  151. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  152. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +0 -1
  153. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
@@ -0,0 +1,78 @@
1
+ import { ButtonColor } from '@/components/button/common/consts';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ showCancelButton?: boolean;
4
+ showSaveButton?: boolean;
5
+ saveButtonLabel?: string;
6
+ saveButtonLoading?: boolean;
7
+ saveButtonColor?: ButtonColor;
8
+ cancelButtonLabel?: string;
9
+ cancelButtonColor?: string;
10
+ testId: string;
11
+ }>, {
12
+ showCancelButton: boolean;
13
+ showSaveButton: boolean;
14
+ saveButtonLabel: string;
15
+ saveButtonLoading: boolean;
16
+ saveButtonColor: string;
17
+ cancelButtonLabel: string;
18
+ cancelButtonColor: string;
19
+ testId: string;
20
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ save: () => void;
22
+ cancel: () => void;
23
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
+ showCancelButton?: boolean;
25
+ showSaveButton?: boolean;
26
+ saveButtonLabel?: string;
27
+ saveButtonLoading?: boolean;
28
+ saveButtonColor?: ButtonColor;
29
+ cancelButtonLabel?: string;
30
+ cancelButtonColor?: string;
31
+ testId: string;
32
+ }>, {
33
+ showCancelButton: boolean;
34
+ showSaveButton: boolean;
35
+ saveButtonLabel: string;
36
+ saveButtonLoading: boolean;
37
+ saveButtonColor: string;
38
+ cancelButtonLabel: string;
39
+ cancelButtonColor: string;
40
+ testId: string;
41
+ }>>> & {
42
+ onCancel?: () => any;
43
+ onSave?: () => any;
44
+ }, {
45
+ testId: string;
46
+ showCancelButton: boolean;
47
+ showSaveButton: boolean;
48
+ saveButtonLabel: string;
49
+ saveButtonLoading: boolean;
50
+ saveButtonColor: ButtonColor;
51
+ cancelButtonLabel: string;
52
+ cancelButtonColor: string;
53
+ }>, {
54
+ footer?(_: {}): any;
55
+ }>;
56
+ export default _default;
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToRuntimeProps<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
66
+ type __VLS_WithDefaults<P, D> = {
67
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
68
+ default: D[K];
69
+ }> : P[K];
70
+ };
71
+ type __VLS_Prettify<T> = {
72
+ [K in keyof T]: T[K];
73
+ } & {};
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./DialogFooter.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8b7f64fe"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -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
  };