@fewangsit/wangsvue-fats 1.0.1-alpha.50 → 1.0.1-alpha.52

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.
Files changed (36) hide show
  1. package/basecalendar/index.es.js +270 -261
  2. package/disposalreport/index.d.ts +62 -0
  3. package/disposalreport/index.es.js +17 -14
  4. package/disposalreportdialogselectasset/index.es.js +238 -0
  5. package/disposalreporttable/index.es.js +256 -137
  6. package/disposalreporttablefilter/index.es.js +17 -45
  7. package/icon/index.d.ts +1 -0
  8. package/package.json +1 -1
  9. package/stats.html +1 -1
  10. package/style.css +1 -1
  11. package/vendor/luxon/src/datetime.es.js +1845 -0
  12. package/vendor/luxon/src/duration.es.js +734 -0
  13. package/vendor/luxon/src/errors.es.js +40 -0
  14. package/vendor/luxon/src/impl/conversions.es.js +92 -0
  15. package/vendor/luxon/src/impl/diff.es.js +36 -0
  16. package/vendor/luxon/src/impl/digits.es.js +77 -0
  17. package/vendor/luxon/src/impl/english.es.js +132 -0
  18. package/vendor/luxon/src/impl/formats.es.js +150 -0
  19. package/vendor/luxon/src/impl/formatter.es.js +274 -0
  20. package/vendor/luxon/src/impl/invalid.es.js +11 -0
  21. package/vendor/luxon/src/impl/locale.es.js +293 -0
  22. package/vendor/luxon/src/impl/regexParser.es.js +202 -0
  23. package/vendor/luxon/src/impl/tokenParser.es.js +344 -0
  24. package/vendor/luxon/src/impl/util.es.js +217 -0
  25. package/vendor/luxon/src/impl/zoneUtil.es.js +19 -0
  26. package/vendor/luxon/src/info.es.js +180 -0
  27. package/vendor/luxon/src/interval.es.js +477 -0
  28. package/vendor/luxon/src/luxon.es.js +2 -0
  29. package/vendor/luxon/src/settings.es.js +150 -0
  30. package/vendor/luxon/src/zone.es.js +88 -0
  31. package/vendor/luxon/src/zones/IANAZone.es.js +181 -0
  32. package/vendor/luxon/src/zones/fixedOffsetZone.es.js +125 -0
  33. package/vendor/luxon/src/zones/invalidZone.es.js +41 -0
  34. package/vendor/luxon/src/zones/systemZone.es.js +47 -0
  35. package/wangsvue-fats.esm.browser.js +22804 -16970
  36. package/wangsvue-fats.system.js +73 -73
