@ironsource/shared-ui 2.1.11-rc.60 → 2.1.11-rc.62
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/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +29 -29
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.disabled-tooltip[data-v-4fe1c7d1],.disabled-tooltip[data-v-4fe1c7d1] .container{width:100%}.chart-legend[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-4fe1c7d1]{padding:12px 0 4px}.legend[data-v-4fe1c7d1]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-4fe1c7d1]{list-style:none;padding:0}.legend__list>li[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-4fe1c7d1]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-4fe1c7d1]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li.empty-list[data-v-4fe1c7d1]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-4fe1c7d1]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-4fe1c7d1]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-4fe1c7d1]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-4fe1c7d1]{color:var(--text-secondary)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-8a2714eb]{color:#41454d}.pop-up[data-v-8a2714eb]{width:668px;position:absolute;z-index:1000;top:32px;left:1px;overflow:hidden;border-radius:8px;border:1px solid var(--common-divider, #e4e4e4);background:var(--background-modelElevation, #fff);box-shadow:var(--elevation-lg)}.pop-up.open-on-top[data-v-8a2714eb]{top:0}.pop-up.hide-presets[data-v-8a2714eb],.pop-up.hide-presets .calendar-wrap[data-v-8a2714eb]{width:520px}.pop-up.hide-presets .date-picker-calendar[data-v-8a2714eb]{padding:15px 16px}.pop-up .date-picker-menu[data-v-8a2714eb]{width:164px;background:#ffffff;vertical-align:top;border-right:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-paper, #fcfcfc)}.pop-up .date-picker-menu .preset-element[data-v-8a2714eb]{padding-left:8px;height:32px;border-radius:8px;color:var(--text-primary, #202020);line-height:32px}.pop-up .date-picker-menu .preset-element[data-v-8a2714eb]:hover{background:var(--action-hover, rgba(0, 0, 0, .05))}.pop-up .date-picker-menu .selected-preset[data-v-8a2714eb]{border-radius:8px;background:var(--action-selected, #ebebeb)}.pop-up .date-picker-menu li[data-v-8a2714eb]{cursor:pointer;margin-bottom:2px}.pop-up .left-box[data-v-8a2714eb]{left:-1px}.pop-up .date-picker-calendar[data-v-8a2714eb]{box-sizing:border-box;height:100%;padding:16px;display:grid;grid-template-columns:1fr 1fr;grid-gap:24px}.pop-up .calendars-wrapper[data-v-8a2714eb]{padding-left:6px}.pop-up .preset-dropdown ul[data-v-8a2714eb]{list-style:none;margin:0;padding:8px;line-height:32px}.pop-up .buttons-cover[data-v-8a2714eb]{height:48px;position:absolute;bottom:0;width:100%;right:0;box-sizing:border-box;border-top:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-modelElevation, #fff);align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.pop-up .buttons-cover .text-container[data-v-8a2714eb]{flex:1;color:var(--text-secondary, #646464)}.pop-up button[data-v-8a2714eb]{float:right;margin-left:8px}.pop-up .error[data-v-8a2714eb]{display:none;position:absolute;left:270px;top:22px}.pop-up .inline-block[data-v-8a2714eb]{display:inline-block}.pop-up.right[data-v-8a2714eb]{left:initial;right:1px}.calendar-wrap[data-v-8a2714eb]{width:504px;height:372px;position:relative;border-bottom-right-radius:8px;border-top-right-radius:8px;vertical-align:top}.type-picker[data-v-8a2714eb]{height:60px;line-height:60px;padding-left:15px;box-shadow:0 1px 3px #0000003b}.range-type[data-v-8a2714eb]{color:#8e959d;padding-left:15px;padding-right:15px;cursor:pointer}.selected-range-type[data-v-8a2714eb]{color:#fff;background-color:#3083ff;border-radius:20px;padding:6px 15px;cursor:default}.date-range-field[data-v-8a2714eb]{display:inline-block;width:100%;height:30px;position:relative;cursor:pointer;border-radius:3px}.date-range-field.selected-item-as-title[data-v-8a2714eb]{left:0;border:none;background-image:none;max-width:100%;height:22px;color:#3083ff;overflow:visible}.date-range-field.selected-item-as-title .small-triangle[data-v-8a2714eb]{right:-25px}.date-range-field.selected-item-as-title .small-triangle[data-v-8a2714eb]:after{border-top-color:currentColor}.date-range-field.selected-item-as-title span[data-v-8a2714eb]{padding-left:12px}.date-range-field.no-button-limit[data-v-8a2714eb]{overflow:visible}.date-range-field.no-button-limit span[data-v-8a2714eb]{width:100%;line-height:22px}.date-range-field span[data-v-8a2714eb]{line-height:28px;padding-left:15px;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 26px);white-space:nowrap;position:relative}.date-range-disabled .date-range-field[data-v-8a2714eb]{cursor:default;color:#8e959d;pointer-events:none}.date-range-disabled .small-triangle[data-v-8a2714eb]:after{border-top-color:#8e959d}.pop-up-content[data-v-8a2714eb]{margin-top:1px}.type-message[data-v-8a2714eb]{color:#8e959d;padding:10px 20px;line-height:1.5}.relative-wrap[data-v-8a2714eb]{position:relative}.space-right[data-v-8a2714eb]{margin-right:13px}.space-left[data-v-8a2714eb]{margin-left:9px}.top-date[data-v-8a2714eb]{line-height:13px}.flex[data-v-8a2714eb]{display:flex}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartLegend.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartLegend.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4fe1c7d1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import f from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import R from "../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -20,17 +20,17 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
20
20
|
maxLimitTooltipText: { default: "" }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:visibleIds"],
|
|
23
|
-
setup(
|
|
24
|
-
const l =
|
|
25
|
-
const t =
|
|
23
|
+
setup(h, { emit: g }) {
|
|
24
|
+
const l = h, k = 32, u = M(""), T = m(() => {
|
|
25
|
+
const t = u.value.toLowerCase();
|
|
26
26
|
return l.items.filter(
|
|
27
27
|
(i) => i.label.toLowerCase().includes(t)
|
|
28
28
|
);
|
|
29
|
-
}), a = (t) => l.visibleIds.includes(t.id),
|
|
29
|
+
}), a = (t) => l.visibleIds.includes(t.id), v = m(
|
|
30
30
|
() => l.visibleIds.length >= l.maxVisible
|
|
31
31
|
), y = m(
|
|
32
32
|
() => l.visibleIds.length <= l.minVisible
|
|
33
|
-
),
|
|
33
|
+
), n = (t) => y.value && a(t) || v.value && !a(t), C = (t) => !l.maxLimitTooltipText || a(t) || !v.value, V = (t, i) => {
|
|
34
34
|
g(
|
|
35
35
|
"update:visibleIds",
|
|
36
36
|
t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
|
|
@@ -39,42 +39,42 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
39
39
|
itemHeight: k,
|
|
40
40
|
overscan: 10
|
|
41
41
|
}), N = (t) => {
|
|
42
|
-
|
|
42
|
+
n(t) || V(!a(t), t);
|
|
43
43
|
};
|
|
44
|
-
return (t, i) => (
|
|
45
|
-
|
|
44
|
+
return (t, i) => (r(), c("div", J, [
|
|
45
|
+
d("div", K, [
|
|
46
46
|
s(o(q), {
|
|
47
|
-
modelValue:
|
|
48
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
47
|
+
modelValue: u.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
|
|
49
49
|
}, null, 8, ["modelValue"])
|
|
50
50
|
]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o(x).length === 0 ? (
|
|
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
54
|
s(o(f), { variant: "body2" }, {
|
|
55
|
-
default:
|
|
55
|
+
default: p(() => [
|
|
56
56
|
b("No results")
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
})
|
|
60
|
-
])) : (
|
|
60
|
+
])) : (r(!0), c(S, { key: 1 }, P(o(x), ({ data: e, index: B }) => (r(), c("li", {
|
|
61
61
|
key: B,
|
|
62
|
-
class: A({ "disabled-item":
|
|
62
|
+
class: A({ "disabled-item": n(e) })
|
|
63
63
|
}, [
|
|
64
64
|
s(o(j), {
|
|
65
|
-
text:
|
|
65
|
+
text: h.maxLimitTooltipText,
|
|
66
66
|
disabled: C(e),
|
|
67
67
|
class: "disabled-tooltip"
|
|
68
68
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
|
|
69
|
+
default: p(() => [
|
|
70
|
+
d("div", {
|
|
71
71
|
class: "item-wrapper",
|
|
72
72
|
onClick: (_) => N(e)
|
|
73
73
|
}, [
|
|
74
74
|
s(o(R), {
|
|
75
75
|
color: e.color,
|
|
76
76
|
"is-checked": a(e),
|
|
77
|
-
disabled:
|
|
77
|
+
disabled: n(e),
|
|
78
78
|
onClick: i[1] || (i[1] = F(
|
|
79
79
|
(_) => {
|
|
80
80
|
_.stopPropagation();
|
|
@@ -82,40 +82,40 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
82
82
|
["stop"]
|
|
83
83
|
))
|
|
84
84
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
85
|
-
e.icon ? (
|
|
85
|
+
e.icon ? (r(), H(o($), {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "icon-color",
|
|
88
88
|
type: e.iconType,
|
|
89
89
|
name: e.icon,
|
|
90
90
|
size: "16px"
|
|
91
91
|
}, null, 8, ["type", "name"])) : U("", !0),
|
|
92
|
-
|
|
92
|
+
d("div", W, [
|
|
93
93
|
s(o(f), {
|
|
94
94
|
variant: "body2",
|
|
95
95
|
class: "legend-label",
|
|
96
96
|
"is-truncated": "",
|
|
97
|
-
"with-tooltip":
|
|
97
|
+
"with-tooltip": !n(e),
|
|
98
98
|
"tooltip-text": e.label,
|
|
99
99
|
"tooltip-placement": "left"
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: p(() => [
|
|
102
102
|
b(L(e.label), 1)
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
105
|
-
}, 1032, ["tooltip-text"]),
|
|
105
|
+
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
106
106
|
s(o(f), {
|
|
107
107
|
variant: "caption",
|
|
108
108
|
class: "legend-caption legend-label",
|
|
109
109
|
"is-truncated": "",
|
|
110
|
-
"with-tooltip":
|
|
110
|
+
"with-tooltip": !n(e),
|
|
111
111
|
"tooltip-text": e.caption,
|
|
112
112
|
"tooltip-placement": "left"
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
114
|
+
default: p(() => [
|
|
115
115
|
b(L(e.caption), 1)
|
|
116
116
|
]),
|
|
117
117
|
_: 2
|
|
118
|
-
}, 1032, ["tooltip-text"])
|
|
118
|
+
}, 1032, ["with-tooltip", "tooltip-text"])
|
|
119
119
|
])
|
|
120
120
|
], 8, Q)
|
|
121
121
|
]),
|
|
@@ -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
|
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AddFilterButton.vue_vue_type_style_index_0_scoped_fd98af08_lang.css';
|
|
2
2
|
import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as po } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.disabled-tooltip[data-v-aa32a103],.disabled-tooltip[data-v-aa32a103] .container{width:100%}.chart-legend[data-v-aa32a103]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-aa32a103]{padding:12px 0 4px}.legend[data-v-aa32a103]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-aa32a103]{list-style:none;padding:0}.legend__list>li[data-v-aa32a103]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-aa32a103]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-aa32a103]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li.empty-list[data-v-aa32a103]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-aa32a103]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-aa32a103]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-aa32a103]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-aa32a103]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-aa32a103]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-aa32a103]{color:var(--text-secondary)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-309e5351]{color:#41454d}.pop-up[data-v-309e5351]{width:668px;position:absolute;z-index:1000;top:32px;left:1px;overflow:hidden;border-radius:8px;border:1px solid var(--common-divider, #e4e4e4);background:var(--background-modelElevation, #fff);box-shadow:var(--elevation-lg)}.pop-up.open-on-top[data-v-309e5351]{top:0}.pop-up.hide-presets[data-v-309e5351],.pop-up.hide-presets .calendar-wrap[data-v-309e5351]{width:520px}.pop-up.hide-presets .date-picker-calendar[data-v-309e5351]{padding:15px 16px}.pop-up .date-picker-menu[data-v-309e5351]{width:164px;background:#ffffff;vertical-align:top;border-right:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-paper, #fcfcfc)}.pop-up .date-picker-menu .preset-element[data-v-309e5351]{padding-left:8px;height:32px;border-radius:8px;color:var(--text-primary, #202020);line-height:32px}.pop-up .date-picker-menu .preset-element[data-v-309e5351]:hover{background:var(--action-hover, rgba(0, 0, 0, .05))}.pop-up .date-picker-menu .selected-preset[data-v-309e5351]{border-radius:8px;background:var(--action-selected, #ebebeb)}.pop-up .date-picker-menu li[data-v-309e5351]{cursor:pointer;margin-bottom:2px}.pop-up .left-box[data-v-309e5351]{left:-1px}.pop-up .date-picker-calendar[data-v-309e5351]{box-sizing:border-box;height:100%;padding:16px;display:grid;grid-template-columns:1fr 1fr;grid-gap:24px}.pop-up .calendars-wrapper[data-v-309e5351]{padding-left:6px}.pop-up .preset-dropdown ul[data-v-309e5351]{list-style:none;margin:0;padding:8px;line-height:32px}.pop-up .buttons-cover[data-v-309e5351]{height:48px;position:absolute;bottom:0;width:100%;right:0;box-sizing:border-box;border-top:1px solid var(--common-divider-elevation-0, #e4e4e4);background:var(--background-modelElevation, #fff);align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.pop-up .buttons-cover .text-container[data-v-309e5351]{flex:1;color:var(--text-secondary, #646464)}.pop-up button[data-v-309e5351]{float:right;margin-left:8px}.pop-up .error[data-v-309e5351]{display:none;position:absolute;left:270px;top:22px}.pop-up .inline-block[data-v-309e5351]{display:inline-block}.pop-up.right[data-v-309e5351]{left:initial;right:1px}.calendar-wrap[data-v-309e5351]{width:504px;height:372px;position:relative;border-bottom-right-radius:8px;border-top-right-radius:8px;vertical-align:top}.type-picker[data-v-309e5351]{height:60px;line-height:60px;padding-left:15px;box-shadow:0 1px 3px #0000003b}.range-type[data-v-309e5351]{color:#8e959d;padding-left:15px;padding-right:15px;cursor:pointer}.selected-range-type[data-v-309e5351]{color:#fff;background-color:#3083ff;border-radius:20px;padding:6px 15px;cursor:default}.date-range-field[data-v-309e5351]{display:inline-block;width:100%;height:30px;position:relative;cursor:pointer;border-radius:3px}.date-range-field.selected-item-as-title[data-v-309e5351]{left:0;border:none;background-image:none;max-width:100%;height:22px;color:#3083ff;overflow:visible}.date-range-field.selected-item-as-title .small-triangle[data-v-309e5351]{right:-25px}.date-range-field.selected-item-as-title .small-triangle[data-v-309e5351]:after{border-top-color:currentColor}.date-range-field.selected-item-as-title span[data-v-309e5351]{padding-left:12px}.date-range-field.no-button-limit[data-v-309e5351]{overflow:visible}.date-range-field.no-button-limit span[data-v-309e5351]{width:100%;line-height:22px}.date-range-field span[data-v-309e5351]{line-height:28px;padding-left:15px;overflow:hidden;text-overflow:ellipsis;display:inline-block;width:calc(100% - 26px);white-space:nowrap;position:relative}.date-range-disabled .date-range-field[data-v-309e5351]{cursor:default;color:#8e959d;pointer-events:none}.date-range-disabled .small-triangle[data-v-309e5351]:after{border-top-color:#8e959d}.pop-up-content[data-v-309e5351]{margin-top:1px}.type-message[data-v-309e5351]{color:#8e959d;padding:10px 20px;line-height:1.5}.relative-wrap[data-v-309e5351]{position:relative}.space-right[data-v-309e5351]{margin-right:13px}.space-left[data-v-309e5351]{margin-left:9px}.top-date[data-v-309e5351]{line-height:13px}.flex[data-v-309e5351]{display:flex}
|