@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
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
noPadding?: boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
hoverHelpText?: string;
|
|
6
|
+
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";
|
|
3
7
|
}>, {
|
|
4
8
|
noPadding: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
description: string;
|
|
11
|
+
hoverHelpText: string;
|
|
12
|
+
hoverHelpTextPlacement: string;
|
|
5
13
|
}>, {}, 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<{
|
|
6
14
|
noPadding?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
hoverHelpText?: string;
|
|
18
|
+
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";
|
|
7
19
|
}>, {
|
|
8
20
|
noPadding: boolean;
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
hoverHelpText: string;
|
|
24
|
+
hoverHelpTextPlacement: string;
|
|
9
25
|
}>>>, {
|
|
26
|
+
label: string;
|
|
27
|
+
description: string;
|
|
28
|
+
hoverHelpText: string;
|
|
29
|
+
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";
|
|
10
30
|
noPadding: boolean;
|
|
11
31
|
}>, {
|
|
12
32
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CardPanel.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../CardPanel.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7d0acb11"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
import "../../CardPanel.
|
|
2
|
-
|
|
1
|
+
import "../../CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css"; import { defineComponent as r, ref as a, onMounted as d, openBlock as n, createElementBlock as c, normalizeClass as i, createBlock as s, createCommentVNode as p, renderSlot as u } from "vue";
|
|
2
|
+
import f from "../shared/FieldLabel.vue.js";
|
|
3
|
+
const x = /* @__PURE__ */ r({
|
|
3
4
|
__name: "CardPanel",
|
|
4
5
|
props: {
|
|
5
|
-
noPadding: { type: Boolean, default: !1 }
|
|
6
|
+
noPadding: { type: Boolean, default: !1 },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
description: { default: "" },
|
|
9
|
+
hoverHelpText: { default: "" },
|
|
10
|
+
hoverHelpTextPlacement: { default: "top" }
|
|
6
11
|
},
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
}), (o,
|
|
12
|
+
setup(e) {
|
|
13
|
+
const l = a(null), t = a(!1);
|
|
14
|
+
return d(() => {
|
|
15
|
+
t.value = l.value?.nextSibling?.classList?.contains("card-panel") || null;
|
|
16
|
+
}), (o, h) => (n(), c("div", {
|
|
12
17
|
ref_key: "rootRef",
|
|
13
|
-
ref:
|
|
14
|
-
class:
|
|
15
|
-
"card-panel--no-padding":
|
|
16
|
-
"card-panel--has-next":
|
|
18
|
+
ref: l,
|
|
19
|
+
class: i(["card-panel", {
|
|
20
|
+
"card-panel--no-padding": e.noPadding,
|
|
21
|
+
"card-panel--has-next": t.value
|
|
17
22
|
}])
|
|
18
23
|
}, [
|
|
19
|
-
|
|
24
|
+
e.label ? (n(), s(f, {
|
|
25
|
+
key: 0,
|
|
26
|
+
label: e.label,
|
|
27
|
+
"hover-help-text": e.hoverHelpText,
|
|
28
|
+
"hover-help-text-placement": e.hoverHelpTextPlacement,
|
|
29
|
+
description: e.description
|
|
30
|
+
}, null, 8, ["label", "hover-help-text", "hover-help-text-placement", "description"])) : p("", !0),
|
|
31
|
+
u(o.$slots, "default", {}, void 0, !0)
|
|
20
32
|
], 2));
|
|
21
33
|
}
|
|
22
34
|
});
|
|
23
35
|
export {
|
|
24
|
-
|
|
36
|
+
x as default
|
|
25
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormRow.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../FormRow.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-39f48410"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../FormRow.
|
|
1
|
+
import "../../FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css"; import { defineComponent as c, openBlock as t, createElementBlock as a, createVNode as i, unref as o, withCtx as l, createTextVNode as d, toDisplayString as m, createBlock as u, createCommentVNode as r, createElementVNode as f, renderSlot as y } from "vue";
|
|
2
2
|
import n from "../typography/v4/Typography.vue.js";
|
|
3
3
|
const p = { class: "form-row" }, _ = ["data-testid"], h = { class: "content" }, B = /* @__PURE__ */ c({
|
|
4
4
|
__name: "FormRow",
|
|
@@ -7,13 +7,33 @@ declare const FormCardTypes: () => (({
|
|
|
7
7
|
$: import("vue").ComponentInternalInstance;
|
|
8
8
|
$data: {};
|
|
9
9
|
$props: Partial<{
|
|
10
|
+
label: string;
|
|
11
|
+
description: string;
|
|
12
|
+
hoverHelpText: string;
|
|
13
|
+
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";
|
|
10
14
|
noPadding: boolean;
|
|
11
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
label: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
description: {
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
hoverHelpText: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
hoverHelpTextPlacement: {
|
|
29
|
+
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">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
12
32
|
noPadding: {
|
|
13
33
|
type: import("vue").PropType<boolean>;
|
|
14
34
|
default: boolean;
|
|
15
35
|
};
|
|
16
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "noPadding">;
|
|
36
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "description" | "hoverHelpText" | "hoverHelpTextPlacement" | "noPadding">;
|
|
17
37
|
$attrs: {
|
|
18
38
|
[x: string]: unknown;
|
|
19
39
|
};
|
|
@@ -28,11 +48,31 @@ declare const FormCardTypes: () => (({
|
|
|
28
48
|
$emit: (event: string, ...args: any[]) => void;
|
|
29
49
|
$el: any;
|
|
30
50
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
label: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
description: {
|
|
56
|
+
type: import("vue").PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
hoverHelpText: {
|
|
60
|
+
type: import("vue").PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
hoverHelpTextPlacement: {
|
|
64
|
+
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">;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
31
67
|
noPadding: {
|
|
32
68
|
type: import("vue").PropType<boolean>;
|
|
33
69
|
default: boolean;
|
|
34
70
|
};
|
|
35
71
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
72
|
+
label: string;
|
|
73
|
+
description: string;
|
|
74
|
+
hoverHelpText: string;
|
|
75
|
+
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";
|
|
36
76
|
noPadding: boolean;
|
|
37
77
|
}, {}, string> & {
|
|
38
78
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -55,6 +95,22 @@ declare const FormCardTypes: () => (({
|
|
|
55
95
|
$nextTick: typeof import("vue").nextTick;
|
|
56
96
|
$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;
|
|
57
97
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
98
|
+
label: {
|
|
99
|
+
type: import("vue").PropType<string>;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
description: {
|
|
103
|
+
type: import("vue").PropType<string>;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
hoverHelpText: {
|
|
107
|
+
type: import("vue").PropType<string>;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
hoverHelpTextPlacement: {
|
|
111
|
+
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">;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
58
114
|
noPadding: {
|
|
59
115
|
type: import("vue").PropType<boolean>;
|
|
60
116
|
default: boolean;
|
|
@@ -64,11 +120,31 @@ declare const FormCardTypes: () => (({
|
|
|
64
120
|
__isTeleport?: never;
|
|
65
121
|
__isSuspense?: never;
|
|
66
122
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
123
|
+
label: {
|
|
124
|
+
type: import("vue").PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
description: {
|
|
128
|
+
type: import("vue").PropType<string>;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
hoverHelpText: {
|
|
132
|
+
type: import("vue").PropType<string>;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
hoverHelpTextPlacement: {
|
|
136
|
+
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">;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
67
139
|
noPadding: {
|
|
68
140
|
type: import("vue").PropType<boolean>;
|
|
69
141
|
default: boolean;
|
|
70
142
|
};
|
|
71
143
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
144
|
+
label: string;
|
|
145
|
+
description: string;
|
|
146
|
+
hoverHelpText: string;
|
|
147
|
+
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";
|
|
72
148
|
noPadding: boolean;
|
|
73
149
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
74
150
|
$slots: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InlineCopy.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../InlineCopy.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2a9e8782"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../InlineCopy.
|
|
1
|
+
import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css"; import { defineComponent as d, computed as f, openBlock as a, createElementBlock as y, createBlock as x, unref as e, mergeProps as c, withCtx as s, createTextVNode as C, toDisplayString as T, createCommentVNode as z, createVNode as l } from "vue";
|
|
2
2
|
import I from "../icon/v4/IconV4.vue.js";
|
|
3
3
|
import h from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import { useClipboard as k } from "@vueuse/core";
|
|
@@ -45,7 +45,7 @@ const M = /* @__PURE__ */ d({
|
|
|
45
45
|
]),
|
|
46
46
|
_: 1
|
|
47
47
|
}, 16, ["style"])),
|
|
48
|
-
l(e(V), { text: "Copy to
|
|
48
|
+
l(e(V), { text: "Copy to clipboard" }, {
|
|
49
49
|
default: s(() => [
|
|
50
50
|
l(e(I), c({
|
|
51
51
|
class: "icon-copy",
|
|
@@ -128,13 +128,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
128
128
|
hoverHelpTextPlacement: TooltipPositions;
|
|
129
129
|
feedbackText: string;
|
|
130
130
|
feedbackVariant: FeedbackVariant;
|
|
131
|
+
maxLength: number;
|
|
131
132
|
viewOnly: boolean;
|
|
132
133
|
labelDirection: LabelDirection;
|
|
133
134
|
hideNumberArrows: boolean;
|
|
134
135
|
step: number;
|
|
135
136
|
onlyDigits: boolean;
|
|
136
137
|
suffix: string;
|
|
137
|
-
maxLength: number;
|
|
138
138
|
showApply: boolean;
|
|
139
139
|
inlineError: boolean;
|
|
140
140
|
inlineErrorText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextField.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextField.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-dca4c102"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import "../../../TextField.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css"; import { defineComponent as K, computed as h, ref as M, openBlock as l, createElementBlock as r, mergeProps as y, unref as t, createBlock as d, createCommentVNode as n, createElementVNode as L, normalizeClass as G, renderSlot as V, withCtx as b, createTextVNode as C, toDisplayString as E, withKeys as W, withModifiers as F, createVNode as p } from "vue";
|
|
2
|
+
import v from "../../icon/v4/IconV4.vue.js";
|
|
3
|
+
import j from "../../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
import $ from "../../typography/v4/Typography.vue.js";
|
|
5
5
|
import { InputTestIdModifiers as f } from "../../../testids/index.js";
|
|
6
|
-
import { inputCommon as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
6
|
+
import { inputCommon as q } from "../common/Input.common.js";
|
|
7
|
+
import J from "../../shared/FieldLabel.vue.js";
|
|
8
|
+
import Q from "../../shared/FieldHelpText.vue.js";
|
|
9
|
+
import U from "../../shared/FieldMaxLength.vue.js";
|
|
10
|
+
import { useTestIdAttrs as X } from "../../../utils/testIds.js";
|
|
11
|
+
const Y = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "icon-container icon-before"
|
|
13
|
-
},
|
|
14
|
+
}, Z = ["value", "placeholder", "disabled", "type", "step", "maxlength"], _ = ["onClick"], ee = {
|
|
14
15
|
key: 3,
|
|
15
16
|
class: "inline-error"
|
|
16
|
-
},
|
|
17
|
+
}, te = {
|
|
17
18
|
key: 6,
|
|
18
19
|
class: "icon-container icon-after"
|
|
19
|
-
},
|
|
20
|
+
}, le = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "footer"
|
|
22
|
-
},
|
|
23
|
-
key: 1,
|
|
24
|
-
class: "max-length"
|
|
25
|
-
}, oe = /* @__PURE__ */ Z(() => /* @__PURE__ */ g("span", { class: "max-length__divider" }, "/", -1)), de = {
|
|
23
|
+
}, ae = {
|
|
26
24
|
inheritAttrs: !1
|
|
27
|
-
},
|
|
28
|
-
...
|
|
25
|
+
}, ye = /* @__PURE__ */ K({
|
|
26
|
+
...ae,
|
|
29
27
|
__name: "TextField",
|
|
30
28
|
props: {
|
|
31
29
|
modelValue: { default: "" },
|
|
@@ -55,31 +53,31 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
|
|
|
55
53
|
inlineErrorText: { default: "" }
|
|
56
54
|
},
|
|
57
55
|
emits: ["update:modelValue", "apply"],
|
|
58
|
-
setup(e, { expose:
|
|
59
|
-
const s = e, c =
|
|
60
|
-
s.showApply ?
|
|
61
|
-
},
|
|
62
|
-
onConfirm:
|
|
63
|
-
onEnter:
|
|
64
|
-
inputRef:
|
|
65
|
-
isFocused:
|
|
66
|
-
showLabelInside:
|
|
67
|
-
api:
|
|
68
|
-
labelText:
|
|
69
|
-
sizeClass:
|
|
70
|
-
handleInput:
|
|
71
|
-
handleKeypress:
|
|
72
|
-
} =
|
|
73
|
-
return
|
|
74
|
-
manualFocus:
|
|
75
|
-
}), (
|
|
56
|
+
setup(e, { expose: P, emit: k }) {
|
|
57
|
+
const s = e, c = X(s.testId, f), z = () => {
|
|
58
|
+
s.showApply ? k("apply") : o?.confirmable && D();
|
|
59
|
+
}, O = () => T.value.focus(), {
|
|
60
|
+
onConfirm: D,
|
|
61
|
+
onEnter: w,
|
|
62
|
+
inputRef: T,
|
|
63
|
+
isFocused: x,
|
|
64
|
+
showLabelInside: g,
|
|
65
|
+
api: o,
|
|
66
|
+
labelText: N,
|
|
67
|
+
sizeClass: S,
|
|
68
|
+
handleInput: I,
|
|
69
|
+
handleKeypress: B
|
|
70
|
+
} = q(s, k), A = h(() => o.value?.value ?? s.modelValue), H = h(() => (A.value || "").length), m = M(!1), R = h(() => m.value && s.type === "password" ? "text" : s.type);
|
|
71
|
+
return P({
|
|
72
|
+
manualFocus: O
|
|
73
|
+
}), (u, a) => (l(), r("div", y({
|
|
76
74
|
class: {
|
|
77
75
|
"input-with-label-container": !0,
|
|
78
76
|
disabled: e.disabled,
|
|
79
77
|
[`variant-${e.feedbackVariant}`]: !0
|
|
80
78
|
}
|
|
81
79
|
}, t(c)[t(f).WRAPPER]), [
|
|
82
|
-
e.label && e.labelDirection !== "inside" ? (l(),
|
|
80
|
+
e.label && e.labelDirection !== "inside" ? (l(), d(J, {
|
|
83
81
|
key: 0,
|
|
84
82
|
label: e.label,
|
|
85
83
|
mandatory: e.mandatory,
|
|
@@ -88,72 +86,72 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
|
|
|
88
86
|
disabled: e.disabled,
|
|
89
87
|
"test-id": e.testId
|
|
90
88
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
91
|
-
|
|
92
|
-
class:
|
|
89
|
+
L("div", {
|
|
90
|
+
class: G({
|
|
93
91
|
"input-container": !0,
|
|
94
|
-
"label-inside": t(
|
|
95
|
-
focused: t(
|
|
92
|
+
"label-inside": t(g),
|
|
93
|
+
focused: t(x)
|
|
96
94
|
})
|
|
97
95
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
u.$slots.iconBefore ? (l(), r("div", Y, [
|
|
97
|
+
V(u.$slots, "iconBefore", {}, void 0, !0)
|
|
100
98
|
])) : n("", !0),
|
|
101
|
-
e.prefix ? (l(),
|
|
99
|
+
e.prefix ? (l(), d(t($), {
|
|
102
100
|
key: 1,
|
|
103
101
|
class: "prefix-text",
|
|
104
102
|
variant: "body1"
|
|
105
103
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
104
|
+
default: b(() => [
|
|
105
|
+
C(E(e.prefix), 1)
|
|
108
106
|
]),
|
|
109
107
|
_: 1
|
|
110
108
|
})) : n("", !0),
|
|
111
|
-
|
|
109
|
+
L("input", y({ ...u.$attrs, ...t(c)[t(f).FIELD] }, {
|
|
112
110
|
ref_key: "inputRef",
|
|
113
|
-
ref:
|
|
114
|
-
value: t(
|
|
115
|
-
placeholder: t(
|
|
111
|
+
ref: T,
|
|
112
|
+
value: t(A),
|
|
113
|
+
placeholder: t(N),
|
|
116
114
|
disabled: e.disabled || e.viewOnly,
|
|
117
115
|
type: t(R),
|
|
118
116
|
class: ["input", {
|
|
119
|
-
[t(
|
|
117
|
+
[t(S)]: !0,
|
|
120
118
|
"view-only": e.viewOnly,
|
|
121
|
-
"label-inside": t(
|
|
119
|
+
"label-inside": t(g),
|
|
122
120
|
"hide-arrows": e.hideNumberArrows,
|
|
123
121
|
"input-type": e.type
|
|
124
122
|
}],
|
|
125
123
|
step: e.step,
|
|
126
124
|
maxlength: e.maxLength,
|
|
127
125
|
onInput: a[0] || (a[0] = //@ts-ignore
|
|
128
|
-
(...i) => t(
|
|
129
|
-
onFocus: a[1] || (a[1] = (i) =>
|
|
130
|
-
onBlur: a[2] || (a[2] = (i) =>
|
|
131
|
-
onKeyup: a[3] || (a[3] = W(
|
|
126
|
+
(...i) => t(I) && t(I)(...i)),
|
|
127
|
+
onFocus: a[1] || (a[1] = (i) => x.value = !0),
|
|
128
|
+
onBlur: a[2] || (a[2] = (i) => x.value = !1),
|
|
129
|
+
onKeyup: a[3] || (a[3] = W(F(
|
|
132
130
|
//@ts-ignore
|
|
133
|
-
(...i) => t(
|
|
131
|
+
(...i) => t(w) && t(w)(...i),
|
|
134
132
|
["prevent"]
|
|
135
133
|
), ["enter"])),
|
|
136
134
|
onKeypress: a[4] || (a[4] = //@ts-ignore
|
|
137
|
-
(...i) => t(
|
|
138
|
-
}), null, 16,
|
|
139
|
-
e.showApply || t(
|
|
135
|
+
(...i) => t(B) && t(B)(...i))
|
|
136
|
+
}), null, 16, Z),
|
|
137
|
+
e.showApply || t(o)?.confirmable && !t(o)?.error?.value ? (l(), r("div", {
|
|
140
138
|
key: 2,
|
|
141
139
|
class: "apply-button",
|
|
142
|
-
onClick:
|
|
140
|
+
onClick: F(z, ["stop", "prevent"])
|
|
143
141
|
}, [
|
|
144
|
-
|
|
142
|
+
p(t(v), {
|
|
145
143
|
name: "check",
|
|
146
144
|
size: "20px"
|
|
147
145
|
})
|
|
148
|
-
], 8,
|
|
149
|
-
e.inlineError || t(
|
|
150
|
-
|
|
151
|
-
disabled: !e.inlineErrorText && !t(
|
|
152
|
-
text: e.inlineErrorText || t(
|
|
146
|
+
], 8, _)) : n("", !0),
|
|
147
|
+
e.inlineError || t(o)?.error?.value ? (l(), r("div", ee, [
|
|
148
|
+
p(t(j), y({
|
|
149
|
+
disabled: !e.inlineErrorText && !t(o)?.error?.value,
|
|
150
|
+
text: e.inlineErrorText || t(o)?.error?.value,
|
|
153
151
|
"test-id": e.testId
|
|
154
152
|
}, t(c)[t(f).TOOLTIP]), {
|
|
155
|
-
default:
|
|
156
|
-
|
|
153
|
+
default: b(() => [
|
|
154
|
+
p(t(v), {
|
|
157
155
|
name: "warning-circle",
|
|
158
156
|
size: "16px"
|
|
159
157
|
})
|
|
@@ -161,58 +159,53 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
|
|
|
161
159
|
_: 1
|
|
162
160
|
}, 16, ["disabled", "text", "test-id"])
|
|
163
161
|
])) : n("", !0),
|
|
164
|
-
e.suffix ? (l(),
|
|
162
|
+
e.suffix ? (l(), d(t($), {
|
|
165
163
|
key: 4,
|
|
166
164
|
class: "suffix-text",
|
|
167
165
|
variant: "body1"
|
|
168
166
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
167
|
+
default: b(() => [
|
|
168
|
+
C(E(e.suffix), 1)
|
|
171
169
|
]),
|
|
172
170
|
_: 1
|
|
173
171
|
})) : n("", !0),
|
|
174
|
-
e.type === "password" ? (l(),
|
|
172
|
+
e.type === "password" ? (l(), r("div", y({
|
|
175
173
|
key: 5,
|
|
176
174
|
class: "password-visibility-toggle"
|
|
177
175
|
}, t(c)[t(f).TOGGLE_PASSWORD], {
|
|
178
176
|
onClick: a[5] || (a[5] = (i) => m.value = !m.value)
|
|
179
177
|
}), [
|
|
180
|
-
m.value ? (l(),
|
|
178
|
+
m.value ? (l(), d(t(v), {
|
|
181
179
|
key: 0,
|
|
182
180
|
name: "eye",
|
|
183
181
|
size: "16px"
|
|
184
|
-
})) : (l(),
|
|
182
|
+
})) : (l(), d(t(v), {
|
|
185
183
|
key: 1,
|
|
186
184
|
name: "eye-slash",
|
|
187
185
|
size: "16px"
|
|
188
186
|
}))
|
|
189
187
|
], 16)) : n("", !0),
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
u.$slots.iconAfter ? (l(), r("div", te, [
|
|
189
|
+
V(u.$slots, "iconAfter", {}, void 0, !0)
|
|
192
190
|
])) : n("", !0)
|
|
193
191
|
], 2),
|
|
194
|
-
e.feedbackText || e.maxLength ? (l(),
|
|
195
|
-
e.feedbackText ? (l(),
|
|
192
|
+
e.feedbackText || e.maxLength ? (l(), r("div", le, [
|
|
193
|
+
e.feedbackText ? (l(), d(Q, {
|
|
196
194
|
key: 0,
|
|
197
195
|
text: e.feedbackText,
|
|
198
196
|
variant: e.feedbackVariant,
|
|
199
197
|
"show-icon": e.showFeedbackTextIcon,
|
|
200
198
|
"test-id": e.testId
|
|
201
199
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
|
|
202
|
-
e.maxLength ? (l(),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
h(" " + x(e.maxLength), 1)
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
})
|
|
211
|
-
])) : n("", !0)
|
|
200
|
+
e.maxLength ? (l(), d(U, {
|
|
201
|
+
key: 1,
|
|
202
|
+
"current-length": t(H),
|
|
203
|
+
"max-length": e.maxLength
|
|
204
|
+
}, null, 8, ["current-length", "max-length"])) : n("", !0)
|
|
212
205
|
])) : n("", !0)
|
|
213
206
|
], 16));
|
|
214
207
|
}
|
|
215
208
|
});
|
|
216
209
|
export {
|
|
217
|
-
|
|
210
|
+
ye as default
|
|
218
211
|
};
|