tltv-timeline-element 1.0.24 → 1.0.26

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 (55) hide show
  1. package/README.md +148 -10
  2. package/custom-elements.json +4201 -0
  3. package/dist/src/model/DefaultLocaleDataProvider.d.ts +35 -27
  4. package/dist/src/model/DefaultLocaleDataProvider.d.ts.map +1 -0
  5. package/dist/src/model/DefaultLocaleDataProvider.js +78 -111
  6. package/dist/src/model/DefaultLocaleDataProvider.js.map +1 -1
  7. package/dist/src/model/ILocaleDataProvider.d.ts +71 -62
  8. package/dist/src/model/ILocaleDataProvider.d.ts.map +1 -0
  9. package/dist/src/model/ILocaleDataProvider.js +1 -1
  10. package/dist/src/model/IResolutionBlockFiller.d.ts +5 -4
  11. package/dist/src/model/IResolutionBlockFiller.d.ts.map +1 -0
  12. package/dist/src/model/IResolutionBlockFiller.js +1 -1
  13. package/dist/src/model/IResolutionBlockRegisterer.d.ts +4 -3
  14. package/dist/src/model/IResolutionBlockRegisterer.d.ts.map +1 -0
  15. package/dist/src/model/IResolutionBlockRegisterer.js +1 -1
  16. package/dist/src/model/Resolution.d.ts +8 -7
  17. package/dist/src/model/Resolution.d.ts.map +1 -0
  18. package/dist/src/model/Resolution.js +8 -8
  19. package/dist/src/model/Weekday.d.ts +6 -5
  20. package/dist/src/model/Weekday.d.ts.map +1 -0
  21. package/dist/src/model/Weekday.js +6 -6
  22. package/dist/src/model/blockRowData.d.ts +12 -11
  23. package/dist/src/model/blockRowData.d.ts.map +1 -0
  24. package/dist/src/model/blockRowData.js +28 -28
  25. package/dist/src/model/blockRowData.js.map +1 -1
  26. package/dist/src/timeline-element.d.ts +406 -388
  27. package/dist/src/timeline-element.d.ts.map +1 -0
  28. package/dist/src/timeline-element.js +1987 -1987
  29. package/dist/src/timeline-element.js.map +1 -1
  30. package/dist/src/util/dateTimeUtil.d.ts +21 -14
  31. package/dist/src/util/dateTimeUtil.d.ts.map +1 -0
  32. package/dist/src/util/dateTimeUtil.js +42 -55
  33. package/dist/src/util/dateTimeUtil.js.map +1 -1
  34. package/dist/src/util/elementUtil.d.ts +5 -4
  35. package/dist/src/util/elementUtil.d.ts.map +1 -0
  36. package/dist/src/util/elementUtil.js +48 -48
  37. package/dist/src/util/elementUtil.js.map +1 -1
  38. package/dist/src/util/zonedTime.d.ts +85 -0
  39. package/dist/src/util/zonedTime.d.ts.map +1 -0
  40. package/dist/src/util/zonedTime.js +239 -0
  41. package/dist/src/util/zonedTime.js.map +1 -0
  42. package/package.json +53 -24
  43. package/src/model/DefaultLocaleDataProvider.ts +32 -66
  44. package/src/model/ILocaleDataProvider.ts +10 -2
  45. package/src/model/IResolutionBlockFiller.ts +1 -1
  46. package/src/model/IResolutionBlockRegisterer.ts +1 -1
  47. package/src/model/blockRowData.ts +4 -4
  48. package/src/timeline-element.ts +380 -372
  49. package/src/util/dateTimeUtil.ts +16 -29
  50. package/src/util/elementUtil.ts +4 -4
  51. package/src/util/zonedTime.ts +280 -0
  52. package/server.js +0 -18
  53. package/src/index.html +0 -112
  54. package/tsconfig.json +0 -15
  55. package/webpack.config.js +0 -33
