@ironsource/shared-ui 2.1.12-rc.12 → 2.1.12-rc.14

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 (105) hide show
  1. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +1 -0
  4. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css +1 -0
  6. package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +1 -0
  7. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  8. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  9. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  10. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  11. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  12. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  13. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  14. package/components/appIcon/index.d.ts +3 -3
  15. package/components/banner/Banner.vue.d.ts +3 -3
  16. package/components/banner/index.d.ts +7 -7
  17. package/components/button/common/consts.d.ts +1 -0
  18. package/components/button/v3/Button.vue.d.ts +3 -3
  19. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  20. package/components/button/v3/IconButton.vue.d.ts +3 -3
  21. package/components/button/v3/index.d.ts +14 -14
  22. package/components/button/v4/ButtonV4.vue.d.ts +4 -3
  23. package/components/button/v4/ButtonV4.vue.js +3 -3
  24. package/components/button/v4/ButtonV4.vue2.js +1 -1
  25. package/components/chart/Chart.vue.d.ts +55 -2
  26. package/components/chart/Chart.vue.js +5 -5
  27. package/components/chart/Chart.vue2.js +109 -82
  28. package/components/chart/ChartHeader.vue.d.ts +24 -0
  29. package/components/chart/ChartHeader.vue.js +3 -3
  30. package/components/chart/ChartHeader.vue2.js +70 -50
  31. package/components/chart/ChartHeaderTrend.vue.d.ts +13 -0
  32. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  33. package/components/chart/ChartHeaderTrend.vue2.js +80 -18
  34. package/components/chart/ChartLegend.vue.d.ts +17 -0
  35. package/components/chart/ChartLegend.vue.js +3 -3
  36. package/components/chart/ChartLegend.vue2.js +78 -67
  37. package/components/chart/ChartPlane.vue.d.ts +42 -4
  38. package/components/chart/ChartPlane.vue.js +4 -4
  39. package/components/chart/ChartPlane.vue2.js +159 -146
  40. package/components/chart/LegendSorting.vue.d.ts +37 -0
  41. package/components/chart/LegendSorting.vue.js +45 -0
  42. package/components/chart/LegendSorting.vue2.js +4 -0
  43. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  44. package/components/chart/SettingsHeader.vue.js +3 -3
  45. package/components/chart/SettingsHeader.vue2.js +17 -16
  46. package/components/chart/colorPalette.d.ts +4 -0
  47. package/components/chart/colorPalette.js +54 -0
  48. package/components/chart/composables/useColorsMap.d.ts +2 -2
  49. package/components/chart/composables/useColorsMap.js +41 -12
  50. package/components/chart/consts.d.ts +12 -1
  51. package/components/chart/consts.js +31 -26
  52. package/components/chart/index.d.ts +208 -40
  53. package/components/chart/mockData.d.ts +8 -14
  54. package/components/chart/types.d.ts +2 -1
  55. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  56. package/components/checkbox/v3/index.d.ts +7 -7
  57. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  58. package/components/dialog/v4/DialogV4.vue.js +4 -4
  59. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  60. package/components/dialog/v4/index.d.ts +7 -7
  61. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  62. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  63. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  64. package/components/dropdown/v4/index.d.ts +18 -0
  65. package/components/forms/FormRow.vue.d.ts +9 -2
  66. package/components/forms/FormRow.vue.js +3 -3
  67. package/components/forms/FormRow.vue2.js +25 -14
  68. package/components/forms/index.d.ts +25 -5
  69. package/components/search/v3/index.d.ts +3 -3
  70. package/components/shared/FieldLabel.vue.d.ts +19 -7
  71. package/components/shared/FieldLabel.vue.js +3 -3
  72. package/components/shared/FieldLabel.vue2.js +50 -37
  73. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  74. package/components/tabs/v3/index.d.ts +7 -7
  75. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  76. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  77. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  78. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  79. package/components/tooltip/v3/index.d.ts +7 -7
  80. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  81. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  82. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  83. package/components/tooltip/v4/index.d.ts +7 -7
  84. package/components/typography/Text.vue.d.ts +3 -3
  85. package/components/typography/index.d.ts +7 -7
  86. package/composables/useFormValidation.d.ts +1 -0
  87. package/composables/useFormValidation.js +29 -26
  88. package/index.d.ts +71 -35
  89. package/index.js +1 -1
  90. package/package.json +1 -1
  91. package/utils/totals.d.ts +5 -0
  92. package/utils/totals.js +9 -0
  93. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  94. package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
  95. package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
  96. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
  97. package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
  98. package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
  99. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  100. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  101. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  102. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  103. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  104. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  105. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
