@yoozsoft/yoozsoft-ng 4.0.7 → 5.0.0
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 +11 -4
- package/datepicker/index.d.ts +291 -5
- package/directives/index.d.ts +15 -3
- package/fesm2022/yoozsoft-yoozsoft-ng-datepicker.mjs +47 -48
- package/fesm2022/yoozsoft-yoozsoft-ng-datepicker.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-directives.mjs +4 -4
- package/fesm2022/yoozsoft-yoozsoft-ng-directives.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-file-upload.mjs +8 -8
- package/fesm2022/yoozsoft-yoozsoft-ng-file-upload.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-footer.mjs +6 -6
- package/fesm2022/yoozsoft-yoozsoft-ng-footer.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-loading.mjs +6 -6
- package/fesm2022/yoozsoft-yoozsoft-ng-loading.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-navbar.mjs +6 -8
- package/fesm2022/yoozsoft-yoozsoft-ng-navbar.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-overlay.mjs +4 -4
- package/fesm2022/yoozsoft-yoozsoft-ng-password-strength.mjs +9 -9
- package/fesm2022/yoozsoft-yoozsoft-ng-password-strength.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-progress.mjs +7 -7
- package/fesm2022/yoozsoft-yoozsoft-ng-progress.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-select.mjs +8 -9
- package/fesm2022/yoozsoft-yoozsoft-ng-select.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-sidebar.mjs +9 -9
- package/fesm2022/yoozsoft-yoozsoft-ng-sidebar.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-tiff-viewer.mjs +6 -6
- package/fesm2022/yoozsoft-yoozsoft-ng-tiff-viewer.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-toast.mjs +9 -9
- package/fesm2022/yoozsoft-yoozsoft-ng-toast.mjs.map +1 -1
- package/file-upload/index.d.ts +72 -5
- package/footer/index.d.ts +25 -5
- package/index.d.ts +3 -5
- package/loading/index.d.ts +13 -5
- package/navbar/index.d.ts +56 -5
- package/overlay/index.d.ts +11 -5
- package/package.json +3 -3
- package/password-strength/index.d.ts +84 -5
- package/progress/index.d.ts +28 -5
- package/select/index.d.ts +37 -5
- package/sidebar/index.d.ts +93 -5
- package/tiff-viewer/index.d.ts +51 -5
- package/toast/index.d.ts +53 -5
- package/datepicker/public-api.d.ts +0 -8
- package/datepicker/src/models/date-range.d.ts +0 -4
- package/datepicker/src/models/date-time-format.d.ts +0 -2
- package/datepicker/src/models/index.d.ts +0 -3
- package/datepicker/src/models/jalali-date.d.ts +0 -5
- package/datepicker/src/services/index.d.ts +0 -2
- package/datepicker/src/services/ys-date-parser-formatter.service.d.ts +0 -9
- package/datepicker/src/services/ys-datepicker-i18n.service.d.ts +0 -23
- package/datepicker/src/ys-datepicker/ys-datepicker.component.d.ts +0 -38
- package/datepicker/src/ys-datepicker-persian/ys-datepicker-persian.component.d.ts +0 -38
- package/datepicker/src/ys-datepicker-popup/ys-datepicker-popup.component.d.ts +0 -41
- package/datepicker/src/ys-datepicker-popup-persian/ys-datepicker-popup-persian.component.d.ts +0 -41
- package/datepicker/src/ys-datepicker-range-popup/ys-datepicker-range-popup.component.d.ts +0 -51
- package/datepicker/src/ys-datepicker-range-popup-persian/ys-datepicker-range-popup-persian.component.d.ts +0 -55
- package/directives/public-api.d.ts +0 -1
- package/directives/src/password-match/ys-password-match.directive.d.ts +0 -14
- package/file-upload/public-api.d.ts +0 -1
- package/file-upload/src/ys-file-upload/ys-file-upload.component.d.ts +0 -69
- package/footer/public-api.d.ts +0 -2
- package/footer/src/models/footer-brand.d.ts +0 -5
- package/footer/src/models/index.d.ts +0 -2
- package/footer/src/models/social-network.d.ts +0 -5
- package/footer/src/ys-footer/ys-footer.component.d.ts +0 -10
- package/loading/public-api.d.ts +0 -1
- package/loading/src/ys-loading-mask/ys-loading-mask.component.d.ts +0 -10
- package/navbar/public-api.d.ts +0 -2
- package/navbar/src/models/index.d.ts +0 -2
- package/navbar/src/models/navbar-brand.d.ts +0 -8
- package/navbar/src/models/navbar-item.d.ts +0 -13
- package/navbar/src/ys-navbar/ys-navbar.component.d.ts +0 -30
- package/overlay/public-api.d.ts +0 -1
- package/overlay/src/ys-overlay/ys-overlay.component.d.ts +0 -8
- package/password-strength/public-api.d.ts +0 -3
- package/password-strength/src/directives/index.d.ts +0 -1
- package/password-strength/src/directives/ys-password-strength.directive.d.ts +0 -18
- package/password-strength/src/models/index.d.ts +0 -4
- package/password-strength/src/models/regx.d.ts +0 -5
- package/password-strength/src/models/strength-validation-control.d.ts +0 -6
- package/password-strength/src/models/strength-validation-feedback.d.ts +0 -16
- package/password-strength/src/models/strength-validation-option.d.ts +0 -14
- package/password-strength/src/ys-password-strength/ys-password-strength.component.d.ts +0 -21
- package/progress/public-api.d.ts +0 -2
- package/progress/src/services/index.d.ts +0 -1
- package/progress/src/services/progress.service.d.ts +0 -8
- package/progress/src/ys-progress/ys-progress.component.d.ts +0 -17
- package/public-api.d.ts +0 -1
- package/select/public-api.d.ts +0 -1
- package/select/src/ys-select/ys-select.component.d.ts +0 -34
- package/sidebar/public-api.d.ts +0 -3
- package/sidebar/src/models/index.d.ts +0 -4
- package/sidebar/src/models/sidebar-item-active.d.ts +0 -6
- package/sidebar/src/models/sidebar-item.d.ts +0 -13
- package/sidebar/src/models/user-image.d.ts +0 -4
- package/sidebar/src/models/user-profile.d.ts +0 -7
- package/sidebar/src/services/index.d.ts +0 -1
- package/sidebar/src/services/sidebar.service.d.ts +0 -34
- package/sidebar/src/ys-sidebar/ys-sidebar.component.d.ts +0 -24
- package/tiff-viewer/public-api.d.ts +0 -1
- package/tiff-viewer/src/ys-tiff-viewer/ys-tiff-viewer.component.d.ts +0 -48
- package/toast/public-api.d.ts +0 -3
- package/toast/src/models/index.d.ts +0 -2
- package/toast/src/models/toast-info.d.ts +0 -5
- package/toast/src/models/toast-type.d.ts +0 -6
- package/toast/src/services/index.d.ts +0 -1
- package/toast/src/services/toast.service.d.ts +0 -15
- package/toast/src/ys-toast/ys-toast.component.d.ts +0 -23
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Yoozsoft Ng
|
|
2
2
|
|
|
3
|
-
Angular widgets built up using Bootstrap 5 CSS and NG Bootstrap
|
|
4
|
-
We are using TypeScript and targeting the Ng Bootstrap
|
|
3
|
+
Angular widgets built up using Bootstrap 5 CSS and NG Bootstrap 19 widgets with APIs designed for the Angular ecosystem, that are in standalone style.
|
|
4
|
+
We are using TypeScript and targeting the Ng Bootstrap 19 widgets and Bootstrap 5 CSS framework.
|
|
5
5
|
As with Bootstrap 5 and Angular 2, this library is a work in progress.
|
|
6
6
|
|
|
7
|
-
The dependencies are [Angular](https://angular.io/), [Ng Bootstrap](https://ng-bootstrap.github.io/)
|
|
7
|
+
The dependencies are [Angular](https://angular.io/), [Ng Bootstrap](https://ng-bootstrap.github.io/) 19 widgets, [Bootstrap](https://getbootstrap.com/) 5 CSS, [Popper](https://popper.js.org/).
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ Visit the [Yoozsoft Website](https://www.yoozsoft.com/ys-ng) for general informa
|
|
|
25
25
|
|
|
26
26
|
## Dependencies
|
|
27
27
|
|
|
28
|
-
The only dependencies are Angular, Ng Bootstrap
|
|
28
|
+
The only dependencies are Angular, Ng Bootstrap 19 widgets, Bootstrap 5 CSS, and Popper. The supported versions are:
|
|
29
29
|
|
|
30
30
|
<table>
|
|
31
31
|
<thead>
|
|
@@ -66,6 +66,13 @@ The only dependencies are Angular, Ng Bootstrap 18 widgets, Bootstrap 5 CSS, and
|
|
|
66
66
|
<td>5.3.3</td>
|
|
67
67
|
<td>2.11.8</td>
|
|
68
68
|
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<th scope="row">5.x.x</th>
|
|
71
|
+
<td>^20.0.0</td>
|
|
72
|
+
<td>19.0.0</td>
|
|
73
|
+
<td>5.3.6</td>
|
|
74
|
+
<td>2.11.8</td>
|
|
75
|
+
</tr>
|
|
69
76
|
</tbody>
|
|
70
77
|
</table>
|
|
71
78
|
|
package/datepicker/index.d.ts
CHANGED
|
@@ -1,5 +1,291 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { NgbDateParserFormatter, NgbDateStruct, NgbDatepickerI18n, NgbCalendar, NgbDate } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { TemplateRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
interface DateRange {
|
|
7
|
+
fromDate: Date | null;
|
|
8
|
+
toDate: Date | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class DateTimeFormat {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class JalaliDate {
|
|
15
|
+
private static daysInMonth;
|
|
16
|
+
static jalaliToGregorian(jalaliYear: number, jalaliMonth: number, jalaliDay: number): number[];
|
|
17
|
+
static gregorianToJalali(gregorianYear: number, gregorianMonth: number, gregorianDay: number): number[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class YsDateParserFormatterService extends NgbDateParserFormatter {
|
|
21
|
+
readonly DELIMITER = "/";
|
|
22
|
+
parse(value: string): NgbDateStruct | null;
|
|
23
|
+
format(date: NgbDateStruct | null): string;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDateParserFormatterService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<YsDateParserFormatterService>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare enum LanguageType {
|
|
29
|
+
en = 0,
|
|
30
|
+
fa = 1,
|
|
31
|
+
fr = 2
|
|
32
|
+
}
|
|
33
|
+
declare class I18n {
|
|
34
|
+
language: string;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18n, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18n>;
|
|
37
|
+
}
|
|
38
|
+
declare class YsDatepickerI18nService extends NgbDatepickerI18n {
|
|
39
|
+
private _i18n;
|
|
40
|
+
constructor();
|
|
41
|
+
getWeekdayLabel(weekday: number): string;
|
|
42
|
+
getWeekLabel(): string;
|
|
43
|
+
getMonthShortName(month: number): string;
|
|
44
|
+
getMonthFullName(month: number): string;
|
|
45
|
+
getDayAriaLabel(date: NgbDateStruct): string;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerI18nService, never>;
|
|
47
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<YsDatepickerI18nService>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class YsDatepickerComponent implements ControlValueAccessor {
|
|
51
|
+
private i18N;
|
|
52
|
+
calendar: NgbCalendar;
|
|
53
|
+
today: NgbDate;
|
|
54
|
+
firstDayOfWeek: number;
|
|
55
|
+
weekend: number[];
|
|
56
|
+
private _language;
|
|
57
|
+
get language(): string;
|
|
58
|
+
set language(value: string);
|
|
59
|
+
isFooter: boolean;
|
|
60
|
+
todayLabel: string;
|
|
61
|
+
footer: TemplateRef<any> | null;
|
|
62
|
+
_value: NgbDateStruct | null;
|
|
63
|
+
get value(): NgbDateStruct | null;
|
|
64
|
+
set value(val: NgbDateStruct | null);
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
onChange: any;
|
|
67
|
+
onTouched: any;
|
|
68
|
+
constructor(i18N: I18n);
|
|
69
|
+
writeValue(obj: any): void;
|
|
70
|
+
registerOnChange(fn: any): void;
|
|
71
|
+
registerOnTouched(fn: any): void;
|
|
72
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
73
|
+
markDisabled: (date: NgbDate, current?: {
|
|
74
|
+
month: number;
|
|
75
|
+
year: number;
|
|
76
|
+
}) => boolean;
|
|
77
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
78
|
+
valueChanged(newDate: NgbDateStruct | string | null): void;
|
|
79
|
+
setToday(): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerComponent, "ys-datepicker", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class YsDatepickerPersianComponent implements ControlValueAccessor {
|
|
85
|
+
private i18N;
|
|
86
|
+
calendar: NgbCalendar;
|
|
87
|
+
today: NgbDate;
|
|
88
|
+
firstDayOfWeek: number;
|
|
89
|
+
weekend: number[];
|
|
90
|
+
private _language;
|
|
91
|
+
get language(): string;
|
|
92
|
+
set language(value: string);
|
|
93
|
+
isFooter: boolean;
|
|
94
|
+
todayLabel: string;
|
|
95
|
+
footer: TemplateRef<any> | null;
|
|
96
|
+
_value: NgbDateStruct | null;
|
|
97
|
+
get value(): NgbDateStruct | null;
|
|
98
|
+
set value(val: NgbDateStruct | null);
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
onChange: any;
|
|
101
|
+
onTouched: any;
|
|
102
|
+
constructor(i18N: I18n);
|
|
103
|
+
writeValue(obj: any): void;
|
|
104
|
+
registerOnChange(fn: any): void;
|
|
105
|
+
registerOnTouched(fn: any): void;
|
|
106
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
107
|
+
markDisabled: (date: NgbDate, current?: {
|
|
108
|
+
month: number;
|
|
109
|
+
year: number;
|
|
110
|
+
}) => boolean;
|
|
111
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
112
|
+
valueChanged(newDate: NgbDateStruct | string | null): void;
|
|
113
|
+
setToday(): void;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerPersianComponent, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerPersianComponent, "ys-datepicker-persian", never, { "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class YsDatepickerPopupPersianComponent implements ControlValueAccessor {
|
|
119
|
+
private i18N;
|
|
120
|
+
calendar: NgbCalendar;
|
|
121
|
+
today: NgbDate;
|
|
122
|
+
_value: NgbDateStruct | null;
|
|
123
|
+
get value(): NgbDateStruct | null;
|
|
124
|
+
set value(val: NgbDateStruct | null);
|
|
125
|
+
container: "body" | null;
|
|
126
|
+
firstDayOfWeek: number;
|
|
127
|
+
weekend: number[];
|
|
128
|
+
private _language;
|
|
129
|
+
get language(): string;
|
|
130
|
+
set language(value: string);
|
|
131
|
+
isFooter: boolean;
|
|
132
|
+
closeLabel: string;
|
|
133
|
+
todayLabel: string;
|
|
134
|
+
footer: TemplateRef<any> | null;
|
|
135
|
+
calendarIconClass: string;
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
onChange: any;
|
|
138
|
+
onTouched: any;
|
|
139
|
+
constructor(i18N: I18n);
|
|
140
|
+
writeValue(obj: any): void;
|
|
141
|
+
registerOnChange(fn: any): void;
|
|
142
|
+
registerOnTouched(fn: any): void;
|
|
143
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
144
|
+
markDisabled: (date: NgbDate, current?: {
|
|
145
|
+
month: number;
|
|
146
|
+
year: number;
|
|
147
|
+
}) => boolean;
|
|
148
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
149
|
+
valueChanged(newDate: NgbDateStruct | string | null): void;
|
|
150
|
+
setToday(): void;
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerPopupPersianComponent, never>;
|
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerPopupPersianComponent, "ys-datepicker-popup-persian", never, { "container": { "alias": "container"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "calendarIconClass": { "alias": "calendarIconClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare class YsDatepickerPopupComponent implements ControlValueAccessor {
|
|
156
|
+
private i18N;
|
|
157
|
+
calendar: NgbCalendar;
|
|
158
|
+
today: NgbDate;
|
|
159
|
+
_value: NgbDateStruct | null;
|
|
160
|
+
get value(): NgbDateStruct | null;
|
|
161
|
+
set value(val: NgbDateStruct | null);
|
|
162
|
+
container: "body" | null;
|
|
163
|
+
firstDayOfWeek: number;
|
|
164
|
+
weekend: number[];
|
|
165
|
+
private _language;
|
|
166
|
+
get language(): string;
|
|
167
|
+
set language(value: string);
|
|
168
|
+
isFooter: boolean;
|
|
169
|
+
closeLabel: string;
|
|
170
|
+
todayLabel: string;
|
|
171
|
+
footer: TemplateRef<any> | null;
|
|
172
|
+
calendarIconClass: string;
|
|
173
|
+
disabled: boolean;
|
|
174
|
+
onChange: any;
|
|
175
|
+
onTouched: any;
|
|
176
|
+
constructor(i18N: I18n);
|
|
177
|
+
writeValue(obj: any): void;
|
|
178
|
+
registerOnChange(fn: any): void;
|
|
179
|
+
registerOnTouched(fn: any): void;
|
|
180
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
181
|
+
markDisabled: (date: NgbDate, current?: {
|
|
182
|
+
month: number;
|
|
183
|
+
year: number;
|
|
184
|
+
}) => boolean;
|
|
185
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
186
|
+
valueChanged(newDate: NgbDateStruct | string | null): void;
|
|
187
|
+
setToday(): void;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerPopupComponent, never>;
|
|
189
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerPopupComponent, "ys-datepicker-popup", never, { "container": { "alias": "container"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "calendarIconClass": { "alias": "calendarIconClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare class YsDatepickerRangePopupPersianComponent implements ControlValueAccessor {
|
|
193
|
+
private i18N;
|
|
194
|
+
calendar: NgbCalendar;
|
|
195
|
+
formatter: NgbDateParserFormatter;
|
|
196
|
+
today: NgbDate;
|
|
197
|
+
date?: {
|
|
198
|
+
year: number;
|
|
199
|
+
month: number;
|
|
200
|
+
};
|
|
201
|
+
hoveredDate: NgbDate | null;
|
|
202
|
+
_fromDate: NgbDate | null;
|
|
203
|
+
get fromDate(): NgbDate | null;
|
|
204
|
+
set fromDate(value: NgbDate | null);
|
|
205
|
+
_toDate: NgbDate | null;
|
|
206
|
+
get toDate(): NgbDate | null;
|
|
207
|
+
set toDate(value: NgbDate | null);
|
|
208
|
+
container: "body" | null;
|
|
209
|
+
firstDayOfWeek: number;
|
|
210
|
+
weekend: number[];
|
|
211
|
+
private _language;
|
|
212
|
+
get language(): string;
|
|
213
|
+
set language(value: string);
|
|
214
|
+
isFooter: boolean;
|
|
215
|
+
closeLabel: string;
|
|
216
|
+
todayLabel: string;
|
|
217
|
+
footer: TemplateRef<any> | null;
|
|
218
|
+
calendarIconClass: string;
|
|
219
|
+
disabled: boolean;
|
|
220
|
+
onChange: any;
|
|
221
|
+
onTouched: any;
|
|
222
|
+
constructor(i18N: I18n);
|
|
223
|
+
writeValue(obj: any): void;
|
|
224
|
+
registerOnChange(fn: any): void;
|
|
225
|
+
registerOnTouched(fn: any): void;
|
|
226
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
227
|
+
onDateSelection(date: NgbDate): void;
|
|
228
|
+
isHovered(date: NgbDate): boolean | null;
|
|
229
|
+
isInside(date: NgbDate): boolean | null;
|
|
230
|
+
isRange(date: NgbDate): boolean | null;
|
|
231
|
+
markDisabled: (date: NgbDate, current?: {
|
|
232
|
+
month: number;
|
|
233
|
+
year: number;
|
|
234
|
+
}) => boolean;
|
|
235
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
236
|
+
validateInput(currentValue: NgbDate | null, input: string): NgbDate | null;
|
|
237
|
+
valueChanged(): void;
|
|
238
|
+
setToday(): void;
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerRangePopupPersianComponent, never>;
|
|
240
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerRangePopupPersianComponent, "ys-datepicker-range-popup-persian", never, { "container": { "alias": "container"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "calendarIconClass": { "alias": "calendarIconClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare class YsDatepickerRangePopupComponent implements ControlValueAccessor {
|
|
244
|
+
private i18N;
|
|
245
|
+
calendar: NgbCalendar;
|
|
246
|
+
formatter: NgbDateParserFormatter;
|
|
247
|
+
today: NgbDate;
|
|
248
|
+
hoveredDate: NgbDate | null;
|
|
249
|
+
_fromDate: NgbDate | null;
|
|
250
|
+
get fromDate(): NgbDate | null;
|
|
251
|
+
set fromDate(value: NgbDate | null);
|
|
252
|
+
_toDate: NgbDate | null;
|
|
253
|
+
get toDate(): NgbDate | null;
|
|
254
|
+
set toDate(value: NgbDate | null);
|
|
255
|
+
container: "body" | null;
|
|
256
|
+
firstDayOfWeek: number;
|
|
257
|
+
weekend: number[];
|
|
258
|
+
private _language;
|
|
259
|
+
get language(): string;
|
|
260
|
+
set language(value: string);
|
|
261
|
+
isFooter: boolean;
|
|
262
|
+
closeLabel: string;
|
|
263
|
+
todayLabel: string;
|
|
264
|
+
footer: TemplateRef<any> | null;
|
|
265
|
+
calendarIconClass: string;
|
|
266
|
+
disabled: boolean;
|
|
267
|
+
onChange: any;
|
|
268
|
+
onTouched: any;
|
|
269
|
+
constructor(i18N: I18n);
|
|
270
|
+
writeValue(obj: any): void;
|
|
271
|
+
registerOnChange(fn: any): void;
|
|
272
|
+
registerOnTouched(fn: any): void;
|
|
273
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
274
|
+
onDateSelection(date: NgbDate): void;
|
|
275
|
+
isHovered(date: NgbDate): boolean | null;
|
|
276
|
+
isInside(date: NgbDate): boolean | null;
|
|
277
|
+
isRange(date: NgbDate): boolean | null;
|
|
278
|
+
markDisabled: (date: NgbDate, current?: {
|
|
279
|
+
month: number;
|
|
280
|
+
year: number;
|
|
281
|
+
}) => boolean;
|
|
282
|
+
isWeekend: (date: NgbDate) => boolean;
|
|
283
|
+
validateInput(currentValue: NgbDate | null, input: string): NgbDate | null;
|
|
284
|
+
valueChanged(): void;
|
|
285
|
+
setToday(): void;
|
|
286
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsDatepickerRangePopupComponent, never>;
|
|
287
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YsDatepickerRangePopupComponent, "ys-datepicker-range-popup", never, { "container": { "alias": "container"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "weekend": { "alias": "weekend"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isFooter": { "alias": "isFooter"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "todayLabel": { "alias": "todayLabel"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "calendarIconClass": { "alias": "calendarIconClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export { DateTimeFormat, I18n, JalaliDate, LanguageType, YsDateParserFormatterService, YsDatepickerComponent, YsDatepickerI18nService, YsDatepickerPersianComponent, YsDatepickerPopupComponent, YsDatepickerPopupPersianComponent, YsDatepickerRangePopupComponent, YsDatepickerRangePopupPersianComponent };
|
|
291
|
+
export type { DateRange };
|
package/directives/index.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import { Validator, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class YsPasswordMatchDirective implements Validator {
|
|
5
|
+
matchWith: string;
|
|
6
|
+
validate(control: AbstractControl<any, any>): ValidationErrors | null;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YsPasswordMatchDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<YsPasswordMatchDirective, "[ysPasswordMatch]", never, { "matchWith": { "alias": "passwordMatch"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
1
10
|
/**
|
|
2
|
-
*
|
|
11
|
+
* Validate password and repeat password matching.
|
|
12
|
+
* @param matchWith AbstractControl name to matching.
|
|
13
|
+
* @returns Returns null if the controls value matches, otherwise returns passwordMismatch error.
|
|
3
14
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
15
|
+
declare function passwordMatchValidator(matchWith: string): ValidatorFn;
|
|
16
|
+
|
|
17
|
+
export { YsPasswordMatchDirective, passwordMatchValidator };
|