Gathering detailed insights and metrics for ngx-hijri-gregorian-datepicker
Gathering detailed insights and metrics for ngx-hijri-gregorian-datepicker
Gathering detailed insights and metrics for ngx-hijri-gregorian-datepicker
Gathering detailed insights and metrics for ngx-hijri-gregorian-datepicker
Datepicker to support both hijri and gregorian calenders
npm install ngx-hijri-gregorian-datepicker
Typescript
Module System
Node Version
NPM Version
TypeScript (69.61%)
HTML (19.99%)
JavaScript (9.7%)
CSS (0.71%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
5 Stars
41 Commits
18 Forks
3 Watchers
8 Branches
3 Contributors
Updated on Sep 18, 2024
Latest Version
1.1.0
Package Id
ngx-hijri-gregorian-datepicker@1.1.0
Unpacked Size
240.17 kB
Size
82.19 kB
File Count
32
NPM Version
8.3.0
Node Version
16.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
DateFormatterService
to help converting date formats in both calendars types.Angular >=7.0.0
and its newly introduced ng g library
schematics.Online demo can be found here
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
npm i ngx-hijri-gregorian-datepicker
import { NgxHijriGregorianDatepickerModule } from 'ngx-hijri-gregorian-datepicker';
Input | Type | Required | Description |
---|---|---|---|
selectedDateType | DateType | No | Default calendar type , will be hijri if not sepcified. |
selectedDate | NgbDateStruct | No | Date to bind (two way binding). |
label | string | Yes | Label will be shown besides the input. |
readonly | bool | No | Specify if user can write in input manually without selecting from datepicker. |
isRequired | bool | No | Specify required or not field. |
disabled | bool | No | Specify disabled or not. |
minHijri | NgbDateStruct | No | Minimum allowed hijri date to select. |
maxHijri | NgbDateStruct | No | Maximum allowed hijri date to select. |
minGreg | NgbDateStruct | No | Minimum allowed Gregorian date to select. |
maxGreg | NgbDateStruct | No | Maximum allowed Gregorian date to select. |
hijriLabel | string | No | Label for Hijri button , will be 'Hijri' By Default. |
GregLabel | string | No | Label for Gregorian button , will be 'Gregorian' By Default. |
Output | Type | Required | Description |
---|---|---|---|
selectedDateChange | EventEmitter of NgbDateStruct | -- | Emitted after selecting date from picker. |
Make sure that @ng-bootstrap/ng-bootstrap
and bootstrap
with appropriate versions to angular 7.
npm i ngx-hijri-gregorian-datepicker
.NgxHijriGregorianDatepickerModule
in your app module
import { NgxHijriGregorianDatepickerModule } from 'ngx-hijri-gregorian-datepicker';
<hijri-gregorian-datepicker
[label]="'Birth Date'"
[(selectedDate)]="selectedDate"
[isRequired]="true"
[GregLabel]="'Gregorian'"
[hijriLabel] ="'Hijri'"
[selectedDateType]="selectedDateType"
#datePicker>
</hijri-gregorian-datepicker>`
import { NgbDate } from '@ng-bootstrap/ng-bootstrap';
import { DateType } from 'ngx-hijri-gregorian-datepicker';
@Component({...})
export class AppComponent {
date: NgbDate;
selectedDateType = DateType.Hijri; // or DateType.Gregorian
constructor() {}
}
DateFormatterService
Method | Parameter | Return | Description |
---|---|---|---|
ToGregorianDateStruct() | gregorianDate: string, format:string | NgbDate | Convert string gregorian date to date struct. |
ToHijriDateStruct() | hijriDate:string, format:string | NgbDate | Convert string hijri date to date struct. |
ToHijri(date) | NgbDateStruct | NgbDateStruct | Convert Gregorian date struct to Hijri struct. |
ToGregorian(date) | NgbDateStruct | NgbDateStruct | Convert Hijri date struct to Gregorian struct. |
ToString(date) | NgbDateStruct | string | Convert date struct to string dd/mm/yyyy |
GetTodayHijri() | -- | NgbDateStruct | Get Today's date as hijri. |
GetTodayGregorian() | -- | NgbDateStruct | Get Today's date as gregorian. |
This project is based on ng-bootstrap , moment , moment Hijri .
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 2/15 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More