chrv-components 1.11.13 → 1.11.15
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/fesm2022/chrv-components.mjs +56 -24
- package/fesm2022/chrv-components.mjs.map +1 -1
- package/index.d.ts +32 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, OnDestroy, EventEmitter, AfterViewChecked, AfterContentChecked,
|
|
2
|
+
import { OnInit, AfterViewInit, OnDestroy, EventEmitter, ElementRef, AfterViewChecked, AfterContentChecked, ViewContainerRef, QueryList, AfterContentInit, InjectionToken, Type } from '@angular/core';
|
|
3
3
|
import { Router, UrlTree } from '@angular/router';
|
|
4
4
|
import { MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
|
|
5
5
|
export * from '@angular/material/dialog';
|
|
@@ -47,7 +47,7 @@ declare class ChrButtonComponent {
|
|
|
47
47
|
readonly textColor: _angular_core.InputSignal<Color | undefined>;
|
|
48
48
|
readonly flat: _angular_core.InputSignal<boolean>;
|
|
49
49
|
readonly predicate: _angular_core.InputSignal<boolean | undefined>;
|
|
50
|
-
readonly type: _angular_core.InputSignal<"none" | "
|
|
50
|
+
readonly type: _angular_core.InputSignal<"none" | "fixed" | "small" | "responsive" | "table" | "full">;
|
|
51
51
|
readonly href: _angular_core.InputSignal<string | undefined>;
|
|
52
52
|
readonly target: _angular_core.InputSignal<"_blank" | "_parent" | "_self" | "_top" | undefined>;
|
|
53
53
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
@@ -321,10 +321,18 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
|
|
|
321
321
|
* 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
|
|
322
322
|
*/
|
|
323
323
|
readonly standalone: _angular_core.InputSignal<boolean>;
|
|
324
|
+
/**
|
|
325
|
+
* Event that will be triggered when the input is focused
|
|
326
|
+
*/
|
|
327
|
+
focus: _angular_core.OutputEmitterRef<void>;
|
|
324
328
|
/**
|
|
325
329
|
* Indicates whether or not this input should try catching the focus on page load
|
|
326
330
|
*/
|
|
327
331
|
readonly autofocus: _angular_core.InputSignal<boolean>;
|
|
332
|
+
/**
|
|
333
|
+
* Event that will be triggered when the input is blurred (a.k.a) when the user clicks outside of the input or presses tab to leave the input.
|
|
334
|
+
*/
|
|
335
|
+
blur: _angular_core.OutputEmitterRef<void>;
|
|
328
336
|
/**
|
|
329
337
|
* Indicates whether or not this input should convert the file to base64 for it to be sent as part of the object.
|
|
330
338
|
* If this is false, the file won't be converted and will be sent as part as the regular form process.
|
|
@@ -332,6 +340,13 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
|
|
|
332
340
|
*/
|
|
333
341
|
readonly base64: _angular_core.InputSignal<boolean>;
|
|
334
342
|
private _disabled;
|
|
343
|
+
/**
|
|
344
|
+
* The input element.
|
|
345
|
+
* May be undefined if the template does not contain an input element with the 'input' reference.
|
|
346
|
+
* May also be undefined depending the lifecycle of the component.
|
|
347
|
+
* May not be what is expected (ex: for file inputs, the input element is not the one that is displayed but the one that is hidden).
|
|
348
|
+
*/
|
|
349
|
+
input: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
335
350
|
/**
|
|
336
351
|
* Getter and setter that allow the control of the FormControl's state from the template
|
|
337
352
|
*/
|
|
@@ -401,6 +416,14 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
|
|
|
401
416
|
registerOnChange(fn: any): void;
|
|
402
417
|
registerOnTouched(fn: any): void;
|
|
403
418
|
setDisabledState?(isDisabled: boolean): void;
|
|
419
|
+
/**
|
|
420
|
+
* Forces the input element to take focus.
|
|
421
|
+
*/
|
|
422
|
+
forceFocus: () => void;
|
|
423
|
+
/**
|
|
424
|
+
* Forces the input element to lose focus.
|
|
425
|
+
*/
|
|
426
|
+
forceBlur: () => void;
|
|
404
427
|
protected updateValueAndValidity: () => void;
|
|
405
428
|
/**
|
|
406
429
|
* 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.
|
|
@@ -424,7 +447,7 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
|
|
|
424
447
|
private buildFormControl;
|
|
425
448
|
protected doCallback: () => void;
|
|
426
449
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChrBaseInputComponent, never>;
|
|
427
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrBaseInputComponent, "chr-base-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "span": { "alias": "span"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconCallback": { "alias": "iconCallback"; "required": false; "isSignal": true; }; "iconCallbackDisabled": { "alias": "iconCallbackDisabled"; "required": false; "isSignal": true; }; "iconTooltip": { "alias": "iconTooltip"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "validations": { "alias": "validations"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "base64": { "alias": "base64"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "siblings": { "alias": "siblings"; "required": false; "isSignal": true; }; }, { "valueChanges": "valueChanges"; }, never, never, true, never>;
|
|
450
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrBaseInputComponent, "chr-base-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "span": { "alias": "span"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconCallback": { "alias": "iconCallback"; "required": false; "isSignal": true; }; "iconCallbackDisabled": { "alias": "iconCallbackDisabled"; "required": false; "isSignal": true; }; "iconTooltip": { "alias": "iconTooltip"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "validations": { "alias": "validations"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "base64": { "alias": "base64"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "siblings": { "alias": "siblings"; "required": false; "isSignal": true; }; }, { "valueChanges": "valueChanges"; "focus": "focus"; "blur": "blur"; }, never, never, true, never>;
|
|
428
451
|
}
|
|
429
452
|
|
|
430
453
|
declare class ChrColorInputComponent extends ChrBaseInputComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -503,7 +526,6 @@ declare class ChrFileInputComponent extends ChrBaseInputComponent implements Con
|
|
|
503
526
|
}
|
|
504
527
|
|
|
505
528
|
declare class ChrTextareaInputComponent extends ChrBaseInputComponent implements OnInit, AfterViewInit, OnDestroy, AfterViewChecked, AfterContentChecked {
|
|
506
|
-
readonly input: _angular_core.Signal<ElementRef<any> | null | undefined>;
|
|
507
529
|
constructor();
|
|
508
530
|
ngAfterViewInit(): void;
|
|
509
531
|
ngAfterContentChecked(): void;
|
|
@@ -875,6 +897,7 @@ declare class ChrSearchbarComponent {
|
|
|
875
897
|
declare class ChrPaginatorComponent implements OnInit, AfterContentChecked {
|
|
876
898
|
private service;
|
|
877
899
|
private dataService;
|
|
900
|
+
private pageInput;
|
|
878
901
|
page: _angular_core.InputSignal<number>;
|
|
879
902
|
pageChange: _angular_core.OutputEmitterRef<number>;
|
|
880
903
|
pageSize: _angular_core.InputSignal<number>;
|
|
@@ -883,7 +906,9 @@ declare class ChrPaginatorComponent implements OnInit, AfterContentChecked {
|
|
|
883
906
|
protected dataSize: _angular_core.Signal<number>;
|
|
884
907
|
protected currentlyShownSize: _angular_core.Signal<number>;
|
|
885
908
|
readonly id: _angular_core.InputSignal<string>;
|
|
886
|
-
readonly allowSizeChange: _angular_core.InputSignal<
|
|
909
|
+
readonly allowSizeChange: _angular_core.InputSignal<boolean>;
|
|
910
|
+
readonly allowPageEdit: _angular_core.InputSignal<boolean>;
|
|
911
|
+
isPageEditing: _angular_core.ModelSignal<boolean>;
|
|
887
912
|
ngAfterContentChecked(): void;
|
|
888
913
|
ngOnInit(): void;
|
|
889
914
|
previous: () => void;
|
|
@@ -895,8 +920,9 @@ declare class ChrPaginatorComponent implements OnInit, AfterContentChecked {
|
|
|
895
920
|
setPageSizeEventHandler: (event: any) => void;
|
|
896
921
|
isLastPage: _angular_core.Signal<boolean>;
|
|
897
922
|
lastPage: _angular_core.Signal<number>;
|
|
923
|
+
focusInput: () => void;
|
|
898
924
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChrPaginatorComponent, never>;
|
|
899
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrPaginatorComponent, "app-chr-paginator", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": true; "isSignal": true; }; "allowSizeChange": { "alias": "allowSizeChange"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
|
|
925
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrPaginatorComponent, "app-chr-paginator", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": true; "isSignal": true; }; "allowSizeChange": { "alias": "allowSizeChange"; "required": false; "isSignal": true; }; "allowPageEdit": { "alias": "allowPageEdit"; "required": false; "isSignal": true; }; "isPageEditing": { "alias": "isPageEditing"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "isPageEditing": "isPageEditingChange"; }, never, never, true, never>;
|
|
900
926
|
}
|
|
901
927
|
|
|
902
928
|
/**
|