@nuralyui/datepicker 0.0.4 → 0.0.6
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/bundle.js +788 -0
- package/datepicker.component.d.ts +189 -0
- package/datepicker.component.js +668 -0
- package/datepicker.component.js.map +1 -0
- package/datepicker.constant.d.ts +60 -0
- package/datepicker.constant.js +60 -0
- package/datepicker.constant.js.map +1 -0
- package/datepicker.style.d.ts +17 -0
- package/datepicker.style.js +455 -0
- package/datepicker.style.js.map +1 -0
- package/datepicker.style.variables.d.ts +2 -0
- package/datepicker.style.variables.js +119 -0
- package/datepicker.style.variables.js.map +1 -0
- package/datepicker.types.d.ts +113 -10
- package/datepicker.types.js +67 -0
- package/datepicker.types.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +16 -2
- package/react.d.ts +15 -2
- package/react.js +17 -4
- package/react.js.map +1 -1
- package/constants.d.ts +0 -2
- package/constants.d.ts.map +0 -1
- package/constants.js +0 -2
- package/constants.js.map +0 -1
- package/core/day.helper.d.ts +0 -5
- package/core/day.helper.d.ts.map +0 -1
- package/core/day.helper.js +0 -53
- package/core/day.helper.js.map +0 -1
- package/core/formatter.d.ts +0 -2
- package/core/formatter.d.ts.map +0 -1
- package/core/formatter.js +0 -9
- package/core/formatter.js.map +0 -1
- package/core/locale.helper.d.ts +0 -144
- package/core/locale.helper.d.ts.map +0 -1
- package/core/locale.helper.js +0 -151
- package/core/locale.helper.js.map +0 -1
- package/core/month.helper.d.ts +0 -3
- package/core/month.helper.d.ts.map +0 -1
- package/core/month.helper.js +0 -24
- package/core/month.helper.js.map +0 -1
- package/core/string.helper.d.ts +0 -2
- package/core/string.helper.d.ts.map +0 -1
- package/core/string.helper.js +0 -4
- package/core/string.helper.js.map +0 -1
- package/date-picker.component.d.ts +0 -80
- package/date-picker.component.d.ts.map +0 -1
- package/date-picker.component.js +0 -475
- package/date-picker.component.js.map +0 -1
- package/date-picker.style.d.ts +0 -2
- package/date-picker.style.d.ts.map +0 -1
- package/date-picker.style.js +0 -223
- package/date-picker.style.js.map +0 -1
- package/datepicker.types.d.ts.map +0 -1
- package/demo/date-picker-demo.d.ts +0 -18
- package/demo/date-picker-demo.d.ts.map +0 -1
- package/demo/date-picker-demo.js +0 -95
- package/demo/date-picker-demo.js.map +0 -1
- package/index.d.ts.map +0 -1
- package/react.d.ts.map +0 -1
- package/templates/days.template.d.ts +0 -4
- package/templates/days.template.d.ts.map +0 -1
- package/templates/days.template.js +0 -28
- package/templates/days.template.js.map +0 -1
- package/templates/headers.template.d.ts +0 -2
- package/templates/headers.template.d.ts.map +0 -1
- package/templates/headers.template.js +0 -5
- package/templates/headers.template.js.map +0 -1
- package/templates/months.template.d.ts +0 -6
- package/templates/months.template.d.ts.map +0 -1
- package/templates/months.template.js +0 -10
- package/templates/months.template.js.map +0 -1
- package/templates/years.template.d.ts +0 -6
- package/templates/years.template.d.ts.map +0 -1
- package/templates/years.template.js +0 -11
- package/templates/years.template.js.map +0 -1
- package/test/datepicker_test.d.ts +0 -2
- package/test/datepicker_test.d.ts.map +0 -1
- package/test/datepicker_test.js +0 -132
- package/test/datepicker_test.js.map +0 -1
package/core/locale.helper.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/af';
|
|
2
|
-
import 'dayjs/locale/am';
|
|
3
|
-
import 'dayjs/locale/ar-dz';
|
|
4
|
-
import 'dayjs/locale/ar-iq';
|
|
5
|
-
import 'dayjs/locale/ar-kw';
|
|
6
|
-
import 'dayjs/locale/ar-ly';
|
|
7
|
-
import 'dayjs/locale/ar-ma';
|
|
8
|
-
import 'dayjs/locale/ar-sa';
|
|
9
|
-
import 'dayjs/locale/ar-tn';
|
|
10
|
-
import 'dayjs/locale/ar';
|
|
11
|
-
import 'dayjs/locale/az';
|
|
12
|
-
import 'dayjs/locale/be';
|
|
13
|
-
import 'dayjs/locale/bg';
|
|
14
|
-
import 'dayjs/locale/bi';
|
|
15
|
-
import 'dayjs/locale/bm';
|
|
16
|
-
import 'dayjs/locale/bn-bd';
|
|
17
|
-
import 'dayjs/locale/bn';
|
|
18
|
-
import 'dayjs/locale/bo';
|
|
19
|
-
import 'dayjs/locale/br';
|
|
20
|
-
import 'dayjs/locale/bs';
|
|
21
|
-
import 'dayjs/locale/ca';
|
|
22
|
-
import 'dayjs/locale/cs';
|
|
23
|
-
import 'dayjs/locale/cv';
|
|
24
|
-
import 'dayjs/locale/cy';
|
|
25
|
-
import 'dayjs/locale/da';
|
|
26
|
-
import 'dayjs/locale/de-at';
|
|
27
|
-
import 'dayjs/locale/de-ch';
|
|
28
|
-
import 'dayjs/locale/de';
|
|
29
|
-
import 'dayjs/locale/dv';
|
|
30
|
-
import 'dayjs/locale/el';
|
|
31
|
-
import 'dayjs/locale/en-au';
|
|
32
|
-
import 'dayjs/locale/en-ca';
|
|
33
|
-
import 'dayjs/locale/en-gb';
|
|
34
|
-
import 'dayjs/locale/en-ie';
|
|
35
|
-
import 'dayjs/locale/en-il';
|
|
36
|
-
import 'dayjs/locale/en-in';
|
|
37
|
-
import 'dayjs/locale/en-nz';
|
|
38
|
-
import 'dayjs/locale/en-sg';
|
|
39
|
-
import 'dayjs/locale/en-tt';
|
|
40
|
-
import 'dayjs/locale/en';
|
|
41
|
-
import 'dayjs/locale/eo';
|
|
42
|
-
import 'dayjs/locale/es-do';
|
|
43
|
-
import 'dayjs/locale/es-mx';
|
|
44
|
-
import 'dayjs/locale/es-pr';
|
|
45
|
-
import 'dayjs/locale/es-us';
|
|
46
|
-
import 'dayjs/locale/es';
|
|
47
|
-
import 'dayjs/locale/et';
|
|
48
|
-
import 'dayjs/locale/eu';
|
|
49
|
-
import 'dayjs/locale/fa';
|
|
50
|
-
import 'dayjs/locale/fi';
|
|
51
|
-
import 'dayjs/locale/fo';
|
|
52
|
-
import 'dayjs/locale/fr-ca';
|
|
53
|
-
import 'dayjs/locale/fr-ch';
|
|
54
|
-
import 'dayjs/locale/fr';
|
|
55
|
-
import 'dayjs/locale/fy';
|
|
56
|
-
import 'dayjs/locale/ga';
|
|
57
|
-
import 'dayjs/locale/gd';
|
|
58
|
-
import 'dayjs/locale/gl';
|
|
59
|
-
import 'dayjs/locale/gom-latn';
|
|
60
|
-
import 'dayjs/locale/gu';
|
|
61
|
-
import 'dayjs/locale/he';
|
|
62
|
-
import 'dayjs/locale/hi';
|
|
63
|
-
import 'dayjs/locale/hr';
|
|
64
|
-
import 'dayjs/locale/ht';
|
|
65
|
-
import 'dayjs/locale/hu';
|
|
66
|
-
import 'dayjs/locale/hy-am';
|
|
67
|
-
import 'dayjs/locale/id';
|
|
68
|
-
import 'dayjs/locale/is';
|
|
69
|
-
import 'dayjs/locale/it-ch';
|
|
70
|
-
import 'dayjs/locale/it';
|
|
71
|
-
import 'dayjs/locale/ja';
|
|
72
|
-
import 'dayjs/locale/jv';
|
|
73
|
-
import 'dayjs/locale/ka';
|
|
74
|
-
import 'dayjs/locale/kk';
|
|
75
|
-
import 'dayjs/locale/km';
|
|
76
|
-
import 'dayjs/locale/kn';
|
|
77
|
-
import 'dayjs/locale/ko';
|
|
78
|
-
import 'dayjs/locale/ku';
|
|
79
|
-
import 'dayjs/locale/ky';
|
|
80
|
-
import 'dayjs/locale/lb';
|
|
81
|
-
import 'dayjs/locale/lo';
|
|
82
|
-
import 'dayjs/locale/lt';
|
|
83
|
-
import 'dayjs/locale/lv';
|
|
84
|
-
import 'dayjs/locale/me';
|
|
85
|
-
import 'dayjs/locale/mi';
|
|
86
|
-
import 'dayjs/locale/mk';
|
|
87
|
-
import 'dayjs/locale/ml';
|
|
88
|
-
import 'dayjs/locale/mn';
|
|
89
|
-
import 'dayjs/locale/mr';
|
|
90
|
-
import 'dayjs/locale/ms-my';
|
|
91
|
-
import 'dayjs/locale/ms';
|
|
92
|
-
import 'dayjs/locale/mt';
|
|
93
|
-
import 'dayjs/locale/my';
|
|
94
|
-
import 'dayjs/locale/nb';
|
|
95
|
-
import 'dayjs/locale/ne';
|
|
96
|
-
import 'dayjs/locale/nl-be';
|
|
97
|
-
import 'dayjs/locale/nl';
|
|
98
|
-
import 'dayjs/locale/nn';
|
|
99
|
-
import 'dayjs/locale/oc-lnc';
|
|
100
|
-
import 'dayjs/locale/pa-in';
|
|
101
|
-
import 'dayjs/locale/pl';
|
|
102
|
-
import 'dayjs/locale/pt-br';
|
|
103
|
-
import 'dayjs/locale/pt';
|
|
104
|
-
import 'dayjs/locale/rn';
|
|
105
|
-
import 'dayjs/locale/ro';
|
|
106
|
-
import 'dayjs/locale/ru';
|
|
107
|
-
import 'dayjs/locale/rw';
|
|
108
|
-
import 'dayjs/locale/sd';
|
|
109
|
-
import 'dayjs/locale/se';
|
|
110
|
-
import 'dayjs/locale/si';
|
|
111
|
-
import 'dayjs/locale/sk';
|
|
112
|
-
import 'dayjs/locale/sl';
|
|
113
|
-
import 'dayjs/locale/sq';
|
|
114
|
-
import 'dayjs/locale/sr-cyrl';
|
|
115
|
-
import 'dayjs/locale/sr';
|
|
116
|
-
import 'dayjs/locale/ss';
|
|
117
|
-
import 'dayjs/locale/sv-fi';
|
|
118
|
-
import 'dayjs/locale/sv';
|
|
119
|
-
import 'dayjs/locale/sw';
|
|
120
|
-
import 'dayjs/locale/ta';
|
|
121
|
-
import 'dayjs/locale/te';
|
|
122
|
-
import 'dayjs/locale/tet';
|
|
123
|
-
import 'dayjs/locale/tg';
|
|
124
|
-
import 'dayjs/locale/th';
|
|
125
|
-
import 'dayjs/locale/tk';
|
|
126
|
-
import 'dayjs/locale/tl-ph';
|
|
127
|
-
import 'dayjs/locale/tlh';
|
|
128
|
-
import 'dayjs/locale/tr';
|
|
129
|
-
import 'dayjs/locale/tzl';
|
|
130
|
-
import 'dayjs/locale/tzm-latn';
|
|
131
|
-
import 'dayjs/locale/tzm';
|
|
132
|
-
import 'dayjs/locale/ug-cn';
|
|
133
|
-
import 'dayjs/locale/uk';
|
|
134
|
-
import 'dayjs/locale/ur';
|
|
135
|
-
import 'dayjs/locale/uz-latn';
|
|
136
|
-
import 'dayjs/locale/uz';
|
|
137
|
-
import 'dayjs/locale/vi';
|
|
138
|
-
import 'dayjs/locale/x-pseudo';
|
|
139
|
-
import 'dayjs/locale/yo';
|
|
140
|
-
import 'dayjs/locale/zh-cn';
|
|
141
|
-
import 'dayjs/locale/zh-hk';
|
|
142
|
-
import 'dayjs/locale/zh-tw';
|
|
143
|
-
import 'dayjs/locale/zh';
|
|
144
|
-
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
145
|
-
import localeData from 'dayjs/plugin/localeData';
|
|
146
|
-
import toObject from 'dayjs/plugin/toObject';
|
|
147
|
-
import dayjs from 'dayjs';
|
|
148
|
-
dayjs.extend(localeData);
|
|
149
|
-
dayjs.extend(customParseFormat);
|
|
150
|
-
dayjs.extend(toObject);
|
|
151
|
-
//# sourceMappingURL=locale.helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"locale.helper.js","sourceRoot":"","sources":["../../../../src/components/datepicker/core/locale.helper.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,C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ale/ar-kw';\nimport 'dayjs/locale/ar-ly';\nimport 'dayjs/locale/ar-ma';\nimport 'dayjs/locale/ar-sa';\nimport 'dayjs/locale/ar-tn';\nimport 'dayjs/locale/ar';\nimport 'dayjs/locale/az';\nimport 'dayjs/locale/be';\nimport 'dayjs/locale/bg';\nimport 'dayjs/locale/bi';\nimport 'dayjs/locale/bm';\nimport 'dayjs/locale/bn-bd';\nimport 'dayjs/locale/bn';\nimport 'dayjs/locale/bo';\nimport 'dayjs/locale/br';\nimport 'dayjs/locale/bs';\nimport 'dayjs/locale/ca';\nimport 'dayjs/locale/cs';\nimport 'dayjs/locale/cv';\nimport 'dayjs/locale/cy';\nimport 'dayjs/locale/da';\nimport 'dayjs/locale/de-at';\nimport 'dayjs/locale/de-ch';\nimport 'dayjs/locale/de';\nimport 'dayjs/locale/dv';\nimport 'dayjs/locale/el';\nimport 'dayjs/locale/en-au';\nimport 'dayjs/locale/en-ca';\nimport 'dayjs/locale/en-gb';\nimport 'dayjs/locale/en-ie';\nimport 'dayjs/locale/en-il';\nimport 'dayjs/locale/en-in';\nimport 'dayjs/locale/en-nz';\nimport 'dayjs/locale/en-sg';\nimport 'dayjs/locale/en-tt';\nimport 'dayjs/locale/en';\nimport 'dayjs/locale/eo';\nimport 'dayjs/locale/es-do';\nimport 'dayjs/locale/es-mx';\nimport 'dayjs/locale/es-pr';\nimport 'dayjs/locale/es-us';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/et';\nimport 'dayjs/locale/eu';\nimport 'dayjs/locale/fa';\nimport 'dayjs/locale/fi';\nimport 'dayjs/locale/fo';\nimport 'dayjs/locale/fr-ca';\nimport 'dayjs/locale/fr-ch';\nimport 'dayjs/locale/fr';\nimport 'dayjs/locale/fy';\nimport 'dayjs/locale/ga';\nimport 'dayjs/locale/gd';\nimport 'dayjs/locale/gl';\nimport 'dayjs/locale/gom-latn';\nimport 'dayjs/locale/gu';\nimport 'dayjs/locale/he';\nimport 'dayjs/locale/hi';\nimport 'dayjs/locale/hr';\nimport 'dayjs/locale/ht';\nimport 'dayjs/locale/hu';\nimport 'dayjs/locale/hy-am';\nimport 'dayjs/locale/id';\nimport 'dayjs/locale/is';\nimport 'dayjs/locale/it-ch';\nimport 'dayjs/locale/it';\nimport 'dayjs/locale/ja';\nimport 'dayjs/locale/jv';\nimport 'dayjs/locale/ka';\nimport 'dayjs/locale/kk';\nimport 'dayjs/locale/km';\nimport 'dayjs/locale/kn';\nimport 'dayjs/locale/ko';\nimport 'dayjs/locale/ku';\nimport 'dayjs/locale/ky';\nimport 'dayjs/locale/lb';\nimport 'dayjs/locale/lo';\nimport 'dayjs/locale/lt';\nimport 'dayjs/locale/lv';\nimport 'dayjs/locale/me';\nimport 'dayjs/locale/mi';\nimport 'dayjs/locale/mk';\nimport 'dayjs/locale/ml';\nimport 'dayjs/locale/mn';\nimport 'dayjs/locale/mr';\nimport 'dayjs/locale/ms-my';\nimport 'dayjs/locale/ms';\nimport 'dayjs/locale/mt';\nimport 'dayjs/locale/my';\nimport 'dayjs/locale/nb';\nimport 'dayjs/locale/ne';\nimport 'dayjs/locale/nl-be';\nimport 'dayjs/locale/nl';\nimport 'dayjs/locale/nn';\nimport 'dayjs/locale/oc-lnc';\nimport 'dayjs/locale/pa-in';\nimport 'dayjs/locale/pl';\nimport 'dayjs/locale/pt-br';\nimport 'dayjs/locale/pt';\nimport 'dayjs/locale/rn';\nimport 'dayjs/locale/ro';\nimport 'dayjs/locale/ru';\nimport 'dayjs/locale/rw';\nimport 'dayjs/locale/sd';\nimport 'dayjs/locale/se';\nimport 'dayjs/locale/si';\nimport 'dayjs/locale/sk';\nimport 'dayjs/locale/sl';\nimport 'dayjs/locale/sq';\nimport 'dayjs/locale/sr-cyrl';\nimport 'dayjs/locale/sr';\nimport 'dayjs/locale/ss';\nimport 'dayjs/locale/sv-fi';\nimport 'dayjs/locale/sv';\nimport 'dayjs/locale/sw';\nimport 'dayjs/locale/ta';\nimport 'dayjs/locale/te';\nimport 'dayjs/locale/tet';\nimport 'dayjs/locale/tg';\nimport 'dayjs/locale/th';\nimport 'dayjs/locale/tk';\nimport 'dayjs/locale/tl-ph';\nimport 'dayjs/locale/tlh';\nimport 'dayjs/locale/tr';\nimport 'dayjs/locale/tzl';\nimport 'dayjs/locale/tzm-latn';\nimport 'dayjs/locale/tzm';\nimport 'dayjs/locale/ug-cn';\nimport 'dayjs/locale/uk';\nimport 'dayjs/locale/ur';\nimport 'dayjs/locale/uz-latn';\nimport 'dayjs/locale/uz';\nimport 'dayjs/locale/vi';\nimport 'dayjs/locale/x-pseudo';\nimport 'dayjs/locale/yo';\nimport 'dayjs/locale/zh-cn';\nimport 'dayjs/locale/zh-hk';\nimport 'dayjs/locale/zh-tw';\nimport 'dayjs/locale/zh';\n\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localeData from 'dayjs/plugin/localeData';\nimport toObject from 'dayjs/plugin/toObject';\nimport dayjs from 'dayjs';\n\ndayjs.extend(localeData);\ndayjs.extend(customParseFormat);\ndayjs.extend(toObject);\n"]}
|
package/core/month.helper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"month.helper.d.ts","sourceRoot":"","sources":["../../../../src/components/datepicker/core/month.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD,eAAO,MAAM,eAAe,SAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,EAAE,uBAsB1E,CAAC"}
|
package/core/month.helper.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getDayDetails, getNumberOfDays } from './day.helper.js';
|
|
2
|
-
export const getMonthDetails = (year, month, days) => {
|
|
3
|
-
const firstDay = new Date(year, month).getDay();
|
|
4
|
-
const numberOfDays = getNumberOfDays(year, month);
|
|
5
|
-
const monthArray = [];
|
|
6
|
-
let currentDay;
|
|
7
|
-
let index = 0;
|
|
8
|
-
for (let row = 0; row < 6; row++) {
|
|
9
|
-
for (let col = 0; col < 7; col++) {
|
|
10
|
-
currentDay = getDayDetails({
|
|
11
|
-
dayIndex: index,
|
|
12
|
-
numberOfDays,
|
|
13
|
-
firstDay,
|
|
14
|
-
year,
|
|
15
|
-
month,
|
|
16
|
-
days,
|
|
17
|
-
});
|
|
18
|
-
monthArray.push(currentDay);
|
|
19
|
-
index++;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return monthArray;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=month.helper.js.map
|
package/core/month.helper.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"month.helper.js","sourceRoot":"","sources":["../../../../src/components/datepicker/core/month.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAG/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,IAAc,EAAE,EAAE;IAC7E,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClD,MAAM,UAAU,GAAuB,EAAE,CAAC;IAC1C,IAAI,UAA4B,CAAC;IACjC,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;QAChC,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;YAChC,UAAU,GAAG,aAAa,CAAC;gBACzB,QAAQ,EAAE,KAAK;gBACf,YAAY;gBACZ,QAAQ;gBACR,IAAI;gBACJ,KAAK;gBACL,IAAI;aACL,CAAC,CAAC;YACH,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC5B,KAAK,EAAE,CAAC;SACT;KACF;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import {getDayDetails, getNumberOfDays} from './day.helper.js';\nimport {IDayPresentation} from '../datepicker.types.js';\n\nexport const getMonthDetails = (year: number, month: number, days: string[]) => {\n const firstDay = new Date(year, month).getDay();\n const numberOfDays = getNumberOfDays(year, month);\n const monthArray: IDayPresentation[] = [];\n let currentDay: IDayPresentation;\n let index = 0;\n\n for (let row = 0; row < 6; row++) {\n for (let col = 0; col < 7; col++) {\n currentDay = getDayDetails({\n dayIndex: index,\n numberOfDays,\n firstDay,\n year,\n month,\n days,\n });\n monthArray.push(currentDay);\n index++;\n }\n }\n return monthArray;\n};\n"]}
|
package/core/string.helper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.helper.d.ts","sourceRoot":"","sources":["../../../../src/components/datepicker/core/string.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,WAAY,MAAM,WAEnD,CAAC"}
|
package/core/string.helper.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.helper.js","sourceRoot":"","sources":["../../../../src/components/datepicker/core/string.helper.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,EAAE;IACtD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC","sourcesContent":["export const capitalizeFirstLetter = (string: string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n"]}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google Laabidi Aymen
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*/
|
|
6
|
-
/// <reference types="react" />
|
|
7
|
-
import { LitElement, nothing, PropertyValues, TemplateResult } from 'lit';
|
|
8
|
-
import { IDayPresentation, INavigationDate, Mode } from './datepicker.types.js';
|
|
9
|
-
import './core/locale.helper.js';
|
|
10
|
-
import { INPUT_SIZE, INPUT_STATE } from '../input/input.constant.js';
|
|
11
|
-
export declare class HyDatePickerElement extends LitElement {
|
|
12
|
-
today: import("dayjs").Dayjs;
|
|
13
|
-
name: string;
|
|
14
|
-
locale: string;
|
|
15
|
-
mode: Mode;
|
|
16
|
-
range: boolean;
|
|
17
|
-
prevMode: Mode;
|
|
18
|
-
openedCalendar: boolean;
|
|
19
|
-
monthsShort: import("dayjs").MonthNames;
|
|
20
|
-
months: import("dayjs").MonthNames;
|
|
21
|
-
days: import("dayjs").WeekdayNames;
|
|
22
|
-
weekdaysShort: import("dayjs").WeekdayNames;
|
|
23
|
-
currentYear: number;
|
|
24
|
-
currentDay: number;
|
|
25
|
-
currentMonth: number;
|
|
26
|
-
endYear: number;
|
|
27
|
-
endDay: number;
|
|
28
|
-
endMonth: number;
|
|
29
|
-
inputFieldValue: string;
|
|
30
|
-
fieldFormat: string;
|
|
31
|
-
dateValue: string;
|
|
32
|
-
navigationDates: INavigationDate;
|
|
33
|
-
dateInput: HTMLElement;
|
|
34
|
-
calendarContainer: HTMLElement;
|
|
35
|
-
daysPresentation: IDayPresentation[];
|
|
36
|
-
size: INPUT_SIZE;
|
|
37
|
-
state: INPUT_STATE;
|
|
38
|
-
label: string;
|
|
39
|
-
helper: string;
|
|
40
|
-
disabled: boolean;
|
|
41
|
-
INPUT_TYPE: string;
|
|
42
|
-
static styles: import("lit").CSSResult[];
|
|
43
|
-
connectedCallback(): void;
|
|
44
|
-
firstUpdated(): void;
|
|
45
|
-
willUpdate(changedProperties: PropertyValues): void;
|
|
46
|
-
_onClickOutside(e: MouseEvent): void;
|
|
47
|
-
toggleCaldendar(): void;
|
|
48
|
-
fillInputField(): void;
|
|
49
|
-
dispatchDateChange(): void;
|
|
50
|
-
positionCalendar: () => Promise<void>;
|
|
51
|
-
updateLocale(locale: string): void;
|
|
52
|
-
nextYear(): void;
|
|
53
|
-
prevYear(): void;
|
|
54
|
-
nextMonth(): void;
|
|
55
|
-
prevMonth(): void;
|
|
56
|
-
selectMonth: (selectedMonth: number) => void;
|
|
57
|
-
selectYear: (selectedYear: number) => void;
|
|
58
|
-
selectDay: (selectedDay: IDayPresentation) => void;
|
|
59
|
-
selectDateRange(selectedDay: IDayPresentation): void;
|
|
60
|
-
toggleMonthView(): void;
|
|
61
|
-
toggleYearView(): void;
|
|
62
|
-
inputChanged(inputChangedEvent: CustomEvent): void;
|
|
63
|
-
onFocus(): void;
|
|
64
|
-
renderContainer(isRange?: boolean): TemplateResult | typeof nothing;
|
|
65
|
-
renderCalendarHeader(): TemplateResult<1>;
|
|
66
|
-
renderCalendar(): TemplateResult<1>;
|
|
67
|
-
disconnectedCallback(): void;
|
|
68
|
-
render(): TemplateResult;
|
|
69
|
-
}
|
|
70
|
-
declare global {
|
|
71
|
-
interface HTMLElementTagNameMap {
|
|
72
|
-
'hy-datepicker': HyDatePickerElement;
|
|
73
|
-
}
|
|
74
|
-
namespace JSX {
|
|
75
|
-
interface IntrinsicElements {
|
|
76
|
-
'hy-datepicker': React.DetailedHTMLProps<React.HTMLAttributes<HyDatePickerElement>, HyDatePickerElement> | Partial<HyDatePickerElement>;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=date-picker.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.component.d.ts","sourceRoot":"","sources":["../../../src/components/datepicker/date-picker.component.ts"],"names":[],"mappings":"AAEA;;;;GAIG;;AAEH,OAAO,EAAE,UAAU,EAAQ,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKhF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAMhF,OAAO,yBAAyB,CAA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