@c10t/nice-component-library 0.0.1-beta
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/components/base/base-add-edit.component.d.ts +28 -0
- package/components/base/base-search.component.d.ts +62 -0
- package/components/base/base-table.component.d.ts +16 -0
- package/components/cva-breadcrumb.component.d.ts +14 -0
- package/components/cva-counter-input.component.d.ts +42 -0
- package/components/cva-custom-dialog.component.d.ts +30 -0
- package/components/cva-input.component.d.ts +60 -0
- package/components/cva-loader.component.d.ts +9 -0
- package/components/cva-multi-select-autocomplete.d.ts +64 -0
- package/components/cva-quill-editor.component.d.ts +66 -0
- package/components/cva-radiobutton.component.d.ts +32 -0
- package/components/cva-tree.component.d.ts +38 -0
- package/components/datepicker/cva-date-picker.component.d.ts +43 -0
- package/components/datepicker/cva-range-date-picker.component.d.ts +64 -0
- package/components/table/cva-header-expand-button.component.d.ts +22 -0
- package/components/table/cva-smart-table.component.d.ts +72 -0
- package/components/table/cva-table.component.d.ts +62 -0
- package/components/tree/cva-flat-tree-node-left.component.d.ts +22 -0
- package/components/tree/cva-flat-tree-node-right.component.d.ts +18 -0
- package/components/tree/cva-flat-tree.component.d.ts +96 -0
- package/components/upload/cva-dialog-import-file.component.d.ts +30 -0
- package/components/upload/cva-multi-upload-img.component.d.ts +24 -0
- package/components/upload/cva-multi-upload.component.d.ts +30 -0
- package/components/upload/cva-upload-file.component.d.ts +70 -0
- package/directives/drag-drop.directive.d.ts +12 -0
- package/directives/format-datepicker.d.ts +8 -0
- package/directives/format-input.directive.d.ts +29 -0
- package/directives/multi-language-table-paginator.d.ts +12 -0
- package/directives/pattern.directive.d.ts +16 -0
- package/directives/style-paginator.directive.d.ts +31 -0
- package/enums/action-type.enum.d.ts +5 -0
- package/enums/align.enum.d.ts +5 -0
- package/enums/column-type.enum.d.ts +14 -0
- package/enums/dialog-type.enum.d.ts +5 -0
- package/enums/file-type.enum.d.ts +13 -0
- package/enums/icon-type.enum.d.ts +4 -0
- package/fesm2022/c10t-nice-component-library.mjs +9024 -0
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -0
- package/index.d.ts +75 -0
- package/models/base.model.d.ts +5 -0
- package/models/button-click.event.d.ts +6 -0
- package/models/components/bread-crumb.model.d.ts +5 -0
- package/models/components/button.model.d.ts +16 -0
- package/models/components/checkbox.model.d.ts +7 -0
- package/models/components/column.model.d.ts +37 -0
- package/models/components/custom-dialog-data-config.model.d.ts +16 -0
- package/models/components/dialog-import-file-config.model.d.ts +9 -0
- package/models/components/flat-tree-config.model.d.ts +5 -0
- package/models/components/flat-tree-node.model.d.ts +16 -0
- package/models/components/flat-tree.model.d.ts +7 -0
- package/models/components/range-date-picker.model.d.ts +7 -0
- package/models/components/select.model.d.ts +7 -0
- package/models/components/table-footer.model.d.ts +10 -0
- package/models/components/table-paging-request.model.d.ts +6 -0
- package/models/components/table-paging-response.model.d.ts +6 -0
- package/models/components/upload.model.d.ts +11 -0
- package/models/menu.model.d.ts +10 -0
- package/models/navigator.model.d.ts +10 -0
- package/models/nice-component-library.config.d.ts +13 -0
- package/models/oauth/authority.d.ts +3 -0
- package/models/oauth/oAuth2AuthenticationDto.d.ts +7 -0
- package/models/oauth/principal.d.ts +10 -0
- package/models/oauth/user.authentication.d.ts +4 -0
- package/models/permission.model.d.ts +7 -0
- package/models/role.model.d.ts +12 -0
- package/models/ui.state.d.ts +5 -0
- package/modules/angular-material.module.d.ts +45 -0
- package/modules/nice-component-library.module.d.ts +46 -0
- package/package.json +59 -0
- package/pipes/secure.pipe.d.ts +13 -0
- package/services/MultiTranslateHttpLoader.d.ts +13 -0
- package/services/api.service.d.ts +42 -0
- package/services/authorities.resolver.service.d.ts +18 -0
- package/services/authorities.service.d.ts +12 -0
- package/services/date-util.service.d.ts +23 -0
- package/services/flat.tree.service.d.ts +7 -0
- package/services/form-state.service.d.ts +9 -0
- package/services/jsog.http.interceptor.d.ts +11 -0
- package/services/loader.interceptor.d.ts +13 -0
- package/services/loader.service.d.ts +7 -0
- package/services/ns-validator.service.d.ts +48 -0
- package/services/singleton.translate.service.d.ts +8 -0
- package/services/table.service.d.ts +24 -0
- package/services/utils.service.d.ts +47 -0
- package/src/styles/base.theme.scss +3112 -0
- package/src/styles/components/cva-breadcrumb.scss +38 -0
- package/src/styles/components/cva-counter-input.scss +45 -0
- package/src/styles/components/cva-custom-dialog.scss +7 -0
- package/src/styles/components/cva-date-picker.scss +16 -0
- package/src/styles/components/cva-date-range-picker.scss +22 -0
- package/src/styles/components/cva-flat-tree.scss +171 -0
- package/src/styles/components/cva-input.scss +120 -0
- package/src/styles/components/cva-loader.scss +36 -0
- package/src/styles/components/cva-multi-select-autocomplete.scss +128 -0
- package/src/styles/components/cva-multi-upload.scss +145 -0
- package/src/styles/components/cva-radio-button.scss +58 -0
- package/src/styles/components/cva-smart-table.scss +129 -0
- package/src/styles/components/cva-table.scss +98 -0
- package/src/styles/components/cva-tree.scss +76 -0
- package/src/styles/fonts/Comfortaa-Medium.ttf +0 -0
- package/src/styles/fonts/Exo-Regular.ttf +0 -0
- package/src/styles/fonts/Mali-Medium.ttf +0 -0
- package/src/styles/fonts/VarelaRound-Regular.ttf +0 -0
- package/src/styles/fonts/fa-brands-400.eot +0 -0
- package/src/styles/fonts/fa-brands-400.svg +3570 -0
- package/src/styles/fonts/fa-brands-400.ttf +0 -0
- package/src/styles/fonts/fa-brands-400.woff +0 -0
- package/src/styles/fonts/fa-brands-400.woff2 +0 -0
- package/src/styles/fonts/fa-duotone-900.eot +0 -0
- package/src/styles/fonts/fa-duotone-900.svg +15055 -0
- package/src/styles/fonts/fa-duotone-900.ttf +0 -0
- package/src/styles/fonts/fa-duotone-900.woff +0 -0
- package/src/styles/fonts/fa-duotone-900.woff2 +0 -0
- package/src/styles/fonts/fa-light-300.eot +0 -0
- package/src/styles/fonts/fa-light-300.svg +12330 -0
- package/src/styles/fonts/fa-light-300.ttf +0 -0
- package/src/styles/fonts/fa-light-300.woff +0 -0
- package/src/styles/fonts/fa-light-300.woff2 +0 -0
- package/src/styles/fonts/fa-regular-400.eot +0 -0
- package/src/styles/fonts/fa-regular-400.svg +11256 -0
- package/src/styles/fonts/fa-regular-400.ttf +0 -0
- package/src/styles/fonts/fa-regular-400.woff +0 -0
- package/src/styles/fonts/fa-regular-400.woff2 +0 -0
- package/src/styles/fonts/fa-solid-900.eot +0 -0
- package/src/styles/fonts/fa-solid-900.svg +9588 -0
- package/src/styles/fonts/fa-solid-900.ttf +0 -0
- package/src/styles/fonts/fa-solid-900.woff +0 -0
- package/src/styles/fonts/fa-solid-900.woff2 +0 -0
- package/src/styles/fonts/fontawesome-webfont.eot +0 -0
- package/src/styles/fonts/fontawesome-webfont.svg +2671 -0
- package/src/styles/fonts/fontawesome-webfont.ttf +0 -0
- package/src/styles/fonts/fontawesome-webfont.woff +0 -0
- package/src/styles/fonts/fontawesome-webfont.woff2 +0 -0
- package/src/styles/fonts/glyphter.eot +0 -0
- package/src/styles/fonts/glyphter.svg +1 -0
- package/src/styles/fonts/glyphter.ttf +0 -0
- package/src/styles/fonts/glyphter.woff +0 -0
- package/src/styles/themes/athena.theme.scss +1684 -0
- package/src/styles/themes/button-default.style.scss +961 -0
- package/src/styles/themes/default.theme.scss +939 -0
- package/src/styles/themes/fonts-awesome.scss +12756 -0
- package/src/styles/themes/glyphter.scss +27 -0
- package/src/styles/themes/hera.theme.scss +1600 -0
- package/src/styles/themes/poseidon.theme.scss +1639 -0
- package/src/styles/themes/zeus.theme.scss +1655 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { Location } from '@angular/common';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { BaseTableComponent } from './base-table.component';
|
|
7
|
+
import { UtilsService } from '../../services/utils.service';
|
|
8
|
+
import { AuthoritiesService } from '../../services/authorities.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class BaseAddEditComponent extends BaseTableComponent implements OnInit {
|
|
11
|
+
protected activatedRoute: ActivatedRoute;
|
|
12
|
+
protected location: Location;
|
|
13
|
+
protected translateService: TranslateService;
|
|
14
|
+
protected utilsService: UtilsService;
|
|
15
|
+
protected authoritiesService: AuthoritiesService;
|
|
16
|
+
addEditForm: FormGroup;
|
|
17
|
+
isEdit: boolean;
|
|
18
|
+
id: any;
|
|
19
|
+
isView: boolean;
|
|
20
|
+
constructor(activatedRoute: ActivatedRoute, location: Location, translateService: TranslateService, utilsService: UtilsService, authoritiesService: AuthoritiesService);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
back(): void;
|
|
23
|
+
onSuccessFunc: (data: any, onSuccessMessage?: string) => void;
|
|
24
|
+
hasAuthority(): boolean;
|
|
25
|
+
getPosition(e: any, arr: any[]): string;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseAddEditComponent, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseAddEditComponent, "BaseAddEditComponent", never, {}, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { UtilsService } from '../../services/utils.service';
|
|
5
|
+
import { FormStateService } from '../../services/form-state.service';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { TablePagingRequestModel } from '../../models/components/table-paging-request.model';
|
|
8
|
+
import { Subject } from 'rxjs';
|
|
9
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
10
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
11
|
+
import { BaseModel } from '../../models/base.model';
|
|
12
|
+
import { ButtonClickEvent } from '../../models/button-click.event';
|
|
13
|
+
import { BaseTableComponent } from './base-table.component';
|
|
14
|
+
import { TablePagingResponseModel } from '../../models/components/table-paging-response.model';
|
|
15
|
+
import { NiceComponentLibraryConfig } from '../../models/nice-component-library.config';
|
|
16
|
+
import { ApiService } from '../../services/api.service';
|
|
17
|
+
import { ColumnModel } from '../../models/components/column.model';
|
|
18
|
+
import { AuthoritiesService } from '../../services/authorities.service';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export declare class BaseSearchComponent extends BaseTableComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
21
|
+
protected router: Router;
|
|
22
|
+
protected apiService: ApiService;
|
|
23
|
+
protected utilsService: UtilsService;
|
|
24
|
+
protected formStateService: FormStateService;
|
|
25
|
+
protected translateService: TranslateService;
|
|
26
|
+
protected injector: Injector;
|
|
27
|
+
protected activatedRoute: ActivatedRoute;
|
|
28
|
+
protected authoritiesService: AuthoritiesService;
|
|
29
|
+
protected formGroup: FormGroup;
|
|
30
|
+
protected moduleName: string;
|
|
31
|
+
protected unsubscribe$: Subject<void>;
|
|
32
|
+
protected isResetPaging: boolean;
|
|
33
|
+
isAdvancedSearch: boolean;
|
|
34
|
+
searchForm: FormGroup;
|
|
35
|
+
paging: TablePagingRequestModel;
|
|
36
|
+
results: MatTableDataSource<BaseModel>;
|
|
37
|
+
columns: ColumnModel[];
|
|
38
|
+
config: NiceComponentLibraryConfig;
|
|
39
|
+
constructor(router: Router, apiService: ApiService, utilsService: UtilsService, formStateService: FormStateService, translateService: TranslateService, injector: Injector, activatedRoute: ActivatedRoute, authoritiesService: AuthoritiesService, formGroup: FormGroup);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
ngAfterViewInit(): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
onSubmit(): void;
|
|
44
|
+
search(): void;
|
|
45
|
+
afterSearch: (data: TablePagingResponseModel) => void;
|
|
46
|
+
private afterFillData;
|
|
47
|
+
private removeEmptyParams;
|
|
48
|
+
private updateHttpParams;
|
|
49
|
+
_fillData(nativeUrl: string, params: HttpParams, baseUrl?: string): void;
|
|
50
|
+
_fillDataByPostMethod(nativeUrl: string, obj: any, options: {
|
|
51
|
+
headers?: HttpHeaders;
|
|
52
|
+
params: HttpParams;
|
|
53
|
+
}, baseUrl?: string): void;
|
|
54
|
+
pagingChange(event: TablePagingRequestModel): void;
|
|
55
|
+
onClick(event: ButtonClickEvent): void;
|
|
56
|
+
onSuccessFunc: (data: any, onSuccessMessage?: string) => void;
|
|
57
|
+
resetSearchFormValue(): void;
|
|
58
|
+
toggleAdvancedSearch(): void;
|
|
59
|
+
params2Object(params: HttpParams): Object;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSearchComponent, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseSearchComponent, "BaseSearchComponent", never, {}, {}, never, never, false, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonClickEvent } from '../../models/button-click.event';
|
|
2
|
+
import { OAuth2AuthenticationDto } from '../../models/oauth/oAuth2AuthenticationDto';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { AuthoritiesService } from '../../services/authorities.service';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import { HttpParams } from '@angular/common/http';
|
|
7
|
+
export declare class BaseTableComponent {
|
|
8
|
+
protected activatedRoute: ActivatedRoute;
|
|
9
|
+
protected authoritiesService: AuthoritiesService;
|
|
10
|
+
me: OAuth2AuthenticationDto | null;
|
|
11
|
+
constructor(activatedRoute: ActivatedRoute, authoritiesService: AuthoritiesService);
|
|
12
|
+
onRowButtonClick(event: ButtonClickEvent): void;
|
|
13
|
+
_collectParams(searchForm: FormGroup, map: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
}): HttpParams;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BreadCrumbModel } from '../models/components/bread-crumb.model';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaBreadcrumbComponent implements OnInit {
|
|
6
|
+
private activatedRoute;
|
|
7
|
+
breadcrumbList: Array<BreadCrumbModel>;
|
|
8
|
+
updateLabel: EventEmitter<any>;
|
|
9
|
+
constructor(activatedRoute: ActivatedRoute);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
buildBreadCrumb(route: ActivatedRoute, url?: string, breadcrumbs?: Array<BreadCrumbModel>): Array<BreadCrumbModel>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaBreadcrumbComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaBreadcrumbComponent, "cva-breadcrumb", never, {}, { "updateLabel": "updateLabel"; }, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { NsValidator } from '../services/ns-validator.service';
|
|
4
|
+
import { AlignEnum } from '../enums/align.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CvaCounterInputComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
private injector;
|
|
8
|
+
label: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
suffixText: string;
|
|
11
|
+
hint: string;
|
|
12
|
+
value: number;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
16
|
+
min: (() => number) | number | null;
|
|
17
|
+
max: (() => number) | number | null;
|
|
18
|
+
error: any;
|
|
19
|
+
isDecimal: boolean;
|
|
20
|
+
isLabelOutside: boolean;
|
|
21
|
+
isFloatLabel: boolean;
|
|
22
|
+
percentOfLabelOutside: number;
|
|
23
|
+
alignNumber: AlignEnum;
|
|
24
|
+
isFormControl: boolean;
|
|
25
|
+
onChange: EventEmitter<number>;
|
|
26
|
+
formControl: AbstractControl | undefined;
|
|
27
|
+
get NsValidator(): typeof NsValidator;
|
|
28
|
+
constructor(injector: Injector, ngControl: NgControl);
|
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
get counterValue(): number;
|
|
32
|
+
set counterValue(val: number);
|
|
33
|
+
getMinNumber(): number;
|
|
34
|
+
getMaxNumber(): number;
|
|
35
|
+
callValidator(): void;
|
|
36
|
+
writeValue(value: any): void;
|
|
37
|
+
propagateChange: (_: any) => void;
|
|
38
|
+
registerOnChange(fn: any): void;
|
|
39
|
+
registerOnTouched(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaCounterInputComponent, [null, { optional: true; self: true; }]>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaCounterInputComponent, "cva-counter-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suffixText": { "alias": "suffixText"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "error": { "alias": "error"; "required": false; }; "isDecimal": { "alias": "isDecimal"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "alignNumber": { "alias": "alignNumber"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { DialogTypeEnum } from '../enums/dialog-type.enum';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { CustomDialogDataConfigModel } from '../models/components/custom-dialog-data-config.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CvaCustomDialogComponent implements OnInit, ControlValueAccessor {
|
|
10
|
+
private translateService;
|
|
11
|
+
private dialogRef;
|
|
12
|
+
private injector;
|
|
13
|
+
data: CustomDialogDataConfigModel;
|
|
14
|
+
config: NiceComponentLibraryConfig;
|
|
15
|
+
get DialogTypeEnum(): typeof DialogTypeEnum;
|
|
16
|
+
inputText: string;
|
|
17
|
+
errorInputText: string;
|
|
18
|
+
isError: boolean;
|
|
19
|
+
constructor(translateService: TranslateService, dialogRef: MatDialogRef<CvaCustomDialogComponent>, injector: Injector, ngControl: NgControl, data: CustomDialogDataConfigModel);
|
|
20
|
+
writeValue(obj: any): void;
|
|
21
|
+
propagateChange: (_: any) => void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
onConfirm(): void;
|
|
26
|
+
onCancel(): void;
|
|
27
|
+
onChangeInput(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaCustomDialogComponent, [null, null, null, { optional: true; self: true; }, null]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaCustomDialogComponent, "cva-custom-dialog", never, {}, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { NsValidator } from '../services/ns-validator.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaInputComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
6
|
+
private injector;
|
|
7
|
+
label: string;
|
|
8
|
+
name: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
text: string;
|
|
14
|
+
type: string;
|
|
15
|
+
pattern: any;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
18
|
+
onChange: EventEmitter<string>;
|
|
19
|
+
multiline: boolean;
|
|
20
|
+
isLabelOutside: boolean;
|
|
21
|
+
isFloatLabel: boolean;
|
|
22
|
+
minLength: number | undefined;
|
|
23
|
+
maxLength: number | undefined;
|
|
24
|
+
onFocusStatus: boolean;
|
|
25
|
+
maxLengthDisplay: number | undefined;
|
|
26
|
+
percentOfLabelOutside: number;
|
|
27
|
+
suffixFontAwesomeClass: string;
|
|
28
|
+
patternFilter: string;
|
|
29
|
+
isFormControl: boolean;
|
|
30
|
+
formatFunc: any;
|
|
31
|
+
control: AbstractControl | undefined;
|
|
32
|
+
get NsValidator(): typeof NsValidator;
|
|
33
|
+
constructor(injector: Injector, ngControl: NgControl);
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
get textValue(): string;
|
|
37
|
+
set textValue(val: string);
|
|
38
|
+
callValidator(): void;
|
|
39
|
+
propagateChange: (_: any) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Write a new value to the element.
|
|
42
|
+
*/
|
|
43
|
+
writeValue(obj: any): void;
|
|
44
|
+
/**
|
|
45
|
+
* Set the function to be called
|
|
46
|
+
* when the formControl receives a change event.
|
|
47
|
+
*/
|
|
48
|
+
registerOnChange(fn: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* Set the function to be called
|
|
51
|
+
* when the formControl receives a touch event.
|
|
52
|
+
*/
|
|
53
|
+
registerOnTouched(): void;
|
|
54
|
+
displayLength(): string | number;
|
|
55
|
+
getMaxLength(): number;
|
|
56
|
+
onFocus(): void;
|
|
57
|
+
onBlur(): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaInputComponent, [null, { optional: true; self: true; }]>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaInputComponent, "cva-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxLengthDisplay": { "alias": "maxLengthDisplay"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "suffixFontAwesomeClass": { "alias": "suffixFontAwesomeClass"; "required": false; }; "patternFilter": { "alias": "patternFilter"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "formatFunc": { "alias": "formatFunc"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoaderService } from '../services/loader.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CvaLoaderComponent {
|
|
4
|
+
loaderService: LoaderService;
|
|
5
|
+
imgSrc: string;
|
|
6
|
+
constructor(loaderService: LoaderService);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaLoaderComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaLoaderComponent, "cva-loader", never, { "imgSrc": { "alias": "imgSrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { SelectModel } from '../models/components/select.model';
|
|
4
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
5
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { NsValidator } from '../services/ns-validator.service';
|
|
8
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
9
|
+
import { MatOptionSelectionChange } from '@angular/material/core';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CvaMultiSelectAutocomplete implements ControlValueAccessor, OnInit, OnChanges {
|
|
12
|
+
private translateService;
|
|
13
|
+
private injector;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
label: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
value: any[] | any;
|
|
18
|
+
options: SelectModel[];
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
21
|
+
multiple: boolean;
|
|
22
|
+
required: boolean | (() => boolean);
|
|
23
|
+
isTree: boolean;
|
|
24
|
+
treeSymbol: string;
|
|
25
|
+
sizeOfItemsInListByPixels: number;
|
|
26
|
+
isLabelOutside: boolean;
|
|
27
|
+
isFloatLabel: boolean;
|
|
28
|
+
percentOfLabelOutside: number;
|
|
29
|
+
selectionChange: EventEmitter<any>;
|
|
30
|
+
selectedOptionDataChange: EventEmitter<SelectModel[]>;
|
|
31
|
+
valueOptionRef: SelectModel[];
|
|
32
|
+
isFormControl: boolean;
|
|
33
|
+
formControl: AbstractControl | undefined;
|
|
34
|
+
filteredOptions: SelectModel[];
|
|
35
|
+
selectAllChecked: boolean;
|
|
36
|
+
_displayString: string;
|
|
37
|
+
get displayString(): string;
|
|
38
|
+
labelCount: number;
|
|
39
|
+
cdkVirtualScrollViewPort: CdkVirtualScrollViewport | undefined;
|
|
40
|
+
get NsValidator(): typeof NsValidator;
|
|
41
|
+
constructor(translateService: TranslateService, injector: Injector, ngControl: NgControl);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
getRequired(): boolean;
|
|
44
|
+
callValidator(): void;
|
|
45
|
+
get selectedValue(): any[] | any;
|
|
46
|
+
set selectedValue(val: any[] | any);
|
|
47
|
+
propagateChange: (_: any) => void;
|
|
48
|
+
writeValue(obj: any[] | any): void;
|
|
49
|
+
registerOnChange(fn: any): void;
|
|
50
|
+
registerOnTouched(): void;
|
|
51
|
+
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
52
|
+
toggleSelectAll(val: MatCheckboxChange): void;
|
|
53
|
+
filterItem(value: string): void;
|
|
54
|
+
onDisplayString(): string;
|
|
55
|
+
matSelectionChange(val: MatSelectChange): void;
|
|
56
|
+
onSelectionChange(change: MatOptionSelectionChange): void;
|
|
57
|
+
updateSelectAll(): void;
|
|
58
|
+
onDisplayTreeData(displayValue: string, isFirstLine: boolean): string;
|
|
59
|
+
openChange($event: boolean): void;
|
|
60
|
+
getItemSize(): number;
|
|
61
|
+
getViewPortHeight(): number;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaMultiSelectAutocomplete, [null, null, { optional: true; self: true; }]>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaMultiSelectAutocomplete, "cva-multi-select-autocomplete", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "isTree": { "alias": "isTree"; "required": false; }; "treeSymbol": { "alias": "treeSymbol"; "required": false; }; "sizeOfItemsInListByPixels": { "alias": "sizeOfItemsInListByPixels"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "selectionChange": "selectionChange"; "selectedOptionDataChange": "selectedOptionDataChange"; }, never, never, false, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { QuillEditorComponent, QuillModules } from 'ngx-quill';
|
|
4
|
+
import { NsValidator } from '../services/ns-validator.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CvaQuillEditorComponent implements ControlValueAccessor, OnInit {
|
|
7
|
+
private injector;
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
hint: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
text: string;
|
|
15
|
+
textCounter: number;
|
|
16
|
+
quillStyle: any;
|
|
17
|
+
quillModule: QuillModules | undefined;
|
|
18
|
+
onlyCheckTextValidation: boolean;
|
|
19
|
+
format?: 'object' | 'html' | 'text' | 'json';
|
|
20
|
+
pattern: any;
|
|
21
|
+
readonly: boolean;
|
|
22
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
23
|
+
onChange: EventEmitter<string>;
|
|
24
|
+
multiline: boolean;
|
|
25
|
+
isLabelOutside: boolean;
|
|
26
|
+
isFloatLabel: boolean;
|
|
27
|
+
minLength: number | undefined;
|
|
28
|
+
maxLength: number | undefined;
|
|
29
|
+
maxSize: number | undefined;
|
|
30
|
+
minSize: number | undefined;
|
|
31
|
+
onFocusStatus: boolean;
|
|
32
|
+
maxLengthDisplay: number | undefined;
|
|
33
|
+
isFormControl: boolean;
|
|
34
|
+
formatFunc: any;
|
|
35
|
+
control: AbstractControl | undefined;
|
|
36
|
+
get NsValidator(): typeof NsValidator;
|
|
37
|
+
constructor(injector: Injector, ngControl: NgControl);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
get textValue(): string;
|
|
40
|
+
set textValue(val: string);
|
|
41
|
+
customLengthValidator: (control: AbstractControl) => ValidationErrors | null;
|
|
42
|
+
customSizeValidator: (control: AbstractControl) => ValidationErrors | null;
|
|
43
|
+
callValidator(): void;
|
|
44
|
+
propagateChange: (_: any) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Write a new value to the element.
|
|
47
|
+
*/
|
|
48
|
+
writeValue(obj: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* Set the function to be called
|
|
51
|
+
* when the formControl receives a change event.
|
|
52
|
+
*/
|
|
53
|
+
registerOnChange(fn: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* Set the function to be called
|
|
56
|
+
* when the formControl receives a touch event.
|
|
57
|
+
*/
|
|
58
|
+
registerOnTouched(): void;
|
|
59
|
+
displayLength(): string | number;
|
|
60
|
+
getMaxLength(): number;
|
|
61
|
+
onFocus(event: any): void;
|
|
62
|
+
onBlur(event: any): void;
|
|
63
|
+
onChangeContent(quill: QuillEditorComponent | any, text: any): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaQuillEditorComponent, [null, { optional: true; self: true; }]>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaQuillEditorComponent, "cva-quill-editor", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "quillStyle": { "alias": "quillStyle"; "required": false; }; "quillModule": { "alias": "quillModule"; "required": false; }; "onlyCheckTextValidation": { "alias": "onlyCheckTextValidation"; "required": false; }; "format": { "alias": "format"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxLengthDisplay": { "alias": "maxLengthDisplay"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "formatFunc": { "alias": "formatFunc"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { SelectModel } from '../models/components/select.model';
|
|
4
|
+
import { NsValidator } from "../services/ns-validator.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CvaRadiobuttonComponent implements ControlValueAccessor, OnChanges, OnInit {
|
|
7
|
+
private injector;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
value: any;
|
|
10
|
+
hint: string;
|
|
11
|
+
options: SelectModel[];
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
direction: 'vertical' | 'horizontal';
|
|
15
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
16
|
+
onChange: EventEmitter<any>;
|
|
17
|
+
isFormControl: boolean;
|
|
18
|
+
control: AbstractControl | undefined;
|
|
19
|
+
get selectedValue(): number;
|
|
20
|
+
set selectedValue(val: number);
|
|
21
|
+
get NsValidator(): typeof NsValidator;
|
|
22
|
+
constructor(injector: Injector, ngControl: NgControl);
|
|
23
|
+
ngOnChanges(): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
propagateChange: (_: any) => void;
|
|
27
|
+
registerOnChange(fn: any): void;
|
|
28
|
+
registerOnTouched(): void;
|
|
29
|
+
callValidator(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaRadiobuttonComponent, [null, { optional: true; self: true; }]>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaRadiobuttonComponent, "cva-radiobutton", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
3
|
+
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
4
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
5
|
+
import { SelectModel } from '../models/components/select.model';
|
|
6
|
+
import { BaseModel } from '../models/base.model';
|
|
7
|
+
import { FlatTreeModel } from '../models/components/flat-tree.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CvaTreeComponent implements ControlValueAccessor {
|
|
10
|
+
_treeFields: FlatTreeModel;
|
|
11
|
+
autocompleteData: SelectModel[];
|
|
12
|
+
set treeData(treeFields: FlatTreeModel);
|
|
13
|
+
placeholder: string;
|
|
14
|
+
symbol: string;
|
|
15
|
+
isShowLeafNextTo: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
isHidingTree: boolean;
|
|
18
|
+
selectionChange: EventEmitter<any>;
|
|
19
|
+
treeControl: NestedTreeControl<any>;
|
|
20
|
+
dataSource: MatTreeNestedDataSource<BaseModel>;
|
|
21
|
+
autocompleteControl: FormControl<any>;
|
|
22
|
+
constructor();
|
|
23
|
+
propagateChange: (_: any) => void;
|
|
24
|
+
writeValue(obj: any[]): void;
|
|
25
|
+
registerOnChange(fn: any): void;
|
|
26
|
+
registerOnTouched(): void;
|
|
27
|
+
hasChild: (_: number, node: any) => boolean;
|
|
28
|
+
onSelectChange(): void;
|
|
29
|
+
updateTreeChecked(nodes: BaseModel[], selectedValues: string[]): void;
|
|
30
|
+
isShowNodeRecursive(nodes: BaseModel[]): boolean;
|
|
31
|
+
isMatchFilterInputValue(node: BaseModel): boolean;
|
|
32
|
+
isShowButtonChoose(node: BaseModel): boolean;
|
|
33
|
+
isShowButtonRemove(node: BaseModel): boolean;
|
|
34
|
+
onChooseNode(node: BaseModel): void;
|
|
35
|
+
onRemoveNode(node: BaseModel): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaTreeComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTreeComponent, "cva-tree", never, { "treeData": { "alias": "treeData"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; "isShowLeafNextTo": { "alias": "isShowLeafNextTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isHidingTree": { "alias": "isHidingTree"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { DateUtilService } from '../../services/date-util.service';
|
|
4
|
+
import { NiceComponentLibraryConfig } from '../../models/nice-component-library.config';
|
|
5
|
+
import { NsValidator } from '../../services/ns-validator.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CvaDatePickerComponent implements ControlValueAccessor, OnInit {
|
|
8
|
+
private dateServiceUtil;
|
|
9
|
+
private injector;
|
|
10
|
+
label: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
value: any;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
required: boolean | (() => boolean);
|
|
15
|
+
minDate: (() => Date) | Date;
|
|
16
|
+
maxDate: (() => Date) | Date;
|
|
17
|
+
onChange: EventEmitter<string>;
|
|
18
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
19
|
+
isLabelOutside: boolean;
|
|
20
|
+
isFloatLabel: boolean;
|
|
21
|
+
percentOfLabelOutside: number;
|
|
22
|
+
title: string | null;
|
|
23
|
+
config: NiceComponentLibraryConfig;
|
|
24
|
+
isFormControl: boolean;
|
|
25
|
+
formControl: AbstractControl | undefined;
|
|
26
|
+
get NsValidator(): typeof NsValidator;
|
|
27
|
+
constructor(dateServiceUtil: DateUtilService, ngControl: NgControl, injector: Injector);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
callValidator(): void;
|
|
30
|
+
checkRequired(isRequired: boolean | (() => boolean)): boolean;
|
|
31
|
+
get datepickerValue(): any;
|
|
32
|
+
set datepickerValue(val: any);
|
|
33
|
+
propagateChange: (_: any) => void;
|
|
34
|
+
registerOnChange(fn: any): void;
|
|
35
|
+
registerOnTouched(fn: any): void;
|
|
36
|
+
writeValue(obj: Date | string | null): void;
|
|
37
|
+
onClear(): void;
|
|
38
|
+
getMinDate(): Date;
|
|
39
|
+
getMaxDate(): Date;
|
|
40
|
+
isString(inputValue: any): boolean;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaDatePickerComponent, [null, { optional: true; self: true; }, null]>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaDatePickerComponent, "cva-date-picker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { RangeDatePickerModel } from '../../models/components/range-date-picker.model';
|
|
4
|
+
import { DateUtilService } from '../../services/date-util.service';
|
|
5
|
+
import { NsValidator } from '../../services/ns-validator.service';
|
|
6
|
+
import { MatDateRangePicker } from '@angular/material/datepicker';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CvaRangeDatePickerComponent implements ControlValueAccessor, OnInit {
|
|
9
|
+
private dateServiceUtil;
|
|
10
|
+
private injector;
|
|
11
|
+
label: string;
|
|
12
|
+
placeholderFromDate: string;
|
|
13
|
+
placeholderToDate: string;
|
|
14
|
+
/**
|
|
15
|
+
* giá trị là true khi muốn disabled tất cả control
|
|
16
|
+
*/
|
|
17
|
+
disabledAll: boolean | (() => boolean);
|
|
18
|
+
/**
|
|
19
|
+
* giá trị là true khi muốn disabled control name fromDate
|
|
20
|
+
*/
|
|
21
|
+
disabledFromDate: boolean | (() => boolean);
|
|
22
|
+
value: RangeDatePickerModel;
|
|
23
|
+
requiredFromDate: boolean | (() => boolean);
|
|
24
|
+
requiredToDate: boolean | (() => boolean);
|
|
25
|
+
minDate: (() => Date) | Date;
|
|
26
|
+
maxDate: (() => Date) | Date;
|
|
27
|
+
onChange: EventEmitter<any>;
|
|
28
|
+
onOpenPicker: EventEmitter<any>;
|
|
29
|
+
/** key: requiredFromDate, requiredToDate, min, max */
|
|
30
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
31
|
+
isLabelOutside: boolean;
|
|
32
|
+
isFloatLabel: boolean;
|
|
33
|
+
/** percent label outside css */
|
|
34
|
+
percentOfLabelOutside: number;
|
|
35
|
+
fromDateControlName: string;
|
|
36
|
+
toDateControlName: string;
|
|
37
|
+
title: string | null;
|
|
38
|
+
isFormControl: boolean;
|
|
39
|
+
formControl: AbstractControl | undefined;
|
|
40
|
+
defaultFromDate: any;
|
|
41
|
+
get NsValiator(): typeof NsValidator;
|
|
42
|
+
constructor(dateServiceUtil: DateUtilService, ngControl: NgControl, injector: Injector);
|
|
43
|
+
get fromDateValue(): any;
|
|
44
|
+
set fromDateValue(val: any);
|
|
45
|
+
get toDateValue(): any;
|
|
46
|
+
set toDateValue(val: any);
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
propagateChange: (_: any) => void;
|
|
49
|
+
registerOnChange(fn: any): void;
|
|
50
|
+
registerOnTouched(fn: any): void;
|
|
51
|
+
writeValue(obj: RangeDatePickerModel): void;
|
|
52
|
+
getDisabled(disabled: boolean | (() => boolean)): boolean;
|
|
53
|
+
createTitle(): void;
|
|
54
|
+
callValidator(): void;
|
|
55
|
+
prepareWriteValueData(val: any): string;
|
|
56
|
+
isString(inputValue: any): boolean;
|
|
57
|
+
getMinDate(): Date;
|
|
58
|
+
getMaxDate(): Date;
|
|
59
|
+
checkRequired(isRequired: boolean | (() => boolean)): boolean;
|
|
60
|
+
clearRange(event: Event): void;
|
|
61
|
+
openPicker(picker: MatDateRangePicker<any>): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaRangeDatePickerComponent, [null, { optional: true; self: true; }, null]>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaRangeDatePickerComponent, "cva-range-date-picker", never, { "label": { "alias": "label"; "required": false; }; "placeholderFromDate": { "alias": "placeholderFromDate"; "required": false; }; "placeholderToDate": { "alias": "placeholderToDate"; "required": false; }; "disabledAll": { "alias": "disabledAll"; "required": false; }; "disabledFromDate": { "alias": "disabledFromDate"; "required": false; }; "value": { "alias": "value"; "required": false; }; "requiredFromDate": { "alias": "requiredFromDate"; "required": false; }; "requiredToDate": { "alias": "requiredToDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "fromDateControlName": { "alias": "fromDateControlName"; "required": false; }; "toDateControlName": { "alias": "toDateControlName"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; "onOpenPicker": "onOpenPicker"; }, never, never, false, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ColumnModel } from '../../models/components/column.model';
|
|
3
|
+
import { ButtonModel } from '../../models/components/button.model';
|
|
4
|
+
import { ColumnTypeEnum } from '../../enums/column-type.enum';
|
|
5
|
+
import { IconTypeEnum } from '../../enums/icon-type.enum';
|
|
6
|
+
import { TableService } from '../../services/table.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CvaHeaderExpandButtonComponent implements OnInit {
|
|
9
|
+
expandHeaderButton?: ButtonModel;
|
|
10
|
+
columns: ColumnModel[];
|
|
11
|
+
moduleName: string;
|
|
12
|
+
expandDisplayCols: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
constructor();
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
18
|
+
get IconTypes(): typeof IconTypeEnum;
|
|
19
|
+
get TableService(): typeof TableService;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaHeaderExpandButtonComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaHeaderExpandButtonComponent, "cva-header-expand-button", never, { "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "moduleName": { "alias": "moduleName"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|