@ironsource/shared-ui 2.2.0-rc.16 → 2.2.0-rc.18
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/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- 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/v3/CalendarMonth.vue2.js +1 -148
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -273
- package/index.js +1 -1
- package/package.json +1 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.column-picker[data-v-d59af062]{width:37.375rem;border-radius:var(--border-radius-lg);background:var(--background-modal-elevation)}.content[data-v-d59af062]{min-height:18.75rem;display:grid;grid-template-columns:1fr 1fr}.selected-list-wrapper[data-v-d59af062]{padding:.25rem 1rem 1rem}.scrollable-list[data-v-d59af062]{overflow-y:auto;max-height:24.625rem}.search-wrapper[data-v-d59af062]{height:3rem;padding:1rem 1rem .25rem}.options-list-wrapper[data-v-d59af062]{border-right:1px solid var(--common-divider)}.options-list[data-v-d59af062]{margin:0;list-style:none;padding:.3125rem .75rem}.options-list__item[data-v-d59af062]{margin-bottom:.5rem}.options-list[data-v-d59af062] .item-container{margin-bottom:1px;min-height:1.9375rem}.selected-list-header[data-v-d59af062]{height:3rem;padding:.25rem 1rem 0;display:flex;justify-content:space-between;align-items:center}.group-name[data-v-d59af062]{color:var(--text-secondary)}.inline-group[data-v-d59af062]{padding:.25rem .5rem}.no-result-container[data-v-d59af062]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
34
|
testId: string;
|
|
35
35
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
36
|
"update:selected": (value: unknown[]) => void;
|
|
37
|
+
trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
37
38
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
38
39
|
selected: unknown[];
|
|
39
40
|
options: Record<string, unknown>[];
|
|
@@ -70,6 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
71
|
testId: string;
|
|
71
72
|
}>>> & {
|
|
72
73
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
74
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
73
75
|
}, {
|
|
74
76
|
testId: string;
|
|
75
77
|
selected: unknown[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnPicker.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ColumnPicker.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d59af062"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../ColumnPicker.
|
|
2
|
-
import
|
|
1
|
+
import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css"; import { defineComponent as re, ref as c, watch as H, computed as m, provide as ue, openBlock as d, createElementBlock as f, Fragment as x, renderSlot as ce, createVNode as r, unref as n, withCtx as p, createElementVNode as u, mergeProps as me, renderList as P, withModifiers as J, createTextVNode as T, toDisplayString as A, withDirectives as fe, createBlock as X, vShow as pe, createCommentVNode as Y, isRef as ve } from "vue";
|
|
2
|
+
import ye from "./OptionChip.vue.js";
|
|
3
3
|
import "../dropdown/v4/DropdownV4.vue.js";
|
|
4
4
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -8,29 +8,29 @@ import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
10
10
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import Z from "../dropdown/v4/OptionV4.vue.js";
|
|
12
12
|
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
13
|
-
import { DropdownContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { matchString as
|
|
13
|
+
import { DropdownContext as he } from "../dropdown/common/DropdownContext.js";
|
|
14
|
+
import L from "../typography/v4/Typography.vue.js";
|
|
15
|
+
import ge from "../dialog/v4/DialogV4.vue.js";
|
|
16
|
+
import ke from "../sortableList/SortableList.vue.js";
|
|
17
|
+
import Se from "../link/Link.vue.js";
|
|
18
|
+
import Ke from "../search/v4/SearchV4.vue.js";
|
|
19
|
+
import { matchString as Ce } from "../../utils/search.js";
|
|
20
20
|
import "../button/v4/ButtonV4.vue.js";
|
|
21
|
-
import
|
|
21
|
+
import be from "../button/v4/IconButtonV4.vue.js";
|
|
22
22
|
import "../button/v4/ButtonGroup.vue.js";
|
|
23
23
|
import "../button/v4/ToggleButtonGroupAB.vue.js";
|
|
24
|
-
import { useTestIdAttrs as
|
|
25
|
-
import { ColumnPickerTestIdModifiers as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import { useTestIdAttrs as xe } from "../../utils/testIds.js";
|
|
25
|
+
import { ColumnPickerTestIdModifiers as F } from "../../testids/index.js";
|
|
26
|
+
import Te from "./RemoveButton.vue.js";
|
|
27
|
+
const Ie = { class: "content" }, Oe = { class: "options-list-wrapper" }, Re = { class: "search-wrapper" }, Ve = { class: "options-list scrollable-list" }, we = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-group"
|
|
30
|
-
},
|
|
30
|
+
}, Be = ["onClick"], De = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Ge = { class: "selected-list-header" }, Pe = { class: "selected-list-wrapper scrollable-list" }, ot = /* @__PURE__ */ re({
|
|
34
34
|
__name: "ColumnPicker",
|
|
35
35
|
props: {
|
|
36
36
|
selected: { default: () => [] },
|
|
@@ -50,87 +50,107 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
50
50
|
appendToBody: { type: Boolean, default: !0 },
|
|
51
51
|
testId: { default: "" }
|
|
52
52
|
},
|
|
53
|
-
emits: ["update:selected"],
|
|
54
|
-
setup(
|
|
55
|
-
const t =
|
|
56
|
-
t.selected?.length ?
|
|
57
|
-
},
|
|
58
|
-
y.value = !1,
|
|
53
|
+
emits: ["update:selected", "trackUserActivity"],
|
|
54
|
+
setup(s, { emit: I }) {
|
|
55
|
+
const t = s, o = c([]), v = c([]), h = c(""), y = c(!1), k = c(!1), S = c(!1), K = c(!1), C = c(!1), $ = () => {
|
|
56
|
+
t.selected?.length ? o.value = [...t.selected] : t.defaultSelection?.length ? o.value = [...t.defaultSelection] : o.value = [];
|
|
57
|
+
}, O = (e = !0) => {
|
|
58
|
+
y.value = !1, v.value = [], h.value = "", $(), e && I(
|
|
59
|
+
"trackUserActivity",
|
|
60
|
+
k.value,
|
|
61
|
+
C.value,
|
|
62
|
+
S.value,
|
|
63
|
+
K.value,
|
|
64
|
+
"Cancel"
|
|
65
|
+
), oe();
|
|
59
66
|
};
|
|
60
|
-
|
|
67
|
+
H(
|
|
61
68
|
[() => t.selected, () => t.defaultSelection],
|
|
62
69
|
() => {
|
|
63
|
-
|
|
70
|
+
$();
|
|
64
71
|
},
|
|
65
72
|
{
|
|
66
73
|
immediate: !0
|
|
67
74
|
}
|
|
68
75
|
);
|
|
69
|
-
const
|
|
76
|
+
const E = () => {
|
|
70
77
|
y.value = !y.value;
|
|
71
|
-
},
|
|
78
|
+
}, R = m({
|
|
72
79
|
get() {
|
|
73
|
-
return
|
|
74
|
-
const
|
|
80
|
+
return o.value.map((e) => {
|
|
81
|
+
const l = ie(e) ? W(e)?.[t.displayKey] + " " : "";
|
|
75
82
|
return {
|
|
76
83
|
id: e[t.idKey],
|
|
77
|
-
displayText:
|
|
78
|
-
isDisabled:
|
|
84
|
+
displayText: l + e[t.displayKey],
|
|
85
|
+
isDisabled: B(e)
|
|
79
86
|
};
|
|
80
87
|
});
|
|
81
88
|
},
|
|
82
89
|
set(e) {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
(
|
|
90
|
+
const l = e.map((i) => i.id);
|
|
91
|
+
o.value = l.map(
|
|
92
|
+
(i) => o.value.find((a) => a[t.idKey] === i)
|
|
86
93
|
);
|
|
87
94
|
}
|
|
88
|
-
}),
|
|
89
|
-
() =>
|
|
90
|
-
),
|
|
95
|
+
}), V = m(
|
|
96
|
+
() => o.value?.length <= t.minSelections
|
|
97
|
+
), w = m(() => {
|
|
91
98
|
if (!t.minSelections)
|
|
92
99
|
return "";
|
|
93
|
-
const e = t.minSelections,
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
96
|
-
(
|
|
97
|
-
),
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
t.disabledKey && e[t.disabledKey] ||
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
(
|
|
100
|
+
const e = t.minSelections, l = t.minSelectionsTooltipMessage;
|
|
101
|
+
return l ? l.replace("%count%", e.toString()) : "";
|
|
102
|
+
}), M = (e) => b(e) && V.value, B = (e) => e[t.disabledKey] || M(e), b = (e) => o.value.some(
|
|
103
|
+
(l) => l[t.idKey] === e[t.idKey]
|
|
104
|
+
), _ = (e) => {
|
|
105
|
+
b(e) ? U(e[t.idKey]) : ee(e);
|
|
106
|
+
}, D = (e) => {
|
|
107
|
+
t.disabledKey && e[t.disabledKey] || _(e);
|
|
108
|
+
}, ee = (e) => {
|
|
109
|
+
o.value.push(e);
|
|
110
|
+
}, U = (e) => {
|
|
111
|
+
o.value = o.value.filter(
|
|
112
|
+
(l) => l[t.idKey] !== e
|
|
106
113
|
);
|
|
107
|
-
},
|
|
114
|
+
}, N = m(() => {
|
|
108
115
|
if (!t.defaultSelection?.length)
|
|
109
116
|
return !1;
|
|
110
|
-
const e =
|
|
111
|
-
return e.length !==
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
(
|
|
116
|
-
),
|
|
117
|
-
const
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
) :
|
|
123
|
-
},
|
|
124
|
-
...
|
|
125
|
-
[t.childrenKey]:
|
|
126
|
-
(
|
|
117
|
+
const e = o.value.map((i) => i[t.idKey]), l = t.defaultSelection.map((i) => i[t.idKey]);
|
|
118
|
+
return e.length !== l.length ? !0 : !l.every((i) => e.includes(i));
|
|
119
|
+
}), te = () => {
|
|
120
|
+
N.value && (o.value = [...t.defaultSelection]), k.value = !0;
|
|
121
|
+
}, z = (e) => Q.value ? !0 : !v.value.includes(e), le = (e) => t.inlineGroupIds?.includes(e), W = (e) => t.options.find(
|
|
122
|
+
(l) => g(l).map((i) => i[t.idKey]).includes(e[t.idKey])
|
|
123
|
+
), ie = (e) => {
|
|
124
|
+
const l = W(e);
|
|
125
|
+
return l ? t.inlineGroupIds?.includes(l[t.idKey]) : !1;
|
|
126
|
+
}, q = (e) => {
|
|
127
|
+
v.value.includes(e) ? (v.value = v.value.filter(
|
|
128
|
+
(l) => l !== e
|
|
129
|
+
), S.value = !0) : (v.value.push(e), K.value = !0);
|
|
130
|
+
}, g = (e) => e[t.childrenKey] || [], se = m(() => o.value.length), G = m(() => h.value?.trim()), Q = m(() => !!G.value), j = m(() => Q.value ? t.options.map((l) => ({
|
|
131
|
+
...l,
|
|
132
|
+
[t.childrenKey]: g(l).filter(
|
|
133
|
+
(i) => Ce(i[t.displayKey], G.value)
|
|
127
134
|
)
|
|
128
135
|
})).filter(
|
|
129
|
-
(
|
|
130
|
-
) : t.options),
|
|
131
|
-
|
|
136
|
+
(l) => g(l).length > 0
|
|
137
|
+
) : t.options), ne = xe(t.testId, F), ae = () => {
|
|
138
|
+
I("update:selected", o.value), I(
|
|
139
|
+
"trackUserActivity",
|
|
140
|
+
k.value,
|
|
141
|
+
C.value,
|
|
142
|
+
S.value,
|
|
143
|
+
K.value,
|
|
144
|
+
"Save"
|
|
145
|
+
), O(!1);
|
|
132
146
|
};
|
|
133
|
-
|
|
147
|
+
H(G, () => {
|
|
148
|
+
C.value = !0;
|
|
149
|
+
});
|
|
150
|
+
const oe = () => {
|
|
151
|
+
k.value = !1, S.value = !1, K.value = !1, C.value = !1;
|
|
152
|
+
};
|
|
153
|
+
return ue(he, {
|
|
134
154
|
activeIndex: null,
|
|
135
155
|
activeOption: null,
|
|
136
156
|
clearSelection: () => {
|
|
@@ -151,8 +171,8 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
151
171
|
toggle: () => {
|
|
152
172
|
},
|
|
153
173
|
placeholder: "",
|
|
154
|
-
select:
|
|
155
|
-
query:
|
|
174
|
+
select: D,
|
|
175
|
+
query: h,
|
|
156
176
|
selectedValue: null,
|
|
157
177
|
goToOption: () => {
|
|
158
178
|
},
|
|
@@ -162,103 +182,103 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
162
182
|
},
|
|
163
183
|
unRegisterOption: () => {
|
|
164
184
|
}
|
|
165
|
-
}), (e,
|
|
166
|
-
|
|
167
|
-
triggerProps: { onClick:
|
|
185
|
+
}), (e, l) => (d(), f(x, null, [
|
|
186
|
+
ce(e.$slots, "trigger", {
|
|
187
|
+
triggerProps: { onClick: E }
|
|
168
188
|
}, () => [
|
|
169
|
-
r(
|
|
189
|
+
r(n(be), {
|
|
170
190
|
"icon-name": "layout",
|
|
171
191
|
variant: "outlined",
|
|
172
|
-
"test-id": `${
|
|
173
|
-
onClick:
|
|
192
|
+
"test-id": `${s.testId}-${n(F).TRIGGER}`,
|
|
193
|
+
onClick: E
|
|
174
194
|
}, null, 8, ["test-id"])
|
|
175
195
|
], !0),
|
|
176
|
-
r(
|
|
196
|
+
r(n(ge), {
|
|
177
197
|
modelValue: y.value,
|
|
178
|
-
"onUpdate:modelValue":
|
|
179
|
-
title:
|
|
198
|
+
"onUpdate:modelValue": l[2] || (l[2] = (i) => y.value = i),
|
|
199
|
+
title: s.headerText,
|
|
180
200
|
"no-padding": "",
|
|
181
201
|
"save-button-label": "Save view",
|
|
182
202
|
"close-on-click-outside": "",
|
|
183
|
-
"append-to-body":
|
|
184
|
-
"test-id":
|
|
185
|
-
onSave:
|
|
186
|
-
onClose:
|
|
187
|
-
onCancel:
|
|
203
|
+
"append-to-body": s.appendToBody,
|
|
204
|
+
"test-id": s.testId,
|
|
205
|
+
onSave: ae,
|
|
206
|
+
onClose: l[3] || (l[3] = () => O),
|
|
207
|
+
onCancel: O
|
|
188
208
|
}, {
|
|
189
209
|
default: p(() => [
|
|
190
|
-
u("div",
|
|
191
|
-
u("div",
|
|
192
|
-
u("div",
|
|
193
|
-
u("header",
|
|
194
|
-
r(
|
|
195
|
-
modelValue:
|
|
196
|
-
"onUpdate:modelValue":
|
|
197
|
-
placeholder:
|
|
210
|
+
u("div", me({ class: "column-picker" }, n(ne)[n(F).WRAPPER]), [
|
|
211
|
+
u("div", Ie, [
|
|
212
|
+
u("div", Oe, [
|
|
213
|
+
u("header", Re, [
|
|
214
|
+
r(n(Ke), {
|
|
215
|
+
modelValue: h.value,
|
|
216
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => h.value = i),
|
|
217
|
+
placeholder: s.searchPlaceholder,
|
|
198
218
|
variant: "transparent",
|
|
199
219
|
size: "md",
|
|
200
|
-
"auto-focus":
|
|
201
|
-
"test-id":
|
|
220
|
+
"auto-focus": s.searchAutoFocus,
|
|
221
|
+
"test-id": s.testId
|
|
202
222
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
203
223
|
]),
|
|
204
|
-
u("ul",
|
|
205
|
-
(d(!0),
|
|
206
|
-
key: String(
|
|
224
|
+
u("ul", Ve, [
|
|
225
|
+
(d(!0), f(x, null, P(n(j), (i) => (d(), f("li", {
|
|
226
|
+
key: String(i[s.idKey]),
|
|
207
227
|
class: "options-list__item"
|
|
208
228
|
}, [
|
|
209
|
-
r(
|
|
210
|
-
option:
|
|
229
|
+
r(n(Z), {
|
|
230
|
+
option: i,
|
|
211
231
|
"tree-main-option": "",
|
|
212
|
-
"tree-main-option-expanded":
|
|
213
|
-
onClick:
|
|
214
|
-
onToggleTreeCollapse: (
|
|
232
|
+
"tree-main-option-expanded": z(i[s.idKey]),
|
|
233
|
+
onClick: J((a) => q(i[s.idKey]), ["stop"]),
|
|
234
|
+
onToggleTreeCollapse: (a) => q(i[s.idKey])
|
|
215
235
|
}, {
|
|
216
236
|
default: p(() => [
|
|
217
|
-
r(
|
|
237
|
+
r(n(L), {
|
|
218
238
|
variant: "h5",
|
|
219
239
|
class: "group-name"
|
|
220
240
|
}, {
|
|
221
241
|
default: p(() => [
|
|
222
|
-
|
|
242
|
+
T(A(i[s.displayKey]), 1)
|
|
223
243
|
]),
|
|
224
244
|
_: 2
|
|
225
245
|
}, 1024)
|
|
226
246
|
]),
|
|
227
247
|
_: 2
|
|
228
248
|
}, 1032, ["option", "tree-main-option-expanded", "onClick", "onToggleTreeCollapse"]),
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
(d(!0),
|
|
232
|
-
key:
|
|
233
|
-
option:
|
|
234
|
-
"name-key":
|
|
235
|
-
selected:
|
|
236
|
-
disabled:
|
|
237
|
-
"tooltip-text":
|
|
238
|
-
onClick: (
|
|
249
|
+
fe(u("div", null, [
|
|
250
|
+
le(i[s.idKey]) ? (d(), f("div", we, [
|
|
251
|
+
(d(!0), f(x, null, P(g(i), (a) => (d(), X(ye, {
|
|
252
|
+
key: a[s.idKey],
|
|
253
|
+
option: a,
|
|
254
|
+
"name-key": s.displayKey,
|
|
255
|
+
selected: b(a),
|
|
256
|
+
disabled: B(a),
|
|
257
|
+
"tooltip-text": M(a) ? n(w) : null,
|
|
258
|
+
onClick: (de) => D(a)
|
|
239
259
|
}, null, 8, ["option", "name-key", "selected", "disabled", "tooltip-text", "onClick"]))), 128))
|
|
240
|
-
])) : (d(!0),
|
|
241
|
-
key:
|
|
242
|
-
onClick:
|
|
260
|
+
])) : (d(!0), f(x, { key: 1 }, P(g(i), (a) => (d(), f("div", {
|
|
261
|
+
key: a[s.idKey],
|
|
262
|
+
onClick: J((de) => D(a), ["stop"])
|
|
243
263
|
}, [
|
|
244
|
-
r(
|
|
245
|
-
option:
|
|
246
|
-
"selected-prop":
|
|
247
|
-
"name-key":
|
|
248
|
-
disabled:
|
|
249
|
-
"min-max-selection-tooltip-message":
|
|
264
|
+
r(n(Z), {
|
|
265
|
+
option: a,
|
|
266
|
+
"selected-prop": b(a),
|
|
267
|
+
"name-key": s.displayKey,
|
|
268
|
+
disabled: B(a),
|
|
269
|
+
"min-max-selection-tooltip-message": n(w),
|
|
250
270
|
"tooltip-attached-to-text": "",
|
|
251
271
|
"is-multi": ""
|
|
252
272
|
}, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
|
|
253
|
-
], 8,
|
|
273
|
+
], 8, Be))), 128))
|
|
254
274
|
], 512), [
|
|
255
|
-
[
|
|
275
|
+
[pe, z(i[s.idKey])]
|
|
256
276
|
])
|
|
257
277
|
]))), 128)),
|
|
258
|
-
|
|
259
|
-
r(
|
|
278
|
+
n(j).length ? Y("", !0) : (d(), f("li", De, [
|
|
279
|
+
r(n(L), { variant: "body2" }, {
|
|
260
280
|
default: p(() => [
|
|
261
|
-
|
|
281
|
+
T(A(s.noResultsText), 1)
|
|
262
282
|
]),
|
|
263
283
|
_: 1
|
|
264
284
|
})
|
|
@@ -266,43 +286,43 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
266
286
|
])
|
|
267
287
|
]),
|
|
268
288
|
u("div", null, [
|
|
269
|
-
u("header",
|
|
270
|
-
r(
|
|
289
|
+
u("header", Ge, [
|
|
290
|
+
r(n(L), {
|
|
271
291
|
variant: "h5",
|
|
272
292
|
class: "selected-count-text"
|
|
273
293
|
}, {
|
|
274
294
|
default: p(() => [
|
|
275
|
-
|
|
295
|
+
T(A(n(se)) + " selected ", 1)
|
|
276
296
|
]),
|
|
277
297
|
_: 1
|
|
278
298
|
}),
|
|
279
|
-
|
|
299
|
+
s.defaultSelection?.length ? (d(), X(n(Se), {
|
|
280
300
|
key: 0,
|
|
281
301
|
variant: "subtitle2",
|
|
282
|
-
disabled: !
|
|
283
|
-
"test-id":
|
|
284
|
-
onClick:
|
|
302
|
+
disabled: !n(N),
|
|
303
|
+
"test-id": s.testId,
|
|
304
|
+
onClick: te
|
|
285
305
|
}, {
|
|
286
306
|
default: p(() => [
|
|
287
|
-
|
|
307
|
+
T(" Reset to default ")
|
|
288
308
|
]),
|
|
289
309
|
_: 1
|
|
290
|
-
}, 8, ["disabled", "test-id"])) :
|
|
310
|
+
}, 8, ["disabled", "test-id"])) : Y("", !0)
|
|
291
311
|
]),
|
|
292
|
-
u("div",
|
|
293
|
-
r(
|
|
294
|
-
items:
|
|
295
|
-
"onUpdate:items":
|
|
296
|
-
"display-value": (
|
|
312
|
+
u("div", Pe, [
|
|
313
|
+
r(n(ke), {
|
|
314
|
+
items: n(R),
|
|
315
|
+
"onUpdate:items": l[1] || (l[1] = (i) => ve(R) ? R.value = i : null),
|
|
316
|
+
"display-value": (i) => i.displayText,
|
|
297
317
|
variant: "compact",
|
|
298
318
|
"draggable-area": "full",
|
|
299
|
-
"test-id":
|
|
319
|
+
"test-id": s.testId
|
|
300
320
|
}, {
|
|
301
|
-
menu: p(({ item:
|
|
302
|
-
r(
|
|
303
|
-
disabled:
|
|
304
|
-
"tooltip-text":
|
|
305
|
-
onClick: (
|
|
321
|
+
menu: p(({ item: i }) => [
|
|
322
|
+
r(Te, {
|
|
323
|
+
disabled: n(V),
|
|
324
|
+
"tooltip-text": n(V) ? n(w) : null,
|
|
325
|
+
onClick: (a) => U(i.id)
|
|
306
326
|
}, null, 8, ["disabled", "tooltip-text", "onClick"])
|
|
307
327
|
]),
|
|
308
328
|
_: 1
|
|
@@ -318,5 +338,5 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
318
338
|
}
|
|
319
339
|
});
|
|
320
340
|
export {
|
|
321
|
-
|
|
341
|
+
ot as default
|
|
322
342
|
};
|
|
@@ -90,6 +90,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
90
90
|
};
|
|
91
91
|
}>> & {
|
|
92
92
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
93
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
93
94
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "selected" | "options" | "minSelections" | "noResultsText" | "searchAutoFocus" | "searchPlaceholder" | "headerText" | "appendToBody" | "defaultSelection" | "inlineGroupIds" | "idKey" | "displayKey" | "childrenKey" | "disabledKey" | "minSelectionsTooltipMessage">;
|
|
94
95
|
$attrs: {
|
|
95
96
|
[x: string]: unknown;
|
|
@@ -102,7 +103,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
102
103
|
}>;
|
|
103
104
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
104
105
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
105
|
-
$emit: (event: "update:selected", value: unknown[]) => void;
|
|
106
|
+
$emit: ((event: "update:selected", value: unknown[]) => void) & ((event: "trackUserActivity", isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void);
|
|
106
107
|
$el: any;
|
|
107
108
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
108
109
|
testId: {
|
|
@@ -174,8 +175,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
174
175
|
};
|
|
175
176
|
}>> & {
|
|
176
177
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
178
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
177
179
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
178
180
|
"update:selected": (value: unknown[]) => void;
|
|
181
|
+
trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
179
182
|
}, string, {
|
|
180
183
|
testId: string;
|
|
181
184
|
selected: unknown[];
|
|
@@ -283,6 +286,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
283
286
|
};
|
|
284
287
|
}>> & {
|
|
285
288
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
289
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
286
290
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
287
291
|
__isFragment?: never;
|
|
288
292
|
__isTeleport?: never;
|
|
@@ -357,8 +361,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
357
361
|
};
|
|
358
362
|
}>> & {
|
|
359
363
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
364
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
360
365
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
361
366
|
"update:selected": (value: unknown[]) => void;
|
|
367
|
+
trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
362
368
|
}, string, {
|
|
363
369
|
testId: string;
|
|
364
370
|
selected: unknown[];
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
import "../../../CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css";
|
|
2
|
-
import { navigatePrev as D, navigateNext as E } from "../common/consts.common.js";
|
|
3
|
-
import S from "../../typography/Heading.vue.js";
|
|
4
|
-
import h from "../../typography/Text.vue.js";
|
|
5
|
-
import { calendarMonthCommon as V } from "../common/CalendarMonth.common.js";
|
|
6
|
-
import "../../button/v3/Button.vue.js";
|
|
7
|
-
import C from "../../button/v3/IconButton.vue.js";
|
|
8
|
-
import "../../button/v3/ScrollButton.vue.js";
|
|
9
|
-
import F from "../../icon/v3/icons/AngleLeft.vue.js";
|
|
10
|
-
import O from "../../icon/v3/icons/AngleRight.vue.js";
|
|
11
|
-
import I from "../../icon/v3/Icon.vue.js";
|
|
12
|
-
import { CalendarMonthTestIdModifiers as n } from "../../../testids/index.js";
|
|
13
|
-
const Y = ["id", "data-testid"], L = ["data-testid"], W = ["data-testid"], X = ["data-testid"], nt = /* @__PURE__ */ z({
|
|
14
|
-
__name: "CalendarMonth",
|
|
15
|
-
props: {
|
|
16
|
-
year: null,
|
|
17
|
-
days: null,
|
|
18
|
-
weeks: null,
|
|
19
|
-
month: null,
|
|
20
|
-
navigation: null,
|
|
21
|
-
range: null,
|
|
22
|
-
type: null,
|
|
23
|
-
id: { default: Date.now() },
|
|
24
|
-
allowedDays: { default: null },
|
|
25
|
-
maxAllowedDate: { default: null },
|
|
26
|
-
minAllowedDate: { default: null },
|
|
27
|
-
testId: { default: "" }
|
|
28
|
-
},
|
|
29
|
-
emits: ["selectionChanged", "navigation"],
|
|
30
|
-
setup(e, { emit: A }) {
|
|
31
|
-
const w = e, {
|
|
32
|
-
isEndDay: N,
|
|
33
|
-
isStartDay: x,
|
|
34
|
-
navigate: k,
|
|
35
|
-
selectDay: R,
|
|
36
|
-
monthName: T,
|
|
37
|
-
dayNames: M,
|
|
38
|
-
selectedDaysMap: b,
|
|
39
|
-
inBetweenMap: H
|
|
40
|
-
} = V(w, A);
|
|
41
|
-
return (U, u) => (d(), s("div", {
|
|
42
|
-
id: "datepickerCalendar" + e.id,
|
|
43
|
-
class: "calendar-month",
|
|
44
|
-
"data-testid": `${e.testId}-${t(n).WRAPPER}`
|
|
45
|
-
}, [
|
|
46
|
-
o("span", {
|
|
47
|
-
onClick: u[0] || (u[0] = (i) => t(k)(t(D)))
|
|
48
|
-
}, [
|
|
49
|
-
e.navigation === t(D) || e.navigation === "all" ? (d(), m(t(C), {
|
|
50
|
-
key: 0,
|
|
51
|
-
variant: "borderless",
|
|
52
|
-
size: "md",
|
|
53
|
-
class: "previous",
|
|
54
|
-
"data-testid": `${e.testId}-${t(n).PREVIOUS}`
|
|
55
|
-
}, {
|
|
56
|
-
default: l(() => [
|
|
57
|
-
r(I, null, {
|
|
58
|
-
default: l(() => [
|
|
59
|
-
r(F)
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
})
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["data-testid"])) : y("", !0)
|
|
66
|
-
]),
|
|
67
|
-
o("span", {
|
|
68
|
-
onClick: u[1] || (u[1] = (i) => t(k)(t(E)))
|
|
69
|
-
}, [
|
|
70
|
-
e.navigation === t(E) || e.navigation === "all" ? (d(), m(t(C), {
|
|
71
|
-
key: 0,
|
|
72
|
-
class: "next",
|
|
73
|
-
variant: "borderless",
|
|
74
|
-
size: "md",
|
|
75
|
-
"data-testid": `${e.testId}-${t(n).NEXT}`
|
|
76
|
-
}, {
|
|
77
|
-
default: l(() => [
|
|
78
|
-
r(I, null, {
|
|
79
|
-
default: l(() => [
|
|
80
|
-
r(O)
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
})
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["data-testid"])) : y("", !0)
|
|
87
|
-
]),
|
|
88
|
-
o("div", {
|
|
89
|
-
class: "month-header",
|
|
90
|
-
"data-testid": `${e.testId}-${t(n).MONTH_HEADER}`
|
|
91
|
-
}, [
|
|
92
|
-
r(S, {
|
|
93
|
-
level: "6",
|
|
94
|
-
"test-id": `${e.testId}-${t(n).MONTH_HEADER_TEXT}`
|
|
95
|
-
}, {
|
|
96
|
-
default: l(() => [
|
|
97
|
-
v(c(t(T)) + " " + c(e.year), 1)
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["test-id"]),
|
|
101
|
-
o("div", {
|
|
102
|
-
class: "days-header",
|
|
103
|
-
"data-testid": `${e.testId}-${t(n).DAYS_HEADER}`
|
|
104
|
-
}, [
|
|
105
|
-
(d(!0), s($, null, g(t(M), (i, f) => (d(), m(t(h), {
|
|
106
|
-
key: f,
|
|
107
|
-
size: "xs"
|
|
108
|
-
}, {
|
|
109
|
-
default: l(() => [
|
|
110
|
-
v(c(i), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 2
|
|
113
|
-
}, 1024))), 128))
|
|
114
|
-
], 8, W)
|
|
115
|
-
], 8, L),
|
|
116
|
-
o("div", {
|
|
117
|
-
class: "days-wrapper",
|
|
118
|
-
"data-testid": `${e.testId}-${t(n).DAYS_WRAPPER}`
|
|
119
|
-
}, [
|
|
120
|
-
(d(!0), s($, null, g(e.weeks, (i, f) => (d(), s("div", { key: f }, [
|
|
121
|
-
(d(!0), s($, null, g(i, (a, P) => (d(), m(t(h), {
|
|
122
|
-
key: P,
|
|
123
|
-
class: B(["day", {
|
|
124
|
-
"selected-day": t(b)[a.value],
|
|
125
|
-
"selected-day-between": t(H)[a.value],
|
|
126
|
-
today: a.isToday,
|
|
127
|
-
"disabled-day": a.isFuture || a.disabled,
|
|
128
|
-
"non-day": a.value === 0,
|
|
129
|
-
"start-day": t(x)(a),
|
|
130
|
-
"end-day": t(N)(a)
|
|
131
|
-
}]),
|
|
132
|
-
size: "sm",
|
|
133
|
-
"data-testid": `${e.testId}-${t(n).DAY}-${a.value}`,
|
|
134
|
-
onClick: (j) => a.disabled || a.isFuture || t(R)(a)
|
|
135
|
-
}, {
|
|
136
|
-
default: l(() => [
|
|
137
|
-
v(c(a.value), 1)
|
|
138
|
-
]),
|
|
139
|
-
_: 2
|
|
140
|
-
}, 1032, ["class", "data-testid", "onClick"]))), 128))
|
|
141
|
-
]))), 128))
|
|
142
|
-
], 8, X)
|
|
143
|
-
], 8, Y));
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
export {
|
|
147
|
-
nt as default
|
|
148
|
-
};
|
|
1
|
+
import "../../../CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css";
|
|
@@ -1,273 +1 @@
|
|
|
1
|
-
import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css";
|
|
2
|
-
import _ from "./CalendarMonthV4.vue.js";
|
|
3
|
-
import { typeToName as ee, messagePerType as te } from "../common/consts.common.js";
|
|
4
|
-
import R from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
-
import "../../button/v4/IconButtonV4.vue.js";
|
|
6
|
-
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
|
-
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import "../../dropdown/v4/DropdownV4.vue.js";
|
|
9
|
-
import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
10
|
-
import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
11
|
-
import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
12
|
-
import "../../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
13
|
-
import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
14
|
-
import ae from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
15
|
-
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
16
|
-
import "../../dropdown/v4/OptionV4.vue.js";
|
|
17
|
-
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
18
|
-
import { DateRangeTestIdModifiers as l, DatePickerTestIdModifiers as de } from "../../../testids/index.js";
|
|
19
|
-
import { dateRangeCommon as ne } from "../common/DateRange.common.js";
|
|
20
|
-
import p from "../../typography/v4/Typography.vue.js";
|
|
21
|
-
const ie = ["id", "data-testid"], se = ["data-testid"], le = ["id", "data-testid"], oe = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "type-picker"
|
|
24
|
-
}, re = ["onClick"], ue = ["data-testid"], ce = ["id"], me = ["id"], pe = ["onClick"], ye = { class: "dropdown-rightTriangle" }, ge = ["data-testid"], fe = { class: "date-picker-calendar left-box" }, he = { class: "buttons-cover" }, ve = { class: "range" }, ke = { class: "text-container" }, ze = /* @__PURE__ */ Q({
|
|
25
|
-
__name: "DateRangeV4",
|
|
26
|
-
props: {
|
|
27
|
-
range: null,
|
|
28
|
-
types: { default: () => ["date"] },
|
|
29
|
-
includeToday: { type: Boolean, default: !0 },
|
|
30
|
-
allowedDays: { default: null },
|
|
31
|
-
maxDaysInRange: { default: null },
|
|
32
|
-
datePresetList: { default: "date" },
|
|
33
|
-
regex: { default: () => /^(1[0-2]|0?[1-9])\/[\d]{1,2}\/[\d]{4}$/ },
|
|
34
|
-
dateFormat: { default: "mm/dd/yyyy" },
|
|
35
|
-
uniqueId: { default: Date.now() },
|
|
36
|
-
disabled: { type: Boolean, default: !1 },
|
|
37
|
-
initialType: { default: null },
|
|
38
|
-
openOnTop: { type: Boolean, default: !1 },
|
|
39
|
-
showPresets: { type: Boolean, default: !0 },
|
|
40
|
-
maxDate: { default: null },
|
|
41
|
-
minDate: { default: null },
|
|
42
|
-
testId: { default: "" }
|
|
43
|
-
},
|
|
44
|
-
emits: [
|
|
45
|
-
"rangeTypeChanged",
|
|
46
|
-
"currentDateChanged",
|
|
47
|
-
"rangeChanged",
|
|
48
|
-
"dateRangePresetNameChanged",
|
|
49
|
-
"opened",
|
|
50
|
-
"dismissed"
|
|
51
|
-
],
|
|
52
|
-
setup(t, { emit: M }) {
|
|
53
|
-
const w = t, {
|
|
54
|
-
datePicker: B,
|
|
55
|
-
datePickerId: S,
|
|
56
|
-
getMaxAllowedDate: q,
|
|
57
|
-
getMinAllowedDate: O,
|
|
58
|
-
selectedPreset: I,
|
|
59
|
-
displayError: L,
|
|
60
|
-
rangeType: f,
|
|
61
|
-
selectedRange: V,
|
|
62
|
-
placement: z,
|
|
63
|
-
currentDate: T,
|
|
64
|
-
error: U,
|
|
65
|
-
presets: F,
|
|
66
|
-
isOpen: h,
|
|
67
|
-
popup: G,
|
|
68
|
-
currentMonths: y,
|
|
69
|
-
displayedMonthsKeys: D,
|
|
70
|
-
changeType: b,
|
|
71
|
-
presetChanged: K,
|
|
72
|
-
apply: W,
|
|
73
|
-
getNavigation: Y,
|
|
74
|
-
navigationCallback: j,
|
|
75
|
-
selectionChanged: H,
|
|
76
|
-
toggle: P,
|
|
77
|
-
isCompact: J
|
|
78
|
-
} = ne(w, M);
|
|
79
|
-
return X(
|
|
80
|
-
() => w.datePresetList,
|
|
81
|
-
() => {
|
|
82
|
-
b("date", !1);
|
|
83
|
-
}
|
|
84
|
-
), (N, u) => (n(), i("div", {
|
|
85
|
-
id: e(S),
|
|
86
|
-
ref_key: "datePicker",
|
|
87
|
-
ref: B,
|
|
88
|
-
class: r(["relative-wrap", { "date-range-disabled": t.disabled }]),
|
|
89
|
-
"data-testid": `${t.testId}-${e(l).WRAPPER}`
|
|
90
|
-
}, [
|
|
91
|
-
d("div", {
|
|
92
|
-
class: "date-range-field",
|
|
93
|
-
"data-testid": `${t.testId}-${e(l).TRIGGER}`,
|
|
94
|
-
onClick: u[0] || (u[0] = (a) => e(P)())
|
|
95
|
-
}, [
|
|
96
|
-
x(N.$slots, "field", {
|
|
97
|
-
currentDate: e(T),
|
|
98
|
-
isOpen: e(h)
|
|
99
|
-
}, () => [
|
|
100
|
-
s(e(ae), {
|
|
101
|
-
label: e(T),
|
|
102
|
-
"start-icon-name": "calendar-blank",
|
|
103
|
-
variant: "outlined",
|
|
104
|
-
"test-id": `${t.testId}-${e(de).INPUT}`,
|
|
105
|
-
open: e(h)
|
|
106
|
-
}, null, 8, ["label", "test-id", "open"])
|
|
107
|
-
], !0)
|
|
108
|
-
], 8, se),
|
|
109
|
-
v(d("div", {
|
|
110
|
-
id: "datepickerPopup" + t.uniqueId,
|
|
111
|
-
ref_key: "popup",
|
|
112
|
-
ref: G,
|
|
113
|
-
class: r(["pop-up", [
|
|
114
|
-
e(z),
|
|
115
|
-
t.openOnTop ? "open-on-top" : "",
|
|
116
|
-
t.showPresets ? "" : "hide-presets"
|
|
117
|
-
]]),
|
|
118
|
-
"data-testid": `${t.testId}-${e(l).CONTAINER}`
|
|
119
|
-
}, [
|
|
120
|
-
t.types.length > 1 ? (n(), i("div", oe, [
|
|
121
|
-
(n(!0), i(k, null, C(t.types, (a) => (n(), i("span", {
|
|
122
|
-
key: a,
|
|
123
|
-
class: r(["range-type", { "selected-range-type": e(f) === a }]),
|
|
124
|
-
onClick: (c) => e(b)(a, !0)
|
|
125
|
-
}, [
|
|
126
|
-
s(e(p), { variant: "h1" }, {
|
|
127
|
-
default: o(() => [
|
|
128
|
-
m(g(e(ee)[a]), 1)
|
|
129
|
-
]),
|
|
130
|
-
_: 2
|
|
131
|
-
}, 1024)
|
|
132
|
-
], 10, re))), 128))
|
|
133
|
-
])) : A("", !0),
|
|
134
|
-
d("div", {
|
|
135
|
-
class: r(["flex", { "pop-up-content": t.types.length > 1 }])
|
|
136
|
-
}, [
|
|
137
|
-
t.showPresets ? (n(), i("div", {
|
|
138
|
-
key: 0,
|
|
139
|
-
class: "date-picker-menu",
|
|
140
|
-
"data-testid": `${t.testId}-${e(l).MENU}`
|
|
141
|
-
}, [
|
|
142
|
-
d("div", {
|
|
143
|
-
id: "presets" + t.uniqueId,
|
|
144
|
-
class: "preset-dropdown"
|
|
145
|
-
}, [
|
|
146
|
-
d("ul", {
|
|
147
|
-
id: "customDropDownList" + t.uniqueId
|
|
148
|
-
}, [
|
|
149
|
-
(n(!0), i(k, null, C(e(F), (a) => (n(), i("li", {
|
|
150
|
-
key: a.id,
|
|
151
|
-
class: r({
|
|
152
|
-
"selected-preset-container": e(I) === a.id
|
|
153
|
-
})
|
|
154
|
-
}, [
|
|
155
|
-
d("div", {
|
|
156
|
-
class: r([{ "selected-preset": e(I) === a.id }, "preset-element"]),
|
|
157
|
-
onClick: (c) => e(K)(a)
|
|
158
|
-
}, [
|
|
159
|
-
s(e(p), {
|
|
160
|
-
variant: "body2",
|
|
161
|
-
"data-testid": `${t.testId}-${e(l).MENU}-${a.id}`
|
|
162
|
-
}, {
|
|
163
|
-
default: o(() => [
|
|
164
|
-
m(g(a.name), 1)
|
|
165
|
-
]),
|
|
166
|
-
_: 2
|
|
167
|
-
}, 1032, ["data-testid"])
|
|
168
|
-
], 10, pe),
|
|
169
|
-
v(d("div", ye, null, 512), [
|
|
170
|
-
[$, a.id === "custom"]
|
|
171
|
-
])
|
|
172
|
-
], 2))), 128))
|
|
173
|
-
], 8, me)
|
|
174
|
-
], 8, ce),
|
|
175
|
-
d("div", {
|
|
176
|
-
class: "type-message",
|
|
177
|
-
"data-testid": `${t.testId}-${e(l).MESSAGE}`
|
|
178
|
-
}, g(e(te)[e(f)]), 9, ge)
|
|
179
|
-
], 8, ue)) : A("", !0),
|
|
180
|
-
d("div", {
|
|
181
|
-
class: "calendar-wrap",
|
|
182
|
-
style: Z({ height: e(J) ? "336px" : "372px" })
|
|
183
|
-
}, [
|
|
184
|
-
d("div", fe, [
|
|
185
|
-
(n(!0), i(k, null, C(e(D), (a, c) => (n(), i("div", { key: a }, [
|
|
186
|
-
s(_, {
|
|
187
|
-
id: t.uniqueId,
|
|
188
|
-
navigation: e(Y)(
|
|
189
|
-
c === 0,
|
|
190
|
-
c === e(D).length - 1
|
|
191
|
-
),
|
|
192
|
-
year: e(y)[a].parsedMonth.year,
|
|
193
|
-
days: e(y)[a].parsedMonth.days,
|
|
194
|
-
weeks: e(y)[a].parsedMonth.weeks,
|
|
195
|
-
month: e(y)[a].parsedMonth.month,
|
|
196
|
-
range: e(V),
|
|
197
|
-
type: e(f),
|
|
198
|
-
"allowed-days": t.allowedDays,
|
|
199
|
-
"max-allowed-date": e(q),
|
|
200
|
-
"min-allowed-date": e(O),
|
|
201
|
-
"test-id": `${t.testId}-${c}`,
|
|
202
|
-
onSelectionChanged: e(H),
|
|
203
|
-
onNavigation: e(j)
|
|
204
|
-
}, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "min-allowed-date", "test-id", "onSelectionChanged", "onNavigation"])
|
|
205
|
-
]))), 128)),
|
|
206
|
-
d("div", he, [
|
|
207
|
-
d("div", ve, [
|
|
208
|
-
x(N.$slots, "footer", {}, void 0, !0)
|
|
209
|
-
]),
|
|
210
|
-
d("div", ke, [
|
|
211
|
-
s(e(p), { variant: "body2" }, {
|
|
212
|
-
default: o(() => [
|
|
213
|
-
m("All dates are in UTC")
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
})
|
|
217
|
-
]),
|
|
218
|
-
v(d("div", { class: "error" }, g(e(U)), 513), [
|
|
219
|
-
[$, e(L)]
|
|
220
|
-
]),
|
|
221
|
-
u[1] || (E(-1), u[1] = d("div", { class: "buttons" }, [
|
|
222
|
-
s(e(R), {
|
|
223
|
-
id: "button-ok" + t.uniqueId,
|
|
224
|
-
size: "small",
|
|
225
|
-
class: "button",
|
|
226
|
-
color: "primary",
|
|
227
|
-
"data-testid": `${t.testId}-${e(l).ACTION_APPLY}`,
|
|
228
|
-
onClick: (a) => e(W)()
|
|
229
|
-
}, {
|
|
230
|
-
default: o(() => [
|
|
231
|
-
s(e(p), { variant: "button" }, {
|
|
232
|
-
default: o(() => [
|
|
233
|
-
m("Apply")
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
})
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
}, 8, ["id", "data-testid", "onClick"]),
|
|
240
|
-
s(e(R), {
|
|
241
|
-
id: "button-cancel" + t.uniqueId,
|
|
242
|
-
size: "small",
|
|
243
|
-
theme: "third",
|
|
244
|
-
color: "default",
|
|
245
|
-
variant: "outlined",
|
|
246
|
-
class: "button",
|
|
247
|
-
"data-testid": `${t.testId}-${e(l).ACTION_CANCEL}`,
|
|
248
|
-
onClick: (a) => e(P)()
|
|
249
|
-
}, {
|
|
250
|
-
default: o(() => [
|
|
251
|
-
s(e(p), { variant: "button" }, {
|
|
252
|
-
default: o(() => [
|
|
253
|
-
m(" Cancel ")
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
}, 8, ["id", "data-testid", "onClick"])
|
|
260
|
-
]), E(1), u[1])
|
|
261
|
-
])
|
|
262
|
-
])
|
|
263
|
-
], 4)
|
|
264
|
-
], 2)
|
|
265
|
-
], 10, le), [
|
|
266
|
-
[$, e(h)]
|
|
267
|
-
])
|
|
268
|
-
], 10, ie));
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
export {
|
|
272
|
-
ze as default
|
|
273
|
-
};
|
|
1
|
+
import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css";
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './FilterDropdown.vue_vue_type_style_index_0_scoped_b42d8b45_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.column-picker[data-v-01c4e08f]{width:37.375rem;border-radius:var(--border-radius-lg);background:var(--background-modal-elevation)}.content[data-v-01c4e08f]{min-height:18.75rem;display:grid;grid-template-columns:1fr 1fr}.selected-list-wrapper[data-v-01c4e08f]{padding:.25rem 1rem 1rem}.scrollable-list[data-v-01c4e08f]{overflow-y:auto;max-height:24.625rem}.search-wrapper[data-v-01c4e08f]{height:3rem;padding:1rem 1rem .25rem}.options-list-wrapper[data-v-01c4e08f]{border-right:1px solid var(--common-divider)}.options-list[data-v-01c4e08f]{margin:0;list-style:none;padding:.3125rem .75rem}.options-list__item[data-v-01c4e08f]{margin-bottom:.5rem}.options-list[data-v-01c4e08f] .item-container{margin-bottom:1px;min-height:1.9375rem}.selected-list-header[data-v-01c4e08f]{height:3rem;padding:.25rem 1rem 0;display:flex;justify-content:space-between;align-items:center}.group-name[data-v-01c4e08f]{color:var(--text-secondary)}.inline-group[data-v-01c4e08f]{padding:.25rem .5rem}.no-result-container[data-v-01c4e08f]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}
|