overview-components 1.0.93 → 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.
Files changed (289) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/_virtual/__vite-browser-external.js +4 -0
  4. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  5. package/dist/_virtual/_commonjsHelpers.js +28 -0
  6. package/dist/_virtual/index.js +4 -0
  7. package/dist/_virtual/lodash.js +4 -0
  8. package/dist/_virtual/pdf.js +4 -0
  9. package/dist/_virtual/react.production.js +4 -0
  10. package/dist/assets/generated/locales/de.js +72 -70
  11. package/dist/assets/generated/locales/en.js +72 -70
  12. package/dist/assets/generated/locales/fr.js +72 -70
  13. package/dist/assets/generated/locales/hr.js +72 -70
  14. package/dist/assets/generated/locales/it.js +72 -70
  15. package/dist/assets/generated/locales/pl.js +72 -70
  16. package/dist/assets/generated/locales/ro.js +72 -70
  17. package/dist/assets/generated/locales/sk.js +72 -70
  18. package/dist/assets/generated/locales/sr.js +72 -70
  19. package/dist/components/lit-attachments-tab.js +271 -432
  20. package/dist/components/lit-badge.js +40 -40
  21. package/dist/components/lit-case-variables-tab.js +382 -497
  22. package/dist/components/lit-chart.js +378 -406
  23. package/dist/components/lit-data-grid-tanstack.js +1150 -1663
  24. package/dist/components/lit-filter-modal.js +198 -230
  25. package/dist/components/lit-multiselect-item.js +301 -477
  26. package/dist/components/lit-section-tab.js +73 -85
  27. package/dist/components/lit-tabs-overview.js +191 -232
  28. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  29. package/dist/components/react-wrappers/badge.js +13 -8
  30. package/dist/components/react-wrappers/button.js +13 -8
  31. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  32. package/dist/components/react-wrappers/chart.js +13 -8
  33. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  34. package/dist/components/react-wrappers/filter-modal.js +13 -8
  35. package/dist/components/react-wrappers/progress-bar.js +13 -8
  36. package/dist/components/react-wrappers/section-tab.js +13 -8
  37. package/dist/components/react-wrappers/tabs-overview.js +13 -8
  38. package/dist/index.js +42 -43
  39. package/dist/libs/xlsx.mini.min.js +10 -0
  40. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  41. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  42. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  44. package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
  45. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  46. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  47. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  48. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  49. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  50. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  51. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  52. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  53. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  54. package/dist/node_modules/@lit/react/create-component.js +35 -0
  55. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  56. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  57. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  58. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  59. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  60. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  61. package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
  62. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  63. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  64. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  65. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  66. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  67. package/dist/node_modules/chart.js/dist/chart.js +7122 -0
  68. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
  69. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  70. package/dist/node_modules/lit-element/lit-element.js +51 -0
  71. package/dist/node_modules/lit-html/async-directive.js +69 -0
  72. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  73. package/dist/node_modules/lit-html/directive.js +27 -0
  74. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  75. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  76. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  77. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  78. package/dist/node_modules/lit-html/lit-html.js +243 -0
  79. package/dist/node_modules/lodash/lodash.js +3678 -0
  80. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  81. package/dist/node_modules/luxon/src/duration.js +723 -0
  82. package/dist/node_modules/luxon/src/errors.js +40 -0
  83. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  84. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  85. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  86. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  87. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  88. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  89. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  90. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  91. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  92. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  93. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  94. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  95. package/dist/node_modules/luxon/src/info.js +180 -0
  96. package/dist/node_modules/luxon/src/interval.js +466 -0
  97. package/dist/node_modules/luxon/src/settings.js +150 -0
  98. package/dist/node_modules/luxon/src/zone.js +88 -0
  99. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  100. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  101. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  102. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  103. package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
  104. package/dist/node_modules/react/cjs/react.production.js +417 -0
  105. package/dist/node_modules/react/index.js +10 -0
  106. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  107. package/dist/shared/lit-button.js +66 -80
  108. package/dist/shared/lit-progress-bar.js +35 -33
  109. package/dist/shared/simple-tooltip.js +124 -198
  110. package/dist/shared/styles/button-shared-styles.js +8 -4
  111. package/dist/utils/currency.js +12 -15
  112. package/dist/utils/custom-filters.js +46 -80
  113. package/dist/utils/date.js +14 -21
  114. package/dist/utils/getOperatorByType.js +51 -65
  115. package/dist/utils/localization.js +29 -431
  116. package/dist/vite.svg +1 -0
  117. package/package.json +76 -74
  118. package/dist/assets/generated/locales/de.js.map +0 -1
  119. package/dist/assets/generated/locales/en.js.map +0 -1
  120. package/dist/assets/generated/locales/fr.js.map +0 -1
  121. package/dist/assets/generated/locales/hr.js.map +0 -1
  122. package/dist/assets/generated/locales/it.js.map +0 -1
  123. package/dist/assets/generated/locales/pl.js.map +0 -1
  124. package/dist/assets/generated/locales/ro.js.map +0 -1
  125. package/dist/assets/generated/locales/sk.js.map +0 -1
  126. package/dist/assets/generated/locales/sr.js.map +0 -1
  127. package/dist/assets/icons/iconGlyphs.js +0 -679
  128. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  129. package/dist/assets/illustration/delete-illustration.js +0 -96
  130. package/dist/assets/illustration/delete-illustration.js.map +0 -1
  131. package/dist/assets/illustration/no-content.js +0 -167
  132. package/dist/assets/illustration/no-content.js.map +0 -1
  133. package/dist/assets/illustration/no-preview.js +0 -133
  134. package/dist/assets/illustration/no-preview.js.map +0 -1
  135. package/dist/assets/illustration/not-found.js +0 -106
  136. package/dist/assets/illustration/not-found.js.map +0 -1
  137. package/dist/assets/illustration/settings-illustration.js +0 -176
  138. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  139. package/dist/components/components-settings/attachments-tab-settings.js +0 -226
  140. package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
  141. package/dist/components/components-settings/data-grid-settings.js +0 -318
  142. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  143. package/dist/components/components-settings/section-tab-settings.js +0 -269
  144. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  145. package/dist/components/components-settings/tabs-overview-settings.js +0 -439
  146. package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
  147. package/dist/components/lit-attachments-tab.js.map +0 -1
  148. package/dist/components/lit-badge.js.map +0 -1
  149. package/dist/components/lit-case-variables-tab.js.map +0 -1
  150. package/dist/components/lit-chart.js.map +0 -1
  151. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  152. package/dist/components/lit-filter-modal.js.map +0 -1
  153. package/dist/components/lit-multiselect-item.js.map +0 -1
  154. package/dist/components/lit-section-tab.js.map +0 -1
  155. package/dist/components/lit-tabs-overview.js.map +0 -1
  156. package/dist/components/modals/lit-confirm-modal.js +0 -120
  157. package/dist/components/modals/lit-confirm-modal.js.map +0 -1
  158. package/dist/components/modals/lit-delete-modal.js +0 -128
  159. package/dist/components/modals/lit-delete-modal.js.map +0 -1
  160. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  161. package/dist/components/react-wrappers/badge.js.map +0 -1
  162. package/dist/components/react-wrappers/button.js.map +0 -1
  163. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  164. package/dist/components/react-wrappers/chart.js.map +0 -1
  165. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  166. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  167. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  168. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  169. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  170. package/dist/data/translations.js +0 -2763
  171. package/dist/data/translations.js.map +0 -1
  172. package/dist/index.js.map +0 -1
  173. package/dist/schemas/index.js +0 -17
  174. package/dist/schemas/index.js.map +0 -1
  175. package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
  176. package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
  177. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
  178. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
  179. package/dist/schemas/lit-attachments-tab.schema.js +0 -32
  180. package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
  181. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  182. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  183. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  184. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  185. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  186. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  187. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  188. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  189. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  190. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  191. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  192. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  193. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  194. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  195. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  196. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  197. package/dist/schemas/lit-section-tab-schema.js +0 -24
  198. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  199. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
  200. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
  201. package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
  202. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
  203. package/dist/schemas/lit-tabs-overview.schema.js +0 -29
  204. package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
  205. package/dist/scripts/translate-locales.js +0 -69
  206. package/dist/scripts/translate-locales.js.map +0 -1
  207. package/dist/shared/filter-inputs.js +0 -427
  208. package/dist/shared/filter-inputs.js.map +0 -1
  209. package/dist/shared/lit-button.js.map +0 -1
  210. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  211. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  212. package/dist/shared/lit-checkbox.js +0 -171
  213. package/dist/shared/lit-checkbox.js.map +0 -1
  214. package/dist/shared/lit-custom-popper.js +0 -117
  215. package/dist/shared/lit-custom-popper.js.map +0 -1
  216. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  217. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  218. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  219. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  220. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  221. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  222. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  223. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  224. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  225. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  226. package/dist/shared/lit-date-picker.js +0 -606
  227. package/dist/shared/lit-date-picker.js.map +0 -1
  228. package/dist/shared/lit-icon-button.js +0 -105
  229. package/dist/shared/lit-icon-button.js.map +0 -1
  230. package/dist/shared/lit-icon.js +0 -284
  231. package/dist/shared/lit-icon.js.map +0 -1
  232. package/dist/shared/lit-input.js +0 -239
  233. package/dist/shared/lit-input.js.map +0 -1
  234. package/dist/shared/lit-label.js +0 -104
  235. package/dist/shared/lit-label.js.map +0 -1
  236. package/dist/shared/lit-loader.js +0 -69
  237. package/dist/shared/lit-loader.js.map +0 -1
  238. package/dist/shared/lit-loading-bar.js +0 -127
  239. package/dist/shared/lit-loading-bar.js.map +0 -1
  240. package/dist/shared/lit-menu-item.js +0 -99
  241. package/dist/shared/lit-menu-item.js.map +0 -1
  242. package/dist/shared/lit-menu.js +0 -42
  243. package/dist/shared/lit-menu.js.map +0 -1
  244. package/dist/shared/lit-modal-body.js +0 -22
  245. package/dist/shared/lit-modal-body.js.map +0 -1
  246. package/dist/shared/lit-modal-footer.js +0 -29
  247. package/dist/shared/lit-modal-footer.js.map +0 -1
  248. package/dist/shared/lit-modal-header.js +0 -36
  249. package/dist/shared/lit-modal-header.js.map +0 -1
  250. package/dist/shared/lit-modal.js +0 -169
  251. package/dist/shared/lit-modal.js.map +0 -1
  252. package/dist/shared/lit-overflow-tooltip.js +0 -103
  253. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  254. package/dist/shared/lit-pill.js +0 -88
  255. package/dist/shared/lit-pill.js.map +0 -1
  256. package/dist/shared/lit-progress-bar.js.map +0 -1
  257. package/dist/shared/lit-responsive-button.js +0 -94
  258. package/dist/shared/lit-responsive-button.js.map +0 -1
  259. package/dist/shared/lit-select-field.js +0 -459
  260. package/dist/shared/lit-select-field.js.map +0 -1
  261. package/dist/shared/lit-select.js +0 -413
  262. package/dist/shared/lit-select.js.map +0 -1
  263. package/dist/shared/lit-settings.js +0 -77
  264. package/dist/shared/lit-settings.js.map +0 -1
  265. package/dist/shared/lit-text-field.js +0 -222
  266. package/dist/shared/lit-text-field.js.map +0 -1
  267. package/dist/shared/lit-toggle.js +0 -222
  268. package/dist/shared/lit-toggle.js.map +0 -1
  269. package/dist/shared/lit-tooltip.js +0 -166
  270. package/dist/shared/lit-tooltip.js.map +0 -1
  271. package/dist/shared/simple-popper.js +0 -266
  272. package/dist/shared/simple-popper.js.map +0 -1
  273. package/dist/shared/simple-tooltip.js.map +0 -1
  274. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  275. package/dist/styles.js +0 -169
  276. package/dist/styles.js.map +0 -1
  277. package/dist/utils/currency.js.map +0 -1
  278. package/dist/utils/custom-filters.js.map +0 -1
  279. package/dist/utils/date.js.map +0 -1
  280. package/dist/utils/getOperatorByType.js.map +0 -1
  281. package/dist/utils/getOverviewValue.js +0 -177
  282. package/dist/utils/getOverviewValue.js.map +0 -1
  283. package/dist/utils/localization.js.map +0 -1
  284. package/dist/utils/utils.js +0 -13
  285. package/dist/utils/utils.js.map +0 -1
  286. package/dist/utils/validate-json-schema.js +0 -8
  287. package/dist/utils/validate-json-schema.js.map +0 -1
  288. package/dist/validators/validator.js +0 -7
  289. package/dist/validators/validator.js.map +0 -1
@@ -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
+ };