chrv-components 1.10.77 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/chrv-components-1.11.0.tgz +0 -0
  2. package/fesm2022/chrv-components.mjs +1209 -1028
  3. package/fesm2022/chrv-components.mjs.map +1 -1
  4. package/index.d.ts +1417 -3
  5. package/package.json +1 -1
  6. package/chrv-components-1.10.77.tgz +0 -0
  7. package/lib/animations/in-out.animation.d.ts +0 -1
  8. package/lib/animations/rotation.animation.d.ts +0 -1
  9. package/lib/chr-breadcrumb/chr-breadcrumb.component.d.ts +0 -15
  10. package/lib/chr-button/chr-button.component.d.ts +0 -27
  11. package/lib/chr-checkbox/chr-checkbox.component.d.ts +0 -13
  12. package/lib/chr-default-modal/chr-default-modal.component.d.ts +0 -36
  13. package/lib/chr-delete-modal/chr-delete-modal.component.d.ts +0 -12
  14. package/lib/chr-form/chr-base-input/chr-base-input.component.d.ts +0 -177
  15. package/lib/chr-form/chr-color-input/chr-color-input.component.d.ts +0 -10
  16. package/lib/chr-form/chr-date-input/chr-date-input.component.d.ts +0 -16
  17. package/lib/chr-form/chr-datetime-input/chr-datetime-input.component.d.ts +0 -16
  18. package/lib/chr-form/chr-file-input/chr-file-input.component.d.ts +0 -43
  19. package/lib/chr-form/chr-form.component.d.ts +0 -137
  20. package/lib/chr-form/chr-nice-file-input/chr-nice-file-input.component.d.ts +0 -8
  21. package/lib/chr-form/chr-textarea-input/chr-textarea-input.component.d.ts +0 -15
  22. package/lib/chr-form/chr-toggle-input/chr-toggle-input.component.d.ts +0 -10
  23. package/lib/chr-paginator/chr-paginator.component.d.ts +0 -42
  24. package/lib/chr-search-select/chr-search-select.component.d.ts +0 -71
  25. package/lib/chr-searchbar/chr-searchbar.component.d.ts +0 -14
  26. package/lib/chr-separator/chr-separator.component.d.ts +0 -5
  27. package/lib/chr-spinner/chr-spinner.component.d.ts +0 -16
  28. package/lib/chr-table/chr-table.component.d.ts +0 -94
  29. package/lib/chr-table-header-cell/chr-table-header-cell.component.d.ts +0 -19
  30. package/lib/chr-table-new/chr-table-new.component.d.ts +0 -147
  31. package/lib/chr-tag-select/chr-tag-select.component.d.ts +0 -66
  32. package/lib/chr-toast/chr-toast.component.d.ts +0 -9
  33. package/lib/config/interceptors/SpinnerInterceptor.d.ts +0 -2
  34. package/lib/config/interceptors/XsrfInterceptor.d.ts +0 -5
  35. package/lib/config/ngx-mask.config.d.ts +0 -49
  36. package/lib/config/providers/xsrf-provider.d.ts +0 -13
  37. package/lib/directives/autofocus.directive.d.ts +0 -10
  38. package/lib/directives/tab-input-only-handler.directive.d.ts +0 -9
  39. package/lib/directives/tab-to-enter-handler.directive.d.ts +0 -9
  40. package/lib/models/chr-validators/base-validator.d.ts +0 -12
  41. package/lib/models/chr-validators/decimal-validator.d.ts +0 -10
  42. package/lib/models/chr-validators/max-date-validator.d.ts +0 -10
  43. package/lib/models/chr-validators/max-file-size-validator.d.ts +0 -10
  44. package/lib/models/chr-validators/maxlength-validator.d.ts +0 -10
  45. package/lib/models/chr-validators/min-file-size-validator.d.ts +0 -10
  46. package/lib/models/chr-validators/minlength-validator.d.ts +0 -10
  47. package/lib/models/chr-validators/required-validator.d.ts +0 -10
  48. package/lib/models/chr-validators/type-validator.d.ts +0 -10
  49. package/lib/models/colors.d.ts +0 -10
  50. package/lib/models/controls.d.ts +0 -38
  51. package/lib/models/file.d.ts +0 -7
  52. package/lib/models/live-update-message.d.ts +0 -12
  53. package/lib/services/cookie.service.d.ts +0 -25
  54. package/lib/services/data.service.d.ts +0 -18
  55. package/lib/services/dialog.service.d.ts +0 -12
  56. package/lib/services/files.service.d.ts +0 -15
  57. package/lib/services/live-update.service.d.ts +0 -22
  58. package/lib/services/loader.service.d.ts +0 -16
  59. package/lib/services/toast.service.d.ts +0 -23
  60. package/public-api.d.ts +0 -49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrv-components",
