scope360-core 0.0.261 → 0.0.263
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,64 @@ 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.getFullYear(), s.getMonth(), 1), o = 0;
|
|
30234
|
+
for (; a <= i; ) {
|
|
30235
|
+
let l = a.toLocaleString("en", {
|
|
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
|
+
}
|
|
30256
|
+
function L5(t, e) {
|
|
30257
|
+
let i = new Date(t).getTime() - e * 24 * 60 * 60 * 1e3;
|
|
30258
|
+
return new Date(i).toISOString().split(".")[0] + "Z";
|
|
30259
|
+
}
|
|
30202
30260
|
const UV = (t, e, n, s = {}, i) => {
|
|
30203
30261
|
const r = mo(t, e, s), a = document.createElement("div");
|
|
30204
30262
|
return a.setAttribute("id", i || ""), n.appendChild(a), cd(r, a), r.component;
|
|
@@ -30289,12 +30347,16 @@ export {
|
|
|
30289
30347
|
C5 as getDate,
|
|
30290
30348
|
Kg as getDay,
|
|
30291
30349
|
A5 as getDaysDifference,
|
|
30350
|
+
$5 as getFullWeeksStartAndEndInMonth,
|
|
30292
30351
|
D5 as getFullYear,
|
|
30293
30352
|
P5 as getMonth,
|
|
30353
|
+
I5 as getMonthsBetweenDates,
|
|
30294
30354
|
E5 as getTimeColor,
|
|
30355
|
+
N5 as getYearsBetweenDates,
|
|
30295
30356
|
Be as maskData,
|
|
30296
30357
|
Zg as numFormat,
|
|
30297
30358
|
ih as scopeInstance,
|
|
30359
|
+
L5 as subtractDays,
|
|
30298
30360
|
O5 as toBaseDate,
|
|
30299
30361
|
M5 as toDynamicFix,
|
|
30300
30362
|
on as toFix,
|