@@ -1,27 +1,35 @@
1
- import { ILocaleDataProvider } from './ILocaleDataProvider';
2
- export declare class DefaultLocaleDataProvider implements ILocaleDataProvider {
3
- locale: string;
4
- timeZone: string;
5
- twelveHourClock: boolean;
6
- firstDayOfWeek: number;
7
- monthNames: string[];
8
- weekDayNames: string[];
9
- browserTimeZone: string;
10
- _offsetCache: Map<string, number>;
11
- constructor(locale: string, timeZone: string, firstDayOfWeek: number, twelveHourClock: boolean);
12
- getMonthNames(): string[];
13
- getWeekdayNames(): string[];
14
- getFirstDayOfWeek(): number;
15
- formatDate(date: Date, pattern: string): string;
16
- formatTime(date: Date, pattern: string): string;
17
- isTwelveHourClock(): boolean;
18
- getLocale(): string;
19
- getTimeZone(): string;
20
- getDaylightAdjustment(zonedDate: Date): number;
21
- _getDaylightAdjustment(zonedDate: Date, timezone: string): number;
22
- _getDaylightSavingTime(fullYear: number, timezone: string): number;
23
- isDaylightTime(zonedDate: Date): boolean;
24
- getTimezoneOffset(zonedDate: Date): number;
25
- _getTimezoneOffset(zonedDate: Date, timezone: string): number;
26
- _getOffset(fullYear: number, month: string, cache: Map<string, number>, timezone: string): number;
27
- }
1
+ import { ILocaleDataProvider } from './ILocaleDataProvider.js';
2
+ export declare class DefaultLocaleDataProvider implements ILocaleDataProvider {
3
+ locale: string;
4
+ timeZone: string;
5
+ twelveHourClock: boolean;
6
+ firstDayOfWeek: number;
7
+ monthNames: string[];
8
+ weekDayNames: string[];
9
+ browserTimeZone: string;
10
+ /** Standard (non-DST) UTC offset per year, keyed by "year|timeZone". */
11
+ _standardOffsetCache: Map<string, number>;
12
+ constructor(locale: string, timeZone: string, firstDayOfWeek: number, twelveHourClock: boolean);
13
+ getMonthNames(): string[];
14
+ getWeekdayNames(): string[];
15
+ getFirstDayOfWeek(): number;
16
+ formatDate(date: Date, pattern: string): string;
17
+ formatTime(date: Date, pattern: string): string;
18
+ isTwelveHourClock(): boolean;
19
+ getLocale(): string;
20
+ getTimeZone(): string;
21
+ /**
22
+ * DST adjustment in milliseconds at the given instant: how far the zone's
23
+ * clocks are ahead of its standard time (e.g. 3 600 000 in London summer,
24
+ * 0 in winter). Southern hemisphere zones are in DST around January.
25
+ */
26
+ getDaylightAdjustment(zonedDate: Date): number;
27
+ isDaylightTime(zonedDate: Date): boolean;
28
+ getTimezoneOffset(zonedDate: Date): number;
29
+ /**
30
+ * Standard time offset of the zone for the given year: the smaller of the
31
+ * January and July offsets (DST always moves clocks forward).
32
+ */
33
+ getStandardOffset(year: number): number;
34
+ }
35
+ //# sourceMappingURL=DefaultLocaleDataProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultLocaleDataProvider.d.ts","sourceRoot":"","sources":["../../../src/model/DefaultLocaleDataProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,qBAAa,yBAA0B,YAAW,mBAAmB;IAE1D,MAAM,EAAE,MAAM,CAAW;IACzB,QAAQ,EAAE,MAAM,CAAmB;IACnC,eAAe,EAAE,OAAO,CAAS;IACjC,cAAc,EAAE,MAAM,CAAK;IAC3B,UAAU,EAAE,MAAM,EAAE,CAA8H;IAClJ,YAAY,EAAE,MAAM,EAAE,CAAkF;IACxG,eAAe,EAAE,MAAM,CAAC;IAE/B,wEAAwE;IACxE,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAa;gBAE1C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO;IAQ9F,aAAa,IAAI,MAAM,EAAE;IAGzB,eAAe,IAAI,MAAM,EAAE;IAG3B,iBAAiB,IAAI,MAAM;IAG3B,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAG/C,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAS/C,iBAAiB,IAAI,OAAO;IAG5B,SAAS,IAAI,MAAM;IAGnB,WAAW,IAAI,MAAM;IAIrB;;;;OAIG;IACH,qBAAqB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM;IAK9C,cAAc,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO;IAIxC,iBAAiB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM;IAI1C;;;OAGG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAW1C"}
@@ -1,112 +1,79 @@
1
- import { formatInTimeZone } from 'date-fns-tz';
2
- export class DefaultLocaleDataProvider {
3
- constructor(locale, timeZone, firstDayOfWeek, twelveHourClock) {
4
- this.locale = "en-US";
5
- this.timeZone = "Europe/London";
6
- this.twelveHourClock = false;
7
- this.firstDayOfWeek = 1; // sunday
8
- this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
9
- this.weekDayNames = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
10
- this._offsetCache = new Map();
11
- this.locale = locale;
12
- this.timeZone = timeZone;
13
- this.firstDayOfWeek = firstDayOfWeek;
14
- this.twelveHourClock = twelveHourClock;
15
- this.browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
16
- }
17
- getMonthNames() {
18
- return this.monthNames;
19
- }
20
- getWeekdayNames() {
21
- return this.weekDayNames;
22
- }
23
- getFirstDayOfWeek() {
24
- return this.firstDayOfWeek;
25
- }
26
- formatDate(date, pattern) {
27
- return formatInTimeZone(date, this.getTimeZone(), pattern);
28
- }
29
- formatTime(date, pattern) {
30
- let options = {
31
- hour: "numeric",
32
- timeZone: this.getTimeZone(),
33
- hour12: (pattern == 'h')
34
- };
35
- return new Intl.DateTimeFormat(this.getLocale(), options).format(date);
36
- }
37
- isTwelveHourClock() {
38
- return this.twelveHourClock;
39
- }
40
- getLocale() {
41
- return this.locale;
42
- }
43
- getTimeZone() {
44
- return this.timeZone;
45
- }
46
- getDaylightAdjustment(zonedDate) {
47
- return this._getDaylightAdjustment(zonedDate, this.getTimeZone());
48
- }
49
- _getDaylightAdjustment(zonedDate, timezone) {
50
- let fullYear = zonedDate.getFullYear();
51
- let janOffset = this._getOffset(fullYear, "01", this._offsetCache, timezone);
52
- let julOffset = this._getOffset(fullYear, "07", this._offsetCache, timezone);
53
- if (janOffset !== julOffset) {
54
- let maxOffset = Math.max(janOffset, julOffset);
55
- let targetOffset = this._getTimezoneOffset(zonedDate, timezone);
56
- if (targetOffset < maxOffset) {
57
- // This is Daylight saving time
58
- let minOffset = Math.min(janOffset, julOffset);
59
- return maxOffset - minOffset;
60
- }
61
- }
62
- return 0;
63
- }
64
- _getDaylightSavingTime(fullYear, timezone) {
65
- let janOffset = this._getOffset(fullYear, "01", this._offsetCache, timezone);
66
- let julOffset = this._getOffset(fullYear, "07", this._offsetCache, timezone);
67
- if (janOffset !== julOffset) {
68
- let maxOffset = Math.max(janOffset, julOffset);
69
- let minOffset = Math.min(janOffset, julOffset);
70
- return maxOffset - minOffset;
71
- }
72
- return 0;
73
- }
74
- isDaylightTime(zonedDate) {
75
- let fullYear = zonedDate.getFullYear();
76
- let janOffset = this._getOffset(fullYear, "01", this._offsetCache, this.getTimeZone());
77
- let julOffset = this._getOffset(fullYear, "07", this._offsetCache, this.getTimeZone());
78
- if (janOffset !== julOffset) {
79
- let maxOffset = Math.max(janOffset, julOffset);
80
- let targetOffset = this.getTimezoneOffset(zonedDate);
81
- return targetOffset < maxOffset;
82
- }
83
- return false;
84
- }
85
- getTimezoneOffset(zonedDate) {
86
- return this._getTimezoneOffset(zonedDate, this.getTimeZone());
87
- }
88
- _getTimezoneOffset(zonedDate, timezone) {
89
- let offset = formatInTimeZone(zonedDate, timezone, "xxx"); // like "+01:00"
90
- if (offset && offset.length === 6) {
91
- let hour = offset[1] + offset[2];
92
- if (hour === '24') {
93
- hour = '00';
94
- }
95
- let tzOffset = (parseInt(hour) * 60) + parseInt(offset[4] + offset[5]);
96
- if (offset[0] === '-') {
97
- tzOffset = -1 * tzOffset;
98
- }
99
- return tzOffset * 60000;
100
- }
101
- return 0;
102
- }
103
- _getOffset(fullYear, month, cache, timezone) {
104
- const key = `${fullYear}-${month}-${timezone}`;
105
- if (!cache.has(key)) {
106
- let targetDate = new Date(`${fullYear}-${month}-01T00:00:00Z`);
107
- cache.set(key, this._getTimezoneOffset(targetDate, timezone));
108
- }
109
- return cache.get(key);
110
- }
111
- }
1
+ import { formatInZone, getOffsetMs, getZonedFields, zonedWallTimeToInstant } from '../util/zonedTime.js';
2
+ export class DefaultLocaleDataProvider {
3
+ constructor(locale, timeZone, firstDayOfWeek, twelveHourClock) {
4
+ this.locale = "en-US";
5
+ this.timeZone = "Europe/London";
6
+ this.twelveHourClock = false;
7
+ this.firstDayOfWeek = 1; // sunday
8
+ this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
9
+ this.weekDayNames = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
10
+ /** Standard (non-DST) UTC offset per year, keyed by "year|timeZone". */
11
+ this._standardOffsetCache = new Map();
12
+ this.locale = locale;
13
+ this.timeZone = timeZone;
14
+ this.firstDayOfWeek = firstDayOfWeek;
15
+ this.twelveHourClock = twelveHourClock;
16
+ this.browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
17
+ }
18
+ getMonthNames() {
19
+ return this.monthNames;
20
+ }
21
+ getWeekdayNames() {
22
+ return this.weekDayNames;
23
+ }
24
+ getFirstDayOfWeek() {
25
+ return this.firstDayOfWeek;
26
+ }
27
+ formatDate(date, pattern) {
28
+ return formatInZone(date, this.getTimeZone(), pattern);
29
+ }
30
+ formatTime(date, pattern) {
31
+ const options = {
32
+ hour: "numeric",
33
+ timeZone: this.getTimeZone(),
34
+ // hourCycle (not hour12) so midnight is "00", never "24".
35
+ hourCycle: (pattern == 'h') ? 'h12' : 'h23',
36
+ };
37
+ return new Intl.DateTimeFormat(this.getLocale(), options).format(date);
38
+ }
39
+ isTwelveHourClock() {
40
+ return this.twelveHourClock;
41
+ }
42
+ getLocale() {
43
+ return this.locale;
44
+ }
45
+ getTimeZone() {
46
+ return this.timeZone;
47
+ }
48
+ /**
49
+ * DST adjustment in milliseconds at the given instant: how far the zone's
50
+ * clocks are ahead of its standard time (e.g. 3 600 000 in London summer,
51
+ * 0 in winter). Southern hemisphere zones are in DST around January.
52
+ */
53
+ getDaylightAdjustment(zonedDate) {
54
+ const zoned = getZonedFields(zonedDate, this.getTimeZone());
55
+ return Math.max(0, zoned.offsetMs - this.getStandardOffset(zoned.year));
56
+ }
57
+ isDaylightTime(zonedDate) {
58
+ return this.getDaylightAdjustment(zonedDate) > 0;
59
+ }
60
+ getTimezoneOffset(zonedDate) {
61
+ return getOffsetMs(zonedDate, this.getTimeZone());
62
+ }
63
+ /**
64
+ * Standard time offset of the zone for the given year: the smaller of the
65
+ * January and July offsets (DST always moves clocks forward).
66
+ */
67
+ getStandardOffset(year) {
68
+ const key = `${year}|${this.getTimeZone()}`;
69
+ let offset = this._standardOffsetCache.get(key);
70
+ if (offset === undefined) {
71
+ const jan = getOffsetMs(zonedWallTimeToInstant({ year, month: 1, day: 1, hour: 12 }, this.getTimeZone()), this.getTimeZone());
72
+ const jul = getOffsetMs(zonedWallTimeToInstant({ year, month: 7, day: 1, hour: 12 }, this.getTimeZone()), this.getTimeZone());
73
+ offset = Math.min(jan, jul);
74
+ this._standardOffsetCache.set(key, offset);
75
+ }
76
+ return offset;
77
+ }
78
+ }
112
79
  //# sourceMappingURL=DefaultLocaleDataProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultLocaleDataProvider.js","sourceRoot":"","sources":["../../../src/model/DefaultLocaleDataProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,OAAO,yBAAyB;IAYlC,YAAY,MAAc,EAAE,QAAgB,EAAE,cAAsB,EAAE,eAAwB;QAVvF,WAAM,GAAW,OAAO,CAAC;QACzB,aAAQ,GAAW,eAAe,CAAC;QACnC,oBAAe,GAAY,KAAK,CAAC;QACjC,mBAAc,GAAW,CAAC,CAAC,CAAC,SAAS;QACrC,eAAU,GAAa,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QAClJ,iBAAY,GAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAG/G,iBAAY,GAAwB,IAAI,GAAG,EAAE,CAAC;QAG1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAA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AE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;YAC9H,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAC5B,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -1,62 +1,71 @@
