@dereekb/date 9.23.18 → 9.23.19
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/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/src/lib/date/date.day.d.ts +160 -0
- package/src/lib/date/date.day.js +207 -0
- package/src/lib/date/date.day.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.23.19](https://github.com/dereekb/dbx-components/compare/v9.23.18-dev...v9.23.19) (2023-05-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [9.23.18](https://github.com/dereekb/dbx-components/compare/v9.23.17-dev...v9.23.18) (2023-05-10)
|
|
6
10
|
|
|
7
11
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/date",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.19",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util": "9.23.
|
|
9
|
+
"@dereekb/util": "9.23.19",
|
|
10
10
|
"lodash.isequal": "^4.5.0",
|
|
11
11
|
"make-error": "^1.3.0",
|
|
12
12
|
"class-validator": "^0.13.2",
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { DayOfMonth, MapFunction, Maybe, MonthOfYear, YearNumber } from '@dereekb/util';
|
|
2
|
+
import { DateOrDateRange } from './date.range';
|
|
3
|
+
import { DateTimezoneUtcNormalInstance, DateTimezoneUtcNormalInstanceInput } from './date.timezone';
|
|
4
|
+
/**
|
|
5
|
+
* A Day/Month/Year number combination used to refer to a specific Day on a specific Year.
|
|
6
|
+
*
|
|
7
|
+
* 20220101 is January 1st 2022
|
|
8
|
+
*/
|
|
9
|
+
export declare type YearMonthDayCode = number;
|
|
10
|
+
/**
|
|
11
|
+
* Used for default YearMonthDay values
|
|
12
|
+
*/
|
|
13
|
+
export declare const UNKNOWN_YEAR_MONTH_DAY_CODE = 0;
|
|
14
|
+
export declare type UnknownYearMonthDayCode = typeof UNKNOWN_YEAR_MONTH_DAY_CODE;
|
|
15
|
+
/**
|
|
16
|
+
* YearMonthDay values in an object.
|
|
17
|
+
*/
|
|
18
|
+
export interface YearMonthDayCodePair {
|
|
19
|
+
day: number;
|
|
20
|
+
month: number;
|
|
21
|
+
year: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns the YearNumber for the YearWeekCode.
|
|
25
|
+
*
|
|
26
|
+
* @param yearMonthDayCode
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare function yearMonthDayCodeYear(yearMonthDayCode: YearMonthDayCode): YearNumber;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the MonthOfYear for the YearWeekCode.
|
|
32
|
+
*
|
|
33
|
+
* @param yearMonthDayCode
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
export declare function yearMonthDayCodeMonth(yearMonthDayCode: YearMonthDayCode): MonthOfYear;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the DayOfMonth for the YearWeekCode.
|
|
39
|
+
*
|
|
40
|
+
* @param yearMonthDayCode
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare function yearMonthDayCodeDay(yearMonthDayCode: YearMonthDayCode): DayOfMonth;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the YearMonthDayCodePair for the YearMonthDayCode.
|
|
46
|
+
*
|
|
47
|
+
* @param yearMonthDayCode
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
export declare function yearMonthDayCodePair(yearMonthDayCode: YearMonthDayCode): YearMonthDayCodePair;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a YearMonthDayCodePair using the input date and the current timezone.
|
|
53
|
+
*
|
|
54
|
+
* @param date
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
export declare function yearMonthDayCodePairFromDate(date: Date): YearMonthDayCodePair;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a YearMonthDayCode from the input pair.
|
|
60
|
+
*
|
|
61
|
+
* @param pair
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare function yearMonthDayCodeFromPair(pair: YearMonthDayCodePair): YearMonthDayCode;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a YearMonthDayCode from the input Date.
|
|
67
|
+
*
|
|
68
|
+
* @param date
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
export declare function yearMonthDayCodeFromDate(date: Date): YearMonthDayCode;
|
|
72
|
+
/**
|
|
73
|
+
* Used to convert the input to a YearMonthDayCode.
|
|
74
|
+
*/
|
|
75
|
+
export declare type YearMonthDayCodeFactory = ((dateOrYear: Date | number, month?: MonthOfYear, day?: DayOfMonth) => YearMonthDayCode) & {
|
|
76
|
+
_normal: DateTimezoneUtcNormalInstance;
|
|
77
|
+
};
|
|
78
|
+
export declare type YearMonthDayCodeDateTimezoneInput = DateTimezoneUtcNormalInstanceInput | DateTimezoneUtcNormalInstance;
|
|
79
|
+
export interface YearMonthDayCodeConfig {
|
|
80
|
+
/**
|
|
81
|
+
* (Optional) Input timezone configuration for a DateTimezoneUtcNormalInstance.
|
|
82
|
+
*
|
|
83
|
+
* Configured to use the system timezone by default.
|
|
84
|
+
*/
|
|
85
|
+
timezone?: YearMonthDayCodeDateTimezoneInput;
|
|
86
|
+
}
|
|
87
|
+
export declare function yearMonthDayCodeDateTimezoneInstance(input: YearMonthDayCodeDateTimezoneInput): DateTimezoneUtcNormalInstance;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the yearMonthDayCode for the input Date or Year/Month/Day combo.
|
|
90
|
+
*
|
|
91
|
+
* The date is expected to be relative to UTC.
|
|
92
|
+
*
|
|
93
|
+
* @param date
|
|
94
|
+
*/
|
|
95
|
+
export declare function yearMonthDayCode(date: Date): YearMonthDayCode;
|
|
96
|
+
export declare function yearMonthDayCode(year: number, month: MonthOfYear, day: DayOfMonth): YearMonthDayCode;
|
|
97
|
+
/**
|
|
98
|
+
* Creates a YearMonthDayCodeFactory using the optional input config.
|
|
99
|
+
*
|
|
100
|
+
* @param config
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
export declare function yearMonthDayCodeFactory(config?: YearMonthDayCodeConfig): YearMonthDayCodeFactory;
|
|
104
|
+
/**
|
|
105
|
+
* Used for returning an array of YearMonthDayCode values for a pre-configured date range.
|
|
106
|
+
*/
|
|
107
|
+
export declare type YearMonthDayCodesForDateRangeFactory = (dateOrDateRange: DateOrDateRange) => YearMonthDayCode[];
|
|
108
|
+
/**
|
|
109
|
+
* Returns the yearMonthDayCodes for the input Date's calendar month.
|
|
110
|
+
*
|
|
111
|
+
* The date is expected to be relative to UTC.
|
|
112
|
+
*
|
|
113
|
+
* @param date
|
|
114
|
+
*/
|
|
115
|
+
export declare function yearMonthDayCodesForDateRange(dateOrDateRange: DateOrDateRange): YearMonthDayCode[];
|
|
116
|
+
/**
|
|
117
|
+
* Create a YearMonthDayCodesForDateRangeFactory.
|
|
118
|
+
*
|
|
119
|
+
* @param factory
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
122
|
+
export declare function yearMonthDayCodesForDateRangeFactory(factory?: YearMonthDayCodeFactory): YearMonthDayCodesForDateRangeFactory;
|
|
123
|
+
/**
|
|
124
|
+
* Used to convert the input to a YearMonthDayCode.
|
|
125
|
+
*/
|
|
126
|
+
export declare type YearMonthDayCodeDateFactory = (yearMonthDayCode: YearMonthDayCode) => Date;
|
|
127
|
+
export declare type YearMonthDayCodeDateConfig = Pick<YearMonthDayCodeConfig, 'timezone'>;
|
|
128
|
+
/**
|
|
129
|
+
* Creates a YearMonthDayCodeDateFactory using the optional input config.
|
|
130
|
+
*
|
|
131
|
+
* @param config
|
|
132
|
+
* @returns
|
|
133
|
+
*/
|
|
134
|
+
export declare function yearMonthDayCodeDateFactory(config?: YearMonthDayCodeDateConfig): YearMonthDayCodeDateFactory;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
export interface YearMonthDayCodeGroup<B> {
|
|
139
|
+
readonly items: B[];
|
|
140
|
+
readonly dayCode: YearMonthDayCode;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Used to group the input items into an array of YearMonthDayCodeGroup values.
|
|
144
|
+
*/
|
|
145
|
+
export declare type YearMonthDayCodeGroupFactory<B> = (items: B[]) => YearMonthDayCodeGroup<B>[];
|
|
146
|
+
/**
|
|
147
|
+
* MapFunction that reads the relevant date to use for the YearMonthDayCode calculation from the input item.
|
|
148
|
+
*/
|
|
149
|
+
export declare type YearMonthDayCodeDateReader<B> = MapFunction<B, Maybe<Date>>;
|
|
150
|
+
export interface YearMonthDayCodeGroupFactoryConfig<B> {
|
|
151
|
+
yearMonthDayCodeFactory?: YearMonthDayCodeFactory | YearMonthDayCodeConfig;
|
|
152
|
+
dateReader: YearMonthDayCodeDateReader<B>;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Creates a YearMonthDayCodeGroupFactory.
|
|
156
|
+
*
|
|
157
|
+
* @param config
|
|
158
|
+
* @returns
|
|
159
|
+
*/
|
|
160
|
+
export declare function yearMonthDayCodeGroupFactory<B>(config: YearMonthDayCodeGroupFactoryConfig<B>): YearMonthDayCodeGroupFactory<B>;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.yearMonthDayCodeGroupFactory = exports.yearMonthDayCodeDateFactory = exports.yearMonthDayCodesForDateRangeFactory = exports.yearMonthDayCodesForDateRange = exports.yearMonthDayCodeFactory = exports.yearMonthDayCode = exports.yearMonthDayCodeDateTimezoneInstance = exports.yearMonthDayCodeFromDate = exports.yearMonthDayCodeFromPair = exports.yearMonthDayCodePairFromDate = exports.yearMonthDayCodePair = exports.yearMonthDayCodeDay = exports.yearMonthDayCodeMonth = exports.yearMonthDayCodeYear = exports.UNKNOWN_YEAR_MONTH_DAY_CODE = void 0;
|
|
4
|
+
const util_1 = require("@dereekb/util");
|
|
5
|
+
const date_fns_1 = require("date-fns");
|
|
6
|
+
const date_range_1 = require("./date.range");
|
|
7
|
+
const date_timezone_1 = require("./date.timezone");
|
|
8
|
+
/**
|
|
9
|
+
* Used for default YearMonthDay values
|
|
10
|
+
*/
|
|
11
|
+
exports.UNKNOWN_YEAR_MONTH_DAY_CODE = 0;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the YearNumber for the YearWeekCode.
|
|
14
|
+
*
|
|
15
|
+
* @param yearMonthDayCode
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
function yearMonthDayCodeYear(yearMonthDayCode) {
|
|
19
|
+
return Math.floor(yearMonthDayCode / 10000);
|
|
20
|
+
}
|
|
21
|
+
exports.yearMonthDayCodeYear = yearMonthDayCodeYear;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the MonthOfYear for the YearWeekCode.
|
|
24
|
+
*
|
|
25
|
+
* @param yearMonthDayCode
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
function yearMonthDayCodeMonth(yearMonthDayCode) {
|
|
29
|
+
return Math.floor((yearMonthDayCode % 10000) / 100);
|
|
30
|
+
}
|
|
31
|
+
exports.yearMonthDayCodeMonth = yearMonthDayCodeMonth;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the DayOfMonth for the YearWeekCode.
|
|
34
|
+
*
|
|
35
|
+
* @param yearMonthDayCode
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
function yearMonthDayCodeDay(yearMonthDayCode) {
|
|
39
|
+
return yearMonthDayCode % 100;
|
|
40
|
+
}
|
|
41
|
+
exports.yearMonthDayCodeDay = yearMonthDayCodeDay;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the YearMonthDayCodePair for the YearMonthDayCode.
|
|
44
|
+
*
|
|
45
|
+
* @param yearMonthDayCode
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
function yearMonthDayCodePair(yearMonthDayCode) {
|
|
49
|
+
return {
|
|
50
|
+
year: yearMonthDayCodeYear(yearMonthDayCode),
|
|
51
|
+
month: yearMonthDayCodeMonth(yearMonthDayCode),
|
|
52
|
+
day: yearMonthDayCodeDay(yearMonthDayCode)
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.yearMonthDayCodePair = yearMonthDayCodePair;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a YearMonthDayCodePair using the input date and the current timezone.
|
|
58
|
+
*
|
|
59
|
+
* @param date
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
function yearMonthDayCodePairFromDate(date) {
|
|
63
|
+
const day = date.getDate();
|
|
64
|
+
const month = (0, util_1.monthOfYearFromDate)(date);
|
|
65
|
+
const year = date.getFullYear();
|
|
66
|
+
return {
|
|
67
|
+
day,
|
|
68
|
+
month,
|
|
69
|
+
year
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.yearMonthDayCodePairFromDate = yearMonthDayCodePairFromDate;
|
|
73
|
+
/**
|
|
74
|
+
* Creates a YearMonthDayCode from the input pair.
|
|
75
|
+
*
|
|
76
|
+
* @param pair
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
function yearMonthDayCodeFromPair(pair) {
|
|
80
|
+
const { year, month, day } = pair;
|
|
81
|
+
const encodedYear = year * 10000;
|
|
82
|
+
const encodedMonth = month * 100;
|
|
83
|
+
return encodedYear + encodedMonth + day;
|
|
84
|
+
}
|
|
85
|
+
exports.yearMonthDayCodeFromPair = yearMonthDayCodeFromPair;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a YearMonthDayCode from the input Date.
|
|
88
|
+
*
|
|
89
|
+
* @param date
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
function yearMonthDayCodeFromDate(date) {
|
|
93
|
+
return yearMonthDayCodeFromPair(yearMonthDayCodePairFromDate(date));
|
|
94
|
+
}
|
|
95
|
+
exports.yearMonthDayCodeFromDate = yearMonthDayCodeFromDate;
|
|
96
|
+
function yearMonthDayCodeDateTimezoneInstance(input) {
|
|
97
|
+
const normal = input ? (input instanceof date_timezone_1.DateTimezoneUtcNormalInstance ? input : (0, date_timezone_1.dateTimezoneUtcNormal)(input)) : date_timezone_1.SYSTEM_DATE_TIMEZONE_UTC_NORMAL_INSTANCE;
|
|
98
|
+
return normal;
|
|
99
|
+
}
|
|
100
|
+
exports.yearMonthDayCodeDateTimezoneInstance = yearMonthDayCodeDateTimezoneInstance;
|
|
101
|
+
function yearMonthDayCode(dateOrYear, month, day) {
|
|
102
|
+
return yearMonthDayCodeFactory({ timezone: date_timezone_1.SYSTEM_DATE_TIMEZONE_UTC_NORMAL_INSTANCE })(dateOrYear, month, day);
|
|
103
|
+
}
|
|
104
|
+
exports.yearMonthDayCode = yearMonthDayCode;
|
|
105
|
+
/**
|
|
106
|
+
* Creates a YearMonthDayCodeFactory using the optional input config.
|
|
107
|
+
*
|
|
108
|
+
* @param config
|
|
109
|
+
* @returns
|
|
110
|
+
*/
|
|
111
|
+
function yearMonthDayCodeFactory(config) {
|
|
112
|
+
const normal = yearMonthDayCodeDateTimezoneInstance(config === null || config === void 0 ? void 0 : config.timezone);
|
|
113
|
+
const result = (dateOrYear, month, day) => {
|
|
114
|
+
let pair;
|
|
115
|
+
if ((0, date_fns_1.isDate)(dateOrYear)) {
|
|
116
|
+
const normalDate = normal.systemDateToTargetDate(dateOrYear);
|
|
117
|
+
pair = yearMonthDayCodePairFromDate(normalDate);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
pair = {
|
|
121
|
+
year: dateOrYear,
|
|
122
|
+
month: month,
|
|
123
|
+
day: day
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return yearMonthDayCodeFromPair(pair);
|
|
127
|
+
};
|
|
128
|
+
result._normal = normal;
|
|
129
|
+
return result;
|
|
130
|
+
}
|
|
131
|
+
exports.yearMonthDayCodeFactory = yearMonthDayCodeFactory;
|
|
132
|
+
/**
|
|
133
|
+
* Returns the yearMonthDayCodes for the input Date's calendar month.
|
|
134
|
+
*
|
|
135
|
+
* The date is expected to be relative to UTC.
|
|
136
|
+
*
|
|
137
|
+
* @param date
|
|
138
|
+
*/
|
|
139
|
+
function yearMonthDayCodesForDateRange(dateOrDateRange) {
|
|
140
|
+
return yearMonthDayCodesForDateRangeFactory(yearMonthDayCodeFactory({ timezone: date_timezone_1.SYSTEM_DATE_TIMEZONE_UTC_NORMAL_INSTANCE }))(dateOrDateRange);
|
|
141
|
+
}
|
|
142
|
+
exports.yearMonthDayCodesForDateRange = yearMonthDayCodesForDateRange;
|
|
143
|
+
/**
|
|
144
|
+
* Create a YearMonthDayCodesForDateRangeFactory.
|
|
145
|
+
*
|
|
146
|
+
* @param factory
|
|
147
|
+
* @returns
|
|
148
|
+
*/
|
|
149
|
+
function yearMonthDayCodesForDateRangeFactory(factory = yearMonthDayCodeFactory()) {
|
|
150
|
+
const { _normal } = factory;
|
|
151
|
+
return (dateOrDateRange) => {
|
|
152
|
+
const dateRange = (0, date_range_1.dateOrDateRangeToDateRange)(dateOrDateRange);
|
|
153
|
+
const start = _normal.systemDateToTargetDate(dateRange.start);
|
|
154
|
+
const end = _normal.systemDateToTargetDate(dateRange.end);
|
|
155
|
+
const codes = [];
|
|
156
|
+
(0, date_range_1.forEachDayInDateRange)({ start, end }, (date) => {
|
|
157
|
+
codes.push(yearMonthDayCodeFromDate(date));
|
|
158
|
+
});
|
|
159
|
+
return codes;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
exports.yearMonthDayCodesForDateRangeFactory = yearMonthDayCodesForDateRangeFactory;
|
|
163
|
+
/**
|
|
164
|
+
* Creates a YearMonthDayCodeDateFactory using the optional input config.
|
|
165
|
+
*
|
|
166
|
+
* @param config
|
|
167
|
+
* @returns
|
|
168
|
+
*/
|
|
169
|
+
function yearMonthDayCodeDateFactory(config) {
|
|
170
|
+
const normal = yearMonthDayCodeDateTimezoneInstance(config === null || config === void 0 ? void 0 : config.timezone);
|
|
171
|
+
return (yearMonthDayCode) => {
|
|
172
|
+
const pair = yearMonthDayCodePair(yearMonthDayCode);
|
|
173
|
+
const date = new Date(Date.UTC(pair.year, (0, util_1.makeDateMonthForMonthOfYear)(pair.month), pair.day, 0, 0, 0, 0));
|
|
174
|
+
const fixed = normal.targetDateToBaseDate(date);
|
|
175
|
+
return fixed;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
exports.yearMonthDayCodeDateFactory = yearMonthDayCodeDateFactory;
|
|
179
|
+
/**
|
|
180
|
+
* Creates a YearMonthDayCodeGroupFactory.
|
|
181
|
+
*
|
|
182
|
+
* @param config
|
|
183
|
+
* @returns
|
|
184
|
+
*/
|
|
185
|
+
function yearMonthDayCodeGroupFactory(config) {
|
|
186
|
+
const { yearMonthDayCodeFactory: factoryInput, dateReader } = config;
|
|
187
|
+
const readYearMonthDayCode = typeof factoryInput === 'function' ? factoryInput : yearMonthDayCodeFactory(factoryInput);
|
|
188
|
+
return (items) => {
|
|
189
|
+
const map = (0, util_1.makeValuesGroupMap)(items, (item) => {
|
|
190
|
+
let dayCode;
|
|
191
|
+
const date = dateReader(item);
|
|
192
|
+
if (date != null) {
|
|
193
|
+
dayCode = readYearMonthDayCode(date);
|
|
194
|
+
}
|
|
195
|
+
return dayCode;
|
|
196
|
+
});
|
|
197
|
+
const groups = Array.from(map.entries()).map(([dayCode, items]) => {
|
|
198
|
+
return {
|
|
199
|
+
dayCode: dayCode || 0,
|
|
200
|
+
items
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
return groups;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
exports.yearMonthDayCodeGroupFactory = yearMonthDayCodeGroupFactory;
|
|
207
|
+
//# sourceMappingURL=date.day.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.day.js","sourceRoot":"","sources":["../../../../../../packages/date/src/lib/date/date.day.ts"],"names":[],"mappings":";;;AAAA,wCAA+K;AAC/K,uCAA4D;AAC5D,6CAAkG;AAClG,mDAAqK;AASrK;;GAEG;AACU,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAa7C;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,gBAAkC;IACrE,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFD,oDAEC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,gBAAkC;IACtE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AACtD,CAAC;AAFD,sDAEC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,gBAAkC;IACpE,OAAO,gBAAgB,GAAG,GAAG,CAAC;AAChC,CAAC;AAFD,kDAEC;AAED;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,gBAAkC;IACrE,OAAO;QACL,IAAI,EAAE,oBAAoB,CAAC,gBAAgB,CAAC;QAC5C,KAAK,EAAE,qBAAqB,CAAC,gBAAgB,CAAC;QAC9C,GAAG,EAAE,mBAAmB,CAAC,gBAAgB,CAAC;KAC3C,CAAC;AACJ,CAAC;AAND,oDAMC;AAED;;;;;GAKG;AACH,SAAgB,4BAA4B,CAAC,IAAU;IACrD,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,IAAA,0BAAmB,EAAC,IAAI,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,CAAC,WA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