overview-components 1.0.92 → 1.0.95
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/_virtual/FileSaver.min.js +4 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +28 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/lodash.js +4 -0
- package/dist/_virtual/pdf.js +4 -0
- package/dist/_virtual/react.production.js +4 -0
- package/dist/assets/generated/locales/de.js +73 -0
- package/dist/assets/generated/locales/en.js +73 -0
- package/dist/assets/generated/locales/fr.js +73 -0
- package/dist/assets/generated/locales/hr.js +73 -0
- package/dist/assets/generated/locales/it.js +73 -0
- package/dist/assets/generated/locales/pl.js +73 -0
- package/dist/assets/generated/locales/ro.js +73 -0
- package/dist/assets/generated/locales/sk.js +73 -0
- package/dist/assets/generated/locales/sr.js +73 -0
- package/dist/components/lit-attachments-tab.js +519 -0
- package/dist/components/lit-badge.js +100 -0
- package/dist/components/lit-case-variables-tab.js +727 -0
- package/dist/components/lit-chart.js +395 -0
- package/dist/components/lit-data-grid-tanstack.js +1733 -0
- package/dist/components/lit-filter-modal.js +312 -0
- package/dist/components/lit-multiselect-item.js +530 -0
- package/dist/components/lit-section-tab.js +133 -0
- package/dist/components/lit-tabs-overview.js +304 -0
- package/dist/components/react-wrappers/attachments-tab.js +14 -0
- package/dist/components/react-wrappers/badge.js +14 -0
- package/dist/components/react-wrappers/button.js +14 -0
- package/dist/components/react-wrappers/case-variables-tab.js +14 -0
- package/dist/components/react-wrappers/chart.js +14 -0
- package/dist/components/react-wrappers/data-grid-tanstack.js +14 -0
- package/dist/components/react-wrappers/filter-modal.js +14 -0
- package/dist/components/react-wrappers/progress-bar.js +14 -0
- package/dist/components/react-wrappers/section-tab.js +14 -0
- package/dist/components/react-wrappers/tabs-overview.js +14 -0
- package/dist/index.js +42 -0
- package/dist/libs/xlsx.mini.min.js +10 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
- package/dist/node_modules/@lit/localize/init/install.js +11 -0
- package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
- package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
- package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
- package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
- package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
- package/dist/node_modules/@lit/react/create-component.js +35 -0
- package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/chart.js/dist/chart.js +7122 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
- package/dist/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/lit-html/async-directive.js +69 -0
- package/dist/node_modules/lit-html/directive-helpers.js +45 -0
- package/dist/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/lit-html/directives/ref.js +42 -0
- package/dist/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/lit-html/directives/style-map.js +36 -0
- package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/lit-html/lit-html.js +243 -0
- package/dist/node_modules/lodash/lodash.js +3678 -0
- package/dist/node_modules/luxon/src/datetime.js +1793 -0
- package/dist/node_modules/luxon/src/duration.js +723 -0
- package/dist/node_modules/luxon/src/errors.js +40 -0
- package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
- package/dist/node_modules/luxon/src/impl/diff.js +36 -0
- package/dist/node_modules/luxon/src/impl/digits.js +74 -0
- package/dist/node_modules/luxon/src/impl/english.js +138 -0
- package/dist/node_modules/luxon/src/impl/formats.js +150 -0
- package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
- package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
- package/dist/node_modules/luxon/src/impl/locale.js +282 -0
- package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
- package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
- package/dist/node_modules/luxon/src/impl/util.js +206 -0
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
- package/dist/node_modules/luxon/src/info.js +180 -0
- package/dist/node_modules/luxon/src/interval.js +466 -0
- package/dist/node_modules/luxon/src/settings.js +150 -0
- package/dist/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
- package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
- package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
- package/dist/node_modules/react/cjs/react.production.js +417 -0
- package/dist/node_modules/react/index.js +10 -0
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
- package/dist/shared/lit-button.js +142 -0
- package/dist/shared/lit-progress-bar.js +83 -0
- package/dist/shared/simple-tooltip.js +174 -0
- package/dist/shared/styles/button-shared-styles.js +205 -0
- package/dist/utils/currency.js +13 -0
- package/dist/utils/custom-filters.js +50 -0
- package/dist/utils/date.js +15 -0
- package/dist/utils/getOperatorByType.js +52 -0
- package/dist/utils/localization.js +30 -0
- package/dist/vite.svg +1 -0
- package/package.json +76 -74
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { parseZoneInfo as g, formatOffset as T, objToLocalTS as C, isUndefined as D } from "../impl/util.js";
|
|
2
|
+
import N from "../zone.js";
|
|
3
|
+
let u = {};
|
|
4
|
+
function O(n) {
|
|
5
|
+
return u[n] || (u[n] = new Intl.DateTimeFormat("en-US", {
|
|
6
|
+
hour12: !1,
|
|
7
|
+
timeZone: n,
|
|
8
|
+
year: "numeric",
|
|
9
|
+
month: "2-digit",
|
|
10
|
+
day: "2-digit",
|
|
11
|
+
hour: "2-digit",
|
|
12
|
+
minute: "2-digit",
|
|
13
|
+
second: "2-digit",
|
|
14
|
+
era: "short"
|
|
15
|
+
})), u[n];
|
|
16
|
+
}
|
|
17
|
+
const S = {
|
|
18
|
+
year: 0,
|
|
19
|
+
month: 1,
|
|
20
|
+
day: 2,
|
|
21
|
+
era: 3,
|
|
22
|
+
hour: 4,
|
|
23
|
+
minute: 5,
|
|
24
|
+
second: 6
|
|
25
|
+
};
|
|
26
|
+
function Z(n, t) {
|
|
27
|
+
const e = n.format(t).replace(/\u200E/g, ""), r = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e), [, a, i, o, s, f, c, l] = r;
|
|
28
|
+
return [o, a, i, s, f, c, l];
|
|
29
|
+
}
|
|
30
|
+
function v(n, t) {
|
|
31
|
+
const e = n.formatToParts(t), r = [];
|
|
32
|
+
for (let a = 0; a < e.length; a++) {
|
|
33
|
+
const { type: i, value: o } = e[a], s = S[i];
|
|
34
|
+
i === "era" ? r[s] = o : D(s) || (r[s] = parseInt(o, 10));
|
|
35
|
+
}
|
|
36
|
+
return r;
|
|
37
|
+
}
|
|
38
|
+
let d = {};
|
|
39
|
+
class p extends N {
|
|
40
|
+
/**
|
|
41
|
+
* @param {string} name - Zone name
|
|
42
|
+
* @return {IANAZone}
|
|
43
|
+
*/
|
|
44
|
+
static create(t) {
|
|
45
|
+
return d[t] || (d[t] = new p(t)), d[t];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Reset local caches. Should only be necessary in testing scenarios.
|
|
49
|
+
* @return {void}
|
|
50
|
+
*/
|
|
51
|
+
static resetCache() {
|
|
52
|
+
d = {}, u = {};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 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.
|
|
56
|
+
* @param {string} s - The string to check validity on
|
|
57
|
+
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
58
|
+
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
59
|
+
* @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.
|
|
60
|
+
* @return {boolean}
|
|
61
|
+
*/
|
|
62
|
+
static isValidSpecifier(t) {
|
|
63
|
+
return this.isValidZone(t);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns whether the provided string identifies a real zone
|
|
67
|
+
* @param {string} zone - The string to check
|
|
68
|
+
* @example IANAZone.isValidZone("America/New_York") //=> true
|
|
69
|
+
* @example IANAZone.isValidZone("Fantasia/Castle") //=> false
|
|
70
|
+
* @example IANAZone.isValidZone("Sport~~blorp") //=> false
|
|
71
|
+
* @return {boolean}
|
|
72
|
+
*/
|
|
73
|
+
static isValidZone(t) {
|
|
74
|
+
if (!t)
|
|
75
|
+
return !1;
|
|
76
|
+
try {
|
|
77
|
+
return new Intl.DateTimeFormat("en-US", { timeZone: t }).format(), !0;
|
|
78
|
+
} catch {
|
|
79
|
+
return !1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
constructor(t) {
|
|
83
|
+
super(), this.zoneName = t, this.valid = p.isValidZone(t);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The type of zone. `iana` for all instances of `IANAZone`.
|
|
87
|
+
* @override
|
|
88
|
+
* @type {string}
|
|
89
|
+
*/
|
|
90
|
+
get type() {
|
|
91
|
+
return "iana";
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The name of this zone (i.e. the IANA zone name).
|
|
95
|
+
* @override
|
|
96
|
+
* @type {string}
|
|
97
|
+
*/
|
|
98
|
+
get name() {
|
|
99
|
+
return this.zoneName;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Returns whether the offset is known to be fixed for the whole year:
|
|
103
|
+
* Always returns false for all IANA zones.
|
|
104
|
+
* @override
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
*/
|
|
107
|
+
get isUniversal() {
|
|
108
|
+
return !1;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Returns the offset's common name (such as EST) at the specified timestamp
|
|
112
|
+
* @override
|
|
113
|
+
* @param {number} ts - Epoch milliseconds for which to get the name
|
|
114
|
+
* @param {Object} opts - Options to affect the format
|
|
115
|
+
* @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
|
|
116
|
+
* @param {string} opts.locale - What locale to return the offset name in.
|
|
117
|
+
* @return {string}
|
|
118
|
+
*/
|
|
119
|
+
offsetName(t, { format: e, locale: r }) {
|
|
120
|
+
return g(t, e, r, this.name);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Returns the offset's value as a string
|
|
124
|
+
* @override
|
|
125
|
+
* @param {number} ts - Epoch milliseconds for which to get the offset
|
|
126
|
+
* @param {string} format - What style of offset to return.
|
|
127
|
+
* Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
|
|
128
|
+
* @return {string}
|
|
129
|
+
*/
|
|
130
|
+
formatOffset(t, e) {
|
|
131
|
+
return T(this.offset(t), e);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Return the offset in minutes for this zone at the specified timestamp.
|
|
135
|
+
* @override
|
|
136
|
+
* @param {number} ts - Epoch milliseconds for which to compute the offset
|
|
137
|
+
* @return {number}
|
|
138
|
+
*/
|
|
139
|
+
offset(t) {
|
|
140
|
+
const e = new Date(t);
|
|
141
|
+
if (isNaN(e)) return NaN;
|
|
142
|
+
const r = O(this.name);
|
|
143
|
+
let [a, i, o, s, f, c, l] = r.formatToParts ? v(r, e) : Z(r, e);
|
|
144
|
+
s === "BC" && (a = -Math.abs(a) + 1);
|
|
145
|
+
const y = C({
|
|
146
|
+
year: a,
|
|
147
|
+
month: i,
|
|
148
|
+
day: o,
|
|
149
|
+
hour: f === 24 ? 0 : f,
|
|
150
|
+
minute: c,
|
|
151
|
+
second: l,
|
|
152
|
+
millisecond: 0
|
|
153
|
+
});
|
|
154
|
+
let m = +e;
|
|
155
|
+
const h = m % 1e3;
|
|
156
|
+
return m -= h >= 0 ? h : 1e3 + h, (y - m) / (60 * 1e3);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Return whether this Zone is equal to another zone
|
|
160
|
+
* @override
|
|
161
|
+
* @param {Zone} otherZone - the zone to compare
|
|
162
|
+
* @return {boolean}
|
|
163
|
+
*/
|
|
164
|
+
equals(t) {
|
|
165
|
+
return t.type === "iana" && t.name === this.name;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Return whether this Zone is valid.
|
|
169
|
+
* @override
|
|
170
|
+
* @type {boolean}
|
|
171
|
+
*/
|
|
172
|
+
get isValid() {
|
|
173
|
+
return this.valid;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
export {
|
|
177
|
+
p as default
|
|
178
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { signedOffset as s, formatOffset as i } from "../impl/util.js";
|
|
2
|
+
import u from "../zone.js";
|
|
3
|
+
let n = null;
|
|
4
|
+
class r extends u {
|
|
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 default
|
|
125
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import t from "../zone.js";
|
|
2
|
+
class s extends t {
|
|
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 default
|
|
41
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { parseZoneInfo as f, formatOffset as o } from "../impl/util.js";
|
|
2
|
+
import a from "../zone.js";
|
|
3
|
+
let r = null;
|
|
4
|
+
class n extends a {
|
|
5
|
+
/**
|
|
6
|
+
* Get a singleton instance of the local zone
|
|
7
|
+
* @return {SystemZone}
|
|
8
|
+
*/
|
|
9
|
+
static get instance() {
|
|
10
|
+
return r === null && (r = new n()), 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: s }) {
|
|
26
|
+
return f(e, t, s);
|
|
27
|
+
}
|
|
28
|
+
/** @override **/
|
|
29
|
+
formatOffset(e, t) {
|
|
30
|
+
return o(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
|
+
n as default
|
|
47
|
+
};
|