@ironsource/shared-ui 2.1.7-test.2 → 2.1.7-test.4
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/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_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/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_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/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- 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/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- 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.js +3 -3
- package/components/input/v4/TextField.vue2.js +70 -66
- 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/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
- package/components/table/v4/MultipleDataGrid.vue.js +3 -3
- package/components/table/v4/MultipleDataGrid.vue2.js +49 -44
- package/components/table/v4/index.d.ts +9 -0
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +646 -25
- package/index.js +70 -70
- package/package.json +7 -3
- package/testids/index.d.ts +5 -0
- package/testids/index.js +24 -23
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_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/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_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/TextField.vue_vue_type_style_index_0_scoped_052b1a0c_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,5 +1,5 @@
|
|
|
1
|
-
import "../../IncludeExclude.
|
|
2
|
-
import Ae from "../popover/Popover.vue.js";
|
|
1
|
+
import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css"; import { defineComponent as Te, computed as v, ref as u, watch as j, provide as Oe, openBlock as d, createBlock as I, unref as t, withCtx as g, createElementVNode as a, renderSlot as C, createTextVNode as w, toDisplayString as J, createCommentVNode as h, createVNode as f, Transition as $e, createElementBlock as o, normalizeClass as Q, mergeProps as O, Fragment as $, renderList as R, toRaw as T, nextTick as Re } from "vue";
|
|
2
|
+
import Ae from "../popover/v3/Popover.vue.js";
|
|
3
3
|
import N from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../IncludeExcludeDragDrop.
|
|
4
|
-
const p = /* @__PURE__ */ e
|
|
1
|
+
import e from "./IncludeExcludeDragDrop.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-bd6145ce"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../IncludeExcludeDragDrop.
|
|
2
|
-
import $e from "../popover/Popover.vue.js";
|
|
1
|
+
import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as Ee, nextTick as Fe } from "vue";
|
|
2
|
+
import $e from "../popover/v3/Popover.vue.js";
|
|
3
3
|
import G from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
@@ -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_eb472aa3_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb472aa3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -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
|
|
4
|
+
import X from "../../tooltip/v4/TooltipV4.vue.js";
|
|
5
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
6
6
|
import { InputTestIdModifiers as m } from "../../../testids/index.js";
|
|
7
|
-
import { inputCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
const
|
|
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
|
-
},
|
|
15
|
+
}, le = ["maxlength", "value", "placeholder", "disabled", "type", "step"], ae = ["onClick"], ne = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "inline-error"
|
|
18
|
-
},
|
|
18
|
+
}, oe = {
|
|
19
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: "" },
|
|
@@ -54,34 +54,38 @@ const _ = {
|
|
|
54
54
|
inlineErrorTextPlacement: { default: "top" }
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:modelValue", "apply"],
|
|
57
|
-
setup(e, { expose:
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
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,
|
|
62
62
|
onEnter: T,
|
|
63
63
|
inputRef: g,
|
|
64
64
|
isFocused: h,
|
|
65
65
|
showLabelInside: w,
|
|
66
|
-
api:
|
|
67
|
-
labelText:
|
|
68
|
-
sizeClass:
|
|
66
|
+
api: s,
|
|
67
|
+
labelText: M,
|
|
68
|
+
sizeClass: G,
|
|
69
69
|
handleInput: L,
|
|
70
70
|
handleKeypress: I
|
|
71
|
-
} =
|
|
72
|
-
currentLength:
|
|
73
|
-
maxLength:
|
|
74
|
-
})),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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({
|
|
78
82
|
class: {
|
|
79
83
|
"input-with-label-container": !0,
|
|
80
84
|
disabled: e.disabled,
|
|
81
85
|
[`variant-${e.feedbackVariant}`]: !0
|
|
82
86
|
}
|
|
83
|
-
}, t(
|
|
84
|
-
e.label && e.labelDirection !== "inside" ? (l(),
|
|
87
|
+
}, t(y)[t(m).WRAPPER]), [
|
|
88
|
+
e.label && e.labelDirection !== "inside" ? (l(), r(Z, {
|
|
85
89
|
key: 0,
|
|
86
90
|
label: e.label,
|
|
87
91
|
mandatory: e.mandatory,
|
|
@@ -91,36 +95,36 @@ const _ = {
|
|
|
91
95
|
"test-id": e.testId
|
|
92
96
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
93
97
|
A("div", {
|
|
94
|
-
class:
|
|
98
|
+
class: E({
|
|
95
99
|
"input-container": !0,
|
|
96
100
|
"label-inside": t(w),
|
|
97
101
|
focused: t(h)
|
|
98
102
|
})
|
|
99
103
|
}, [
|
|
100
|
-
u.$slots.iconBefore ? (l(),
|
|
101
|
-
|
|
104
|
+
u.$slots.iconBefore ? (l(), d("div", te, [
|
|
105
|
+
F(u.$slots, "iconBefore", {}, void 0, !0)
|
|
102
106
|
])) : n("", !0),
|
|
103
|
-
e.prefix ? (l(),
|
|
107
|
+
e.prefix ? (l(), r(t(D), {
|
|
104
108
|
key: 1,
|
|
105
109
|
class: "prefix-text",
|
|
106
110
|
variant: "body1"
|
|
107
111
|
}, {
|
|
108
112
|
default: b(() => [
|
|
109
|
-
V(
|
|
113
|
+
V($(e.prefix), 1)
|
|
110
114
|
]),
|
|
111
115
|
_: 1
|
|
112
116
|
})) : n("", !0),
|
|
113
|
-
A("input",
|
|
117
|
+
A("input", c({
|
|
114
118
|
ref_key: "inputRef",
|
|
115
119
|
ref: g,
|
|
116
120
|
maxlength: e.maxLength
|
|
117
|
-
}, { ...u.$attrs, ...t(
|
|
121
|
+
}, { ...u.$attrs, ...t(y)[t(m).FIELD] }, {
|
|
118
122
|
value: t(P),
|
|
119
|
-
placeholder: t(
|
|
123
|
+
placeholder: t(M),
|
|
120
124
|
disabled: e.disabled || e.viewOnly,
|
|
121
|
-
type: t(
|
|
125
|
+
type: t(q),
|
|
122
126
|
class: ["input", {
|
|
123
|
-
[t(
|
|
127
|
+
[t(G)]: !0,
|
|
124
128
|
"view-only": e.viewOnly,
|
|
125
129
|
"label-inside": t(w),
|
|
126
130
|
"hide-arrows": e.hideNumberArrows,
|
|
@@ -131,32 +135,32 @@ const _ = {
|
|
|
131
135
|
(...i) => t(L) && t(L)(...i)),
|
|
132
136
|
onFocus: a[1] || (a[1] = (i) => h.value = !0),
|
|
133
137
|
onBlur: a[2] || (a[2] = (i) => h.value = !1),
|
|
134
|
-
onKeyup: a[3] || (a[3] =
|
|
138
|
+
onKeyup: a[3] || (a[3] = U(z(
|
|
135
139
|
//@ts-ignore
|
|
136
140
|
(...i) => t(T) && t(T)(...i),
|
|
137
141
|
["prevent"]
|
|
138
142
|
), ["enter"])),
|
|
139
143
|
onKeypress: a[4] || (a[4] = //@ts-ignore
|
|
140
144
|
(...i) => t(I) && t(I)(...i))
|
|
141
|
-
}), null, 16,
|
|
142
|
-
e.maxLength && e.maxLengthCounterPosition === "inside" ? (l(),
|
|
143
|
-
e.showApply || t(
|
|
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", {
|
|
144
148
|
key: 3,
|
|
145
149
|
class: "apply-button",
|
|
146
|
-
onClick:
|
|
150
|
+
onClick: z(H, ["stop", "prevent"])
|
|
147
151
|
}, [
|
|
148
152
|
p(t(v), {
|
|
149
153
|
name: "check",
|
|
150
154
|
size: "20px"
|
|
151
155
|
})
|
|
152
|
-
], 8,
|
|
153
|
-
e.inlineError || t(
|
|
154
|
-
p(t(
|
|
155
|
-
disabled: !e.inlineErrorText && !t(
|
|
156
|
-
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,
|
|
157
161
|
"test-id": e.testId,
|
|
158
162
|
placement: e.inlineErrorTextPlacement
|
|
159
|
-
}, t(
|
|
163
|
+
}, t(y)[t(m).TOOLTIP]), {
|
|
160
164
|
default: b(() => [
|
|
161
165
|
p(t(v), {
|
|
162
166
|
name: "warning-circle",
|
|
@@ -166,52 +170,52 @@ const _ = {
|
|
|
166
170
|
_: 1
|
|
167
171
|
}, 16, ["disabled", "text", "test-id", "placement"])
|
|
168
172
|
])) : n("", !0),
|
|
169
|
-
e.suffix ? (l(),
|
|
173
|
+
e.suffix ? (l(), r(t(D), {
|
|
170
174
|
key: 5,
|
|
171
175
|
class: "suffix-text",
|
|
172
176
|
variant: "body1"
|
|
173
177
|
}, {
|
|
174
178
|
default: b(() => [
|
|
175
|
-
V(
|
|
179
|
+
V($(e.suffix), 1)
|
|
176
180
|
]),
|
|
177
181
|
_: 1
|
|
178
182
|
})) : n("", !0),
|
|
179
|
-
e.type === "password" ? (l(),
|
|
183
|
+
e.type === "password" ? (l(), d("div", c({
|
|
180
184
|
key: 6,
|
|
181
185
|
class: "password-visibility-toggle"
|
|
182
|
-
}, t(
|
|
183
|
-
onClick: a[5] || (a[5] = (i) =>
|
|
186
|
+
}, t(y)[t(m).TOGGLE_PASSWORD], {
|
|
187
|
+
onClick: a[5] || (a[5] = (i) => x.value = !x.value)
|
|
184
188
|
}), [
|
|
185
|
-
|
|
189
|
+
x.value ? (l(), r(t(v), {
|
|
186
190
|
key: 0,
|
|
187
191
|
name: "eye",
|
|
188
192
|
size: "16px"
|
|
189
|
-
})) : (l(),
|
|
193
|
+
})) : (l(), r(t(v), {
|
|
190
194
|
key: 1,
|
|
191
195
|
name: "eye-slash",
|
|
192
196
|
size: "16px"
|
|
193
197
|
}))
|
|
194
198
|
], 16)) : n("", !0),
|
|
195
|
-
u.$slots.iconAfter ? (l(),
|
|
196
|
-
|
|
199
|
+
u.$slots.iconAfter ? (l(), d("div", oe, [
|
|
200
|
+
F(u.$slots, "iconAfter", {}, void 0, !0)
|
|
197
201
|
])) : n("", !0)
|
|
198
202
|
], 2),
|
|
199
|
-
|
|
203
|
+
t(j) ? (l(), d("div", {
|
|
200
204
|
key: 1,
|
|
201
|
-
class:
|
|
205
|
+
class: E(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
|
|
202
206
|
}, [
|
|
203
|
-
e.feedbackText ? (l(),
|
|
207
|
+
e.feedbackText ? (l(), r(_, {
|
|
204
208
|
key: 0,
|
|
205
209
|
text: e.feedbackText,
|
|
206
210
|
variant: e.feedbackVariant,
|
|
207
211
|
"show-icon": e.showFeedbackTextIcon,
|
|
208
212
|
"test-id": e.testId
|
|
209
213
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
|
|
210
|
-
|
|
214
|
+
t(C) ? (l(), r(N, O(c({ key: 1 }, t(B))), null, 16)) : n("", !0)
|
|
211
215
|
], 2)) : n("", !0)
|
|
212
216
|
], 16));
|
|
213
217
|
}
|
|
214
218
|
});
|
|
215
219
|
export {
|
|
216
|
-
|
|
220
|
+
be as default
|
|
217
221
|
};
|
|
@@ -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
|
+
};
|