chrv-components 1.11.22 → 1.11.23

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/index.d.ts CHANGED
@@ -46,7 +46,7 @@ declare class ChrButtonComponent {
46
46
  readonly textColor: _angular_core.InputSignal<Color | undefined>;
47
47
  readonly flat: _angular_core.InputSignal<boolean>;
48
48
  readonly predicate: _angular_core.InputSignal<boolean | undefined>;
49
- readonly type: _angular_core.InputSignal<"none" | "responsive" | "table" | "full" | "fixed" | "small">;
49
+ readonly type: _angular_core.InputSignal<"fixed" | "small" | "none" | "responsive" | "table" | "full">;
50
50
  readonly href: _angular_core.InputSignal<string | undefined>;
51
51
  readonly target: _angular_core.InputSignal<"_blank" | "_parent" | "_self" | "_top" | undefined>;
52
52
  readonly disabled: _angular_core.InputSignal<boolean>;
@@ -98,6 +98,7 @@ interface IControl {
98
98
  col?: number;
99
99
  row?: number;
100
100
  type: InputType;
101
+ disabled?: boolean;
101
102
  accept?: string[];
102
103
  debounceTime?: number;
103
104
  value?: any;
@@ -338,7 +339,6 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
338
339
  * Default is true to allow full JS manipulation of files et upload progress report.
339
340
  */
340
341
  readonly base64: _angular_core.InputSignal<boolean>;
341
- private _disabled;
342
342
  /**
343
343
  * The input element.
344
344
  * May be undefined if the template does not contain an input element with the 'input' reference.
@@ -349,12 +349,7 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
349
349
  /**
350
350
  * Getter and setter that allow the control of the FormControl's state from the template
351
351
  */
352
- get disabled(): boolean;
353
- set disabled(value: boolean);
354
- /**
355
- * Whether or not the input starts as disabled. This can then be changed through the form control.
356
- */
357
- isDisabled: boolean;
352
+ disabled: _angular_core.ModelSignal<boolean>;
358
353
  /**
359
354
  * 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
360
355
  */
@@ -423,6 +418,7 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
423
418
  * Forces the input element to lose focus.
424
419
  */
425
420
  forceBlur: () => void;
421
+ getRawValue: () => any;
426
422
  protected updateValueAndValidity: () => void;
427
423
  /**
428
424
  * 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.
@@ -446,7 +442,7 @@ declare class ChrBaseInputComponent implements OnInit, ControlValueAccessor, Aft
446
442
  private buildFormControl;
447
443
  protected doCallback: () => void;
448
444
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChrBaseInputComponent, never>;
449
- 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>;
445
+ 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; "isSignal": true; }; "siblings": { "alias": "siblings"; "required": false; "isSignal": true; }; }, { "valueChanges": "valueChanges"; "focus": "focus"; "blur": "blur"; "disabled": "disabledChange"; }, never, never, true, never>;
450
446
  }
451
447
 
452
448
  declare class ChrColorInputComponent extends ChrBaseInputComponent implements OnInit, AfterViewInit, OnDestroy {
@@ -1078,7 +1074,7 @@ declare class ChrDefaultModalComponent {
1078
1074
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrDefaultModalComponent, "app-chr-default-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "close": { "alias": "close"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1079
1075
  }
1080
1076
 
1081
- declare class ChrModalComponent {
1077
+ declare class ChrModalComponent implements OnInit {
1082
1078
  dynamicContent: ViewContainerRef;
1083
1079
  /**
1084
1080
  * Indique si le modal est ouvert ou fermé.
@@ -1089,12 +1085,17 @@ declare class ChrModalComponent {
1089
1085
  * Indique si le modal doit se fermer lorsque l'utilisateur clique sur le fond.
1090
1086
  * @default true
1091
1087
  */
1092
- closeOnBackdropClick: _angular_core.InputSignal<boolean>;
1088
+ closeOnBackdropClick: _angular_core.ModelSignal<boolean>;
1093
1089
  /**
1094
1090
  * Indique si le modal doit se fermer lorsque l'utilisateur appuie sur la touche Échap.
1095
1091
  * @default true
1096
1092
  */
1097
- closeOnEscape: _angular_core.InputSignal<boolean>;
1093
+ closeOnEscape: _angular_core.ModelSignal<boolean>;
1094
+ /**
1095
+ * Shorthand for closeOnBackdropClick and closeOnEscape
1096
+ * @default undefined
1097
+ */
1098
+ disableClose: _angular_core.InputSignal<boolean | undefined>;
1098
1099
  /**
1099
1100
  * Événement émis lorsque le modal doit être fermé.
1100
1101
  * @default undefined
@@ -1102,20 +1103,19 @@ declare class ChrModalComponent {
1102
1103
  close: _angular_core.OutputEmitterRef<any>;
1103
1104
  /**
1104
1105
  * Largeur du modal en pourcentage de la largeur de la fenêtre.
1105
- * @default 50
1106
1106
  */
1107
1107
  width: _angular_core.InputSignal<number | undefined>;
1108
1108
  /**
1109
1109
  * Hauteur du modal en pourcentage de la hauteur de la fenêtre.
1110
- * @default 50
1111
1110
  */
1112
1111
  height: _angular_core.InputSignal<number | undefined>;
1113
1112
  getDynamicContentContainer(): ViewContainerRef;
1114
1113
  onBackdropClick(): void;
1115
1114
  onModalClick(event: Event): void;
1116
1115
  onEscapeKey(event: KeyboardEvent): void;
1116
+ ngOnInit(): void;
1117
1117
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChrModalComponent, never>;
1118
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrModalComponent, "chr-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, { "close": "close"; }, never, never, true, never>;
1118
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChrModalComponent, "chr-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "disableClose": { "alias": "disableClose"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, { "closeOnBackdropClick": "closeOnBackdropClickChange"; "closeOnEscape": "closeOnEscapeChange"; "close": "close"; }, never, never, true, never>;
1119
1119
  }
1120
1120
 
1121
1121
  declare class InlineSvgComponent implements OnInit {
@@ -1285,9 +1285,27 @@ declare const inOutAnimation: (duration?: number) => _angular_animations.Animati
1285
1285
  declare const rotationAnimation: (initialAngle?: number, endAngle?: number, duration?: number) => _angular_animations.AnimationTriggerMetadata;
1286
1286
 
1287
1287
  interface ModalOptions {
1288
+ /**
1289
+ * Indicates if the modal is open or closed.
1290
+ * @default true
1291
+ */
1288
1292
  closeOnBackdropClick?: boolean;
1293
+ /**
1294
+ * Indicates if the modal should close when the user presses the Escape key.
1295
+ * @default true
1296
+ */
1289
1297
  closeOnEscape?: boolean;
1298
+ /**
1299
+ * Shorthand for closeOnBackdropClick and closeOnEscape
1300
+ */
1301
+ disableClose?: boolean;
1302
+ /**
1303
+ * Width in vw
1304
+ */
1290
1305
  width?: number;
1306
+ /**
1307
+ * Height in vh
1308
+ */
1291
1309
  height?: number;
1292
1310
  data?: any;
1293
1311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrv-components",
3
- "version": "1.11.22",
3
+ "version": "1.11.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0",
Binary file