ng-ipa-library 1.0.0 → 1.1.1
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/esm2020/lib/core/interceptors/token.interceptor.mjs +10 -4
- package/esm2020/lib/generate-form/generate-form.component.mjs +1 -1
- package/esm2020/lib/ipa-form/datepicker/datepicker.component.mjs +17 -6
- package/esm2020/lib/ipa-form/datepicker/gregorian-datepicker/gregorian-datepicker.component.mjs +3 -3
- package/esm2020/lib/ipa-form/datepicker/hijri-datepicker/hijri-datepicker.component.mjs +3 -3
- package/esm2020/lib/ipa-form/text-input/text-input.component.mjs +17 -3
- package/fesm2015/ng-ipa-library.mjs +44 -14
- package/fesm2015/ng-ipa-library.mjs.map +1 -1
- package/fesm2020/ng-ipa-library.mjs +44 -14
- package/fesm2020/ng-ipa-library.mjs.map +1 -1
- package/lib/core/interceptors/token.interceptor.d.ts +3 -1
- package/lib/ipa-form/datepicker/datepicker.component.d.ts +3 -1
- package/lib/ipa-form/text-input/text-input.component.d.ts +3 -1
- package/package.json +2 -2
- package/src/lib/assets/ngIPAStyle.scss +96 -3
|
@@ -12,6 +12,7 @@ export declare class TextInputComponent implements OnInit {
|
|
|
12
12
|
label: string;
|
|
13
13
|
required: boolean;
|
|
14
14
|
patternErrorMsg: string;
|
|
15
|
+
onlyNumber: boolean;
|
|
15
16
|
pattern: string;
|
|
16
17
|
classes: string;
|
|
17
18
|
containerClasses: string;
|
|
@@ -24,7 +25,8 @@ export declare class TextInputComponent implements OnInit {
|
|
|
24
25
|
writeValue(obj: any): void;
|
|
25
26
|
registerOnChange(fn: any): void;
|
|
26
27
|
registerOnTouched(fn: any): void;
|
|
28
|
+
checkIsNumber(event: Event): void;
|
|
27
29
|
get errorMessage(): string | null;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [null, { self: true; }]>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "id": "id"; "type": "type"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "patternErrorMsg": "patternErrorMsg"; "pattern": "pattern"; "classes": "classes"; "containerClasses": "containerClasses"; }, {}, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "id": "id"; "type": "type"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "patternErrorMsg": "patternErrorMsg"; "onlyNumber": "onlyNumber"; "pattern": "pattern"; "classes": "classes"; "containerClasses": "containerClasses"; }, {}, never, never>;
|
|
30
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-ipa-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~13.2.2",
|
|
6
6
|
"@angular/core": "~13.2.2",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"moment-hijri": "^2.1.2",
|
|
15
15
|
"@types/moment-hijri": "^2.1.0",
|
|
16
16
|
"@ng-bootstrap/ng-bootstrap": "^12.0.0",
|
|
17
|
-
"@fortawesome/angular-fontawesome": "
|
|
17
|
+
"@fortawesome/angular-fontawesome": "^0.10.1",
|
|
18
18
|
"@fortawesome/fontawesome-svg-core": "^1.3.0",
|
|
19
19
|
"@fortawesome/free-brands-svg-icons": "^6.0.0",
|
|
20
20
|
"@fortawesome/free-solid-svg-icons": "^6.0.0",
|
|
@@ -40,17 +40,110 @@
|
|
|
40
40
|
|
|
41
41
|
.sb-icon {
|
|
42
42
|
background-color: white;
|
|
43
|
-
font-size: 1.4em!important;
|
|
43
|
+
font-size: 1.4em !important;
|
|
44
44
|
color: #02b9b4;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.sm-share-title {
|
|
49
|
-
font-size: 20px!important;
|
|
49
|
+
font-size: 20px !important;
|
|
50
50
|
vertical-align: baseline;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
ng-select.ng-invalid.ng-touched .ng-select-container{
|
|
53
|
+
ng-select.ng-invalid.ng-touched .ng-select-container {
|
|
54
54
|
border-color: #dc3545;
|
|
55
55
|
box-shadow: inset 0 1px 1px #00000013, 0 0 0 3px #fde6e8;
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
// datepicker style --start
|
|
59
|
+
.dropdown-menu.show {
|
|
60
|
+
display: grid !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ngb-datepicker .ngb-dp-header {
|
|
64
|
+
|
|
65
|
+
ngb-datepicker-navigation {
|
|
66
|
+
|
|
67
|
+
.ngb-dp-arrow {
|
|
68
|
+
|
|
69
|
+
.ngb-dp-arrow-btn {
|
|
70
|
+
padding: 0 .25rem;
|
|
71
|
+
margin: 0 .5rem;
|
|
72
|
+
border: none;
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.btn-link {
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
color: #02b9b4;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ngb-dp-arrow-btn:focus {
|
|
84
|
+
outline-width: 1px;
|
|
85
|
+
outline-style: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ngb-dp-navigation-chevron {
|
|
89
|
+
transform: rotate(45deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ngb-dp-arrow.right {
|
|
94
|
+
.ngb-dp-navigation-chevron {
|
|
95
|
+
transform: rotate(-135deg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ngb-datepicker-navigation-select {
|
|
100
|
+
display: grid;
|
|
101
|
+
flex: 1 1 9rem;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
ngb-datepicker .ngb-dp-content {
|
|
107
|
+
.ngb-dp-month {
|
|
108
|
+
ngb-datepicker-month {
|
|
109
|
+
|
|
110
|
+
.ngb-dp-weekday {
|
|
111
|
+
color: #5bc0de;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bg-primary {
|
|
115
|
+
background-color: #02a09a !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ngb-dp-today {
|
|
119
|
+
outline: none !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.btn-light {
|
|
123
|
+
color: #212529;
|
|
124
|
+
background-color: #f8f9fa;
|
|
125
|
+
border-color: #f8f9fa;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-light.focus,
|
|
129
|
+
.btn-light:focus,
|
|
130
|
+
.btn-light:hover {
|
|
131
|
+
color: #212529;
|
|
132
|
+
background-color: #e2e6ea;
|
|
133
|
+
border-color: #dae0e5;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.btn-light:not(:disabled):not(.disabled).active,
|
|
137
|
+
.btn-light:not(:disabled):not(.disabled):active,
|
|
138
|
+
.show>.btn-light.dropdown-toggle {
|
|
139
|
+
color: #212529;
|
|
140
|
+
background-color: #dae0e5;
|
|
141
|
+
border-color: #d3d9df;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// datepicker style --end
|