@ironsource/shared-ui 2.1.3-rc.1 → 2.1.3-rc.3
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.
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
- package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
- package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_6e91a617_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +41 -35
- package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
- package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
- package/components/dropdown/common/Dropdown.common.js +93 -92
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
- package/components/emptyState/v4/index.d.ts +58 -1
- package/components/forms/CardPanel.vue.d.ts +20 -0
- package/components/forms/CardPanel.vue.js +2 -2
- package/components/forms/CardPanel.vue2.js +26 -14
- package/components/forms/FormRow.vue.js +4 -4
- package/components/forms/FormRow.vue2.js +1 -1
- package/components/forms/index.d.ts +77 -1
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +83 -90
- package/components/input/v4/index.d.ts +20 -20
- package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/shared/FieldLabel.vue.d.ts +5 -0
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +63 -46
- package/components/shared/FieldMaxLength.vue.d.ts +34 -0
- package/components/shared/FieldMaxLength.vue.js +7 -0
- package/components/shared/FieldMaxLength.vue2.js +24 -0
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +64 -60
- package/components/table/common/TableContext.d.ts +1 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +71 -69
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
- package/components/table/v4/DataGridMenu.vue.js +4 -4
- package/components/table/v4/DataGridMenu.vue2.js +46 -47
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
- package/components/table/v4/index.d.ts +32 -5
- package/components/table-cells/common/Editable.common.js +15 -15
- package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +31 -22
- package/components/table-cells/v4/index.d.ts +43 -1
- package/components/textArea/v3/TextArea.vue.js +7 -0
- package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +90 -0
- package/components/textArea/v4/TextAreaV4.vue.js +7 -0
- package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
- package/components/textArea/v4/index.d.ts +118 -0
- package/components/textArea/v4/index.js +6 -0
- package/index.d.ts +538 -55
- package/index.js +67 -67
- package/package.json +3 -2
- package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
- package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
- package/components/textArea/TextArea.vue.js +0 -7
- /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
- /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
- /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
|
|
6
|
-
const l = a(!1),
|
|
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:
|
|
10
|
-
error:
|
|
9
|
+
value: n,
|
|
10
|
+
error: o,
|
|
11
11
|
confirmable: !0,
|
|
12
|
-
onChange(
|
|
13
|
-
|
|
12
|
+
onChange(t) {
|
|
13
|
+
n.value = t, o.value = e.validateFunction?.(n.value);
|
|
14
14
|
},
|
|
15
15
|
onClose: () => {
|
|
16
|
-
const
|
|
17
|
-
|
|
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:
|
|
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
|
-
|
|
27
|
+
n.value = e.cell, o.value = null;
|
|
28
28
|
};
|
|
29
|
-
return f(
|
|
30
|
-
l.value = !1, c(),
|
|
29
|
+
return f(u, () => {
|
|
30
|
+
l.value = !1, c(), r.onClose();
|
|
31
31
|
}), {
|
|
32
32
|
onEdit: i,
|
|
33
|
-
target:
|
|
33
|
+
target: u,
|
|
34
34
|
isEditing: l
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
|
-
|
|
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.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
import "../../../EditableV4.
|
|
2
|
-
import { editableCommon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
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
|
-
},
|
|
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
|
-
|
|
16
|
+
type: { default: "input" },
|
|
17
|
+
validateFunction: { type: Function, default: () => !1 },
|
|
18
|
+
displayValue: { type: Function, default: (e) => e }
|
|
16
19
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
return (
|
|
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:
|
|
24
|
+
ref: s,
|
|
22
25
|
class: "editable",
|
|
23
|
-
onClick:
|
|
24
|
-
(...
|
|
26
|
+
onClick: a[0] || (a[0] = //@ts-ignore
|
|
27
|
+
(...u) => t(n) && t(n)(...u))
|
|
25
28
|
}, [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
d(
|
|
29
|
-
], !0) : (
|
|
30
|
-
|
|
31
|
-
d(
|
|
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
|
-
|
|
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
|
-
|
|
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 () => {
|
|
@@ -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 "
|
|
2
|
-
import "
|
|
3
|
-
import f from "
|
|
4
|
-
import { TextAreaTestIdModifiers as a } from "
|
|
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,90 @@
|
|
|
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
|
+
testId?: string;
|
|
16
|
+
}>, {
|
|
17
|
+
modelValue: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
maxLength: any;
|
|
22
|
+
mandatory: boolean;
|
|
23
|
+
hoverHelpText: string;
|
|
24
|
+
hoverHelpTextPlacement: string;
|
|
25
|
+
feedbackText: string;
|
|
26
|
+
feedbackVariant: any;
|
|
27
|
+
showFeedbackTextIcon: boolean;
|
|
28
|
+
testId: string;
|
|
29
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: string) => void;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
32
|
+
modelValue?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
label?: string;
|
|
36
|
+
maxLength?: number;
|
|
37
|
+
mandatory?: boolean;
|
|
38
|
+
hoverHelpText?: string;
|
|
39
|
+
hoverHelpTextPlacement?: TooltipPositions;
|
|
40
|
+
feedbackVariant?: FeedbackVariant;
|
|
41
|
+
feedbackText?: string;
|
|
42
|
+
showFeedbackTextIcon?: boolean;
|
|
43
|
+
testId?: string;
|
|
44
|
+
}>, {
|
|
45
|
+
modelValue: string;
|
|
46
|
+
placeholder: string;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
label: string;
|
|
49
|
+
maxLength: any;
|
|
50
|
+
mandatory: boolean;
|
|
51
|
+
hoverHelpText: string;
|
|
52
|
+
hoverHelpTextPlacement: string;
|
|
53
|
+
feedbackText: string;
|
|
54
|
+
feedbackVariant: any;
|
|
55
|
+
showFeedbackTextIcon: boolean;
|
|
56
|
+
testId: string;
|
|
57
|
+
}>>> & {
|
|
58
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
59
|
+
}, {
|
|
60
|
+
label: string;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
mandatory: boolean;
|
|
63
|
+
testId: string;
|
|
64
|
+
modelValue: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
hoverHelpText: string;
|
|
67
|
+
hoverHelpTextPlacement: TooltipPositions;
|
|
68
|
+
feedbackText: string;
|
|
69
|
+
feedbackVariant: FeedbackVariant;
|
|
70
|
+
maxLength: number;
|
|
71
|
+
showFeedbackTextIcon: boolean;
|
|
72
|
+
}>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
75
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
76
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
77
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
78
|
+
} : {
|
|
79
|
+
type: import('vue').PropType<T[K]>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
type __VLS_WithDefaults<P, D> = {
|
|
84
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
85
|
+
default: D[K];
|
|
86
|
+
}> : P[K];
|
|
87
|
+
};
|
|
88
|
+
type __VLS_Prettify<T> = {
|
|
89
|
+
[K in keyof T]: T[K];
|
|
90
|
+
} & {};
|
|
@@ -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_6e91a617_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-6e91a617"]]);
|
|
5
|
+
export {
|
|
6
|
+
a as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_6e91a617_lang.css"; import { defineComponent as x, computed as b, openBlock as t, createElementBlock as c, mergeProps as i, unref as a, createBlock as n, createCommentVNode as d, createElementVNode as v } from "vue";
|
|
2
|
+
import g 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 o } from "../../../testids/index.js";
|
|
6
|
+
import { useTestIdAttrs as V } from "../../../utils/testIds.js";
|
|
7
|
+
const I = ["value", "placeholder", "disabled", "maxlength"], y = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "footer"
|
|
10
|
+
}, L = {
|
|
11
|
+
inheritAttrs: !1
|
|
12
|
+
}, E = /* @__PURE__ */ x({
|
|
13
|
+
...L,
|
|
14
|
+
__name: "TextAreaV4",
|
|
15
|
+
props: {
|
|
16
|
+
modelValue: { default: "" },
|
|
17
|
+
placeholder: { default: "" },
|
|
18
|
+
disabled: { type: Boolean, default: !1 },
|
|
19
|
+
label: { default: "" },
|
|
20
|
+
maxLength: { default: null },
|
|
21
|
+
mandatory: { type: Boolean, default: !1 },
|
|
22
|
+
hoverHelpText: { default: "" },
|
|
23
|
+
hoverHelpTextPlacement: { default: "top" },
|
|
24
|
+
feedbackVariant: { default: null },
|
|
25
|
+
feedbackText: { default: "" },
|
|
26
|
+
showFeedbackTextIcon: { type: Boolean, default: !0 },
|
|
27
|
+
testId: { default: "" }
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelValue"],
|
|
30
|
+
setup(e, { emit: m }) {
|
|
31
|
+
const r = e, h = (l) => {
|
|
32
|
+
m("update:modelValue", l.target.value);
|
|
33
|
+
}, f = b(() => (r.modelValue || "").length), u = V(r.testId, o);
|
|
34
|
+
return (l, s) => (t(), c("div", i({ class: "textarea-field" }, a(u)[a(o).WRAPPER]), [
|
|
35
|
+
e.label ? (t(), n(g, {
|
|
36
|
+
key: 0,
|
|
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"])) : d("", !0),
|
|
44
|
+
v("textarea", i({ ...l.$attrs, ...a(u)[a(o).FIELD] }, {
|
|
45
|
+
class: ["textarea", {
|
|
46
|
+
"textarea--disabled": e.disabled,
|
|
47
|
+
[`textarea--variant-${e.feedbackVariant}`]: !0
|
|
48
|
+
}],
|
|
49
|
+
value: e.modelValue,
|
|
50
|
+
placeholder: e.placeholder,
|
|
51
|
+
disabled: e.disabled,
|
|
52
|
+
maxlength: e.maxLength,
|
|
53
|
+
onInput: h
|
|
54
|
+
}), null, 16, I),
|
|
55
|
+
e.feedbackText || e.maxLength ? (t(), c("div", y, [
|
|
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"])) : d("", !0),
|
|
63
|
+
e.maxLength ? (t(), n(k, {
|
|
64
|
+
key: 1,
|
|
65
|
+
"current-length": a(f),
|
|
66
|
+
"max-length": e.maxLength
|
|
67
|
+
}, null, 8, ["current-length", "max-length"])) : d("", !0)
|
|
68
|
+
])) : d("", !0)
|
|
69
|
+
], 16));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
E as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
disabled: {
|
|
7
|
+
type: import("vue").PropType<boolean>;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
mandatory: {
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
testId: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
hoverHelpText: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
hoverHelpTextPlacement: {
|
|
31
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
feedbackText: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
feedbackVariant: {
|
|
39
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
maxLength: {
|
|
43
|
+
type: import("vue").PropType<number>;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
showFeedbackTextIcon: {
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:modelValue": (value: string) => void;
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
label: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: import("vue").PropType<boolean>;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
mandatory: {
|
|
62
|
+
type: import("vue").PropType<boolean>;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
testId: {
|
|
66
|
+
type: import("vue").PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
modelValue: {
|
|
70
|
+
type: import("vue").PropType<string>;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
placeholder: {
|
|
74
|
+
type: import("vue").PropType<string>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
hoverHelpText: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
hoverHelpTextPlacement: {
|
|
82
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
feedbackText: {
|
|
86
|
+
type: import("vue").PropType<string>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
feedbackVariant: {
|
|
90
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
maxLength: {
|
|
94
|
+
type: import("vue").PropType<number>;
|
|
95
|
+
default: any;
|
|
96
|
+
};
|
|
97
|
+
showFeedbackTextIcon: {
|
|
98
|
+
type: import("vue").PropType<boolean>;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
}>> & {
|
|
102
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
103
|
+
}, {
|
|
104
|
+
label: string;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
mandatory: boolean;
|
|
107
|
+
testId: string;
|
|
108
|
+
modelValue: string;
|
|
109
|
+
placeholder: string;
|
|
110
|
+
hoverHelpText: string;
|
|
111
|
+
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
112
|
+
feedbackText: string;
|
|
113
|
+
feedbackVariant: "success" | "warning" | "error";
|
|
114
|
+
maxLength: number;
|
|
115
|
+
showFeedbackTextIcon: boolean;
|
|
116
|
+
}>[];
|
|
117
|
+
export { default as TextArea } from './TextAreaV4.vue';
|
|
118
|
+
export { TextAreaTypes };
|