@cauca-911/datagrid 20.0.12 → 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 +216 -83
- package/fesm2022/cauca-911-datagrid.mjs.map +1 -1
- package/index.d.ts +72 -12
- 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;
|
|
@@ -241,16 +261,8 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnChan
|
|
|
241
261
|
showRefreshButton: boolean;
|
|
242
262
|
rowDetailTemplate: TemplateRef<any>;
|
|
243
263
|
paginator: MatPaginator;
|
|
244
|
-
columnsRegular: i0.Signal<readonly BaseGridColumnComponent[]>;
|
|
245
|
-
defsColumn: i0.Signal<readonly MatColumnDef[]>;
|
|
246
|
-
defsHeaderRow: i0.Signal<MatHeaderRowDef>;
|
|
247
|
-
defRowFooter: i0.Signal<MatFooterRowDef>;
|
|
248
|
-
defsRow: i0.Signal<readonly MatRowDef<any>[]>;
|
|
249
|
-
dataRowNo: i0.Signal<MatNoDataRow>;
|
|
250
|
-
paginatorrr: i0.Signal<MatPaginator>;
|
|
251
|
-
ready: i0.Signal<MatPaginator>;
|
|
252
264
|
private readonly baseUrl;
|
|
253
|
-
constructor(translateService: TranslateService$1, preferenceService: PreferenceService, listing: OdataListingService);
|
|
265
|
+
constructor(translateService: TranslateService$1, preferenceService: PreferenceService, coreService: CaucaCoreService, listing: OdataListingService);
|
|
254
266
|
ngOnDestroy(): void;
|
|
255
267
|
refreshData(): void;
|
|
256
268
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -265,7 +277,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnChan
|
|
|
265
277
|
protected onColumnsChanged(columns: string[]): void;
|
|
266
278
|
protected showColumnsWhenTableOptionsIsFalse(): void;
|
|
267
279
|
static ɵfac: i0.ɵɵFactoryDeclaration<OdataGridComponent, never>;
|
|
268
|
-
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"; }, ["
|
|
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>;
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
declare class ColorDataGridColumnComponent extends BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
@@ -404,4 +416,52 @@ declare class TranslationGridColumnComponent extends BaseGridColumnComponent imp
|
|
|
404
416
|
|
|
405
417
|
declare function provideCaucaGrid(): (Provider | EnvironmentProviders);
|
|
406
418
|
|
|
407
|
-
|
|
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 };
|