@nocobase/plugin-calendar 2.1.0-beta.32 → 2.1.0-beta.33

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 (39) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +3 -0
  3. package/dist/client/calendar/utils.d.ts +1 -3
  4. package/dist/client/index.js +1 -1
  5. package/dist/client-v2/110.5d832243d7f309cc.js +10 -0
  6. package/dist/client-v2/701.ab4233a614cd3e0a.js +10 -0
  7. package/dist/client-v2/82.7b76afd4bcb77bb9.js +10 -0
  8. package/dist/client-v2/944.f4b4f1ca02f36c49.js +10 -0
  9. package/dist/client-v2/952.8117af037dabbb79.js +10 -0
  10. package/dist/client-v2/953.6fd23a3f18022252.js +10 -0
  11. package/dist/{client/models/components/style.d.ts → client-v2/index.d.ts} +2 -2
  12. package/dist/client-v2/index.js +10 -0
  13. package/dist/client-v2/locale.d.ts +10 -0
  14. package/dist/{client → client-v2}/models/CalendarBlockModel.d.ts +1 -1
  15. package/dist/{client → client-v2}/models/actions/CalendarActionModels.d.ts +1 -1
  16. package/dist/{client → client-v2}/models/components/CalendarBlock.d.ts +2 -0
  17. package/dist/client-v2/models/components/dateTimeUtils.d.ts +9 -0
  18. package/dist/client-v2/models/components/getLabelFormatValue.d.ts +11 -0
  19. package/dist/client-v2/models/components/global.style.d.ts +11 -0
  20. package/dist/client-v2/models/components/lazy.d.ts +11 -0
  21. package/dist/client-v2/models/components/style.d.ts +471 -0
  22. package/dist/client-v2/models/components/useCalendarHeight.d.ts +15 -0
  23. package/dist/client-v2/plugin.d.ts +53 -0
  24. package/dist/externalVersion.js +9 -8
  25. package/dist/node_modules/solarlunar-es/LICENSE +21 -0
  26. package/dist/node_modules/solarlunar-es/dist/solarlunar.cjs.js +1 -0
  27. package/dist/node_modules/solarlunar-es/dist/solarlunar.d.ts +145 -0
  28. package/dist/node_modules/solarlunar-es/dist/solarlunar.esm.js +1 -0
  29. package/dist/node_modules/solarlunar-es/package.json +1 -0
  30. package/dist/shared/calendar.d.ts +17 -0
  31. package/dist/shared/calendar.js +70 -0
  32. package/package.json +2 -2
  33. /package/dist/{client → client-v2}/models/actions/CalendarPopupModels.d.ts +0 -0
  34. /package/dist/{client → client-v2}/models/components/CalendarHeader.d.ts +0 -0
  35. /package/dist/{client → client-v2}/models/components/CalendarToolbar.d.ts +0 -0
  36. /package/dist/{client → client-v2}/models/components/CalendarViewContext.d.ts +0 -0
  37. /package/dist/{client → client-v2}/models/components/index.d.ts +0 -0
  38. /package/dist/{client → client-v2}/models/index.d.ts +0 -0
  39. /package/dist/{client → client-v2}/models/utils.d.ts +0 -0