1
- export interface ILocaleDataProvider {
2
- /**
3
- * Returns month names in order starting from January.
4
- *
5
- * @return Locale dependent month names
6
- */
7
- getMonthNames(): string[];
8
- /**
9
- * Returns weekdays in order starting from Sunday.
10
- *
11
- * @return Locale dependent weekday names
12
- */
13
- getWeekdayNames(): string[];
14
- /**
15
- * Returns first day of week. Allowed values are 1-7. 1 is Sunday.
16
- *
17
- * @return Integer between 1-7.
18
- */
19
- getFirstDayOfWeek(): number;
20
- /**
21
- * Format zoned date to String.
22
- *
23
- * @param date
24
- * Date to format (Expected to be in same TimeZone as
25
- * {@link #getTimeZone()}).
26
- * @param format
27
- * Pattern of the date format. Like MMM or MMMM.
28
- * @return Formatted date
29
- */
30
- formatDate(date: Date, format: string): string;
31
- /**
32
- * Format date to time String.
33
- *
34
- * @param date
35
- * Time to format (Expected to be in same TimeZone as
36
- * {@link #getTimeZone()}).
37
- * @param format
38
- * Pattern of the time format. Like h or HH.
39
- * @return Formatted time
40
- */
41
- formatTime(date: Date, format: string): string;
42
- /**
43
- * Returns true, if active locale uses twelve hour clock.
44
- *
45
- * @return true if 12h clock. False if 24h clock.
46
- */
47
- isTwelveHourClock(): boolean;
48
- /**
49
- * Get currently active locale id. See {@link Locale#toString()}.
50
- *
51
- * @return Locale
52
- */
53
- getLocale(): string;
54
- /**
55
- * Get currently active time-zone.
56
- */
57
- getTimeZone(): string;
58
- /** Get daylight saving time adjustment in milliseconds for the target date. */
59
- getDaylightAdjustment(zonedDate: Date): number;
60
- isDaylightTime(zonedDate: Date): boolean;
61
- getTimezoneOffset(zonedDate: Date): number;
62
- }
1
+ export interface ILocaleDataProvider {
2
+ /**
3
+ * Returns month names in order starting from January.
4
+ *
5
+ * @return Locale dependent month names
6
+ */
7
+ getMonthNames(): string[];
8
+ /**
9
+ * Returns weekdays in order starting from Sunday.
10
+ *
11
+ * @return Locale dependent weekday names
12
+ */
13
+ getWeekdayNames(): string[];
14
+ /**
15
+ * Returns first day of week. Allowed values are 1-7. 1 is Sunday.
16
+ *
17
+ * @return Integer between 1-7.
18
+ */
19
+ getFirstDayOfWeek(): number;
20
+ /**
21
+ * Format zoned date to String.
22
+ *
23
+ * @param date
24
+ * Date to format (Expected to be in same TimeZone as
25
+ * {@link #getTimeZone()}).
26
+ * @param format
27
+ * Pattern of the date format. Like MMM or MMMM. The default
28
+ * provider supports the tokens listed in
29
+ * zonedTime.formatInZone().
30
+ * @return Formatted date
31
+ */
32
+ formatDate(date: Date, format: string): string;
33
+ /**
34
+ * Format date to time String.
35
+ *
36
+ * @param date
37
+ * Time to format (Expected to be in same TimeZone as
38
+ * {@link #getTimeZone()}).
39
+ * @param format
40
+ * Pattern of the time format. Like h or HH.
41
+ * @return Formatted time
42
+ */
43
+ formatTime(date: Date, format: string): string;
44
+ /**
45
+ * Returns true, if active locale uses twelve hour clock.
46
+ *
47
+ * @return true if 12h clock. False if 24h clock.
48
+ */
49
+ isTwelveHourClock(): boolean;
50
+ /**
51
+ * Get currently active locale id. See {@link Locale#toString()}.
52
+ *
53
+ * @return Locale
54
+ */
55
+ getLocale(): string;
56
+ /**
57
+ * Get currently active time-zone.
58
+ */
59
+ getTimeZone(): string;
60
+ /**
61
+ * Get daylight saving time adjustment in milliseconds for the target date:
62
+ * how far clocks are ahead of standard time in {@link #getTimeZone()}.
63
+ * 0 outside DST, e.g. 3 600 000 during DST.
64
+ */
65
+ getDaylightAdjustment(zonedDate: Date): number;
66
+ /** True when the target date is in daylight saving time in {@link #getTimeZone()}. */
67
+ isDaylightTime(zonedDate: Date): boolean;
68
+ /** UTC offset in milliseconds (positive east of UTC, e.g. 7 200 000 for "+02:00"). */
69
+ getTimezoneOffset(zonedDate: Date): number;
70
+ }
71
+ //# sourceMappingURL=ILocaleDataProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILocaleDataProvider.d.ts","sourceRoot":"","sources":["../../../src/model/ILocaleDataProvider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAElC;;;;OAIG;IACH,aAAa,IAAI,MAAM,EAAE,CAAC;IAE1B;;;;OAIG;IACH,eAAe,IAAI,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAE5B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/C;;;;;;;;;OASG;IACH,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/C;;;;OAIG;IACH,iBAAiB,IAAI,OAAO,CAAC;IAE7B;;;;OAIG;IACH,SAAS,IAAI,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,IAAI,MAAM,CAAC;IAEtB;;;;OAIG;IACH,qBAAqB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IAE/C,sFAAsF;IACtF,cAAc,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,CAAC;IAEzC,sFAAsF;IACtF,iBAAiB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;CAC5C"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=ILocaleDataProvider.js.map
@@ -1,4 +1,5 @@
1
- export interface IResolutionBlockFiller {
2
- fillResolutionBlock(index: number, date: Date, currentYear: String, lastTimelineBlock: boolean): void;
3
- setup(): void;
4
- }
1
+ export interface IResolutionBlockFiller {
2
+ fillResolutionBlock(index: number, date: Date, currentYear: string, lastTimelineBlock: boolean): void;
3
+ setup(): void;
4
+ }
5
+ //# sourceMappingURL=IResolutionBlockFiller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IResolutionBlockFiller.d.ts","sourceRoot":"","sources":["../../../src/model/IResolutionBlockFiller.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtG,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=IResolutionBlockFiller.js.map
@@ -1,3 +1,4 @@
1
- export interface IResolutionBlockRegisterer {
2
- registerResolutionBlock(index: number, date: Date, currentYear: String, lastTimelineBlock: boolean): void;
3
- }
1
+ export interface IResolutionBlockRegisterer {
2
+ registerResolutionBlock(index: number, date: Date, currentYear: string, lastTimelineBlock: boolean): void;
3
+ }
4
+ //# sourceMappingURL=IResolutionBlockRegisterer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IResolutionBlockRegisterer.d.ts","sourceRoot":"","sources":["../../../src/model/IResolutionBlockRegisterer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;CAC3G"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=IResolutionBlockRegisterer.js.map
@@ -1,7 +1,8 @@
1
- export declare enum Resolution {
2
- Hour = 1,
3
- Day = 2,
4
- Week = 3,
5
- Month = 4,
6
- Year = 5
7
- }
1
+ export declare enum Resolution {
2
+ Hour = 1,
3
+ Day = 2,
4
+ Week = 3,
5
+ Month = 4,
6
+ Year = 5
7
+ }
8
+ //# sourceMappingURL=Resolution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resolution.d.ts","sourceRoot":"","sources":["../../../src/model/Resolution.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAClB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;CACX"}
@@ -1,9 +1,9 @@
1
- export var Resolution;
2
- (function (Resolution) {
3
- Resolution[Resolution["Hour"] = 1] = "Hour";
4
- Resolution[Resolution["Day"] = 2] = "Day";
5
- Resolution[Resolution["Week"] = 3] = "Week";
6
- Resolution[Resolution["Month"] = 4] = "Month";
7
- Resolution[Resolution["Year"] = 5] = "Year";
8
- })(Resolution || (Resolution = {}));
1
+ export var Resolution;
2
+ (function (Resolution) {
3
+ Resolution[Resolution["Hour"] = 1] = "Hour";
4
+ Resolution[Resolution["Day"] = 2] = "Day";
5
+ Resolution[Resolution["Week"] = 3] = "Week";
6
+ Resolution[Resolution["Month"] = 4] = "Month";
7
+ Resolution[Resolution["Year"] = 5] = "Year";
8
+ })(Resolution || (Resolution = {}));
9
9
  //# sourceMappingURL=Resolution.js.map
