@ironsource/shared-ui 2.1.12-rc.21 → 2.1.12-rc.22
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/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_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/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +218 -189
- 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 +39 -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.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +10 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +294 -237
- package/components/table/v4/index.d.ts +34 -1
- package/components/table/v4/storyUtils.d.ts +2 -0
- package/index.d.ts +182 -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/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_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
|
};
|
|
@@ -1777,6 +1777,8 @@ declare const DropdownTypes: () => (({
|
|
|
1777
1777
|
autoSize: boolean;
|
|
1778
1778
|
disableKeyboardEvents: boolean;
|
|
1779
1779
|
dynamicFilterMode: boolean;
|
|
1780
|
+
minSelections: number;
|
|
1781
|
+
maxSelections: number;
|
|
1780
1782
|
isOnTop: boolean;
|
|
1781
1783
|
triggerLabel: string;
|
|
1782
1784
|
triggerHelperText: string;
|
|
@@ -1918,6 +1920,14 @@ declare const DropdownTypes: () => (({
|
|
|
1918
1920
|
type: import("vue").PropType<boolean>;
|
|
1919
1921
|
default: boolean;
|
|
1920
1922
|
};
|
|
1923
|
+
minSelections: {
|
|
1924
|
+
type: import("vue").PropType<number>;
|
|
1925
|
+
default: number;
|
|
1926
|
+
};
|
|
1927
|
+
maxSelections: {
|
|
1928
|
+
type: import("vue").PropType<number>;
|
|
1929
|
+
default: any;
|
|
1930
|
+
};
|
|
1921
1931
|
isOnTop: {
|
|
1922
1932
|
type: import("vue").PropType<boolean>;
|
|
1923
1933
|
default: boolean;
|
|
@@ -2075,7 +2085,7 @@ declare const DropdownTypes: () => (({
|
|
|
2075
2085
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2076
2086
|
onOpened?: () => any;
|
|
2077
2087
|
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">;
|
|
2088
|
+
} & 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" | "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
2089
|
$attrs: {
|
|
2080
2090
|
[x: string]: unknown;
|
|
2081
2091
|
};
|
|
@@ -2195,6 +2205,14 @@ declare const DropdownTypes: () => (({
|
|
|
2195
2205
|
type: import("vue").PropType<boolean>;
|
|
2196
2206
|
default: boolean;
|
|
2197
2207
|
};
|
|
2208
|
+
minSelections: {
|
|
2209
|
+
type: import("vue").PropType<number>;
|
|
2210
|
+
default: number;
|
|
2211
|
+
};
|
|
2212
|
+
maxSelections: {
|
|
2213
|
+
type: import("vue").PropType<number>;
|
|
2214
|
+
default: any;
|
|
2215
|
+
};
|
|
2198
2216
|
isOnTop: {
|
|
2199
2217
|
type: import("vue").PropType<boolean>;
|
|
2200
2218
|
default: boolean;
|
|
@@ -2392,6 +2410,8 @@ declare const DropdownTypes: () => (({
|
|
|
2392
2410
|
autoSize: boolean;
|
|
2393
2411
|
disableKeyboardEvents: boolean;
|
|
2394
2412
|
dynamicFilterMode: boolean;
|
|
2413
|
+
minSelections: number;
|
|
2414
|
+
maxSelections: number;
|
|
2395
2415
|
isOnTop: boolean;
|
|
2396
2416
|
triggerLabel: string;
|
|
2397
2417
|
triggerHelperText: string;
|
|
@@ -2553,6 +2573,14 @@ declare const DropdownTypes: () => (({
|
|
|
2553
2573
|
type: import("vue").PropType<boolean>;
|
|
2554
2574
|
default: boolean;
|
|
2555
2575
|
};
|
|
2576
|
+
minSelections: {
|
|
2577
|
+
type: import("vue").PropType<number>;
|
|
2578
|
+
default: number;
|
|
2579
|
+
};
|
|
2580
|
+
maxSelections: {
|
|
2581
|
+
type: import("vue").PropType<number>;
|
|
2582
|
+
default: any;
|
|
2583
|
+
};
|
|
2556
2584
|
isOnTop: {
|
|
2557
2585
|
type: import("vue").PropType<boolean>;
|
|
2558
2586
|
default: boolean;
|
|
@@ -2823,6 +2851,14 @@ declare const DropdownTypes: () => (({
|
|
|
2823
2851
|
type: import("vue").PropType<boolean>;
|
|
2824
2852
|
default: boolean;
|
|
2825
2853
|
};
|
|
2854
|
+
minSelections: {
|
|
2855
|
+
type: import("vue").PropType<number>;
|
|
2856
|
+
default: number;
|
|
2857
|
+
};
|
|
2858
|
+
maxSelections: {
|
|
2859
|
+
type: import("vue").PropType<number>;
|
|
2860
|
+
default: any;
|
|
2861
|
+
};
|
|
2826
2862
|
isOnTop: {
|
|
2827
2863
|
type: import("vue").PropType<boolean>;
|
|
2828
2864
|
default: boolean;
|
|
@@ -3020,6 +3056,8 @@ declare const DropdownTypes: () => (({
|
|
|
3020
3056
|
autoSize: boolean;
|
|
3021
3057
|
disableKeyboardEvents: boolean;
|
|
3022
3058
|
dynamicFilterMode: boolean;
|
|
3059
|
+
minSelections: number;
|
|
3060
|
+
maxSelections: number;
|
|
3023
3061
|
isOnTop: boolean;
|
|
3024
3062
|
triggerLabel: string;
|
|
3025
3063
|
triggerHelperText: 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';
|
|
@@ -31,7 +31,6 @@ export declare const tableCommon: (props: any, emit: any) => {
|
|
|
31
31
|
hasCheckboxes: import("vue").ComputedRef<boolean>;
|
|
32
32
|
toggleExpandRow: (index: number, event: any) => Promise<void>;
|
|
33
33
|
isRowExpanded: (rowIndex: number) => boolean;
|
|
34
|
-
cssRowHeight: import("vue").ComputedRef<string>;
|
|
35
34
|
cssExpandGridCol: import("vue").ComputedRef<string>;
|
|
36
35
|
activeMenuRow: import("vue").Ref<number>;
|
|
37
36
|
};
|