@ironsource/shared-ui 2.1.12-test.71 → 2.1.12-test.73
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/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartStoryArgs.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.d.ts +6 -0
- package/components/dateRange/common/DateServices.common.js +87 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +44 -43
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +71 -68
- package/components/dropdown/v4/index.d.ts +67 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +25 -23
- package/components/switch/v4/index.d.ts +11 -0
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.d.ts +6 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +192 -174
- package/components/table/v4/index.d.ts +20 -1
- package/index.d.ts +210 -18
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-3dc741c1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as o, createBlock as f, unref as n, createSlots as N, withCtx as s, createElementVNode as c, normalizeClass as v, createCommentVNode as i, createElementBlock as l, renderSlot as u, createVNode as a, toDisplayString as r, createTextVNode as g, withModifiers as C, Fragment as j, renderList as R } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import D from "../../typography/Text.vue.js";
|
|
4
|
+
import q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
5
|
import m from "../../icon/v4/IconV4.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { NOOP as
|
|
8
|
-
import { optionCommon as
|
|
6
|
+
import G from "../../icon/v4/IconFlag.vue.js";
|
|
7
|
+
import { NOOP as I } from "@vue/shared";
|
|
8
|
+
import { optionCommon as H } from "../common/Option.common.js";
|
|
9
9
|
import T from "../../typography/v4/Typography.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { isElementTruncated as
|
|
12
|
-
import { promiseTimeout as
|
|
13
|
-
const
|
|
10
|
+
import O from "../../tooltip/v4/TooltipV4.vue.js";
|
|
11
|
+
import { isElementTruncated as J } from "../../../utils/text.js";
|
|
12
|
+
import { promiseTimeout as Q } from "@vueuse/core";
|
|
13
|
+
const U = { class: "multiline-tooltip" }, W = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "image"
|
|
16
|
-
},
|
|
16
|
+
}, X = ["src"], Y = {
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "flag"
|
|
19
|
-
},
|
|
19
|
+
}, Z = {
|
|
20
20
|
key: 3,
|
|
21
21
|
class: "start-icon"
|
|
22
|
-
},
|
|
22
|
+
}, _ = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "main-text"
|
|
25
|
-
},
|
|
25
|
+
}, ee = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "main-text"
|
|
28
|
-
},
|
|
28
|
+
}, te = {
|
|
29
29
|
key: 2,
|
|
30
30
|
class: "end-text-icon"
|
|
31
|
-
},
|
|
31
|
+
}, ne = {
|
|
32
32
|
key: 3,
|
|
33
33
|
class: "caption-text"
|
|
34
|
-
},
|
|
34
|
+
}, oe = {
|
|
35
35
|
key: 4,
|
|
36
36
|
class: "end-icon"
|
|
37
|
-
},
|
|
37
|
+
}, ie = {
|
|
38
38
|
key: 5,
|
|
39
39
|
class: "option-warning"
|
|
40
|
-
},
|
|
40
|
+
}, le = { key: 6 }, ae = ["onClick"], se = { key: 0 }, Ke = /* @__PURE__ */ A({
|
|
41
41
|
__name: "OptionV4",
|
|
42
42
|
props: {
|
|
43
43
|
option: { default: null },
|
|
@@ -66,64 +66,67 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
66
66
|
isMulti: { type: Boolean, default: !1 }
|
|
67
67
|
},
|
|
68
68
|
emits: ["toggleTreeCollapse"],
|
|
69
|
-
setup(e, { emit:
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
setup(e, { emit: $ }) {
|
|
70
|
+
const d = e, { selected: K, id: B, onClick: z, api: x } = H(d), M = (t) => {
|
|
71
|
+
d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? I() : z(t);
|
|
72
|
+
}, p = w(null), b = w(!1), E = (t) => {
|
|
73
|
+
d.disabled && (t.stopPropagation(), I());
|
|
74
|
+
};
|
|
75
|
+
F([() => d.treeChildShown, p], async () => {
|
|
76
|
+
await Q(100), b.value = p.value && J(p.value);
|
|
75
77
|
});
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
+
const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[d.nameKey] : "", h = L(() => P(d.option)), S = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, V = () => {
|
|
79
|
+
$("toggleTreeCollapse", d.option);
|
|
78
80
|
};
|
|
79
|
-
return (t, k) => (o(), f(n(
|
|
81
|
+
return (t, k) => (o(), f(n(O), {
|
|
80
82
|
text: n(h),
|
|
81
|
-
"test-id":
|
|
83
|
+
"test-id": S(e.option),
|
|
82
84
|
placement: e.toolTipPlacement,
|
|
83
85
|
class: "tooltip-option"
|
|
84
|
-
},
|
|
85
|
-
default:
|
|
86
|
+
}, N({
|
|
87
|
+
default: s(() => [
|
|
86
88
|
c("div", {
|
|
87
89
|
ref: "el",
|
|
88
|
-
class:
|
|
90
|
+
class: v(["item-container", {
|
|
89
91
|
"item-container--disabled": e.disabled,
|
|
90
92
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
91
93
|
"item-container--selected": n(K),
|
|
92
94
|
"item-container--multi": e.isMulti
|
|
93
|
-
}])
|
|
95
|
+
}]),
|
|
96
|
+
onClick: E
|
|
94
97
|
}, [
|
|
95
98
|
c("div", {
|
|
96
|
-
class:
|
|
99
|
+
class: v(["item", {
|
|
97
100
|
"item--multi": e.isMulti,
|
|
98
101
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
99
102
|
}])
|
|
100
103
|
}, [
|
|
101
|
-
e.isMulti || e.selectAllOption ? (o(), f(n(
|
|
104
|
+
e.isMulti || e.selectAllOption ? (o(), f(n(q), {
|
|
102
105
|
key: 0,
|
|
103
|
-
id: n(
|
|
106
|
+
id: n(B).toString(),
|
|
104
107
|
tabindex: "-1",
|
|
105
108
|
class: "checkbox",
|
|
106
109
|
"is-checked": n(K),
|
|
107
110
|
"is-indeterminate": e.isIndeterminate,
|
|
108
|
-
onClick: k[0] || (k[0] = (y) =>
|
|
111
|
+
onClick: k[0] || (k[0] = (y) => M(y))
|
|
109
112
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
|
|
110
|
-
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div",
|
|
113
|
+
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", W, [
|
|
111
114
|
u(t.$slots, "image", {}, () => [
|
|
112
115
|
e.imageKey ? (o(), l("img", {
|
|
113
116
|
key: 0,
|
|
114
117
|
src: e.option[e.imageKey]
|
|
115
|
-
}, null, 8,
|
|
118
|
+
}, null, 8, X)) : i("", !0)
|
|
116
119
|
], !0)
|
|
117
120
|
])) : i("", !0),
|
|
118
|
-
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div",
|
|
121
|
+
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", Y, [
|
|
119
122
|
u(t.$slots, "flag", {}, () => [
|
|
120
|
-
e.optionFlagKey ? (o(), f(n(
|
|
123
|
+
e.optionFlagKey ? (o(), f(n(G), {
|
|
121
124
|
key: 0,
|
|
122
125
|
"country-code": e.option[e.optionFlagKey]
|
|
123
126
|
}, null, 8, ["country-code"])) : i("", !0)
|
|
124
127
|
], !0)
|
|
125
128
|
])) : i("", !0),
|
|
126
|
-
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div",
|
|
129
|
+
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Z, [
|
|
127
130
|
u(t.$slots, "icon-start", {}, () => [
|
|
128
131
|
a(n(m), {
|
|
129
132
|
type: e.iconType,
|
|
@@ -134,24 +137,24 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
134
137
|
])) : i("", !0),
|
|
135
138
|
c("div", {
|
|
136
139
|
ref_key: "textContainerRef",
|
|
137
|
-
ref:
|
|
140
|
+
ref: p,
|
|
138
141
|
class: "text-container"
|
|
139
142
|
}, [
|
|
140
143
|
a(n(T), {
|
|
141
144
|
class: "option-text",
|
|
142
145
|
variant: "body2"
|
|
143
146
|
}, {
|
|
144
|
-
default:
|
|
147
|
+
default: s(() => [
|
|
145
148
|
u(t.$slots, "default", {}, () => [
|
|
146
149
|
c("div", {
|
|
147
|
-
class:
|
|
150
|
+
class: v(`option-content-${e.optionTwoLinesVariant} option-content`)
|
|
148
151
|
}, [
|
|
149
|
-
e.option?.conditionalOptions ? (o(), l("div",
|
|
152
|
+
e.option?.conditionalOptions ? (o(), l("div", ee, [
|
|
150
153
|
a(n(T), {
|
|
151
154
|
variant: "body2",
|
|
152
155
|
class: "conditional-option-label"
|
|
153
156
|
}, {
|
|
154
|
-
default:
|
|
157
|
+
default: s(() => [
|
|
155
158
|
g(r(e.option.conditionalName) + ": ", 1)
|
|
156
159
|
]),
|
|
157
160
|
_: 1
|
|
@@ -160,22 +163,22 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
160
163
|
variant: "h5",
|
|
161
164
|
class: "conditional-option-value"
|
|
162
165
|
}, {
|
|
163
|
-
default:
|
|
166
|
+
default: s(() => [
|
|
164
167
|
g('"' + r(e.option[e.nameKey]) + '"', 1)
|
|
165
168
|
]),
|
|
166
169
|
_: 1
|
|
167
170
|
})
|
|
168
|
-
])) : (o(), l("div",
|
|
169
|
-
e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span",
|
|
171
|
+
])) : (o(), l("div", _, r(e.option[e.nameKey]), 1)),
|
|
172
|
+
e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", te, [
|
|
170
173
|
a(n(m), {
|
|
171
174
|
type: "regular",
|
|
172
175
|
name: e.option[e.endTextIconKey],
|
|
173
176
|
size: "16px"
|
|
174
177
|
}, null, 8, ["name"])
|
|
175
178
|
])) : i("", !0),
|
|
176
|
-
e.optionTwoLinesKey ? (o(), l("div",
|
|
179
|
+
e.optionTwoLinesKey ? (o(), l("div", ne, [
|
|
177
180
|
a(n(T), { variant: "caption" }, {
|
|
178
|
-
default:
|
|
181
|
+
default: s(() => [
|
|
179
182
|
g(r(e.option[e.optionTwoLinesKey]), 1)
|
|
180
183
|
]),
|
|
181
184
|
_: 1
|
|
@@ -186,18 +189,18 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
186
189
|
]),
|
|
187
190
|
_: 3
|
|
188
191
|
}),
|
|
189
|
-
e.subtitle ? (o(), f(n(
|
|
192
|
+
e.subtitle ? (o(), f(n(D), {
|
|
190
193
|
key: 0,
|
|
191
194
|
class: "subtitle",
|
|
192
195
|
size: "xs"
|
|
193
196
|
}, {
|
|
194
|
-
default:
|
|
197
|
+
default: s(() => [
|
|
195
198
|
g(r(e.subtitle), 1)
|
|
196
199
|
]),
|
|
197
200
|
_: 1
|
|
198
201
|
})) : i("", !0)
|
|
199
202
|
], 512),
|
|
200
|
-
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div",
|
|
203
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", oe, [
|
|
201
204
|
u(t.$slots, "icon-end", {}, () => [
|
|
202
205
|
a(n(m), {
|
|
203
206
|
type: e.endIconType || "regular",
|
|
@@ -206,12 +209,12 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
206
209
|
}, null, 8, ["type", "name", "size"])
|
|
207
210
|
], !0)
|
|
208
211
|
])) : i("", !0),
|
|
209
|
-
e.warningKey && e.option?.[e.warningKey] ? (o(), l("div",
|
|
210
|
-
a(n(
|
|
212
|
+
e.warningKey && e.option?.[e.warningKey] ? (o(), l("div", ie, [
|
|
213
|
+
a(n(O), {
|
|
211
214
|
text: e.option[e.warningKey],
|
|
212
215
|
placement: "top"
|
|
213
216
|
}, {
|
|
214
|
-
default:
|
|
217
|
+
default: s(() => [
|
|
215
218
|
a(n(m), {
|
|
216
219
|
class: "option-warning__icon",
|
|
217
220
|
name: "warning-circle",
|
|
@@ -221,22 +224,22 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
221
224
|
_: 1
|
|
222
225
|
}, 8, ["text"])
|
|
223
226
|
])) : i("", !0),
|
|
224
|
-
t.$slots["option-end"] ? (o(), l("div",
|
|
227
|
+
t.$slots["option-end"] ? (o(), l("div", le, [
|
|
225
228
|
u(t.$slots, "option-end", { option: e.option }, void 0, !0)
|
|
226
229
|
])) : i("", !0),
|
|
227
230
|
e.treeMainOption ? (o(), l("div", {
|
|
228
231
|
key: 7,
|
|
229
232
|
class: "tree-main-arrow-wrapper",
|
|
230
|
-
onClick: C(
|
|
233
|
+
onClick: C(V, ["stop"])
|
|
231
234
|
}, [
|
|
232
235
|
a(n(m), {
|
|
233
236
|
name: "caret-down",
|
|
234
237
|
size: "16px",
|
|
235
|
-
class:
|
|
238
|
+
class: v(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
236
239
|
}, null, 8, ["class"])
|
|
237
|
-
], 8,
|
|
240
|
+
], 8, ae)) : i("", !0)
|
|
238
241
|
], 2),
|
|
239
|
-
n(x).clearable && n(K) ? (o(), l("div",
|
|
242
|
+
n(x).clearable && n(K) ? (o(), l("div", se, [
|
|
240
243
|
c("button", {
|
|
241
244
|
class: "clear-button",
|
|
242
245
|
onClick: k[1] || (k[1] = C((y) => n(x).clearSelection(), ["prevent", "stop"]))
|
|
@@ -254,13 +257,13 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
254
257
|
}, [
|
|
255
258
|
Array.isArray(n(h)) ? {
|
|
256
259
|
name: "tooltip",
|
|
257
|
-
fn:
|
|
258
|
-
c("div",
|
|
259
|
-
(o(!0), l(
|
|
260
|
+
fn: s(() => [
|
|
261
|
+
c("div", U, [
|
|
262
|
+
(o(!0), l(j, null, R(n(h), (y) => (o(), f(n(T), {
|
|
260
263
|
key: y,
|
|
261
264
|
variant: "body2"
|
|
262
265
|
}, {
|
|
263
|
-
default:
|
|
266
|
+
default: s(() => [
|
|
264
267
|
g(r(y), 1)
|
|
265
268
|
]),
|
|
266
269
|
_: 2
|
|
@@ -273,5 +276,5 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
273
276
|
}
|
|
274
277
|
});
|
|
275
278
|
export {
|
|
276
|
-
|
|
279
|
+
Ke as default
|
|
277
280
|
};
|
|
@@ -1679,6 +1679,10 @@ declare const DropdownTypes: () => (({
|
|
|
1679
1679
|
type: import("vue").PropType<boolean>;
|
|
1680
1680
|
default: boolean;
|
|
1681
1681
|
};
|
|
1682
|
+
shownValuesCount: {
|
|
1683
|
+
type: import("vue").PropType<number>;
|
|
1684
|
+
default: number;
|
|
1685
|
+
};
|
|
1682
1686
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1683
1687
|
clear: () => void;
|
|
1684
1688
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1737,6 +1741,10 @@ declare const DropdownTypes: () => (({
|
|
|
1737
1741
|
type: import("vue").PropType<boolean>;
|
|
1738
1742
|
default: boolean;
|
|
1739
1743
|
};
|
|
1744
|
+
shownValuesCount: {
|
|
1745
|
+
type: import("vue").PropType<number>;
|
|
1746
|
+
default: number;
|
|
1747
|
+
};
|
|
1740
1748
|
}>> & {
|
|
1741
1749
|
onClear?: () => any;
|
|
1742
1750
|
}, {
|
|
@@ -1749,6 +1757,7 @@ declare const DropdownTypes: () => (({
|
|
|
1749
1757
|
displayedValue: any;
|
|
1750
1758
|
cancelAllSelectedDisplay: boolean;
|
|
1751
1759
|
displayValueInQuotes: boolean;
|
|
1760
|
+
shownValuesCount: number;
|
|
1752
1761
|
}> | ({
|
|
1753
1762
|
new (...args: any[]): {
|
|
1754
1763
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1777,6 +1786,8 @@ declare const DropdownTypes: () => (({
|
|
|
1777
1786
|
autoSize: boolean;
|
|
1778
1787
|
disableKeyboardEvents: boolean;
|
|
1779
1788
|
dynamicFilterMode: boolean;
|
|
1789
|
+
minSelections: number;
|
|
1790
|
+
maxSelections: number;
|
|
1780
1791
|
isOnTop: boolean;
|
|
1781
1792
|
triggerLabel: string;
|
|
1782
1793
|
triggerHelperText: string;
|
|
@@ -1784,6 +1795,7 @@ declare const DropdownTypes: () => (({
|
|
|
1784
1795
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
1785
1796
|
triggerFeedbackShowIcon: boolean;
|
|
1786
1797
|
triggerShowAllSelectedText: boolean;
|
|
1798
|
+
triggerShownValuesCount: number;
|
|
1787
1799
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
1788
1800
|
inlineSearch: boolean;
|
|
1789
1801
|
inlineSearchPlaceholder: string;
|
|
@@ -1918,6 +1930,14 @@ declare const DropdownTypes: () => (({
|
|
|
1918
1930
|
type: import("vue").PropType<boolean>;
|
|
1919
1931
|
default: boolean;
|
|
1920
1932
|
};
|
|
1933
|
+
minSelections: {
|
|
1934
|
+
type: import("vue").PropType<number>;
|
|
1935
|
+
default: number;
|
|
1936
|
+
};
|
|
1937
|
+
maxSelections: {
|
|
1938
|
+
type: import("vue").PropType<number>;
|
|
1939
|
+
default: any;
|
|
1940
|
+
};
|
|
1921
1941
|
isOnTop: {
|
|
1922
1942
|
type: import("vue").PropType<boolean>;
|
|
1923
1943
|
default: boolean;
|
|
@@ -1946,6 +1966,10 @@ declare const DropdownTypes: () => (({
|
|
|
1946
1966
|
type: import("vue").PropType<boolean>;
|
|
1947
1967
|
default: boolean;
|
|
1948
1968
|
};
|
|
1969
|
+
triggerShownValuesCount: {
|
|
1970
|
+
type: import("vue").PropType<number>;
|
|
1971
|
+
default: number;
|
|
1972
|
+
};
|
|
1949
1973
|
predefinedTrigger: {
|
|
1950
1974
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
1951
1975
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2075,7 +2099,7 @@ declare const DropdownTypes: () => (({
|
|
|
2075
2099
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2076
2100
|
onOpened?: () => any;
|
|
2077
2101
|
onClosed?: () => any;
|
|
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">;
|
|
2102
|
+
} & 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" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "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">;
|
|
2079
2103
|
$attrs: {
|
|
2080
2104
|
[x: string]: unknown;
|
|
2081
2105
|
};
|
|
@@ -2195,6 +2219,14 @@ declare const DropdownTypes: () => (({
|
|
|
2195
2219
|
type: import("vue").PropType<boolean>;
|
|
2196
2220
|
default: boolean;
|
|
2197
2221
|
};
|
|
2222
|
+
minSelections: {
|
|
2223
|
+
type: import("vue").PropType<number>;
|
|
2224
|
+
default: number;
|
|
2225
|
+
};
|
|
2226
|
+
maxSelections: {
|
|
2227
|
+
type: import("vue").PropType<number>;
|
|
2228
|
+
default: any;
|
|
2229
|
+
};
|
|
2198
2230
|
isOnTop: {
|
|
2199
2231
|
type: import("vue").PropType<boolean>;
|
|
2200
2232
|
default: boolean;
|
|
@@ -2223,6 +2255,10 @@ declare const DropdownTypes: () => (({
|
|
|
2223
2255
|
type: import("vue").PropType<boolean>;
|
|
2224
2256
|
default: boolean;
|
|
2225
2257
|
};
|
|
2258
|
+
triggerShownValuesCount: {
|
|
2259
|
+
type: import("vue").PropType<number>;
|
|
2260
|
+
default: number;
|
|
2261
|
+
};
|
|
2226
2262
|
predefinedTrigger: {
|
|
2227
2263
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2228
2264
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2392,6 +2428,8 @@ declare const DropdownTypes: () => (({
|
|
|
2392
2428
|
autoSize: boolean;
|
|
2393
2429
|
disableKeyboardEvents: boolean;
|
|
2394
2430
|
dynamicFilterMode: boolean;
|
|
2431
|
+
minSelections: number;
|
|
2432
|
+
maxSelections: number;
|
|
2395
2433
|
isOnTop: boolean;
|
|
2396
2434
|
triggerLabel: string;
|
|
2397
2435
|
triggerHelperText: string;
|
|
@@ -2399,6 +2437,7 @@ declare const DropdownTypes: () => (({
|
|
|
2399
2437
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
2400
2438
|
triggerFeedbackShowIcon: boolean;
|
|
2401
2439
|
triggerShowAllSelectedText: boolean;
|
|
2440
|
+
triggerShownValuesCount: number;
|
|
2402
2441
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
2403
2442
|
inlineSearch: boolean;
|
|
2404
2443
|
inlineSearchPlaceholder: string;
|
|
@@ -2553,6 +2592,14 @@ declare const DropdownTypes: () => (({
|
|
|
2553
2592
|
type: import("vue").PropType<boolean>;
|
|
2554
2593
|
default: boolean;
|
|
2555
2594
|
};
|
|
2595
|
+
minSelections: {
|
|
2596
|
+
type: import("vue").PropType<number>;
|
|
2597
|
+
default: number;
|
|
2598
|
+
};
|
|
2599
|
+
maxSelections: {
|
|
2600
|
+
type: import("vue").PropType<number>;
|
|
2601
|
+
default: any;
|
|
2602
|
+
};
|
|
2556
2603
|
isOnTop: {
|
|
2557
2604
|
type: import("vue").PropType<boolean>;
|
|
2558
2605
|
default: boolean;
|
|
@@ -2581,6 +2628,10 @@ declare const DropdownTypes: () => (({
|
|
|
2581
2628
|
type: import("vue").PropType<boolean>;
|
|
2582
2629
|
default: boolean;
|
|
2583
2630
|
};
|
|
2631
|
+
triggerShownValuesCount: {
|
|
2632
|
+
type: import("vue").PropType<number>;
|
|
2633
|
+
default: number;
|
|
2634
|
+
};
|
|
2584
2635
|
predefinedTrigger: {
|
|
2585
2636
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2586
2637
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2823,6 +2874,14 @@ declare const DropdownTypes: () => (({
|
|
|
2823
2874
|
type: import("vue").PropType<boolean>;
|
|
2824
2875
|
default: boolean;
|
|
2825
2876
|
};
|
|
2877
|
+
minSelections: {
|
|
2878
|
+
type: import("vue").PropType<number>;
|
|
2879
|
+
default: number;
|
|
2880
|
+
};
|
|
2881
|
+
maxSelections: {
|
|
2882
|
+
type: import("vue").PropType<number>;
|
|
2883
|
+
default: any;
|
|
2884
|
+
};
|
|
2826
2885
|
isOnTop: {
|
|
2827
2886
|
type: import("vue").PropType<boolean>;
|
|
2828
2887
|
default: boolean;
|
|
@@ -2851,6 +2910,10 @@ declare const DropdownTypes: () => (({
|
|
|
2851
2910
|
type: import("vue").PropType<boolean>;
|
|
2852
2911
|
default: boolean;
|
|
2853
2912
|
};
|
|
2913
|
+
triggerShownValuesCount: {
|
|
2914
|
+
type: import("vue").PropType<number>;
|
|
2915
|
+
default: number;
|
|
2916
|
+
};
|
|
2854
2917
|
predefinedTrigger: {
|
|
2855
2918
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2856
2919
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -3020,6 +3083,8 @@ declare const DropdownTypes: () => (({
|
|
|
3020
3083
|
autoSize: boolean;
|
|
3021
3084
|
disableKeyboardEvents: boolean;
|
|
3022
3085
|
dynamicFilterMode: boolean;
|
|
3086
|
+
minSelections: number;
|
|
3087
|
+
maxSelections: number;
|
|
3023
3088
|
isOnTop: boolean;
|
|
3024
3089
|
triggerLabel: string;
|
|
3025
3090
|
triggerHelperText: string;
|
|
@@ -3027,6 +3092,7 @@ declare const DropdownTypes: () => (({
|
|
|
3027
3092
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
3028
3093
|
triggerFeedbackShowIcon: boolean;
|
|
3029
3094
|
triggerShowAllSelectedText: boolean;
|
|
3095
|
+
triggerShownValuesCount: number;
|
|
3030
3096
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
3031
3097
|
inlineSearch: boolean;
|
|
3032
3098
|
inlineSearchPlaceholder: string;
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
options: unknown[];
|
|
3
3
|
modelValue: unknown;
|
|
4
|
+
variant: 'primary' | 'default';
|
|
4
5
|
testId?: string;
|
|
5
6
|
iconKey?: string;
|
|
6
7
|
}>, {
|
|
7
8
|
testId: string;
|
|
9
|
+
variant: string;
|
|
8
10
|
iconKey: string;
|
|
9
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
12
|
"update:modelValue": (...args: any[]) => void;
|
|
11
13
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
14
|
options: unknown[];
|
|
13
15
|
modelValue: unknown;
|
|
16
|
+
variant: 'primary' | 'default';
|
|
14
17
|
testId?: string;
|
|
15
18
|
iconKey?: string;
|
|
16
19
|
}>, {
|
|
17
20
|
testId: string;
|
|
21
|
+
variant: string;
|
|
18
22
|
iconKey: string;
|
|
19
23
|
}>>> & {
|
|
20
24
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
21
25
|
}, {
|
|
22
26
|
testId: string;
|
|
27
|
+
variant: 'primary' | 'default';
|
|
23
28
|
iconKey: string;
|
|
24
29
|
}>;
|
|
25
30
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SwitchV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SwitchV4.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fa120cf6"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import "../../../SwitchV4.
|
|
1
|
+
import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css"; import { defineComponent as k, ref as h, onMounted as I, openBlock as l, createElementBlock as r, normalizeClass as u, unref as i, Fragment as V, renderList as $, createBlock as B } from "vue";
|
|
2
2
|
import { useVModel as C } from "@vueuse/core";
|
|
3
3
|
import "../../button/v4/ButtonV4.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import w from "../../button/v4/IconButtonV4.vue.js";
|
|
5
5
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
6
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
7
|
-
import { SwitchTestIdModifiers as
|
|
8
|
-
const
|
|
7
|
+
import { SwitchTestIdModifiers as m } from "../../../testids/index.js";
|
|
8
|
+
const y = ["data-testid"], g = /* @__PURE__ */ k({
|
|
9
9
|
__name: "SwitchV4",
|
|
10
10
|
props: {
|
|
11
11
|
options: null,
|
|
12
12
|
modelValue: null,
|
|
13
|
+
variant: { default: "default" },
|
|
13
14
|
testId: { default: "" },
|
|
14
15
|
iconKey: { default: "icon" }
|
|
15
16
|
},
|
|
16
17
|
emits: ["update:modelValue"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
n.value =
|
|
21
|
-
(
|
|
18
|
+
setup(t, { emit: f }) {
|
|
19
|
+
const a = t, n = h(), v = C(a, "modelValue", f), c = (e) => n.value === e;
|
|
20
|
+
I(() => {
|
|
21
|
+
n.value = a.options.findIndex(
|
|
22
|
+
(e) => e === a.modelValue
|
|
22
23
|
);
|
|
23
24
|
});
|
|
24
|
-
const
|
|
25
|
-
n.value =
|
|
25
|
+
const p = (e, s) => {
|
|
26
|
+
n.value = s, v.value = e;
|
|
26
27
|
};
|
|
27
|
-
return (
|
|
28
|
-
class: "switch",
|
|
29
|
-
"data-testid": `${
|
|
28
|
+
return (e, s) => (l(), r("div", {
|
|
29
|
+
class: u(["switch", [`switch--variant-${t.variant}`]]),
|
|
30
|
+
"data-testid": `${t.testId}-${i(m).WRAPPER}`
|
|
30
31
|
}, [
|
|
31
|
-
(
|
|
32
|
-
key:
|
|
33
|
-
class:
|
|
34
|
-
"icon-name":
|
|
32
|
+
(l(!0), r(V, null, $(t.options, (d, o) => (l(), B(i(w), {
|
|
33
|
+
key: o,
|
|
34
|
+
class: u(["option", { "option--selected": c(o) }]),
|
|
35
|
+
"icon-name": d[t.iconKey],
|
|
35
36
|
size: "small",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
color: c(o) ? t.variant : "default",
|
|
38
|
+
"data-testid": `${t.testId}-${i(m).BUTTON}`,
|
|
39
|
+
onClick: (M) => p(d, o)
|
|
40
|
+
}, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"]))), 128))
|
|
41
|
+
], 10, y));
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
g as default
|
|
44
46
|
};
|
|
@@ -3,6 +3,11 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
+
variant: {
|
|
7
|
+
type: import("vue").PropType<"default" | "primary">;
|
|
8
|
+
required: true;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
6
11
|
modelValue: {
|
|
7
12
|
type: import("vue").PropType<unknown>;
|
|
8
13
|
required: true;
|
|
@@ -22,6 +27,11 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
22
27
|
type: import("vue").PropType<string>;
|
|
23
28
|
default: string;
|
|
24
29
|
};
|
|
30
|
+
variant: {
|
|
31
|
+
type: import("vue").PropType<"default" | "primary">;
|
|
32
|
+
required: true;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
25
35
|
modelValue: {
|
|
26
36
|
type: import("vue").PropType<unknown>;
|
|
27
37
|
required: true;
|
|
@@ -38,6 +48,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
38
48
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
39
49
|
}, {
|
|
40
50
|
testId: string;
|
|
51
|
+
variant: "default" | "primary";
|
|
41
52
|
iconKey: string;
|
|
42
53
|
}>[];
|
|
43
54
|
export { default as Switch } from './SwitchV4.vue';
|