@@ -0,0 +1,471 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const _default: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ calendar: {
11
+ height: string;
12
+ display: "flex";
13
+ flexDirection: "column";
14
+ overflow: "hidden";
15
+ marginBottom: number;
16
+ '.nb-calendar-body': {
17
+ flex: string;
18
+ minHeight: number;
19
+ overflow: "hidden";
20
+ };
21
+ '.rbc-calendar': {
22
+ boxSizing: "border-box";
23
+ display: "flex";
24
+ flexDirection: "column";
25
+ alignItems: "stretch";
26
+ height: string;
27
+ };
28
+ '.rbc-calendar *, .rbc-calendar *:before, .rbc-calendar *:after': {
29
+ boxSizing: "inherit";
30
+ };
31
+ '.rbc-rtl': {
32
+ direction: "rtl";
33
+ };
34
+ '.rbc-abs-full, .rbc-row-bg': {
35
+ overflow: "hidden";
36
+ position: "absolute";
37
+ top: number;
38
+ left: number;
39
+ right: number;
40
+ bottom: number;
41
+ };
42
+ '.rbc-ellipsis, .rbc-event-label, .rbc-row-segment .rbc-event-content, .rbc-show-more': {
43
+ display: "block";
44
+ overflow: "hidden";
45
+ textOverflow: "ellipsis";
46
+ whiteSpace: "nowrap";
47
+ };
48
+ '.rbc-header': {
49
+ overflow: "hidden";
50
+ flex: string;
51
+ textOverflow: "ellipsis";
52
+ whiteSpace: "nowrap";
53
+ padding: string;
54
+ verticalAlign: string;
55
+ minHeight: number;
56
+ color: string;
57
+ margin: string;
58
+ borderBottom: string;
59
+ };
60
+ '.rbc-header > a, .rbc-header > a:active, .rbc-header > a:visited': {
61
+ color: "inherit";
62
+ textDecoration: string;
63
+ };
64
+ '.rbc-rtl .rbc-header + .rbc-header': {
65
+ borderLeftWidth: number;
66
+ borderRight: string;
67
+ };
68
+ '.rbc-button-link': {
69
+ color: "inherit";
70
+ backgroundColor: "transparent";
71
+ border: string;
72
+ padding: number;
73
+ cursor: "pointer";
74
+ font: "inherit";
75
+ };
76
+ '.rbc-row': {
77
+ display: "flex";
78
+ flexDirection: "row";
79
+ };
80
+ '.rbc-row-content': {
81
+ position: "relative";
82
+ userSelect: "none";
83
+ WebkitUserSelect: "none";
84
+ zIndex: number;
85
+ };
86
+ '.rbc-row-content-scrollable': {
87
+ display: "flex";
88
+ flexDirection: "column";
89
+ height: string;
90
+ };
91
+ '.rbc-row-content-scrollable .rbc-row-content-scroll-container': {
92
+ height: string;
93
+ overflowY: "scroll";
94
+ msOverflowStyle: "none";
95
+ scrollbarWidth: "none";
96
+ };
97
+ '.rbc-row-content-scrollable .rbc-row-content-scroll-container::-webkit-scrollbar': {
98
+ display: "none";
99
+ };
100
+ '.rbc-row-segment': {
101
+ padding: string;
102
+ };
103
+ '.rbc-month-view': {
104
+ position: "relative";
105
+ display: "flex";
106
+ flexDirection: "column";
107
+ flex: string;
108
+ width: string;
109
+ userSelect: "none";
110
+ WebkitUserSelect: "none";
111
+ height: string;
112
+ minHeight: number;
113
+ overflow: "hidden";
114
+ '.rbc-day-bg': {
115
+ borderTop: string;
116
+ };
117
+ '.rbc-today': {
118
+ borderColor: string;
119
+ backgroundColor: string;
120
+ };
121
+ '.rbc-header': {
122
+ borderBottom: number;
123
+ };
124
+ };
125
+ '.rbc-month-header': {
126
+ display: "flex";
127
+ flexDirection: "row";
128
+ };
129
+ '.rbc-month-row': {
130
+ display: "flex";
131
+ position: "relative";
132
+ flexDirection: "column";
133
+ flex: string;
134
+ flexBasis: number;
135
+ overflow: "hidden";
136
+ height: string;
137
+ };
138
+ '.rbc-row-bg': {
139
+ display: "flex";
140
+ flexDirection: "row";
141
+ flex: string;
142
+ overflow: "hidden";
143
+ };
144
+ '.rbc-day-bg': {
145
+ flex: string;
146
+ margin: string;
147
+ '&:hover': {
148
+ background: string;
149
+ };
150
+ };
151
+ '.rbc-date-cell': {
152
+ flex: string;
153
+ minWidth: number;
154
+ paddingLeft: number;
155
+ paddingTop: number;
156
+ };
157
+ '.rbc-date-cell.rbc-now span, .rbc-date-cell a:hover': {
158
+ color: string;
159
+ };
160
+ '.rbc-date-cell a, .rbc-date-cell a:active, .rbc-date-cell a:visited': {
161
+ color: "inherit";
162
+ textDecoration: string;
163
+ };
164
+ '.rbc-date-cell .rbc-date-solar': {
165
+ fontWeight: number;
166
+ };
167
+ '.rbc-date-solar-week': {
168
+ fontSize: number;
169
+ };
170
+ '.rbc-date-cell .rbc-date-lunar': {
171
+ paddingLeft: number;
172
+ };
173
+ '.rbc-date-cell:not(.rbc-off-range) .rbc-date-lunar, .rbc-time-header-cell .rbc-header:not(.rbc-today) .rbc-date-lunar': {
174
+ color: string;
175
+ };
176
+ '.rbc-off-range': {
177
+ color: string;
178
+ };
179
+ '.rbc-event': {
180
+ border: string;
181
+ boxSizing: "border-box";
182
+ boxShadow: "none";
183
+ margin: number;
184
+ padding: string;
185
+ backgroundColor: string;
186
+ borderRadius: number;
187
+ color: string;
188
+ cursor: "pointer";
189
+ fontSize: number;
190
+ width: string;
191
+ textAlign: "left";
192
+ '&:hover': {
193
+ backgroundColor: string;
194
+ color: string;
195
+ };
196
+ };
197
+ '.rbc-event.rbc-selected': {
198
+ backgroundColor: string;
199
+ color: string;
200
+ };
201
+ '.rbc-slot-selecting .rbc-event': {
202
+ cursor: "inherit";
203
+ pointerEvents: "none";
204
+ };
205
+ '.rbc-event-label': {
206
+ fontSize: string;
207
+ };
208
+ '.rbc-event-overlaps': {
209
+ boxShadow: "-1px 1px 5px 0px rgba(51, 51, 51, 0.5)";
210
+ };
211
+ '.rbc-event-continues-prior': {
212
+ borderTopLeftRadius: number;
213
+ borderBottomLeftRadius: number;
214
+ };
215
+ '.rbc-event-continues-after': {
216
+ borderTopRightRadius: number;
217
+ borderBottomRightRadius: number;
218
+ };
219
+ '.rbc-event-continues-earlier': {
220
+ borderTopLeftRadius: number;
221
+ borderTopRightRadius: number;
222
+ };
223
+ '.rbc-event-continues-later': {
224
+ borderBottomLeftRadius: number;
225
+ borderBottomRightRadius: number;
226
+ };
227
+ '.rbc-selected-cell': {
228
+ backgroundColor: "rgba(0, 0, 0, 0.1)";
229
+ };
230
+ '.rbc-show-more': {
231
+ zIndex: number;
232
+ fontWeight: "bold";
233
+ fontSize: string;
234
+ height: string;
235
+ lineHeight: string;
236
+ color: "inherit";
237
+ padding: string;
238
+ };
239
+ '.rbc-time-view': {
240
+ display: "flex";
241
+ flexDirection: "column";
242
+ flex: number;
243
+ width: string;
244
+ borderTop: string;
245
+ minHeight: number;
246
+ };
247
+ '.rbc-time-view .rbc-time-gutter': {
248
+ whiteSpace: "nowrap";
249
+ };
250
+ '.rbc-time-view .rbc-allday-cell': {
251
+ boxSizing: "content-box";
252
+ width: string;
253
+ height: string;
254
+ position: "relative";
255
+ };
256
+ '.rbc-time-view .rbc-allday-cell + .rbc-allday-cell': {
257
+ borderLeft: string;
258
+ };
259
+ '.rbc-time-view .rbc-allday-events': {
260
+ position: "relative";
261
+ zIndex: number;
262
+ };
263
+ '.rbc-time-view .rbc-row': {
264
+ boxSizing: "border-box";
265
+ minHeight: string;
266
+ };
267
+ '.rbc-time-header': {
268
+ display: "flex";
269
+ flex: string;
270
+ flexDirection: "row";
271
+ };
272
+ '.rbc-time-header.rbc-overflowing': {
273
+ borderRight: string;
274
+ };
275
+ '.rbc-rtl .rbc-time-header.rbc-overflowing': {
276
+ borderRightWidth: number;
277
+ borderLeft: string;
278
+ };
279
+ '.rbc-time-header > .rbc-row:first-child, .rbc-time-header > .rbc-row.rbc-row-resource': {
280
+ borderBottom: string;
281
+ };
282
+ '.rbc-time-header-content': {
283
+ flex: number;
284
+ minWidth: number;
285
+ flexDirection: "column";
286
+ };
287
+ '.rbc-rtl .rbc-time-header-content': {
288
+ borderLeftWidth: number;
289
+ borderRight: string;
290
+ };
291
+ '.rbc-time-header-content + .rbc-time-header-content': {
292
+ marginLeft: string;
293
+ };
294
+ '.rbc-time-header-content > .rbc-row.rbc-row-resource': {
295
+ borderBottom: string;
296
+ flexShrink: number;
297
+ };
298
+ '.rbc-time-header-gutter, .rbc-header-gutter': {
299
+ flex: string;
300
+ };
301
+ '.rbc-time-header-gutter': {
302
+ lineHeight: string;
303
+ };
304
+ '.rbc-time-header-cell': {
305
+ minHeight: string;
306
+ };
307
+ '.rbc-time-header-cell-single-day': {
308
+ display: "none";
309
+ };
310
+ '.rbc-time-header-cell .rbc-header': {
311
+ display: "flex";
312
+ };
313
+ '.rbc-time-header-cell .rbc-header.rbc-today': {
314
+ borderColor: string;
315
+ backgroundColor: string;
316
+ color: string;
317
+ };
318
+ '.rbc-time-header-cell .rbc-header a': {
319
+ display: "flex";
320
+ flexDirection: "column";
321
+ };
322
+ '.rbc-time-header-cell .rbc-date-wrap': {
323
+ display: "flex";
324
+ alignItems: "center";
325
+ };
326
+ '.rbc-time-header-cell .rbc-date-solar': {
327
+ fontSize: string;
328
+ };
329
+ '.rbc-time-header-cell .rbc-date-solar-week': {
330
+ fontSize: string;
331
+ };
332
+ '.rbc-time-header-cell .rbc-date-lunar, .rbc-toolbar-lunar': {
333
+ marginLeft: string;
334
+ };
335
+ '.rbc-calendar.view-week': {
336
+ '.rbc-time-header-cell': {
337
+ marginTop: string;
338
+ marginBottom: string;
339
+ };
340
+ '.rbc-time-view': {
341
+ paddingTop: string;
342
+ borderTop: number;
343
+ };
344
+ '.rbc-header': {
345
+ padding: string;
346
+ };
347
+ '.rbc-time-header-content': {
348
+ padding: string;
349
+ };
350
+ '.rbc-time-header-gutter': {
351
+ padding: number;
352
+ paddingTop: string;
353
+ '> div': {
354
+ borderTop: string;
355
+ padding: string;
356
+ };
357
+ };
358
+ };
359
+ '.rbc-time-content': {
360
+ display: "flex";
361
+ flex: string;
362
+ alignItems: "flex-start";
363
+ width: string;
364
+ borderTop: string;
365
+ overflowY: "auto";
366
+ position: "relative";
367
+ };
368
+ '.rbc-time-content > .rbc-time-gutter': {
369
+ flex: string;
370
+ };
371
+ '.rbc-rtl .rbc-time-content > * + * > *': {
372
+ borderLeftWidth: number;
373
+ borderRight: string;
374
+ };
375
+ '.rbc-time-content > .rbc-day-slot': {
376
+ width: string;
377
+ userSelect: "none";
378
+ WebkitUserSelect: "none";
379
+ };
380
+ '.rbc-time-slot': {
381
+ flex: string;
382
+ };
383
+ '.rbc-time-slot.rbc-now': {
384
+ fontWeight: number;
385
+ };
386
+ '.rbc-time-column': {
387
+ display: "flex";
388
+ flexDirection: "column";
389
+ minHeight: string;
390
+ };
391
+ '.rbc-time-column .rbc-timeslot-group': {
392
+ flex: number;
393
+ };
394
+ '.rbc-timeslot-group': {
395
+ borderBottom: string;
396
+ minHeight: string;
397
+ lineHeight: string;
398
+ display: "flex";
399
+ flexFlow: "column nowrap";
400
+ '&:hover': {
401
+ background: string;
402
+ };
403
+ };
404
+ '.rbc-day-slot': {
405
+ position: "relative";
406
+ };
407
+ '.rbc-day-header': {
408
+ textAlign: "center";
409
+ };
410
+ '.rbc-day-slot .rbc-events-container': {
411
+ bottom: number;
412
+ left: number;
413
+ position: "absolute";
414
+ right: number;
415
+ marginRight: string;
416
+ top: number;
417
+ };
418
+ '.rbc-day-slot .rbc-events-container.rbc-rtl': {
419
+ left: string;
420
+ right: number;
421
+ };
422
+ '.rbc-day-slot .rbc-event': {
423
+ border: string;
424
+ display: "flex";
425
+ maxHeight: string;
426
+ minHeight: string;
427
+ flexFlow: "column wrap";
428
+ alignItems: "flex-start";
429
+ overflow: "hidden";
430
+ position: "absolute";
431
+ };
432
+ '.rbc-day-slot .rbc-event-label': {
433
+ flex: string;
434
+ paddingRight: string;
435
+ width: string;
436
+ };
437
+ '.rbc-day-slot .rbc-event-content': {
438
+ width: string;
439
+ flex: string;
440
+ wordWrap: "break-word";
441
+ lineHeight: number;
442
+ height: string;
443
+ minHeight: string;
444
+ };
445
+ '.rbc-label': {
446
+ padding: string;
447
+ };
448
+ '.rbc-slot-selection': {
449
+ zIndex: number;
450
+ position: "absolute";
451
+ backgroundColor: "rgba(0, 0, 0, 0.5)";
452
+ color: "white";
453
+ fontSize: string;
454
+ width: string;
455
+ padding: string;
456
+ };
457
+ '.rbc-slot-selecting': {
458
+ cursor: "move";
459
+ };
460
+ '.rbc-current-time-indicator': {
461
+ position: "absolute";
462
+ zIndex: number;
463
+ left: number;
464
+ right: number;
465
+ height: string;
466
+ backgroundColor: "#74ad31";
467
+ pointerEvents: "none";
468
+ };
469
+ };
470
+ }>;
471
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const useCalendarHeight: ({ height, heightMode, containerRef, actionBarRef, }: {
11
+ height?: number;
12
+ heightMode?: string;
13
+ containerRef: React.RefObject<HTMLDivElement>;
14
+ actionBarRef: React.RefObject<HTMLDivElement>;
15
+ }) => number;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Application, Plugin } from '@nocobase/client-v2';
10
+ import React from 'react';
11
+ interface ColorFunctions {
12
+ loading: boolean;
13
+ getFontColor: (value: any) => string;
14
+ getBackgroundColor: (value: any) => string;
15
+ }
16
+ type TitleRendererProps = {
17
+ value: any;
18
+ };
19
+ export declare class PluginCalendarClient extends Plugin<any, Application> {
20
+ titleFieldInterfaces: {
21
+ [T: string]: {
22
+ TitleRenderer: React.FC<TitleRendererProps>;
23
+ };
24
+ };
25
+ colorFieldInterfaces: {
26
+ [T: string]: {
27
+ useGetColor: (field: any) => ColorFunctions;
28
+ };
29
+ };
30
+ dateTimeFieldInterfaces: string[];
31
+ registerTitleFieldInterface(key: string, options?: {
32
+ TitleRenderer: React.FC<TitleRendererProps>;
33
+ }): void;
34
+ getTitleFieldInterface(key: string): {
35
+ TitleRenderer: React.FC<TitleRendererProps>;
36
+ } | {
37
+ [T: string]: {
38
+ TitleRenderer: React.FC<TitleRendererProps>;
39
+ };
40
+ };
41
+ getTitleFieldInterfaces(): string[];
42
+ registerDateTimeFieldInterface(data: string | string[]): void;
43
+ getDateTimeFieldInterfaces(): string[];
44
+ registerColorFieldInterface(type: any, option: {
45
+ useGetColor: (field: any) => ColorFunctions;
46
+ }): void;
47
+ getColorFieldInterface(type: string): {
48
+ useGetColor: (field: any) => ColorFunctions;
49
+ };
50
+ getColorFieldInterfaces(): string[];
51
+ load(): Promise<void>;
52
+ }
53
+ export default PluginCalendarClient;
@@ -8,21 +8,22 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-beta.32",
11
+ "@nocobase/client": "2.1.0-beta.33",
12
12
  "react": "18.2.0",
