@yoozsoft/yoozsoft-ng 5.3.5 → 7.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/README.md +143 -24
- package/assets/js/UTIF.js-master/LICENSE +21 -21
- package/assets/js/UTIF.js-master/README.md +72 -72
- package/assets/js/UTIF.js-master/UTIF.js +1762 -1762
- package/assets/js/UTIF.js-master/package-lock.json +13 -13
- package/assets/js/UTIF.js-master/package.json +24 -0
- package/assets/styles/components/_ys-navbar.scss +22 -0
- package/assets/styles/components/_ys-pagination.scss +10 -0
- package/assets/styles/{ys-layout.scss → utilities/ys-layout.scss} +1 -1
- package/assets/styles/ys-styles.scss +2 -0
- package/autocomplete/package.json +4 -0
- package/date/package.json +4 -0
- package/datepicker/package.json +4 -0
- package/dropdown/package.json +4 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-autocomplete.mjs +257 -197
- package/fesm2022/yoozsoft-yoozsoft-ng-autocomplete.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-date.mjs +562 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-date.mjs.map +1 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-datepicker.mjs +600 -837
- package/fesm2022/yoozsoft-yoozsoft-ng-datepicker.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-dropdown.mjs +161 -151
- package/fesm2022/yoozsoft-yoozsoft-ng-dropdown.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-file-upload.mjs +93 -103
- package/fesm2022/yoozsoft-yoozsoft-ng-file-upload.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-footer.mjs +16 -21
- package/fesm2022/yoozsoft-yoozsoft-ng-footer.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-loading.mjs +20 -24
- package/fesm2022/yoozsoft-yoozsoft-ng-loading.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-navbar.mjs +60 -76
- package/fesm2022/yoozsoft-yoozsoft-ng-navbar.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-overlay.mjs +11 -15
- package/fesm2022/yoozsoft-yoozsoft-ng-overlay.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-pagination.mjs +61 -55
- package/fesm2022/yoozsoft-yoozsoft-ng-pagination.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-password-strength.mjs +142 -130
- package/fesm2022/yoozsoft-yoozsoft-ng-password-strength.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-pipes.mjs +44 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-pipes.mjs.map +1 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-progress.mjs +51 -34
- package/fesm2022/yoozsoft-yoozsoft-ng-progress.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-rating.mjs +155 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-rating.mjs.map +1 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-select.mjs +78 -80
- package/fesm2022/yoozsoft-yoozsoft-ng-select.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-sidebar.mjs +99 -99
- package/fesm2022/yoozsoft-yoozsoft-ng-sidebar.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-table.mjs +316 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-table.mjs.map +1 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-tiff-viewer.mjs +128 -114
- package/fesm2022/yoozsoft-yoozsoft-ng-tiff-viewer.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-toast.mjs +112 -62
- package/fesm2022/yoozsoft-yoozsoft-ng-toast.mjs.map +1 -1
- package/fesm2022/yoozsoft-yoozsoft-ng-validators.mjs +37 -0
- package/fesm2022/yoozsoft-yoozsoft-ng-validators.mjs.map +1 -0
- package/fesm2022/yoozsoft-yoozsoft-ng.mjs.map +1 -1
- package/file-upload/package.json +4 -0
- package/footer/package.json +4 -0
- package/loading/package.json +4 -0
- package/navbar/package.json +4 -0
- package/overlay/package.json +4 -0
- package/package.json +61 -38
- package/pagination/package.json +4 -0
- package/password-strength/package.json +4 -0
- package/pipes/package.json +4 -0
- package/progress/package.json +4 -0
- package/rating/package.json +4 -0
- package/select/package.json +4 -0
- package/sidebar/package.json +4 -0
- package/table/package.json +4 -0
- package/tiff-viewer/package.json +4 -0
- package/toast/package.json +4 -0
- package/types/yoozsoft-yoozsoft-ng-autocomplete.d.ts +79 -0
- package/types/yoozsoft-yoozsoft-ng-date.d.ts +118 -0
- package/types/yoozsoft-yoozsoft-ng-datepicker.d.ts +120 -0
- package/types/yoozsoft-yoozsoft-ng-dropdown.d.ts +76 -0
- package/types/yoozsoft-yoozsoft-ng-file-upload.d.ts +75 -0
- package/types/yoozsoft-yoozsoft-ng-footer.d.ts +26 -0
- package/types/yoozsoft-yoozsoft-ng-loading.d.ts +14 -0
- package/types/yoozsoft-yoozsoft-ng-navbar.d.ts +60 -0
- package/types/yoozsoft-yoozsoft-ng-overlay.d.ts +10 -0
- package/types/yoozsoft-yoozsoft-ng-pagination.d.ts +31 -0
- package/types/yoozsoft-yoozsoft-ng-password-strength.d.ts +73 -0
- package/types/yoozsoft-yoozsoft-ng-pipes.d.ts +11 -0
- package/types/yoozsoft-yoozsoft-ng-progress.d.ts +31 -0
- package/types/yoozsoft-yoozsoft-ng-rating.d.ts +56 -0
- package/types/yoozsoft-yoozsoft-ng-select.d.ts +43 -0
- package/types/yoozsoft-yoozsoft-ng-sidebar.d.ts +69 -0
- package/types/yoozsoft-yoozsoft-ng-table.d.ts +137 -0
- package/types/yoozsoft-yoozsoft-ng-tiff-viewer.d.ts +53 -0
- package/types/yoozsoft-yoozsoft-ng-toast.d.ts +66 -0
- package/types/yoozsoft-yoozsoft-ng-validators.d.ts +5 -0
- package/validators/package.json +4 -0
- package/autocomplete/index.d.ts +0 -71
- package/datepicker/index.d.ts +0 -291
- package/directives/index.d.ts +0 -17
- package/dropdown/index.d.ts +0 -62
- package/fesm2022/yoozsoft-yoozsoft-ng-directives.mjs +0 -57
- package/fesm2022/yoozsoft-yoozsoft-ng-directives.mjs.map +0 -1
- package/file-upload/index.d.ts +0 -72
- package/footer/index.d.ts +0 -25
- package/loading/index.d.ts +0 -13
- package/navbar/index.d.ts +0 -56
- package/overlay/index.d.ts +0 -11
- package/pagination/index.d.ts +0 -29
- package/password-strength/index.d.ts +0 -84
- package/progress/index.d.ts +0 -28
- package/select/index.d.ts +0 -39
- package/sidebar/index.d.ts +0 -94
- package/tiff-viewer/index.d.ts +0 -52
- package/toast/index.d.ts +0 -53
- /package/assets/styles/{ys-preloader-9.scss → preloaders/ys-preloader-9.scss} +0 -0
- /package/assets/styles/{ys-preloader.scss → preloaders/ys-preloader.scss} +0 -0
- /package/{index.d.ts → types/yoozsoft-yoozsoft-ng.d.ts} +0 -0
package/autocomplete/index.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, EventEmitter, ElementRef } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
declare class YsAutocompleteComponent implements ControlValueAccessor {
|
|
7
|
-
private elRef;
|
|
8
|
-
searchTerm: string;
|
|
9
|
-
filteredOptions: any[];
|
|
10
|
-
selectedOptions: any[];
|
|
11
|
-
showDropdown: boolean;
|
|
12
|
-
activeIndex: number;
|
|
13
|
-
error: string | null;
|
|
14
|
-
/** Array or async function */
|
|
15
|
-
options?: any[] | ((term: string) => Observable<any[]>);
|
|
16
|
-
/** Label display field */
|
|
17
|
-
optionLabel: string;
|
|
18
|
-
/** placeholder */
|
|
19
|
-
placeholder: string;
|
|
20
|
-
/** Multiple choice mode */
|
|
21
|
-
multiple: boolean;
|
|
22
|
-
/** Button to clear selection */
|
|
23
|
-
showClear: boolean;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
/** Custom template */
|
|
26
|
-
itemTemplate?: TemplateRef<any>;
|
|
27
|
-
styleClass?: string;
|
|
28
|
-
/** Badge style class on Multiple choice mode */
|
|
29
|
-
badgeStyleClass: string;
|
|
30
|
-
loading: boolean;
|
|
31
|
-
loadingMessage: string;
|
|
32
|
-
/** No results found message */
|
|
33
|
-
noResultMessage: string;
|
|
34
|
-
/** Infinite scroll feature enabled */
|
|
35
|
-
infiniteScroll: boolean;
|
|
36
|
-
virtualScroll: boolean;
|
|
37
|
-
virtualScrollItemSize: number;
|
|
38
|
-
/** Event to request more items */
|
|
39
|
-
loadMore: EventEmitter<string>;
|
|
40
|
-
/** Output selection */
|
|
41
|
-
selected: EventEmitter<any>;
|
|
42
|
-
/** Output selection after removed item */
|
|
43
|
-
removed: EventEmitter<any>;
|
|
44
|
-
private search$;
|
|
45
|
-
private _onChange;
|
|
46
|
-
private _onTouched;
|
|
47
|
-
inputRef: ElementRef<HTMLInputElement>;
|
|
48
|
-
get isArrayItems(): boolean;
|
|
49
|
-
get isFunctionItems(): boolean;
|
|
50
|
-
constructor(elRef: ElementRef);
|
|
51
|
-
ngOnInit(): void;
|
|
52
|
-
/** For the initial value of FormControl */
|
|
53
|
-
writeValue(value: any): void;
|
|
54
|
-
registerOnChange(fn: any): void;
|
|
55
|
-
registerOnTouched(fn: any): void;
|
|
56
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
57
|
-
onSearchChange(): void;
|
|
58
|
-
getLabel(item: any): string;
|
|
59
|
-
onSelect(item: any): void;
|
|
60
|
-
removeItem(item: any): void;
|
|
61
|
-
onScroll(event: Event): void;
|
|
62
|
-
clearSelection(): void;
|
|
63
|
-
/** Keyboard control */
|
|
64
|
-
handleKeyboard(event: KeyboardEvent): void;
|
|
65
|
-
/** Close by clicking outside */
|
|
66
|
-
onClickOutside(event: MouseEvent): void;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YsAutocompleteComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YsAutocompleteComponent, "ys-autocomplete", never, { "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "badgeStyleClass": { "alias": "badgeStyleClass"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; }; }, { "loadMore": "loadMore"; "selected": "selected"; "removed": "removed"; }, ["itemTemplate"], never, true, never>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { YsAutocompleteComponent };
|
package/datepicker/index.d.ts
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
10
|
-
/**
|
|
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.
|
|
14
|
-
*/
|
|
15
|
-
declare function passwordMatchValidator(matchWith: string): ValidatorFn;
|
|
16
|
-
|
|
17
|
-
export { YsPasswordMatchDirective, passwordMatchValidator };
|
package/dropdown/index.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, EventEmitter } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
interface OptionItem<T> {
|
|
6
|
-
label?: string;
|
|
7
|
-
value: T;
|
|
8
|
-
styleClass?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare class YsDropdownComponent implements ControlValueAccessor {
|
|
14
|
-
/** لیست گزینهها */
|
|
15
|
-
private _options;
|
|
16
|
-
set options(value: any[]);
|
|
17
|
-
get options(): any[];
|
|
18
|
-
optionLabel: string;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
searchPlaceholder: string;
|
|
21
|
-
selectedMaxLength: number;
|
|
22
|
-
selectedMaxLengthTemplate: string;
|
|
23
|
-
selectionSeparator: string;
|
|
24
|
-
/** انتخاب چندگانه یا تکی */
|
|
25
|
-
multiple: boolean;
|
|
26
|
-
showClear: boolean;
|
|
27
|
-
/** تمپلیت سفارشی برای آیتمها */
|
|
28
|
-
itemTemplate?: TemplateRef<any>;
|
|
29
|
-
/** مقدار انتخابشده */
|
|
30
|
-
selected: any[] | any;
|
|
31
|
-
/** قابلیت جستجو */
|
|
32
|
-
searchable: boolean;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
/** رویداد خروجی هنگام تغییر انتخاب */
|
|
35
|
-
selectionChange: EventEmitter<any>;
|
|
36
|
-
searchTerm: string;
|
|
37
|
-
isOpen: boolean;
|
|
38
|
-
highlightedIndex: number;
|
|
39
|
-
private elRef;
|
|
40
|
-
private _onChange;
|
|
41
|
-
private _onTouched;
|
|
42
|
-
writeValue(obj: any): void;
|
|
43
|
-
registerOnChange(fn: any): void;
|
|
44
|
-
registerOnTouched(fn: any): void;
|
|
45
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
46
|
-
private normalizeOptions;
|
|
47
|
-
get selectedLabels(): string;
|
|
48
|
-
toggleDropdown(): void;
|
|
49
|
-
filterOptions(): any[];
|
|
50
|
-
selectOption(option: any): void;
|
|
51
|
-
isSelected(option: any): boolean;
|
|
52
|
-
clearSelection(): void;
|
|
53
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
54
|
-
scrollToHighlighted(): void;
|
|
55
|
-
/** Close by clicking outside */
|
|
56
|
-
onClickOutside(event: MouseEvent): void;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YsDropdownComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YsDropdownComponent, "ys-dropdown", never, { "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "selectedMaxLength": { "alias": "selectedMaxLength"; "required": false; }; "selectedMaxLengthTemplate": { "alias": "selectedMaxLengthTemplate"; "required": false; }; "selectionSeparator": { "alias": "selectionSeparator"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { YsDropdownComponent };
|
|
62
|
-
export type { OptionItem };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { forwardRef, Input, Directive } from '@angular/core';
|
|
3
|
-
import { NG_ASYNC_VALIDATORS } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
class YsPasswordMatchDirective {
|
|
6
|
-
matchWith = '';
|
|
7
|
-
validate(control) {
|
|
8
|
-
return this.matchWith ? passwordMatchValidator(this.matchWith)(control) : null;
|
|
9
|
-
}
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: YsPasswordMatchDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.5", type: YsPasswordMatchDirective, isStandalone: true, selector: "[ysPasswordMatch]", inputs: { matchWith: ["passwordMatch", "matchWith"] }, providers: [
|
|
12
|
-
{
|
|
13
|
-
provide: NG_ASYNC_VALIDATORS,
|
|
14
|
-
useExisting: forwardRef(() => YsPasswordMatchDirective),
|
|
15
|
-
multi: true,
|
|
16
|
-
},
|
|
17
|
-
], ngImport: i0 });
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: YsPasswordMatchDirective, decorators: [{
|
|
20
|
-
type: Directive,
|
|
21
|
-
args: [{
|
|
22
|
-
selector: '[ysPasswordMatch]',
|
|
23
|
-
providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: NG_ASYNC_VALIDATORS,
|
|
26
|
-
useExisting: forwardRef(() => YsPasswordMatchDirective),
|
|
27
|
-
multi: true,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { matchWith: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: ['passwordMatch']
|
|
34
|
-
}] } });
|
|
35
|
-
/**
|
|
36
|
-
* Validate password and repeat password matching.
|
|
37
|
-
* @param matchWith AbstractControl name to matching.
|
|
38
|
-
* @returns Returns null if the controls value matches, otherwise returns passwordMismatch error.
|
|
39
|
-
*/
|
|
40
|
-
function passwordMatchValidator(matchWith) {
|
|
41
|
-
return (control) => {
|
|
42
|
-
const password = control.parent?.get(matchWith);
|
|
43
|
-
const confirmPassword = control;
|
|
44
|
-
return password && confirmPassword && password.value === confirmPassword.value ? null : { mismatch: true };
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/*
|
|
49
|
-
* Public API Surface of ys-directives
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Generated bundle index. Do not edit.
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
export { YsPasswordMatchDirective, passwordMatchValidator };
|
|
57
|
-
//# sourceMappingURL=yoozsoft-yoozsoft-ng-directives.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yoozsoft-yoozsoft-ng-directives.mjs","sources":["../../../../projects/yoozsoft/yoozsoft-ng/directives/src/password-match/ys-password-match.directive.ts","../../../../projects/yoozsoft/yoozsoft-ng/directives/public-api.ts","../../../../projects/yoozsoft/yoozsoft-ng/directives/yoozsoft-yoozsoft-ng-directives.ts"],"sourcesContent":["import { Directive, forwardRef, Input } from '@angular/core';\r\nimport { AbstractControl, NG_ASYNC_VALIDATORS, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';\r\n\r\n@Directive({\r\n selector: '[ysPasswordMatch]',\r\n providers: [\r\n {\r\n provide: NG_ASYNC_VALIDATORS,\r\n useExisting: forwardRef(() => YsPasswordMatchDirective),\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class YsPasswordMatchDirective implements Validator {\r\n\r\n @Input('passwordMatch') matchWith = '';\r\n\r\n validate(control: AbstractControl<any, any>): ValidationErrors | null {\r\n return this.matchWith ? passwordMatchValidator(this.matchWith)(control) : null;\r\n }\r\n\r\n}\r\n\r\n/**\r\n * Validate password and repeat password matching.\r\n * @param matchWith AbstractControl name to matching.\r\n * @returns Returns null if the controls value matches, otherwise returns passwordMismatch error.\r\n */\r\nexport function passwordMatchValidator(matchWith: string): ValidatorFn {\r\n return (control: AbstractControl): ValidationErrors | null => {\r\n const password = control.parent?.get(matchWith);\r\n const confirmPassword = control;\r\n return password && confirmPassword && password.value === confirmPassword.value ? null : { mismatch: true };\r\n };\r\n}","/*\r\n * Public API Surface of ys-directives\r\n */\r\n\r\nexport * from './src/password-match/ys-password-match.directive';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAaa,wBAAwB,CAAA;IAEX,SAAS,GAAG,EAAE;AAEtC,IAAA,QAAQ,CAAC,OAAkC,EAAA;AACzC,QAAA,OAAO,IAAI,CAAC,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;;uGALrE,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,eAAA,EAAA,WAAA,CAAA,EAAA,EAAA,SAAA,EARxB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,mBAAmB;AAC5B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,wBAAwB,CAAC;AACvD,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;AACF,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAVpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,mBAAmB;AAC5B,4BAAA,WAAW,EAAE,UAAU,CAAC,8BAA8B,CAAC;AACvD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;8BAGyB,SAAS,EAAA,CAAA;sBAAhC,KAAK;uBAAC,eAAe;;AAQxB;;;;AAIG;AACG,SAAU,sBAAsB,CAAC,SAAiB,EAAA;IACtD,OAAO,CAAC,OAAwB,KAA6B;QAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC;QAC/C,MAAM,eAAe,GAAG,OAAO;QAC/B,OAAO,QAAQ,IAAI,eAAe,IAAI,QAAQ,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC5G,KAAC;AACH;;AClCA;;AAEG;;ACFH;;AAEG;;;;"}
|
package/file-upload/index.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
declare class YsFileUploadComponent implements ControlValueAccessor {
|
|
6
|
-
private fileList?;
|
|
7
|
-
files: File[];
|
|
8
|
-
selectedFile: File | null;
|
|
9
|
-
styleClass?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Allowing upload multiple files
|
|
12
|
-
* Default is false
|
|
13
|
-
*/
|
|
14
|
-
multiple: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Acceptable type of files
|
|
17
|
-
* Default is all file type
|
|
18
|
-
*/
|
|
19
|
-
accept: string;
|
|
20
|
-
/**
|
|
21
|
-
* Upload button label
|
|
22
|
-
* Default is Choose File
|
|
23
|
-
*/
|
|
24
|
-
uploadLabel?: string;
|
|
25
|
-
/**Style class of upload button */
|
|
26
|
-
uploadStyleClass?: string;
|
|
27
|
-
/**Icon class of upload button */
|
|
28
|
-
uploadIconClass: string;
|
|
29
|
-
/**Display choosed file remove button */
|
|
30
|
-
isRemove: boolean;
|
|
31
|
-
/**Icon of remove item button */
|
|
32
|
-
removeIconClass: string;
|
|
33
|
-
/**
|
|
34
|
-
* Files list display direction
|
|
35
|
-
* Default is vertical (false)
|
|
36
|
-
*/
|
|
37
|
-
isHorizontal: boolean;
|
|
38
|
-
/**Message displayed before choosing file */
|
|
39
|
-
noFileMessage: string;
|
|
40
|
-
progressStyleClass?: string;
|
|
41
|
-
/**Value of progress element */
|
|
42
|
-
progressValue?: number;
|
|
43
|
-
/**Max value of progress element */
|
|
44
|
-
progressValueMax: number;
|
|
45
|
-
/**Display cancel upload button */
|
|
46
|
-
isCancel: boolean;
|
|
47
|
-
/**Event to get choosed files */
|
|
48
|
-
choosed: EventEmitter<File[]>;
|
|
49
|
-
/**Event of selected file in the list of choosed file*/
|
|
50
|
-
select: EventEmitter<File | null>;
|
|
51
|
-
/**Event of removed file in the list of choosed file*/
|
|
52
|
-
removed: EventEmitter<File>;
|
|
53
|
-
/**Event of cancel upload button */
|
|
54
|
-
cancel: EventEmitter<void>;
|
|
55
|
-
/**Disable elements */
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
onChange: any;
|
|
58
|
-
onTouched: any;
|
|
59
|
-
constructor();
|
|
60
|
-
writeValue(obj: any): void;
|
|
61
|
-
registerOnChange(fn: any): void;
|
|
62
|
-
registerOnTouched(fn: any): void;
|
|
63
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
64
|
-
onChangeFiles(event: any): void;
|
|
65
|
-
removeFile(file: File): void;
|
|
66
|
-
onSelectFile(file: File): void;
|
|
67
|
-
cancelUpload(): void;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YsFileUploadComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YsFileUploadComponent, "ys-file-upload", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "uploadLabel": { "alias": "uploadLabel"; "required": false; }; "uploadStyleClass": { "alias": "uploadStyleClass"; "required": false; }; "uploadIconClass": { "alias": "uploadIconClass"; "required": false; }; "isRemove": { "alias": "isRemove"; "required": false; }; "removeIconClass": { "alias": "removeIconClass"; "required": false; }; "isHorizontal": { "alias": "isHorizontal"; "required": false; }; "noFileMessage": { "alias": "noFileMessage"; "required": false; }; "progressStyleClass": { "alias": "progressStyleClass"; "required": false; }; "progressValue": { "alias": "progressValue"; "required": false; }; "progressValueMax": { "alias": "progressValueMax"; "required": false; }; "isCancel": { "alias": "isCancel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "choosed": "choosed"; "select": "select"; "removed": "removed"; "cancel": "cancel"; }, never, never, true, never>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export { YsFileUploadComponent };
|
package/footer/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
interface FooterBrand {
|
|
4
|
-
src?: any;
|
|
5
|
-
alt?: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface SocialNetwork {
|
|
10
|
-
href: string;
|
|
11
|
-
iconClass: string;
|
|
12
|
-
tooltip?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare class YsFooterComponent {
|
|
16
|
-
styleClass: string | null;
|
|
17
|
-
brand: FooterBrand | null;
|
|
18
|
-
copyright: string | null;
|
|
19
|
-
socialNetworks: SocialNetwork[];
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YsFooterComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YsFooterComponent, "ys-footer", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "brand": { "alias": "brand"; "required": false; }; "copyright": { "alias": "copyright"; "required": false; }; "socialNetworks": { "alias": "socialNetworks"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { YsFooterComponent };
|
|
25
|
-
export type { FooterBrand, SocialNetwork };
|
package/loading/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class YsLoadingMaskComponent {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
message: string | null;
|
|
6
|
-
backgroundStyleclass: string | null;
|
|
7
|
-
spinnerStyleclass: string | null;
|
|
8
|
-
messageStyleclass: string | null;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YsLoadingMaskComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YsLoadingMaskComponent, "ys-loading-mask", never, { "loading": { "alias": "loading"; "required": false; }; "message": { "alias": "message"; "required": false; }; "backgroundStyleclass": { "alias": "backgroundStyleclass"; "required": false; }; "spinnerStyleclass": { "alias": "spinnerStyleclass"; "required": false; }; "messageStyleclass": { "alias": "messageStyleclass"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { YsLoadingMaskComponent };
|