@ironsource/shared-ui 2.1.11-test.98 → 2.1.11
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_026d82c5_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
- package/{IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css → IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css} +1 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +110 -105
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +64 -54
- package/components/chart/ChartLoader.vue.js +5 -23
- package/components/chart/ChartLoader.vue2.js +15 -0
- package/components/chart/mockData.d.ts +8 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
- package/components/dropdown/common/Dropdown.common.js +65 -65
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +93 -92
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +97 -98
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +14 -14
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +1 -1
- package/index.js +1 -1
- package/mocks/apps.d.ts +1 -0
- package/mocks/randomValue.d.ts +1 -0
- package/package.json +3 -3
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +0 -1
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_07fe5cf8_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
- package/consts/configs.js +0 -4
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; import { defineComponent as D, ref as M, computed as m, openBlock as r, createElementBlock as c, createElementVNode as d, createVNode as s, unref as o, mergeProps as I, withCtx as p, createTextVNode as b, Fragment as S, renderList as P, normalizeClass as A, withModifiers as F, createBlock as H, createCommentVNode as U, toDisplayString as L } from "vue";
|
|
2
2
|
import { useVirtualList as z } from "@vueuse/core";
|
|
3
|
-
import
|
|
3
|
+
import f from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import R from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
5
|
import q from "../search/v4/SearchV4.vue.js";
|
|
6
6
|
import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
|
|
7
7
|
import $ from "../icon/v4/IconV4.vue.js";
|
|
8
8
|
import "../icon/v4/IconFlag.vue.js";
|
|
9
9
|
import j from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
-
const J = { class: "chart-legend" }, K = { class: "search-box" }, O =
|
|
10
|
+
const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "empty-list"
|
|
13
|
+
}, Q = ["onClick"], W = { class: "label-container" }, ne = /* @__PURE__ */ D({
|
|
11
14
|
__name: "ChartLegend",
|
|
12
15
|
props: {
|
|
13
16
|
items: { default: () => [] },
|
|
@@ -17,97 +20,104 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"
|
|
|
17
20
|
maxLimitTooltipText: { default: "" }
|
|
18
21
|
},
|
|
19
22
|
emits: ["update:visibleIds"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
const t =
|
|
23
|
-
return
|
|
24
|
-
(
|
|
23
|
+
setup(h, { emit: g }) {
|
|
24
|
+
const l = h, k = 32, u = M(""), T = m(() => {
|
|
25
|
+
const t = u.value.toLowerCase();
|
|
26
|
+
return l.items.filter(
|
|
27
|
+
(i) => i.label.toLowerCase().includes(t)
|
|
25
28
|
);
|
|
26
|
-
}),
|
|
27
|
-
() =>
|
|
28
|
-
),
|
|
29
|
-
() =>
|
|
30
|
-
),
|
|
31
|
-
|
|
29
|
+
}), a = (t) => l.visibleIds.includes(t.id), v = m(
|
|
30
|
+
() => l.visibleIds.length >= l.maxVisible
|
|
31
|
+
), y = m(
|
|
32
|
+
() => l.visibleIds.length <= l.minVisible
|
|
33
|
+
), n = (t) => y.value && a(t) || v.value && !a(t), C = (t) => !l.maxLimitTooltipText || a(t) || !v.value, V = (t, i) => {
|
|
34
|
+
g(
|
|
32
35
|
"update:visibleIds",
|
|
33
|
-
t ? [...
|
|
36
|
+
t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
|
|
34
37
|
);
|
|
35
|
-
}, { list:
|
|
36
|
-
itemHeight:
|
|
38
|
+
}, { list: x, containerProps: w, wrapperProps: E } = z(T, {
|
|
39
|
+
itemHeight: k,
|
|
37
40
|
overscan: 10
|
|
38
|
-
}),
|
|
39
|
-
|
|
41
|
+
}), N = (t) => {
|
|
42
|
+
n(t) || V(!a(t), t);
|
|
40
43
|
};
|
|
41
|
-
return (t,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
modelValue:
|
|
45
|
-
"onUpdate:modelValue":
|
|
44
|
+
return (t, i) => (r(), c("div", J, [
|
|
45
|
+
d("div", K, [
|
|
46
|
+
s(o(q), {
|
|
47
|
+
modelValue: u.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
|
|
46
49
|
}, null, 8, ["modelValue"])
|
|
47
50
|
]),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
d("div", I({ class: "legend" }, o(w)), [
|
|
52
|
+
d("ul", I({ class: "legend__list" }, o(E)), [
|
|
53
|
+
o(x).length === 0 ? (r(), c("li", O, [
|
|
54
|
+
s(o(f), { variant: "body2" }, {
|
|
55
|
+
default: p(() => [
|
|
56
|
+
b("No results")
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
})
|
|
60
|
+
])) : (r(!0), c(S, { key: 1 }, P(o(x), ({ data: e, index: B }) => (r(), c("li", {
|
|
61
|
+
key: B,
|
|
62
|
+
class: A({ "disabled-item": n(e) })
|
|
53
63
|
}, [
|
|
54
|
-
|
|
55
|
-
text:
|
|
64
|
+
s(o(j), {
|
|
65
|
+
text: h.maxLimitTooltipText,
|
|
56
66
|
disabled: C(e),
|
|
57
67
|
class: "disabled-tooltip"
|
|
58
68
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
69
|
+
default: p(() => [
|
|
70
|
+
d("div", {
|
|
61
71
|
class: "item-wrapper",
|
|
62
|
-
onClick: (
|
|
72
|
+
onClick: (_) => N(e)
|
|
63
73
|
}, [
|
|
64
|
-
|
|
74
|
+
s(o(R), {
|
|
65
75
|
color: e.color,
|
|
66
|
-
"is-checked":
|
|
67
|
-
disabled:
|
|
68
|
-
onClick:
|
|
69
|
-
(
|
|
70
|
-
|
|
76
|
+
"is-checked": a(e),
|
|
77
|
+
disabled: n(e),
|
|
78
|
+
onClick: i[1] || (i[1] = F(
|
|
79
|
+
(_) => {
|
|
80
|
+
_.stopPropagation();
|
|
71
81
|
},
|
|
72
82
|
["stop"]
|
|
73
83
|
))
|
|
74
84
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
75
|
-
e.icon ? (r(), H(
|
|
85
|
+
e.icon ? (r(), H(o($), {
|
|
76
86
|
key: 0,
|
|
77
87
|
class: "icon-color",
|
|
78
88
|
type: e.iconType,
|
|
79
89
|
name: e.icon,
|
|
80
90
|
size: "16px"
|
|
81
91
|
}, null, 8, ["type", "name"])) : U("", !0),
|
|
82
|
-
|
|
83
|
-
|
|
92
|
+
d("div", W, [
|
|
93
|
+
s(o(f), {
|
|
84
94
|
variant: "body2",
|
|
85
95
|
class: "legend-label",
|
|
86
96
|
"is-truncated": "",
|
|
87
|
-
"with-tooltip":
|
|
97
|
+
"with-tooltip": !n(e),
|
|
88
98
|
"tooltip-text": e.label,
|
|
89
99
|
"tooltip-placement": "left"
|
|
90
100
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
|
|
101
|
+
default: p(() => [
|
|
102
|
+
b(L(e.label), 1)
|
|
93
103
|
]),
|
|
94
104
|
_: 2
|
|
95
|
-
}, 1032, ["tooltip-text"]),
|
|
96
|
-
|
|
105
|
+
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
106
|
+
s(o(f), {
|
|
97
107
|
variant: "caption",
|
|
98
108
|
class: "legend-caption legend-label",
|
|
99
109
|
"is-truncated": "",
|
|
100
|
-
"with-tooltip":
|
|
110
|
+
"with-tooltip": !n(e),
|
|
101
111
|
"tooltip-text": e.caption,
|
|
102
112
|
"tooltip-placement": "left"
|
|
103
113
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
114
|
+
default: p(() => [
|
|
115
|
+
b(L(e.caption), 1)
|
|
106
116
|
]),
|
|
107
117
|
_: 2
|
|
108
|
-
}, 1032, ["tooltip-text"])
|
|
118
|
+
}, 1032, ["with-tooltip", "tooltip-text"])
|
|
109
119
|
])
|
|
110
|
-
], 8,
|
|
120
|
+
], 8, Q)
|
|
111
121
|
]),
|
|
112
122
|
_: 2
|
|
113
123
|
}, 1032, ["text", "disabled"])
|
|
@@ -118,5 +128,5 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"
|
|
|
118
128
|
}
|
|
119
129
|
});
|
|
120
130
|
export {
|
|
121
|
-
|
|
131
|
+
ne as default
|
|
122
132
|
};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
viewBox: "0 0 1072 275",
|
|
6
|
-
preserveAspectRatio: "none",
|
|
7
|
-
width: "100%",
|
|
8
|
-
height: "100%",
|
|
9
|
-
fill: "none"
|
|
10
|
-
}, [
|
|
11
|
-
/* @__PURE__ */ t("path", {
|
|
12
|
-
d: "M499.744 87.7024L499 87.4816C399.137 70.0475 293 138.418 218 173.72C120 219.848 87 235.892 0 275L1072 275C979 -57.3526 836.258 -31.5829 732 59.404C648.885 131.939 570.549 108.704 499.744 87.7024Z",
|
|
13
|
-
fill: "black",
|
|
14
|
-
"fill-opacity": "0.05"
|
|
15
|
-
})
|
|
16
|
-
], -1)), _ = [
|
|
17
|
-
p
|
|
18
|
-
];
|
|
19
|
-
function l(e, h) {
|
|
20
|
-
return o(), c("div", n, _);
|
|
21
|
-
}
|
|
22
|
-
const w = /* @__PURE__ */ a(d, [["render", l], ["__scopeId", "data-v-142c444a"]]);
|
|
1
|
+
import o from "./ChartLoader.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ffa4cc66"]]);
|
|
23
5
|
export {
|
|
24
|
-
|
|
6
|
+
c as default
|
|
25
7
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; import { defineComponent as e, openBlock as o, createElementBlock as r, createElementVNode as t, createVNode as a } from "vue";
|
|
2
|
+
import c from "../loader/v4/Loader.vue.js";
|
|
3
|
+
const n = { class: "chart-loader" }, s = { class: "chart-loader-wrapper" }, i = /* @__PURE__ */ e({
|
|
4
|
+
__name: "ChartLoader",
|
|
5
|
+
setup(d) {
|
|
6
|
+
return (_, p) => (o(), r("div", n, [
|
|
7
|
+
t("div", s, [
|
|
8
|
+
a(c)
|
|
9
|
+
])
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
i as default
|
|
15
|
+
};
|
|
@@ -34,4 +34,12 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
34
34
|
value: number;
|
|
35
35
|
}[];
|
|
36
36
|
})[];
|
|
37
|
+
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
data: {
|
|
41
|
+
date: string;
|
|
42
|
+
value: number;
|
|
43
|
+
}[];
|
|
44
|
+
}[];
|
|
37
45
|
export declare const generateMockData: (numSeries?: number) => any[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./DateRangeV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DateRangeV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-8a2714eb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../DateRangeV4.
|
|
2
|
-
import
|
|
3
|
-
import { typeToName as
|
|
4
|
-
import
|
|
1
|
+
import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css"; import { defineComponent as J, watch as Q, openBlock as n, createElementBlock as s, unref as e, normalizeClass as r, createElementVNode as d, renderSlot as x, createVNode as i, withDirectives as v, Fragment as k, renderList as C, withCtx as l, createTextVNode as m, toDisplayString as g, createCommentVNode as E, vShow as $, normalizeStyle as X, setBlockTracking as R } from "vue";
|
|
2
|
+
import Z from "./CalendarMonthV4.vue.js";
|
|
3
|
+
import { typeToName as _, messagePerType as ee } from "../common/consts.common.js";
|
|
4
|
+
import A from "../../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
@@ -11,17 +11,17 @@ import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
|
11
11
|
import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
12
12
|
import "../../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
13
13
|
import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import te from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
15
15
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
16
16
|
import "../../dropdown/v4/OptionV4.vue.js";
|
|
17
17
|
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
18
|
-
import { DateRangeTestIdModifiers as o, DatePickerTestIdModifiers as
|
|
19
|
-
import { dateRangeCommon as
|
|
18
|
+
import { DateRangeTestIdModifiers as o, DatePickerTestIdModifiers as ae } from "../../../testids/index.js";
|
|
19
|
+
import { dateRangeCommon as de } from "../common/DateRange.common.js";
|
|
20
20
|
import p from "../../typography/v4/Typography.vue.js";
|
|
21
|
-
const
|
|
21
|
+
const ne = ["id", "data-testid"], se = ["data-testid"], ie = ["id", "data-testid"], oe = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "type-picker"
|
|
24
|
-
},
|
|
24
|
+
}, le = ["onClick"], re = ["data-testid"], ce = ["id"], ue = ["id"], me = ["onClick"], pe = { class: "dropdown-rightTriangle" }, ye = ["data-testid"], ge = { class: "date-picker-calendar left-box" }, fe = { class: "buttons-cover" }, he = { class: "range" }, ve = { class: "text-container" }, Ve = /* @__PURE__ */ J({
|
|
25
25
|
__name: "DateRangeV4",
|
|
26
26
|
props: {
|
|
27
27
|
range: null,
|
|
@@ -48,86 +48,91 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
48
48
|
"opened",
|
|
49
49
|
"dismissed"
|
|
50
50
|
],
|
|
51
|
-
setup(t, { emit:
|
|
52
|
-
const
|
|
53
|
-
datePicker:
|
|
54
|
-
datePickerId:
|
|
55
|
-
getMaxAllowedDate:
|
|
56
|
-
selectedPreset:
|
|
57
|
-
displayError:
|
|
51
|
+
setup(t, { emit: B }) {
|
|
52
|
+
const I = t, {
|
|
53
|
+
datePicker: M,
|
|
54
|
+
datePickerId: S,
|
|
55
|
+
getMaxAllowedDate: q,
|
|
56
|
+
selectedPreset: w,
|
|
57
|
+
displayError: O,
|
|
58
58
|
rangeType: f,
|
|
59
|
-
selectedRange:
|
|
60
|
-
placement:
|
|
61
|
-
currentDate:
|
|
62
|
-
error:
|
|
63
|
-
presets:
|
|
59
|
+
selectedRange: L,
|
|
60
|
+
placement: V,
|
|
61
|
+
currentDate: T,
|
|
62
|
+
error: z,
|
|
63
|
+
presets: U,
|
|
64
64
|
isOpen: h,
|
|
65
|
-
popup:
|
|
65
|
+
popup: F,
|
|
66
66
|
currentMonths: y,
|
|
67
|
-
displayedMonthsKeys:
|
|
68
|
-
changeType:
|
|
67
|
+
displayedMonthsKeys: b,
|
|
68
|
+
changeType: P,
|
|
69
69
|
presetChanged: G,
|
|
70
70
|
apply: K,
|
|
71
71
|
getNavigation: W,
|
|
72
72
|
navigationCallback: Y,
|
|
73
73
|
selectionChanged: j,
|
|
74
|
-
toggle:
|
|
74
|
+
toggle: D,
|
|
75
75
|
isCompact: H
|
|
76
|
-
} =
|
|
77
|
-
return (
|
|
78
|
-
|
|
76
|
+
} = de(I, B);
|
|
77
|
+
return Q(
|
|
78
|
+
() => I.datePresetList,
|
|
79
|
+
() => {
|
|
80
|
+
P("date", !1);
|
|
81
|
+
}
|
|
82
|
+
), (N, c) => (n(), s("div", {
|
|
83
|
+
id: e(S),
|
|
79
84
|
ref_key: "datePicker",
|
|
80
|
-
ref:
|
|
85
|
+
ref: M,
|
|
81
86
|
class: r(["relative-wrap", { "date-range-disabled": t.disabled }]),
|
|
82
87
|
"data-testid": `${t.testId}-${e(o).WRAPPER}`
|
|
83
88
|
}, [
|
|
84
89
|
d("div", {
|
|
85
90
|
class: "date-range-field",
|
|
86
91
|
"data-testid": `${t.testId}-${e(o).TRIGGER}`,
|
|
87
|
-
onClick:
|
|
92
|
+
onClick: c[0] || (c[0] = (a) => e(D)())
|
|
88
93
|
}, [
|
|
89
|
-
N
|
|
90
|
-
currentDate: e(
|
|
94
|
+
x(N.$slots, "field", {
|
|
95
|
+
currentDate: e(T),
|
|
91
96
|
isOpen: e(h)
|
|
92
97
|
}, () => [
|
|
93
|
-
|
|
94
|
-
label: e(
|
|
98
|
+
i(e(te), {
|
|
99
|
+
label: e(T),
|
|
95
100
|
"start-icon-name": "calendar-blank",
|
|
96
101
|
variant: "outlined",
|
|
97
|
-
"test-id": `${t.testId}-${e(
|
|
102
|
+
"test-id": `${t.testId}-${e(ae).INPUT}`,
|
|
98
103
|
open: e(h)
|
|
99
104
|
}, null, 8, ["label", "test-id", "open"])
|
|
100
105
|
], !0)
|
|
101
|
-
], 8,
|
|
106
|
+
], 8, se),
|
|
102
107
|
v(d("div", {
|
|
103
108
|
id: "datepickerPopup" + t.uniqueId,
|
|
104
109
|
ref_key: "popup",
|
|
105
|
-
ref:
|
|
110
|
+
ref: F,
|
|
106
111
|
class: r(["pop-up", [
|
|
107
|
-
e(
|
|
112
|
+
e(V),
|
|
108
113
|
t.openOnTop ? "open-on-top" : "",
|
|
109
114
|
t.showPresets ? "" : "hide-presets"
|
|
110
115
|
]]),
|
|
111
116
|
"data-testid": `${t.testId}-${e(o).CONTAINER}`
|
|
112
117
|
}, [
|
|
113
|
-
t.types.length > 1 ? (n(),
|
|
114
|
-
(n(!0),
|
|
118
|
+
t.types.length > 1 ? (n(), s("div", oe, [
|
|
119
|
+
(n(!0), s(k, null, C(t.types, (a) => (n(), s("span", {
|
|
115
120
|
key: a,
|
|
116
121
|
class: r(["range-type", { "selected-range-type": e(f) === a }]),
|
|
117
|
-
onClick: (
|
|
122
|
+
onClick: (u) => e(P)(a, !0)
|
|
118
123
|
}, [
|
|
119
|
-
|
|
124
|
+
i(e(p), { variant: "h1" }, {
|
|
120
125
|
default: l(() => [
|
|
121
|
-
m(g(e(
|
|
126
|
+
m(g(e(_)[a]), 1)
|
|
122
127
|
]),
|
|
123
128
|
_: 2
|
|
124
129
|
}, 1024)
|
|
125
|
-
], 10,
|
|
126
|
-
])) :
|
|
130
|
+
], 10, le))), 128))
|
|
131
|
+
])) : E("", !0),
|
|
127
132
|
d("div", {
|
|
128
133
|
class: r(["flex", { "pop-up-content": t.types.length > 1 }])
|
|
129
134
|
}, [
|
|
130
|
-
t.showPresets ? (n(),
|
|
135
|
+
t.showPresets ? (n(), s("div", {
|
|
131
136
|
key: 0,
|
|
132
137
|
class: "date-picker-menu",
|
|
133
138
|
"data-testid": `${t.testId}-${e(o).MENU}`
|
|
@@ -139,17 +144,17 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
139
144
|
d("ul", {
|
|
140
145
|
id: "customDropDownList" + t.uniqueId
|
|
141
146
|
}, [
|
|
142
|
-
(n(!0),
|
|
147
|
+
(n(!0), s(k, null, C(e(U), (a) => (n(), s("li", {
|
|
143
148
|
key: a.id,
|
|
144
149
|
class: r({
|
|
145
|
-
"selected-preset-container": e(
|
|
150
|
+
"selected-preset-container": e(w) === a.id
|
|
146
151
|
})
|
|
147
152
|
}, [
|
|
148
153
|
d("div", {
|
|
149
|
-
class: r([{ "selected-preset": e(
|
|
150
|
-
onClick: (
|
|
154
|
+
class: r([{ "selected-preset": e(w) === a.id }, "preset-element"]),
|
|
155
|
+
onClick: (u) => e(G)(a)
|
|
151
156
|
}, [
|
|
152
|
-
|
|
157
|
+
i(e(p), {
|
|
153
158
|
variant: "body2",
|
|
154
159
|
"data-testid": `${t.testId}-${e(o).MENU}-${a.id}`
|
|
155
160
|
}, {
|
|
@@ -158,60 +163,60 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
158
163
|
]),
|
|
159
164
|
_: 2
|
|
160
165
|
}, 1032, ["data-testid"])
|
|
161
|
-
], 10,
|
|
162
|
-
v(d("div",
|
|
166
|
+
], 10, me),
|
|
167
|
+
v(d("div", pe, null, 512), [
|
|
163
168
|
[$, a.id === "custom"]
|
|
164
169
|
])
|
|
165
170
|
], 2))), 128))
|
|
166
171
|
], 8, ue)
|
|
167
|
-
], 8,
|
|
172
|
+
], 8, ce),
|
|
168
173
|
d("div", {
|
|
169
174
|
class: "type-message",
|
|
170
175
|
"data-testid": `${t.testId}-${e(o).MESSAGE}`
|
|
171
|
-
}, g(e(
|
|
172
|
-
], 8,
|
|
176
|
+
}, g(e(ee)[e(f)]), 9, ye)
|
|
177
|
+
], 8, re)) : E("", !0),
|
|
173
178
|
d("div", {
|
|
174
179
|
class: "calendar-wrap",
|
|
175
|
-
style:
|
|
180
|
+
style: X({ height: e(H) ? "336px" : "372px" })
|
|
176
181
|
}, [
|
|
177
|
-
d("div",
|
|
178
|
-
(n(!0),
|
|
179
|
-
|
|
182
|
+
d("div", ge, [
|
|
183
|
+
(n(!0), s(k, null, C(e(b), (a, u) => (n(), s("div", { key: a }, [
|
|
184
|
+
i(Z, {
|
|
180
185
|
id: t.uniqueId,
|
|
181
186
|
navigation: e(W)(
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
u === 0,
|
|
188
|
+
u === e(b).length - 1
|
|
184
189
|
),
|
|
185
190
|
year: e(y)[a].parsedMonth.year,
|
|
186
191
|
days: e(y)[a].parsedMonth.days,
|
|
187
192
|
weeks: e(y)[a].parsedMonth.weeks,
|
|
188
193
|
month: e(y)[a].parsedMonth.month,
|
|
189
|
-
range: e(
|
|
194
|
+
range: e(L),
|
|
190
195
|
type: e(f),
|
|
191
196
|
"allowed-days": t.allowedDays,
|
|
192
|
-
"max-allowed-date": e(
|
|
193
|
-
"test-id": `${t.testId}-${
|
|
197
|
+
"max-allowed-date": e(q),
|
|
198
|
+
"test-id": `${t.testId}-${u}`,
|
|
194
199
|
onSelectionChanged: e(j),
|
|
195
200
|
onNavigation: e(Y)
|
|
196
201
|
}, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "test-id", "onSelectionChanged", "onNavigation"])
|
|
197
202
|
]))), 128)),
|
|
198
|
-
d("div",
|
|
199
|
-
d("div", fe, [
|
|
200
|
-
N(D.$slots, "footer", {}, void 0, !0)
|
|
201
|
-
]),
|
|
203
|
+
d("div", fe, [
|
|
202
204
|
d("div", he, [
|
|
203
|
-
|
|
205
|
+
x(N.$slots, "footer", {}, void 0, !0)
|
|
206
|
+
]),
|
|
207
|
+
d("div", ve, [
|
|
208
|
+
i(e(p), { variant: "body2" }, {
|
|
204
209
|
default: l(() => [
|
|
205
210
|
m("All dates are in UTC")
|
|
206
211
|
]),
|
|
207
212
|
_: 1
|
|
208
213
|
})
|
|
209
214
|
]),
|
|
210
|
-
v(d("div", { class: "error" }, g(e(
|
|
211
|
-
[$, e(
|
|
215
|
+
v(d("div", { class: "error" }, g(e(z)), 513), [
|
|
216
|
+
[$, e(O)]
|
|
212
217
|
]),
|
|
213
|
-
|
|
214
|
-
|
|
218
|
+
c[1] || (R(-1), c[1] = d("div", { class: "buttons" }, [
|
|
219
|
+
i(e(A), {
|
|
215
220
|
id: "button-ok" + t.uniqueId,
|
|
216
221
|
size: "small",
|
|
217
222
|
class: "button",
|
|
@@ -220,7 +225,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
220
225
|
onClick: (a) => e(K)()
|
|
221
226
|
}, {
|
|
222
227
|
default: l(() => [
|
|
223
|
-
|
|
228
|
+
i(e(p), { variant: "button" }, {
|
|
224
229
|
default: l(() => [
|
|
225
230
|
m("Apply")
|
|
226
231
|
]),
|
|
@@ -229,7 +234,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
229
234
|
]),
|
|
230
235
|
_: 1
|
|
231
236
|
}, 8, ["id", "data-testid", "onClick"]),
|
|
232
|
-
|
|
237
|
+
i(e(A), {
|
|
233
238
|
id: "button-cancel" + t.uniqueId,
|
|
234
239
|
size: "small",
|
|
235
240
|
theme: "third",
|
|
@@ -237,10 +242,10 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
237
242
|
variant: "outlined",
|
|
238
243
|
class: "button",
|
|
239
244
|
"data-testid": `${t.testId}-${e(o).ACTION_CANCEL}`,
|
|
240
|
-
onClick: (a) => e(
|
|
245
|
+
onClick: (a) => e(D)()
|
|
241
246
|
}, {
|
|
242
247
|
default: l(() => [
|
|
243
|
-
|
|
248
|
+
i(e(p), { variant: "button" }, {
|
|
244
249
|
default: l(() => [
|
|
245
250
|
m(" Cancel ")
|
|
246
251
|
]),
|
|
@@ -249,7 +254,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
249
254
|
]),
|
|
250
255
|
_: 1
|
|
251
256
|
}, 8, ["id", "data-testid", "onClick"])
|
|
252
|
-
]),
|
|
257
|
+
]), R(1), c[1])
|
|
253
258
|
])
|
|
254
259
|
])
|
|
255
260
|
], 4)
|
|
@@ -257,9 +262,9 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
257
262
|
], 10, ie), [
|
|
258
263
|
[$, e(h)]
|
|
259
264
|
])
|
|
260
|
-
], 10,
|
|
265
|
+
], 10, ne));
|
|
261
266
|
}
|
|
262
267
|
});
|
|
263
268
|
export {
|
|
264
|
-
|
|
269
|
+
Ve as default
|
|
265
270
|
};
|