@colijnit/corecomponents_v12 262.1.4 → 262.1.6
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, NgZone, AfterViewInit, OnInit, EventEmitter, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, ChangeDetectorRef, ElementRef, ViewContainerRef, OnChanges, SimpleChanges, PipeTransform, TemplateRef, ModuleWithProviders, QueryList, Renderer2, ComponentFactory, AfterContentInit, StaticProvider, InjectionToken } from '@angular/core';
|
|
2
|
+
import { OnDestroy, NgZone, AfterViewInit, OnInit, EventEmitter, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, ChangeDetectorRef, ElementRef, ViewContainerRef, OnChanges, SimpleChanges, PipeTransform, TemplateRef, ModuleWithProviders, QueryList, Renderer2, ComponentFactory, AfterContentInit, DoCheck, IterableDiffers, StaticProvider, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i4$1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormControl, UntypedFormGroup, NgModel, ValidatorFn, AsyncValidatorFn, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
5
|
import { Subject, Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
@@ -1825,7 +1825,7 @@ declare class CalendarModule {
|
|
|
1825
1825
|
|
|
1826
1826
|
declare class InputDatePickerModule {
|
|
1827
1827
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDatePickerModule, never>;
|
|
1828
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InputDatePickerModule, [typeof InputDatePickerComponent], [typeof i2.CommonModule, typeof InputTextModule, typeof CalendarModule, typeof ClickoutsideModule, typeof OverlayModule, typeof i4$1.ReactiveFormsModule], [typeof InputDatePickerComponent]>;
|
|
1828
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputDatePickerModule, [typeof InputDatePickerComponent], [typeof i2.CommonModule, typeof InputTextModule, typeof CalendarModule, typeof ClickoutsideModule, typeof OverlayModule, typeof i4$1.ReactiveFormsModule, typeof i4$1.FormsModule], [typeof InputDatePickerComponent]>;
|
|
1829
1829
|
static ɵinj: i0.ɵɵInjectorDeclaration<InputDatePickerModule>;
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
@@ -2371,8 +2371,9 @@ interface ExportColumn {
|
|
|
2371
2371
|
width?: number;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
-
declare abstract class BaseSimpleGridComponent {
|
|
2374
|
+
declare abstract class BaseSimpleGridComponent implements DoCheck {
|
|
2375
2375
|
protected changeDetection: ChangeDetectorRef;
|
|
2376
|
+
protected differs: IterableDiffers;
|
|
2376
2377
|
readonly MIN_COLUMN_WIDTH: number;
|
|
2377
2378
|
readonly dataChanged: Subject<void>;
|
|
2378
2379
|
set content(columnComponents: QueryList<SimpleGridColumnDirective>);
|
|
@@ -2417,18 +2418,23 @@ declare abstract class BaseSimpleGridComponent {
|
|
|
2417
2418
|
protected _data: Object[];
|
|
2418
2419
|
protected _exportData: Object[];
|
|
2419
2420
|
protected disabledRows: number[];
|
|
2421
|
+
protected rowsWithAddedClasses: Map<number, string | string[]>;
|
|
2420
2422
|
private _columnForResize;
|
|
2421
|
-
private
|
|
2423
|
+
private _headersPrepared;
|
|
2422
2424
|
private _startMousePositionX;
|
|
2423
|
-
|
|
2425
|
+
private _currentDataJSON;
|
|
2426
|
+
constructor(changeDetection: ChangeDetectorRef, differs: IterableDiffers);
|
|
2427
|
+
ngDoCheck(): void;
|
|
2424
2428
|
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
2425
2429
|
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
2426
2430
|
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
2427
2431
|
isSingleColumnRow(row: Object): boolean;
|
|
2428
2432
|
singleColumnIndex(row: Object): number;
|
|
2433
|
+
protected dataHasChanged(): void;
|
|
2429
2434
|
protected prepareDataRow(row: any, index: number): Promise<void>;
|
|
2430
2435
|
private _setColumns;
|
|
2431
2436
|
private _prepareData;
|
|
2437
|
+
private _prepareDataRows;
|
|
2432
2438
|
private _resizeColumnsToFit;
|
|
2433
2439
|
private _setWidthOfAllColumns;
|
|
2434
2440
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSimpleGridComponent, never>;
|
|
@@ -2443,6 +2449,7 @@ declare enum ScrollDirection {
|
|
|
2443
2449
|
declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
2444
2450
|
icons: IconCacheService;
|
|
2445
2451
|
protected changeDetection: ChangeDetectorRef;
|
|
2452
|
+
protected differs: IterableDiffers;
|
|
2446
2453
|
private _formMaster;
|
|
2447
2454
|
readonly defaultTextAlign: ColumnAlign;
|
|
2448
2455
|
readonly scrollDirections: typeof ScrollDirection;
|
|
@@ -2456,6 +2463,7 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2456
2463
|
showGridSettings: boolean;
|
|
2457
2464
|
rowsPerPage: number;
|
|
2458
2465
|
rowDisabledFn: Function;
|
|
2466
|
+
rowConditionalClassFn: Function;
|
|
2459
2467
|
showColumnSort: boolean;
|
|
2460
2468
|
showRowButtons: boolean;
|
|
2461
2469
|
resetPageOnDataChange: boolean;
|
|
@@ -2483,10 +2491,12 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2483
2491
|
private _newRowReference;
|
|
2484
2492
|
protected readonly IconCacheService: typeof IconCacheService;
|
|
2485
2493
|
protected readonly CoreComponentsIcon: typeof CoreComponentsIcon;
|
|
2486
|
-
constructor(icons: IconCacheService, changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
2494
|
+
constructor(icons: IconCacheService, changeDetection: ChangeDetectorRef, differs: IterableDiffers, _formMaster: FormMasterService);
|
|
2487
2495
|
handleClickOutsideRow(): void;
|
|
2488
2496
|
getIsRowDisabled(idx: number): boolean;
|
|
2489
2497
|
isRowDisabled(row: any, index: number): Promise<boolean>;
|
|
2498
|
+
getRowConditionalClasses(idx: number): string | string[];
|
|
2499
|
+
doesRowHaveConditionalClasses(row: any, index: number): Promise<void>;
|
|
2490
2500
|
addNewRow(): Promise<void>;
|
|
2491
2501
|
validateAndSave(stopediting?: boolean): boolean;
|
|
2492
2502
|
cancelEditRow(): void;
|
|
@@ -2507,8 +2517,8 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2507
2517
|
goToNextPage(): void;
|
|
2508
2518
|
setCurrentPage(page: number): void;
|
|
2509
2519
|
get isNewRow(): boolean;
|
|
2510
|
-
private _filterSelectedOrReturnAll;
|
|
2511
2520
|
protected prepareDataRow(row: any, index: number): Promise<void>;
|
|
2521
|
+
private _filterSelectedOrReturnAll;
|
|
2512
2522
|
private _resetDblClick;
|
|
2513
2523
|
/**
|
|
2514
2524
|
*
|
|
@@ -2526,11 +2536,13 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2526
2536
|
private _resetEdit;
|
|
2527
2537
|
private _scrollAfterRowAction;
|
|
2528
2538
|
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleGridComponent, never>;
|
|
2529
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleGridComponent, "co-simple-grid", never, { "showAdd": { "alias": "showAdd"; "required": false; }; "showDelete": { "alias": "showDelete"; "required": false; }; "deselectAllowed": { "alias": "deselectAllowed"; "required": false; }; "editOnCellClick": { "alias": "editOnCellClick"; "required": false; }; "rightToolbar": { "alias": "rightToolbar"; "required": false; }; "showGridSettings": { "alias": "showGridSettings"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "rowDisabledFn": { "alias": "rowDisabledFn"; "required": false; }; "showColumnSort": { "alias": "showColumnSort"; "required": false; }; "showRowButtons": { "alias": "showRowButtons"; "required": false; }; "resetPageOnDataChange": { "alias": "resetPageOnDataChange"; "required": false; }; "scrollOnRowAction": { "alias": "scrollOnRowAction"; "required": false; }; "scrollDirection": { "alias": "scrollDirection"; "required": false; }; "canRowBeEdittedFn": { "alias": "canRowBeEdittedFn"; "required": false; }; }, {}, never, never, false, never>;
|
|
2539
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleGridComponent, "co-simple-grid", never, { "showAdd": { "alias": "showAdd"; "required": false; }; "showDelete": { "alias": "showDelete"; "required": false; }; "deselectAllowed": { "alias": "deselectAllowed"; "required": false; }; "editOnCellClick": { "alias": "editOnCellClick"; "required": false; }; "rightToolbar": { "alias": "rightToolbar"; "required": false; }; "showGridSettings": { "alias": "showGridSettings"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "rowDisabledFn": { "alias": "rowDisabledFn"; "required": false; }; "rowConditionalClassFn": { "alias": "rowConditionalClassFn"; "required": false; }; "showColumnSort": { "alias": "showColumnSort"; "required": false; }; "showRowButtons": { "alias": "showRowButtons"; "required": false; }; "resetPageOnDataChange": { "alias": "resetPageOnDataChange"; "required": false; }; "scrollOnRowAction": { "alias": "scrollOnRowAction"; "required": false; }; "scrollDirection": { "alias": "scrollDirection"; "required": false; }; "canRowBeEdittedFn": { "alias": "canRowBeEdittedFn"; "required": false; }; }, {}, never, never, false, never>;
|
|
2530
2540
|
}
|
|
2531
2541
|
|
|
2532
|
-
declare class SimpleGridCellComponent {
|
|
2542
|
+
declare class SimpleGridCellComponent implements OnInit {
|
|
2533
2543
|
private _changeDetector;
|
|
2544
|
+
private _injector;
|
|
2545
|
+
private _formComponent;
|
|
2534
2546
|
get editMode(): boolean;
|
|
2535
2547
|
set editMode(value: boolean);
|
|
2536
2548
|
readonly defaultTextAlign: ColumnAlign;
|
|
@@ -2539,6 +2551,7 @@ declare class SimpleGridCellComponent {
|
|
|
2539
2551
|
set noTemplateContent(template: any);
|
|
2540
2552
|
column: SimpleGridColumnDirective;
|
|
2541
2553
|
row: {};
|
|
2554
|
+
columnInjector: Injector;
|
|
2542
2555
|
private _editMode;
|
|
2543
2556
|
set fieldEditMode(value: boolean);
|
|
2544
2557
|
get fieldEditMode(): boolean;
|
|
@@ -2550,13 +2563,14 @@ declare class SimpleGridCellComponent {
|
|
|
2550
2563
|
private _editTemplate;
|
|
2551
2564
|
private _template;
|
|
2552
2565
|
private _inputTemplate;
|
|
2553
|
-
constructor(_changeDetector: ChangeDetectorRef);
|
|
2566
|
+
constructor(_changeDetector: ChangeDetectorRef, _injector: Injector, _formComponent: FormComponent);
|
|
2567
|
+
ngOnInit(): void;
|
|
2554
2568
|
private _setFocusComponent;
|
|
2555
2569
|
private _getFirstFormInput;
|
|
2556
2570
|
private _createNewEvent;
|
|
2557
2571
|
private _getElement;
|
|
2558
2572
|
private _detectChanges;
|
|
2559
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleGridCellComponent,
|
|
2573
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleGridCellComponent, [null, null, { optional: true; }]>;
|
|
2560
2574
|
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleGridCellComponent, "co-simple-grid-cell", never, { "editMode": { "alias": "editMode"; "required": false; }; "column": { "alias": "column"; "required": false; }; "row": { "alias": "row"; "required": false; }; "fieldEditMode": { "alias": "fieldEditMode"; "required": false; }; }, { "cellClick": "cellClick"; }, never, never, false, never>;
|
|
2561
2575
|
}
|
|
2562
2576
|
|