3
3
  tabsList: Tab[];
4
4
  selectedTab: string | number;
5
5
  variant?: "fill" | "fix";
6
- size?: "sm" | "md" | "lg" | "xl";
6
+ size?: "md" | "sm" | "lg" | "xl";
7
7
  testId?: string;
8
8
  }>, {
9
9
  tabsList: () => any[];
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  tabsList: Tab[];
17
17
  selectedTab: string | number;
18
18
  variant?: "fill" | "fix";
19
- size?: "sm" | "md" | "lg" | "xl";
19
+ size?: "md" | "sm" | "lg" | "xl";
20
20
  testId?: string;
21
21
  }>, {
22
22
  tabsList: () => any[];
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  }, {
29
29
  testId: string;
30
30
  variant: "fill" | "fix";
31
- size: "sm" | "md" | "lg" | "xl";
31
+ size: "md" | "sm" | "lg" | "xl";
32
32
  tabsList: Tab[];
33
33
  }>, {
34
34
  default?(_: {
@@ -5,7 +5,7 @@ declare const TabsTypes: () => ({
5
5
  $props: Partial<{
6
6
  testId: string;
7
7
  variant: "fill" | "fix";
8
- size: "sm" | "md" | "lg" | "xl";
8
+ size: "md" | "sm" | "lg" | "xl";
9
9
  tabsList: import("../common/Tabs.types").Tab[];
10
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
11
11
  testId: {
@@ -17,7 +17,7 @@ declare const TabsTypes: () => ({
17
17
  default: string;
18
18
  };
19
19
  size: {
20
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
20
+ type: import("vue").PropType<"md" | "sm" | "lg" | "xl">;
21
21
  default: string;
22
22
  };
23
23
  tabsList: {
@@ -55,7 +55,7 @@ declare const TabsTypes: () => ({
55
55
  default: string;
56
56
  };
57
57
  size: {
58
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
58
+ type: import("vue").PropType<"md" | "sm" | "lg" | "xl">;
59
59
  default: string;
60
60
  };
61
61
  tabsList: {
@@ -74,7 +74,7 @@ declare const TabsTypes: () => ({
74
74
  }, string, {
75
75
  testId: string;
76
76
  variant: "fill" | "fix";
77
- size: "sm" | "md" | "lg" | "xl";
77
+ size: "md" | "sm" | "lg" | "xl";
78
78
  tabsList: import("../common/Tabs.types").Tab[];
79
79
  }, {}, string> & {
80
80
  beforeCreate?: (() => void) | (() => void)[];
@@ -106,7 +106,7 @@ declare const TabsTypes: () => ({
106
106
  default: string;
107
107
  };
108
108
  size: {
109
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
109
+ type: import("vue").PropType<"md" | "sm" | "lg" | "xl">;
110
110
  default: string;
111
111
  };
112
112
  tabsList: {
@@ -134,7 +134,7 @@ declare const TabsTypes: () => ({
134
134
  default: string;
135
135
  };
136
136
  size: {
137
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
137
+ type: import("vue").PropType<"md" | "sm" | "lg" | "xl">;
138
138
  default: string;
139
139
  };
140
140
  tabsList: {
@@ -153,7 +153,7 @@ declare const TabsTypes: () => ({
153
153
  }, string, {
154
154
  testId: string;
155
155
  variant: "fill" | "fix";
156
- size: "sm" | "md" | "lg" | "xl";
156
+ size: "md" | "sm" | "lg" | "xl";
157
157
  tabsList: import("../common/Tabs.types").Tab[];
158
158
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
159
159
  $slots: {
@@ -1,2 +1,3 @@
1
1
  export declare const TOOLTIP_POSITIONS: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"];
2
2
  export type TooltipPositions = (typeof TOOLTIP_POSITIONS)[number];
3
+ export type TooltipTriggers = 'hover' | 'click' | 'focus' | 'touch';
@@ -1,9 +1,9 @@
1
- type Triggers = 'hover' | 'click' | 'focus' | 'touch';
1
+ import { TooltipTriggers } from '@/components/tooltip/common/Tooltip.types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  text?: string;
4
4
  header?: string;
5
5
  delay?: number;
6
- triggers?: Triggers[];
6
+ triggers?: TooltipTriggers[];
7
7
  forceShowWithTruncate?: boolean;
8
8
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
9
9
  theme?: string;
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  text?: string;
24
24
  header?: string;
25
25
  delay?: number;
26
- triggers?: Triggers[];
26
+ triggers?: TooltipTriggers[];
27
27
  forceShowWithTruncate?: boolean;
28
28
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
29
29
  theme?: string;
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
45
45
  theme: string;
46
46
  testId: string;
47
47
  delay: number;
48
- triggers: Triggers[];
48
+ triggers: TooltipTriggers[];
49
49
  forceShowWithTruncate: boolean;
50
50
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
51
51
  disabled: boolean;
@@ -1,8 +1,8 @@
1
1
  import o from "./Tooltip.vue2.js";
2
2
  /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css"; //*');
3
+ // import "../../../Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css"; //*');
4
4
  // import "../../../Tooltip.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9020a179"]]);
5
+ const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-20630944"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import "../../../Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css"; import "../../../Tooltip.vue_vue_type_style_index_1_lang.css"; import { defineComponent as y, ref as s, useSlots as g, watch as h, openBlock as r, createBlock as n, unref as a, mergeProps as w, withCtx as u, createElementVNode as m, renderSlot as p, createTextVNode as S, toDisplayString as k, nextTick as $ } from "vue";
1
+ import "../../../Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css"; import "../../../Tooltip.vue_vue_type_style_index_1_lang.css"; import { defineComponent as y, ref as s, useSlots as g, watch as h, openBlock as r, createBlock as n, unref as a, mergeProps as w, withCtx as u, createElementVNode as m, renderSlot as p, createTextVNode as S, toDisplayString as k, nextTick as $ } from "vue";
2
2
  import I from "./TextWithTitleContent.vue.js";
3
3
  import "../../typography/Heading.vue.js";
4
4
  import W from "../../typography/Text.vue.js";
@@ -8,7 +8,7 @@ declare const TooltipTypes: () => ({
8
8
  theme: string;
9
9
  testId: string;
10
10
  delay: number;
11
- triggers: ("hover" | "click" | "focus" | "touch")[];
11
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
12
12
  forceShowWithTruncate: boolean;
13
13
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
14
14
  disabled: boolean;
@@ -34,7 +34,7 @@ declare const TooltipTypes: () => ({
34
34
  default: number;
35
35
  };
36
36
  triggers: {
37
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
37
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
38
38
  default: () => string[];
39
39
  };
40
40
  forceShowWithTruncate: {
@@ -85,7 +85,7 @@ declare const TooltipTypes: () => ({
85
85
  default: number;
86
86
  };
87
87
  triggers: {
88
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
88
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
89
89
  default: () => string[];
90
90
  };
91
91
  forceShowWithTruncate: {
@@ -106,7 +106,7 @@ declare const TooltipTypes: () => ({
106
106
  theme: string;
107
107
  testId: string;
108
108
  delay: number;
109
- triggers: ("hover" | "click" | "focus" | "touch")[];
109
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
110
110
  forceShowWithTruncate: boolean;
111
111
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
112
112
  disabled: boolean;
@@ -152,7 +152,7 @@ declare const TooltipTypes: () => ({
152
152
  default: number;
153
153
  };
154
154
  triggers: {
155
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
155
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
156
156
  default: () => string[];
157
157
  };
158
158
  forceShowWithTruncate: {
@@ -193,7 +193,7 @@ declare const TooltipTypes: () => ({
193
193
  default: number;
194
194
  };
195
195
  triggers: {
196
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
196
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
197
197
  default: () => string[];
198
198
  };
199
199
  forceShowWithTruncate: {
@@ -214,7 +214,7 @@ declare const TooltipTypes: () => ({
214
214
  theme: string;
215
215
  testId: string;
216
216
  delay: number;
217
- triggers: ("hover" | "click" | "focus" | "touch")[];
217
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
218
218
  forceShowWithTruncate: boolean;
219
219
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
220
220
  disabled: boolean;
@@ -1,9 +1,9 @@
1
- type Triggers = 'hover' | 'click' | 'focus' | 'touch';
1
+ import { TooltipTriggers } from '@/components/tooltip/common/Tooltip.types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  text?: string;
4
4
  header?: string;
5
5
  delay?: number;
6
- triggers?: Triggers[];
6
+ triggers?: TooltipTriggers[];
7
7
  forceShowWithTruncate?: boolean;
8
8
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
9
9
  theme?: string;
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
33
33
  text?: string;
34
34
  header?: string;
35
35
  delay?: number;
36
- triggers?: Triggers[];
36
+ triggers?: TooltipTriggers[];
37
37
  forceShowWithTruncate?: boolean;
38
38
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
39
39
  theme?: string;
@@ -65,7 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
65
  theme: string;
66
66
  testId: string;
67
67
  delay: number;
68
- triggers: Triggers[];
68
+ triggers: TooltipTriggers[];
69
69
  forceShowWithTruncate: boolean;
70
70
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
71
71
  disabled: boolean;
@@ -1,8 +1,8 @@
1
1
  import o from "./TooltipV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css"; //*');
3
+ // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css"; //*');
4
4
  // import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-66eab856"]]);
5
+ const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bcb40ed4"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as m, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
1
+ import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as m, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
2
2
  import g from "./TextWithTitleContent.vue.js";
3
3
  import { Tooltip as w } from "floating-vue";
4
4
  import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
@@ -9,7 +9,7 @@ declare const TooltipTypes: () => ({
9
9
  theme: string;
10
10
  testId: string;
11
11
  delay: number;
12
- triggers: ("hover" | "click" | "focus" | "touch")[];
12
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
13
13
  forceShowWithTruncate: boolean;
14
14
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
15
15
  disabled: boolean;
@@ -39,7 +39,7 @@ declare const TooltipTypes: () => ({
39
39
  default: number;
40
40
  };
41
41
  triggers: {
42
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
42
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
43
43
  default: () => string[];
44
44
  };
45
45
  forceShowWithTruncate: {
@@ -108,7 +108,7 @@ declare const TooltipTypes: () => ({
108
108
  default: number;
109
109
  };
110
110
  triggers: {
111
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
111
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
112
112
  default: () => string[];
113
113
  };
114
114
  forceShowWithTruncate: {
@@ -149,7 +149,7 @@ declare const TooltipTypes: () => ({
149
149
  theme: string;
150
150
  testId: string;
151
151
  delay: number;
152
- triggers: ("hover" | "click" | "focus" | "touch")[];
152
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
153
153
  forceShowWithTruncate: boolean;
154
154
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
155
155
  disabled: boolean;
@@ -199,7 +199,7 @@ declare const TooltipTypes: () => ({
199
199
  default: number;
200
200
  };
201
201
  triggers: {
202
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
202
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
203
203
  default: () => string[];
204
204
  };
205
205
  forceShowWithTruncate: {
@@ -258,7 +258,7 @@ declare const TooltipTypes: () => ({
258
258
  default: number;
259
259
  };
260
260
  triggers: {
261
- type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
261
+ type: import("vue").PropType<import("../common/Tooltip.types").TooltipTriggers[]>;
262
262
  default: () => string[];
263
263
  };
264
264
  forceShowWithTruncate: {
@@ -299,7 +299,7 @@ declare const TooltipTypes: () => ({
299
299
  theme: string;
300
300
  testId: string;
301
301
  delay: number;
302
- triggers: ("hover" | "click" | "focus" | "touch")[];
302
+ triggers: import("../common/Tooltip.types").TooltipTriggers[];
303
303
  forceShowWithTruncate: boolean;
304
304
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
305
305
  disabled: boolean;
@@ -1,7 +1,7 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  isTruncated?: boolean;
3
3
  strong?: boolean;
4
- size?: "caption" | "sm" | "md" | "lg" | "xs";
4
+ size?: "caption" | "md" | "sm" | "xs" | "lg";
5
5
  testId?: string;
6
6
  }>, {
7
7
  size: string;
@@ -9,14 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
10
  isTruncated?: boolean;
11
11
  strong?: boolean;
12
- size?: "caption" | "sm" | "md" | "lg" | "xs";
12
+ size?: "caption" | "md" | "sm" | "xs" | "lg";
13
13
  testId?: string;
14
14
  }>, {
15
15
  size: string;
16
16
  testId: string;
17
17
  }>>>, {
18
18
  testId: string;
19
- size: "caption" | "sm" | "md" | "lg" | "xs";
19
+ size: "caption" | "md" | "sm" | "xs" | "lg";
20
20
  }>, {
21
21
  default?(_: {}): any;
22
22
  }>;
@@ -107,7 +107,7 @@ declare const TypographyTypes: () => (({
107
107
  $data: {};
108
108
  $props: Partial<{
109
109
  testId: string;
110
- size: "caption" | "sm" | "md" | "lg" | "xs";
110
+ size: "caption" | "md" | "sm" | "xs" | "lg";
111
111
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
112
112
  strong: {
113
113
  type: import("vue").PropType<boolean>;
@@ -120,7 +120,7 @@ declare const TypographyTypes: () => (({
120
120
  type: import("vue").PropType<boolean>;
121
121
  };
122
122
  size: {
123
- type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
123
+ type: import("vue").PropType<"caption" | "md" | "sm" | "xs" | "lg">;
124
124
  default: string;
125
125
  };
126
126
  }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "size">;
@@ -149,12 +149,12 @@ declare const TypographyTypes: () => (({
149
149
  type: import("vue").PropType<boolean>;
150
150
  };
151
151
  size: {
152
- type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
152
+ type: import("vue").PropType<"caption" | "md" | "sm" | "xs" | "lg">;
153
153
  default: string;
154
154
  };
155
155
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
156
156
  testId: string;
157
- size: "caption" | "sm" | "md" | "lg" | "xs";
157
+ size: "caption" | "md" | "sm" | "xs" | "lg";
158
158
  }, {}, string> & {
159
159
  beforeCreate?: (() => void) | (() => void)[];
160
160
  created?: (() => void) | (() => void)[];
@@ -187,7 +187,7 @@ declare const TypographyTypes: () => (({
187
187
  type: import("vue").PropType<boolean>;
188
188
  };
189
189
  size: {
190
- type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
190
+ type: import("vue").PropType<"caption" | "md" | "sm" | "xs" | "lg">;
191
191
  default: string;
192
192
  };
193
193
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -206,12 +206,12 @@ declare const TypographyTypes: () => (({
206
206
  type: import("vue").PropType<boolean>;
207
207
  };
208
208
  size: {
209
- type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
209
+ type: import("vue").PropType<"caption" | "md" | "sm" | "xs" | "lg">;
210
210
  default: string;
211
211
  };
212
212
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
213
213
  testId: string;
214
- size: "caption" | "sm" | "md" | "lg" | "xs";
214
+ size: "caption" | "md" | "sm" | "xs" | "lg";
215
215
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
216
216
  $slots: {
217
217
  default?(_: {}): any;
@@ -14,6 +14,7 @@ export type UseFormValidationReponseType<T> = {
14
14
  validationErrors: ValidationErrorsType<T>;
15
15
  isValid: Ref<boolean>;
16
16
  validate: (isReactive?: boolean) => void;
17
+ stopValidating: () => void;
17
18
  };
18
19
  export declare const scrollToElementByClass: (elementClass: string, index?: number) => void;
19
20
  export declare const scrollToFirstInvalidElement: <T>(validationErrors: Partial<Record<keyof T, string>>) => void;
@@ -1,50 +1,53 @@
1
- import * as m from "yup";
2
- import { ref as d, reactive as f, watch as v } from "vue";
3
- const E = (e, r = 0) => {
1
+ import * as f from "yup";
2
+ import { ref as d, reactive as v, watch as E } from "vue";
3
+ const h = (e, t = 0) => {
4
4
  try {
5
- window.document.getElementsByClassName(e)[r].scrollIntoView({ behavior: "smooth" });
5
+ window.document.getElementsByClassName(e)[t].scrollIntoView({ behavior: "smooth" });
6
6
  } catch {
7
7
  return;
8
8
  }
9
- }, h = (e) => {
10
- const r = Object.keys(e)?.[0];
11
- r && E(`form-field-${r}`);
12
- }, p = (e, r) => {
13
- const o = m.object().shape(e);
9
+ }, p = (e) => {
10
+ const t = Object.keys(e)?.[0];
11
+ t && h(`form-field-${t}`);
12
+ }, y = (e, t) => {
13
+ const r = f.object().shape(e);
14
14
  try {
15
- return o.validateSync(r.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
15
+ return r.validateSync(t.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
16
16
  } catch (i) {
17
- return { isValid: !1, errors: i.inner.reduce((s, n) => (s[n.path] = n.message, s), {}) };
17
+ return { isValid: !1, errors: i.inner.reduce((s, l) => (s[l.path] = l.message, s), {}) };
18
18
  }
19
19
  }, b = ({
20
20
  formState: e,
21
- formValidationSchema: r
21
+ formValidationSchema: t
22
22
  }) => {
23
- const o = d(!1), i = d(!0), t = f({}), s = (n) => {
24
- const { isValid: l, errors: c } = p(r, e);
25
- o.value = !0, i.value = l, Object.keys(t).forEach((a) => {
26
- a && !c[a] && delete t[a];
27
- }), Object.entries(c).forEach(([a, u]) => {
28
- t[a] = u;
29
- }), !l && !n && h(t);
23
+ const r = d(!1), i = d(!0), o = v({}), s = (u) => {
24
+ const { isValid: n, errors: c } = y(t, e);
25
+ r.value = !0, i.value = n, Object.keys(o).forEach((a) => {
26
+ a && !c[a] && delete o[a];
27
+ }), Object.entries(c).forEach(([a, m]) => {
28
+ o[a] = m;
29
+ }), !n && !u && p(o);
30
+ }, l = () => {
31
+ r.value = !1;
30
32
  };
31
- return v(
33
+ return E(
32
34
  e,
33
35
  () => {
34
- o.value && s(!0);
36
+ r.value && s(!0);
35
37
  },
36
38
  {
37
39
  deep: !0
38
40
  }
39
41
  ), {
40
- validationErrors: t,
42
+ validationErrors: o,
41
43
  isValid: i,
42
- validate: s
44
+ validate: s,
45
+ stopValidating: l
43
46
  };
44
47
  };
45
48
  export {
46
- E as scrollToElementByClass,
47
- h as scrollToFirstInvalidElement,
49
+ h as scrollToElementByClass,
50
+ p as scrollToFirstInvalidElement,
48
51
  b as useFormValidation,
49
- p as yupValidation
52
+ y as yupValidation
50
53
  };