@servicetitan/dte-unlayer 0.114.0 → 0.115.0
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/editor-core-source.d.ts +2 -2
- package/dist/editor-core-source.d.ts.map +1 -1
- package/dist/editor-core-source.js +2 -2
- package/dist/editor-core-source.js.map +1 -1
- package/dist/shared/date-calc.d.ts +6 -0
- package/dist/shared/date-calc.d.ts.map +1 -1
- package/dist/shared/date-calc.js +15 -0
- package/dist/shared/date-calc.js.map +1 -1
- package/package.json +1 -1
- package/src/editor-core-source.ts +2 -2
- package/src/shared/date-calc.ts +17 -0
package/src/shared/date-calc.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
export const MAX_DATE_CALC_DAYS = 365;
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Fallback US federal holidays used when the store config does not provide a
|
|
5
|
+
* holidays list. Keep in sync with any similar inline arrays elsewhere (e.g.
|
|
6
|
+
* components/scripts/comps/calculated-field.ts).
|
|
7
|
+
*/
|
|
8
|
+
export const DEFAULT_HOLIDAYS: string[] = [
|
|
9
|
+
'2026-01-01T00:00:00.000Z',
|
|
10
|
+
'2026-01-19T00:00:00.000Z',
|
|
11
|
+
'2026-02-16T00:00:00.000Z',
|
|
12
|
+
'2026-05-25T00:00:00.000Z',
|
|
13
|
+
'2026-07-04T00:00:00.000Z',
|
|
14
|
+
'2026-09-07T00:00:00.000Z',
|
|
15
|
+
'2026-11-26T00:00:00.000Z',
|
|
16
|
+
'2026-11-27T00:00:00.000Z',
|
|
17
|
+
'2026-12-25T00:00:00.000Z',
|
|
18
|
+
];
|
|
19
|
+
|
|
3
20
|
export const DATE_RANGE_YEARS = 2;
|
|
4
21
|
|
|
5
22
|
/**
|