scope360-core 0.0.261 → 0.0.262
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/dist/scope360-core.js
CHANGED
|
@@ -30199,6 +30199,60 @@ function HV(t) {
|
|
|
30199
30199
|
} else
|
|
30200
30200
|
return t;
|
|
30201
30201
|
}
|
|
30202
|
+
function $5(t, e) {
|
|
30203
|
+
let n = [], s = new Date(e, t, 1), i = new Date(e, t + 1, 0), r = i.getDate(), a = 1, o;
|
|
30204
|
+
for (s.getDay() === 1 ? o = 7 : s.getDay() === 0 ? (a = new Date(e, t, 0).getDate() - 6 + 1, o = 1) : (a = new Date(e, t, 0).getDate() + 1 - s.getDay() + 1, o = 7 - s.getDay() + 1, n.push({
|
|
30205
|
+
start: a,
|
|
30206
|
+
end: o
|
|
30207
|
+
}), a = o + 1, o = o + 7); a <= r; )
|
|
30208
|
+
if (n.push({
|
|
30209
|
+
start: a,
|
|
30210
|
+
end: o
|
|
30211
|
+
}), a = o + 1, o = o + 7, o = a === 1 && o === 8 ? 1 : o, o > r && a <= r) {
|
|
30212
|
+
o = o - r, n.push({
|
|
30213
|
+
start: a,
|
|
30214
|
+
end: o
|
|
30215
|
+
});
|
|
30216
|
+
break;
|
|
30217
|
+
}
|
|
30218
|
+
return n.map(({ start: l, end: u }, c) => {
|
|
30219
|
+
const d = +(l > u && c === 0);
|
|
30220
|
+
return Array.from({ length: 7 }, (h, f) => {
|
|
30221
|
+
const p = new Date(e, t - d, l + f);
|
|
30222
|
+
return {
|
|
30223
|
+
date: p.getDate(),
|
|
30224
|
+
month: p.getMonth(),
|
|
30225
|
+
day: p.toLocaleString("en", { weekday: "long" })
|
|
30226
|
+
};
|
|
30227
|
+
});
|
|
30228
|
+
});
|
|
30229
|
+
}
|
|
30230
|
+
function I5(t, e, n) {
|
|
30231
|
+
let s = new Date(t), i = new Date(e);
|
|
30232
|
+
s > i && ([s, i] = [i, s]);
|
|
30233
|
+
let r = [], a = new Date(s), o = 0;
|
|
30234
|
+
for (; a <= i; ) {
|
|
30235
|
+
let l = a.toLocaleString("default", {
|
|
30236
|
+
month: "long",
|
|
30237
|
+
year: "numeric"
|
|
30238
|
+
});
|
|
30239
|
+
n ? r.push({
|
|
30240
|
+
month: a.getMonth(),
|
|
30241
|
+
year: a.getFullYear(),
|
|
30242
|
+
name: l,
|
|
30243
|
+
id: o
|
|
30244
|
+
}) : r.push(l), o = o + 1, a.setMonth(a.getMonth() + 1);
|
|
30245
|
+
}
|
|
30246
|
+
return r;
|
|
30247
|
+
}
|
|
30248
|
+
function N5(t, e, n) {
|
|
30249
|
+
let s = new Date(t), i = new Date(e);
|
|
30250
|
+
s > i && ([s, i] = [i, s]);
|
|
30251
|
+
let r = [], a = s.getFullYear(), o = i.getFullYear(), l = 0;
|
|
30252
|
+
for (let u = a; u <= o; u++)
|
|
30253
|
+
n ? r.push({ value: u, name: u.toString(), id: l }) : r.push(u.toString()), l = l + 1;
|
|
30254
|
+
return r;
|
|
30255
|
+
}
|
|
30202
30256
|
const UV = (t, e, n, s = {}, i) => {
|
|
30203
30257
|
const r = mo(t, e, s), a = document.createElement("div");
|
|
30204
30258
|
return a.setAttribute("id", i || ""), n.appendChild(a), cd(r, a), r.component;
|
|
@@ -30289,9 +30343,12 @@ export {
|
|
|
30289
30343
|
C5 as getDate,
|
|
30290
30344
|
Kg as getDay,
|
|
30291
30345
|
A5 as getDaysDifference,
|
|
30346
|
+
$5 as getFullWeeksStartAndEndInMonth,
|
|
30292
30347
|
D5 as getFullYear,
|
|
30293
30348
|
P5 as getMonth,
|
|
30349
|
+
I5 as getMonthsBetweenDates,
|
|
30294
30350
|
E5 as getTimeColor,
|
|
30351
|
+
N5 as getYearsBetweenDates,
|
|
30295
30352
|
Be as maskData,
|
|
30296
30353
|
Zg as numFormat,
|
|
30297
30354
|
ih as scopeInstance,
|