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

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 (103) hide show
  1. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  2. package/DataGrid.vue_vue_type_style_index_0_scoped_36ec94a7_lang.css +1 -0
  3. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  4. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  5. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  6. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  7. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  8. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  9. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  10. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  11. package/RadioButton.vue_vue_type_style_index_0_scoped_1da367f8_lang.css +1 -0
  12. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  13. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
  14. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  15. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
  16. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +1 -0
  17. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  18. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/components/chart/TooltipHeader.vue.js +2 -2
  20. package/components/chart/TooltipHeader.vue2.js +21 -20
  21. package/components/chart/utils/utils.js +14 -13
  22. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  23. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  24. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  25. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  26. package/components/columnPicker/OptionChip.vue.js +7 -0
  27. package/components/columnPicker/OptionChip.vue2.js +46 -0
  28. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  29. package/components/columnPicker/RemoveButton.vue.js +7 -0
  30. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  31. package/components/columnPicker/index.d.ts +388 -0
  32. package/components/columnPicker/index.js +6 -0
  33. package/components/columnPicker/mockData.d.ts +8 -0
  34. package/components/dateRange/common/DateRange.common.js +60 -60
  35. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  36. package/components/dialog/v3/index.d.ts +46 -46
  37. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  38. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  39. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  40. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  41. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  42. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  43. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  44. package/components/dialog/v4/DialogV4.vue.js +3 -3
  45. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  46. package/components/dialog/v4/index.d.ts +157 -157
  47. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  48. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  49. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  50. package/components/dropdown/v4/index.d.ts +20 -1
  51. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  52. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  53. package/components/radioButton/v3/RadioButton.vue2.js +32 -31
  54. package/components/radioButton/v3/index.d.ts +20 -1
  55. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  56. package/components/sortableList/SortableItem.vue.js +3 -3
  57. package/components/sortableList/SortableItem.vue2.js +86 -70
  58. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  59. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  60. package/components/sortableList/SortableList.types.d.ts +1 -0
  61. package/components/sortableList/SortableList.vue.d.ts +10 -0
  62. package/components/sortableList/SortableList.vue.js +3 -3
  63. package/components/sortableList/SortableList.vue2.js +104 -96
  64. package/components/sortableList/composables/useHoverEffect.js +1 -1
  65. package/components/sortableList/index.d.ts +39 -1
  66. package/components/table/v4/DataGrid.vue.d.ts +4 -4
  67. package/components/table/v4/DataGrid.vue.js +3 -3
  68. package/components/table/v4/DataGrid.vue2.js +237 -245
  69. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  70. package/components/table/v4/DataGridHeader.vue.js +7 -0
  71. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  72. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  73. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  74. package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
  75. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  76. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  77. package/components/table/v4/index.d.ts +552 -305
  78. package/components/table/v4/index.js +7 -4
  79. package/components/table/v4/storyUtils.d.ts +25 -0
  80. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  81. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  82. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  83. package/components/tooltip/v4/index.d.ts +20 -1
  84. package/index.d.ts +2030 -1384
  85. package/index.js +99 -95
  86. package/package.json +5 -1
  87. package/testids/index.d.ts +4 -0
  88. package/testids/index.js +29 -28
  89. package/utils/date.d.ts +1 -0
  90. package/utils/date.js +9 -0
  91. package/utils/formatNumbers.d.ts +1 -1
  92. package/utils/formatNumbers.js +38 -21
  93. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
  94. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  95. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  96. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  97. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  98. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  99. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  100. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  101. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  102. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
  103. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_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
  };