@ironsource/shared-ui 2.1.7-rc.5 → 2.1.7-rc.6
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/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +57 -45
- package/components/autocomplete/index.d.ts +20 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +151 -147
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +70 -53
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
- package/components/dropdown/v4/index.d.ts +78 -2
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +6 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +95 -90
- package/components/input/v4/index.d.ts +20 -1
- package/components/popover/common/Popover.common.d.ts +6 -0
- package/components/popover/common/Popover.common.js +17 -0
- package/components/popover/v3/Popover.vue.js +8 -0
- package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
- package/components/popover/v4/PopoverV4.vue.js +7 -0
- package/components/popover/v4/PopoverV4.vue2.js +54 -0
- package/components/popover/v4/index.d.ts +209 -0
- package/components/popover/v4/index.js +6 -0
- package/components/shared/FieldMaxLength.vue.js +3 -3
- package/components/shared/FieldMaxLength.vue2.js +2 -2
- package/components/shared/commonTypes.d.ts +2 -0
- package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
- package/components/textArea/v4/index.d.ts +9 -0
- package/index.d.ts +628 -7
- package/index.js +70 -70
- package/package.json +7 -3
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
- package/components/popover/Popover.vue.js +0 -8
- /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
- /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/popover/{index.js → v3/index.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "../../../TextField.
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; import { defineComponent as J, computed as f, ref as Q, openBlock as l, createElementBlock as d, mergeProps as c, unref as t, createBlock as r, createCommentVNode as n, createElementVNode as A, normalizeClass as E, renderSlot as F, withCtx as b, createTextVNode as V, toDisplayString as $, withKeys as U, withModifiers as z, normalizeProps as O, createVNode as p } from "vue";
|
|
2
2
|
import v from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { InputTestIdModifiers as
|
|
7
|
-
import { inputCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
const
|
|
4
|
+
import X from "../../tooltip/v4/TooltipV4.vue.js";
|
|
5
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { InputTestIdModifiers as m } from "../../../testids/index.js";
|
|
7
|
+
import { inputCommon as Y } from "../common/Input.common.js";
|
|
8
|
+
import Z from "../../shared/FieldLabel.vue.js";
|
|
9
|
+
import _ from "../../shared/FieldHelpText.vue.js";
|
|
10
|
+
import N from "../../shared/FieldMaxLength.vue.js";
|
|
11
|
+
import { useTestIdAttrs as ee } from "../../../utils/testIds.js";
|
|
12
|
+
const te = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "icon-container icon-before"
|
|
15
|
-
},
|
|
16
|
-
key:
|
|
15
|
+
}, le = ["maxlength", "value", "placeholder", "disabled", "type", "step"], ae = ["onClick"], ne = {
|
|
16
|
+
key: 4,
|
|
17
17
|
class: "inline-error"
|
|
18
|
-
},
|
|
19
|
-
key:
|
|
18
|
+
}, oe = {
|
|
19
|
+
key: 7,
|
|
20
20
|
class: "icon-container icon-after"
|
|
21
|
-
},
|
|
21
|
+
}, ie = {
|
|
22
22
|
inheritAttrs: !1
|
|
23
|
-
},
|
|
24
|
-
...
|
|
23
|
+
}, be = /* @__PURE__ */ J({
|
|
24
|
+
...ie,
|
|
25
25
|
__name: "TextField",
|
|
26
26
|
props: {
|
|
27
27
|
modelValue: { default: "" },
|
|
@@ -47,37 +47,45 @@ const Y = {
|
|
|
47
47
|
prefix: { default: "" },
|
|
48
48
|
suffix: { default: "" },
|
|
49
49
|
maxLength: { default: null },
|
|
50
|
+
maxLengthCounterPosition: { default: "inside" },
|
|
50
51
|
showApply: { type: Boolean, default: !1 },
|
|
51
52
|
inlineError: { type: Boolean, default: !1 },
|
|
52
53
|
inlineErrorText: { default: "" },
|
|
53
54
|
inlineErrorTextPlacement: { default: "top" }
|
|
54
55
|
},
|
|
55
56
|
emits: ["update:modelValue", "apply"],
|
|
56
|
-
setup(e, { expose:
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
onConfirm:
|
|
57
|
+
setup(e, { expose: S, emit: k }) {
|
|
58
|
+
const o = e, y = ee(o.testId, m), H = () => {
|
|
59
|
+
o.showApply ? k("apply") : s?.confirmable && K();
|
|
60
|
+
}, R = () => g.value.focus(), {
|
|
61
|
+
onConfirm: K,
|
|
61
62
|
onEnter: T,
|
|
62
|
-
inputRef:
|
|
63
|
-
isFocused:
|
|
64
|
-
showLabelInside:
|
|
65
|
-
api:
|
|
66
|
-
labelText:
|
|
67
|
-
sizeClass:
|
|
68
|
-
handleInput:
|
|
69
|
-
handleKeypress:
|
|
70
|
-
} =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}),
|
|
63
|
+
inputRef: g,
|
|
64
|
+
isFocused: h,
|
|
65
|
+
showLabelInside: w,
|
|
66
|
+
api: s,
|
|
67
|
+
labelText: M,
|
|
68
|
+
sizeClass: G,
|
|
69
|
+
handleInput: L,
|
|
70
|
+
handleKeypress: I
|
|
71
|
+
} = Y(o, k), P = f(() => s.value?.value ?? o.modelValue), W = f(() => (P.value || "").length), B = f(() => ({
|
|
72
|
+
currentLength: W.value,
|
|
73
|
+
maxLength: o.maxLength
|
|
74
|
+
})), C = f(
|
|
75
|
+
() => o.maxLength && o.maxLengthCounterPosition === "outside"
|
|
76
|
+
), j = f(
|
|
77
|
+
() => o.feedbackText || C.value
|
|
78
|
+
), x = Q(!1), q = f(() => x.value && o.type === "password" ? "text" : o.type);
|
|
79
|
+
return S({
|
|
80
|
+
manualFocus: R
|
|
81
|
+
}), (u, a) => (l(), d("div", c({
|
|
74
82
|
class: {
|
|
75
83
|
"input-with-label-container": !0,
|
|
76
84
|
disabled: e.disabled,
|
|
77
85
|
[`variant-${e.feedbackVariant}`]: !0
|
|
78
86
|
}
|
|
79
|
-
}, t(
|
|
80
|
-
e.label && e.labelDirection !== "inside" ? (l(),
|
|
87
|
+
}, t(y)[t(m).WRAPPER]), [
|
|
88
|
+
e.label && e.labelDirection !== "inside" ? (l(), r(Z, {
|
|
81
89
|
key: 0,
|
|
82
90
|
label: e.label,
|
|
83
91
|
mandatory: e.mandatory,
|
|
@@ -86,73 +94,74 @@ const Y = {
|
|
|
86
94
|
disabled: e.disabled,
|
|
87
95
|
"test-id": e.testId
|
|
88
96
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
89
|
-
|
|
90
|
-
class:
|
|
97
|
+
A("div", {
|
|
98
|
+
class: E({
|
|
91
99
|
"input-container": !0,
|
|
92
|
-
"label-inside": t(
|
|
93
|
-
focused: t(
|
|
100
|
+
"label-inside": t(w),
|
|
101
|
+
focused: t(h)
|
|
94
102
|
})
|
|
95
103
|
}, [
|
|
96
|
-
u.$slots.iconBefore ? (l(),
|
|
97
|
-
|
|
104
|
+
u.$slots.iconBefore ? (l(), d("div", te, [
|
|
105
|
+
F(u.$slots, "iconBefore", {}, void 0, !0)
|
|
98
106
|
])) : n("", !0),
|
|
99
|
-
e.prefix ? (l(),
|
|
107
|
+
e.prefix ? (l(), r(t(D), {
|
|
100
108
|
key: 1,
|
|
101
109
|
class: "prefix-text",
|
|
102
110
|
variant: "body1"
|
|
103
111
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
V(
|
|
112
|
+
default: b(() => [
|
|
113
|
+
V($(e.prefix), 1)
|
|
106
114
|
]),
|
|
107
115
|
_: 1
|
|
108
116
|
})) : n("", !0),
|
|
109
|
-
|
|
117
|
+
A("input", c({
|
|
110
118
|
ref_key: "inputRef",
|
|
111
|
-
ref:
|
|
119
|
+
ref: g,
|
|
112
120
|
maxlength: e.maxLength
|
|
113
|
-
}, { ...u.$attrs, ...t(
|
|
114
|
-
value: t(
|
|
115
|
-
placeholder: t(
|
|
121
|
+
}, { ...u.$attrs, ...t(y)[t(m).FIELD] }, {
|
|
122
|
+
value: t(P),
|
|
123
|
+
placeholder: t(M),
|
|
116
124
|
disabled: e.disabled || e.viewOnly,
|
|
117
|
-
type: t(
|
|
125
|
+
type: t(q),
|
|
118
126
|
class: ["input", {
|
|
119
|
-
[t(
|
|
127
|
+
[t(G)]: !0,
|
|
120
128
|
"view-only": e.viewOnly,
|
|
121
|
-
"label-inside": t(
|
|
129
|
+
"label-inside": t(w),
|
|
122
130
|
"hide-arrows": e.hideNumberArrows,
|
|
123
131
|
"input-type": e.type
|
|
124
132
|
}],
|
|
125
133
|
step: e.step,
|
|
126
134
|
onInput: a[0] || (a[0] = //@ts-ignore
|
|
127
|
-
(...i) => t(
|
|
128
|
-
onFocus: a[1] || (a[1] = (i) =>
|
|
129
|
-
onBlur: a[2] || (a[2] = (i) =>
|
|
130
|
-
onKeyup: a[3] || (a[3] =
|
|
135
|
+
(...i) => t(L) && t(L)(...i)),
|
|
136
|
+
onFocus: a[1] || (a[1] = (i) => h.value = !0),
|
|
137
|
+
onBlur: a[2] || (a[2] = (i) => h.value = !1),
|
|
138
|
+
onKeyup: a[3] || (a[3] = U(z(
|
|
131
139
|
//@ts-ignore
|
|
132
140
|
(...i) => t(T) && t(T)(...i),
|
|
133
141
|
["prevent"]
|
|
134
142
|
), ["enter"])),
|
|
135
143
|
onKeypress: a[4] || (a[4] = //@ts-ignore
|
|
136
|
-
(...i) => t(
|
|
137
|
-
}), null, 16,
|
|
138
|
-
e.
|
|
139
|
-
|
|
144
|
+
(...i) => t(I) && t(I)(...i))
|
|
145
|
+
}), null, 16, le),
|
|
146
|
+
e.maxLength && e.maxLengthCounterPosition === "inside" ? (l(), r(N, O(c({ key: 2 }, t(B))), null, 16)) : n("", !0),
|
|
147
|
+
e.showApply || t(s)?.confirmable && !t(s)?.error?.value ? (l(), d("div", {
|
|
148
|
+
key: 3,
|
|
140
149
|
class: "apply-button",
|
|
141
|
-
onClick:
|
|
150
|
+
onClick: z(H, ["stop", "prevent"])
|
|
142
151
|
}, [
|
|
143
152
|
p(t(v), {
|
|
144
153
|
name: "check",
|
|
145
154
|
size: "20px"
|
|
146
155
|
})
|
|
147
|
-
], 8,
|
|
148
|
-
e.inlineError || t(
|
|
149
|
-
p(t(
|
|
150
|
-
disabled: !e.inlineErrorText && !t(
|
|
151
|
-
text: e.inlineErrorText || t(
|
|
156
|
+
], 8, ae)) : n("", !0),
|
|
157
|
+
e.inlineError || t(s)?.error?.value ? (l(), d("div", ne, [
|
|
158
|
+
p(t(X), c({
|
|
159
|
+
disabled: !e.inlineErrorText && !t(s)?.error?.value,
|
|
160
|
+
text: e.inlineErrorText || t(s)?.error?.value,
|
|
152
161
|
"test-id": e.testId,
|
|
153
162
|
placement: e.inlineErrorTextPlacement
|
|
154
|
-
}, t(
|
|
155
|
-
default:
|
|
163
|
+
}, t(y)[t(m).TOOLTIP]), {
|
|
164
|
+
default: b(() => [
|
|
156
165
|
p(t(v), {
|
|
157
166
|
name: "warning-circle",
|
|
158
167
|
size: "16px"
|
|
@@ -161,56 +170,52 @@ const Y = {
|
|
|
161
170
|
_: 1
|
|
162
171
|
}, 16, ["disabled", "text", "test-id", "placement"])
|
|
163
172
|
])) : n("", !0),
|
|
164
|
-
e.suffix ? (l(),
|
|
165
|
-
key:
|
|
173
|
+
e.suffix ? (l(), r(t(D), {
|
|
174
|
+
key: 5,
|
|
166
175
|
class: "suffix-text",
|
|
167
176
|
variant: "body1"
|
|
168
177
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
V(
|
|
178
|
+
default: b(() => [
|
|
179
|
+
V($(e.suffix), 1)
|
|
171
180
|
]),
|
|
172
181
|
_: 1
|
|
173
182
|
})) : n("", !0),
|
|
174
|
-
e.type === "password" ? (l(),
|
|
175
|
-
key:
|
|
183
|
+
e.type === "password" ? (l(), d("div", c({
|
|
184
|
+
key: 6,
|
|
176
185
|
class: "password-visibility-toggle"
|
|
177
|
-
}, t(
|
|
178
|
-
onClick: a[5] || (a[5] = (i) =>
|
|
186
|
+
}, t(y)[t(m).TOGGLE_PASSWORD], {
|
|
187
|
+
onClick: a[5] || (a[5] = (i) => x.value = !x.value)
|
|
179
188
|
}), [
|
|
180
|
-
|
|
189
|
+
x.value ? (l(), r(t(v), {
|
|
181
190
|
key: 0,
|
|
182
191
|
name: "eye",
|
|
183
192
|
size: "16px"
|
|
184
|
-
})) : (l(),
|
|
193
|
+
})) : (l(), r(t(v), {
|
|
185
194
|
key: 1,
|
|
186
195
|
name: "eye-slash",
|
|
187
196
|
size: "16px"
|
|
188
197
|
}))
|
|
189
198
|
], 16)) : n("", !0),
|
|
190
|
-
u.$slots.iconAfter ? (l(),
|
|
191
|
-
|
|
199
|
+
u.$slots.iconAfter ? (l(), d("div", oe, [
|
|
200
|
+
F(u.$slots, "iconAfter", {}, void 0, !0)
|
|
192
201
|
])) : n("", !0)
|
|
193
202
|
], 2),
|
|
194
|
-
|
|
203
|
+
t(j) ? (l(), d("div", {
|
|
195
204
|
key: 1,
|
|
196
|
-
class:
|
|
205
|
+
class: E(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
|
|
197
206
|
}, [
|
|
198
|
-
e.feedbackText ? (l(),
|
|
207
|
+
e.feedbackText ? (l(), r(_, {
|
|
199
208
|
key: 0,
|
|
200
209
|
text: e.feedbackText,
|
|
201
210
|
variant: e.feedbackVariant,
|
|
202
211
|
"show-icon": e.showFeedbackTextIcon,
|
|
203
212
|
"test-id": e.testId
|
|
204
213
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
|
|
205
|
-
|
|
206
|
-
key: 1,
|
|
207
|
-
"current-length": t(R),
|
|
208
|
-
"max-length": e.maxLength
|
|
209
|
-
}, null, 8, ["current-length", "max-length"])) : n("", !0)
|
|
214
|
+
t(C) ? (l(), r(N, O(c({ key: 1 }, t(B))), null, 16)) : n("", !0)
|
|
210
215
|
], 2)) : n("", !0)
|
|
211
216
|
], 16));
|
|
212
217
|
}
|
|
213
218
|
});
|
|
214
219
|
export {
|
|
215
|
-
|
|
220
|
+
be as default
|
|
216
221
|
};
|
|
@@ -23,6 +23,7 @@ declare const TextFieldTypes: () => ({
|
|
|
23
23
|
onlyDigits: boolean;
|
|
24
24
|
prefix: string;
|
|
25
25
|
suffix: string;
|
|
26
|
+
maxLengthCounterPosition: "inside" | "outside";
|
|
26
27
|
showApply: boolean;
|
|
27
28
|
inlineError: boolean;
|
|
28
29
|
inlineErrorText: string;
|
|
@@ -108,6 +109,10 @@ declare const TextFieldTypes: () => ({
|
|
|
108
109
|
type: import("vue").PropType<string>;
|
|
109
110
|
default: string;
|
|
110
111
|
};
|
|
112
|
+
maxLengthCounterPosition: {
|
|
113
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
111
116
|
showApply: {
|
|
112
117
|
type: import("vue").PropType<boolean>;
|
|
113
118
|
default: boolean;
|
|
@@ -143,7 +148,7 @@ declare const TextFieldTypes: () => ({
|
|
|
143
148
|
}>> & {
|
|
144
149
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
145
150
|
onApply?: () => any;
|
|
146
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "inlineErrorTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
|
|
151
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "maxLengthCounterPosition" | "showApply" | "inlineError" | "inlineErrorText" | "inlineErrorTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
|
|
147
152
|
$attrs: {
|
|
148
153
|
[x: string]: unknown;
|
|
149
154
|
};
|
|
@@ -234,6 +239,10 @@ declare const TextFieldTypes: () => ({
|
|
|
234
239
|
type: import("vue").PropType<string>;
|
|
235
240
|
default: string;
|
|
236
241
|
};
|
|
242
|
+
maxLengthCounterPosition: {
|
|
243
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
244
|
+
default: string;
|
|
245
|
+
};
|
|
237
246
|
showApply: {
|
|
238
247
|
type: import("vue").PropType<boolean>;
|
|
239
248
|
default: boolean;
|
|
@@ -294,6 +303,7 @@ declare const TextFieldTypes: () => ({
|
|
|
294
303
|
onlyDigits: boolean;
|
|
295
304
|
prefix: string;
|
|
296
305
|
suffix: string;
|
|
306
|
+
maxLengthCounterPosition: "inside" | "outside";
|
|
297
307
|
showApply: boolean;
|
|
298
308
|
inlineError: boolean;
|
|
299
309
|
inlineErrorText: string;
|
|
@@ -399,6 +409,10 @@ declare const TextFieldTypes: () => ({
|
|
|
399
409
|
type: import("vue").PropType<string>;
|
|
400
410
|
default: string;
|
|
401
411
|
};
|
|
412
|
+
maxLengthCounterPosition: {
|
|
413
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
414
|
+
default: string;
|
|
415
|
+
};
|
|
402
416
|
showApply: {
|
|
403
417
|
type: import("vue").PropType<boolean>;
|
|
404
418
|
default: boolean;
|
|
@@ -517,6 +531,10 @@ declare const TextFieldTypes: () => ({
|
|
|
517
531
|
type: import("vue").PropType<string>;
|
|
518
532
|
default: string;
|
|
519
533
|
};
|
|
534
|
+
maxLengthCounterPosition: {
|
|
535
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
536
|
+
default: string;
|
|
537
|
+
};
|
|
520
538
|
showApply: {
|
|
521
539
|
type: import("vue").PropType<boolean>;
|
|
522
540
|
default: boolean;
|
|
@@ -577,6 +595,7 @@ declare const TextFieldTypes: () => ({
|
|
|
577
595
|
onlyDigits: boolean;
|
|
578
596
|
prefix: string;
|
|
579
597
|
suffix: string;
|
|
598
|
+
maxLengthCounterPosition: "inside" | "outside";
|
|
580
599
|
showApply: boolean;
|
|
581
600
|
inlineError: boolean;
|
|
582
601
|
inlineErrorText: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useToggle as p, onClickOutside as g } from "@vueuse/core";
|
|
2
|
+
import { ref as n } from "vue";
|
|
3
|
+
const f = () => {
|
|
4
|
+
const [o, e] = p(!1), r = n(), t = n();
|
|
5
|
+
return g(
|
|
6
|
+
r,
|
|
7
|
+
() => {
|
|
8
|
+
o.value && e();
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
ignore: [t]
|
|
12
|
+
}
|
|
13
|
+
), { popup: r, open: o, toggle: e, triggerRef: t };
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
f as popoverCommon
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "./Popover.vue2.js";
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css"; //*');
|
|
4
|
+
// import "../../../Popover.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c607b770"]]);
|
|
6
|
+
export {
|
|
7
|
+
r as default
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../../../Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css"; import "../../../Popover.vue_vue_type_style_index_1_lang.css"; import { defineComponent as n, openBlock as i, createBlock as r, unref as l, withCtx as a, renderSlot as d } from "vue";
|
|
2
2
|
import { Dropdown as s } from "floating-vue";
|
|
3
3
|
const f = /* @__PURE__ */ n({
|
|
4
4
|
__name: "Popover",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Placement } from 'floating-vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
autoHide?: boolean;
|
|
4
|
+
trigger?: "touch" | "click" | "focus" | "hover" | "managed";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
distance?: number;
|
|
8
|
+
skidding?: number;
|
|
9
|
+
testId?: string;
|
|
10
|
+
popperClass?: string;
|
|
11
|
+
}>, {
|
|
12
|
+
trigger: string;
|
|
13
|
+
autoHide: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
placement: string;
|
|
16
|
+
distance: number;
|
|
17
|
+
skidding: number;
|
|
18
|
+
testId: string;
|
|
19
|
+
popperClass: string;
|
|
20
|
+
}>, {}, 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<{
|
|
21
|
+
autoHide?: boolean;
|
|
22
|
+
trigger?: "touch" | "click" | "focus" | "hover" | "managed";
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
placement?: Placement;
|
|
25
|
+
distance?: number;
|
|
26
|
+
skidding?: number;
|
|
27
|
+
testId?: string;
|
|
28
|
+
popperClass?: string;
|
|
29
|
+
}>, {
|
|
30
|
+
trigger: string;
|
|
31
|
+
autoHide: boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
placement: string;
|
|
34
|
+
distance: number;
|
|
35
|
+
skidding: number;
|
|
36
|
+
testId: string;
|
|
37
|
+
popperClass: string;
|
|
38
|
+
}>>>, {
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
testId: string;
|
|
41
|
+
placement: Placement;
|
|
42
|
+
distance: number;
|
|
43
|
+
popperClass: string;
|
|
44
|
+
autoHide: boolean;
|
|
45
|
+
skidding: number;
|
|
46
|
+
trigger: "touch" | "click" | "focus" | "hover" | "managed";
|
|
47
|
+
}>, {
|
|
48
|
+
trigger?(_: {}): any;
|
|
49
|
+
content?(_: {}): any;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithDefaults<P, D> = {
|
|
62
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
|
+
default: D[K];
|
|
64
|
+
}> : P[K];
|
|
65
|
+
};
|
|
66
|
+
type __VLS_Prettify<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./PopoverV4.vue2.js";
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c54cd089"]]);
|
|
5
|
+
export {
|
|
6
|
+
r as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css"; import { defineComponent as u, openBlock as d, createBlock as m, unref as t, withCtx as i, createElementBlock as f, renderSlot as n, createCommentVNode as g, createElementVNode as c } from "vue";
|
|
2
|
+
import { Dropdown as k } from "floating-vue";
|
|
3
|
+
import { popoverCommon as v } from "../common/Popover.common.js";
|
|
4
|
+
const w = /* @__PURE__ */ u({
|
|
5
|
+
__name: "PopoverV4",
|
|
6
|
+
props: {
|
|
7
|
+
autoHide: { type: Boolean, default: !1 },
|
|
8
|
+
trigger: { default: "click" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
placement: { default: "bottom-start" },
|
|
11
|
+
distance: { default: 0 },
|
|
12
|
+
skidding: { default: 0 },
|
|
13
|
+
testId: { default: "" },
|
|
14
|
+
popperClass: { default: "" }
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
const { popup: p, open: o, toggle: l, triggerRef: s } = v();
|
|
18
|
+
return (r, a) => (d(), m(t(k), {
|
|
19
|
+
theme: "custom-popover",
|
|
20
|
+
placement: e.placement,
|
|
21
|
+
shown: !!t(o),
|
|
22
|
+
triggers: e.trigger === "managed" ? [] : [e.trigger],
|
|
23
|
+
"auto-hide": e.autoHide,
|
|
24
|
+
distance: e.distance,
|
|
25
|
+
skidding: e.skidding,
|
|
26
|
+
"data-testid": e.testId,
|
|
27
|
+
"popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
|
|
28
|
+
}, {
|
|
29
|
+
popper: i(() => [
|
|
30
|
+
t(o) ? (d(), f("div", {
|
|
31
|
+
key: 0,
|
|
32
|
+
ref_key: "popup",
|
|
33
|
+
ref: p,
|
|
34
|
+
class: "menu-popup"
|
|
35
|
+
}, [
|
|
36
|
+
n(r.$slots, "content", {}, void 0, !0)
|
|
37
|
+
], 512)) : g("", !0)
|
|
38
|
+
]),
|
|
39
|
+
default: i(() => [
|
|
40
|
+
c("div", {
|
|
41
|
+
ref_key: "triggerRef",
|
|
42
|
+
ref: s,
|
|
43
|
+
onClick: a[0] || (a[0] = (h) => t(l)(!t(o)))
|
|
44
|
+
}, [
|
|
45
|
+
n(r.$slots, "trigger", {}, void 0, !0)
|
|
46
|
+
], 512)
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid", "popper-class"]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
w as default
|
|
54
|
+
};
|