@ironsource/shared-ui 2.1.3-rc.1 → 2.1.3-rc.10

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 (123) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +1 -0
  2. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
  3. package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
  4. package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
  5. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
  6. package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
  7. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
  8. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
  9. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
  10. package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
  11. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
  12. package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
  13. package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +1 -0
  14. package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
  15. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
  16. package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
  17. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
  18. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
  19. package/components/alert/Alert.vue.d.ts +68 -0
  20. package/components/alert/Alert.vue.js +7 -0
  21. package/components/alert/Alert.vue2.js +86 -0
  22. package/components/alert/index.d.ts +82 -0
  23. package/components/alert/index.js +6 -0
  24. package/components/appHeader/AppHeader.vue.js +3 -3
  25. package/components/appHeader/AppHeader.vue2.js +41 -35
  26. package/components/button/v3/Button.vue.d.ts +6 -6
  27. package/components/button/v3/ButtonBase.vue.d.ts +1 -1
  28. package/components/button/v3/IconButton.vue.d.ts +1 -1
  29. package/components/button/v3/index.d.ts +34 -34
  30. package/components/button/v4/ButtonV4.vue.d.ts +1 -1
  31. package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
  32. package/components/button/v4/index.d.ts +40 -40
  33. package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
  34. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  35. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
  36. package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
  37. package/components/dialog/v4/index.d.ts +1 -1
  38. package/components/dropdown/common/Dropdown.common.js +93 -92
  39. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  40. package/components/emptyState/v3/index.d.ts +7 -7
  41. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
  42. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  43. package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
  44. package/components/emptyState/v4/index.d.ts +58 -1
  45. package/components/forms/CardPanel.vue.d.ts +20 -0
  46. package/components/forms/CardPanel.vue.js +2 -2
  47. package/components/forms/CardPanel.vue2.js +26 -14
  48. package/components/forms/FormCard.vue.d.ts +5 -0
  49. package/components/forms/FormCard.vue.js +3 -3
  50. package/components/forms/FormCard.vue2.js +62 -36
  51. package/components/forms/FormRow.vue.d.ts +10 -0
  52. package/components/forms/FormRow.vue.js +3 -3
  53. package/components/forms/FormRow.vue2.js +22 -29
  54. package/components/forms/index.d.ts +136 -3
  55. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  56. package/components/inlineCopy/InlineCopy.vue2.js +2 -2
  57. package/components/input/v4/TextField.vue.d.ts +1 -1
  58. package/components/input/v4/TextField.vue.js +3 -3
  59. package/components/input/v4/TextField.vue2.js +83 -90
  60. package/components/input/v4/index.d.ts +20 -20
  61. package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
  62. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  63. package/components/search/v3/Search.vue.d.ts +1 -1
  64. package/components/search/v3/index.d.ts +9 -9
  65. package/components/shared/FieldLabel.vue.d.ts +5 -0
  66. package/components/shared/FieldLabel.vue.js +3 -3
  67. package/components/shared/FieldLabel.vue2.js +63 -46
  68. package/components/shared/FieldMaxLength.vue.d.ts +34 -0
  69. package/components/shared/FieldMaxLength.vue.js +7 -0
  70. package/components/shared/FieldMaxLength.vue2.js +24 -0
  71. package/components/skeleton/v4/index.d.ts +2 -2
  72. package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
  73. package/components/table/common/Table.common.d.ts +1 -0
  74. package/components/table/common/Table.common.js +64 -60
  75. package/components/table/common/TableContext.d.ts +1 -0
  76. package/components/table/v4/DataGrid.vue.js +4 -4
  77. package/components/table/v4/DataGrid.vue2.js +71 -69
  78. package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
  79. package/components/table/v4/DataGridMenu.vue.js +4 -4
  80. package/components/table/v4/DataGridMenu.vue2.js +46 -47
  81. package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
  82. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  83. package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
  84. package/components/table/v4/index.d.ts +32 -5
  85. package/components/table-cells/common/Editable.common.js +15 -15
  86. package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
  87. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  88. package/components/table-cells/v4/EditableV4.vue2.js +31 -22
  89. package/components/table-cells/v4/index.d.ts +43 -1
  90. package/components/tabs/v3/Tabs.vue.d.ts +1 -1
  91. package/components/tabs/v3/index.d.ts +20 -20
  92. package/components/textArea/v3/TextArea.vue.js +7 -0
  93. package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
  94. package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
  95. package/components/textArea/v4/TextAreaV4.vue.js +7 -0
  96. package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
  97. package/components/textArea/v4/index.d.ts +136 -0
  98. package/components/textArea/v4/index.js +6 -0
  99. package/components/typography/index.d.ts +12 -12
  100. package/index.d.ts +661 -141
  101. package/index.js +113 -109
  102. package/package.json +7 -2
  103. package/testids/index.d.ts +7 -0
  104. package/testids/index.js +26 -25
  105. package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
  106. package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
  107. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
  108. package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
  109. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
  110. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
  111. package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
  112. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
  113. package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
  114. package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
  115. package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
  116. package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
  117. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
  118. package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
  119. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
  120. package/components/textArea/TextArea.vue.js +0 -7
  121. /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
  122. /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
  123. /package/components/textArea/{index.js → v3/index.js} +0 -0
