@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,88 @@
1
+ import { Z as t } from "./errors.es.js";
2
+ class n {
3
+ /**
4
+ * The type of zone
5
+ * @abstract
6
+ * @type {string}
7
+ */
8
+ get type() {
9
+ throw new t();
10
+ }
11
+ /**
12
+ * The name of this zone.
13
+ * @abstract
14
+ * @type {string}
15
+ */
16
+ get name() {
17
+ throw new t();
18
+ }
19
+ /**
20
+ * The IANA name of this zone.
21
+ * Defaults to `name` if not overwritten by a subclass.
22
+ * @abstract
23
+ * @type {string}
24
+ */
25
+ get ianaName() {
26
+ return this.name;
27
+ }
28
+ /**
29
+ * Returns whether the offset is known to be fixed for the whole year.
30
+ * @abstract
31
+ * @type {boolean}
32
+ */
33
+ get isUniversal() {
34
+ throw new t();
35
+ }
36
+ /**
37
+ * Returns the offset's common name (such as EST) at the specified timestamp
38
+ * @abstract
39
+ * @param {number} ts - Epoch milliseconds for which to get the name
40
+ * @param {Object} opts - Options to affect the format
41
+ * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
42
+ * @param {string} opts.locale - What locale to return the offset name in.
43
+ * @return {string}
44
+ */
45
+ offsetName(e, o) {
46
+ throw new t();
47
+ }
48
+ /**
49
+ * Returns the offset's value as a string
50
+ * @abstract
51
+ * @param {number} ts - Epoch milliseconds for which to get the offset
52
+ * @param {string} format - What style of offset to return.
53
+ * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
54
+ * @return {string}
55
+ */
56
+ formatOffset(e, o) {
57
+ throw new t();
58
+ }
59
+ /**
60
+ * Return the offset in minutes for this zone at the specified timestamp.
61
+ * @abstract
62
+ * @param {number} ts - Epoch milliseconds for which to compute the offset
63
+ * @return {number}
64
+ */
65
+ offset(e) {
66
+ throw new t();
67
+ }
68
+ /**
69
+ * Return whether this Zone is equal to another zone
70
+ * @abstract
71
+ * @param {Zone} otherZone - the zone to compare
72
+ * @return {boolean}
73
+ */
74
+ equals(e) {
75
+ throw new t();
76
+ }
77
+ /**
78
+ * Return whether this Zone is valid.
79
+ * @abstract
80
+ * @type {boolean}
81
+ */
82
+ get isValid() {
83
+ throw new t();
84
+ }
85
+ }
86
+ export {
87
+ n as Z
88
+ };
@@ -0,0 +1,181 @@
1
+ import { B as y, C as T, o as C, i as Z } from "../impl/util.es.js";
2
+ import { Z as v } from "../zone.es.js";
3
+ const h = /* @__PURE__ */ new Map();
4
+ function w(n) {
5
+ let t = h.get(n);
6
+ return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
7
+ hour12: !1,
8
+ timeZone: n,
9
+ year: "numeric",
10
+ month: "2-digit",
11
+ day: "2-digit",
12
+ hour: "2-digit",
13
+ minute: "2-digit",
14
+ second: "2-digit",
15
+ era: "short"
16
+ }), h.set(n, t)), t;
17
+ }
18
+ const D = {
19
+ year: 0,
20
+ month: 1,
21
+ day: 2,
22
+ era: 3,
23
+ hour: 4,
24
+ minute: 5,
25
+ second: 6
26
+ };
27
+ function N(n, t) {
28
+ const e = n.format(t).replace(/\u200E/g, ""), a = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e), [, r, i, o, s, f, d, c] = a;
29
+ return [o, r, i, s, f, d, c];
30
+ }
31
+ function O(n, t) {
32
+ const e = n.formatToParts(t), a = [];
33
+ for (let r = 0; r < e.length; r++) {
34
+ const { type: i, value: o } = e[r], s = D[i];
35
+ i === "era" ? a[s] = o : Z(s) || (a[s] = parseInt(o, 10));
36
+ }
37
+ return a;
38
+ }
39
+ const m = /* @__PURE__ */ new Map();
40
+ class p extends v {
41
+ /**
42
+ * @param {string} name - Zone name
43
+ * @return {IANAZone}
44
+ */
45
+ static create(t) {
46
+ let e = m.get(t);
47
+ return e === void 0 && m.set(t, e = new p(t)), e;
48
+ }
49
+ /**
50
+ * Reset local caches. Should only be necessary in testing scenarios.
51
+ * @return {void}
52
+ */
53
+ static resetCache() {
54
+ m.clear(), h.clear();
55
+ }
56
+ /**
57
+ * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
58
+ * @param {string} s - The string to check validity on
59
+ * @example IANAZone.isValidSpecifier("America/New_York") //=> true
60
+ * @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
61
+ * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.
62
+ * @return {boolean}
63
+ */
64
+ static isValidSpecifier(t) {
65
+ return this.isValidZone(t);
66
+ }
67
+ /**
68
+ * Returns whether the provided string identifies a real zone
69
+ * @param {string} zone - The string to check
70
+ * @example IANAZone.isValidZone("America/New_York") //=> true
71
+ * @example IANAZone.isValidZone("Fantasia/Castle") //=> false
72
+ * @example IANAZone.isValidZone("Sport~~blorp") //=> false
73
+ * @return {boolean}
74
+ */
75
+ static isValidZone(t) {
76
+ if (!t)
77
+ return !1;
78
+ try {
79
+ return new Intl.DateTimeFormat("en-US", { timeZone: t }).format(), !0;
80
+ } catch {
81
+ return !1;
82
+ }
83
+ }
84
+ constructor(t) {
85
+ super(), this.zoneName = t, this.valid = p.isValidZone(t);
86
+ }
87
+ /**
88
+ * The type of zone. `iana` for all instances of `IANAZone`.
89
+ * @override
90
+ * @type {string}
91
+ */
92
+ get type() {
93
+ return "iana";
94
+ }
95
+ /**
96
+ * The name of this zone (i.e. the IANA zone name).
97
+ * @override
98
+ * @type {string}
99
+ */
100
+ get name() {
101
+ return this.zoneName;
102
+ }
103
+ /**
104
+ * Returns whether the offset is known to be fixed for the whole year:
105
+ * Always returns false for all IANA zones.
106
+ * @override
107
+ * @type {boolean}
108
+ */
109
+ get isUniversal() {
110
+ return !1;
111
+ }
112
+ /**
113
+ * Returns the offset's common name (such as EST) at the specified timestamp
114
+ * @override
115
+ * @param {number} ts - Epoch milliseconds for which to get the name
116
+ * @param {Object} opts - Options to affect the format
117
+ * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
118
+ * @param {string} opts.locale - What locale to return the offset name in.
119
+ * @return {string}
120
+ */
121
+ offsetName(t, { format: e, locale: a }) {
122
+ return y(t, e, a, this.name);
123
+ }
124
+ /**
125
+ * Returns the offset's value as a string
126
+ * @override
127
+ * @param {number} ts - Epoch milliseconds for which to get the offset
128
+ * @param {string} format - What style of offset to return.
129
+ * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
130
+ * @return {string}
131
+ */
132
+ formatOffset(t, e) {
133
+ return T(this.offset(t), e);
134
+ }
135
+ /**
136
+ * Return the offset in minutes for this zone at the specified timestamp.
137
+ * @override
138
+ * @param {number} ts - Epoch milliseconds for which to compute the offset
139
+ * @return {number}
140
+ */
141
+ offset(t) {
142
+ if (!this.valid) return NaN;
143
+ const e = new Date(t);
144
+ if (isNaN(e)) return NaN;
145
+ const a = w(this.name);
146
+ let [r, i, o, s, f, d, c] = a.formatToParts ? O(a, e) : N(a, e);
147
+ s === "BC" && (r = -Math.abs(r) + 1);
148
+ const g = C({
149
+ year: r,
150
+ month: i,
151
+ day: o,
152
+ hour: f === 24 ? 0 : f,
153
+ minute: d,
154
+ second: c,
155
+ millisecond: 0
156
+ });
157
+ let u = +e;
158
+ const l = u % 1e3;
159
+ return u -= l >= 0 ? l : 1e3 + l, (g - u) / (60 * 1e3);
160
+ }
161
+ /**
162
+ * Return whether this Zone is equal to another zone
163
+ * @override
164
+ * @param {Zone} otherZone - the zone to compare
165
+ * @return {boolean}
166
+ */
167
+ equals(t) {
168
+ return t.type === "iana" && t.name === this.name;
169
+ }
170
+ /**
171
+ * Return whether this Zone is valid.
172
+ * @override
173
+ * @type {boolean}
174
+ */
175
+ get isValid() {
176
+ return this.valid;
177
+ }
178
+ }
179
+ export {
180
+ p as I
181
+ };
@@ -0,0 +1,125 @@
1
+ import { s, C as i } from "../impl/util.es.js";
2
+ import { Z as a } from "../zone.es.js";
3
+ let n = null;
4
+ class r extends a {
5
+ /**
6
+ * Get a singleton instance of UTC
7
+ * @return {FixedOffsetZone}
8
+ */
9
+ static get utcInstance() {
10
+ return n === null && (n = new r(0)), n;
11
+ }
12
+ /**
13
+ * Get an instance with a specified offset
14
+ * @param {number} offset - The offset in minutes
15
+ * @return {FixedOffsetZone}
16
+ */
17
+ static instance(t) {
18
+ return t === 0 ? r.utcInstance : new r(t);
19
+ }
20
+ /**
21
+ * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
22
+ * @param {string} s - The offset string to parse
23
+ * @example FixedOffsetZone.parseSpecifier("UTC+6")
24
+ * @example FixedOffsetZone.parseSpecifier("UTC+06")
25
+ * @example FixedOffsetZone.parseSpecifier("UTC-6:00")
26
+ * @return {FixedOffsetZone}
27
+ */
28
+ static parseSpecifier(t) {
29
+ if (t) {
30
+ const e = t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
31
+ if (e)
32
+ return new r(s(e[1], e[2]));
33
+ }
34
+ return null;
35
+ }
36
+ constructor(t) {
37
+ super(), this.fixed = t;
38
+ }
39
+ /**
40
+ * The type of zone. `fixed` for all instances of `FixedOffsetZone`.
41
+ * @override
42
+ * @type {string}
43
+ */
44
+ get type() {
45
+ return "fixed";
46
+ }
47
+ /**
48
+ * The name of this zone.
49
+ * All fixed zones' names always start with "UTC" (plus optional offset)
50
+ * @override
51
+ * @type {string}
52
+ */
53
+ get name() {
54
+ return this.fixed === 0 ? "UTC" : `UTC${i(this.fixed, "narrow")}`;
55
+ }
56
+ /**
57
+ * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`
58
+ *
59
+ * @override
60
+ * @type {string}
61
+ */
62
+ get ianaName() {
63
+ return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${i(-this.fixed, "narrow")}`;
64
+ }
65
+ /**
66
+ * Returns the offset's common name at the specified timestamp.
67
+ *
68
+ * For fixed offset zones this equals to the zone name.
69
+ * @override
70
+ */
71
+ offsetName() {
72
+ return this.name;
73
+ }
74
+ /**
75
+ * Returns the offset's value as a string
76
+ * @override
77
+ * @param {number} ts - Epoch milliseconds for which to get the offset
78
+ * @param {string} format - What style of offset to return.
79
+ * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
80
+ * @return {string}
81
+ */
82
+ formatOffset(t, e) {
83
+ return i(this.fixed, e);
84
+ }
85
+ /**
86
+ * Returns whether the offset is known to be fixed for the whole year:
87
+ * Always returns true for all fixed offset zones.
88
+ * @override
89
+ * @type {boolean}
90
+ */
91
+ get isUniversal() {
92
+ return !0;
93
+ }
94
+ /**
95
+ * Return the offset in minutes for this zone at the specified timestamp.
96
+ *
97
+ * For fixed offset zones, this is constant and does not depend on a timestamp.
98
+ * @override
99
+ * @return {number}
100
+ */
101
+ offset() {
102
+ return this.fixed;
103
+ }
104
+ /**
105
+ * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)
106
+ * @override
107
+ * @param {Zone} otherZone - the zone to compare
108
+ * @return {boolean}
109
+ */
110
+ equals(t) {
111
+ return t.type === "fixed" && t.fixed === this.fixed;
112
+ }
113
+ /**
114
+ * Return whether this Zone is valid:
115
+ * All fixed offset zones are valid.
116
+ * @override
117
+ * @type {boolean}
118
+ */
119
+ get isValid() {
120
+ return !0;
121
+ }
122
+ }
123
+ export {
124
+ r as F
125
+ };
@@ -0,0 +1,41 @@
1
+ import { Z as r } from "../zone.es.js";
2
+ class s extends r {
3
+ constructor(e) {
4
+ super(), this.zoneName = e;
5
+ }
6
+ /** @override **/
7
+ get type() {
8
+ return "invalid";
9
+ }
10
+ /** @override **/
11
+ get name() {
12
+ return this.zoneName;
13
+ }
14
+ /** @override **/
15
+ get isUniversal() {
16
+ return !1;
17
+ }
18
+ /** @override **/
19
+ offsetName() {
20
+ return null;
21
+ }
22
+ /** @override **/
23
+ formatOffset() {
24
+ return "";
25
+ }
26
+ /** @override **/
27
+ offset() {
28
+ return NaN;
29
+ }
30
+ /** @override **/
31
+ equals() {
32
+ return !1;
33
+ }
34
+ /** @override **/
35
+ get isValid() {
36
+ return !1;
37
+ }
38
+ }
39
+ export {
40
+ s as I
41
+ };
@@ -0,0 +1,47 @@
1
+ import { B as a, C as f } from "../impl/util.es.js";
2
+ import { Z as o } from "../zone.es.js";
3
+ let r = null;
4
+ class s extends o {
5
+ /**
6
+ * Get a singleton instance of the local zone
7
+ * @return {SystemZone}
8
+ */
9
+ static get instance() {
10
+ return r === null && (r = new s()), r;
11
+ }
12
+ /** @override **/
13
+ get type() {
14
+ return "system";
15
+ }
16
+ /** @override **/
17
+ get name() {
18
+ return new Intl.DateTimeFormat().resolvedOptions().timeZone;
19
+ }
20
+ /** @override **/
21
+ get isUniversal() {
22
+ return !1;
23
+ }
24
+ /** @override **/
25
+ offsetName(e, { format: t, locale: n }) {
26
+ return a(e, t, n);
27
+ }
28
+ /** @override **/
29
+ formatOffset(e, t) {
30
+ return f(this.offset(e), t);
31
+ }
32
+ /** @override **/
33
+ offset(e) {
34
+ return -new Date(e).getTimezoneOffset();
35
+ }
36
+ /** @override **/
37
+ equals(e) {
38
+ return e.type === "system";
39
+ }
40
+ /** @override **/
41
+ get isValid() {
42
+ return !0;
43
+ }
44
+ }
45
+ export {
46
+ s as S
47
+ };