@ironsource/shared-ui 2.2.0-test.4 → 2.2.0-test.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +43 -44
- package/components/button/v4/IconButtonV4.vue2.js +46 -1
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/chip/v4/ChipV4.vue2.js +1 -1
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +39 -38
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +20 -1
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/popover/v3/Popover.vue2.js +38 -1
- package/components/radioButton/v3/RadioButton.vue2.js +82 -1
- package/components/radioButton/v3/RadioGroup.vue2.js +29 -1
- package/components/radioButton/v4/RadioButtonV4.vue2.js +80 -1
- package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +126 -124
- package/components/table/v4/index.d.ts +7 -1
- package/components/table-cells/v4/EditableV4.vue2.js +57 -1
- package/index.d.ts +112 -6
- package/index.js +1 -1
- package/package.json +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../IconV4.
|
|
2
|
-
import { useStorage as
|
|
3
|
-
import { ASSETS_BASE_URL as
|
|
4
|
-
const
|
|
1
|
+
import "../../../IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css"; import { defineComponent as w, useCssVars as C, unref as l, useSlots as b, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as p, createCommentVNode as z, renderSlot as B } from "vue";
|
|
2
|
+
import { useStorage as I } from "../../../composables/useStorage.js";
|
|
3
|
+
import { ASSETS_BASE_URL as T } from "./consts.js";
|
|
4
|
+
const U = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
5
5
|
__name: "IconV4",
|
|
6
6
|
props: {
|
|
7
7
|
type: { default: "regular" },
|
|
@@ -10,62 +10,63 @@ const V = ["innerHTML"], B = /* @__PURE__ */ S({
|
|
|
10
10
|
size: { default: null },
|
|
11
11
|
height: { default: null },
|
|
12
12
|
width: { default: null },
|
|
13
|
-
platform: { default: null }
|
|
13
|
+
platform: { default: null },
|
|
14
|
+
circled: { type: Boolean, default: !1 }
|
|
14
15
|
},
|
|
15
16
|
setup(r) {
|
|
16
17
|
const e = r;
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
C((t) => ({
|
|
19
|
+
"9a94b0d2": l(m),
|
|
20
|
+
eb9f5d14: l(h),
|
|
21
|
+
"047031a6": r.color
|
|
21
22
|
}));
|
|
22
|
-
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {},
|
|
23
|
+
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, d = b(), m = o(() => e.size || e.width), h = o(() => e.size || e.height), y = o(
|
|
23
24
|
() => e.platform ? `${e.type}/${e.platform}` : e.type
|
|
24
|
-
),
|
|
25
|
+
), g = o(() => {
|
|
25
26
|
if (!e.name)
|
|
26
27
|
return "";
|
|
27
28
|
const t = e.name.split("/");
|
|
28
29
|
return [e.name ? `icon-name--${t.at(-1)}` : ""];
|
|
29
30
|
}), c = o(() => {
|
|
30
|
-
if (
|
|
31
|
+
if (d.default)
|
|
31
32
|
return "";
|
|
32
33
|
if (!e.name)
|
|
33
34
|
return console.error("Please provided icon name"), "";
|
|
34
35
|
const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
|
|
35
|
-
return `${
|
|
36
|
-
}),
|
|
37
|
-
function
|
|
36
|
+
return `${T}/icons/${t}${y.value}/${e.name}${n}.svg`;
|
|
37
|
+
}), s = I(`icon-${e.type}--${e.name}`);
|
|
38
|
+
function v(t) {
|
|
38
39
|
return a[t] || (a[t] = fetch(t).then((n) => n.text()).finally(() => {
|
|
39
40
|
delete a[t];
|
|
40
41
|
}).catch((n) => {
|
|
41
42
|
console.error(n);
|
|
42
43
|
})), a[t];
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function $(t) {
|
|
45
46
|
return t.replace(
|
|
46
47
|
/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
|
47
48
|
""
|
|
48
49
|
);
|
|
49
50
|
}
|
|
50
51
|
function i() {
|
|
51
|
-
|
|
52
|
-
typeof t == "string" && t.startsWith("<svg") && (
|
|
52
|
+
v(c.value).then((t) => {
|
|
53
|
+
typeof t == "string" && t.startsWith("<svg") && (s.value = t);
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
!
|
|
56
|
-
const
|
|
56
|
+
!s.value && c.value && i();
|
|
57
|
+
const S = o(() => $(s.value ?? ""));
|
|
57
58
|
return _(() => e.name, i), (t, n) => (u(), f("span", {
|
|
58
|
-
class:
|
|
59
|
+
class: p(["icon", l(g)])
|
|
59
60
|
}, [
|
|
60
61
|
t.$slots.default ? z("", !0) : (u(), f("span", {
|
|
61
62
|
key: 0,
|
|
62
|
-
class: "icon-wrapper",
|
|
63
|
-
innerHTML:
|
|
64
|
-
}, null,
|
|
65
|
-
|
|
63
|
+
class: p(["icon-wrapper", { "icon-wrapper--circled": r.circled }]),
|
|
64
|
+
innerHTML: l(S)
|
|
65
|
+
}, null, 10, U)),
|
|
66
|
+
B(t.$slots, "default", {}, void 0, !0)
|
|
66
67
|
], 2));
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
x as default
|
|
71
72
|
};
|
|
@@ -11,6 +11,7 @@ declare const IconTypes: () => ({
|
|
|
11
11
|
height: string;
|
|
12
12
|
width: string;
|
|
13
13
|
platform: string;
|
|
14
|
+
circled: boolean;
|
|
14
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
name: {
|
|
16
17
|
type: import("vue").PropType<string>;
|
|
@@ -40,7 +41,11 @@ declare const IconTypes: () => ({
|
|
|
40
41
|
type: import("vue").PropType<string>;
|
|
41
42
|
default: any;
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
+
circled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width" | "platform" | "circled">;
|
|
44
49
|
$attrs: {
|
|
45
50
|
[x: string]: unknown;
|
|
46
51
|
};
|
|
@@ -83,6 +88,10 @@ declare const IconTypes: () => ({
|
|
|
83
88
|
type: import("vue").PropType<string>;
|
|
84
89
|
default: any;
|
|
85
90
|
};
|
|
91
|
+
circled: {
|
|
92
|
+
type: import("vue").PropType<boolean>;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
86
95
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
87
96
|
name: string;
|
|
88
97
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -91,6 +100,7 @@ declare const IconTypes: () => ({
|
|
|
91
100
|
height: string;
|
|
92
101
|
width: string;
|
|
93
102
|
platform: string;
|
|
103
|
+
circled: boolean;
|
|
94
104
|
}, {}, string> & {
|
|
95
105
|
beforeCreate?: (() => void) | (() => void)[];
|
|
96
106
|
created?: (() => void) | (() => void)[];
|
|
@@ -140,6 +150,10 @@ declare const IconTypes: () => ({
|
|
|
140
150
|
type: import("vue").PropType<string>;
|
|
141
151
|
default: any;
|
|
142
152
|
};
|
|
153
|
+
circled: {
|
|
154
|
+
type: import("vue").PropType<boolean>;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
143
157
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
144
158
|
__isFragment?: never;
|
|
145
159
|
__isTeleport?: never;
|
|
@@ -173,6 +187,10 @@ declare const IconTypes: () => ({
|
|
|
173
187
|
type: import("vue").PropType<string>;
|
|
174
188
|
default: any;
|
|
175
189
|
};
|
|
190
|
+
circled: {
|
|
191
|
+
type: import("vue").PropType<boolean>;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
176
194
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
177
195
|
name: string;
|
|
178
196
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -181,6 +199,7 @@ declare const IconTypes: () => ({
|
|
|
181
199
|
height: string;
|
|
182
200
|
width: string;
|
|
183
201
|
platform: string;
|
|
202
|
+
circled: boolean;
|
|
184
203
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
185
204
|
$slots: {
|
|
186
205
|
default?(_: {}): any;
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
import "../../../Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css"; import "../../../Popover.vue_vue_type_style_index_1_lang.css";
|
|
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
|
+
import { Dropdown as s } from "floating-vue";
|
|
3
|
+
const f = /* @__PURE__ */ n({
|
|
4
|
+
__name: "Popover",
|
|
5
|
+
props: {
|
|
6
|
+
open: { type: Boolean },
|
|
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
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
return (t, u) => (i(), r(l(s), {
|
|
17
|
+
theme: "custom-popover",
|
|
18
|
+
placement: e.placement,
|
|
19
|
+
shown: !!e.open,
|
|
20
|
+
triggers: e.trigger === "managed" ? [] : [e.trigger],
|
|
21
|
+
"auto-hide": e.autoHide,
|
|
22
|
+
distance: e.distance,
|
|
23
|
+
skidding: e.skidding,
|
|
24
|
+
"data-testid": e.testId
|
|
25
|
+
}, {
|
|
26
|
+
popper: a(({ hide: o }) => [
|
|
27
|
+
d(t.$slots, "content", { hide: o }, void 0, !0)
|
|
28
|
+
]),
|
|
29
|
+
default: a(() => [
|
|
30
|
+
d(t.$slots, "trigger", {}, void 0, !0)
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
f as default
|
|
38
|
+
};
|
|
@@ -1 +1,82 @@
|
|
|
1
|
-
import "../../../RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css";
|
|
1
|
+
import "../../../RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css"; import { defineComponent as E, computed as I, openBlock as u, createElementBlock as C, normalizeClass as T, unref as e, createElementVNode as o, withDirectives as N, mergeProps as i, isRef as g, vModelRadio as w, renderSlot as z, createVNode as A, withCtx as m, createTextVNode as f, toDisplayString as c, createBlock as v, createCommentVNode as R } from "vue";
|
|
2
|
+
import p from "../../typography/Text.vue.js";
|
|
3
|
+
import { useRadio as D } from "../common/useRadio.js";
|
|
4
|
+
import { RadioTestIdModifiers as r } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as L } from "../../../utils/testIds.js";
|
|
6
|
+
const $ = { class: "wrapper" }, F = ["value", "name", "disabled"], U = /* @__PURE__ */ E({
|
|
7
|
+
__name: "RadioButton",
|
|
8
|
+
props: {
|
|
9
|
+
label: { default: "" },
|
|
10
|
+
name: { default: "" },
|
|
11
|
+
helperText: { default: "" },
|
|
12
|
+
errorText: { default: "" },
|
|
13
|
+
modelValue: { default: void 0 },
|
|
14
|
+
testId: { default: "" },
|
|
15
|
+
disabledButton: { type: Boolean, default: !1 }
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue", "change"],
|
|
18
|
+
setup(t, { emit: B }) {
|
|
19
|
+
const d = t, { radioRef: V, focus: x, disabled: h, modelValue: a, radioGroup: k } = D(
|
|
20
|
+
d,
|
|
21
|
+
B
|
|
22
|
+
), s = L(d.testId, r), b = I(
|
|
23
|
+
() => h.value || d.disabledButton
|
|
24
|
+
);
|
|
25
|
+
return (y, l) => (u(), C("label", {
|
|
26
|
+
class: T(["radio-button", { "radio-button--disabled": e(b) }])
|
|
27
|
+
}, [
|
|
28
|
+
o("span", $, [
|
|
29
|
+
N(o("input", i({
|
|
30
|
+
ref_key: "radioRef",
|
|
31
|
+
ref: V,
|
|
32
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => g(a) ? a.value = n : null),
|
|
33
|
+
value: t.label,
|
|
34
|
+
name: t.name || e(k)?.name,
|
|
35
|
+
type: "radio",
|
|
36
|
+
disabled: e(b)
|
|
37
|
+
}, e(s)[e(r).FIELD], {
|
|
38
|
+
onFocus: l[1] || (l[1] = (n) => x.value = !0),
|
|
39
|
+
onBlur: l[2] || (l[2] = (n) => x.value = !1)
|
|
40
|
+
}), null, 16, F), [
|
|
41
|
+
[w, e(a)]
|
|
42
|
+
]),
|
|
43
|
+
o("span", {
|
|
44
|
+
class: T([{ "circle--selected": e(a) === t.label }, "circle"])
|
|
45
|
+
}, null, 2)
|
|
46
|
+
]),
|
|
47
|
+
o("span", i({ class: "label" }, e(s)[e(r).LABEL]), [
|
|
48
|
+
z(y.$slots, "default", {}, () => [
|
|
49
|
+
A(p, { "is-truncated": "" }, {
|
|
50
|
+
default: m(() => [
|
|
51
|
+
f(c(t.label), 1)
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
})
|
|
55
|
+
], !0),
|
|
56
|
+
!t.errorText && t.helperText ? (u(), v(p, {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "helper-text--text helper-text",
|
|
59
|
+
size: "caption"
|
|
60
|
+
}, {
|
|
61
|
+
default: m(() => [
|
|
62
|
+
f(c(t.helperText), 1)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})) : R("", !0),
|
|
66
|
+
t.errorText ? (u(), v(p, i({
|
|
67
|
+
key: 1,
|
|
68
|
+
size: "caption",
|
|
69
|
+
class: "helper-text--error helper-text"
|
|
70
|
+
}, e(s)[e(r).ERROR_TEXT]), {
|
|
71
|
+
default: m(() => [
|
|
72
|
+
f(c(t.errorText), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 16)) : R("", !0)
|
|
76
|
+
], 16)
|
|
77
|
+
], 2));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
U as default
|
|
82
|
+
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css";
|
|
1
|
+
import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
|
|
2
|
+
import { RadioTestIdModifiers as t } from "../../../testids/index.js";
|
|
3
|
+
import { radioGroupCommon as m } from "../common/radioGroup.common.js";
|
|
4
|
+
import { useTestIdAttrs as c } from "../../../utils/testIds.js";
|
|
5
|
+
const _ = /* @__PURE__ */ u({
|
|
6
|
+
__name: "RadioGroup",
|
|
7
|
+
props: {
|
|
8
|
+
name: { default: "" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
modelValue: null,
|
|
11
|
+
row: { type: Boolean, default: !1 },
|
|
12
|
+
testId: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(e, { emit: a }) {
|
|
16
|
+
const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
|
|
17
|
+
return (l, g) => (n(), p("div", f({
|
|
18
|
+
ref_key: "radioGroupRef",
|
|
19
|
+
ref: s,
|
|
20
|
+
class: [{ "radio-group--row": e.row }, "radio-group"],
|
|
21
|
+
role: "radiogroup"
|
|
22
|
+
}, r(d)[r(t).GROUP]), [
|
|
23
|
+
i(l.$slots, "default", {}, void 0, !0)
|
|
24
|
+
], 16));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|
|
@@ -1 +1,80 @@
|
|
|
1
|
-
import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css";
|
|
1
|
+
import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css"; import { defineComponent as R, ref as g, inject as k, computed as c, openBlock as b, createElementBlock as B, normalizeClass as v, unref as e, createElementVNode as l, withDirectives as w, mergeProps as m, isRef as C, vModelRadio as L, renderSlot as N, createVNode as T, withCtx as V, createTextVNode as h, toDisplayString as y, createBlock as A, createCommentVNode as x } from "vue";
|
|
2
|
+
import I from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import { radioGroupKey as G } from "../common/useRadio.js";
|
|
4
|
+
import { RadioTestIdModifiers as r } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as S } from "../../../utils/testIds.js";
|
|
6
|
+
const M = { class: "wrapper-with-description" }, P = { class: "wrapper" }, j = ["value", "name", "disabled"], _ = /* @__PURE__ */ R({
|
|
7
|
+
__name: "RadioButtonV4",
|
|
8
|
+
props: {
|
|
9
|
+
value: null,
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
name: { default: "" },
|
|
12
|
+
modelValue: { default: void 0 },
|
|
13
|
+
testId: { default: "" },
|
|
14
|
+
labelDescription: { default: "" }
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue", "change"],
|
|
17
|
+
setup(t, { emit: D }) {
|
|
18
|
+
const o = t, n = S(o.testId, r), u = g(), a = k(G, void 0), p = c(() => !!a), d = c(() => a?.disabled), s = c({
|
|
19
|
+
get() {
|
|
20
|
+
return p.value ? a?.modelValue : o.modelValue;
|
|
21
|
+
},
|
|
22
|
+
set(i) {
|
|
23
|
+
p.value ? a?.changeEvent(i) : D("update:modelValue", i), u.value && (u.value.checked = o.modelValue === o.value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return (i, f) => (b(), B("label", {
|
|
27
|
+
class: v(["radio-button", { "radio-button--disabled": e(d) }])
|
|
28
|
+
}, [
|
|
29
|
+
l("span", M, [
|
|
30
|
+
l("span", P, [
|
|
31
|
+
w(l("input", m({
|
|
32
|
+
ref_key: "radioRef",
|
|
33
|
+
ref: u,
|
|
34
|
+
"onUpdate:modelValue": f[0] || (f[0] = (E) => C(s) ? s.value = E : null),
|
|
35
|
+
value: t.value,
|
|
36
|
+
name: t.name || e(a)?.name,
|
|
37
|
+
type: "radio",
|
|
38
|
+
disabled: e(d)
|
|
39
|
+
}, e(n)[e(r).FIELD]), null, 16, j), [
|
|
40
|
+
[L, e(s)]
|
|
41
|
+
]),
|
|
42
|
+
l("span", {
|
|
43
|
+
class: v(["circle", {
|
|
44
|
+
"circle--selected": e(s) === t.value,
|
|
45
|
+
"circle--disabled": e(d)
|
|
46
|
+
}])
|
|
47
|
+
}, null, 2)
|
|
48
|
+
]),
|
|
49
|
+
l("span", m({
|
|
50
|
+
class: ["label", { "label--disabled": e(d) }]
|
|
51
|
+
}, e(n)[e(r).LABEL]), [
|
|
52
|
+
N(i.$slots, "default", {}, () => [
|
|
53
|
+
T(e(I), {
|
|
54
|
+
variant: "body2",
|
|
55
|
+
"is-truncated": ""
|
|
56
|
+
}, {
|
|
57
|
+
default: V(() => [
|
|
58
|
+
h(y(t.label), 1)
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
], !0)
|
|
63
|
+
], 16)
|
|
64
|
+
]),
|
|
65
|
+
t.labelDescription ? (b(), A(e(I), m({
|
|
66
|
+
key: 0,
|
|
67
|
+
variant: "body2",
|
|
68
|
+
class: "label-description"
|
|
69
|
+
}, e(n)[e(r).LABEL_DESCRIPTION]), {
|
|
70
|
+
default: V(() => [
|
|
71
|
+
h(y(t.labelDescription), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 16)) : x("", !0)
|
|
75
|
+
], 2));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
_ as default
|
|
80
|
+
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css";
|
|
1
|
+
import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
|
|
2
|
+
import { RadioTestIdModifiers as t } from "../../../testids/index.js";
|
|
3
|
+
import { radioGroupCommon as m } from "../common/radioGroup.common.js";
|
|
4
|
+
import { useTestIdAttrs as c } from "../../../utils/testIds.js";
|
|
5
|
+
const _ = /* @__PURE__ */ u({
|
|
6
|
+
__name: "RadioGroupV4",
|
|
7
|
+
props: {
|
|
8
|
+
name: { default: "" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
modelValue: null,
|
|
11
|
+
row: { type: Boolean, default: !1 },
|
|
12
|
+
testId: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(e, { emit: a }) {
|
|
16
|
+
const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
|
|
17
|
+
return (l, g) => (n(), p("div", f({
|
|
18
|
+
ref_key: "radioGroupRef",
|
|
19
|
+
ref: s,
|
|
20
|
+
class: [{ "radio-group--row": e.row }, "radio-group"],
|
|
21
|
+
role: "radiogroup"
|
|
22
|
+
}, r(d)[r(t).GROUP]), [
|
|
23
|
+
i(l.$slots, "default", {}, void 0, !0)
|
|
24
|
+
], 16));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|
|
@@ -7,12 +7,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
iconKey?: string;
|
|
8
8
|
tooltipTextKey?: string;
|
|
9
9
|
tooltipPlacement?: TooltipPositions;
|
|
10
|
+
iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
10
11
|
}>, {
|
|
11
12
|
testId: string;
|
|
12
13
|
variant: string;
|
|
13
14
|
iconKey: string;
|
|
14
15
|
tooltipTextKey: string;
|
|
15
16
|
tooltipPlacement: string;
|
|
17
|
+
iconSize: string;
|
|
16
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
19
|
"update:modelValue": (...args: any[]) => void;
|
|
18
20
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -23,18 +25,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
25
|
iconKey?: string;
|
|
24
26
|
tooltipTextKey?: string;
|
|
25
27
|
tooltipPlacement?: TooltipPositions;
|
|
28
|
+
iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
26
29
|
}>, {
|
|
27
30
|
testId: string;
|
|
28
31
|
variant: string;
|
|
29
32
|
iconKey: string;
|
|
30
33
|
tooltipTextKey: string;
|
|
31
34
|
tooltipPlacement: string;
|
|
35
|
+
iconSize: string;
|
|
32
36
|
}>>> & {
|
|
33
37
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
34
38
|
}, {
|
|
35
39
|
testId: string;
|
|
36
40
|
variant: 'primary' | 'default';
|
|
37
41
|
tooltipPlacement: TooltipPositions;
|
|
42
|
+
iconSize: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
38
43
|
iconKey: string;
|
|
39
44
|
tooltipTextKey: string;
|
|
40
45
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SwitchV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SwitchV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b71a806e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../../SwitchV4.
|
|
1
|
+
import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as u, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
|
|
2
2
|
import { useVModel as I } from "@vueuse/core";
|
|
3
|
-
import { SwitchTestIdModifiers as
|
|
3
|
+
import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
|
|
4
4
|
import "../../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import $ from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import z from "../../tooltip/v4/TooltipV4.vue.js";
|
|
9
|
+
const B = ["data-testid"], A = /* @__PURE__ */ T({
|
|
10
10
|
__name: "SwitchV4",
|
|
11
11
|
props: {
|
|
12
12
|
options: null,
|
|
@@ -15,7 +15,8 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
15
15
|
testId: { default: "" },
|
|
16
16
|
iconKey: { default: "icon" },
|
|
17
17
|
tooltipTextKey: { default: "tooltipText" },
|
|
18
|
-
tooltipPlacement: { default: "top" }
|
|
18
|
+
tooltipPlacement: { default: "top" },
|
|
19
|
+
iconSize: { default: "small" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:modelValue"],
|
|
21
22
|
setup(t, { emit: f }) {
|
|
@@ -28,11 +29,11 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
28
29
|
const v = (e, s) => {
|
|
29
30
|
n.value = s, p.value = e;
|
|
30
31
|
};
|
|
31
|
-
return (e, s) => (c(),
|
|
32
|
+
return (e, s) => (c(), u("div", {
|
|
32
33
|
class: m(["switch", [`switch--variant-${t.variant}`]]),
|
|
33
|
-
"data-testid": `${t.testId}-${a(
|
|
34
|
+
"data-testid": `${t.testId}-${a(r).WRAPPER}`
|
|
34
35
|
}, [
|
|
35
|
-
(c(!0),
|
|
36
|
+
(c(!0), u(x, null, V(t.options, (o, l) => (c(), w(a(z), {
|
|
36
37
|
key: l,
|
|
37
38
|
text: o[t.tooltipTextKey],
|
|
38
39
|
disabled: !o[t.tooltipTextKey],
|
|
@@ -43,15 +44,15 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
43
44
|
C(a($), {
|
|
44
45
|
class: m(["option", { "option--selected": d(l) }]),
|
|
45
46
|
"icon-name": o[t.iconKey],
|
|
46
|
-
size:
|
|
47
|
+
size: t.iconSize,
|
|
47
48
|
color: d(l) ? t.variant : "default",
|
|
48
|
-
"data-testid": `${t.testId}-${a(
|
|
49
|
-
onClick: (
|
|
50
|
-
}, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
|
|
49
|
+
"data-testid": `${t.testId}-${a(r).BUTTON}`,
|
|
50
|
+
onClick: (K) => v(o, l)
|
|
51
|
+
}, null, 8, ["class", "icon-name", "size", "color", "data-testid", "onClick"])
|
|
51
52
|
]),
|
|
52
53
|
_: 2
|
|
53
54
|
}, 1032, ["text", "disabled", "placement"]))), 128))
|
|
54
|
-
], 10,
|
|
55
|
+
], 10, B));
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
export {
|
|
@@ -16,6 +16,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
16
16
|
type: import("vue").PropType<unknown>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
+
iconSize: {
|
|
20
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
19
23
|
options: {
|
|
20
24
|
type: import("vue").PropType<unknown[]>;
|
|
21
25
|
required: true;
|
|
@@ -48,6 +52,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
48
52
|
type: import("vue").PropType<unknown>;
|
|
49
53
|
required: true;
|
|
50
54
|
};
|
|
55
|
+
iconSize: {
|
|
56
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
51
59
|
options: {
|
|
52
60
|
type: import("vue").PropType<unknown[]>;
|
|
53
61
|
required: true;
|
|
@@ -66,6 +74,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
66
74
|
testId: string;
|
|
67
75
|
variant: "default" | "primary";
|
|
68
76
|
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
77
|
+
iconSize: "small" | "medium" | "large" | "extraLarge" | "extraSmall";
|
|
69
78
|
iconKey: string;
|
|
70
79
|
tooltipTextKey: string;
|
|
71
80
|
}>[];
|
|
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
77
|
selectAll: (value: boolean) => void;
|
|
78
78
|
selectRow: (value: boolean) => void;
|
|
79
79
|
clickRow: (rowIndex: number) => void;
|
|
80
|
+
columnHover: (column: Column) => void;
|
|
80
81
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
81
82
|
title?: string;
|
|
82
83
|
columns: Column[];
|
|
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
153
154
|
onOnClearSearch?: () => any;
|
|
154
155
|
onClickRow?: (rowIndex: number) => any;
|
|
155
156
|
onSelectRow?: (value: boolean) => any;
|
|
157
|
+
onColumnHover?: (column: Column) => any;
|
|
156
158
|
}, {
|
|
157
159
|
sort: Sort;
|
|
158
160
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|