@@ -2,38 +2,38 @@ import { ref as a, provide as v } from "vue";
2
2
  import { useTableContext as s } from "../../table/common/TableContext.js";
3
3
  import { EditableContext as d } from "./EditableContext.js";
4
4
  import { onClickOutside as f } from "@vueuse/core";
5
- const E = (e) => {
6
- const l = a(!1), o = a(e.cell), r = a(null), u = s("Editable"), t = a(null);
5
+ const g = (e) => {
6
+ const l = a(!1), n = a(e.cell), u = a(null), r = s("Editable"), o = a(null);
7
7
  v(d, {
8
8
  focusable: !0,
9
- value: o,
10
- error: t,
9
+ value: n,
10
+ error: o,
11
11
  confirmable: !0,
12
- onChange(n) {
13
- o.value = n, t.value = e.validateFunction?.(o.value);
12
+ onChange(t) {
13
+ n.value = t, o.value = e.validateFunction?.(n.value);
14
14
  },
15
15
  onClose: () => {
16
- const n = e.validateFunction?.(o.value);
17
- t.value = n, !n && (u.onClose({
16
+ const t = e.validateFunction?.(n.value);
17
+ o.value = t, !t && (r.onClose({
18
18
  rowIndex: e.rowIndex,
19
19
  cellIndex: e.cellIndex,
20
- value: o.value
20
+ value: n.value
21
21
  }), l.value = !1);
22
22
  }
23
23
  });
24
24
  const i = () => {
25
- l.value || (l.value = !l.value);
25
+ l.value || e.isLoading || (l.value = !l.value);
26
26
  }, c = () => {
27
- o.value = e.cell, t.value = null;
27
+ n.value = e.cell, o.value = null;
28
28
  };
29
- return f(r, () => {
30
- l.value = !1, c(), u.onClose();
29
+ return f(u, () => {
30
+ l.value = !1, c(), r.onClose();
31
31
  }), {
32
32
  onEdit: i,
33
- target: r,
33
+ target: u,
34
34
  isEditing: l
35
35
  };
36
36
  };
37
37
  export {
38
- E as editableCommon
38
+ g as editableCommon
39
39
  };
@@ -3,23 +3,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
3
3
  isLoading?: boolean;
4
4
  rowIndex: number;
5
5
  cellIndex: number;
6
+ type: "input" | "dropdown";
6
7
  validateFunction?: (value: unknown) => string | boolean;
8
+ displayValue?: (option: unknown) => unknown;
7
9
  }>, {
8
10
  cell: string;
9
11
  isLoading: boolean;
12
+ type: string;
10
13
  validateFunction: () => false;
14
+ displayValue: (cell: unknown) => unknown;
11
15
  }>, {}, 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<{
12
16
  cell?: string;
13
17
  isLoading?: boolean;
14
18
  rowIndex: number;
15
19
  cellIndex: number;
20
+ type: "input" | "dropdown";
16
21
  validateFunction?: (value: unknown) => string | boolean;
22
+ displayValue?: (option: unknown) => unknown;
17
23
  }>, {
18
24
  cell: string;
19
25
  isLoading: boolean;
26
+ type: string;
20
27
  validateFunction: () => false;
28
+ displayValue: (cell: unknown) => unknown;
21
29
  }>>>, {
30
+ type: "input" | "dropdown";
22
31
  cell: string;
32
+ displayValue: (option: unknown) => unknown;
23
33
  validateFunction: (value: unknown) => string | boolean;
24
34
  isLoading: boolean;
25
35
  }>, {
@@ -1,7 +1,7 @@
1
1
  import o from "./EditableV4.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-df325b51"]]);
3
+ // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-31bfb722"]]);
5
5
  export {
6
- d as default
6
+ p as default
7
7
  };
@@ -1,39 +1,48 @@
1
- import "../../../EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css"; import { defineComponent as u, openBlock as r, createElementBlock as a, unref as e, createElementVNode as m, renderSlot as i, createVNode as d, withCtx as y, createTextVNode as b, toDisplayString as g } from "vue";
2
- import { editableCommon as k } from "../common/Editable.common.js";
3
- import _ from "../../typography/v4/Typography.vue.js";
4
- import v from "../../input/v4/TextField.vue.js";
5
- const x = { class: "editable-wrapper" }, E = {
1
+ import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
+ import { editableCommon as x } from "../common/Editable.common.js";
3
+ import v from "../../typography/v4/Typography.vue.js";
4
+ import w from "../../input/v4/TextField.vue.js";
5
+ import C from "../../icon/v4/IconV4.vue.js";
6
+ const E = { class: "editable-wrapper" }, B = {
6
7
  key: 1,
7
8
  class: "editable-content"
8
- }, B = /* @__PURE__ */ u({
9
+ }, S = /* @__PURE__ */ m({
9
10
  __name: "EditableV4",
10
11
  props: {
11
12
  cell: { default: "" },
12
13
  isLoading: { type: Boolean, default: !1 },
13
14
  rowIndex: null,
14
15
  cellIndex: null,
15
- validateFunction: { type: Function, default: () => !1 }
16
+ type: { default: "input" },
17
+ validateFunction: { type: Function, default: () => !1 },
18
+ displayValue: { type: Function, default: (e) => e }
16
19
  },
17
- setup(t) {
18
- const s = t, { onEdit: o, target: c, isEditing: p } = k(s);
19
- return (n, l) => (r(), a("div", {
20
+ setup(e) {
21
+ const c = e, { onEdit: n, target: s, isEditing: p } = x(c);
22
+ return (l, a) => (o(), i("div", {
20
23
  ref_key: "target",
21
- ref: c,
24
+ ref: s,
22
25
  class: "editable",
23
- onClick: l[0] || (l[0] = //@ts-ignore
24
- (...f) => e(o) && e(o)(...f))
26
+ onClick: a[0] || (a[0] = //@ts-ignore
27
+ (...u) => t(n) && t(n)(...u))
25
28
  }, [
26
- m("div", x, [
27
- e(p) ? i(n.$slots, "input", { key: 0 }, () => [
28
- d(e(v))
29
- ], !0) : (r(), a("div", E, [
30
- i(n.$slots, "content", {}, () => [
31
- d(e(_), { variant: "body1" }, {
29
+ f("div", E, [
30
+ t(p) ? r(l.$slots, "input", { key: 0 }, () => [
31
+ d(t(w))
32
+ ], !0) : (o(), i("div", B, [
33
+ r(l.$slots, "content", {}, () => [
34
+ d(t(v), { variant: "body1" }, {
32
35
  default: y(() => [
33
- b(g(t.cell), 1)
36
+ k(V(e.displayValue(e.cell)), 1)
34
37
  ]),
35
38
  _: 1
36
- })
39
+ }),
40
+ e.type === "dropdown" ? (o(), b(t(C), {
41
+ key: 0,
42
+ class: "caret-icon",
43
+ name: "caret-down",
44
+ size: "20px"
45
+ })) : g("", !0)
37
46
  ], !0)
38
47
  ]))
39
48
  ])
@@ -41,5 +50,5 @@ const x = { class: "editable-wrapper" }, E = {
41
50
  }
42
51
  });
43
52
  export {
44
- B as default
53
+ S as default
45
54
  };
@@ -4,14 +4,25 @@ declare const EditableTypes: () => ({
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
+ type: "input" | "dropdown";
7
8
  cell: string;
9
+ displayValue: (option: unknown) => unknown;
8
10
  validateFunction: (value: unknown) => string | boolean;
9
11
  isLoading: boolean;
10
12
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
+ type: {
14
+ type: import("vue").PropType<"input" | "dropdown">;
15
+ required: true;
16
+ default: string;
17
+ };
11
18
  cell: {
12
19
  type: import("vue").PropType<string>;
13
20
  default: string;
14
21
  };
22
+ displayValue: {
23
+ type: import("vue").PropType<(option: unknown) => unknown>;
24
+ default: (cell: unknown) => unknown;
25
+ };
15
26
  validateFunction: {
16
27
  type: import("vue").PropType<(value: unknown) => string | boolean>;
17
28
  default: () => false;
@@ -28,7 +39,7 @@ declare const EditableTypes: () => ({
28
39
  type: import("vue").PropType<number>;
29
40
  required: true;
30
41
  };
31
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "cell" | "validateFunction" | "isLoading">;
42
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "displayValue" | "validateFunction" | "isLoading">;
32
43
  $attrs: {
33
44
  [x: string]: unknown;
34
45
  };
@@ -43,10 +54,19 @@ declare const EditableTypes: () => ({
43
54
  $emit: (event: string, ...args: any[]) => void;
44
55
  $el: any;
45
56
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
57
+ type: {
58
+ type: import("vue").PropType<"input" | "dropdown">;
59
+ required: true;
60
+ default: string;
61
+ };
46
62
  cell: {
47
63
  type: import("vue").PropType<string>;
48
64
  default: string;
49
65
  };
66
+ displayValue: {
67
+ type: import("vue").PropType<(option: unknown) => unknown>;
68
+ default: (cell: unknown) => unknown;
69
+ };
50
70
  validateFunction: {
51
71
  type: import("vue").PropType<(value: unknown) => string | boolean>;
52
72
  default: () => false;
@@ -64,7 +84,9 @@ declare const EditableTypes: () => ({
64
84
  required: true;
65
85
  };
66
86
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
87
+ type: "input" | "dropdown";
67
88
  cell: string;
89
+ displayValue: (option: unknown) => unknown;
68
90
  validateFunction: (value: unknown) => string | boolean;
69
91
  isLoading: boolean;
70
92
  }, {}, string> & {
@@ -88,10 +110,19 @@ declare const EditableTypes: () => ({
88
110
  $nextTick: typeof import("vue").nextTick;
89
111
  $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;
90
112
  } & Readonly<import("vue").ExtractPropTypes<{
113
+ type: {
114
+ type: import("vue").PropType<"input" | "dropdown">;
115
+ required: true;
116
+ default: string;
117
+ };
91
118
  cell: {
92
119
  type: import("vue").PropType<string>;
93
120
  default: string;
94
121
  };
122
+ displayValue: {
123
+ type: import("vue").PropType<(option: unknown) => unknown>;
124
+ default: (cell: unknown) => unknown;
125
+ };
95
126
  validateFunction: {
96
127
  type: import("vue").PropType<(value: unknown) => string | boolean>;
97
128
  default: () => false;
@@ -113,10 +144,19 @@ declare const EditableTypes: () => ({
113
144
  __isTeleport?: never;
114
145
  __isSuspense?: never;
115
146
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
147
+ type: {
148
+ type: import("vue").PropType<"input" | "dropdown">;
149
+ required: true;
150
+ default: string;
151
+ };
116
152
  cell: {
117
153
  type: import("vue").PropType<string>;
118
154
  default: string;
119
155
  };
156
+ displayValue: {
157
+ type: import("vue").PropType<(option: unknown) => unknown>;
158
+ default: (cell: unknown) => unknown;
159
+ };
120
160
  validateFunction: {
121
161
  type: import("vue").PropType<(value: unknown) => string | boolean>;
122
162
  default: () => false;
@@ -134,7 +174,9 @@ declare const EditableTypes: () => ({
134
174
  required: true;
135
175
  };
136
176
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
177
+ type: "input" | "dropdown";
137
178
  cell: string;
179
+ displayValue: (option: unknown) => unknown;
138
180
  validateFunction: (value: unknown) => string | boolean;
139
181
  isLoading: boolean;
140
182
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -26,8 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
26
26
  }>>> & {
27
27
  "onUpdate:selectedTab"?: (tabId: string | number) => any;
28
28
  }, {
29
- size: "sm" | "md" | "lg" | "xl";
30
29
  variant: "fill" | "fix";
30
+ size: "sm" | "md" | "lg" | "xl";
31
31
  testId: string;
32
32
  tabsList: Tab[];
33
33
  }>, {
@@ -3,19 +3,19 @@ declare const TabsTypes: () => ({
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- size: "sm" | "md" | "lg" | "xl";
7
6
  variant: "fill" | "fix";
7
+ size: "sm" | "md" | "lg" | "xl";
8
8
  testId: string;
9
9
  tabsList: import("../common/Tabs.types").Tab[];
10
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
11
- size: {
12
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
13
- default: string;
14
- };
15
11
  variant: {
16
12
  type: import("vue").PropType<"fill" | "fix">;
17
13
  default: string;
18
14
  };
15
+ size: {
16
+ type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
17
+ default: string;
18
+ };
19
19
  testId: {
20
20
  type: import("vue").PropType<string>;
21
21
  default: string;
@@ -31,7 +31,7 @@ declare const TabsTypes: () => ({
31
31
  };
32
32
  }>> & {
33
33
  "onUpdate:selectedTab"?: (tabId: string | number) => any;
34
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "variant" | "testId" | "tabsList">;
34
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "size" | "testId" | "tabsList">;
35
35
  $attrs: {
36
36
  [x: string]: unknown;
37
37
  };
@@ -46,14 +46,14 @@ declare const TabsTypes: () => ({
46
46
  $emit: (event: "update:selectedTab", tabId: string | number) => void;
47
47
  $el: any;
48
48
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
49
- size: {
50
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
51
- default: string;
52
- };
53
49
  variant: {
54
50
  type: import("vue").PropType<"fill" | "fix">;
55
51
  default: string;
56
52
  };
53
+ size: {
54
+ type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
55
+ default: string;
56
+ };
57
57
  testId: {
58
58
  type: import("vue").PropType<string>;
59
59
  default: string;
@@ -72,8 +72,8 @@ declare const TabsTypes: () => ({
72
72
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
73
  "update:selectedTab": (tabId: string | number) => void;
74
74
  }, string, {
75
- size: "sm" | "md" | "lg" | "xl";
76
75
  variant: "fill" | "fix";
76
+ size: "sm" | "md" | "lg" | "xl";
77
77
  testId: string;
78
78
  tabsList: import("../common/Tabs.types").Tab[];
79
79
  }, {}, string> & {
@@ -97,14 +97,14 @@ declare const TabsTypes: () => ({
97
97
  $nextTick: typeof import("vue").nextTick;
98
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
99
  } & Readonly<import("vue").ExtractPropTypes<{
100
- size: {
101
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
102
- default: string;
103
- };
104
100
  variant: {
105
101
  type: import("vue").PropType<"fill" | "fix">;
106
102
  default: string;
107
103
  };
104
+ size: {
105
+ type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
106
+ default: string;
107
+ };
108
108
  testId: {
109
109
  type: import("vue").PropType<string>;
110
110
  default: string;
@@ -125,14 +125,14 @@ declare const TabsTypes: () => ({
125
125
  __isTeleport?: never;
126
126
  __isSuspense?: never;
127
127
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
128
- size: {
129
- type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
130
- default: string;
131
- };
132
128
  variant: {
133
129
  type: import("vue").PropType<"fill" | "fix">;
134
130
  default: string;
135
131
  };
132
+ size: {
133
+ type: import("vue").PropType<"sm" | "md" | "lg" | "xl">;
134
+ default: string;
135
+ };
136
136
  testId: {
137
137
  type: import("vue").PropType<string>;
138
138
  default: string;
@@ -151,8 +151,8 @@ declare const TabsTypes: () => ({
151
151
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
152
152
  "update:selectedTab": (tabId: string | number) => void;
153
153
  }, string, {
154
- size: "sm" | "md" | "lg" | "xl";
155
154
  variant: "fill" | "fix";
155
+ size: "sm" | "md" | "lg" | "xl";
156
156
  testId: string;
157
157
  tabsList: import("../common/Tabs.types").Tab[];
158
158
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -0,0 +1,7 @@
1
+ import e from "./TextArea.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb62e4c0"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -1,7 +1,7 @@
1
- import "../../TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css"; import { defineComponent as x, openBlock as d, createElementBlock as l, normalizeClass as s, unref as t, createVNode as i, withCtx as c, createTextVNode as o, toDisplayString as n, createCommentVNode as u, createElementVNode as T } from "vue";
2
- import "../typography/Heading.vue.js";
3
- import f from "../typography/Text.vue.js";
4
- import { TextAreaTestIdModifiers as a } from "../../testids/index.js";
1
+ import "../../../TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css"; import { defineComponent as x, openBlock as d, createElementBlock as l, normalizeClass as s, unref as t, createVNode as i, withCtx as c, createTextVNode as o, toDisplayString as n, createCommentVNode as u, createElementVNode as T } from "vue";
2
+ import "../../typography/Heading.vue.js";
3
+ import f from "../../typography/Text.vue.js";
4
+ import { TextAreaTestIdModifiers as a } from "../../../testids/index.js";
5
5
  const h = ["data-testid"], k = ["data-testid"], E = ["value", "placeholder", "disabled", "data-testid"], I = {
6
6
  key: 1,
7
7
  class: "extra-text-container"
@@ -0,0 +1,100 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
+ import { FeedbackVariant } from '@/components/shared/commonTypes';
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ modelValue?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ maxLength?: number;
9
+ mandatory?: boolean;
10
+ hoverHelpText?: string;
11
+ hoverHelpTextPlacement?: TooltipPositions;
12
+ feedbackVariant?: FeedbackVariant;
13
+ feedbackText?: string;
14
+ showFeedbackTextIcon?: boolean;
15
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
16
+ height?: string;
17
+ testId?: string;
18
+ }>, {
19
+ modelValue: string;
20
+ placeholder: string;
21
+ disabled: boolean;
22
+ label: string;
23
+ maxLength: any;
24
+ mandatory: boolean;
25
+ hoverHelpText: string;
26
+ hoverHelpTextPlacement: string;
27
+ feedbackText: string;
28
+ feedbackVariant: any;
29
+ showFeedbackTextIcon: boolean;
30
+ resize: string;
31
+ testId: string;
32
+ height: any;
33
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ "update:modelValue": (value: string) => void;
35
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
36
+ modelValue?: string;
37
+ placeholder?: string;
38
+ disabled?: boolean;
39
+ label?: string;
40
+ maxLength?: number;
41
+ mandatory?: boolean;
42
+ hoverHelpText?: string;
43
+ hoverHelpTextPlacement?: TooltipPositions;
44
+ feedbackVariant?: FeedbackVariant;
45
+ feedbackText?: string;
46
+ showFeedbackTextIcon?: boolean;
47
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
48
+ height?: string;
49
+ testId?: string;
50
+ }>, {
51
+ modelValue: string;
52
+ placeholder: string;
53
+ disabled: boolean;
54
+ label: string;
55
+ maxLength: any;
56
+ mandatory: boolean;
57
+ hoverHelpText: string;
58
+ hoverHelpTextPlacement: string;
59
+ feedbackText: string;
60
+ feedbackVariant: any;
61
+ showFeedbackTextIcon: boolean;
62
+ resize: string;
63
+ testId: string;
64
+ height: any;
65
+ }>>> & {
66
+ "onUpdate:modelValue"?: (value: string) => any;
67
+ }, {
68
+ label: string;
69
+ disabled: boolean;
70
+ height: string;
71
+ resize: 'none' | 'vertical' | 'horizontal' | 'both';
72
+ mandatory: boolean;
73
+ testId: string;
74
+ modelValue: string;
75
+ placeholder: string;
76
+ hoverHelpText: string;
77
+ hoverHelpTextPlacement: TooltipPositions;
78
+ feedbackText: string;
79
+ feedbackVariant: FeedbackVariant;
80
+ maxLength: number;
81
+ showFeedbackTextIcon: boolean;
82
+ }>;
83
+ export default _default;
84
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
85
+ type __VLS_TypePropsToRuntimeProps<T> = {
86
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
87
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
88
+ } : {
89
+ type: import('vue').PropType<T[K]>;
90
+ required: true;
91
+ };
92
+ };
93
+ type __VLS_WithDefaults<P, D> = {
94
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
95
+ default: D[K];
96
+ }> : P[K];
97
+ };
98
+ type __VLS_Prettify<T> = {
99
+ [K in keyof T]: T[K];
100
+ } & {};
@@ -0,0 +1,7 @@
1
+ import e from "./TextAreaV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-0336a92f"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,74 @@
1
+ import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
2
+ import v from "../../shared/FieldLabel.vue.js";
3
+ import k from "../../shared/FieldMaxLength.vue.js";
4
+ import T from "../../shared/FieldHelpText.vue.js";
5
+ import { TextAreaTestIdModifiers as u } from "../../../testids/index.js";
6
+ import { useTestIdAttrs as V } from "../../../utils/testIds.js";
7
+ const y = ["value", "placeholder", "disabled", "maxlength"], I = {
8
+ key: 1,
9
+ class: "footer"
10
+ }, w = /* @__PURE__ */ s({
11
+ __name: "TextAreaV4",
12
+ props: {
13
+ modelValue: { default: "" },
14
+ placeholder: { default: "" },
15
+ disabled: { type: Boolean, default: !1 },
16
+ label: { default: "" },
17
+ maxLength: { default: null },
18
+ mandatory: { type: Boolean, default: !1 },
19
+ hoverHelpText: { default: "" },
20
+ hoverHelpTextPlacement: { default: "top" },
21
+ feedbackVariant: { default: null },
22
+ feedbackText: { default: "" },
23
+ showFeedbackTextIcon: { type: Boolean, default: !0 },
24
+ resize: { default: "none" },
25
+ height: { default: null },
26
+ testId: { default: "" }
27
+ },
28
+ emits: ["update:modelValue"],
29
+ setup(e, { emit: h }) {
30
+ const o = e, m = (d) => {
31
+ h("update:modelValue", d.target.value);
32
+ }, x = b(() => (o.modelValue || "").length), r = V(o.testId, u);
33
+ return (d, f) => (t(), i("div", c({ class: "textarea-field" }, a(r)[a(u).WRAPPER]), [
34
+ e.label ? (t(), n(v, {
35
+ key: 0,
36
+ class: "textarea-label",
37
+ label: e.label,
38
+ mandatory: e.mandatory,
39
+ "hover-help-text": e.hoverHelpText,
40
+ "hover-help-text-placement": e.hoverHelpTextPlacement,
41
+ disabled: e.disabled,
42
+ "test-id": e.testId
43
+ }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : l("", !0),
44
+ g("textarea", c({
45
+ class: ["textarea", {
46
+ "textarea--disabled": e.disabled,
47
+ [`textarea--variant-${e.feedbackVariant}`]: !0
48
+ }],
49
+ style: { resize: e.resize, height: e.height },
50
+ value: e.modelValue,
51
+ placeholder: e.placeholder,
52
+ disabled: e.disabled,
53
+ maxlength: e.maxLength
54
+ }, a(r)[a(u).FIELD], { onInput: m }), null, 16, y),
55
+ e.feedbackText || e.maxLength ? (t(), i("div", I, [
56
+ e.feedbackText ? (t(), n(T, {
57
+ key: 0,
58
+ text: e.feedbackText,
59
+ variant: e.feedbackVariant,
60
+ "show-icon": e.showFeedbackTextIcon,
61
+ "test-id": e.testId
62
+ }, null, 8, ["text", "variant", "show-icon", "test-id"])) : l("", !0),
63
+ e.maxLength ? (t(), n(k, {
64
+ key: 1,
65
+ "current-length": a(x),
66
+ "max-length": e.maxLength
67
+ }, null, 8, ["current-length", "max-length"])) : l("", !0)
68
+ ])) : l("", !0)
69
+ ], 16));
70
+ }
71
+ });
72
+ export {
73
+ w as default
74
+ };