@ironsource/shared-ui 2.1.12-rc.15 → 2.1.12-rc.16
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/Chart.vue_vue_type_style_index_0_scoped_4e9ce62f_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_64dcfb5d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_81cdfd5e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_40d98a66_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +7 -2
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +64 -59
- package/components/chart/ChartLegend.vue.d.ts +7 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +75 -68
- package/components/chart/ChartPlane.vue.d.ts +12 -2
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +182 -156
- package/components/chart/ChartStoryArgs.d.ts +6 -0
- package/components/chart/ChartTooltip.vue.d.ts +6 -1
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +48 -58
- package/components/chart/components/TooltipHeader.vue.d.ts +45 -0
- package/components/chart/components/TooltipHeader.vue.js +7 -0
- package/components/chart/components/TooltipHeader.vue2.js +59 -0
- package/components/chart/consts.d.ts +12 -6
- package/components/chart/consts.js +31 -21
- package/components/chart/index.d.ts +54 -35
- package/components/chart/mockData.d.ts +11 -0
- package/components/chart/types.d.ts +16 -5
- package/components/chart/utils/highlightUtils.d.ts +3 -0
- package/components/chart/utils/highlightUtils.js +18 -0
- package/components/chart/utils/utils.d.ts +2 -1
- package/components/chart/utils/utils.js +23 -8
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +102 -97
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -64
- package/components/dropdown/v4/index.d.ts +40 -2
- package/composables/useFormValidation.js +21 -19
- package/consts/common.d.ts +1 -0
- package/consts/common.js +4 -0
- package/consts/regex.d.ts +1 -0
- package/consts/regex.js +2 -1
- package/index.d.ts +80 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/text.d.ts +3 -0
- package/utils/text.js +24 -5
- package/utils/utils.d.ts +1 -0
- package/utils/utils.js +4 -0
- package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css +0 -1
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
nameKey?: string;
|
|
10
10
|
imageKey?: string;
|
|
11
11
|
iconKey?: string;
|
|
12
|
+
warningKey?: string;
|
|
12
13
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
13
14
|
endIconKey?: string;
|
|
14
15
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -32,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
33
|
nameKey: any;
|
|
33
34
|
imageKey: any;
|
|
34
35
|
iconKey: any;
|
|
36
|
+
warningKey: any;
|
|
35
37
|
iconType: string;
|
|
36
38
|
endIconKey: any;
|
|
37
39
|
endIconType: string;
|
|
@@ -58,6 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
60
|
nameKey?: string;
|
|
59
61
|
imageKey?: string;
|
|
60
62
|
iconKey?: string;
|
|
63
|
+
warningKey?: string;
|
|
61
64
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
62
65
|
endIconKey?: string;
|
|
63
66
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -81,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
81
84
|
nameKey: any;
|
|
82
85
|
imageKey: any;
|
|
83
86
|
iconKey: any;
|
|
87
|
+
warningKey: any;
|
|
84
88
|
iconType: string;
|
|
85
89
|
endIconKey: any;
|
|
86
90
|
endIconType: string;
|
|
@@ -110,6 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
110
114
|
nameKey: string;
|
|
111
115
|
imageKey: string;
|
|
112
116
|
iconKey: string;
|
|
117
|
+
warningKey: string;
|
|
113
118
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
114
119
|
endIconKey: string;
|
|
115
120
|
endTextIconKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9cdf3a94"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css"; import { defineComponent as S, ref as w, watch as V, computed as A, openBlock as o, createBlock as f, unref as n, createSlots as F, withCtx as d, createElementVNode as c, normalizeClass as p, createCommentVNode as i, createElementBlock as l, renderSlot as u, createVNode as a, toDisplayString as r, createTextVNode as g, withModifiers as C, Fragment as L, renderList as N } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { NOOP as
|
|
8
|
-
import { optionCommon as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
3
|
+
import j from "../../typography/Text.vue.js";
|
|
4
|
+
import R from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import m from "../../icon/v4/IconV4.vue.js";
|
|
6
|
+
import D from "../../icon/v4/IconFlag.vue.js";
|
|
7
|
+
import { NOOP as q } from "@vue/shared";
|
|
8
|
+
import { optionCommon as G } from "../common/Option.common.js";
|
|
9
|
+
import T from "../../typography/v4/Typography.vue.js";
|
|
10
|
+
import I from "../../tooltip/v4/TooltipV4.vue.js";
|
|
11
11
|
import { isElementTruncated as H } from "../../../utils/text.js";
|
|
12
12
|
import { promiseTimeout as J } from "@vueuse/core";
|
|
13
13
|
const Q = { class: "multiline-tooltip" }, U = {
|
|
@@ -34,7 +34,10 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
34
34
|
}, ne = {
|
|
35
35
|
key: 4,
|
|
36
36
|
class: "end-icon"
|
|
37
|
-
}, oe = {
|
|
37
|
+
}, oe = {
|
|
38
|
+
key: 5,
|
|
39
|
+
class: "option-warning"
|
|
40
|
+
}, ie = { key: 6 }, le = ["onClick"], ae = { key: 0 }, pe = /* @__PURE__ */ S({
|
|
38
41
|
__name: "OptionV4",
|
|
39
42
|
props: {
|
|
40
43
|
option: { default: null },
|
|
@@ -47,6 +50,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
47
50
|
nameKey: { default: null },
|
|
48
51
|
imageKey: { default: null },
|
|
49
52
|
iconKey: { default: null },
|
|
53
|
+
warningKey: { default: null },
|
|
50
54
|
iconType: { default: "regular" },
|
|
51
55
|
endIconKey: { default: null },
|
|
52
56
|
endIconType: { default: "regular" },
|
|
@@ -63,45 +67,45 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
63
67
|
},
|
|
64
68
|
emits: ["toggleTreeCollapse"],
|
|
65
69
|
setup(e, { emit: O }) {
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
await J(100), b.value =
|
|
70
|
+
const s = e, { selected: K, id: $, onClick: B, api: x } = G(s), z = (t) => {
|
|
71
|
+
s.stopOptionClickEventPropagation && t.stopPropagation(), s.disabled ? q() : B(t);
|
|
72
|
+
}, v = w(null), b = w(!1);
|
|
73
|
+
V([() => s.treeChildShown, v], async () => {
|
|
74
|
+
await J(100), b.value = v.value && H(v.value);
|
|
71
75
|
});
|
|
72
|
-
const M = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[
|
|
73
|
-
O("toggleTreeCollapse",
|
|
76
|
+
const M = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[s.nameKey] : "", h = A(() => M(s.option)), E = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, P = () => {
|
|
77
|
+
O("toggleTreeCollapse", s.option);
|
|
74
78
|
};
|
|
75
|
-
return (t,
|
|
76
|
-
text: n(
|
|
77
|
-
"test-id":
|
|
79
|
+
return (t, k) => (o(), f(n(I), {
|
|
80
|
+
text: n(h),
|
|
81
|
+
"test-id": E(e.option),
|
|
78
82
|
placement: e.toolTipPlacement,
|
|
79
83
|
class: "tooltip-option"
|
|
80
|
-
},
|
|
81
|
-
default:
|
|
84
|
+
}, F({
|
|
85
|
+
default: d(() => [
|
|
82
86
|
c("div", {
|
|
83
87
|
ref: "el",
|
|
84
|
-
class:
|
|
88
|
+
class: p(["item-container", {
|
|
85
89
|
"item-container--disabled": e.disabled,
|
|
86
90
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
87
|
-
"item-container--selected": n(
|
|
91
|
+
"item-container--selected": n(K),
|
|
88
92
|
"item-container--multi": e.isMulti
|
|
89
93
|
}])
|
|
90
94
|
}, [
|
|
91
95
|
c("div", {
|
|
92
|
-
class:
|
|
96
|
+
class: p(["item", {
|
|
93
97
|
"item--multi": e.isMulti,
|
|
94
98
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
95
99
|
}])
|
|
96
100
|
}, [
|
|
97
|
-
e.isMulti || e.selectAllOption ? (o(),
|
|
101
|
+
e.isMulti || e.selectAllOption ? (o(), f(n(R), {
|
|
98
102
|
key: 0,
|
|
99
103
|
id: n($).toString(),
|
|
100
104
|
tabindex: "-1",
|
|
101
105
|
class: "checkbox",
|
|
102
|
-
"is-checked": n(
|
|
106
|
+
"is-checked": n(K),
|
|
103
107
|
"is-indeterminate": e.isIndeterminate,
|
|
104
|
-
onClick:
|
|
108
|
+
onClick: k[0] || (k[0] = (y) => z(y))
|
|
105
109
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
|
|
106
110
|
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", U, [
|
|
107
111
|
u(t.$slots, "image", {}, () => [
|
|
@@ -113,7 +117,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
113
117
|
])) : i("", !0),
|
|
114
118
|
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", X, [
|
|
115
119
|
u(t.$slots, "flag", {}, () => [
|
|
116
|
-
e.optionFlagKey ? (o(),
|
|
120
|
+
e.optionFlagKey ? (o(), f(n(D), {
|
|
117
121
|
key: 0,
|
|
118
122
|
"country-code": e.option[e.optionFlagKey]
|
|
119
123
|
}, null, 8, ["country-code"])) : i("", !0)
|
|
@@ -121,7 +125,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
121
125
|
])) : i("", !0),
|
|
122
126
|
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Y, [
|
|
123
127
|
u(t.$slots, "icon-start", {}, () => [
|
|
124
|
-
a(n(
|
|
128
|
+
a(n(m), {
|
|
125
129
|
type: e.iconType,
|
|
126
130
|
name: e.option[e.iconKey],
|
|
127
131
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
@@ -130,49 +134,49 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
130
134
|
])) : i("", !0),
|
|
131
135
|
c("div", {
|
|
132
136
|
ref_key: "textContainerRef",
|
|
133
|
-
ref:
|
|
137
|
+
ref: v,
|
|
134
138
|
class: "text-container"
|
|
135
139
|
}, [
|
|
136
|
-
a(n(
|
|
140
|
+
a(n(T), {
|
|
137
141
|
class: "option-text",
|
|
138
142
|
variant: "body2"
|
|
139
143
|
}, {
|
|
140
|
-
default:
|
|
144
|
+
default: d(() => [
|
|
141
145
|
u(t.$slots, "default", {}, () => [
|
|
142
146
|
c("div", {
|
|
143
|
-
class:
|
|
147
|
+
class: p(`option-content-${e.optionTwoLinesVariant} option-content`)
|
|
144
148
|
}, [
|
|
145
149
|
e.option?.conditionalOptions ? (o(), l("div", _, [
|
|
146
|
-
a(n(
|
|
150
|
+
a(n(T), {
|
|
147
151
|
variant: "body2",
|
|
148
152
|
class: "conditional-option-label"
|
|
149
153
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
154
|
+
default: d(() => [
|
|
155
|
+
g(r(e.option.conditionalName) + ": ", 1)
|
|
152
156
|
]),
|
|
153
157
|
_: 1
|
|
154
158
|
}),
|
|
155
|
-
a(n(
|
|
159
|
+
a(n(T), {
|
|
156
160
|
variant: "h5",
|
|
157
161
|
class: "conditional-option-value"
|
|
158
162
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
163
|
+
default: d(() => [
|
|
164
|
+
g('"' + r(e.option[e.nameKey]) + '"', 1)
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
163
167
|
})
|
|
164
168
|
])) : (o(), l("div", Z, r(e.option[e.nameKey]), 1)),
|
|
165
169
|
e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", ee, [
|
|
166
|
-
a(n(
|
|
170
|
+
a(n(m), {
|
|
167
171
|
type: "regular",
|
|
168
172
|
name: e.option[e.endTextIconKey],
|
|
169
173
|
size: "16px"
|
|
170
174
|
}, null, 8, ["name"])
|
|
171
175
|
])) : i("", !0),
|
|
172
176
|
e.optionTwoLinesKey ? (o(), l("div", te, [
|
|
173
|
-
a(n(
|
|
174
|
-
default:
|
|
175
|
-
|
|
177
|
+
a(n(T), { variant: "caption" }, {
|
|
178
|
+
default: d(() => [
|
|
179
|
+
g(r(e.option[e.optionTwoLinesKey]), 1)
|
|
176
180
|
]),
|
|
177
181
|
_: 1
|
|
178
182
|
})
|
|
@@ -182,47 +186,62 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
182
186
|
]),
|
|
183
187
|
_: 3
|
|
184
188
|
}),
|
|
185
|
-
e.subtitle ? (o(),
|
|
189
|
+
e.subtitle ? (o(), f(n(j), {
|
|
186
190
|
key: 0,
|
|
187
191
|
class: "subtitle",
|
|
188
192
|
size: "xs"
|
|
189
193
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
|
|
194
|
+
default: d(() => [
|
|
195
|
+
g(r(e.subtitle), 1)
|
|
192
196
|
]),
|
|
193
197
|
_: 1
|
|
194
198
|
})) : i("", !0)
|
|
195
199
|
], 512),
|
|
196
200
|
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", ne, [
|
|
197
201
|
u(t.$slots, "icon-end", {}, () => [
|
|
198
|
-
a(n(
|
|
202
|
+
a(n(m), {
|
|
199
203
|
type: e.endIconType || "regular",
|
|
200
204
|
name: e.option[e.endIconKey],
|
|
201
205
|
size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
|
|
202
206
|
}, null, 8, ["type", "name", "size"])
|
|
203
207
|
], !0)
|
|
204
208
|
])) : i("", !0),
|
|
205
|
-
|
|
209
|
+
e.warningKey && e.option?.[e.warningKey] ? (o(), l("div", oe, [
|
|
210
|
+
a(n(I), {
|
|
211
|
+
text: e.option[e.warningKey],
|
|
212
|
+
placement: "top"
|
|
213
|
+
}, {
|
|
214
|
+
default: d(() => [
|
|
215
|
+
a(n(m), {
|
|
216
|
+
class: "option-warning__icon",
|
|
217
|
+
name: "warning-circle",
|
|
218
|
+
size: "16px"
|
|
219
|
+
})
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["text"])
|
|
223
|
+
])) : i("", !0),
|
|
224
|
+
t.$slots["option-end"] ? (o(), l("div", ie, [
|
|
206
225
|
u(t.$slots, "option-end", { option: e.option }, void 0, !0)
|
|
207
226
|
])) : i("", !0),
|
|
208
227
|
e.treeMainOption ? (o(), l("div", {
|
|
209
|
-
key:
|
|
228
|
+
key: 7,
|
|
210
229
|
class: "tree-main-arrow-wrapper",
|
|
211
|
-
onClick:
|
|
230
|
+
onClick: C(P, ["stop"])
|
|
212
231
|
}, [
|
|
213
|
-
a(n(
|
|
232
|
+
a(n(m), {
|
|
214
233
|
name: "caret-down",
|
|
215
234
|
size: "16px",
|
|
216
|
-
class:
|
|
235
|
+
class: p(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
217
236
|
}, null, 8, ["class"])
|
|
218
|
-
], 8,
|
|
237
|
+
], 8, le)) : i("", !0)
|
|
219
238
|
], 2),
|
|
220
|
-
n(x).clearable && n(
|
|
239
|
+
n(x).clearable && n(K) ? (o(), l("div", ae, [
|
|
221
240
|
c("button", {
|
|
222
241
|
class: "clear-button",
|
|
223
|
-
onClick:
|
|
242
|
+
onClick: k[1] || (k[1] = C((y) => n(x).clearSelection(), ["prevent", "stop"]))
|
|
224
243
|
}, [
|
|
225
|
-
a(n(
|
|
244
|
+
a(n(m), {
|
|
226
245
|
name: "close",
|
|
227
246
|
width: "8",
|
|
228
247
|
height: "8"
|
|
@@ -233,16 +252,16 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
233
252
|
]),
|
|
234
253
|
_: 2
|
|
235
254
|
}, [
|
|
236
|
-
Array.isArray(n(
|
|
255
|
+
Array.isArray(n(h)) ? {
|
|
237
256
|
name: "tooltip",
|
|
238
|
-
fn:
|
|
257
|
+
fn: d(() => [
|
|
239
258
|
c("div", Q, [
|
|
240
|
-
(o(!0), l(
|
|
241
|
-
key:
|
|
259
|
+
(o(!0), l(L, null, N(n(h), (y) => (o(), f(n(T), {
|
|
260
|
+
key: y,
|
|
242
261
|
variant: "body2"
|
|
243
262
|
}, {
|
|
244
|
-
default:
|
|
245
|
-
|
|
263
|
+
default: d(() => [
|
|
264
|
+
g(r(y), 1)
|
|
246
265
|
]),
|
|
247
266
|
_: 2
|
|
248
267
|
}, 1024))), 128))
|
|
@@ -254,5 +273,5 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
254
273
|
}
|
|
255
274
|
});
|
|
256
275
|
export {
|
|
257
|
-
|
|
276
|
+
pe as default
|
|
258
277
|
};
|
|
@@ -1090,6 +1090,7 @@ declare const DropdownTypes: () => (({
|
|
|
1090
1090
|
nameKey: string;
|
|
1091
1091
|
imageKey: string;
|
|
1092
1092
|
iconKey: string;
|
|
1093
|
+
warningKey: string;
|
|
1093
1094
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1094
1095
|
endIconKey: string;
|
|
1095
1096
|
endTextIconKey: string;
|
|
@@ -1152,6 +1153,10 @@ declare const DropdownTypes: () => (({
|
|
|
1152
1153
|
type: import("vue").PropType<string>;
|
|
1153
1154
|
default: any;
|
|
1154
1155
|
};
|
|
1156
|
+
warningKey: {
|
|
1157
|
+
type: import("vue").PropType<string>;
|
|
1158
|
+
default: any;
|
|
1159
|
+
};
|
|
1155
1160
|
iconType: {
|
|
1156
1161
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
1157
1162
|
default: string;
|
|
@@ -1193,7 +1198,7 @@ declare const DropdownTypes: () => (({
|
|
|
1193
1198
|
};
|
|
1194
1199
|
}>> & {
|
|
1195
1200
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
1196
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "iconType" | "endIconKey" | "endTextIconKey" | "toolTipPlacement" | "treeMainOption" | "treeMainOptionExpanded" | "stopOptionClickEventPropagation" | "treeChildShown" | "isMulti">;
|
|
1201
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "warningKey" | "iconType" | "endIconKey" | "endTextIconKey" | "toolTipPlacement" | "treeMainOption" | "treeMainOptionExpanded" | "stopOptionClickEventPropagation" | "treeChildShown" | "isMulti">;
|
|
1197
1202
|
$attrs: {
|
|
1198
1203
|
[x: string]: unknown;
|
|
1199
1204
|
};
|
|
@@ -1260,6 +1265,10 @@ declare const DropdownTypes: () => (({
|
|
|
1260
1265
|
type: import("vue").PropType<string>;
|
|
1261
1266
|
default: any;
|
|
1262
1267
|
};
|
|
1268
|
+
warningKey: {
|
|
1269
|
+
type: import("vue").PropType<string>;
|
|
1270
|
+
default: any;
|
|
1271
|
+
};
|
|
1263
1272
|
iconType: {
|
|
1264
1273
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
1265
1274
|
default: string;
|
|
@@ -1317,6 +1326,7 @@ declare const DropdownTypes: () => (({
|
|
|
1317
1326
|
nameKey: string;
|
|
1318
1327
|
imageKey: string;
|
|
1319
1328
|
iconKey: string;
|
|
1329
|
+
warningKey: string;
|
|
1320
1330
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1321
1331
|
endIconKey: string;
|
|
1322
1332
|
endTextIconKey: string;
|
|
@@ -1399,6 +1409,10 @@ declare const DropdownTypes: () => (({
|
|
|
1399
1409
|
type: import("vue").PropType<string>;
|
|
1400
1410
|
default: any;
|
|
1401
1411
|
};
|
|
1412
|
+
warningKey: {
|
|
1413
|
+
type: import("vue").PropType<string>;
|
|
1414
|
+
default: any;
|
|
1415
|
+
};
|
|
1402
1416
|
iconType: {
|
|
1403
1417
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
1404
1418
|
default: string;
|
|
@@ -1497,6 +1511,10 @@ declare const DropdownTypes: () => (({
|
|
|
1497
1511
|
type: import("vue").PropType<string>;
|
|
1498
1512
|
default: any;
|
|
1499
1513
|
};
|
|
1514
|
+
warningKey: {
|
|
1515
|
+
type: import("vue").PropType<string>;
|
|
1516
|
+
default: any;
|
|
1517
|
+
};
|
|
1500
1518
|
iconType: {
|
|
1501
1519
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
1502
1520
|
default: string;
|
|
@@ -1554,6 +1572,7 @@ declare const DropdownTypes: () => (({
|
|
|
1554
1572
|
nameKey: string;
|
|
1555
1573
|
imageKey: string;
|
|
1556
1574
|
iconKey: string;
|
|
1575
|
+
warningKey: string;
|
|
1557
1576
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1558
1577
|
endIconKey: string;
|
|
1559
1578
|
endTextIconKey: string;
|
|
@@ -1780,6 +1799,7 @@ declare const DropdownTypes: () => (({
|
|
|
1780
1799
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1781
1800
|
optionsEndTextIconKey: string;
|
|
1782
1801
|
optionFlagKey: string;
|
|
1802
|
+
optionWarningKey: string;
|
|
1783
1803
|
disabledOptionKey: string;
|
|
1784
1804
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
1785
1805
|
optionTwoLinesKey: string;
|
|
@@ -1990,6 +2010,10 @@ declare const DropdownTypes: () => (({
|
|
|
1990
2010
|
type: import("vue").PropType<string>;
|
|
1991
2011
|
default: any;
|
|
1992
2012
|
};
|
|
2013
|
+
optionWarningKey: {
|
|
2014
|
+
type: import("vue").PropType<string>;
|
|
2015
|
+
default: any;
|
|
2016
|
+
};
|
|
1993
2017
|
disabledOptionKey: {
|
|
1994
2018
|
type: import("vue").PropType<string>;
|
|
1995
2019
|
default: string;
|
|
@@ -2051,7 +2075,7 @@ declare const DropdownTypes: () => (({
|
|
|
2051
2075
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2052
2076
|
onOpened?: () => any;
|
|
2053
2077
|
onClosed?: () => any;
|
|
2054
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2078
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2055
2079
|
$attrs: {
|
|
2056
2080
|
[x: string]: unknown;
|
|
2057
2081
|
};
|
|
@@ -2263,6 +2287,10 @@ declare const DropdownTypes: () => (({
|
|
|
2263
2287
|
type: import("vue").PropType<string>;
|
|
2264
2288
|
default: any;
|
|
2265
2289
|
};
|
|
2290
|
+
optionWarningKey: {
|
|
2291
|
+
type: import("vue").PropType<string>;
|
|
2292
|
+
default: any;
|
|
2293
|
+
};
|
|
2266
2294
|
disabledOptionKey: {
|
|
2267
2295
|
type: import("vue").PropType<string>;
|
|
2268
2296
|
default: string;
|
|
@@ -2386,6 +2414,7 @@ declare const DropdownTypes: () => (({
|
|
|
2386
2414
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
2387
2415
|
optionsEndTextIconKey: string;
|
|
2388
2416
|
optionFlagKey: string;
|
|
2417
|
+
optionWarningKey: string;
|
|
2389
2418
|
disabledOptionKey: string;
|
|
2390
2419
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
2391
2420
|
optionTwoLinesKey: string;
|
|
@@ -2616,6 +2645,10 @@ declare const DropdownTypes: () => (({
|
|
|
2616
2645
|
type: import("vue").PropType<string>;
|
|
2617
2646
|
default: any;
|
|
2618
2647
|
};
|
|
2648
|
+
optionWarningKey: {
|
|
2649
|
+
type: import("vue").PropType<string>;
|
|
2650
|
+
default: any;
|
|
2651
|
+
};
|
|
2619
2652
|
disabledOptionKey: {
|
|
2620
2653
|
type: import("vue").PropType<string>;
|
|
2621
2654
|
default: string;
|
|
@@ -2882,6 +2915,10 @@ declare const DropdownTypes: () => (({
|
|
|
2882
2915
|
type: import("vue").PropType<string>;
|
|
2883
2916
|
default: any;
|
|
2884
2917
|
};
|
|
2918
|
+
optionWarningKey: {
|
|
2919
|
+
type: import("vue").PropType<string>;
|
|
2920
|
+
default: any;
|
|
2921
|
+
};
|
|
2885
2922
|
disabledOptionKey: {
|
|
2886
2923
|
type: import("vue").PropType<string>;
|
|
2887
2924
|
default: string;
|
|
@@ -3005,6 +3042,7 @@ declare const DropdownTypes: () => (({
|
|
|
3005
3042
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
3006
3043
|
optionsEndTextIconKey: string;
|
|
3007
3044
|
optionFlagKey: string;
|
|
3045
|
+
optionWarningKey: string;
|
|
3008
3046
|
disabledOptionKey: string;
|
|
3009
3047
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
3010
3048
|
optionTwoLinesKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { ref as
|
|
1
|
+
import * as m from "yup";
|
|
2
|
+
import { ref as u, reactive as v, watch as E } from "vue";
|
|
3
3
|
const h = (e, t = 0) => {
|
|
4
4
|
try {
|
|
5
5
|
window.document.getElementsByClassName(e)[t].scrollIntoView({ behavior: "smooth" });
|
|
@@ -10,44 +10,46 @@ const h = (e, t = 0) => {
|
|
|
10
10
|
const t = Object.keys(e)?.[0];
|
|
11
11
|
t && h(`form-field-${t}`);
|
|
12
12
|
}, y = (e, t) => {
|
|
13
|
-
const
|
|
13
|
+
const s = m.object().shape(e);
|
|
14
14
|
try {
|
|
15
|
-
return
|
|
15
|
+
return s.validateSync(t.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
|
|
16
16
|
} catch (i) {
|
|
17
|
-
return { isValid: !1, errors: i.inner.reduce((
|
|
17
|
+
return { isValid: !1, errors: i.inner.reduce((a, l) => (a[l.path] = l.message, a), {}) };
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, V = ({
|
|
20
20
|
formState: e,
|
|
21
21
|
formValidationSchema: t
|
|
22
22
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
const { isValid: n, errors:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), Object.entries(
|
|
28
|
-
o
|
|
29
|
-
}), !n && !
|
|
30
|
-
}, l = () => {
|
|
31
|
-
|
|
23
|
+
const s = u(!1), i = u(!0), r = v({}), a = (c) => {
|
|
24
|
+
const { isValid: n, errors: d } = y(t, e);
|
|
25
|
+
s.value = !0, i.value = n, Object.keys(r).forEach((o) => {
|
|
26
|
+
o && !d[o] && delete r[o];
|
|
27
|
+
}), Object.entries(d).forEach(([o, f]) => {
|
|
28
|
+
r[o] = f;
|
|
29
|
+
}), !n && !c && p(r);
|
|
30
|
+
}, l = (c = !1) => {
|
|
31
|
+
s.value = !1, c && Object.keys(r).forEach((n) => {
|
|
32
|
+
delete r[n];
|
|
33
|
+
});
|
|
32
34
|
};
|
|
33
35
|
return E(
|
|
34
36
|
e,
|
|
35
37
|
() => {
|
|
36
|
-
|
|
38
|
+
s.value && a(!0);
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
41
|
deep: !0
|
|
40
42
|
}
|
|
41
43
|
), {
|
|
42
|
-
validationErrors:
|
|
44
|
+
validationErrors: r,
|
|
43
45
|
isValid: i,
|
|
44
|
-
validate:
|
|
46
|
+
validate: a,
|
|
45
47
|
stopValidating: l
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
export {
|
|
49
51
|
h as scrollToElementByClass,
|
|
50
52
|
p as scrollToFirstInvalidElement,
|
|
51
|
-
|
|
53
|
+
V as useFormValidation,
|
|
52
54
|
y as yupValidation
|
|
53
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ELLIPSIS = "...";
|
package/consts/common.js
ADDED
package/consts/regex.d.ts
CHANGED
package/consts/regex.js
CHANGED