@ironsource/shared-ui 2.1.6-rc.4 → 2.1.6-rc.40

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 (149) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
  4. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
  5. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  6. package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
  8. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
  9. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  10. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  11. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
  12. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  13. package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
  14. package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
  15. package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
  16. package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
  17. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
  19. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
  20. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  21. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  22. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  23. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
  24. package/components/alert/Alert.vue.d.ts +7 -0
  25. package/components/alert/Alert.vue.js +3 -3
  26. package/components/alert/Alert.vue2.js +44 -40
  27. package/components/alert/index.d.ts +27 -2
  28. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  29. package/components/appHeader/AppHeader.vue.js +2 -2
  30. package/components/appHeader/AppHeader.vue2.js +30 -28
  31. package/components/appHeader/index.d.ts +6 -2
  32. package/components/autocomplete/Autocomplete.vue.d.ts +6 -0
  33. package/components/autocomplete/Autocomplete.vue.js +2 -2
  34. package/components/autocomplete/Autocomplete.vue2.js +45 -37
  35. package/components/autocomplete/index.d.ts +21 -1
  36. package/components/button/v4/ButtonV4.vue.d.ts +7 -7
  37. package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
  38. package/components/button/v4/index.d.ts +61 -61
  39. package/components/chip/v4/Chip.types.d.ts +6 -0
  40. package/components/chip/v4/ChipV4.vue.d.ts +28 -35
  41. package/components/chip/v4/ChipV4.vue.js +3 -3
  42. package/components/chip/v4/ChipV4.vue2.js +28 -59
  43. package/components/chip/v4/index.d.ts +45 -148
  44. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  45. package/components/dialog/v3/index.d.ts +20 -20
  46. package/components/dialog/v4/DialogV4.vue.js +3 -3
  47. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  48. package/components/dropdown/common/Dropdown.common.js +74 -69
  49. package/components/dropdown/common/Option.common.d.ts +1 -1
  50. package/components/dropdown/common/Option.common.js +9 -9
  51. package/components/dropdown/composables/useChildOptions.d.ts +7 -0
  52. package/components/dropdown/composables/useChildOptions.js +14 -0
  53. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  54. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  55. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  56. package/components/dropdown/v3/index.d.ts +13 -1
  57. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +16 -3
  58. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  59. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
  60. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  61. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  62. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
  63. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  64. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
  65. package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -3
  66. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  67. package/components/dropdown/v4/DropdownV4.vue2.js +127 -114
  68. package/components/dropdown/v4/OptionV4.vue.d.ts +14 -3
  69. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  70. package/components/dropdown/v4/OptionV4.vue2.js +79 -56
  71. package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
  72. package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
  73. package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
  74. package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
  75. package/components/dropdown/v4/index.d.ts +422 -38
  76. package/components/dropdown/v4/index.js +7 -4
  77. package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
  78. package/components/emptyState/v3/index.d.ts +47 -47
  79. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  80. package/components/emptyState/v4/index.d.ts +7 -7
  81. package/components/forms/FormCard.vue.js +2 -2
  82. package/components/forms/FormCard.vue2.js +9 -9
  83. package/components/icon/v4/Icon.types.d.ts +1 -1
  84. package/components/icon/v4/IconV4.vue.d.ts +16 -6
  85. package/components/icon/v4/IconV4.vue.js +4 -4
  86. package/components/icon/v4/IconV4.vue2.js +36 -33
  87. package/components/icon/v4/index.d.ts +53 -15
  88. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  89. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  90. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  91. package/components/inlineCopy/index.d.ts +6 -2
  92. package/components/input/v4/TextField.vue.d.ts +5 -0
  93. package/components/input/v4/TextField.vue.js +3 -3
  94. package/components/input/v4/TextField.vue2.js +24 -21
  95. package/components/input/v4/index.d.ts +20 -1
  96. package/components/layout/FoldableSection.vue.js +5 -5
  97. package/components/layout/FoldableSection.vue2.js +1 -1
  98. package/components/multibar/MultiBarMenu.vue2.js +12 -11
  99. package/components/shared/FieldLabel.vue.js +3 -3
  100. package/components/shared/FieldLabel.vue2.js +9 -9
  101. package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
  102. package/components/table/common/Table.common.d.ts +1 -0
  103. package/components/table/common/Table.common.js +65 -61
  104. package/components/table/v4/DataGrid.vue.d.ts +9 -1
  105. package/components/table/v4/DataGrid.vue.js +3 -3
  106. package/components/table/v4/DataGrid.vue2.js +180 -176
  107. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  108. package/components/table/v4/HelpIcon.vue.js +5 -5
  109. package/components/table/v4/HelpIcon.vue2.js +5 -5
  110. package/components/table/v4/index.d.ts +29 -5
  111. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  112. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  113. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  114. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  115. package/components/toggle/v4/ToggleV4.vue2.js +12 -12
  116. package/components/toggle/v4/index.d.ts +20 -20
  117. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  118. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  119. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  120. package/components/tooltip/v4/index.d.ts +17 -5
  121. package/composables/useFormValidation.js +19 -13
  122. package/design-foundation.stories/icons/iconsData.d.ts +5 -1
  123. package/index.d.ts +1451 -688
  124. package/mocks/apps.d.ts +1 -0
  125. package/mocks/options.d.ts +12 -0
  126. package/package.json +1 -1
  127. package/utils/text.d.ts +1 -0
  128. package/utils/text.js +9 -0
  129. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
  130. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  131. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  132. package/Autocomplete.vue_vue_type_style_index_0_scoped_62faa8e0_lang.css +0 -1
  133. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  134. package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
  135. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  136. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
  137. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  138. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  139. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  140. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  141. package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
  142. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
  143. package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
  144. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  145. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  146. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
  147. package/TextField.vue_vue_type_style_index_0_scoped_07687bcc_lang.css +0 -1
  148. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
  149. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
