ngx-np-datepicker 1.2.0 → 1.2.3
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/README.md +36 -13
- package/README.md.bak +57 -0
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -1,24 +1,47 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Angular Nepali Datepicker
|
|
2
|
+
A simple Nepali Date Picker(Bikram Sambat) library in angular with no dependancy.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
## Installation
|
|
5
|
+
```
|
|
6
|
+
npm install ngx-np-datepicker
|
|
7
|
+
```
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
### Demo
|
|
10
|
+
<a href="https://wwwbijay.github.io/angular-nepali-datepicker/" target="_blank">Click here to check demo.</a>
|
|
6
11
|
|
|
7
|
-
Run `ng generate component component-name --project npx-np-datepicker` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project npx-np-datepicker`.
|
|
8
|
-
> Note: Don't forget to add `--project npx-np-datepicker` or else it will be added to the default project in your `angular.json` file.
|
|
9
12
|
|
|
10
|
-
## Build
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
### Note
|
|
15
|
+
This package has no dependancy.
|
|
13
16
|
|
|
14
|
-
##
|
|
17
|
+
## Usage
|
|
18
|
+
Import the `NepaliDatepickerModule` in your app.module.ts
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
```
|
|
21
|
+
import { NepaliDatepickerModule } from 'angular-nepali-datepicker';
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
@NgModule({
|
|
24
|
+
declarations: [
|
|
25
|
+
AppComponent,
|
|
26
|
+
],
|
|
27
|
+
imports: [
|
|
28
|
+
BrowserModule,
|
|
29
|
+
NepaliDatepickerModule
|
|
30
|
+
],
|
|
31
|
+
providers: [],
|
|
32
|
+
bootstrap: [AppComponent]
|
|
33
|
+
})
|
|
34
|
+
export class AppModule { }
|
|
35
|
+
```
|
|
36
|
+
then use `<np-datepicker [(ngModel)]="nepaliDate"></np-datepicker>` in your template
|
|
37
|
+
```
|
|
38
|
+
<np-datepicker></np-datepicker>
|
|
39
|
+
```
|
|
19
40
|
|
|
20
|
-
Run `ng test npx-np-datepicker` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
41
|
|
|
22
|
-
|
|
42
|
+
### Format
|
|
43
|
+
The supported date format is dd-mm-yyyy
|
|
44
|
+
|
|
45
|
+
### License
|
|
46
|
+
MIT License
|
|
23
47
|
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/README.md.bak
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Angular Nepali Datepicker
|
|
2
|
+
|
|
3
|
+
A simple Nepali Date Picker(Bikram Sambat) library in angular with no dependancy.
|
|
4
|
+
|
|
5
|
+
### Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install ngx-np-datepicker
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Demo
|
|
12
|
+
|
|
13
|
+
https://github.com/wwwbijay/angular-nepali-datepicker
|
|
14
|
+
|
|
15
|
+
### Note
|
|
16
|
+
|
|
17
|
+
This package has no dependancy.
|
|
18
|
+
|
|
19
|
+
### Usage
|
|
20
|
+
|
|
21
|
+
Import the `NepaliDatepickerModule` in your app.module.ts
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
import { NepaliDatepickerModule } from 'angular-nepali-datepicker';
|
|
25
|
+
|
|
26
|
+
@NgModule({
|
|
27
|
+
declarations: [
|
|
28
|
+
AppComponent,
|
|
29
|
+
],
|
|
30
|
+
imports: [
|
|
31
|
+
BrowserModule,
|
|
32
|
+
NepaliDatepickerModule
|
|
33
|
+
],
|
|
34
|
+
providers: [],
|
|
35
|
+
bootstrap: [AppComponent]
|
|
36
|
+
})
|
|
37
|
+
export class AppModule { }
|
|
38
|
+
```
|
|
39
|
+
then use `<np-datepicker [(ngModel)]="nepaliDate"></np-datepicker>` in your template
|
|
40
|
+
```
|
|
41
|
+
<np-datepicker></np-datepicker>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Format
|
|
46
|
+
|
|
47
|
+
The supported date format is dd-mm-yyyy
|
|
48
|
+
|
|
49
|
+
### License
|
|
50
|
+
|
|
51
|
+
MIT License
|
|
52
|
+
|
|
53
|
+
Copyright (C) 2022 Bijay Joshi
|
|
54
|
+
|
|
55
|
+
### Keywords
|
|
56
|
+
|
|
57
|
+
'Angular', 'Typescript', 'Javascript', 'Nepali Datepicker'
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-np-datepicker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "A simple Nepali Date Picker(Bikram Sambat) library in angular with no dependancy.",
|
|
5
|
+
"homepage": "https://wwwbijay.github.io/angular-nepali-datepicker/",
|
|
6
|
+
"keywords": ["Angular","Typescript", "Javascript","Nepali Date Picker"],
|
|
7
|
+
"license": [
|
|
8
|
+
{
|
|
9
|
+
"type": "MIT",
|
|
10
|
+
"url": "https://www.opensource.org/licenses/mit-license.php"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
4
13
|
"peerDependencies": {
|
|
5
14
|
"@angular/common": "^13.1.0",
|
|
6
15
|
"@angular/core": "^13.1.0"
|