hijri-date-time-picker 1.0.0 → 1.0.2
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/LICENSE +21 -21
- package/README.md +185 -183
- package/dist/LICENSE +21 -0
- package/dist/README.md +185 -0
- package/dist/demo.d.ts +5 -1
- package/dist/demo.js +213 -173
- package/dist/esm2022/hijri-date-time-picker.mjs +5 -0
- package/dist/esm2022/index.mjs +3 -0
- package/dist/esm2022/lib/hijri-date-picker.component.mjs +606 -0
- package/dist/esm2022/lib/hijri-date-picker.types.mjs +22 -0
- package/dist/fesm2022/hijri-date-time-picker.mjs +634 -0
- package/dist/fesm2022/hijri-date-time-picker.mjs.map +1 -0
- package/dist/lib/hijri-date-picker.component.d.ts +8 -6
- package/dist/lib/hijri-date-picker.component.js +245 -118
- package/dist/lib/hijri-date-picker.types.d.ts +4 -4
- package/dist/lib/hijri-date-picker.types.js +66 -10
- package/package.json +48 -47
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Date picker mode types
|
|
3
3
|
*/
|
|
4
|
-
export type DateMode =
|
|
4
|
+
export type DateMode = "greg" | "hijri";
|
|
5
5
|
/**
|
|
6
6
|
* Text direction types
|
|
7
7
|
*/
|
|
8
|
-
export type Direction =
|
|
8
|
+
export type Direction = "ltr" | "rtl";
|
|
9
9
|
/**
|
|
10
10
|
* Locale types
|
|
11
11
|
*/
|
|
12
|
-
export type Locale =
|
|
12
|
+
export type Locale = "en" | "ar";
|
|
13
13
|
/**
|
|
14
14
|
* Selected date information
|
|
15
15
|
*/
|
|
@@ -34,7 +34,7 @@ export interface SelectedDate {
|
|
|
34
34
|
/**
|
|
35
35
|
* Time format types
|
|
36
36
|
*/
|
|
37
|
-
export type TimeFormat =
|
|
37
|
+
export type TimeFormat = "12" | "24";
|
|
38
38
|
/**
|
|
39
39
|
* Custom styling configuration
|
|
40
40
|
*/
|
|
@@ -2,20 +2,76 @@
|
|
|
2
2
|
* Month names in different locales
|
|
3
3
|
*/
|
|
4
4
|
export const GREGORIAN_MONTHS_EN = [
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
"January",
|
|
6
|
+
"February",
|
|
7
|
+
"March",
|
|
8
|
+
"April",
|
|
9
|
+
"May",
|
|
10
|
+
"June",
|
|
11
|
+
"July",
|
|
12
|
+
"August",
|
|
13
|
+
"September",
|
|
14
|
+
"October",
|
|
15
|
+
"November",
|
|
16
|
+
"December",
|
|
7
17
|
];
|
|
8
18
|
export const GREGORIAN_MONTHS_AR = [
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
"يناير",
|
|
20
|
+
"فبراير",
|
|
21
|
+
"مارس",
|
|
22
|
+
"أبريل",
|
|
23
|
+
"مايو",
|
|
24
|
+
"يونيو",
|
|
25
|
+
"يوليو",
|
|
26
|
+
"أغسطس",
|
|
27
|
+
"سبتمبر",
|
|
28
|
+
"أكتوبر",
|
|
29
|
+
"نوفمبر",
|
|
30
|
+
"ديسمبر",
|
|
11
31
|
];
|
|
12
32
|
export const HIJRI_MONTHS_EN = [
|
|
13
|
-
|
|
14
|
-
|
|
33
|
+
"Muharram",
|
|
34
|
+
"Safar",
|
|
35
|
+
"Rabi' al-Awwal",
|
|
36
|
+
"Rabi' al-Thani",
|
|
37
|
+
"Jumada al-Awwal",
|
|
38
|
+
"Jumada al-Thani",
|
|
39
|
+
"Rajab",
|
|
40
|
+
"Sha'ban",
|
|
41
|
+
"Ramadan",
|
|
42
|
+
"Shawwal",
|
|
43
|
+
"Dhu al-Qi'dah",
|
|
44
|
+
"Dhu al-Hijjah",
|
|
15
45
|
];
|
|
16
46
|
export const HIJRI_MONTHS_AR = [
|
|
17
|
-
|
|
18
|
-
|
|
47
|
+
"محرم",
|
|
48
|
+
"صفر",
|
|
49
|
+
"ربيع الأول",
|
|
50
|
+
"ربيع الثاني",
|
|
51
|
+
"جمادى الأولى",
|
|
52
|
+
"جمادى الثانية",
|
|
53
|
+
"رجب",
|
|
54
|
+
"شعبان",
|
|
55
|
+
"رمضان",
|
|
56
|
+
"شوال",
|
|
57
|
+
"ذو القعدة",
|
|
58
|
+
"ذو الحجة",
|
|
59
|
+
];
|
|
60
|
+
export const WEEKDAY_NAMES_EN = [
|
|
61
|
+
"Sun",
|
|
62
|
+
"Mon",
|
|
63
|
+
"Tue",
|
|
64
|
+
"Wed",
|
|
65
|
+
"Thu",
|
|
66
|
+
"Fri",
|
|
67
|
+
"Sat",
|
|
68
|
+
];
|
|
69
|
+
export const WEEKDAY_NAMES_AR = [
|
|
70
|
+
"الأحد",
|
|
71
|
+
"الإثنين",
|
|
72
|
+
"الثلاثاء",
|
|
73
|
+
"الأربعاء",
|
|
74
|
+
"الخميس",
|
|
75
|
+
"الجمعة",
|
|
76
|
+
"السبت",
|
|
19
77
|
];
|
|
20
|
-
export const WEEKDAY_NAMES_EN = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
21
|
-
export const WEEKDAY_NAMES_AR = ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'];
|
package/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hijri-date-time-picker",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Angular standalone component for dual-mode Gregorian and Hijri date selection",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md",
|
|
10
|
-
"LICENSE"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"angular",
|
|
18
|
-
"hijri",
|
|
19
|
-
"gregorian",
|
|
20
|
-
"date-picker",
|
|
21
|
-
"calendar",
|
|
22
|
-
"umm-al-qura"
|
|
23
|
-
],
|
|
24
|
-
"author": "Hany",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"homepage": "https://github.com/hanygamal72/hijri-date-time-picker#readme",
|
|
27
|
-
"bugs": {
|
|
28
|
-
"url": "https://github.com/hanygamal72/hijri-date-time-picker/issues"
|
|
29
|
-
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/hanygamal72/hijri-date-time-picker.git"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"@angular/
|
|
36
|
-
"@angular/
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"hijri-date": "^0.2.2"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"@angular/common": "^17.0.0",
|
|
44
|
-
"@angular/
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "hijri-date-time-picker",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Angular standalone component for dual-mode Gregorian and Hijri date selection",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"angular",
|
|
18
|
+
"hijri",
|
|
19
|
+
"gregorian",
|
|
20
|
+
"date-picker",
|
|
21
|
+
"calendar",
|
|
22
|
+
"umm-al-qura"
|
|
23
|
+
],
|
|
24
|
+
"author": "Hany",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"homepage": "https://github.com/hanygamal72/hijri-date-time-picker#readme",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/hanygamal72/hijri-date-time-picker/issues"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/hanygamal72/hijri-date-time-picker.git"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@angular/common": ">=15.0.0",
|
|
36
|
+
"@angular/core": ">=15.0.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"hijri-date": "^0.2.2",
|
|
40
|
+
"remixicon": "^4.7.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@angular/common": "^17.0.0",
|
|
44
|
+
"@angular/core": "^17.0.0",
|
|
45
|
+
"@angular/platform-browser": "^17.0.0",
|
|
46
|
+
"typescript": "^5.0.0"
|
|
47
|
+
}
|
|
48
|
+
}
|