chrv-components 1.2.8 → 1.2.10
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/chrv-components-1.2.10.tgz +0 -0
- package/{esm2022 → esm2020}/chrv-components.mjs +4 -4
- package/{esm2022 → esm2020}/lib/chr-breadcrumb/chr-breadcrumb.component.mjs +22 -22
- package/{esm2022 → esm2020}/lib/chr-button/chr-button.component.mjs +51 -51
- package/esm2020/lib/chr-checkbox/chr-checkbox.component.mjs +37 -0
- package/{esm2022 → esm2020}/lib/chr-components.module.mjs +126 -126
- package/{esm2022 → esm2020}/lib/chr-delete-modal/chr-delete-modal.component.mjs +22 -22
- package/esm2020/lib/chr-form/chr-form.component.mjs +132 -0
- package/esm2020/lib/chr-form/chr-validators/decimal-validator.mjs +58 -0
- package/esm2020/lib/chr-form/chr-validators/max-date-validator.mjs +54 -0
- package/esm2020/lib/chr-form/chr-validators/type-validator.mjs +52 -0
- package/{esm2022 → esm2020}/lib/chr-paginator/chr-paginator.component.mjs +73 -73
- package/esm2020/lib/chr-search-select/chr-search-select.component.mjs +136 -0
- package/{esm2022 → esm2020}/lib/chr-searchbar/chr-searchbar.component.mjs +29 -29
- package/esm2020/lib/chr-separator/chr-separator.component.mjs +11 -0
- package/esm2020/lib/chr-table/chr-table.component.mjs +62 -0
- package/esm2020/lib/chr-table-header-cell/chr-table-header-cell.component.mjs +49 -0
- package/{esm2022 → esm2020}/lib/services/dialog.service.mjs +29 -29
- package/esm2020/public-api.mjs +22 -0
- package/fesm2015/chrv-components.mjs +886 -0
- package/fesm2015/chrv-components.mjs.map +1 -0
- package/fesm2020/chrv-components.mjs +878 -0
- package/{fesm2022 → fesm2020}/chrv-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/chr-breadcrumb/chr-breadcrumb.component.d.ts +15 -15
- package/lib/chr-button/chr-button.component.d.ts +19 -19
- package/lib/chr-checkbox/chr-checkbox.component.d.ts +13 -13
- package/lib/chr-components.module.d.ts +30 -30
- package/lib/chr-delete-modal/chr-delete-modal.component.d.ts +11 -11
- package/lib/chr-form/chr-form.component.d.ts +57 -57
- package/lib/chr-form/chr-validators/decimal-validator.d.ts +10 -10
- package/lib/chr-form/chr-validators/max-date-validator.d.ts +10 -10
- package/lib/chr-form/chr-validators/type-validator.d.ts +10 -10
- package/lib/chr-paginator/chr-paginator.component.d.ts +26 -26
- package/lib/chr-search-select/chr-search-select.component.d.ts +44 -44
- package/lib/chr-searchbar/chr-searchbar.component.d.ts +14 -14
- package/lib/chr-separator/chr-separator.component.d.ts +5 -5
- package/lib/chr-table/chr-table.component.d.ts +42 -42
- package/lib/chr-table-header-cell/chr-table-header-cell.component.d.ts +16 -16
- package/lib/services/dialog.service.d.ts +10 -10
- package/package.json +16 -11
- package/public-api.d.ts +18 -16
- package/chrv-components-1.2.8.tgz +0 -0
- package/esm2022/lib/chr-checkbox/chr-checkbox.component.mjs +0 -37
- package/esm2022/lib/chr-form/chr-form.component.mjs +0 -132
- package/esm2022/lib/chr-form/chr-validators/decimal-validator.mjs +0 -58
- package/esm2022/lib/chr-form/chr-validators/max-date-validator.mjs +0 -54
- package/esm2022/lib/chr-form/chr-validators/type-validator.mjs +0 -52
- package/esm2022/lib/chr-search-select/chr-search-select.component.mjs +0 -136
- package/esm2022/lib/chr-separator/chr-separator.component.mjs +0 -11
- package/esm2022/lib/chr-table/chr-table.component.mjs +0 -62
- package/esm2022/lib/chr-table-header-cell/chr-table-header-cell.component.mjs +0 -49
- package/esm2022/public-api.mjs +0 -20
- package/fesm2022/chrv-components.mjs +0 -876
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./chr-checkbox/chr-checkbox.component";
|
|
3
|
-
import * as i2 from "./chr-breadcrumb/chr-breadcrumb.component";
|
|
4
|
-
import * as i3 from "./chr-button/chr-button.component";
|
|
5
|
-
import * as i4 from "./chr-search-select/chr-search-select.component";
|
|
6
|
-
import * as i5 from "./chr-searchbar/chr-searchbar.component";
|
|
7
|
-
import * as i6 from "./chr-paginator/chr-paginator.component";
|
|
8
|
-
import * as i7 from "./chr-table/chr-table.component";
|
|
9
|
-
import * as i8 from "./chr-table-header-cell/chr-table-header-cell.component";
|
|
10
|
-
import * as i9 from "./chr-form/chr-form.component";
|
|
11
|
-
import * as i10 from "./chr-separator/chr-separator.component";
|
|
12
|
-
import * as i11 from "./chr-delete-modal/chr-delete-modal.component";
|
|
13
|
-
import * as i12 from "./chr-form/chr-validators/type-validator";
|
|
14
|
-
import * as i13 from "./chr-form/chr-validators/decimal-validator";
|
|
15
|
-
import * as i14 from "./chr-form/chr-validators/max-date-validator";
|
|
16
|
-
import * as i15 from "@angular/common";
|
|
17
|
-
import * as i16 from "@angular/material/icon";
|
|
18
|
-
import * as i17 from "@angular/material/button";
|
|
19
|
-
import * as i18 from "@angular/material/autocomplete";
|
|
20
|
-
import * as i19 from "@angular/forms";
|
|
21
|
-
import * as i20 from "@angular/material/form-field";
|
|
22
|
-
import * as i21 from "@angular/material/tooltip";
|
|
23
|
-
import * as i22 from "@angular/material/dialog";
|
|
24
|
-
import * as i23 from "chrv-pipes";
|
|
25
|
-
import * as i24 from "ngx-pagination";
|
|
26
|
-
export declare class ChrComponentsModule {
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrComponentsModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChrComponentsModule, [typeof i1.ChrCheckboxComponent, typeof i2.BreadcrumbComponent, typeof i3.ChrButtonComponent, typeof i4.ChrSearchSelectComponent, typeof i5.ChrSearchbarComponent, typeof i6.ChrPaginatorComponent, typeof i7.ChrTableComponent, typeof i8.ChrTableHeaderCellComponent, typeof i9.ChrFormComponent, typeof i10.ChrSeparatorComponent, typeof i11.ChrDeleteModalComponent, typeof i12.TypeValidatorDirective, typeof i13.DecimalValidatorDirective, typeof i14.MaxDateValidatorDirective], [typeof i15.CommonModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatAutocompleteModule, typeof i19.ReactiveFormsModule, typeof i20.MatFormFieldModule, typeof i21.MatTooltipModule, typeof i22.MatDialogModule, typeof i23.ChrPipeModule, typeof i24.NgxPaginationModule], [typeof i1.ChrCheckboxComponent, typeof i2.BreadcrumbComponent, typeof i3.ChrButtonComponent, typeof i4.ChrSearchSelectComponent, typeof i5.ChrSearchbarComponent, typeof i6.ChrPaginatorComponent, typeof i7.ChrTableComponent, typeof i8.ChrTableHeaderCellComponent, typeof i9.ChrFormComponent, typeof i10.ChrSeparatorComponent, typeof i11.ChrDeleteModalComponent, typeof i12.TypeValidatorDirective, typeof i13.DecimalValidatorDirective, typeof i14.MaxDateValidatorDirective]>;
|
|
29
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChrComponentsModule>;
|
|
30
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./chr-checkbox/chr-checkbox.component";
|
|
3
|
+
import * as i2 from "./chr-breadcrumb/chr-breadcrumb.component";
|
|
4
|
+
import * as i3 from "./chr-button/chr-button.component";
|
|
5
|
+
import * as i4 from "./chr-search-select/chr-search-select.component";
|
|
6
|
+
import * as i5 from "./chr-searchbar/chr-searchbar.component";
|
|
7
|
+
import * as i6 from "./chr-paginator/chr-paginator.component";
|
|
8
|
+
import * as i7 from "./chr-table/chr-table.component";
|
|
9
|
+
import * as i8 from "./chr-table-header-cell/chr-table-header-cell.component";
|
|
10
|
+
import * as i9 from "./chr-form/chr-form.component";
|
|
11
|
+
import * as i10 from "./chr-separator/chr-separator.component";
|
|
12
|
+
import * as i11 from "./chr-delete-modal/chr-delete-modal.component";
|
|
13
|
+
import * as i12 from "./chr-form/chr-validators/type-validator";
|
|
14
|
+
import * as i13 from "./chr-form/chr-validators/decimal-validator";
|
|
15
|
+
import * as i14 from "./chr-form/chr-validators/max-date-validator";
|
|
16
|
+
import * as i15 from "@angular/common";
|
|
17
|
+
import * as i16 from "@angular/material/icon";
|
|
18
|
+
import * as i17 from "@angular/material/button";
|
|
19
|
+
import * as i18 from "@angular/material/autocomplete";
|
|
20
|
+
import * as i19 from "@angular/forms";
|
|
21
|
+
import * as i20 from "@angular/material/form-field";
|
|
22
|
+
import * as i21 from "@angular/material/tooltip";
|
|
23
|
+
import * as i22 from "@angular/material/dialog";
|
|
24
|
+
import * as i23 from "chrv-pipes";
|
|
25
|
+
import * as i24 from "ngx-pagination";
|
|
26
|
+
export declare class ChrComponentsModule {
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrComponentsModule, never>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChrComponentsModule, [typeof i1.ChrCheckboxComponent, typeof i2.BreadcrumbComponent, typeof i3.ChrButtonComponent, typeof i4.ChrSearchSelectComponent, typeof i5.ChrSearchbarComponent, typeof i6.ChrPaginatorComponent, typeof i7.ChrTableComponent, typeof i8.ChrTableHeaderCellComponent, typeof i9.ChrFormComponent, typeof i10.ChrSeparatorComponent, typeof i11.ChrDeleteModalComponent, typeof i12.TypeValidatorDirective, typeof i13.DecimalValidatorDirective, typeof i14.MaxDateValidatorDirective], [typeof i15.CommonModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatAutocompleteModule, typeof i19.ReactiveFormsModule, typeof i20.MatFormFieldModule, typeof i21.MatTooltipModule, typeof i22.MatDialogModule, typeof i23.ChrPipeModule, typeof i24.NgxPaginationModule], [typeof i1.ChrCheckboxComponent, typeof i2.BreadcrumbComponent, typeof i3.ChrButtonComponent, typeof i4.ChrSearchSelectComponent, typeof i5.ChrSearchbarComponent, typeof i6.ChrPaginatorComponent, typeof i7.ChrTableComponent, typeof i8.ChrTableHeaderCellComponent, typeof i9.ChrFormComponent, typeof i10.ChrSeparatorComponent, typeof i11.ChrDeleteModalComponent, typeof i12.TypeValidatorDirective, typeof i13.DecimalValidatorDirective, typeof i14.MaxDateValidatorDirective]>;
|
|
29
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChrComponentsModule>;
|
|
30
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ChrDeleteModalComponent {
|
|
4
|
-
dialogRef: MatDialogRef<ChrDeleteModalComponent>;
|
|
5
|
-
valid: boolean;
|
|
6
|
-
constructor(dialogRef: MatDialogRef<ChrDeleteModalComponent>);
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
close: () => void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrDeleteModalComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrDeleteModalComponent, "app-chr-delete-modal", never, {}, {}, never, never, false, never>;
|
|
11
|
-
}
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChrDeleteModalComponent {
|
|
4
|
+
dialogRef: MatDialogRef<ChrDeleteModalComponent>;
|
|
5
|
+
valid: boolean;
|
|
6
|
+
constructor(dialogRef: MatDialogRef<ChrDeleteModalComponent>);
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
close: () => void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrDeleteModalComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrDeleteModalComponent, "app-chr-delete-modal", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface ISearchFilter {
|
|
5
|
-
display: string;
|
|
6
|
-
callback?: Function;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IControlValidation {
|
|
10
|
-
rule: string;
|
|
11
|
-
value?: any;
|
|
12
|
-
display?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface IControl {
|
|
15
|
-
label?: string;
|
|
16
|
-
name: string;
|
|
17
|
-
span?: string;
|
|
18
|
-
placeholder?: any;
|
|
19
|
-
width?: 'col' | 'row';
|
|
20
|
-
type: 'text' | 'password' | 'textArea' | 'number' | 'date' | 'searchSelect' | 'select';
|
|
21
|
-
value?: any;
|
|
22
|
-
data?: any[] | null;
|
|
23
|
-
icon?: string;
|
|
24
|
-
iconCallback?: Function;
|
|
25
|
-
iconCallbackDisabled?: boolean;
|
|
26
|
-
iconTooltip?: string;
|
|
27
|
-
fn?: Function;
|
|
28
|
-
filters?: ISearchFilter[];
|
|
29
|
-
validations?: IControlValidation[];
|
|
30
|
-
}
|
|
31
|
-
export interface IFormSection {
|
|
32
|
-
title?: string;
|
|
33
|
-
controls: IControl[];
|
|
34
|
-
}
|
|
35
|
-
export declare class ChrFormComponent {
|
|
36
|
-
private builder;
|
|
37
|
-
sections: IFormSection[];
|
|
38
|
-
valid: boolean;
|
|
39
|
-
validChange: EventEmitter<boolean>;
|
|
40
|
-
model: any;
|
|
41
|
-
modelChange: EventEmitter<any>;
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
valuesChange: EventEmitter<any>;
|
|
44
|
-
form: FormGroup;
|
|
45
|
-
constructor(builder: FormBuilder);
|
|
46
|
-
ngOnInit(): void;
|
|
47
|
-
value: (input?: string) => any;
|
|
48
|
-
setValue: (input: string, value: any) => void;
|
|
49
|
-
isValid: (input?: string) => boolean;
|
|
50
|
-
isControlRequired: (control: IControl) => IControlValidation | undefined;
|
|
51
|
-
patchValue: (key: string, value: any) => void;
|
|
52
|
-
reset: () => void;
|
|
53
|
-
private _initValidators;
|
|
54
|
-
private _getValidators;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrFormComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrFormComponent, "app-chr-form", never, { "sections":
|
|
57
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ISearchFilter {
|
|
5
|
+
display: string;
|
|
6
|
+
callback?: Function;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IControlValidation {
|
|
10
|
+
rule: string;
|
|
11
|
+
value?: any;
|
|
12
|
+
display?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IControl {
|
|
15
|
+
label?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
span?: string;
|
|
18
|
+
placeholder?: any;
|
|
19
|
+
width?: 'col' | 'row';
|
|
20
|
+
type: 'text' | 'password' | 'textArea' | 'number' | 'date' | 'searchSelect' | 'select';
|
|
21
|
+
value?: any;
|
|
22
|
+
data?: any[] | null;
|
|
23
|
+
icon?: string;
|
|
24
|
+
iconCallback?: Function;
|
|
25
|
+
iconCallbackDisabled?: boolean;
|
|
26
|
+
iconTooltip?: string;
|
|
27
|
+
fn?: Function;
|
|
28
|
+
filters?: ISearchFilter[];
|
|
29
|
+
validations?: IControlValidation[];
|
|
30
|
+
}
|
|
31
|
+
export interface IFormSection {
|
|
32
|
+
title?: string;
|
|
33
|
+
controls: IControl[];
|
|
34
|
+
}
|
|
35
|
+
export declare class ChrFormComponent {
|
|
36
|
+
private builder;
|
|
37
|
+
sections: IFormSection[];
|
|
38
|
+
valid: boolean;
|
|
39
|
+
validChange: EventEmitter<boolean>;
|
|
40
|
+
model: any;
|
|
41
|
+
modelChange: EventEmitter<any>;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
valuesChange: EventEmitter<any>;
|
|
44
|
+
form: FormGroup;
|
|
45
|
+
constructor(builder: FormBuilder);
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
value: (input?: string) => any;
|
|
48
|
+
setValue: (input: string, value: any) => void;
|
|
49
|
+
isValid: (input?: string) => boolean;
|
|
50
|
+
isControlRequired: (control: IControl) => IControlValidation | undefined;
|
|
51
|
+
patchValue: (key: string, value: any) => void;
|
|
52
|
+
reset: () => void;
|
|
53
|
+
private _initValidators;
|
|
54
|
+
private _getValidators;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrFormComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrFormComponent, "app-chr-form", never, { "sections": "sections"; "valid": "valid"; "model": "model"; "disabled": "disabled"; }, { "validChange": "validChange"; "modelChange": "modelChange"; "valuesChange": "valuesChange"; }, never, never, false, never>;
|
|
57
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DecimalValidatorDirective implements Validator {
|
|
4
|
-
amount: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalValidatorDirective, "[app-decimal]", never, { "amount":
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DecimalValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function decimal(amount: number): ValidatorFn;
|
|
1
|
+
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DecimalValidatorDirective implements Validator {
|
|
4
|
+
amount: number;
|
|
5
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalValidatorDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalValidatorDirective, "[app-decimal]", never, { "amount": "amount"; }, {}, never, never, false, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DecimalValidatorDirective>;
|
|
9
|
+
}
|
|
10
|
+
export declare function decimal(amount: number): ValidatorFn;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MaxDateValidatorDirective implements Validator {
|
|
4
|
-
date: Date;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidatorDirective, "[app-max-date]", never, { "date":
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaxDateValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function maxDate(date: Date): ValidatorFn;
|
|
1
|
+
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MaxDateValidatorDirective implements Validator {
|
|
4
|
+
date: Date;
|
|
5
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidatorDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidatorDirective, "[app-max-date]", never, { "date": "date"; }, {}, never, never, false, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MaxDateValidatorDirective>;
|
|
9
|
+
}
|
|
10
|
+
export declare function maxDate(date: Date): ValidatorFn;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TypeValidatorDirective implements Validator {
|
|
4
|
-
type: string;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TypeValidatorDirective, "[app-type]", never, { "type":
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TypeValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function type(type: string): ValidatorFn;
|
|
1
|
+
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TypeValidatorDirective implements Validator {
|
|
4
|
+
type: string;
|
|
5
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypeValidatorDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TypeValidatorDirective, "[app-type]", never, { "type": "type"; }, {}, never, never, false, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TypeValidatorDirective>;
|
|
9
|
+
}
|
|
10
|
+
export declare function type(type: string): ValidatorFn;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { AfterContentChecked, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { PaginationInstance, PaginationService } from 'ngx-pagination';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ChrPaginatorComponent implements OnInit, AfterContentChecked {
|
|
5
|
-
service: PaginationService;
|
|
6
|
-
currentPage: number;
|
|
7
|
-
pageChange: EventEmitter<number>;
|
|
8
|
-
pageSizeChange: EventEmitter<number>;
|
|
9
|
-
instance: PaginationInstance;
|
|
10
|
-
constructor(service: PaginationService);
|
|
11
|
-
ngAfterContentChecked(): void;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
previous: () => void;
|
|
14
|
-
next: () => void;
|
|
15
|
-
setPage: (page: number) => void;
|
|
16
|
-
setPageEventHandler: (event: any) => void;
|
|
17
|
-
isFirstPage: () => boolean;
|
|
18
|
-
setPageSize: (pageSize: number) => void;
|
|
19
|
-
setPageSizeEventHandler: (event: any) => void;
|
|
20
|
-
isLastPage: () => boolean;
|
|
21
|
-
pageSize: () => number;
|
|
22
|
-
lastPage: () => number;
|
|
23
|
-
private emit;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrPaginatorComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrPaginatorComponent, "app-chr-paginator", never, {}, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
|
|
26
|
-
}
|
|
1
|
+
import { AfterContentChecked, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { PaginationInstance, PaginationService } from 'ngx-pagination';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChrPaginatorComponent implements OnInit, AfterContentChecked {
|
|
5
|
+
service: PaginationService;
|
|
6
|
+
currentPage: number;
|
|
7
|
+
pageChange: EventEmitter<number>;
|
|
8
|
+
pageSizeChange: EventEmitter<number>;
|
|
9
|
+
instance: PaginationInstance;
|
|
10
|
+
constructor(service: PaginationService);
|
|
11
|
+
ngAfterContentChecked(): void;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
previous: () => void;
|
|
14
|
+
next: () => void;
|
|
15
|
+
setPage: (page: number) => void;
|
|
16
|
+
setPageEventHandler: (event: any) => void;
|
|
17
|
+
isFirstPage: () => boolean;
|
|
18
|
+
setPageSize: (pageSize: number) => void;
|
|
19
|
+
setPageSizeEventHandler: (event: any) => void;
|
|
20
|
+
isLastPage: () => boolean;
|
|
21
|
+
pageSize: () => number;
|
|
22
|
+
lastPage: () => number;
|
|
23
|
+
private emit;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrPaginatorComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrPaginatorComponent, "app-chr-paginator", never, {}, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface IInputSearchFilter {
|
|
6
|
-
display: string;
|
|
7
|
-
callback?: Function;
|
|
8
|
-
tooltip?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class ChrSearchSelectComponent implements ControlValueAccessor {
|
|
11
|
-
predicate: boolean;
|
|
12
|
-
searchSelect: FormControl;
|
|
13
|
-
filteredModelOptions: Observable<any>;
|
|
14
|
-
onTouched: any;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
data: any[] | null;
|
|
17
|
-
display: Function;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
model: any | null;
|
|
20
|
-
modelChange: EventEmitter<any>;
|
|
21
|
-
keyup: EventEmitter<KeyboardEvent>;
|
|
22
|
-
filters?: IInputSearchFilter[];
|
|
23
|
-
filterIndex: number;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
getModelDisplay(model: any): any;
|
|
26
|
-
emit(event: any): void;
|
|
27
|
-
writeValue(obj: any): void;
|
|
28
|
-
registerOnChange(fn: any): void;
|
|
29
|
-
checkNull(value: any | null): void;
|
|
30
|
-
setNull(): void;
|
|
31
|
-
registerOnTouched(fn: any): void;
|
|
32
|
-
registerFilters: () => void;
|
|
33
|
-
registerAutoComplete: () => void;
|
|
34
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
35
|
-
increment: () => void;
|
|
36
|
-
getValue: () => any;
|
|
37
|
-
void: () => void;
|
|
38
|
-
private _filterModel;
|
|
39
|
-
private _doFilterModelInt;
|
|
40
|
-
private _doFilterModelString;
|
|
41
|
-
private _filterValues;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSearchSelectComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSearchSelectComponent, "app-chr-search-select", never, { "placeholder":
|
|
44
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface IInputSearchFilter {
|
|
6
|
+
display: string;
|
|
7
|
+
callback?: Function;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class ChrSearchSelectComponent implements ControlValueAccessor {
|
|
11
|
+
predicate: boolean;
|
|
12
|
+
searchSelect: FormControl;
|
|
13
|
+
filteredModelOptions: Observable<any>;
|
|
14
|
+
onTouched: any;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
data: any[] | null;
|
|
17
|
+
display: Function;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
model: any | null;
|
|
20
|
+
modelChange: EventEmitter<any>;
|
|
21
|
+
keyup: EventEmitter<KeyboardEvent>;
|
|
22
|
+
filters?: IInputSearchFilter[];
|
|
23
|
+
filterIndex: number;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
getModelDisplay(model: any): any;
|
|
26
|
+
emit(event: any): void;
|
|
27
|
+
writeValue(obj: any): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
checkNull(value: any | null): void;
|
|
30
|
+
setNull(): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
registerFilters: () => void;
|
|
33
|
+
registerAutoComplete: () => void;
|
|
34
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
35
|
+
increment: () => void;
|
|
36
|
+
getValue: () => any;
|
|
37
|
+
void: () => void;
|
|
38
|
+
private _filterModel;
|
|
39
|
+
private _doFilterModelInt;
|
|
40
|
+
private _doFilterModelString;
|
|
41
|
+
private _filterValues;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSearchSelectComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSearchSelectComponent, "app-chr-search-select", never, { "placeholder": "placeholder"; "data": "data"; "display": "display"; "disabled": "disabled"; "model": "model"; "filters": "filters"; }, { "modelChange": "modelChange"; "keyup": "keyup"; }, never, never, false, never>;
|
|
44
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ChrSearchbarComponent {
|
|
5
|
-
model: string | null;
|
|
6
|
-
modelChange: EventEmitter<string>;
|
|
7
|
-
placeholder: string | null;
|
|
8
|
-
label: string | null;
|
|
9
|
-
searchBy: FormControl<string | null>;
|
|
10
|
-
constructor();
|
|
11
|
-
emit(event: any): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSearchbarComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSearchbarComponent, "app-chr-searchbar", never, { "model":
|
|
14
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChrSearchbarComponent {
|
|
5
|
+
model: string | null;
|
|
6
|
+
modelChange: EventEmitter<string>;
|
|
7
|
+
placeholder: string | null;
|
|
8
|
+
label: string | null;
|
|
9
|
+
searchBy: FormControl<string | null>;
|
|
10
|
+
constructor();
|
|
11
|
+
emit(event: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSearchbarComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSearchbarComponent, "app-chr-searchbar", never, { "model": "model"; "placeholder": "placeholder"; "label": "label"; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ChrSeparatorComponent {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSeparatorComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSeparatorComponent, "app-chr-separator", never, {}, {}, never, never, false, never>;
|
|
5
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ChrSeparatorComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrSeparatorComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrSeparatorComponent, "app-chr-separator", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { DatePipe } from '@angular/common';
|
|
2
|
-
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IColumn {
|
|
5
|
-
display: string;
|
|
6
|
-
chipsTarget?: string[];
|
|
7
|
-
chipsDisplay?: string[];
|
|
8
|
-
chipsCallback?: Function;
|
|
9
|
-
properties?: string[];
|
|
10
|
-
callback?: Function;
|
|
11
|
-
date?: string;
|
|
12
|
-
isLink?: boolean;
|
|
13
|
-
linkStaticUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IAction {
|
|
16
|
-
display: string;
|
|
17
|
-
callback: Function;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
disabledCallback?: Function;
|
|
20
|
-
color: 'accent' | 'primary' | 'warn';
|
|
21
|
-
}
|
|
22
|
-
export declare class ChrTableComponent implements AfterViewInit {
|
|
23
|
-
private _date;
|
|
24
|
-
columns: IColumn[];
|
|
25
|
-
data: any[] | null;
|
|
26
|
-
actions: IAction[];
|
|
27
|
-
isAsc: boolean;
|
|
28
|
-
isAscChange: EventEmitter<boolean>;
|
|
29
|
-
sortBy: string;
|
|
30
|
-
sortByChange: EventEmitter<string>;
|
|
31
|
-
pageSize: number;
|
|
32
|
-
currentPage: number;
|
|
33
|
-
constructor(_date: DatePipe);
|
|
34
|
-
ngAfterViewInit(): void;
|
|
35
|
-
emitIsAsc(isAsc: any): void;
|
|
36
|
-
emitSortBy(sortBy: any): void;
|
|
37
|
-
getProperty: (entry: any, properties?: any[]) => any;
|
|
38
|
-
getIsAsc: () => boolean;
|
|
39
|
-
getSortBy: () => string;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableComponent, "app-chr-table, [app-chr-table]", never, { "columns":
|
|
42
|
-
}
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IColumn {
|
|
5
|
+
display: string;
|
|
6
|
+
chipsTarget?: string[];
|
|
7
|
+
chipsDisplay?: string[];
|
|
8
|
+
chipsCallback?: Function;
|
|
9
|
+
properties?: string[];
|
|
10
|
+
callback?: Function;
|
|
11
|
+
date?: string;
|
|
12
|
+
isLink?: boolean;
|
|
13
|
+
linkStaticUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IAction {
|
|
16
|
+
display: string;
|
|
17
|
+
callback: Function;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
disabledCallback?: Function;
|
|
20
|
+
color: 'accent' | 'primary' | 'warn';
|
|
21
|
+
}
|
|
22
|
+
export declare class ChrTableComponent implements AfterViewInit {
|
|
23
|
+
private _date;
|
|
24
|
+
columns: IColumn[];
|
|
25
|
+
data: any[] | null;
|
|
26
|
+
actions: IAction[];
|
|
27
|
+
isAsc: boolean;
|
|
28
|
+
isAscChange: EventEmitter<boolean>;
|
|
29
|
+
sortBy: string;
|
|
30
|
+
sortByChange: EventEmitter<string>;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
currentPage: number;
|
|
33
|
+
constructor(_date: DatePipe);
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
emitIsAsc(isAsc: any): void;
|
|
36
|
+
emitSortBy(sortBy: any): void;
|
|
37
|
+
getProperty: (entry: any, properties?: any[]) => any;
|
|
38
|
+
getIsAsc: () => boolean;
|
|
39
|
+
getSortBy: () => string;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableComponent, "app-chr-table, [app-chr-table]", never, { "columns": "columns"; "data": "data"; "actions": "actions"; "isAsc": "isAsc"; "sortBy": "sortBy"; }, { "isAscChange": "isAscChange"; "sortByChange": "sortByChange"; }, never, ["*"], false, never>;
|
|
42
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* This should only be used as a directive
|
|
5
|
-
*/
|
|
6
|
-
export declare class ChrTableHeaderCellComponent {
|
|
7
|
-
display: string;
|
|
8
|
-
column: string;
|
|
9
|
-
isAsc: boolean;
|
|
10
|
-
isAscChange: EventEmitter<boolean>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
sortByChange: EventEmitter<string>;
|
|
13
|
-
orderBy: (column: string) => void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableHeaderCellComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableHeaderCellComponent, "app-chr-table-header-cell, [app-chr-table-header-cell]", never, { "display":
|
|
16
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* This should only be used as a directive
|
|
5
|
+
*/
|
|
6
|
+
export declare class ChrTableHeaderCellComponent {
|
|
7
|
+
display: string;
|
|
8
|
+
column: string;
|
|
9
|
+
isAsc: boolean;
|
|
10
|
+
isAscChange: EventEmitter<boolean>;
|
|
11
|
+
sortBy: string;
|
|
12
|
+
sortByChange: EventEmitter<string>;
|
|
13
|
+
orderBy: (column: string) => void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableHeaderCellComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableHeaderCellComponent, "app-chr-table-header-cell, [app-chr-table-header-cell]", never, { "display": "display"; "column": "column"; "isAsc": "isAsc"; "sortBy": "sortBy"; }, { "isAscChange": "isAscChange"; "sortByChange": "sortByChange"; }, never, ["*"], false, never>;
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DialogService {
|
|
4
|
-
private dialog;
|
|
5
|
-
constructor(dialog: MatDialog);
|
|
6
|
-
openDelete: (callback?: Function, callbackElement?: any) => void;
|
|
7
|
-
open: (component: any) => import("@angular/material/dialog").MatDialogRef<unknown, any>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
10
|
-
}
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DialogService {
|
|
4
|
+
private dialog;
|
|
5
|
+
constructor(dialog: MatDialog);
|
|
6
|
+
openDelete: (callback?: Function, callbackElement?: any) => void;
|
|
7
|
+
open: (component: any) => import("@angular/material/dialog").MatDialogRef<unknown, any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
10
|
+
}
|