@ironsource/shared-ui 2.1.12-test.96 → 2.1.12-test.98
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/components/dateRange/common/DateRange.common.js +66 -70
- package/components/dateRange/common/DateServices.common.d.ts +1 -2
- package/components/dateRange/v4/index.d.ts +0 -3
- package/components/dateRange/v4/index.js +2 -4
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +1 -2
- package/index.js +87 -85
- package/package.json +5 -1
- package/components/dateRange/common/dateRange.types.d.ts +0 -8
|
@@ -4,10 +4,10 @@ import { ref as r, computed as b, onMounted as de, onBeforeMount as ce, onUnmoun
|
|
|
4
4
|
import { min as me, addDays as ge, format as X } from "date-fns";
|
|
5
5
|
import { presetsList as he, formatError as De, mandatoryValuesError as Me, navigatePrev as Z, navigateNext as V } from "./consts.common.js";
|
|
6
6
|
import m from "./DateServices.common.js";
|
|
7
|
-
const pe = (
|
|
8
|
-
const N = r(null), d = r({ started: !1, date: null }), x = r(!1), _ = 2, S = r({ from: null, to: null }), u = r({}), g = r([]), k = r(null), i = r({}), p = r({}), C = r(!1),
|
|
9
|
-
ie(
|
|
10
|
-
|
|
7
|
+
const pe = (o, y) => {
|
|
8
|
+
const N = r(null), d = r({ started: !1, date: null }), x = r(!1), _ = 2, S = r({ from: null, to: null }), u = r({}), g = r([]), k = r(null), i = r({}), p = r({}), C = r(!1), w = r(null), s = r(null), j = r("left"), P = r(null), O = r(null), E = r([]), K = r(null), [D] = fe({ initialValue: !1 }), q = r(null);
|
|
9
|
+
ie(q, () => {
|
|
10
|
+
D.value = !1;
|
|
11
11
|
});
|
|
12
12
|
const L = (e, t) => {
|
|
13
13
|
const a = {
|
|
@@ -16,22 +16,22 @@ const pe = (l, D) => {
|
|
|
16
16
|
month: e,
|
|
17
17
|
year: t
|
|
18
18
|
};
|
|
19
|
-
let n,
|
|
19
|
+
let n, l;
|
|
20
20
|
const c = new Date(t, e, 1).getDay();
|
|
21
21
|
let v = 1;
|
|
22
22
|
const f = /* @__PURE__ */ new Date();
|
|
23
23
|
f.setHours(0, 0, 0, 0);
|
|
24
24
|
const ue = m.daysInMonth(e, t);
|
|
25
25
|
for (let I = 0; I < 6; I++) {
|
|
26
|
-
|
|
26
|
+
l = [];
|
|
27
27
|
for (let H = 0; H < 7; H++)
|
|
28
|
-
n = {}, I === 0 && c > 0 && H < c && (n.value = 0), v > ue && (n.value = 0), !n.value && n.value !== 0 && (n.value = v, v += 1, a.days[n.value] = n, n.date = new Date(t, e, n.value), f < n.date ? n.isFuture = !0 : n.date.getTime() === f.getTime() && (n.isToday = !0,
|
|
29
|
-
a.weeks.push(
|
|
28
|
+
n = {}, I === 0 && c > 0 && H < c && (n.value = 0), v > ue && (n.value = 0), !n.value && n.value !== 0 && (n.value = v, v += 1, a.days[n.value] = n, n.date = new Date(t, e, n.value), f < n.date ? n.isFuture = !0 : n.date.getTime() === f.getTime() && (n.isToday = !0, o.includeToday || (n.disabled = !0))), l.push(n);
|
|
29
|
+
a.weeks.push(l);
|
|
30
30
|
}
|
|
31
31
|
return a;
|
|
32
32
|
}, T = () => {
|
|
33
33
|
let e = m.getCurrentTimeUTC();
|
|
34
|
-
if (s.value && s.value.toEnd ? e = s.value.toEnd :
|
|
34
|
+
if (s.value && s.value.toEnd ? e = s.value.toEnd : o.range && o.range.to && (e = o.range.to), !u.value[`${e.getFullYear().toString()}_${e.getMonth().toString()}`]) {
|
|
35
35
|
u.value = {}, g.value = [];
|
|
36
36
|
for (let t = 0; t < _; t++) {
|
|
37
37
|
const a = new Date(e);
|
|
@@ -46,36 +46,32 @@ const pe = (l, D) => {
|
|
|
46
46
|
}, g.value.unshift(n);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
},
|
|
50
|
-
|
|
49
|
+
}, z = (e, t) => {
|
|
50
|
+
w.value = e;
|
|
51
51
|
let a = e;
|
|
52
|
-
e === "date" && (a =
|
|
52
|
+
e === "date" && (a = o.datePresetList), E.value = he[a], t && (s.value = {
|
|
53
53
|
fromStart: null,
|
|
54
54
|
fromEnd: null,
|
|
55
55
|
toStart: null,
|
|
56
56
|
toEnd: null
|
|
57
|
-
}, S.value.from = "", S.value.to = "", d.value = { started: !1, date: null }, i.value = "custom"),
|
|
57
|
+
}, S.value.from = "", S.value.to = "", d.value = { started: !1, date: null }, i.value = "custom"), y("rangeTypeChanged", w.value);
|
|
58
58
|
}, ee = (e) => {
|
|
59
|
-
i.value = e.id,
|
|
60
|
-
},
|
|
59
|
+
i.value = e.id, M(k.value[e.id].dates()), T();
|
|
60
|
+
}, M = (e, t = !1) => {
|
|
61
61
|
let a = e;
|
|
62
|
-
return !e.from && !e.to && e.preset ?
|
|
63
|
-
from: a.from,
|
|
64
|
-
to: a.to,
|
|
65
|
-
preset: e.preset
|
|
66
|
-
})) : (!e || !e.from && !e.to) && (a = k.value[E.value[0]]), l.maxDaysInRange && (K.value = t ? ge(a.from, l.maxDaysInRange) : null), C.value = !1, !a.from || !a.to || !(a.from instanceof Date) || !(a.to instanceof Date) ? (F.value = De, C.value = !0, !1) : a.from > a.to ? (F.value = `"From" date can't be bigger than "To" date`, C.value = !0, !1) : (s.value = z(a), S.value.from = X(
|
|
62
|
+
return !e.from && !e.to && e.preset ? a = k.value[e.preset]?.dates() : (!e || !e.from && !e.to) && (a = k.value[E.value[0]]), o.maxDaysInRange && (K.value = t ? ge(a.from, o.maxDaysInRange) : null), C.value = !1, !a.from || !a.to || !(a.from instanceof Date) || !(a.to instanceof Date) ? (O.value = De, C.value = !0, !1) : a.from > a.to ? (O.value = `"From" date can't be bigger than "To" date`, C.value = !0, !1) : (s.value = R(a), S.value.from = X(
|
|
67
63
|
s.value.fromStart,
|
|
68
|
-
|
|
69
|
-
), S.value.to = X(s.value.toEnd,
|
|
70
|
-
},
|
|
71
|
-
i.value === "custom" ?
|
|
64
|
+
o.dateFormat
|
|
65
|
+
), S.value.to = X(s.value.toEnd, o.dateFormat), !0);
|
|
66
|
+
}, F = () => {
|
|
67
|
+
i.value === "custom" ? P.value = m.getDateRangeString(s.value) : P.value = J.value, y("currentDateChanged", P.value);
|
|
72
68
|
}, te = () => {
|
|
73
69
|
if (s.value.fromStart == null || s.value.toEnd == null) {
|
|
74
|
-
C.value = !0,
|
|
70
|
+
C.value = !0, O.value = Me;
|
|
75
71
|
return;
|
|
76
72
|
}
|
|
77
73
|
const e = m.getCurrentTimeUTC();
|
|
78
|
-
s.value.toEnd > e && (s.value.toEnd = e),
|
|
74
|
+
s.value.toEnd > e && (s.value.toEnd = e), F(), p.value = i.value, y("rangeChanged", {
|
|
79
75
|
from: s.value.fromStart,
|
|
80
76
|
to: s.value.toEnd,
|
|
81
77
|
preset: p.value
|
|
@@ -83,7 +79,7 @@ const pe = (l, D) => {
|
|
|
83
79
|
}, ae = (e, t) => e ? Z : t ? V : null, ne = (e) => {
|
|
84
80
|
let t = null, a = null;
|
|
85
81
|
const n = _ - 1;
|
|
86
|
-
let
|
|
82
|
+
let l = "", h = null, c = null;
|
|
87
83
|
switch (e) {
|
|
88
84
|
case V:
|
|
89
85
|
Object.keys(u.value).forEach((v) => {
|
|
@@ -92,10 +88,10 @@ const pe = (l, D) => {
|
|
|
92
88
|
g.value.indexOf(v),
|
|
93
89
|
1
|
|
94
90
|
), delete u.value[v]) : f.order += 1;
|
|
95
|
-
}), t = h.parsedMonth.month + 1, a = h.parsedMonth.year, t > 11 && (t = 0, a += 1),
|
|
91
|
+
}), t = h.parsedMonth.month + 1, a = h.parsedMonth.year, t > 11 && (t = 0, a += 1), l = `${a.toString()}_${t.toString()}`, u.value[l] = {
|
|
96
92
|
parsedMonth: L(t, a),
|
|
97
93
|
order: 0
|
|
98
|
-
}, g.value.push(
|
|
94
|
+
}, g.value.push(l);
|
|
99
95
|
break;
|
|
100
96
|
case Z:
|
|
101
97
|
Object.keys(u.value).forEach((v) => {
|
|
@@ -104,15 +100,15 @@ const pe = (l, D) => {
|
|
|
104
100
|
g.value.indexOf(v),
|
|
105
101
|
1
|
|
106
102
|
), delete u.value[v]) : f.order -= 1;
|
|
107
|
-
}), t = c.parsedMonth.month - 1, a = c.parsedMonth.year, t < 0 && (t = 11, a -= 1),
|
|
103
|
+
}), t = c.parsedMonth.month - 1, a = c.parsedMonth.year, t < 0 && (t = 11, a -= 1), l = `${a.toString()}_${t.toString()}`, u.value[l] = {
|
|
108
104
|
parsedMonth: L(t, a),
|
|
109
105
|
order: n
|
|
110
|
-
}, g.value.unshift(
|
|
106
|
+
}, g.value.unshift(l);
|
|
111
107
|
break;
|
|
112
108
|
}
|
|
113
|
-
},
|
|
109
|
+
}, R = (e) => {
|
|
114
110
|
let t;
|
|
115
|
-
switch (
|
|
111
|
+
switch (w.value) {
|
|
116
112
|
case "week":
|
|
117
113
|
t = {
|
|
118
114
|
fromStart: m.getFirstDayOfWeek(e.from),
|
|
@@ -151,75 +147,75 @@ const pe = (l, D) => {
|
|
|
151
147
|
}, U = (e, t) => e.getUTCFullYear() === t.getUTCFullYear() && e.getUTCMonth() === t.getUTCMonth() && e.getUTCDate() === t.getUTCDate(), $ = (e) => {
|
|
152
148
|
let t = !1;
|
|
153
149
|
if (!e.from && !e.to && e.preset) {
|
|
154
|
-
const
|
|
150
|
+
const l = E.value.find(
|
|
155
151
|
(h) => h.id === e.preset
|
|
156
152
|
);
|
|
157
|
-
i.value =
|
|
153
|
+
i.value = l.id, t = !0;
|
|
158
154
|
}
|
|
159
155
|
const a = {
|
|
160
156
|
from: new Date(e.from),
|
|
161
157
|
to: new Date(e.to)
|
|
162
158
|
};
|
|
163
159
|
a.from.setHours(0, 0, 0, 0), a.to.setHours(0, 0, 0, 0);
|
|
164
|
-
const n = E.value.map((
|
|
165
|
-
if (Object.keys(k.value).forEach((
|
|
166
|
-
const h = k.value[
|
|
167
|
-
if (
|
|
160
|
+
const n = E.value.map((l) => l.id);
|
|
161
|
+
if (Object.keys(k.value).forEach((l) => {
|
|
162
|
+
const h = k.value[l];
|
|
163
|
+
if (l !== "custom" && !t && n.indexOf(l) !== -1) {
|
|
168
164
|
const c = h.dates();
|
|
169
|
-
c.from.setHours(0, 0, 0, 0), c.to.setHours(0, 0, 0, 0), U(c.from, a.from) && U(c.to, a.to) && (i.value =
|
|
165
|
+
c.from.setHours(0, 0, 0, 0), c.to.setHours(0, 0, 0, 0), U(c.from, a.from) && U(c.to, a.to) && (i.value = l, t = !0);
|
|
170
166
|
}
|
|
171
167
|
}), t) {
|
|
172
|
-
const
|
|
168
|
+
const l = E.value.find(
|
|
173
169
|
(h) => h.id === i.value
|
|
174
170
|
);
|
|
175
|
-
|
|
171
|
+
y("dateRangePresetNameChanged", l.name);
|
|
176
172
|
} else
|
|
177
|
-
|
|
173
|
+
y("dateRangePresetNameChanged", null), i.value = "custom";
|
|
178
174
|
p.value = i.value;
|
|
179
175
|
}, A = (e, t, a) => {
|
|
180
176
|
if (!d.value.started)
|
|
181
|
-
i.value = "custom", d.value.started = !0, d.value.date = new Date(a, t, e.value),
|
|
177
|
+
i.value = "custom", d.value.started = !0, d.value.date = new Date(a, t, e.value), M(
|
|
182
178
|
{ from: d.value.date, to: d.value.date },
|
|
183
179
|
!0
|
|
184
180
|
);
|
|
185
181
|
else {
|
|
186
|
-
const n = new Date(a, t, e.value),
|
|
187
|
-
d.value.started = !1, d.value.date = null, n <
|
|
182
|
+
const n = new Date(a, t, e.value), l = d.value.date;
|
|
183
|
+
d.value.started = !1, d.value.date = null, n < l ? A(e, t, a) : M({ from: l, to: n });
|
|
188
184
|
}
|
|
189
185
|
}, B = () => {
|
|
190
186
|
const e = N.value.offsetLeft;
|
|
191
187
|
return window.innerWidth - e > 930 ? "left" : "right";
|
|
192
188
|
}, W = (e = !0) => {
|
|
193
|
-
|
|
189
|
+
D.value = !D.value, D.value ? (j.value = B(), M(o.range), T(), y("opened")) : (M(o.range), T(), i.value = p.value, e && y("dismissed"));
|
|
194
190
|
}, G = () => {
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
k.value = m.getPresetsFunctions(
|
|
198
|
-
dates: () =>
|
|
191
|
+
D.value && W();
|
|
192
|
+
}, le = () => {
|
|
193
|
+
k.value = m.getPresetsFunctions(o.includeToday), k.value.custom = {
|
|
194
|
+
dates: () => o.range
|
|
199
195
|
};
|
|
200
|
-
},
|
|
196
|
+
}, oe = b(() => (g.value || []).reduce((e, t) => {
|
|
201
197
|
const n = u.value[t].parsedMonth.weeks[u.value[t].parsedMonth.weeks.length - 1].filter(
|
|
202
|
-
(
|
|
198
|
+
(l) => l.value !== 0
|
|
203
199
|
).length;
|
|
204
200
|
return e && !n;
|
|
205
201
|
}, !0)), Y = () => {
|
|
206
|
-
|
|
202
|
+
o.range && (x.value = !0, z(o.initialType || o.types[0]), le(), $(o.range), M(o.range), T(), F());
|
|
207
203
|
};
|
|
208
204
|
de(() => {
|
|
209
205
|
Y();
|
|
210
206
|
}), ce(() => {
|
|
211
207
|
const e = (t) => {
|
|
212
|
-
t.key === "Escape" &&
|
|
208
|
+
t.key === "Escape" && D.value && G();
|
|
213
209
|
};
|
|
214
210
|
document.addEventListener("keyup", e), ve(() => {
|
|
215
211
|
document.removeEventListener("keyup", e);
|
|
216
212
|
});
|
|
217
213
|
}), Q(
|
|
218
|
-
() =>
|
|
214
|
+
() => o.range,
|
|
219
215
|
(e, t) => {
|
|
220
|
-
e && e !== t && (x.value ? ($(e),
|
|
216
|
+
e && e !== t && (x.value ? ($(e), M(e), F()) : Y());
|
|
221
217
|
}
|
|
222
|
-
), Q(
|
|
218
|
+
), Q(D, (e) => {
|
|
223
219
|
e || (d.value.started = !1);
|
|
224
220
|
});
|
|
225
221
|
const J = b(() => {
|
|
@@ -227,8 +223,8 @@ const pe = (l, D) => {
|
|
|
227
223
|
(t) => t.id === i.value
|
|
228
224
|
);
|
|
229
225
|
return e ? e.name : "";
|
|
230
|
-
}), re = b(() => `datepicker${
|
|
231
|
-
const e = [
|
|
226
|
+
}), re = b(() => `datepicker${o.uniqueId}`), se = b(() => {
|
|
227
|
+
const e = [o.maxDate, K.value].filter((t) => t);
|
|
232
228
|
return e.length ? me(e) : null;
|
|
233
229
|
});
|
|
234
230
|
return {
|
|
@@ -238,35 +234,35 @@ const pe = (l, D) => {
|
|
|
238
234
|
selectedPresetName: J,
|
|
239
235
|
selectedPreset: i,
|
|
240
236
|
displayError: C,
|
|
241
|
-
rangeType:
|
|
237
|
+
rangeType: w,
|
|
242
238
|
selectedRange: s,
|
|
243
239
|
placement: j,
|
|
244
|
-
currentDate:
|
|
245
|
-
error:
|
|
240
|
+
currentDate: P,
|
|
241
|
+
error: O,
|
|
246
242
|
presets: E,
|
|
247
|
-
isOpen:
|
|
248
|
-
popup:
|
|
243
|
+
isOpen: D,
|
|
244
|
+
popup: q,
|
|
249
245
|
selectionStart: d,
|
|
250
246
|
initialized: x,
|
|
251
247
|
textDates: S,
|
|
252
248
|
currentMonths: u,
|
|
253
249
|
displayedMonthsKeys: g,
|
|
254
250
|
initMonths: T,
|
|
255
|
-
changeType:
|
|
251
|
+
changeType: z,
|
|
256
252
|
presetChanged: ee,
|
|
257
|
-
initRange:
|
|
258
|
-
setCurrentDate:
|
|
253
|
+
initRange: M,
|
|
254
|
+
setCurrentDate: F,
|
|
259
255
|
apply: te,
|
|
260
256
|
getNavigation: ae,
|
|
261
257
|
navigationCallback: ne,
|
|
262
|
-
getSelectedRangeByType:
|
|
258
|
+
getSelectedRangeByType: R,
|
|
263
259
|
compareDates: U,
|
|
264
260
|
determinePreset: $,
|
|
265
261
|
selectionChanged: A,
|
|
266
262
|
checkPlacement: B,
|
|
267
263
|
toggle: W,
|
|
268
264
|
closeDatePicker: G,
|
|
269
|
-
isCompact:
|
|
265
|
+
isCompact: oe,
|
|
270
266
|
init: Y
|
|
271
267
|
};
|
|
272
268
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DateServicesInterface } from '@/components/dateRange/common/dateRange.types';
|
|
2
1
|
export type Day = {
|
|
3
2
|
value?: number;
|
|
4
3
|
isToday?: boolean;
|
|
@@ -7,7 +6,7 @@ export type Day = {
|
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
};
|
|
9
8
|
export type Week = Day[];
|
|
10
|
-
export declare class DateServices
|
|
9
|
+
export declare class DateServices {
|
|
11
10
|
getCurrentTimeUTC(): Date;
|
|
12
11
|
daysInMonth(month: any, year: any): number;
|
|
13
12
|
getDateRangeString(dateRange: any): string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DateServicesInterface } from '../common/dateRange.types';
|
|
2
1
|
declare const DateRangeTypes: () => ({
|
|
3
2
|
new (...args: any[]): {
|
|
4
3
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -405,7 +404,5 @@ declare const DateRangeTypes: () => ({
|
|
|
405
404
|
footer?(_: {}): any;
|
|
406
405
|
};
|
|
407
406
|
}))[];
|
|
408
|
-
export declare const dateService: DateServicesInterface;
|
|
409
407
|
export { default as DateRange } from './DateRangeV4.vue';
|
|
410
408
|
export { DateRangeTypes };
|
|
411
|
-
export * from '../common/dateRange.types';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import e from "./DateRangeV4.vue.js";
|
|
2
|
-
|
|
3
|
-
const a = () => [e], n = new t();
|
|
2
|
+
const a = () => [e];
|
|
4
3
|
export {
|
|
5
4
|
e as DateRange,
|
|
6
|
-
a as DateRangeTypes
|
|
7
|
-
n as dateService
|
|
5
|
+
a as DateRangeTypes
|
|
8
6
|
};
|
package/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ import * as tableV3 from '@/components/table/v3';
|
|
|
18
18
|
import * as tableV4 from '@/components/table/v4';
|
|
19
19
|
import * as tableCellsV3 from '@/components/table-cells/v3';
|
|
20
20
|
import * as snackbarV3 from '@/components/snackbar/v3';
|
|
21
|
-
import * as dateRangeV4 from '@/components/dateRange/v4';
|
|
22
21
|
declare const _default: {
|
|
23
22
|
nFormatter(num: number, formatLowDigits?: boolean): string;
|
|
24
23
|
DEFAULT_FALLBACK: "N/A";
|
|
@@ -550,7 +549,6 @@ declare const _default: {
|
|
|
550
549
|
content?(_: {}): any;
|
|
551
550
|
};
|
|
552
551
|
}))[];
|
|
553
|
-
dateService: dateRangeV4.DateServicesInterface;
|
|
554
552
|
DateRange: {
|
|
555
553
|
new (...args: any[]): {
|
|
556
554
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -27125,6 +27123,7 @@ export default _default;
|
|
|
27125
27123
|
export * from '@/composables/useToggle';
|
|
27126
27124
|
export * from '@/composables/useSearch';
|
|
27127
27125
|
export * from '@/composables/useFormValidation';
|
|
27126
|
+
export * from '@/composables/useDateService';
|
|
27128
27127
|
export * from '@/components/banner';
|
|
27129
27128
|
export * from '@/components/alert';
|
|
27130
27129
|
export * from '@/components/autocomplete';
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_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";
|
|
@@ -9,7 +9,7 @@ import { IncludeExcludeTypes as $o } from "./components/includeExclude/index.js"
|
|
|
9
9
|
import { ID_INJECTION_KEY as co, useId as yo } from "./composables/useId.js";
|
|
10
10
|
import { FilterDropdownTypes as Fo } from "./components/filterDropdown/index.js";
|
|
11
11
|
import { TypographyTypes as Ao } from "./components/typography/index.js";
|
|
12
|
-
import { TypographyTypesV4 as
|
|
12
|
+
import { TypographyTypesV4 as Do } from "./components/typography/v4/index.js";
|
|
13
13
|
import { MultiBarTypes as ho } from "./components/multibar/index.js";
|
|
14
14
|
import { FoldableSectionTypes as Mo } from "./components/layout/index.js";
|
|
15
15
|
import { FormCardTypes as wo, FormFieldTypes as Oo } from "./components/forms/index.js";
|
|
@@ -37,19 +37,19 @@ import * as F from "./components/dialog/v3/index.js";
|
|
|
37
37
|
import * as I from "./components/dialog/v4/index.js";
|
|
38
38
|
import * as A from "./components/toggle/v3/index.js";
|
|
39
39
|
import * as E from "./components/toggle/v4/index.js";
|
|
40
|
-
import * as
|
|
41
|
-
import * as
|
|
40
|
+
import * as D from "./components/tooltip/v3/index.js";
|
|
41
|
+
import * as C from "./components/tooltip/v4/index.js";
|
|
42
42
|
import * as h from "./components/table/v3/index.js";
|
|
43
43
|
import * as B from "./components/table/v4/index.js";
|
|
44
44
|
import * as M from "./components/table-cells/v3/index.js";
|
|
45
45
|
import * as b from "./components/table-cells/v4/index.js";
|
|
46
46
|
import * as w from "./components/skeleton/v3/index.js";
|
|
47
47
|
import * as O from "./components/skeleton/v4/index.js";
|
|
48
|
-
import * as
|
|
49
|
-
import * as
|
|
50
|
-
import * as
|
|
51
|
-
import * as
|
|
52
|
-
import * as
|
|
48
|
+
import * as S from "./components/loader/v4/index.js";
|
|
49
|
+
import * as v from "./components/emptyState/v3/index.js";
|
|
50
|
+
import * as H from "./components/emptyState/v4/index.js";
|
|
51
|
+
import * as N from "./components/snackbar/v3/index.js";
|
|
52
|
+
import * as V from "./components/snackbar/v4/index.js";
|
|
53
53
|
import * as J from "./components/radioButton/v3/index.js";
|
|
54
54
|
import * as K from "./components/radioButton/v4/index.js";
|
|
55
55
|
import * as P from "./components/textArea/v3/index.js";
|
|
@@ -66,42 +66,43 @@ import * as Y from "./components/dateRange/v4/index.js";
|
|
|
66
66
|
import * as U from "./components/popover/v3/index.js";
|
|
67
67
|
import * as W from "./components/popover/v4/index.js";
|
|
68
68
|
import * as X from "./utils/index.js";
|
|
69
|
-
import { useToggle as
|
|
70
|
-
import { useSearch as
|
|
69
|
+
import { useToggle as vo } from "./composables/useToggle.js";
|
|
70
|
+
import { useSearch as No } from "./composables/useSearch.js";
|
|
71
71
|
import { scrollToElementByClass as Jo, scrollToFirstInvalidElement as Ko, useFormValidation as Po, yupValidation as Ro } from "./composables/useFormValidation.js";
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import { default as Xo } from "./components/
|
|
78
|
-
import { default as or } from "./components/
|
|
79
|
-
import { default as er } from "./components/
|
|
80
|
-
import { default as mr } from "./components/
|
|
81
|
-
import { default as ar } from "./components/
|
|
82
|
-
import { default as fr } from "./components/
|
|
83
|
-
import { default as xr } from "./components/includeExclude/
|
|
84
|
-
import { default as nr } from "./components/includeExclude/
|
|
85
|
-
import { default as ur } from "./components/includeExclude/
|
|
86
|
-
import { default as Tr } from "./components/includeExclude/
|
|
87
|
-
import { default as yr } from "./components/includeExclude/
|
|
88
|
-
import { default as Fr } from "./components/includeExclude/
|
|
89
|
-
import { default as Ar } from "./components/
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as hr } from "./components/
|
|
92
|
-
import { default as Mr } from "./components/typography/
|
|
93
|
-
import { default as wr } from "./components/typography/
|
|
72
|
+
import { useDateService as jo } from "./composables/useDateService.js";
|
|
73
|
+
import { BannerTypes as qo } from "./components/banner/index.js";
|
|
74
|
+
import { AlertTypes as Go } from "./components/alert/index.js";
|
|
75
|
+
import { AutocompleteTypes as Qo } from "./components/autocomplete/index.js";
|
|
76
|
+
import { ChartTypes as Uo } from "./components/chart/index.js";
|
|
77
|
+
import { default as Xo } from "./components/appTrigger/AppTrigger.vue.js";
|
|
78
|
+
import { default as or } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
|
|
79
|
+
import { default as er } from "./components/menuItem/MenuItem.vue.js";
|
|
80
|
+
import { default as mr } from "./components/menu/Menu.vue.js";
|
|
81
|
+
import { default as ar } from "./components/appIcon/AppIcon.vue.js";
|
|
82
|
+
import { default as fr } from "./components/floatingToolbar/FloatingToolbar.vue.js";
|
|
83
|
+
import { default as xr } from "./components/includeExclude/IncludeExclude.vue.js";
|
|
84
|
+
import { default as nr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
|
|
85
|
+
import { default as ur } from "./components/includeExclude/IncludeExcludeOption.vue.js";
|
|
86
|
+
import { default as Tr } from "./components/includeExclude/IncludeExcludeOptionDraggable.vue.js";
|
|
87
|
+
import { default as yr } from "./components/includeExclude/IncludeExcludeAppTrigger.vue.js";
|
|
88
|
+
import { default as Fr } from "./components/includeExclude/IncludeExcludeAppHeader.vue.js";
|
|
89
|
+
import { default as Ar } from "./components/includeExclude/IncludeExcludeChipFilter.vue.js";
|
|
90
|
+
import { default as Dr } from "./components/filterDropdown/FilterDropdown.vue.js";
|
|
91
|
+
import { default as hr } from "./components/filterDropdown/AddFilterButton.vue.js";
|
|
92
|
+
import { default as Mr } from "./components/typography/Heading.vue.js";
|
|
93
|
+
import { default as wr } from "./components/typography/Text.vue.js";
|
|
94
|
+
import { default as Sr } from "./components/typography/v4/Typography.vue.js";
|
|
94
95
|
import { default as Hr } from "./components/multibar/MultiBar.vue.js";
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { ChartType as
|
|
96
|
+
import { default as Vr } from "./components/layout/FoldableSection.vue.js";
|
|
97
|
+
import { default as Kr } from "./components/forms/FormRow.vue.js";
|
|
98
|
+
import { default as Rr } from "./components/forms/FormCard.vue.js";
|
|
99
|
+
import { default as jr } from "./components/forms/CardPanel.vue.js";
|
|
100
|
+
import { default as qr } from "./components/forms/FormField.vue.js";
|
|
101
|
+
import { default as Gr } from "./components/banner/Banner.vue.js";
|
|
102
|
+
import { default as Qr } from "./components/alert/Alert.vue.js";
|
|
103
|
+
import { default as Ur } from "./components/autocomplete/Autocomplete.vue.js";
|
|
104
|
+
import { default as Xr } from "./components/chart/Chart.vue.js";
|
|
105
|
+
import { ChartType as oe, TooltipOrder as re, TrendDirection as ee } from "./components/chart/types.js";
|
|
105
106
|
const Z = {
|
|
106
107
|
...e,
|
|
107
108
|
...t,
|
|
@@ -123,21 +124,21 @@ const Z = {
|
|
|
123
124
|
...g,
|
|
124
125
|
...F,
|
|
125
126
|
...I,
|
|
126
|
-
...C,
|
|
127
127
|
...D,
|
|
128
|
+
...C,
|
|
128
129
|
...A,
|
|
129
130
|
...E,
|
|
130
131
|
...h,
|
|
131
132
|
...B,
|
|
132
133
|
...M,
|
|
133
134
|
...b,
|
|
134
|
-
...
|
|
135
|
-
...
|
|
135
|
+
...v,
|
|
136
|
+
...H,
|
|
136
137
|
...w,
|
|
137
138
|
...O,
|
|
138
|
-
...
|
|
139
|
+
...S,
|
|
140
|
+
...N,
|
|
139
141
|
...V,
|
|
140
|
-
...v,
|
|
141
142
|
...n,
|
|
142
143
|
...l,
|
|
143
144
|
...P,
|
|
@@ -158,62 +159,63 @@ const Z = {
|
|
|
158
159
|
...X
|
|
159
160
|
};
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
hr as AddFilterButton,
|
|
163
|
+
Qr as Alert,
|
|
164
|
+
Go as AlertTypes,
|
|
165
|
+
ar as AppIcon,
|
|
165
166
|
so as AppIconTypes,
|
|
166
|
-
|
|
167
|
+
Xo as AppTrigger,
|
|
167
168
|
eo as AppTriggerTypes,
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
Ur as Autocomplete,
|
|
170
|
+
or as AutocompleteDropdown,
|
|
170
171
|
mo as AutocompleteDropdownTypes,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
Qo as AutocompleteTypes,
|
|
173
|
+
Gr as Banner,
|
|
174
|
+
qo as BannerTypes,
|
|
175
|
+
jr as CardPanel,
|
|
176
|
+
Xr as Chart,
|
|
177
|
+
oe as ChartType,
|
|
178
|
+
Uo as ChartTypes,
|
|
179
|
+
Dr as FilterDropdown,
|
|
179
180
|
Fo as FilterDropdownTypes,
|
|
180
|
-
|
|
181
|
+
fr as FloatingToolbar,
|
|
181
182
|
lo as FloatingToolbarTypes,
|
|
182
|
-
|
|
183
|
+
Vr as FoldableSection,
|
|
183
184
|
Mo as FoldableSectionTypes,
|
|
184
|
-
|
|
185
|
+
Rr as FormCard,
|
|
185
186
|
wo as FormCardTypes,
|
|
186
|
-
|
|
187
|
+
qr as FormField,
|
|
187
188
|
Oo as FormFieldTypes,
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
Kr as FormRow,
|
|
190
|
+
Mr as Heading,
|
|
190
191
|
co as ID_INJECTION_KEY,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
xr as IncludeExclude,
|
|
193
|
+
Fr as IncludeExcludeAppHeader,
|
|
194
|
+
yr as IncludeExcludeAppTrigger,
|
|
195
|
+
Ar as IncludeExcludeChipFilter,
|
|
196
|
+
nr as IncludeExcludeDragDrop,
|
|
197
|
+
ur as IncludeExcludeOption,
|
|
198
|
+
Tr as IncludeExcludeOptionDraggable,
|
|
198
199
|
$o as IncludeExcludeTypes,
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
mr as Menu,
|
|
201
|
+
er as MenuItem,
|
|
201
202
|
ao as MenuItemTypes,
|
|
202
203
|
fo as MenuTypes,
|
|
203
204
|
Hr as MultiBar,
|
|
204
205
|
ho as MultiBarTypes,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
wr as Text,
|
|
207
|
+
re as TooltipOrder,
|
|
208
|
+
ee as TrendDirection,
|
|
209
|
+
Sr as Typography,
|
|
209
210
|
Ao as TypographyTypes,
|
|
210
|
-
|
|
211
|
+
Do as TypographyTypesV4,
|
|
211
212
|
Z as default,
|
|
212
213
|
Jo as scrollToElementByClass,
|
|
213
214
|
Ko as scrollToFirstInvalidElement,
|
|
215
|
+
jo as useDateService,
|
|
214
216
|
Po as useFormValidation,
|
|
215
217
|
yo as useId,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
+
No as useSearch,
|
|
219
|
+
vo as useToggle,
|
|
218
220
|
Ro as yupValidation
|
|
219
221
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironsource/shared-ui",
|
|
3
|
-
"version": "2.1.12-test.
|
|
3
|
+
"version": "2.1.12-test.98",
|
|
4
4
|
"engines": {
|
|
5
5
|
"npm": ">=7.0.0",
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -231,6 +231,7 @@
|
|
|
231
231
|
"./statusDot": "./components/statusDot/index.js",
|
|
232
232
|
"./sortableList": "./components/sortableList/index.js",
|
|
233
233
|
"./composables/useFormValidation": "./composables/useFormValidation.js",
|
|
234
|
+
"./composables/useDateService": "./composables/useDateService.js",
|
|
234
235
|
"./utils/": "./utils/index.ts"
|
|
235
236
|
},
|
|
236
237
|
"typesVersions": {
|
|
@@ -468,6 +469,9 @@
|
|
|
468
469
|
],
|
|
469
470
|
"composables/useFormValidation": [
|
|
470
471
|
"./composables/useFormValidation.d.ts"
|
|
472
|
+
],
|
|
473
|
+
"composables/useDateService": [
|
|
474
|
+
"./composables/useDateService.d.ts"
|
|
471
475
|
]
|
|
472
476
|
}
|
|
473
477
|
},
|