@@ -1,165 +1,62 @@
1
- declare const ChipTypes: () => ({
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{
6
- disabled: boolean;
7
- testId: string;
8
- selected: boolean;
9
- prefix: string;
10
- clearable: boolean;
11
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
- disabled: {
13
- type: import("vue").PropType<boolean>;
14
- default: boolean;
15
- };
16
- testId: {
17
- type: import("vue").PropType<string>;
18
- default: string;
19
- };
20
- selected: {
21
- type: import("vue").PropType<boolean>;
22
- default: boolean;
23
- };
24
- prefix: {
25
- type: import("vue").PropType<string>;
26
- default: any;
27
- };
28
- clearable: {
29
- type: import("vue").PropType<boolean>;
30
- default: boolean;
31
- };
32
- }>> & {
33
- onCleared?: (...args: any[]) => any;
34
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "testId" | "selected" | "prefix" | "clearable">;
35
- $attrs: {
36
- [x: string]: unknown;
37
- };
38
- $refs: {
39
- [x: string]: unknown;
40
- };
41
- $slots: Readonly<{
42
- [name: string]: import("vue").Slot;
43
- }>;
44
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
45
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
46
- $emit: (event: "cleared", ...args: any[]) => void;
47
- $el: any;
48
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
49
- disabled: {
50
- type: import("vue").PropType<boolean>;
51
- default: boolean;
52
- };
53
- testId: {
54
- type: import("vue").PropType<string>;
55
- default: string;
56
- };
57
- selected: {
58
- type: import("vue").PropType<boolean>;
59
- default: boolean;
60
- };
61
- prefix: {
62
- type: import("vue").PropType<string>;
63
- default: any;
64
- };
65
- clearable: {
66
- type: import("vue").PropType<boolean>;
67
- default: boolean;
68
- };
69
- }>> & {
70
- onCleared?: (...args: any[]) => any;
71
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
72
- cleared: (...args: any[]) => void;
73
- }, string, {
74
- disabled: boolean;
75
- testId: string;
76
- selected: boolean;
77
- prefix: string;
78
- clearable: boolean;
79
- }, {}, string> & {
80
- beforeCreate?: (() => void) | (() => void)[];
81
- created?: (() => void) | (() => void)[];
82
- beforeMount?: (() => void) | (() => void)[];
83
- mounted?: (() => void) | (() => void)[];
84
- beforeUpdate?: (() => void) | (() => void)[];
85
- updated?: (() => void) | (() => void)[];
86
- activated?: (() => void) | (() => void)[];
87
- deactivated?: (() => void) | (() => void)[];
88
- beforeDestroy?: (() => void) | (() => void)[];
89
- beforeUnmount?: (() => void) | (() => void)[];
90
- destroyed?: (() => void) | (() => void)[];
91
- unmounted?: (() => void) | (() => void)[];
92
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
93
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
94
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
95
- };
96
- $forceUpdate: () => void;
97
- $nextTick: typeof import("vue").nextTick;
98
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
99
- } & Readonly<import("vue").ExtractPropTypes<{
100
- disabled: {
101
- type: import("vue").PropType<boolean>;
102
- default: boolean;
103
- };
104
- testId: {
105
- type: import("vue").PropType<string>;
106
- default: string;
107
- };
108
- selected: {
109
- type: import("vue").PropType<boolean>;
110
- default: boolean;
111
- };
112
- prefix: {
113
- type: import("vue").PropType<string>;
114
- default: any;
115
- };
116
- clearable: {
117
- type: import("vue").PropType<boolean>;
118
- default: boolean;
119
- };
120
- }>> & {
121
- onCleared?: (...args: any[]) => any;
122
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
123
- __isFragment?: never;
124
- __isTeleport?: never;
125
- __isSuspense?: never;
126
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
1
+ declare const ChipTypes: () => import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ required: true;
5
+ default: string;
6
+ };
7
+ variant: {
8
+ type: import("vue").PropType<"filled" | "outlined">;
9
+ default: string;
10
+ };
127
11
  disabled: {
128
12
  type: import("vue").PropType<boolean>;
129
13
  default: boolean;
130
14
  };
15
+ color: {
16
+ type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
17
+ default: string;
18
+ };
19
+ size: {
20
+ type: import("vue").PropType<"small" | "medium">;
21
+ default: string;
22
+ };
131
23
  testId: {
132
24
  type: import("vue").PropType<string>;
133
25
  default: string;
134
26
  };
135
- selected: {
136
- type: import("vue").PropType<boolean>;
137
- default: boolean;
138
- };
139
- prefix: {
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ label: {
140
29
  type: import("vue").PropType<string>;
141
- default: any;
30
+ required: true;
31
+ default: string;
142
32
  };
143
- clearable: {
33
+ variant: {
34
+ type: import("vue").PropType<"filled" | "outlined">;
35
+ default: string;
36
+ };
37
+ disabled: {
144
38
  type: import("vue").PropType<boolean>;
145
39
  default: boolean;
146
40
  };
147
- }>> & {
148
- onCleared?: (...args: any[]) => any;
149
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
150
- cleared: (...args: any[]) => void;
151
- }, string, {
41
+ color: {
42
+ type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
43
+ default: string;
44
+ };
45
+ size: {
46
+ type: import("vue").PropType<"small" | "medium">;
47
+ default: string;
48
+ };
49
+ testId: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ }>>, {
54
+ label: string;
55
+ variant: "filled" | "outlined";
152
56
  disabled: boolean;
57
+ color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
58
+ size: "small" | "medium";
153
59
  testId: string;
154
- selected: boolean;
155
- prefix: string;
156
- clearable: boolean;
157
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
158
- $slots: {
159
- "icon-start"?(_: {}): any;
160
- default?(_: {}): any;
161
- "icon-end"?(_: {}): any;
162
- };
163
- }))[];
60
+ }>[];
164
61
  export { default as Chip } from './ChipV4.vue';
