chrv-components 1.12.230 → 1.12.232

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrv-components",
3
- "version": "1.12.230",
3
+ "version": "1.12.232",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -53,12 +53,12 @@ declare class ChrButtonLegacyComponent {
53
53
  readonly textColor: _angular_core.InputSignal<Color | undefined>;
54
54
  readonly flat: _angular_core.InputSignal<boolean>;
55
55
  readonly predicate: _angular_core.InputSignal<boolean | undefined>;
56
- readonly type: _angular_core.InputSignal<"small" | "table" | "none" | "fixed" | "responsive" | "full">;
56
+ readonly type: _angular_core.InputSignal<"none" | "responsive" | "table" | "full" | "fixed" | "small">;
57
57
  readonly href: _angular_core.InputSignal<string | undefined>;
58
58
  readonly target: _angular_core.InputSignal<"_blank" | "_parent" | "_self" | "_top" | undefined>;
59
59
  readonly disabled: _angular_core.InputSignal<boolean>;
60
60
  readonly tooltip: _angular_core.InputSignal<string | undefined>;
61
- readonly tooltipPosition: _angular_core.InputSignal<"right" | "left" | "above" | "below" | undefined>;
61
+ readonly tooltipPosition: _angular_core.InputSignal<"left" | "right" | "above" | "below" | undefined>;
62
62
  constructor();
63
63
  doClick: () => void;
64
64
  getBackgroundColor: (color: Color) => string;
@@ -1259,7 +1259,7 @@ declare class ChrInputComponent implements ControlValueAccessor, OnInit {
1259
1259
  /**
1260
1260
  * Position of the tooltip relative to the input
1261
1261
  */
1262
- readonly tooltipPosition: _angular_core.InputSignal<"top" | "right" | "left" | "bottom">;
1262
+ readonly tooltipPosition: _angular_core.InputSignal<"left" | "right" | "top" | "bottom">;
1263
1263
  readonly required: _angular_core.ModelSignal<boolean>;
1264
1264
  readonly state: _angular_core.ModelSignal<"VALID" | "INVALID" | "PENDING" | "DISABLED" | "WARNING" | "IDLE">;
1265
1265
  readonly errors: _angular_core.InputSignal<ValidationErrors | null | undefined>;
@@ -1754,7 +1754,7 @@ declare class ButtonComponent {
1754
1754
  /**
1755
1755
  * The direction of the button.
1756
1756
  */
1757
- direction: _angular_core.InputSignal<"right" | "left">;
1757
+ direction: _angular_core.InputSignal<"left" | "right">;
1758
1758
  /**
1759
1759
  * Whether the button is rounded.
1760
1760
  */
@@ -1783,7 +1783,7 @@ declare class ChrButtonComponent implements OnInit {
1783
1783
  * Name of the Google Material Symbols icon
1784
1784
  */
1785
1785
  icon: _angular_core.InputSignal<string | undefined>;
1786
- iconSize: _angular_core.InputSignal<"small" | "inherit" | "medium" | "large">;
1786
+ iconSize: _angular_core.InputSignal<"inherit" | "small" | "medium" | "large">;
1787
1787
  /**
1788
1788
  * Button's color. It will affect both the text and the icon
1789
1789
  */
@@ -2212,6 +2212,37 @@ declare class ChrCellDefDirective {
2212
2212
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChrCellDefDirective, "[chrCellDef]", never, { "columnName": { "alias": "chrCellDef"; "required": false; "isSignal": true; }; "dataType": { "alias": "chrCellDefType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2213
2213
  }
2214
2214
 
2215
+ interface IDisplayableColumnMetadata extends IMinimumColumnMetadata {
2216
+ displayName: string;
2217
+ }
2218
+ declare class AutoDataTable extends BaseTable implements IDataTable {
2219
+ name: string;
2220
+ schema: string;
2221
+ total: number;
2222
+ description?: string | undefined;
2223
+ private _columnMetadatas;
2224
+ get columnMetadatas(): IMinimumColumnMetadata[];
2225
+ set columnMetadatas(value: IMinimumColumnMetadata[]);
2226
+ tableConstraints: IMinimumTableConstraint[];
2227
+ isReadOnly?: boolean | undefined;
2228
+ private _primaryKey;
2229
+ hasPrimaryKey: boolean;
2230
+ private _rows;
2231
+ get rows(): any[];
2232
+ set rows(value: any[]);
2233
+ count: number;
2234
+ rowNumberIdentity: string;
2235
+ constructor(name: string, primaryKey?: string | string[] | null, metadatas?: Partial<IDisplayableColumnMetadata>[], rowIdentifier?: string);
2236
+ getRowIdentifier: (row: any) => string;
2237
+ getRowNumber: (row: any) => number;
2238
+ primaryKeyColumns: () => IMinimumColumnMetadata[];
2239
+ private deduceColumnTypes;
2240
+ /**
2241
+ * Retourne une copie de l'AutoDataTable
2242
+ */
2243
+ clone: () => AutoDataTable;
2244
+ }
2245
+
2215
2246
  interface IDGAddedEntry {
2216
2247
  index: number;
2217
2248
  row: any;
@@ -2348,6 +2379,11 @@ declare class DataGrid implements OnInit, OnDestroy {
2348
2379
  totalItems: _angular_core.Signal<any>;
2349
2380
  currentItems: _angular_core.Signal<any>;
2350
2381
  constructor();
2382
+ data: _angular_core.InputSignal<any[] | null>;
2383
+ name: _angular_core.InputSignal<string | null>;
2384
+ primaryKey: _angular_core.InputSignal<string | null>;
2385
+ metadata: _angular_core.InputSignal<Partial<IDisplayableColumnMetadata>[] | undefined>;
2386
+ private autoDataSource;
2351
2387
  ngOnInit(): void;
2352
2388
  ngOnDestroy(): void;
2353
2389
  getColumnTooltip(column: IMinimumColumnMetadata): string;
@@ -2397,7 +2433,7 @@ declare class DataGrid implements OnInit, OnDestroy {
2397
2433
  onAdd: () => void;
2398
2434
  log: (event: any) => void;
2399
2435
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGrid, never>;
2400
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid, "chr-data-grid", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "table": { "alias": "table"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "enableVirtualization": { "alias": "enableVirtualization"; "required": false; "isSignal": true; }; "allowFiltering": { "alias": "allowFiltering"; "required": false; "isSignal": true; }; "allowGrouping": { "alias": "allowGrouping"; "required": false; "isSignal": true; }; "allowInsert": { "alias": "allowInsert"; "required": false; "isSignal": true; }; "allowUpdate": { "alias": "allowUpdate"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "allowSync": { "alias": "allowSync"; "required": false; "isSignal": true; }; "allowRefresh": { "alias": "allowRefresh"; "required": false; "isSignal": true; }; "allowNavigation": { "alias": "allowNavigation"; "required": false; "isSignal": true; }; "allowExport": { "alias": "allowExport"; "required": false; "isSignal": true; }; "allowManageTrackingPersistence": { "alias": "allowManageTrackingPersistence"; "required": false; "isSignal": true; }; "allowManageDistincValueFetching": { "alias": "allowManageDistincValueFetching"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "allowFetchDistinctValues": { "alias": "allowFetchDistinctValues"; "required": false; "isSignal": true; }; "crossRequestTrackingPersistence": { "alias": "crossRequestTrackingPersistence"; "required": false; "isSignal": true; }; "modifiedCells": { "alias": "modifiedCells"; "required": false; "isSignal": true; }; "modifiedRows": { "alias": "modifiedRows"; "required": false; "isSignal": true; }; "addedRows": { "alias": "addedRows"; "required": false; "isSignal": true; }; "deletedRows": { "alias": "deletedRows"; "required": false; "isSignal": true; }; "distinctValues": { "alias": "distinctValues"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "trackByMode": { "alias": "trackByMode"; "required": false; "isSignal": true; }; }, { "table": "tableChange"; "currentPage": "currentPageChange"; "pageSize": "pageSizeChange"; "onInit": "onInit"; "sort": "sortChange"; "filter": "filterChange"; "groupBy": "groupByChange"; "cellChange": "cellChange"; "rowClick": "rowClick"; "onExport": "onExport"; "onSync": "onSync"; "onRefresh": "onRefresh"; "onAddRow": "onAddRow"; "onDeleteRow": "onDeleteRow"; "onForeignTableNavigate": "onForeignTableNavigate"; "onNavigate": "onNavigate"; "onFilterValueChange": "onFilterValueChange"; "allowFetchDistinctValues": "allowFetchDistinctValuesChange"; "crossRequestTrackingPersistence": "crossRequestTrackingPersistenceChange"; "modifiedCells": "modifiedCellsChange"; "modifiedRows": "modifiedRowsChange"; "addedRows": "addedRowsChange"; "deletedRows": "deletedRowsChange"; "trackByMode": "trackByModeChange"; }, ["cellTemplates"], never, true, never>;
2436
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid, "chr-data-grid", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "table": { "alias": "table"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "enableVirtualization": { "alias": "enableVirtualization"; "required": false; "isSignal": true; }; "allowFiltering": { "alias": "allowFiltering"; "required": false; "isSignal": true; }; "allowGrouping": { "alias": "allowGrouping"; "required": false; "isSignal": true; }; "allowInsert": { "alias": "allowInsert"; "required": false; "isSignal": true; }; "allowUpdate": { "alias": "allowUpdate"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "allowSync": { "alias": "allowSync"; "required": false; "isSignal": true; }; "allowRefresh": { "alias": "allowRefresh"; "required": false; "isSignal": true; }; "allowNavigation": { "alias": "allowNavigation"; "required": false; "isSignal": true; }; "allowExport": { "alias": "allowExport"; "required": false; "isSignal": true; }; "allowManageTrackingPersistence": { "alias": "allowManageTrackingPersistence"; "required": false; "isSignal": true; }; "allowManageDistincValueFetching": { "alias": "allowManageDistincValueFetching"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "allowFetchDistinctValues": { "alias": "allowFetchDistinctValues"; "required": false; "isSignal": true; }; "crossRequestTrackingPersistence": { "alias": "crossRequestTrackingPersistence"; "required": false; "isSignal": true; }; "modifiedCells": { "alias": "modifiedCells"; "required": false; "isSignal": true; }; "modifiedRows": { "alias": "modifiedRows"; "required": false; "isSignal": true; }; "addedRows": { "alias": "addedRows"; "required": false; "isSignal": true; }; "deletedRows": { "alias": "deletedRows"; "required": false; "isSignal": true; }; "distinctValues": { "alias": "distinctValues"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "trackByMode": { "alias": "trackByMode"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "primaryKey": { "alias": "primaryKey"; "required": false; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": false; "isSignal": true; }; }, { "table": "tableChange"; "currentPage": "currentPageChange"; "pageSize": "pageSizeChange"; "onInit": "onInit"; "sort": "sortChange"; "filter": "filterChange"; "groupBy": "groupByChange"; "cellChange": "cellChange"; "rowClick": "rowClick"; "onExport": "onExport"; "onSync": "onSync"; "onRefresh": "onRefresh"; "onAddRow": "onAddRow"; "onDeleteRow": "onDeleteRow"; "onForeignTableNavigate": "onForeignTableNavigate"; "onNavigate": "onNavigate"; "onFilterValueChange": "onFilterValueChange"; "allowFetchDistinctValues": "allowFetchDistinctValuesChange"; "crossRequestTrackingPersistence": "crossRequestTrackingPersistenceChange"; "modifiedCells": "modifiedCellsChange"; "modifiedRows": "modifiedRowsChange"; "addedRows": "addedRowsChange"; "deletedRows": "deletedRowsChange"; "trackByMode": "trackByModeChange"; }, ["cellTemplates"], never, true, never>;
2401
2437
  }
2402
2438
 
2403
2439
  declare class EditableCell implements OnInit, OnDestroy {
@@ -2439,7 +2475,7 @@ declare class MessageBanner {
2439
2475
  title: _angular_core.InputSignal<string | null>;
2440
2476
  icon: _angular_core.InputSignal<string | null>;
2441
2477
  message: _angular_core.InputSignal<string | undefined>;
2442
- type: _angular_core.InputSignal<"none" | "error" | "info" | "warning">;
2478
+ type: _angular_core.InputSignal<"error" | "none" | "info" | "warning">;
2443
2479
  close: () => void;
2444
2480
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MessageBanner, never>;
2445
2481
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MessageBanner, "chr-message-banner", never, { "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -2510,7 +2546,7 @@ declare class DataListComponent implements OnInit, AfterViewInit, OnDestroy {
2510
2546
 
2511
2547
  declare class ChrHoverTitleComponent {
2512
2548
  title: _angular_core.InputSignal<string>;
2513
- position: _angular_core.InputSignal<"right" | "left" | "above" | "below">;
2549
+ position: _angular_core.InputSignal<"left" | "right" | "above" | "below">;
2514
2550
  originElement: _angular_core.InputSignal<HTMLElement | null>;
2515
2551
  color: _angular_core.Signal<string>;
2516
2552
  backgroundColor: _angular_core.Signal<string>;
@@ -2699,7 +2735,7 @@ declare class OutsideClickAwareDirective {
2699
2735
  declare class ChrHoverTitleDirective implements OnInit, OnDestroy {
2700
2736
  defaults: chrv_components.DebounceDefaults;
2701
2737
  chrTitle: _angular_core.ModelSignal<string | null | undefined>;
2702
- chrTitlePosition: _angular_core.InputSignal<"right" | "left" | "above" | "below">;
2738
+ chrTitlePosition: _angular_core.InputSignal<"left" | "right" | "above" | "below">;
2703
2739
  chrTitleSnap: _angular_core.InputSignal<boolean>;
2704
2740
  chrTitleDebounce: _angular_core.InputSignal<number>;
2705
2741
  private elementRef;
@@ -2764,7 +2800,7 @@ declare class ChrHoverDirective implements OnInit, OnDestroy {
2764
2800
  template: TemplateRef<any>;
2765
2801
  chrHoverContext: _angular_core.InputSignal<any>;
2766
2802
  chrHoverSnap: _angular_core.InputSignal<boolean>;
2767
- chrHoverPosition: _angular_core.InputSignal<"right" | "left" | "above" | "below">;
2803
+ chrHoverPosition: _angular_core.InputSignal<"left" | "right" | "above" | "below">;
2768
2804
  chrHoverCloseDelay: _angular_core.InputSignal<number>;
2769
2805
  private overlayRef;
2770
2806
  private portal?;
@@ -2791,7 +2827,7 @@ declare class ChrHoverDirective implements OnInit, OnDestroy {
2791
2827
  */
2792
2828
  declare class ChrPopoverDirective implements OnInit, AfterViewInit {
2793
2829
  readonly chrPopover: _angular_core.InputSignal<string | TemplateRef<any>>;
2794
- readonly chrPopoverPosition: _angular_core.InputSignal<"top" | "right" | "left" | "bottom" | "center">;
2830
+ readonly chrPopoverPosition: _angular_core.InputSignal<"left" | "right" | "top" | "bottom" | "center">;
2795
2831
  readonly chrPopoverData: _angular_core.InputSignal<any>;
2796
2832
  readonly chrPopoverOnHover: _angular_core.InputSignal<boolean>;
2797
2833
  readonly chrPopoverIsOpen: _angular_core.ModelSignal<boolean>;
@@ -3167,37 +3203,6 @@ declare class MinFileNameLengthValidator implements Validator {
3167
3203
  }
3168
3204
  declare function minFileNameLength(minLength: number): ValidatorFn;
3169
3205
 
3170
- interface IDisplayableColumnMetadata extends IMinimumColumnMetadata {
3171
- displayName: string;
3172
- }
3173
- declare class AutoDataTable extends BaseTable implements IDataTable {
3174
- name: string;
3175
- schema: string;
3176
- total: number;
3177
- description?: string | undefined;
3178
- private _columnMetadatas;
3179
- get columnMetadatas(): IMinimumColumnMetadata[];
3180
- set columnMetadatas(value: IMinimumColumnMetadata[]);
3181
- tableConstraints: IMinimumTableConstraint[];
3182
- isReadOnly?: boolean | undefined;
3183
- private _primaryKey;
3184
- hasPrimaryKey: boolean;
3185
- private _rows;
3186
- get rows(): any[];
3187
- set rows(value: any[]);
3188
- count: number;
3189
- rowNumberIdentity: string;
3190
- constructor(name: string, primaryKey?: string | string[] | null, metadatas?: Partial<IDisplayableColumnMetadata>[], rowIdentifier?: string);
3191
- getRowIdentifier: (row: any) => string;
3192
- getRowNumber: (row: any) => number;
3193
- primaryKeyColumns: () => IMinimumColumnMetadata[];
3194
- private deduceColumnTypes;
3195
- /**
3196
- * Retourne une copie de l'AutoDataTable
3197
- */
3198
- clone: () => AutoDataTable;
3199
- }
3200
-
3201
3206
  interface DataSourceConfig<T extends BaseTable = BaseTable> {
3202
3207
  initialData?: T;
3203
3208
  pageSize?: number;
Binary file