@@ -1,5 +1,6 @@
1
- export declare enum Weekday {
2
- First = 0,
3
- Between = 1,
4
- Last = 2
5
- }
1
+ export declare enum Weekday {
2
+ First = 0,
3
+ Between = 1,
4
+ Last = 2
5
+ }
6
+ //# sourceMappingURL=Weekday.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Weekday.d.ts","sourceRoot":"","sources":["../../../src/model/Weekday.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,IAAA;CACL"}
@@ -1,7 +1,7 @@
1
- export var Weekday;
2
- (function (Weekday) {
3
- Weekday[Weekday["First"] = 0] = "First";
4
- Weekday[Weekday["Between"] = 1] = "Between";
5
- Weekday[Weekday["Last"] = 2] = "Last";
6
- })(Weekday || (Weekday = {}));
1
+ export var Weekday;
2
+ (function (Weekday) {
3
+ Weekday[Weekday["First"] = 0] = "First";
4
+ Weekday[Weekday["Between"] = 1] = "Between";
5
+ Weekday[Weekday["Last"] = 2] = "Last";
6
+ })(Weekday || (Weekday = {}));
7
7
  //# sourceMappingURL=Weekday.js.map
@@ -1,11 +1,12 @@
1
- export declare class BlockRowData {
2
- blocks: Map<string, any>;
3
- blockLength: Map<string, number>;
4
- size(): number;
5
- getBlock(key: string): any;
6
- getBlockEntries(): IterableIterator<[string, any]>;
7
- setBlock(key: string, element: any): void;
8
- getBlockLength(key: string): number;
9
- setBlockLength(key: string, length: number): void;
10
- clear(): void;
11
- }
1
+ export declare class BlockRowData {
2
+ blocks: Map<string, HTMLElement>;
3
+ blockLength: Map<string, number>;
4
+ size(): number;
5
+ getBlock(key: string): HTMLElement;
6
+ getBlockEntries(): IterableIterator<[string, HTMLElement]>;
7
+ setBlock(key: string, element: HTMLElement): void;
8
+ getBlockLength(key: string): number;
9
+ setBlockLength(key: string, length: number): void;
10
+ clear(): void;
11
+ }
12
+ //# sourceMappingURL=blockRowData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockRowData.d.ts","sourceRoot":"","sources":["../../../src/model/blockRowData.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAEvB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAC7C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAa;IAE7C,IAAI,IAAI,MAAM;IAId,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW;IAIlC,eAAe,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAI1D,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW;IAI1C,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAInC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAI1C,KAAK;CAIN"}
@@ -1,29 +1,29 @@
1
- export class BlockRowData {
2
- constructor() {
3
- this.blocks = new Map();
4
- this.blockLength = new Map();
5
- }
6
- size() {
7
- return this.blocks.size;
8
- }
9
- getBlock(key) {
10
- return this.blocks.get(key);
11
- }
12
- getBlockEntries() {
13
- return this.blocks.entries();
14
- }
15
- setBlock(key, element) {
16
- this.blocks.set(key, element);
17
- }
18
- getBlockLength(key) {
19
- return this.blockLength.get(key);
20
- }
21
- setBlockLength(key, length) {
22
- this.blockLength.set(key, length);
23
- }
24
- clear() {
25
- this.blocks.clear();
26
- this.blockLength.clear();
27
- }
28
- }
1
+ export class BlockRowData {
2
+ constructor() {
3
+ this.blocks = new Map();
4
+ this.blockLength = new Map();
5
+ }
6
+ size() {
7
+ return this.blocks.size;
8
+ }
9
+ getBlock(key) {
10
+ return this.blocks.get(key);
11
+ }
12
+ getBlockEntries() {
13
+ return this.blocks.entries();
14
+ }
15
+ setBlock(key, element) {
16
+ this.blocks.set(key, element);
17
+ }
18
+ getBlockLength(key) {
19
+ return this.blockLength.get(key);
20
+ }
21
+ setBlockLength(key, length) {
22
+ this.blockLength.set(key, length);
23
+ }
24
+ clear() {
25
+ this.blocks.clear();
26
+ this.blockLength.clear();
27
+ }
28
+ }
29
29
  //# sourceMappingURL=blockRowData.js.map