@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,72 @@
|
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
4
|
+
import { MatTable, MatTableDataSource } from '@angular/material/table';
|
|
5
|
+
import { ColumnModel } from '../../models/components/column.model';
|
|
6
|
+
import { ColumnTypeEnum } from '../../enums/column-type.enum';
|
|
7
|
+
import { ButtonClickEvent } from '../../models/button-click.event';
|
|
8
|
+
import { BaseModel } from '../../models/base.model';
|
|
9
|
+
import { AlignEnum } from '../../enums/align.enum';
|
|
10
|
+
import { ButtonModel } from '../../models/components/button.model';
|
|
11
|
+
import { TableService } from '../../services/table.service';
|
|
12
|
+
import { IconTypeEnum } from '../../enums/icon-type.enum';
|
|
13
|
+
import { TableFooterModel } from '../../models/components/table-footer.model';
|
|
14
|
+
import { NiceComponentLibraryConfig } from '../../models/nice-component-library.config';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class CvaSmartTableComponent implements ControlValueAccessor, OnChanges, OnInit, AfterContentChecked {
|
|
17
|
+
private ref;
|
|
18
|
+
config: NiceComponentLibraryConfig;
|
|
19
|
+
private injector;
|
|
20
|
+
moduleName: string;
|
|
21
|
+
columns: ColumnModel[];
|
|
22
|
+
buttons: ButtonModel[];
|
|
23
|
+
value: any[];
|
|
24
|
+
minRow: number;
|
|
25
|
+
maxRow: number;
|
|
26
|
+
errorMessages: Map<string, () => string>;
|
|
27
|
+
isFormControl: boolean;
|
|
28
|
+
isSticky: boolean;
|
|
29
|
+
isStickyHeader: boolean;
|
|
30
|
+
isStickyFooter: boolean;
|
|
31
|
+
clickAction: EventEmitter<ButtonClickEvent>;
|
|
32
|
+
onChange: EventEmitter<any>;
|
|
33
|
+
matTable?: MatTable<any>;
|
|
34
|
+
isExpandRowTable: boolean;
|
|
35
|
+
expandRowProperty: string;
|
|
36
|
+
$displayedColumns: string[];
|
|
37
|
+
$displayedFooters: string[][];
|
|
38
|
+
datasource: MatTableDataSource<BaseModel | any>;
|
|
39
|
+
formControl: AbstractControl | undefined;
|
|
40
|
+
selectAllChecked: boolean;
|
|
41
|
+
buttonColspan: number;
|
|
42
|
+
get AlignEnum(): typeof AlignEnum;
|
|
43
|
+
get IconTypes(): typeof IconTypeEnum;
|
|
44
|
+
get TableService(): typeof TableService;
|
|
45
|
+
propagateChange: (_: any) => void;
|
|
46
|
+
writeValue(obj: any[] | any): void;
|
|
47
|
+
getParentRowData(): any[];
|
|
48
|
+
registerOnChange(fn: any): void;
|
|
49
|
+
registerOnTouched(): void;
|
|
50
|
+
constructor(ref: ChangeDetectorRef, config: NiceComponentLibraryConfig, injector: Injector, ngControl: NgControl);
|
|
51
|
+
ngOnChanges(): void;
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
ngAfterContentChecked(): void;
|
|
54
|
+
get displayedColumns(): string[];
|
|
55
|
+
get displayedFooters(): string[][];
|
|
56
|
+
onClick(action: string, result: any, index: number | null): void;
|
|
57
|
+
onCellValueChange(result: any, column: ColumnModel, $event: any): void;
|
|
58
|
+
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
59
|
+
toggleSelectAll(val: MatCheckboxChange, col: ColumnModel): void;
|
|
60
|
+
toggleSelect(val: MatCheckboxChange | null, result?: any, column?: ColumnModel): void;
|
|
61
|
+
onDisplayHeaderCell(column: ColumnModel): boolean;
|
|
62
|
+
onDisplayFooter(footer: TableFooterModel, dataTable: any[]): boolean;
|
|
63
|
+
callValidator(): void;
|
|
64
|
+
getRequired(column: ColumnModel): boolean;
|
|
65
|
+
getIsDecimal(column: ColumnModel): boolean;
|
|
66
|
+
getErrorMessageMap(column: ColumnModel): Map<string, () => string>;
|
|
67
|
+
expandRow(i: number, row: any, parentRowClassIndex: number | 0 | 1): void;
|
|
68
|
+
getCounterImputAlign(column: ColumnModel): AlignEnum;
|
|
69
|
+
getHeaderButtonColspan(): number;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaSmartTableComponent, [null, null, null, { optional: true; self: true; }]>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaSmartTableComponent, "cva-smart-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minRow": { "alias": "minRow"; "required": false; }; "maxRow": { "alias": "maxRow"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "isSticky": { "alias": "isSticky"; "required": false; }; "isStickyHeader": { "alias": "isStickyHeader"; "required": false; }; "isStickyFooter": { "alias": "isStickyFooter"; "required": false; }; "isExpandRowTable": { "alias": "isExpandRowTable"; "required": false; }; "expandRowProperty": { "alias": "expandRowProperty"; "required": false; }; }, { "clickAction": "clickAction"; "onChange": "onChange"; }, never, never, false, never>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
3
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
4
|
+
import { TablePagingRequestModel } from '../../models/components/table-paging-request.model';
|
|
5
|
+
import { ButtonClickEvent } from '../../models/button-click.event';
|
|
6
|
+
import { ButtonModel } from '../../models/components/button.model';
|
|
7
|
+
import { ColumnModel } from '../../models/components/column.model';
|
|
8
|
+
import { ColumnTypeEnum } from '../../enums/column-type.enum';
|
|
9
|
+
import { NiceComponentLibraryConfig } from '../../models/nice-component-library.config';
|
|
10
|
+
import { AlignEnum } from '../../enums/align.enum';
|
|
11
|
+
import { BaseModel } from '../../models/base.model';
|
|
12
|
+
import { LoaderService } from '../../services/loader.service';
|
|
13
|
+
import { TableService } from '../../services/table.service';
|
|
14
|
+
import { IconTypeEnum } from '../../enums/icon-type.enum';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
17
|
+
config: NiceComponentLibraryConfig;
|
|
18
|
+
private cdRef;
|
|
19
|
+
loaderService: LoaderService;
|
|
20
|
+
moduleName: string;
|
|
21
|
+
varPaging: TablePagingRequestModel;
|
|
22
|
+
results: MatTableDataSource<BaseModel>;
|
|
23
|
+
columns: ColumnModel[];
|
|
24
|
+
buttons: ButtonModel[];
|
|
25
|
+
showTotalPages: number;
|
|
26
|
+
expandHeaderButton?: ButtonModel;
|
|
27
|
+
pageSizeOptions: number[];
|
|
28
|
+
pagingChange: EventEmitter<TablePagingRequestModel>;
|
|
29
|
+
clickAction: EventEmitter<ButtonClickEvent>;
|
|
30
|
+
onRowClickAction: EventEmitter<ButtonClickEvent>;
|
|
31
|
+
selectAllChecked: boolean;
|
|
32
|
+
goToPageNumber: number;
|
|
33
|
+
errorMsg: Map<string, () => string>;
|
|
34
|
+
expandDisplayCols: {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
buttonColspan: number;
|
|
38
|
+
constructor(config: NiceComponentLibraryConfig, cdRef: ChangeDetectorRef, loaderService: LoaderService);
|
|
39
|
+
set paging(value: TablePagingRequestModel);
|
|
40
|
+
get displayedColumns(): string[];
|
|
41
|
+
isExpandColumn(col: ColumnModel): boolean;
|
|
42
|
+
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
43
|
+
get IconTypes(): typeof IconTypeEnum;
|
|
44
|
+
get AlignEnum(): typeof AlignEnum;
|
|
45
|
+
get TableService(): typeof TableService;
|
|
46
|
+
getPage(pageable: any): void;
|
|
47
|
+
onClick(action: string, result: any): void;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
onRowClick(result: any, index?: number): void;
|
|
50
|
+
onDisplayHeaderCell(column: ColumnModel): boolean;
|
|
51
|
+
onDisplayCell(column: ColumnModel, cell: any): boolean;
|
|
52
|
+
toggleSelectAll(val: MatCheckboxChange, col: ColumnModel): void;
|
|
53
|
+
toggleSelect(val: MatCheckboxChange | null, result: any, column?: ColumnModel): void;
|
|
54
|
+
ngAfterViewChecked(): void;
|
|
55
|
+
hasData(): boolean;
|
|
56
|
+
getTotalPage(): number;
|
|
57
|
+
goToPage(): void;
|
|
58
|
+
getHeaderButtonColspan(): number;
|
|
59
|
+
onChangeGoToPageNumber($event: number): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaTableComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableComponent, "cva-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "results": { "alias": "results"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChange": "pagingChange"; "clickAction": "clickAction"; "onRowClickAction": "onRowClickAction"; }, never, never, false, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FlatTreeNodeModel } from '../../models/components/flat-tree-node.model';
|
|
3
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaFlatTreeNodeLeftComponent {
|
|
6
|
+
treeControl: FlatTreeControl<FlatTreeNodeModel> | undefined;
|
|
7
|
+
isHideCheckbox: boolean;
|
|
8
|
+
node: FlatTreeNodeModel;
|
|
9
|
+
toggle: EventEmitter<void>;
|
|
10
|
+
onParentNodeClick: EventEmitter<void>;
|
|
11
|
+
onLeafNodeClick: EventEmitter<void>;
|
|
12
|
+
ngModelParentChange: EventEmitter<boolean>;
|
|
13
|
+
ngModelLeafChange: EventEmitter<boolean>;
|
|
14
|
+
hasChild: (node: FlatTreeNodeModel) => boolean;
|
|
15
|
+
checkDisabledNode(node: FlatTreeNodeModel): boolean;
|
|
16
|
+
getDisabledInputFunc(node: FlatTreeNodeModel): boolean;
|
|
17
|
+
descendantsAllSelected(node: FlatTreeNodeModel): boolean;
|
|
18
|
+
descendantsPartiallySelected(node: FlatTreeNodeModel): boolean;
|
|
19
|
+
onDisabledParent(parent: FlatTreeNodeModel): boolean;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaFlatTreeNodeLeftComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaFlatTreeNodeLeftComponent, "cva-flat-tree-node-left", never, { "treeControl": { "alias": "treeControl"; "required": false; }; "isHideCheckbox": { "alias": "isHideCheckbox"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, { "toggle": "toggle"; "onParentNodeClick": "onParentNodeClick"; "onLeafNodeClick": "onLeafNodeClick"; "ngModelParentChange": "ngModelParentChange"; "ngModelLeafChange": "ngModelLeafChange"; }, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
3
|
+
import { FlatTreeNodeModel } from '../../models/components/flat-tree-node.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaFlatTreeNodeRightComponent {
|
|
6
|
+
treeControl: FlatTreeControl<FlatTreeNodeModel> | undefined;
|
|
7
|
+
node: FlatTreeNodeModel;
|
|
8
|
+
isView: (() => boolean) | boolean;
|
|
9
|
+
toggle: EventEmitter<void>;
|
|
10
|
+
deSelectLeafNode: EventEmitter<void>;
|
|
11
|
+
deSelectParentNode: EventEmitter<void>;
|
|
12
|
+
hasChild: (node: FlatTreeNodeModel) => boolean;
|
|
13
|
+
checkDisabledNode(node: FlatTreeNodeModel): boolean;
|
|
14
|
+
getDisabledInputFunc(node: FlatTreeNodeModel): boolean;
|
|
15
|
+
checkIsView(isView: boolean | (() => boolean)): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaFlatTreeNodeRightComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaFlatTreeNodeRightComponent, "cva-flat-tree-node-right", never, { "treeControl": { "alias": "treeControl"; "required": false; }; "node": { "alias": "node"; "required": false; }; "isView": { "alias": "isView"; "required": false; }; }, { "toggle": "toggle"; "deSelectLeafNode": "deSelectLeafNode"; "deSelectParentNode": "deSelectParentNode"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
4
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { FlatTreeConfigModel } from '../../models/components/flat-tree-config.model';
|
|
7
|
+
import { FlatTreeNodeModel } from '../../models/components/flat-tree-node.model';
|
|
8
|
+
import { NsValidator } from '../../services/ns-validator.service';
|
|
9
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CvaFlatTreeComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges {
|
|
12
|
+
private translateService;
|
|
13
|
+
private injector;
|
|
14
|
+
private cdr;
|
|
15
|
+
label: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
value: any[];
|
|
18
|
+
valueObjRef: Map<any, FlatTreeNodeModel>;
|
|
19
|
+
multiple: boolean;
|
|
20
|
+
disabled: boolean | undefined;
|
|
21
|
+
isView: (() => boolean) | boolean;
|
|
22
|
+
isDisplayChooseTreeOnly: boolean;
|
|
23
|
+
isHideCheckbox: boolean;
|
|
24
|
+
isCollapseSelected: boolean;
|
|
25
|
+
selectedLabelTitle: string;
|
|
26
|
+
/** height of tree view */
|
|
27
|
+
viewHeight: number;
|
|
28
|
+
/** height of node view */
|
|
29
|
+
itemSize: number;
|
|
30
|
+
paddingLeft: number;
|
|
31
|
+
percentOfLabelOutside: number;
|
|
32
|
+
treeConfig?: FlatTreeConfigModel;
|
|
33
|
+
isSearchOutSide: boolean;
|
|
34
|
+
searchTextOutSide: string;
|
|
35
|
+
searchText: string;
|
|
36
|
+
errorMessages: Map<string, (e?: any) => string>;
|
|
37
|
+
fullDatasource: FlatTreeNodeModel[];
|
|
38
|
+
filterDatasource: FlatTreeNodeModel[];
|
|
39
|
+
treeControl: FlatTreeControl<FlatTreeNodeModel>;
|
|
40
|
+
treeFlattener: MatTreeFlattener<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
41
|
+
dataSource: MatTreeFlatDataSource<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
42
|
+
fullDataTreeControl: FlatTreeControl<FlatTreeNodeModel>;
|
|
43
|
+
fullDataTreeFlattener: MatTreeFlattener<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
44
|
+
fullDataDataSource: MatTreeFlatDataSource<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
45
|
+
selectedTreeControl: FlatTreeControl<FlatTreeNodeModel>;
|
|
46
|
+
selectedTreeFlattener: MatTreeFlattener<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
47
|
+
selectedDataSource: MatTreeFlatDataSource<FlatTreeNodeModel, FlatTreeNodeModel>;
|
|
48
|
+
selectedFullDataSource: FlatTreeNodeModel[];
|
|
49
|
+
selectedFullValues: Map<any, any>;
|
|
50
|
+
selectionChange: EventEmitter<any>;
|
|
51
|
+
isFormControl: boolean;
|
|
52
|
+
formControl: AbstractControl | undefined;
|
|
53
|
+
chooseVirtualScroll?: CdkVirtualScrollViewport;
|
|
54
|
+
selectedVirtualScroll?: CdkVirtualScrollViewport;
|
|
55
|
+
get NsValiator(): typeof NsValidator;
|
|
56
|
+
constructor(translateService: TranslateService, injector: Injector, cdr: ChangeDetectorRef, ngControl: NgControl);
|
|
57
|
+
setSelectedNode(): void;
|
|
58
|
+
setDataSourceOrigin(): void;
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
ngAfterViewInit(): void;
|
|
61
|
+
getDisplayInputFunc(node: FlatTreeNodeModel): boolean;
|
|
62
|
+
getDisabledInputFunc(node: FlatTreeNodeModel): boolean;
|
|
63
|
+
checkDisabledNode(node: FlatTreeNodeModel): boolean;
|
|
64
|
+
callValidator(): void;
|
|
65
|
+
checkRequired(isRequired: boolean | (() => boolean)): boolean;
|
|
66
|
+
checkIsView(isView: boolean | (() => boolean)): boolean;
|
|
67
|
+
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
68
|
+
transformer: (node: FlatTreeNodeModel, level: number) => FlatTreeNodeModel;
|
|
69
|
+
private _getLevel;
|
|
70
|
+
private _isExpandable;
|
|
71
|
+
private _getChildren;
|
|
72
|
+
propagateChange: (_: any) => void;
|
|
73
|
+
registerOnChange(fn: any): void;
|
|
74
|
+
registerOnTouched(fn: any): void;
|
|
75
|
+
writeValue(obj: any): void;
|
|
76
|
+
updateSelectedTree(): void;
|
|
77
|
+
checkedDefaultValue(): void;
|
|
78
|
+
getAllChildNode(treeControl: FlatTreeControl<FlatTreeNodeModel>, node: FlatTreeNodeModel): FlatTreeNodeModel[];
|
|
79
|
+
updateSelectAll(childrenNode?: FlatTreeNodeModel[]): void;
|
|
80
|
+
checkParentNode(checked: boolean, node: FlatTreeNodeModel, isSelectedChange?: boolean): void;
|
|
81
|
+
selectedTreeChange(node: FlatTreeNodeModel): void;
|
|
82
|
+
checkLeafNode(checked: boolean, node: FlatTreeNodeModel, isSelectedChange?: boolean): void;
|
|
83
|
+
getRootNode(node: FlatTreeNodeModel): FlatTreeNodeModel | null;
|
|
84
|
+
deSelect(node: FlatTreeNodeModel): void;
|
|
85
|
+
deSelectParent(node: FlatTreeNodeModel): void;
|
|
86
|
+
toggleTreeControl(treeControl: FlatTreeControl<FlatTreeNodeModel>, node: FlatTreeNodeModel): void;
|
|
87
|
+
toggleSelectedTree(node?: FlatTreeNodeModel): void;
|
|
88
|
+
onChangeSearchText(): void;
|
|
89
|
+
getDisplayTreeDataSource(dataOrigin: FlatTreeNodeModel[], copiedData: FlatTreeNodeModel[]): any[];
|
|
90
|
+
getCheckedSelectedTreeDataSource(dataOrigin: FlatTreeNodeModel[], copiedData: FlatTreeNodeModel[]): any[];
|
|
91
|
+
expandTreeDataSource(treeControl: FlatTreeControl<FlatTreeNodeModel>, expandProperty: 'isExpanded' | 'isFilterExpanded'): void;
|
|
92
|
+
onLeafNodeClick(node: FlatTreeNodeModel): void;
|
|
93
|
+
onParentNodeClick(node: FlatTreeNodeModel): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaFlatTreeComponent, [null, null, null, { optional: true; self: true; }]>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaFlatTreeComponent, "cva-flat-tree", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isView": { "alias": "isView"; "required": false; }; "isDisplayChooseTreeOnly": { "alias": "isDisplayChooseTreeOnly"; "required": false; }; "isHideCheckbox": { "alias": "isHideCheckbox"; "required": false; }; "isCollapseSelected": { "alias": "isCollapseSelected"; "required": false; }; "selectedLabelTitle": { "alias": "selectedLabelTitle"; "required": false; }; "viewHeight": { "alias": "viewHeight"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "treeConfig": { "alias": "treeConfig"; "required": false; }; "isSearchOutSide": { "alias": "isSearchOutSide"; "required": false; }; "searchTextOutSide": { "alias": "searchTextOutSide"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "fullDatasource": { "alias": "fullDatasource"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { UtilsService } from '../../services/utils.service';
|
|
4
|
+
import { ApiService } from '../../services/api.service';
|
|
5
|
+
import { DialogImportFileConfigModel } from '../../models/components/dialog-import-file-config.model';
|
|
6
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CvaDialogImportFileComponent implements OnInit {
|
|
9
|
+
private matDialogRef;
|
|
10
|
+
private apiService;
|
|
11
|
+
private utilsService;
|
|
12
|
+
private translateService;
|
|
13
|
+
data: DialogImportFileConfigModel;
|
|
14
|
+
file?: File;
|
|
15
|
+
errorImportExcelUrl: string;
|
|
16
|
+
inputFileRef?: ElementRef<any>;
|
|
17
|
+
constructor(matDialogRef: MatDialogRef<CvaDialogImportFileComponent>, apiService: ApiService, utilsService: UtilsService, translateService: TranslateService, data: DialogImportFileConfigModel);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
onDropped(fileList: FileList): void;
|
|
20
|
+
onFileChange(event: any, inputRef: HTMLInputElement): void;
|
|
21
|
+
downloadTemplate(): void;
|
|
22
|
+
onClickChooseFile(inputFile: HTMLInputElement): void;
|
|
23
|
+
close(): void;
|
|
24
|
+
onImport(): void;
|
|
25
|
+
downloadErrorFile(): void;
|
|
26
|
+
onDownloadErrorFile(): void;
|
|
27
|
+
private handleFile;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaDialogImportFileComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaDialogImportFileComponent, "cva-dialog-import-file", never, {}, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormArray, FormGroup, NgControl } from '@angular/forms';
|
|
3
|
+
import { FileTypeEnum } from '../../enums/file-type.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaMultiUploadImgComponent implements ControlValueAccessor {
|
|
6
|
+
private injector;
|
|
7
|
+
private ngControl;
|
|
8
|
+
files: any;
|
|
9
|
+
formArray: FormArray;
|
|
10
|
+
isFix: boolean;
|
|
11
|
+
maxControls: number;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
constructor(injector: Injector, ngControl: NgControl);
|
|
14
|
+
propagateChange: (_: any) => void;
|
|
15
|
+
get FileTypes(): typeof FileTypeEnum;
|
|
16
|
+
getControls(): FormGroup[];
|
|
17
|
+
writeValue(value: any): void;
|
|
18
|
+
registerOnChange(fn: any): void;
|
|
19
|
+
registerOnTouched(): void;
|
|
20
|
+
onFileDelete(event: any): void;
|
|
21
|
+
onFileChange(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaMultiUploadImgComponent, [null, { optional: true; self: true; }]>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaMultiUploadImgComponent, "cva-multi-upload-img", never, { "isFix": { "alias": "isFix"; "required": false; }; "maxControls": { "alias": "maxControls"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { UploadModel } from '../../models/components/upload.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CvaMultiUploadComponent implements ControlValueAccessor {
|
|
6
|
+
fileUpload?: ElementRef;
|
|
7
|
+
files: UploadModel[];
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
maxSize: number | null;
|
|
10
|
+
accept: string[] | null;
|
|
11
|
+
label: string;
|
|
12
|
+
required: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
percentOfLabelOutside: number;
|
|
15
|
+
onFileChange: EventEmitter<any>;
|
|
16
|
+
sizeError: string | null;
|
|
17
|
+
typeError: string | null;
|
|
18
|
+
propagateChange: (_: any) => void;
|
|
19
|
+
writeValue(obj: any): void;
|
|
20
|
+
registerOnChange(fn: any): void;
|
|
21
|
+
registerOnTouched(): void;
|
|
22
|
+
onClick(): void;
|
|
23
|
+
convertToUploadModel(fileList: FileList): void;
|
|
24
|
+
isContainFileName(name: string): boolean;
|
|
25
|
+
onFileChangeAction(event: any): void;
|
|
26
|
+
onFileDroppedAction(fileList: FileList): void;
|
|
27
|
+
validFile(fileList: FileList): boolean;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaMultiUploadComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaMultiUploadComponent, "cva-multi-upload", never, { "files": { "alias": "files"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; }, { "onFileChange": "onFileChange"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { FileSaverService } from "ngx-filesaver";
|
|
5
|
+
import { UploadModel } from '../../models/components/upload.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DeleteFileEventModel {
|
|
8
|
+
ngControl: NgControl | undefined;
|
|
9
|
+
file: UploadModel | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare class CvaUploadFileComponent implements ControlValueAccessor, OnInit {
|
|
12
|
+
private http;
|
|
13
|
+
private injector;
|
|
14
|
+
private fileSaverService;
|
|
15
|
+
private ngControl;
|
|
16
|
+
constructor(http: HttpClient, injector: Injector, fileSaverService: FileSaverService, ngControl: NgControl);
|
|
17
|
+
fileUpload?: ElementRef<any>;
|
|
18
|
+
files: UploadModel[];
|
|
19
|
+
maxSize: number | null;
|
|
20
|
+
height: number | null;
|
|
21
|
+
width: number | null;
|
|
22
|
+
isSquareImg: boolean;
|
|
23
|
+
isRectangleImg: boolean;
|
|
24
|
+
accept: string[] | null;
|
|
25
|
+
label: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
required: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
percentOfLabelOutside: number;
|
|
30
|
+
onFileChange: EventEmitter<any>;
|
|
31
|
+
onFileDelete: EventEmitter<DeleteFileEventModel>;
|
|
32
|
+
sizeError: string | null;
|
|
33
|
+
widthError: boolean;
|
|
34
|
+
heightError: boolean;
|
|
35
|
+
isSquareError: boolean;
|
|
36
|
+
isRectangleError: boolean;
|
|
37
|
+
typeError: string | null;
|
|
38
|
+
fileType: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
imgRef: HTMLImageElement | null;
|
|
41
|
+
default$?: string;
|
|
42
|
+
set value(value: any);
|
|
43
|
+
formControl: AbstractControl | null | undefined;
|
|
44
|
+
set defaultUrl(fileInfo: {
|
|
45
|
+
url: string;
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
});
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
callValidator(): void;
|
|
51
|
+
isImageType(): boolean;
|
|
52
|
+
getSrcImg(): any;
|
|
53
|
+
propagateChange: (_: any) => void;
|
|
54
|
+
writeValue(obj: any): void;
|
|
55
|
+
registerOnChange(fn: any): void;
|
|
56
|
+
registerOnTouched(): void;
|
|
57
|
+
onClick(): void;
|
|
58
|
+
convertToUploadModel(fileList: FileList): void;
|
|
59
|
+
isContainFileName(name: string): boolean;
|
|
60
|
+
onFileChangeAction(event: any): void;
|
|
61
|
+
onFileDroppedAction(fileList: FileList): void;
|
|
62
|
+
validFile(fileList: FileList): boolean;
|
|
63
|
+
removeFiles(event: any, control?: any): void;
|
|
64
|
+
onLoad(img: HTMLImageElement, event: any): void;
|
|
65
|
+
previewFiles(event: any, downloadId: any): void;
|
|
66
|
+
downloadFile(): void;
|
|
67
|
+
getRequiredErr(): boolean;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaUploadFileComponent, [null, null, null, { optional: true; self: true; }]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaUploadFileComponent, "cva-upload-file", never, { "files": { "alias": "files"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "isSquareImg": { "alias": "isSquareImg"; "required": false; }; "isRectangleImg": { "alias": "isRectangleImg"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultUrl": { "alias": "defaultUrl"; "required": false; }; }, { "onFileChange": "onFileChange"; "onFileDelete": "onFileDelete"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DragDropDirective {
|
|
4
|
+
onFileDropped: EventEmitter<any>;
|
|
5
|
+
background: string;
|
|
6
|
+
opacity: string;
|
|
7
|
+
onDragOver(evt: DragEvent): void;
|
|
8
|
+
onDragLeave(evt: DragEvent): void;
|
|
9
|
+
ondrop(evt: DragEvent): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[appDragDrop]", never, {}, { "onFileDropped": "onFileDropped"; }, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MatDateFormats, NativeDateAdapter } from '@angular/material/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NsDateAdapter extends NativeDateAdapter {
|
|
4
|
+
format(date: Date, displayFormat: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NsDateAdapter, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NsDateAdapter>;
|
|
7
|
+
}
|
|
8
|
+
export declare const APP_DATE_FORMATS: MatDateFormats;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormatInputDirective implements ControlValueAccessor {
|
|
5
|
+
protected element: ElementRef<HTMLInputElement>;
|
|
6
|
+
elementInput: any;
|
|
7
|
+
control?: any;
|
|
8
|
+
inputDirective: any;
|
|
9
|
+
constructor(element: ElementRef<HTMLInputElement>);
|
|
10
|
+
protected _value: string | null;
|
|
11
|
+
get value(): string | null;
|
|
12
|
+
set value(value: string | null);
|
|
13
|
+
input(value: any): void;
|
|
14
|
+
focusout(value: any): void;
|
|
15
|
+
_onChange(value: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* @param value
|
|
18
|
+
* apply formatting on value assignment
|
|
19
|
+
*/
|
|
20
|
+
writeValue(value: any): void;
|
|
21
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
22
|
+
registerOnTouched(): void;
|
|
23
|
+
isLastCharacterDecimalSeparator(value: any): boolean;
|
|
24
|
+
private format;
|
|
25
|
+
unformatValue(value: any): any;
|
|
26
|
+
formatValue(value: any): any;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatInputDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormatInputDirective, "[inputDirective]", never, { "inputDirective": { "alias": "inputDirective"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatPaginatorIntl } from '@angular/material/paginator';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MultiLanguageTablePaginator extends MatPaginatorIntl {
|
|
5
|
+
private translateService;
|
|
6
|
+
constructor(translateService: TranslateService);
|
|
7
|
+
range: string;
|
|
8
|
+
getAndInitTranslations(): void;
|
|
9
|
+
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiLanguageTablePaginator, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MultiLanguageTablePaginator>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PatternDirective {
|
|
4
|
+
el: ElementRef;
|
|
5
|
+
private navigationKeys;
|
|
6
|
+
set regPattern(reg: string);
|
|
7
|
+
$regPatternString: string;
|
|
8
|
+
$regPattern: RegExp;
|
|
9
|
+
inputElement: HTMLElement;
|
|
10
|
+
constructor(el: ElementRef);
|
|
11
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
12
|
+
onPaste(event: ClipboardEvent): void;
|
|
13
|
+
onDrop(event: DragEvent): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PatternDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PatternDirective, "[pattern-directive]", never, { "regPattern": { "alias": "regPattern"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import { TablePagingRequestModel } from '../models/components/table-paging-request.model';
|
|
4
|
+
import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StylePaginatorDirective implements AfterViewInit {
|
|
7
|
+
private config;
|
|
8
|
+
private readonly matPag;
|
|
9
|
+
private vr;
|
|
10
|
+
private ren;
|
|
11
|
+
private _currentPage;
|
|
12
|
+
private _pageGapTxt;
|
|
13
|
+
private _rangeStart?;
|
|
14
|
+
private _rangeEnd?;
|
|
15
|
+
private _buttons;
|
|
16
|
+
private _showTotalPages;
|
|
17
|
+
get showTotalPages(): number;
|
|
18
|
+
set showTotalPages(value: number);
|
|
19
|
+
$paging?: TablePagingRequestModel;
|
|
20
|
+
get paging(): TablePagingRequestModel;
|
|
21
|
+
set paging(paging: TablePagingRequestModel);
|
|
22
|
+
pagingChangeEvent: EventEmitter<any>;
|
|
23
|
+
constructor(config: NiceComponentLibraryConfig, matPag: MatPaginator, vr: ViewContainerRef, ren: Renderer2);
|
|
24
|
+
private buildPageNumbers;
|
|
25
|
+
private createButton;
|
|
26
|
+
private initPageRange;
|
|
27
|
+
private switchPage;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StylePaginatorDirective, [null, { optional: true; host: true; self: true; }, null, null]>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StylePaginatorDirective, "[style-paginator]", never, { "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChangeEvent": "pagingChangeEvent"; }, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ColumnTypeEnum {
|
|
2
|
+
VIEW = "VIEW",
|
|
3
|
+
INPUT_COUNTER = "INPUT_COUNTER",
|
|
4
|
+
DATE_PICKER = "DATE_PICKER",
|
|
5
|
+
MULTI_SELECT_AUTOCOMPLETE = "MULTI_SELECT_AUTOCOMPLETE",
|
|
6
|
+
CHECKBOX = "CHECKBOX",
|
|
7
|
+
BASE64 = "BASE64",
|
|
8
|
+
IMG = "IMG",
|
|
9
|
+
IMG_NO_SECURE = "IMG_NO_SECURE",
|
|
10
|
+
BUTTON = "BUTTON",
|
|
11
|
+
INPUT = "INPUT",
|
|
12
|
+
LINK = "LINK",
|
|
13
|
+
STYLE_CSS = "STYLE_CSS"
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum FileTypeEnum {
|
|
2
|
+
DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
3
|
+
JPG = "image/jpeg",
|
|
4
|
+
PDF = "application/pdf",
|
|
5
|
+
PNG = "image/png",
|
|
6
|
+
RTF = "application/msword",
|
|
7
|
+
TXT = "text/plain",
|
|
8
|
+
XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
9
|
+
XML = "text/xml",
|
|
10
|
+
ZIP = "application/x-zip-compressed",
|
|
11
|
+
DOC = "application/msword",
|
|
12
|
+
XLS = "application/vnd.ms-excel"
|
|
13
|
+
}
|