@cauca-911/datagrid 20.0.10 → 20.0.13
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/cauca-911-datagrid.mjs +219 -79
- package/fesm2022/cauca-911-datagrid.mjs.map +1 -1
- package/index.d.ts +73 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, OnInit, EventEmitter, AfterContentInit, OnChanges, QueryList, SimpleChanges, TemplateRef, ModelSignal, InputSignal, Provider, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import * as i7 from '@angular/material/table';
|
|
3
4
|
import { MatTable, MatColumnDef, MatCellDef, MatHeaderCellDef, MatFooterCellDef, MatHeaderRowDef, MatFooterRowDef, MatRowDef, MatNoDataRow, MatTableDataSource } from '@angular/material/table';
|
|
5
|
+
import * as i15 from '@angular/cdk/drag-drop';
|
|
4
6
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
|
+
import * as i8 from '@angular/material/paginator';
|
|
5
8
|
import { MatPaginator } from '@angular/material/paginator';
|
|
9
|
+
import * as i13 from '@angular/forms';
|
|
6
10
|
import { FormControl } from '@angular/forms';
|
|
7
11
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
12
|
+
import * as i9 from '@angular/material/sort';
|
|
8
13
|
import { MatSort } from '@angular/material/sort';
|
|
9
14
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
15
|
import { ODataDataSource, ODataFilter } from 'odata-data-source';
|
|
11
|
-
import
|
|
16
|
+
import * as i4 from '@cauca-911/core';
|
|
17
|
+
import { TranslateService as TranslateService$1, CaucaCoreService } from '@cauca-911/core';
|
|
12
18
|
import { HttpClient } from '@angular/common/http';
|
|
19
|
+
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
20
|
+
import * as i3 from '@angular/common';
|
|
21
|
+
import * as i5 from '@angular/material/form-field';
|
|
22
|
+
import * as i6 from '@angular/material/input';
|
|
23
|
+
import * as i10 from '@angular/material/icon';
|
|
24
|
+
import * as i11 from '@angular/material/button';
|
|
25
|
+
import * as i12 from '@angular/material/progress-spinner';
|
|
26
|
+
import * as i14 from '@angular/router';
|
|
27
|
+
import * as i16 from '@cauca-911/material';
|
|
28
|
+
import * as i17 from '@angular/material/menu';
|
|
29
|
+
import * as i18 from '@angular/cdk/overlay';
|
|
30
|
+
import * as i19 from '@angular/material/card';
|
|
31
|
+
import * as i20 from '@angular/material/checkbox';
|
|
32
|
+
import * as i21 from '@angular/material/tooltip';
|
|
13
33
|
|
|
14
34
|
declare class DataGridRowDropEvent {
|
|
15
35
|
item: unknown;
|
|
@@ -228,7 +248,7 @@ declare class OdataListingService<T = any> {
|
|
|
228
248
|
static ɵprov: i0.ɵɵInjectableDeclaration<OdataListingService<any>>;
|
|
229
249
|
}
|
|
230
250
|
|
|
231
|
-
declare class OdataGridComponent extends BaseDataGridComponent implements OnChanges, OnDestroy
|
|
251
|
+
declare class OdataGridComponent extends BaseDataGridComponent implements OnChanges, OnDestroy {
|
|
232
252
|
readonly listing: OdataListingService;
|
|
233
253
|
showTableHeader: i0.InputSignal<boolean>;
|
|
234
254
|
baseSort?: string[];
|
|
@@ -241,11 +261,9 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnChan
|
|
|
241
261
|
showRefreshButton: boolean;
|
|
242
262
|
rowDetailTemplate: TemplateRef<any>;
|
|
243
263
|
paginator: MatPaginator;
|
|
244
|
-
matSort: MatSort;
|
|
245
264
|
private readonly baseUrl;
|
|
246
|
-
constructor(translateService: TranslateService$1, preferenceService: PreferenceService, listing: OdataListingService);
|
|
265
|
+
constructor(translateService: TranslateService$1, preferenceService: PreferenceService, coreService: CaucaCoreService, listing: OdataListingService);
|
|
247
266
|
ngOnDestroy(): void;
|
|
248
|
-
ngAfterContentInit(): void;
|
|
249
267
|
refreshData(): void;
|
|
250
268
|
ngOnChanges(changes: SimpleChanges): void;
|
|
251
269
|
getData(): unknown[];
|
|
@@ -259,7 +277,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnChan
|
|
|
259
277
|
protected onColumnsChanged(columns: string[]): void;
|
|
260
278
|
protected showColumnsWhenTableOptionsIsFalse(): void;
|
|
261
279
|
static ɵfac: i0.ɵɵFactoryDeclaration<OdataGridComponent, never>;
|
|
262
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OdataGridComponent, "cauca-odata-grid", never, { "showTableHeader": { "alias": "showTableHeader"; "required": false; "isSignal": true; }; "baseSort": { "alias": "baseSort"; "required": false; }; "filterPredicate": { "alias": "filterPredicate"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "selectedRowId": { "alias": "selectedRowId"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; }, { "itemClick": "itemClick"; "refreshRequested": "refreshRequested"; }, ["rowDetailTemplate"], ["[filterRow]", "[customHeader]", "[customFilter]", "*"],
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OdataGridComponent, "cauca-odata-grid", never, { "showTableHeader": { "alias": "showTableHeader"; "required": false; "isSignal": true; }; "baseSort": { "alias": "baseSort"; "required": false; }; "filterPredicate": { "alias": "filterPredicate"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "selectedRowId": { "alias": "selectedRowId"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; }, { "itemClick": "itemClick"; "refreshRequested": "refreshRequested"; }, ["rowDetailTemplate"], ["[filterRow]", "[customHeader]", "[customFilter]", "*"], false, never>;
|
|
263
281
|
}
|
|
264
282
|
|
|
265
283
|
declare class ColorDataGridColumnComponent extends BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
@@ -398,4 +416,52 @@ declare class TranslationGridColumnComponent extends BaseGridColumnComponent imp
|
|
|
398
416
|
|
|
399
417
|
declare function provideCaucaGrid(): (Provider | EnvironmentProviders);
|
|
400
418
|
|
|
401
|
-
|
|
419
|
+
declare class ButtonPopoverComponent {
|
|
420
|
+
buttonLabel: i0.InputSignal<string>;
|
|
421
|
+
buttonIcon: i0.InputSignal<string>;
|
|
422
|
+
color: i0.InputSignal<string>;
|
|
423
|
+
isActive: i0.WritableSignal<boolean>;
|
|
424
|
+
toggle(): void;
|
|
425
|
+
close(): void;
|
|
426
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonPopoverComponent, never>;
|
|
427
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPopoverComponent, "cauca-button-popover", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare class DataGridTableOptionsComponent implements OnInit {
|
|
431
|
+
private readonly preferenceService;
|
|
432
|
+
gridName: string;
|
|
433
|
+
showColumnViewer: boolean;
|
|
434
|
+
densityChanged: EventEmitter<Density>;
|
|
435
|
+
allColumns: QueryList<BaseGridColumnComponent>;
|
|
436
|
+
columnsChanged: EventEmitter<string[]>;
|
|
437
|
+
columnViewer: ButtonPopoverComponent;
|
|
438
|
+
columnsSearch: string;
|
|
439
|
+
get density(): typeof Density;
|
|
440
|
+
get columns(): BaseGridColumnComponent[];
|
|
441
|
+
get currentDensityIcon(): string;
|
|
442
|
+
constructor(preferenceService: PreferenceService);
|
|
443
|
+
ngOnInit(): void;
|
|
444
|
+
closeColumnViewer(): void;
|
|
445
|
+
changeDensity(newDensity: Density): void;
|
|
446
|
+
onColumnsChanged(): void;
|
|
447
|
+
resetColumns(): void;
|
|
448
|
+
private selectOnlyUserColumns;
|
|
449
|
+
private selectAllColumns;
|
|
450
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridTableOptionsComponent, never>;
|
|
451
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridTableOptionsComponent, "cauca-data-grid-table-options", never, { "gridName": { "alias": "gridName"; "required": true; }; "showColumnViewer": { "alias": "showColumnViewer"; "required": false; }; "allColumns": { "alias": "allColumns"; "required": false; }; }, { "densityChanged": "densityChanged"; "columnsChanged": "columnsChanged"; }, never, ["[customFilter]"], true, never>;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
declare class DataGridProgressSpinerComponent {
|
|
455
|
+
isLoading: i0.InputSignal<boolean>;
|
|
456
|
+
useBackground: i0.InputSignal<boolean>;
|
|
457
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridProgressSpinerComponent, never>;
|
|
458
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridProgressSpinerComponent, "cauca-data-grid-progress-spiner", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "useBackground": { "alias": "useBackground"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare class ODataGridModule {
|
|
462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODataGridModule, never>;
|
|
463
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ODataGridModule, [typeof OdataGridComponent], [typeof i2.FontAwesomeModule, typeof i3.CommonModule, typeof i4.CaucaCoreForChildModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.MatTableModule, typeof i8.MatPaginatorModule, typeof i9.MatSortModule, typeof i10.MatIconModule, typeof i11.MatButtonModule, typeof i12.MatProgressSpinnerModule, typeof i13.ReactiveFormsModule, typeof i14.RouterModule, typeof i15.DragDropModule, typeof i16.IconComponent, typeof i17.MatMenuModule, typeof i18.OverlayModule, typeof i19.MatCardModule, typeof i20.MatCheckboxModule, typeof i13.FormsModule, typeof i21.MatTooltipModule, typeof i16.BasicButtonComponent, typeof i16.IconButtonComponent, typeof i16.StrokedButtonComponent, typeof i16.RaisedButtonComponent, typeof i16.MenuItemComponent, typeof DataGridHeaderComponent, typeof DataGridTableOptionsComponent, typeof DataGridProgressSpinerComponent], [typeof OdataGridComponent]>;
|
|
464
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ODataGridModule>;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export { BaseGridColumnComponent, ColorDataGridColumnComponent, DataGridCheckColumnComponent, DataGridColumnComponent, DataGridCommandIconColumnComponent, DataGridCommandsColumnComponent, DataGridComponent, DataGridIconColumnComponent, DataGridMenuColumnComponent, DateGridColumnComponent, ODataGridModule, OdataGridComponent, SortableDataGridCheckColumnComponent, SortableDataGridColumnComponent, TranslationGridColumnComponent, provideCaucaGrid };
|