@@ -0,0 +1,202 @@
1
+ import { s as E, u as F, x as l, y as f, z as w, i as z } from "./util.es.js";
2
+ import { h as Y, i as v, j as P } from "./english.es.js";
3
+ import { F as y } from "../zones/fixedOffsetZone.es.js";
4
+ import { I as q } from "../zones/IANAZone.es.js";
5
+ const W = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6
+ function x(...e) {
7
+ const t = e.reduce((n, s) => n + s.source, "");
8
+ return RegExp(`^${t}$`);
9
+ }
10
+ function m(...e) {
11
+ return (t) => e.reduce(
12
+ ([n, s, r], i) => {
13
+ const [d, o, a] = i(t, r);
14
+ return [{ ...n, ...d }, o || s, a];
15
+ },
16
+ [{}, null, 1]
17
+ ).slice(0, 2);
18
+ }
19
+ function T(e, ...t) {
20
+ if (e == null)
21
+ return [null, null];
22
+ for (const [n, s] of t) {
23
+ const r = n.exec(e);
24
+ if (r)
25
+ return s(r);
26
+ }
27
+ return [null, null];
28
+ }
29
+ function b(...e) {
30
+ return (t, n) => {
31
+ const s = {};
32
+ let r;
33
+ for (r = 0; r < e.length; r++)
34
+ s[e[r]] = f(t[n + r]);
35
+ return [s, null, n + r];
36
+ };
37
+ }
38
+ const J = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, G = `(?:${J.source}?(?:\\[(${W.source})\\])?)?`, M = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, k = RegExp(`${M.source}${G}`), h = RegExp(`(?:[Tt]${k.source})?`), H = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, _ = /(\d{4})-?W(\d\d)(?:-?(\d))?/, L = /(\d{4})-?(\d{3})/, U = b("weekYear", "weekNumber", "weekDay"), j = b("year", "ordinal"), B = /(\d{4})-(\d\d)-(\d\d)/, C = RegExp(
39
+ `${M.source} ?(?:${J.source}|(${W.source}))?`
40
+ ), Q = RegExp(`(?: ${C.source})?`);
41
+ function S(e, t, n) {
42
+ const s = e[t];
43
+ return z(s) ? n : f(s);
44
+ }
45
+ function K(e, t) {
46
+ return [{
47
+ year: S(e, t),
48
+ month: S(e, t + 1, 1),
49
+ day: S(e, t + 2, 1)
50
+ }, null, t + 3];
51
+ }
52
+ function g(e, t) {
53
+ return [{
54
+ hours: S(e, t, 0),
55
+ minutes: S(e, t + 1, 0),
56
+ seconds: S(e, t + 2, 0),
57
+ milliseconds: F(e[t + 3])
58
+ }, null, t + 4];
59
+ }
60
+ function O(e, t) {
61
+ const n = !e[t] && !e[t + 1], s = E(e[t + 1], e[t + 2]), r = n ? null : y.instance(s);
62
+ return [{}, r, t + 3];
63
+ }
64
+ function p(e, t) {
65
+ const n = e[t] ? q.create(e[t]) : null;
66
+ return [{}, n, t + 1];
67
+ }
68
+ const V = RegExp(`^T?${M.source}$`), X = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
69
+ function ee(e) {
70
+ const [t, n, s, r, i, d, o, a, R] = e, I = t[0] === "-", A = a && a[0] === "-", c = (u, Z = !1) => u !== void 0 && (Z || u && I) ? -u : u;
71
+ return [
72
+ {
73
+ years: c(l(n)),
74
+ months: c(l(s)),
75
+ weeks: c(l(r)),
76
+ days: c(l(i)),
77
+ hours: c(l(d)),
78
+ minutes: c(l(o)),
79
+ seconds: c(l(a), a === "-0"),
80
+ milliseconds: c(F(R), A)
81
+ }
82
+ ];
83
+ }
84
+ const te = {
85
+ GMT: 0,
86
+ EDT: -4 * 60,
87
+ EST: -5 * 60,
88
+ CDT: -5 * 60,
89
+ CST: -6 * 60,
90
+ MDT: -6 * 60,
91
+ MST: -7 * 60,
92
+ PDT: -7 * 60,
93
+ PST: -8 * 60
94
+ };
95
+ function D(e, t, n, s, r, i, d) {
96
+ const o = {
97
+ year: t.length === 2 ? w(f(t)) : f(t),
98
+ month: P.indexOf(n) + 1,
99
+ day: f(s),
100
+ hour: f(r),
101
+ minute: f(i)
102
+ };
103
+ return d && (o.second = f(d)), e && (o.weekday = e.length > 3 ? Y.indexOf(e) + 1 : v.indexOf(e) + 1), o;
104
+ }
105
+ const ne = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
106
+ function se(e) {
107
+ const [
108
+ ,
109
+ t,
110
+ n,
111
+ s,
112
+ r,
113
+ i,
114
+ d,
115
+ o,
116
+ a,
117
+ R,
118
+ I,
119
+ A
120
+ ] = e, c = D(t, r, s, n, i, d, o);
121
+ let u;
122
+ return a ? u = te[a] : R ? u = 0 : u = E(I, A), [c, new y(u)];
123
+ }
124
+ function re(e) {
125
+ return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
126
+ }
127
+ const oe = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, de = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, ie = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
128
+ function $(e) {
129
+ const [, t, n, s, r, i, d, o] = e;
130
+ return [D(t, r, s, n, i, d, o), y.utcInstance];
131
+ }
132
+ function ae(e) {
133
+ const [, t, n, s, r, i, d, o] = e;
134
+ return [D(t, o, n, s, r, i, d), y.utcInstance];
135
+ }
136
+ const ce = x(H, h), ue = x(_, h), fe = x(L, h), le = x(k), N = m(
137
+ K,
138
+ g,
139
+ O,
140
+ p
141
+ ), Se = m(
142
+ U,
143
+ g,
144
+ O,
145
+ p
146
+ ), xe = m(
147
+ j,
148
+ g,
149
+ O,
150
+ p
151
+ ), me = m(
152
+ g,
153
+ O,
154
+ p
155
+ );
156
+ function Me(e) {
157
+ return T(
158
+ e,
159
+ [ce, N],
160
+ [ue, Se],
161
+ [fe, xe],
162
+ [le, me]
163
+ );
164
+ }
165
+ function he(e) {
166
+ return T(re(e), [ne, se]);
167
+ }
168
+ function De(e) {
169
+ return T(
170
+ e,
171
+ [oe, $],
172
+ [de, $],
173
+ [ie, ae]
174
+ );
175
+ }
176
+ function $e(e) {
177
+ return T(e, [X, ee]);
178
+ }
179
+ const Te = m(g);
180
+ function Ee(e) {
181
+ return T(e, [V, Te]);
182
+ }
183
+ const ge = x(B, Q), Oe = x(C), pe = m(
184
+ g,
185
+ O,
186
+ p
187
+ );
188
+ function Fe(e) {
189
+ return T(
190
+ e,
191
+ [ge, N],
192
+ [Oe, pe]
193
+ );
194
+ }
195
+ export {
196
+ he as a,
197
+ De as b,
198
+ Fe as c,
199
+ $e as d,
200
+ Ee as e,
201
+ Me as p
202
+ };
@@ -0,0 +1,344 @@
1
+ import { h as m, i as y, u as q, s as $, z as M } from "./util.es.js";
2
+ import { F as g } from "./formatter.es.js";
3
+ import { F as C } from "../zones/fixedOffsetZone.es.js";
4
+ import { I as P } from "../zones/IANAZone.es.js";
5
+ import { D as O } from "../datetime.es.js";
6
+ import { d as c, p as z } from "./digits.es.js";
7
+ import { C as H } from "../errors.es.js";
8
+ const I = "missing Intl.DateTimeFormat.formatToParts support";
9
+ function s(e, r = (t) => t) {
10
+ return { regex: e, deser: ([t]) => r(z(t)) };
11
+ }
12
+ const N = " ", Z = `[ ${N}]`, v = new RegExp(Z, "g");
13
+ function D(e) {
14
+ return e.replace(/\./g, "\\.?").replace(v, Z);
15
+ }
16
+ function E(e) {
17
+ return e.replace(/\./g, "").replace(v, " ").toLowerCase();
18
+ }
19
+ function l(e, r) {
20
+ return e === null ? null : {
21
+ regex: RegExp(e.map(D).join("|")),
22
+ deser: ([t]) => e.findIndex((n) => E(t) === E(n)) + r
23
+ };
24
+ }
25
+ function w(e, r) {
26
+ return { regex: e, deser: ([, t, n]) => $(t, n), groups: r };
27
+ }
28
+ function h(e) {
29
+ return { regex: e, deser: ([r]) => r };
30
+ }
31
+ function U(e) {
32
+ return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
33
+ }
34
+ function b(e, r) {
35
+ const t = c(r), n = c(r, "{2}"), o = c(r, "{3}"), u = c(r, "{4}"), a = c(r, "{6}"), i = c(r, "{1,2}"), f = c(r, "{1,3}"), S = c(r, "{1,6}"), F = c(r, "{1,9}"), k = c(r, "{2,4}"), R = c(r, "{4,6}"), T = (d) => ({ regex: RegExp(U(d.val)), deser: ([L]) => L, literal: !0 }), x = ((d) => {
36
+ if (e.literal)
37
+ return T(d);
38
+ switch (d.val) {
39
+ // era
40
+ case "G":
41
+ return l(r.eras("short"), 0);
42
+ case "GG":
43
+ return l(r.eras("long"), 0);
44
+ // years
45
+ case "y":
46
+ return s(S);
47
+ case "yy":
48
+ return s(k, M);
49
+ case "yyyy":
50
+ return s(u);
51
+ case "yyyyy":
52
+ return s(R);
53
+ case "yyyyyy":
54
+ return s(a);
55
+ // months
56
+ case "M":
57
+ return s(i);
58
+ case "MM":
59
+ return s(n);
60
+ case "MMM":
61
+ return l(r.months("short", !0), 1);
62
+ case "MMMM":
63
+ return l(r.months("long", !0), 1);
64
+ case "L":
65
+ return s(i);
66
+ case "LL":
67
+ return s(n);
68
+ case "LLL":
69
+ return l(r.months("short", !1), 1);
70
+ case "LLLL":
71
+ return l(r.months("long", !1), 1);
72
+ // dates
73
+ case "d":
74
+ return s(i);
75
+ case "dd":
76
+ return s(n);
77
+ // ordinals
78
+ case "o":
79
+ return s(f);
80
+ case "ooo":
81
+ return s(o);
82
+ // time
83
+ case "HH":
84
+ return s(n);
85
+ case "H":
86
+ return s(i);
87
+ case "hh":
88
+ return s(n);
89
+ case "h":
90
+ return s(i);
91
+ case "mm":
92
+ return s(n);
93
+ case "m":
94
+ return s(i);
95
+ case "q":
96
+ return s(i);
97
+ case "qq":
98
+ return s(n);
99
+ case "s":
100
+ return s(i);
101
+ case "ss":
102
+ return s(n);
103
+ case "S":
104
+ return s(f);
105
+ case "SSS":
106
+ return s(o);
107
+ case "u":
108
+ return h(F);
109
+ case "uu":
110
+ return h(i);
111
+ case "uuu":
112
+ return s(t);
113
+ // meridiem
114
+ case "a":
115
+ return l(r.meridiems(), 0);
116
+ // weekYear (k)
117
+ case "kkkk":
118
+ return s(u);
119
+ case "kk":
120
+ return s(k, M);
121
+ // weekNumber (W)
122
+ case "W":
123
+ return s(i);
124
+ case "WW":
125
+ return s(n);
126
+ // weekdays
127
+ case "E":
128
+ case "c":
129
+ return s(t);
130
+ case "EEE":
131
+ return l(r.weekdays("short", !1), 1);
132
+ case "EEEE":
133
+ return l(r.weekdays("long", !1), 1);
134
+ case "ccc":
135
+ return l(r.weekdays("short", !0), 1);
136
+ case "cccc":
137
+ return l(r.weekdays("long", !0), 1);
138
+ // offset/zone
139
+ case "Z":
140
+ case "ZZ":
141
+ return w(new RegExp(`([+-]${i.source})(?::(${n.source}))?`), 2);
142
+ case "ZZZ":
143
+ return w(new RegExp(`([+-]${i.source})(${n.source})?`), 2);
144
+ // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing
145
+ // because we don't have any way to figure out what they are
146
+ case "z":
147
+ return h(/[a-z_+-/]{1,256}?/i);
148
+ // this special-case "token" represents a place where a macro-token expanded into a white-space literal
149
+ // in this case we accept any non-newline white-space
150
+ case " ":
151
+ return h(/[^\S\n\r]/);
152
+ default:
153
+ return T(d);
154
+ }
155
+ })(e) || {
156
+ invalidReason: I
157
+ };
158
+ return x.token = e, x;
159
+ }
160
+ const G = {
161
+ year: {
162
+ "2-digit": "yy",
163
+ numeric: "yyyyy"
164
+ },
165
+ month: {
166
+ numeric: "M",
167
+ "2-digit": "MM",
168
+ short: "MMM",
169
+ long: "MMMM"
170
+ },
171
+ day: {
172
+ numeric: "d",
173
+ "2-digit": "dd"
174
+ },
175
+ weekday: {
176
+ short: "EEE",
177
+ long: "EEEE"
178
+ },
179
+ dayperiod: "a",
180
+ dayPeriod: "a",
181
+ hour12: {
182
+ numeric: "h",
183
+ "2-digit": "hh"
184
+ },
185
+ hour24: {
186
+ numeric: "H",
187
+ "2-digit": "HH"
188
+ },
189
+ minute: {
190
+ numeric: "m",
191
+ "2-digit": "mm"
192
+ },
193
+ second: {
194
+ numeric: "s",
195
+ "2-digit": "ss"
196
+ },
197
+ timeZoneName: {
198
+ long: "ZZZZZ",
199
+ short: "ZZZ"
200
+ }
201
+ };
202
+ function W(e, r, t) {
203
+ const { type: n, value: o } = e;
204
+ if (n === "literal") {
205
+ const f = /^\s+$/.test(o);
206
+ return {
207
+ literal: !f,
208
+ val: f ? " " : o
209
+ };
210
+ }
211
+ const u = r[n];
212
+ let a = n;
213
+ n === "hour" && (r.hour12 != null ? a = r.hour12 ? "hour12" : "hour24" : r.hourCycle != null ? r.hourCycle === "h11" || r.hourCycle === "h12" ? a = "hour12" : a = "hour24" : a = t.hour12 ? "hour12" : "hour24");
214
+ let i = G[a];
215
+ if (typeof i == "object" && (i = i[u]), i)
216
+ return {
217
+ literal: !1,
218
+ val: i
219
+ };
220
+ }
221
+ function j(e) {
222
+ return [`^${e.map((t) => t.regex).reduce((t, n) => `${t}(${n.source})`, "")}$`, e];
223
+ }
224
+ function A(e, r, t) {
225
+ const n = e.match(r);
226
+ if (n) {
227
+ const o = {};
228
+ let u = 1;
229
+ for (const a in t)
230
+ if (m(t, a)) {
231
+ const i = t[a], f = i.groups ? i.groups + 1 : 1;
232
+ !i.literal && i.token && (o[i.token.val[0]] = i.deser(n.slice(u, u + f))), u += f;
233
+ }
234
+ return [n, o];
235
+ } else
236
+ return [n, {}];
237
+ }
238
+ function B(e) {
239
+ const r = (u) => {
240
+ switch (u) {
241
+ case "S":
242
+ return "millisecond";
243
+ case "s":
244
+ return "second";
245
+ case "m":
246
+ return "minute";
247
+ case "h":
248
+ case "H":
249
+ return "hour";
250
+ case "d":
251
+ return "day";
252
+ case "o":
253
+ return "ordinal";
254
+ case "L":
255
+ case "M":
256
+ return "month";
257
+ case "y":
258
+ return "year";
259
+ case "E":
260
+ case "c":
261
+ return "weekday";
262
+ case "W":
263
+ return "weekNumber";
264
+ case "k":
265
+ return "weekYear";
266
+ case "q":
267
+ return "quarter";
268
+ default:
269
+ return null;
270
+ }
271
+ };
272
+ let t = null, n;
273
+ return y(e.z) || (t = P.create(e.z)), y(e.Z) || (t || (t = new C(e.Z)), n = e.Z), y(e.q) || (e.M = (e.q - 1) * 3 + 1), y(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), y(e.u) || (e.S = q(e.u)), [Object.keys(e).reduce((u, a) => {
274
+ const i = r(a);
275
+ return i && (u[i] = e[a]), u;
276
+ }, {}), t, n];
277
+ }
278
+ let p = null;
279
+ function V() {
280
+ return p || (p = O.fromMillis(1555555555555)), p;
281
+ }
282
+ function Y(e, r) {
283
+ if (e.literal)
284
+ return e;
285
+ const t = g.macroTokenToFormatOpts(e.val), n = Q(t, r);
286
+ return n == null || n.includes(void 0) ? e : n;
287
+ }
288
+ function _(e, r) {
289
+ return Array.prototype.concat(...e.map((t) => Y(t, r)));
290
+ }
291
+ class J {
292
+ constructor(r, t) {
293
+ if (this.locale = r, this.format = t, this.tokens = _(g.parseFormat(t), r), this.units = this.tokens.map((n) => b(n, r)), this.disqualifyingUnit = this.units.find((n) => n.invalidReason), !this.disqualifyingUnit) {
294
+ const [n, o] = j(this.units);
295
+ this.regex = RegExp(n, "i"), this.handlers = o;
296
+ }
297
+ }
298
+ explainFromTokens(r) {
299
+ if (this.isValid) {
300
+ const [t, n] = A(r, this.regex, this.handlers), [o, u, a] = n ? B(n) : [null, null, void 0];
301
+ if (m(n, "a") && m(n, "H"))
302
+ throw new H(
303
+ "Can't include meridiem when specifying 24-hour format"
304
+ );
305
+ return {
306
+ input: r,
307
+ tokens: this.tokens,
308
+ regex: this.regex,
309
+ rawMatches: t,
310
+ matches: n,
311
+ result: o,
312
+ zone: u,
313
+ specificOffset: a
314
+ };
315
+ } else
316
+ return { input: r, tokens: this.tokens, invalidReason: this.invalidReason };
317
+ }
318
+ get isValid() {
319
+ return !this.disqualifyingUnit;
320
+ }
321
+ get invalidReason() {
322
+ return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;
323
+ }
324
+ }
325
+ function K(e, r, t) {
326
+ return new J(e, t).explainFromTokens(r);
327
+ }
328
+ function ae(e, r, t) {
329
+ const { result: n, zone: o, specificOffset: u, invalidReason: a } = K(e, r, t);
330
+ return [n, o, u, a];
331
+ }
332
+ function Q(e, r) {
333
+ if (!e)
334
+ return null;
335
+ const n = g.create(r, e).dtFormatter(V()), o = n.formatToParts(), u = n.resolvedOptions();
336
+ return o.map((a) => W(a, e, u));
337
+ }
338
+ export {
339
+ J as T,
340
+ K as a,
341
+ _ as e,
342
+ Q as f,
343
+ ae as p
344
+ };