3
- "version": "1.10.77",
3
+ "version": "1.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.3.0",
6
6
  "@angular/core": ">=17.3.0",
Binary file
@@ -1 +0,0 @@
1
- export declare const inOutAnimation: (duration?: number) => import("@angular/animations").AnimationTriggerMetadata;
@@ -1 +0,0 @@
1
- export declare const rotationAnimation: (initialAngle?: number, endAngle?: number, duration?: number) => import("@angular/animations").AnimationTriggerMetadata;
@@ -1,15 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import * as i0 from "@angular/core";
3
- export interface Breadcrumb {
4
- display: string;
5
- link?: string;
6
- callback?: Function;
7
- }
8
- export declare class BreadcrumbComponent {
9
- router: Router;
10
- crumbs?: Breadcrumb[];
11
- constructor(router: Router);
12
- navigateTo: (uri: string, data?: any) => void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "app-chr-breadcrumb", never, { "crumbs": { "alias": "crumbs"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,27 +0,0 @@
1
- import { Color } from '../models/colors';
2
- import * as i0 from "@angular/core";
3
- export declare class ChrButtonComponent {
4
- display?: string;
5
- icon?: string;
6
- click?: Function;
7
- clickWhileDisabled?: Function;
8
- color: Color;
9
- textColor?: Color;
10
- flat: boolean;
11
- predicate?: boolean;
12
- type: 'responsive' | 'table' | 'full' | 'fixed' | 'small' | 'none';
13
- href?: string;
14
- target?: '_blank' | '_parent' | '_self' | '_top';
15
- disabled: boolean;
16
- tooltip?: string;
17
- tooltipPosition?: 'above' | 'below' | 'left' | 'right' | 'before' | 'after';
18
- constructor();
19
- setDisabled: (is: boolean) => void;
20
- doClick: () => void;
21
- getBackgroundColor: (color: Color) => string;
22
- getTextColor: (color: Color) => string;
23
- getWidth: () => "w-36" | "w-full" | "w-9" | "w-min";
24
- getShadow: () => "" | "button-shadow";
25
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrButtonComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrButtonComponent, "app-chr-button", never, { "display": { "alias": "display"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "click": { "alias": "click"; "required": false; }; "clickWhileDisabled": { "alias": "clickWhileDisabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "flat": { "alias": "flat"; "required": false; }; "predicate": { "alias": "predicate"; "required": false; }; "type": { "alias": "type"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, {}, never, never, true, never>;
27
- }
@@ -1,13 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ChrCheckboxComponent {
4
- checked: boolean;
5
- type: 'info' | 'success';
6
- disabled: boolean;
7
- change: EventEmitter<{
8
- checked: boolean;
9
- }>;
10
- check(end: boolean): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrCheckboxComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrCheckboxComponent, "app-chr-checkbox", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
13
- }
@@ -1,36 +0,0 @@
1
- import { MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- import { IAction } from '../chr-table/chr-table.component';
4
- import * as i0 from "@angular/core";
5
- export interface IDefaultDialogConfig extends MatDialogConfig<any> {
6
- config?: MatDialogConfig<any>;
7
- title: string;
8
- text: string;
9
- close?: string;
10
- actions?: IAction[];
11
- }
12
- interface DialogConfig {
13
- _config: {
14
- title: string;
15
- text: string;
16
- close: string;
17
- actions: IAction[];
18
- };
19
- }
20
- export declare class ChrDefaultModalComponent {
21
- dialogRef: MatDialogRef<ChrDefaultModalComponent>;
22
- config: DialogConfig;
23
- private sanitizer;
24
- valid: boolean;
25
- title?: string;
26
- text?: string;
27
- actions?: IAction[];
28
- close?: string;
29
- protected html: SafeHtml | null;
30
- constructor(dialogRef: MatDialogRef<ChrDefaultModalComponent>, config: DialogConfig, sanitizer: DomSanitizer);
31
- ngOnInit(): void;
32
- closeModal: (callback?: Function) => void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrDefaultModalComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrDefaultModalComponent, "app-chr-default-modal", never, { "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "close": { "alias": "close"; "required": false; }; }, {}, never, never, true, never>;
35
- }
36
- export {};
@@ -1,12 +0,0 @@
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
- cancel: () => void;
9
- close: () => void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrDeleteModalComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrDeleteModalComponent, "app-chr-delete-modal", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,177 +0,0 @@
1
- import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { IControlValidation } from '../../models/chr-validators/base-validator';
4
- import { Subscription } from 'rxjs';
5
- import { InputType } from '../../models/controls';
6
- import * as i0 from "@angular/core";
7
- export declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnDestroy {
8
- /**
9
- * The label that will be shown to the user for this input.
10
- */
11
- label: string | null;
12
- /**
13
- * The type of the input. The BaseInput class is designed to be used for the basic text/number/password/hidden types. Any other kind of input would probably benefit of a custom component inheriting BaseInput.
14
- */
15
- type: InputType;
16
- /**
17
- * The id of the input.
18
- */
19
- id: string | null;
20
- /**
21
- * The name of the input. It's the model's property name or the key that will be set to the value object
22
- */
23
- name: string | null;
24
- private _value;
25
- get value(): any | null;
26
- set value(value: any | null);
27
- private valueSubject;
28
- private valueSubscription;
29
- /**
30
- * The value change event. This will be triggered both by onChange and by onValueChange (they technically should not be fired together as onValueChange ends up calling onChange)
31
- */
32
- valueChanges: EventEmitter<any>;
33
- /**
34
- * Whether or not the input is required
35
- */
36
- protected required: boolean;
37
- /**
38
- * Span that will be shown under the input
39
- */
40
- span: string | null;
41
- /**
42
- * Name of the material icon that will be displayed
43
- */
44
- icon: string | null;
45
- /**
46
- * A callback function that will be triggered on the input's icon click with the current value of the input
47
- */
48
- iconCallback: ((value: any) => string) | null;
49
- /**
50
- * Whether or not the icon's callback is enabled
51
- */
52
- iconCallbackDisabled: boolean;
53
- /**
54
- * Tooltip that will be displayed when hovering the input's icon
55
- */
56
- iconTooltip: string | null;
57
- /**
58
- * Tooltip that will be displayed on hover
59
- */
60
- tooltip: string | null;
61
- /**
62
- * Debounce time that will be used by the input before throwing the new value event
63
- */
64
- debounceTime?: number | null;
65
- /**
66
- * Validations that will be evaluated for the input. In the case of custom validator function, the return object needs to contain a key with the 'rule' and it's value needs to be 'true'
67
- */
68
- validations: IControlValidation[];
69
- /**
70
- * Indicates whether or not this input is being used outside a ReactiveForm. Default is false. If this is false, the input will create it's own FormControl as to enable it's complex behaviors
71
- */
72
- standalone: boolean;
73
- /**
74
- * Indicates whether or not this input should try catching the focus on page load
75
- */
76
- autofocus: boolean;
77
- /**
78
- * Indicates whether or not this input should convert the file to base64 for it to be sent as part of the object.
79
- * If this is false, the file won't be converted and will be sent as part as the regular form process.
80
- * Default is true to allow full JS manipulation of files et upload progress report.
81
- */
82
- base64: boolean;
83
- private _disabled;
84
- /**
85
- * Getter and setter that allow the control of the FormControl's state from the template
86
- */
87
- get disabled(): boolean;
88
- set disabled(value: boolean);
89
- /**
90
- * Whether or not the input starts as disabled. This can then be changed through the form control.
91
- */
92
- isDisabled: boolean;
93
- /**
94
- * Array of string representing the input's siblings' FormControl's name. This will be used to trigger the validity of the siblings when this input's value changes
95
- */
96
- siblings: string[];
97
- onChange: any;
98
- onTouch: any;
99
- /**
100
- * Whether or not the input is touched
101
- */
102
- isTouched: boolean;
103
- /**
104
- * The NgControl associated with this input
105
- */
106
- protected control: NgControl | null;
107
- /**
108
- * The validity status of the related FormControl
109
- */
110
- isValid: boolean | null;
111
- /**
112
- * Every child should either call super(ngControl) or implement the logic for the input to bind the control to the FormControl.
113
- * @param ngControl the FormControl binded to this CVA
114
- */
115
- constructor(ngControl: NgControl | null);
116
- /**
117
- * A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
118
- * In the case of the BaseInput class, this methods also subscribes to the onValueChange's subject as to register the debounce time.
119
- *
120
- * To use in any component inheriting the BaseInput Class, please call super.ngOnInit() at any point within the overriden ngOnInit() method.
121
- */
122
- ngOnInit(): void;
123
- /**
124
- * A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.
125
- *
126
- * To use in any component inheriting the BaseInput Class, please call super.ngAfterViewInit() at any point within the overriden ngAfterViewInit() method.
127
- */
128
- ngAfterViewInit(): void;
129
- /**
130
- * A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
131
- * In the case of the BaseInput class, this methods also unsubscribe to the onValueChange's subject as to avoid leaving a stray observable.
132
- *
133
- * To use in any component inheriting the BaseInput Class, please call super.ngOnDestroy() at any point within the overriden ngOnDestroy() method.
134
- */
135
- ngOnDestroy(): void;
136
- /**
137
- * A method that returns the input's value. If it's linked to a formcontrol returns the formcontrol's value otherwise the local value
138
- * @returns value any
139
- */
140
- getValue: () => any;
141
- /**
142
- * A method that can be used instead of onChange(value). It will pass the new value to an observable that will in turn add a debounce time then call the onchange function.
143
- *
144
- * In short, using this method instead of onChange will add a debounce time.
145
- * @param value The new value of the input
146
- * @returns the value observable
147
- */
148
- onValueChange: (value: any) => Subscription;
149
- writeValue(obj: any): void;
150
- registerOnChange(fn: any): void;
151
- registerOnTouched(fn: any): void;
152
- setDisabledState?(isDisabled: boolean): void;
153
- protected updateValueAndValidity: () => void;
154
- /**
155
- * Despite it's name, this method returns a single validation error's display (even if there are multiple). And that is the first error found.
156
- * @returns display of the last error
157
- */
158
- protected getLastError: () => string | null;
159
- /**
160
- * Returns a boolean describing whether or not the control is required
161
- * @returns
162
- */
163
- protected isControlRequired: () => boolean;
164
- /**
165
- * Returns the current error status of the input.
166
- * @returns
167
- */
168
- protected hasError: () => boolean;
169
- private configureDebouncing;
170
- private configureTouchBehavior;
171
- private configureValidityReplication;
172
- private configureFormControl;
173
- private buildFormControl;
174
- protected doCallback: () => void;
175
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrBaseInputComponent, [{ optional: true; }]>;
176
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrBaseInputComponent, "chr-base-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "span": { "alias": "span"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconCallback": { "alias": "iconCallback"; "required": false; }; "iconCallbackDisabled": { "alias": "iconCallbackDisabled"; "required": false; }; "iconTooltip": { "alias": "iconTooltip"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "validations": { "alias": "validations"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "base64": { "alias": "base64"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "siblings": { "alias": "siblings"; "required": false; }; }, { "valueChanges": "valueChanges"; }, never, never, true, never>;
177
- }
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
3
- import { NgControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class ChrColorInputComponent extends ChrBaseInputComponent implements OnInit, AfterViewInit, OnDestroy {
6
- constructor(ngControl: NgControl);
7
- parseColor: (event: string) => void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrColorInputComponent, [{ optional: true; }]>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrColorInputComponent, "chr-color-input", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,16 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
3
- import { ControlValueAccessor, NgControl } from '@angular/forms';
4
- import { DatePipe } from '@angular/common';
5
- import * as i0 from "@angular/core";
6
- export declare class ChrDateInputComponent extends ChrBaseInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
7
- private datePipe;
8
- constructor(ngControl: NgControl, datePipe: DatePipe);
9
- writeValue(obj: any): void;
10
- ngOnInit(): void;
11
- onInputChange: (value: any) => void;
12
- parseDate: (event: string) => Date | null;
13
- dateToString: (value: Date) => string | null;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrDateInputComponent, [{ optional: true; }, null]>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrDateInputComponent, "chr-date-input", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,16 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
3
- import { ControlValueAccessor, NgControl } from '@angular/forms';
4
- import { DatePipe } from '@angular/common';
5
- import * as i0 from "@angular/core";
6
- export declare class ChrDatetimeInputComponent extends ChrBaseInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
7
- private datePipe;
8
- constructor(ngControl: NgControl, datePipe: DatePipe);
9
- writeValue(obj: any): void;
10
- ngOnInit(): void;
11
- onInputChange: (value: any) => void;
12
- parseDate: (event: string) => Date | null;
13
- dateToString: (value: Date) => string | null;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrDatetimeInputComponent, [{ optional: true; }, null]>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrDatetimeInputComponent, "chr-datetime-input", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,43 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
4
- import { FileService } from '../../services/files.service';
5
- import { Observable } from 'rxjs';
6
- import { IFile } from '../../models/file';
7
- import { ToastService } from '../../services/toast.service';
8
- import * as i0 from "@angular/core";
9
- export declare class ChrFileInputComponent extends ChrBaseInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
10
- private fileService;
11
- private toastService;
12
- /**
13
- * An array of string that contains each type that should be accepted by the input
14
- */
15
- accept: string[];
16
- /**
17
- * Whether or not the input should allow multiple file selection
18
- */
19
- multiple: boolean;
20
- valueDisplay: string | null;
21
- /**
22
- * Whether or not the progress bar that display a file's conversion progress will be editable by the user
23
- */
24
- editable: boolean;
25
- errors: {
26
- [index: number]: boolean;
27
- } | null;
28
- files: Observable<{
29
- progress: number;
30
- file?: IFile;
31
- }>[];
32
- constructor(ngControl: NgControl, fileService: FileService, toastService: ToastService);
33
- writeValue(obj: any | any[]): void;
34
- ngOnInit(): void;
35
- protected onFileChange: (event: any) => void;
36
- protected acceptToString: () => string;
37
- protected getToAccept: () => string;
38
- protected changeFileName: (event: any, file?: IFile) => void;
39
- protected openFile: (index: number, file?: IFile) => void;
40
- protected removeFile: (index: number, file?: IFile) => void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrFileInputComponent, [{ optional: true; }, null, null]>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrFileInputComponent, "chr-file-input", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, {}, never, never, true, never>;
43
- }
@@ -1,137 +0,0 @@
1
- import { EventEmitter, ChangeDetectorRef, OnInit, ElementRef } from '@angular/core';
2
- import { ValidatorFn } from '@angular/forms';
3
- import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
4
- import { IControl } from '../models/controls';
5
- import * as i0 from "@angular/core";
6
- export interface IFormSection {
7
- title?: string;
8
- controls: IControl[];
9
- }
10
- export declare class ChrFormComponent implements OnInit {
11
- private builder;
12
- private changeDetector;
13
- private element;
14
- sections?: IFormSection[];
15
- controls?: IControl[];
16
- validators?: ValidatorFn | ValidatorFn[] | null;
17
- valid?: boolean;
18
- validChange: EventEmitter<boolean>;
19
- model: any;
20
- modelChange: EventEmitter<any>;
21
- formDataChange: EventEmitter<FormData>;
22
- disabled?: boolean;
23
- valuesChanges: EventEmitter<any>;
24
- submit?: Function;
25
- compact: boolean;
26
- debounceTime: number | null;
27
- formChange: EventEmitter<{
28
- [key: string]: any;
29
- }>;
30
- valueChanges: EventEmitter<{
31
- [name: string]: any;
32
- }>;
33
- tabDisplay: boolean;
34
- formControls: {
35
- [key: string]: FormControl;
36
- };
37
- /**
38
- * The related ReactiveForm of the form group. This is exposed to allow form extension and usage of custom form controls while still maintaining centralised validation and validity
39
- */
40
- form: FormGroup;
41
- formChanges: EventEmitter<FormGroup | null>;
42
- private values;
43
- private controlTypes;
44
- private flattenedControls;
45
- private flattenedShownControl;
46
- private flattenedHiddenControls;
47
- initialized: boolean;
48
- constructor(builder: FormBuilder, changeDetector: ChangeDetectorRef, element: ElementRef);
49
- ngOnInit(): void;
50
- private initModel;
51
- private initValues;
52
- private initControls;
53
- private initListeners;
54
- private hasRegularFile;
55
- getEncType: () => string;
56
- /**
57
- * Methods that returns the FormControl for the given input. If no FormControl is found, return null.
58
- * @param name input's name
59
- * @returns the FormControl whose name matches the parameter
60
- */
61
- getControl: (name: string) => import("@angular/forms").AbstractControl<any, any> | null;
62
- /**
63
- * Focus the input for the user to start typing in.
64
- * @param name input's name
65
- */
66
- focus: (name: string) => void;
67
- /**
68
- * Returns the value of the input whose name matches the parameter input.
69
- * If no input name is provided, returns the value of the form.
70
- * @param input name of the input
71
- * @returns the value of the input
72
- */
73
- value: (input?: string) => any;
74
- /**
75
- * Returns the value of the input whose name matches the parameter input.
76
- * If no input name is provided, returns the value of the form.
77
- * @param input name of the input
78
- * @returns the value of the input
79
- */
80
- getValue: (input?: string) => any;
81
- /**
82
- * Returns the validity of the input.
83
- * If no input is provided, returns the validity of the form.
84
- * @param input name of the input
85
- * @returns
86
- */
87
- isValid: (input?: string) => boolean | undefined;
88
- /**
89
- * Update the value of a control WITHOUT triggering the modelChange event
90
- * @param key input key (control name)
91
- * @param value value to set
92
- */
93
- setValue: (key: string, value: any) => void;
94
- /**
95
- * Update the value of the form's model WITHOUT triggering the modelChange event
96
- * @param model the model to set
97
- */
98
- set: (model: any) => void;
99
- /**
100
- * Updates the value of a control. This WILL trigger the modelChange event
101
- * @param key input key (control name)
102
- * @param value value to set
103
- */
104
- patchValue: (key: string, value: any) => void;
105
- /**
106
- * Updates the value of the form's model. This WILL trigger the modelChange event once for each input
107
- * @param model model to set
108
- */
109
- patch: (model: any) => void;
110
- /**
111
- * Methods that checks the validity of each input of the form and updates their status. If the markAsTouched parameter si set to true, it will also mark the inputs as touched
112
- * so that the validation errors may be displayed to the user.
113
- * @param markAsTouched Boolean that describes whether or not the inputs of the form will be marked as touched.
114
- */
115
- checkValidity: (markAsTouched?: boolean) => void;
116
- /**
117
- * Here for compatibility. Same thing as checkValidity.
118
- */
119
- updateValueAndValidity: (markAsTouched?: boolean) => void;
120
- /**
121
- * Resets the form.
122
- */
123
- reset: () => void;
124
- toFormData: () => FormData;
125
- protected get: (control: IControl) => import("@angular/forms").AbstractControl<any, any> | null;
126
- private setValue$;
127
- private setModel$;
128
- /**
129
- * Triggers the submit method and pass the local values as its parameters. The local values will contain the values of every input. Not just those that match de model's property (ex: like those provided by the modelChanges event).
130
- */
131
- doSubmit: () => void;
132
- protected log: (el: any) => void;
133
- protected initializeControl: (control: IControl, formControl: FormControl) => void;
134
- alert: (s: string) => void;
135
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrFormComponent, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrFormComponent, "app-chr-form", never, { "sections": { "alias": "sections"; "required": false; }; "controls": { "alias": "controls"; "required": false; }; "validators": { "alias": "validators"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "submit": { "alias": "submit"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "tabDisplay": { "alias": "tabDisplay"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, { "validChange": "validChange"; "modelChange": "modelChange"; "formDataChange": "formDataChange"; "valuesChanges": "valuesChanges"; "formChange": "formChange"; "valueChanges": "valueChanges"; "formChanges": "formChanges"; }, never, never, true, never>;
137
- }
@@ -1,8 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { ChrFileInputComponent } from '../chr-file-input/chr-file-input.component';
4
- import * as i0 from "@angular/core";
5
- export declare class ChrNiceFileInputComponent extends ChrFileInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrNiceFileInputComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrNiceFileInputComponent, "chr-nice-file-input", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,15 +0,0 @@
1
- import { AfterContentChecked, AfterViewChecked, AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
3
- import { NgControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class ChrTextareaInputComponent extends ChrBaseInputComponent implements OnInit, AfterViewInit, OnDestroy, AfterViewChecked, AfterContentChecked {
6
- input: ElementRef | null;
7
- constructor(ngControl: NgControl);
8
- ngAfterViewInit(): void;
9
- ngAfterContentChecked(): void;
10
- ngAfterViewChecked(): void;
11
- resize: (textArea?: HTMLTextAreaElement) => void;
12
- preventSubmit: (event: Event) => void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrTextareaInputComponent, [{ optional: true; }]>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrTextareaInputComponent, "chr-textarea-input", never, {}, {}, never, never, true, never>;
15
- }
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
- import { ChrBaseInputComponent } from '../chr-base-input/chr-base-input.component';
3
- import { ControlValueAccessor, NgControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class ChrToggleInputComponent extends ChrBaseInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
6
- constructor(ngControl: NgControl);
7
- toggle: (event: any) => void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrToggleInputComponent, [{ optional: true; }]>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrToggleInputComponent, "chr-toggle-input", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,42 +0,0 @@
1
- import { AfterContentChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
- import { PaginationInstance, PaginationService } from 'ngx-pagination';
3
- import { ChrFormComponent } from '../chr-form/chr-form.component';
4
- import { CookiesService } from '../services/cookie.service';
5
- import { DataService } from '../services/data.service';
6
- import * as i0 from "@angular/core";
7
- export declare class ChrPaginatorComponent implements OnInit, AfterViewInit, AfterContentChecked {
8
- service: PaginationService;
9
- private cookieService;
10
- private dataService;
11
- private changeDetector;
12
- private _page;
13
- private _pageSize;
14
- get page(): number;
15
- set page(value: number);
16
- pageChange: EventEmitter<number>;
17
- get pageSize(): number;
18
- set pageSize(value: number);
19
- get dataSize(): number;
20
- get currentlyShownSize(): number;
21
- pageSizeChange: EventEmitter<number>;
22
- id: string | undefined;
23
- allowSizeChange: boolean | string;
24
- pageSizeForm: ChrFormComponent | null;
25
- instance?: PaginationInstance;
26
- constructor(service: PaginationService, cookieService: CookiesService, dataService: DataService, changeDetector: ChangeDetectorRef);
27
- ngAfterContentChecked(): void;
28
- ngOnInit(): void;
29
- ngAfterViewInit(): void;
30
- previous: () => void;
31
- next: () => void;
32
- setPage: (page: number) => void;
33
- setPageEventHandler: (event: any) => void;
34
- isFirstPage: () => boolean;
35
- setPageSize: (pageSize: number) => void;
36
- setPageSizeEventHandler: (event: any) => void;
37
- isLastPage: () => boolean;
38
- lastPage: () => number;
39
- private emit;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<ChrPaginatorComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ChrPaginatorComponent, "app-chr-paginator", never, { "page": { "alias": "page"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "id": { "alias": "id"; "required": false; }; "allowSizeChange": { "alias": "allowSizeChange"; "required": false; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
42
- }