@budibase/shared-core 2.13.36 → 2.13.37
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/index.js +49 -49
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -60,9 +60,9 @@ var require_dayjs_min = __commonJS({
|
|
|
60
60
|
return void 0 === t2;
|
|
61
61
|
} }, g = "en", D = {};
|
|
62
62
|
D[g] = M;
|
|
63
|
-
var p = function(t2) {
|
|
64
|
-
return t2 instanceof
|
|
65
|
-
},
|
|
63
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
64
|
+
return t2 instanceof _2 || !(!t2 || !t2[p]);
|
|
65
|
+
}, w = function t2(e2, n2, r2) {
|
|
66
66
|
var i2;
|
|
67
67
|
if (!e2)
|
|
68
68
|
return g;
|
|
@@ -77,18 +77,18 @@ var require_dayjs_min = __commonJS({
|
|
|
77
77
|
D[a2] = e2, i2 = a2;
|
|
78
78
|
}
|
|
79
79
|
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
80
|
-
},
|
|
81
|
-
if (
|
|
80
|
+
}, O = function(t2, e2) {
|
|
81
|
+
if (S(t2))
|
|
82
82
|
return t2.clone();
|
|
83
83
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
84
|
-
return n2.date = t2, n2.args = arguments, new
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
return
|
|
84
|
+
return n2.date = t2, n2.args = arguments, new _2(n2);
|
|
85
|
+
}, b = v;
|
|
86
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
87
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
88
88
|
};
|
|
89
|
-
var
|
|
89
|
+
var _2 = function() {
|
|
90
90
|
function M2(t2) {
|
|
91
|
-
this.$L =
|
|
91
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
92
92
|
}
|
|
93
93
|
var m2 = M2.prototype;
|
|
94
94
|
return m2.parse = function(t2) {
|
|
@@ -96,7 +96,7 @@ var require_dayjs_min = __commonJS({
|
|
|
96
96
|
var e2 = t3.date, n2 = t3.utc;
|
|
97
97
|
if (null === e2)
|
|
98
98
|
return /* @__PURE__ */ new Date(NaN);
|
|
99
|
-
if (
|
|
99
|
+
if (b.u(e2))
|
|
100
100
|
return /* @__PURE__ */ new Date();
|
|
101
101
|
if (e2 instanceof Date)
|
|
102
102
|
return new Date(e2);
|
|
@@ -108,33 +108,33 @@ var require_dayjs_min = __commonJS({
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
return new Date(e2);
|
|
111
|
-
}(t2), this
|
|
111
|
+
}(t2), this.init();
|
|
112
112
|
}, m2.init = function() {
|
|
113
113
|
var t2 = this.$d;
|
|
114
114
|
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
115
115
|
}, m2.$utils = function() {
|
|
116
|
-
return
|
|
116
|
+
return b;
|
|
117
117
|
}, m2.isValid = function() {
|
|
118
118
|
return !(this.$d.toString() === l);
|
|
119
119
|
}, m2.isSame = function(t2, e2) {
|
|
120
|
-
var n2 =
|
|
120
|
+
var n2 = O(t2);
|
|
121
121
|
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
122
122
|
}, m2.isAfter = function(t2, e2) {
|
|
123
|
-
return
|
|
123
|
+
return O(t2) < this.startOf(e2);
|
|
124
124
|
}, m2.isBefore = function(t2, e2) {
|
|
125
|
-
return this.endOf(e2) <
|
|
125
|
+
return this.endOf(e2) < O(t2);
|
|
126
126
|
}, m2.$g = function(t2, e2, n2) {
|
|
127
|
-
return
|
|
127
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
128
128
|
}, m2.unix = function() {
|
|
129
129
|
return Math.floor(this.valueOf() / 1e3);
|
|
130
130
|
}, m2.valueOf = function() {
|
|
131
131
|
return this.$d.getTime();
|
|
132
132
|
}, m2.startOf = function(t2, e2) {
|
|
133
|
-
var n2 = this, r2 = !!
|
|
134
|
-
var i2 =
|
|
133
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
134
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
135
135
|
return r2 ? i2 : i2.endOf(a);
|
|
136
136
|
}, $2 = function(t3, e3) {
|
|
137
|
-
return
|
|
137
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
138
138
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
139
139
|
switch (f2) {
|
|
140
140
|
case h:
|
|
@@ -159,7 +159,7 @@ var require_dayjs_min = __commonJS({
|
|
|
159
159
|
}, m2.endOf = function(t2) {
|
|
160
160
|
return this.startOf(t2, false);
|
|
161
161
|
}, m2.$set = function(t2, e2) {
|
|
162
|
-
var n2, o2 =
|
|
162
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
163
163
|
if (o2 === c || o2 === h) {
|
|
164
164
|
var y2 = this.clone().set(d, 1);
|
|
165
165
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
@@ -169,13 +169,13 @@ var require_dayjs_min = __commonJS({
|
|
|
169
169
|
}, m2.set = function(t2, e2) {
|
|
170
170
|
return this.clone().$set(t2, e2);
|
|
171
171
|
}, m2.get = function(t2) {
|
|
172
|
-
return this[
|
|
172
|
+
return this[b.p(t2)]();
|
|
173
173
|
}, m2.add = function(r2, f2) {
|
|
174
174
|
var d2, l2 = this;
|
|
175
175
|
r2 = Number(r2);
|
|
176
|
-
var $2 =
|
|
177
|
-
var e2 =
|
|
178
|
-
return
|
|
176
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
177
|
+
var e2 = O(l2);
|
|
178
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
179
179
|
};
|
|
180
180
|
if ($2 === c)
|
|
181
181
|
return this.set(c, this.$M + r2);
|
|
@@ -186,17 +186,17 @@ var require_dayjs_min = __commonJS({
|
|
|
186
186
|
if ($2 === o)
|
|
187
187
|
return y2(7);
|
|
188
188
|
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
189
|
-
return
|
|
189
|
+
return b.w(m3, this);
|
|
190
190
|
}, m2.subtract = function(t2, e2) {
|
|
191
191
|
return this.add(-1 * t2, e2);
|
|
192
192
|
}, m2.format = function(t2) {
|
|
193
193
|
var e2 = this, n2 = this.$locale();
|
|
194
194
|
if (!this.isValid())
|
|
195
195
|
return n2.invalidDate || l;
|
|
196
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 =
|
|
196
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
197
197
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
198
198
|
}, d2 = function(t3) {
|
|
199
|
-
return
|
|
199
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
200
200
|
}, $2 = f2 || function(t3, e3, n3) {
|
|
201
201
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
202
202
|
return n3 ? r3.toLowerCase() : r3;
|
|
@@ -207,11 +207,11 @@ var require_dayjs_min = __commonJS({
|
|
|
207
207
|
case "YY":
|
|
208
208
|
return String(e2.$y).slice(-2);
|
|
209
209
|
case "YYYY":
|
|
210
|
-
return
|
|
210
|
+
return b.s(e2.$y, 4, "0");
|
|
211
211
|
case "M":
|
|
212
212
|
return a2 + 1;
|
|
213
213
|
case "MM":
|
|
214
|
-
return
|
|
214
|
+
return b.s(a2 + 1, 2, "0");
|
|
215
215
|
case "MMM":
|
|
216
216
|
return h2(n2.monthsShort, a2, c2, 3);
|
|
217
217
|
case "MMMM":
|
|
@@ -219,7 +219,7 @@ var require_dayjs_min = __commonJS({
|
|
|
219
219
|
case "D":
|
|
220
220
|
return e2.$D;
|
|
221
221
|
case "DD":
|
|
222
|
-
return
|
|
222
|
+
return b.s(e2.$D, 2, "0");
|
|
223
223
|
case "d":
|
|
224
224
|
return String(e2.$W);
|
|
225
225
|
case "dd":
|
|
@@ -231,7 +231,7 @@ var require_dayjs_min = __commonJS({
|
|
|
231
231
|
case "H":
|
|
232
232
|
return String(s2);
|
|
233
233
|
case "HH":
|
|
234
|
-
return
|
|
234
|
+
return b.s(s2, 2, "0");
|
|
235
235
|
case "h":
|
|
236
236
|
return d2(1);
|
|
237
237
|
case "hh":
|
|
@@ -243,13 +243,13 @@ var require_dayjs_min = __commonJS({
|
|
|
243
243
|
case "m":
|
|
244
244
|
return String(u2);
|
|
245
245
|
case "mm":
|
|
246
|
-
return
|
|
246
|
+
return b.s(u2, 2, "0");
|
|
247
247
|
case "s":
|
|
248
248
|
return String(e2.$s);
|
|
249
249
|
case "ss":
|
|
250
|
-
return
|
|
250
|
+
return b.s(e2.$s, 2, "0");
|
|
251
251
|
case "SSS":
|
|
252
|
-
return
|
|
252
|
+
return b.s(e2.$ms, 3, "0");
|
|
253
253
|
case "Z":
|
|
254
254
|
return i2;
|
|
255
255
|
}
|
|
@@ -259,8 +259,8 @@ var require_dayjs_min = __commonJS({
|
|
|
259
259
|
}, m2.utcOffset = function() {
|
|
260
260
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
261
261
|
}, m2.diff = function(r2, d2, l2) {
|
|
262
|
-
var $2, y2 = this, M3 =
|
|
263
|
-
return
|
|
262
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
263
|
+
return b.m(y2, m3);
|
|
264
264
|
};
|
|
265
265
|
switch (M3) {
|
|
266
266
|
case h:
|
|
@@ -290,7 +290,7 @@ var require_dayjs_min = __commonJS({
|
|
|
290
290
|
default:
|
|
291
291
|
$2 = g2;
|
|
292
292
|
}
|
|
293
|
-
return l2 ? $2 :
|
|
293
|
+
return l2 ? $2 : b.a($2);
|
|
294
294
|
}, m2.daysInMonth = function() {
|
|
295
295
|
return this.endOf(c).$D;
|
|
296
296
|
}, m2.$locale = function() {
|
|
@@ -298,10 +298,10 @@ var require_dayjs_min = __commonJS({
|
|
|
298
298
|
}, m2.locale = function(t2, e2) {
|
|
299
299
|
if (!t2)
|
|
300
300
|
return this.$L;
|
|
301
|
-
var n2 = this.clone(), r2 =
|
|
301
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
302
302
|
return r2 && (n2.$L = r2), n2;
|
|
303
303
|
}, m2.clone = function() {
|
|
304
|
-
return
|
|
304
|
+
return b.w(this.$d, this);
|
|
305
305
|
}, m2.toDate = function() {
|
|
306
306
|
return new Date(this.valueOf());
|
|
307
307
|
}, m2.toJSON = function() {
|
|
@@ -311,16 +311,16 @@ var require_dayjs_min = __commonJS({
|
|
|
311
311
|
}, m2.toString = function() {
|
|
312
312
|
return this.$d.toUTCString();
|
|
313
313
|
}, M2;
|
|
314
|
-
}(),
|
|
315
|
-
return
|
|
316
|
-
|
|
314
|
+
}(), k = _2.prototype;
|
|
315
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
316
|
+
k[t2[1]] = function(e2) {
|
|
317
317
|
return this.$g(e2, t2[0], t2[1]);
|
|
318
318
|
};
|
|
319
|
-
}),
|
|
320
|
-
return t2.$i || (t2(e2,
|
|
321
|
-
},
|
|
322
|
-
return
|
|
323
|
-
},
|
|
319
|
+
}), O.extend = function(t2, e2) {
|
|
320
|
+
return t2.$i || (t2(e2, _2, O), t2.$i = true), O;
|
|
321
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
322
|
+
return O(1e3 * t2);
|
|
323
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
});
|