165
62
  export { ChipTypes };
@@ -72,8 +72,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
72
72
  }, {
73
73
  title: string;
74
74
  themeClass: string;
75
- content: string;
76
75
  width: string | number;
76
+ content: string;
77
77
  testId: string;
78
78
  appendToBody: boolean;
79
79
  closeDelay: number;
@@ -5,8 +5,8 @@ declare const DialogTypes: () => ({
5
5
  $props: Partial<{
6
6
  title: string;
7
7
  themeClass: string;
8
- content: string;
9
8
  width: string | number;
9
+ content: string;
10
10
  testId: string;
11
11
  appendToBody: boolean;
12
12
  closeDelay: number;
@@ -26,14 +26,14 @@ declare const DialogTypes: () => ({
26
26
  type: import("vue").PropType<string>;
27
27
  default: string;
28
28
  };
29
- content: {
30
- type: import("vue").PropType<string>;
31
- default: any;
32
- };
33
29
  width: {
34
30
  type: import("vue").PropType<string | number>;
35
31
  default: string;
36
32
  };
33
+ content: {
34
+ type: import("vue").PropType<string>;
35
+ default: any;
36
+ };
37
37
  testId: {
38
38
  type: import("vue").PropType<string>;
39
39
  default: string;
@@ -82,7 +82,7 @@ declare const DialogTypes: () => ({
82
82
  onClose?: (reason: import("../common/Reason").Reason) => any;
83
83
  "onUpdate:modelValue"?: (value: boolean) => any;
84
84
  onOpen?: () => any;
85
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "content" | "width" | "testId" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "headerBorder" | "closeOnClickOutside" | "beforeClose" | "showCloseButton">;
85
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "width" | "content" | "testId" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "headerBorder" | "closeOnClickOutside" | "beforeClose" | "showCloseButton">;
86
86
  $attrs: {
87
87
  [x: string]: unknown;
88
88
  };
@@ -105,14 +105,14 @@ declare const DialogTypes: () => ({
105
105
  type: import("vue").PropType<string>;
106
106
  default: string;
107
107
  };
108
- content: {
109
- type: import("vue").PropType<string>;
110
- default: any;
111
- };
112
108
  width: {
113
109
  type: import("vue").PropType<string | number>;
114
110
  default: string;
115
111
  };
112
+ content: {
113
+ type: import("vue").PropType<string>;
114
+ default: any;
115
+ };
116
116
  testId: {
117
117
  type: import("vue").PropType<string>;
118
118
  default: string;
@@ -168,8 +168,8 @@ declare const DialogTypes: () => ({
168
168
  }, string, {
169
169
  title: string;
170
170
  themeClass: string;
171
- content: string;
172
171
  width: string | number;
172
+ content: string;
173
173
  testId: string;
174
174
  appendToBody: boolean;
175
175
  closeDelay: number;
@@ -209,14 +209,14 @@ declare const DialogTypes: () => ({
209
209
  type: import("vue").PropType<string>;
210
210
  default: string;
211
211
  };
212
- content: {
213
- type: import("vue").PropType<string>;
214
- default: any;
215
- };
216
212
  width: {
217
213
  type: import("vue").PropType<string | number>;
218
214
  default: string;
219
215
  };
216
+ content: {
217
+ type: import("vue").PropType<string>;
218
+ default: any;
219
+ };
220
220
  testId: {
221
221
  type: import("vue").PropType<string>;
222
222
  default: string;
@@ -278,14 +278,14 @@ declare const DialogTypes: () => ({
278
278
  type: import("vue").PropType<string>;
279
279
  default: string;
280
280
  };
281
- content: {
282
- type: import("vue").PropType<string>;
283
- default: any;
284
- };
285
281
  width: {
286
282
  type: import("vue").PropType<string | number>;
287
283
  default: string;
288
284
  };
285
+ content: {
286
+ type: import("vue").PropType<string>;
287
+ default: any;
288
+ };
289
289
  testId: {
290
290
  type: import("vue").PropType<string>;
291
291
  default: string;
@@ -341,8 +341,8 @@ declare const DialogTypes: () => ({
341
341
  }, string, {
342
342
  title: string;
343
343
  themeClass: string;
344
- content: string;
345
344
  width: string | number;
345
+ content: string;
346
346
  testId: string;
347
347
  appendToBody: boolean;
348
348
  closeDelay: number;
@@ -1,7 +1,7 @@
1
1
  import o from "./DialogV4.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css"; //*');
4
- const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c3004ba3"]]);
3
+ // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; //*');
4
+ const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-09c488cf"]]);
5
5
  export {
6
- a as default
6
+ t as default
7
7
  };
@@ -1,20 +1,20 @@
1
- import "../../../DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css"; import { defineComponent as A, openBlock as o, createBlock as i, Teleport as w, createVNode as T, Transition as p, withCtx as d, unref as e, createElementBlock as f, createElementVNode as m, mergeProps as s, renderSlot as b, createTextVNode as r, toDisplayString as c, createCommentVNode as u } from "vue";
2
- import { NOOP as I } from "@vue/shared";
3
- import g from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; import { defineComponent as A, openBlock as o, createBlock as c, Teleport as w, createVNode as b, Transition as I, withCtx as u, unref as e, createElementBlock as m, createElementVNode as C, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as d } from "vue";
2
+ import { NOOP as V } from "@vue/shared";
3
+ import T from "../../typography/v4/Typography.vue.js";
4
4
  import N from "../../button/v4/ButtonV4.vue.js";
5
- import L from "../../button/v4/IconButtonV4.vue.js";
6
- import { Reason as O } from "../common/Reason.js";
7
- import { dialogCommon as V } from "../common/Dialog.common.js";
5
+ import p from "../../button/v4/IconButtonV4.vue.js";
6
+ import { Reason as g } from "../common/Reason.js";
7
+ import { dialogCommon as D } from "../common/Dialog.common.js";
8
8
  import { DialogTestIdModifiers as l } from "../../../testids/index.js";
9
- import { useTestIdAttrs as $ } from "../../../utils/testIds.js";
10
- import { useMagicKeys as D, whenever as P } from "@vueuse/core";
11
- const R = {
9
+ import { useTestIdAttrs as P } from "../../../utils/testIds.js";
10
+ import { useMagicKeys as R, whenever as $ } from "@vueuse/core";
11
+ const S = {
12
12
  key: 0,
13
13
  class: "container light-theme-v4"
14
- }, S = { class: "title" }, F = {
14
+ }, F = { class: "title" }, U = {
15
15
  key: 1,
16
16
  class: "footer"
17
- }, J = /* @__PURE__ */ A({
17
+ }, Q = /* @__PURE__ */ A({
18
18
  __name: "DialogV4",
19
19
  props: {
20
20
  modelValue: { type: Boolean },
@@ -39,106 +39,111 @@ const R = {
39
39
  testId: { default: "" }
40
40
  },
41
41
  emits: ["update:modelValue", "open", "close", "save", "cancel"],
42
- setup(t, { emit: B }) {
43
- const C = t, { escape: E } = D(), a = $(C.testId, l), { visible: h, handleClose: y } = V(C, B);
44
- return P(E, () => {
45
- h.value && C.escapeToClose && y(O.Escape);
46
- }), (v, n) => (o(), i(w, {
42
+ setup(t, { emit: v }) {
43
+ const i = t, { escape: L } = R(), a = P(i.testId, l), { visible: h, handleClose: y } = D(i, v);
44
+ $(L, () => {
45
+ h.value && i.escapeToClose && !i.saveButtonLoading && y(g.Escape);
46
+ });
47
+ const E = () => {
48
+ const { closeOnClickOutside: r, saveButtonLoading: n } = i;
49
+ r && !n ? y(g.Backdrop) : V();
50
+ };
51
+ return (r, n) => (o(), c(w, {
47
52
  to: "body",
48
53
  disabled: !t.appendToBody
49
54
  }, [
50
- T(p, null, {
51
- default: d(() => [
52
- e(h) ? (o(), f("div", R, [
53
- m("div", s({
55
+ b(I, null, {
56
+ default: u(() => [
57
+ e(h) ? (o(), m("div", S, [
58
+ C("div", s({
54
59
  class: ["dialog", [`dialog--${t.size}`]]
55
60
  }, e(a)[e(l).WRAPPER]), [
56
- t.title || t.subtitle || t.showCloseButton ? (o(), f("header", s({
61
+ t.title || t.subtitle || t.showCloseButton ? (o(), m("header", s({
57
62
  key: 0,
58
63
  class: "header"
59
64
  }, e(a)[e(l).HEADER]), [
60
- m("div", S, [
61
- b(v.$slots, "header", {}, () => [
62
- t.title ? (o(), i(e(g), {
65
+ C("div", F, [
66
+ k(r.$slots, "header", {}, () => [
67
+ t.title ? (o(), c(e(T), {
63
68
  key: 0,
64
69
  variant: "h3"
65
70
  }, {
66
- default: d(() => [
67
- r(c(t.title), 1)
71
+ default: u(() => [
72
+ f(B(t.title), 1)
68
73
  ]),
69
74
  _: 1
70
- })) : u("", !0),
71
- t.subtitle ? (o(), i(e(g), {
75
+ })) : d("", !0),
76
+ t.subtitle ? (o(), c(e(T), {
72
77
  key: 1,
73
78
  class: "subtitle",
74
79
  variant: "body1"
75
80
  }, {
76
- default: d(() => [
77
- r(c(t.subtitle), 1)
81
+ default: u(() => [
82
+ f(B(t.subtitle), 1)
78
83
  ]),
79
84
  _: 1
80
- })) : u("", !0)
85
+ })) : d("", !0)
81
86
  ], !0)
82
87
  ]),
83
- t.showCloseButton ? (o(), i(e(L), s({
88
+ t.showCloseButton ? (o(), c(e(p), s({
84
89
  key: 0,
85
90
  class: "close-button",
86
- "icon-name": "x"
91
+ "icon-name": "x",
92
+ disabled: t.saveButtonLoading
87
93
  }, e(a)[e(l).ACTION_CLOSE], {
88
- onClick: n[0] || (n[0] = (k) => e(y)(e(O).CloseButton))
89
- }), null, 16)) : u("", !0)
90
- ], 16)) : u("", !0),
91
- m("div", s({ class: "content" }, e(a)[e(l).CONTENT]), [
92
- b(v.$slots, "default", {}, () => [
93
- t.content ? (o(), i(e(g), {
94
+ onClick: n[0] || (n[0] = (O) => e(y)(e(g).CloseButton))
95
+ }), null, 16, ["disabled"])) : d("", !0)
96
+ ], 16)) : d("", !0),
97
+ C("div", s({ class: "content" }, e(a)[e(l).CONTENT]), [
98
+ k(r.$slots, "default", {}, () => [
99
+ t.content ? (o(), c(e(T), {
94
100
  key: 0,
95
101
  variant: "body1"
96
102
  }, {
97
- default: d(() => [
98
- r(c(t.content), 1)
103
+ default: u(() => [
104
+ f(B(t.content), 1)
99
105
  ]),
100
106
  _: 1
101
- })) : u("", !0)
107
+ })) : d("", !0)
102
108
  ], !0)
103
109
  ], 16),
104
- t.showFooter ? (o(), f("footer", F, [
105
- m("div", s({ class: "action-buttons" }, e(a)[e(l).ACTION_BUTTONS_WRAPPER]), [
106
- b(v.$slots, "footer", {}, () => [
107
- T(e(N), s({
110
+ t.showFooter ? (o(), m("footer", U, [
111
+ C("div", s({ class: "action-buttons" }, e(a)[e(l).ACTION_BUTTONS_WRAPPER]), [
112
+ k(r.$slots, "footer", {}, () => [
113
+ b(e(N), s({
108
114
  class: "form-action",
109
115
  variant: "outlined",
110
- color: t.cancelButtonColor
116
+ color: t.cancelButtonColor,
117
+ disabled: t.saveButtonLoading
111
118
  }, e(a)[e(l).CANCEL_BUTTON], {
112
- onClick: n[1] || (n[1] = (k) => B("cancel"))
119
+ onClick: n[1] || (n[1] = (O) => v("cancel"))
113
120
  }), {
114
- default: d(() => [
115
- r(c(t.cancelButtonLabel), 1)
121
+ default: u(() => [
122
+ f(B(t.cancelButtonLabel), 1)
116
123
  ]),
117
124
  _: 1
118
- }, 16, ["color"]),
119
- T(e(N), s({
125
+ }, 16, ["color", "disabled"]),
126
+ b(e(N), s({
120
127
  class: "form-action",
121
128
  loading: t.saveButtonLoading,
122
129
  color: t.saveButtonColor
123
130
  }, e(a)[e(l).SAVE_BUTTON], {
124
- onClick: n[2] || (n[2] = (k) => B("save"))
131
+ onClick: n[2] || (n[2] = (O) => v("save"))
125
132
  }), {
126
- default: d(() => [
127
- r(c(t.saveButtonLabel), 1)
133
+ default: u(() => [
134
+ f(B(t.saveButtonLabel), 1)
128
135
  ]),
129
136
  _: 1
130
137
  }, 16, ["loading", "color"])
131
138
  ], !0)
132
139
  ], 16)
133
- ])) : u("", !0)
140
+ ])) : d("", !0)
134
141
  ], 16),
135
- t.showBackdrop ? (o(), f("div", s({
142
+ t.showBackdrop ? (o(), m("div", s({
136
143
  key: 0,
137
144
  class: "dialog-backdrop"
138
- }, e(a)[e(l).BACKDROP], {
139
- onClick: n[3] || (n[3] = (k) => t.closeOnClickOutside ? e(y)(e(O).Backdrop) : e(I)())
140
- }), null, 16)) : u("", !0)
141
- ])) : u("", !0)
145
+ }, e(a)[e(l).BACKDROP], { onClick: E }), null, 16)) : d("", !0)
146
+ ])) : d("", !0)
142
147
  ]),
143
148
  _: 3
144
149
  })
@@ -146,5 +151,5 @@ const R = {
146
151
  }
147
152
  });
148
153
  export {
149
- J as default
154
+ Q as default
150
155
  };