13
+ "@nocobase/flow-engine": "2.1.0-beta.33",
14
+ "@nocobase/client-v2": "2.1.0-beta.33",
13
15
  "react-i18next": "11.18.6",
14
- "@nocobase/server": "2.1.0-beta.32",
15
- "@nocobase/test": "2.1.0-beta.32",
16
- "@ant-design/icons": "5.6.1",
17
- "@formily/react": "2.3.7",
16
+ "@nocobase/server": "2.1.0-beta.33",
18
17
  "dayjs": "1.11.13",
19
18
  "lodash": "4.18.1",
20
- "@nocobase/flow-engine": "2.1.0-beta.32",
19
+ "@nocobase/test": "2.1.0-beta.33",
20
+ "@ant-design/icons": "5.6.1",
21
+ "@formily/react": "2.3.7",
21
22
  "antd": "5.24.2",
22
23
  "react-dom": "18.2.0",
23
24
  "antd-style": "3.7.1",
24
25
  "@formily/core": "2.3.7",
25
26
  "@formily/shared": "2.3.7",
26
- "@nocobase/client-v2": "2.1.0-beta.32",
27
- "@formily/antd-v5": "1.2.3"
27
+ "@formily/antd-v5": "1.2.3",
28
+ "@nocobase/utils": "2.1.0-beta.33"
28
29
  };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 邱权武(qiuquanwu)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var b={149:b=>{var f={1:{1:"春节",15:"元宵"},2:{2:"龙抬头"},5:{5:"端午"},7:{7:"七夕",15:"中元"},8:{15:"中秋"},9:{9:"重阳"},12:{29:"除夕",30:"除夕"}};var c={1:{1:"元旦"},2:{14:"情人节"},3:{8:"妇女节"},4:{1:"愚人节",4:"清明节"},5:{1:"劳动节",4:"青年节"},6:{1:"儿童节"},7:{1:"建党节"},8:{1:"建军节"},9:{10:"教师节"},10:{1:"国庆节"}};const e={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,42192,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],lunarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],lTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],nStr4:["零","一","二","三","四","五","六","七","八","九","十"],lYearDays:function(b){var f,c=348;for(f=32768;f>8;f>>=1)c+=e.lunarInfo[b-1900]&f?1:0;return c+e.leapDays(b)},leapMonth:function(b){return 15&e.lunarInfo[b-1900]},leapDays:function(b){return e.leapMonth(b)?65536&e.lunarInfo[b-1900]?30:29:0},monthDays:function(b,f){return f>12||f<1?-1:e.lunarInfo[b-1900]&65536>>f?30:29},solarDays:function(b,f){if(f>12||f<1)return-1;var c=f-1;return 1==c?b%4==0&&b%100!=0||b%400==0?29:28:e.solarMonth[c]},toGanZhi:function(b){return e.gan[b%10]+e.zhi[b%12]},getTerm:function(b,f){if(b<1900||b>2100)return-1;if(f<1||f>24)return-1;var c=e.lTermInfo[b-1900],a=[parseInt("0x"+c.substr(0,5)).toString(),parseInt("0x"+c.substr(5,5)).toString(),parseInt("0x"+c.substr(10,5)).toString(),parseInt("0x"+c.substr(15,5)).toString(),parseInt("0x"+c.substr(20,5)).toString(),parseInt("0x"+c.substr(25,5)).toString()],r=[a[0].substr(0,1),a[0].substr(1,2),a[0].substr(3,1),a[0].substr(4,2),a[1].substr(0,1),a[1].substr(1,2),a[1].substr(3,1),a[1].substr(4,2),a[2].substr(0,1),a[2].substr(1,2),a[2].substr(3,1),a[2].substr(4,2),a[3].substr(0,1),a[3].substr(1,2),a[3].substr(3,1),a[3].substr(4,2),a[4].substr(0,1),a[4].substr(1,2),a[4].substr(3,1),a[4].substr(4,2),a[5].substr(0,1),a[5].substr(1,2),a[5].substr(3,1),a[5].substr(4,2)];return parseInt(r[f-1])},toChinaYear:function(b){var f=parseInt((b/1e3).toString()),c=parseInt((b%1e3/100).toString()),a=parseInt((b%100/10).toString()),r=b%10;return e.nStr4[f]+e.nStr4[c]+e.nStr4[a]+e.nStr4[r]+"年"},toChinaMonth:function(b){if(b>12||b<1)return-1;var f=e.nStr3[b-1];return f+="月"},toChinaDay:function(b){var f;switch(b){case 10:f="初十";break;case 20:f="二十";break;case 30:f="三十";break;default:f=e.nStr2[Math.floor(b/10)],f+=e.nStr1[b%10]}return f},getAnimal:function(b){return e.animals[(b-4)%12]},solar2lunar:function(b,a,r){if(b<1900||b>2100)return-1;if(1900==b&&1==a&&r<31)return-1;if(b)t=new Date(b,parseInt(a.toString())-1,r);else var t=new Date;var n,d=0,s=(b=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(1900,0,31))/864e5);for(n=1900;n<2101&&s>0;n++)s-=d=e.lYearDays(n);s<0&&(s+=d,n--);var u=new Date,o=!1;u.getFullYear()==b&&u.getMonth()+1==a&&u.getDate()==r&&(o=!0);var i=t.getDay(),l=e.nStr1[i];0==i&&(i=7);var h=n,g=e.leapMonth(n),p=!1;for(n=1;n<13&&s>0;n++)g>0&&n==g+1&&0==p?(--n,p=!0,d=e.leapDays(h)):d=e.monthDays(h,n),1==p&&n==g+1&&(p=!1),s-=d;0==s&&g>0&&n==g+1&&(p?p=!1:(p=!0,--n)),s<0&&(s+=d,--n);var D=n,v=s+1,_=a-1,m=e.getTerm(b,3),y=e.toGanZhi(b-4),S=new Date(b,1,m).getTime();new Date(b,_,r).getTime()<S&&(y=e.toGanZhi(b-5));var T=e.getTerm(b,2*a-1),I=e.getTerm(b,2*a),M=e.toGanZhi(12*(b-1900)+a+11);r>=T&&(M=e.toGanZhi(12*(b-1900)+a+12));var C=!1,w="";T==r&&(C=!0,w=e.lunarTerm[2*a-2]),I==r&&(C=!0,w=e.lunarTerm[2*a-1]);var x=Date.UTC(b,_,1,0,0,0,0)/864e5+25567+10,Y=e.toGanZhi(x+r-1),k=f[D]&&f[D][v]?f[D][v]:"";[2022,2025,2026,2027,2028,2029,2031,2032].includes(b)&&12===D&&29===v&&(k="除夕");var U=c[a]&&c[a][r]?c[a][r]:"";return{lYear:h,lMonth:D,lDay:v,animal:e.getAnimal(h),yearCn:e.toChinaYear(h),monthCn:(p&&g===D?"闰":"")+e.toChinaMonth(D),dayCn:e.toChinaDay(v),cYear:b,cMonth:a,cDay:r,gzYear:y,gzMonth:M,gzDay:Y,isToday:o,isLeap:p,nWeek:i,ncWeek:"星期"+l,isTerm:C,term:w,lunarFestival:k,festival:U}},lunar2solar:function(b,f,c,a){var r=e.leapMonth(b);if(e.leapDays(b),a&&r!=f)return-1;if(2100==b&&12==f&&c>1||1900==b&&1==f&&c<31)return-1;var t=e.monthDays(b,f);if(b<1900||b>2100||c>t)return-1;for(var n=0,d=1900;d<b;d++)n+=e.lYearDays(d);var s=0,u=!1;for(d=1;d<f;d++)s=e.leapMonth(b),u||s<=d&&s>0&&(n+=e.leapDays(b),u=!0),n+=e.monthDays(b,d);a&&(n+=t);var o=Date.UTC(1900,1,30,0,0,0),i=new Date(864e5*(n+c-31)+o),l=i.getUTCFullYear(),h=i.getUTCMonth()+1,g=i.getUTCDate();return e.solar2lunar(l,h,g)}};var a=e;b.exports=a}};var f={};function __nccwpck_require__(c){var e=f[c];if(e!==undefined){return e.exports}var a=f[c]={exports:{}};var r=true;try{b[c](a,a.exports,__nccwpck_require__);r=false}finally{if(r)delete f[c]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var c=__nccwpck_require__(149);module.exports=c})();