atr-components 3.1.10 → 3.1.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/README.md +24 -24
- package/assets/no-image-placeholder.png +0 -0
- package/fesm2022/atr-components.mjs +1320 -1060
- package/fesm2022/atr-components.mjs.map +1 -1
- package/index.d.ts +174 -109
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_animations from '@angular/animations';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injector, PipeTransform, TemplateRef, SimpleChange, EventEmitter, OnInit, Renderer2, ViewContainerRef, ElementRef, OnChanges, SimpleChanges, OnDestroy, AfterViewInit, ChangeDetectorRef
|
|
3
|
+
import { Injector, PipeTransform, TemplateRef, SimpleChange, EventEmitter, OnInit, Renderer2, ViewContainerRef, ElementRef, OnChanges, SimpleChanges, OnDestroy, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
4
4
|
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders, HttpClient } from '@angular/common/http';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import * as i1 from '@angular/common';
|
|
@@ -84,7 +84,7 @@ import * as i27$1 from '@angular/cdk/drag-drop';
|
|
|
84
84
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
85
85
|
import * as i34$1 from 'ng-zorro-antd/modal';
|
|
86
86
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
|
87
|
-
import { ColDef, GridApi,
|
|
87
|
+
import { GridOptions, ColDef, RowSelectionOptions, GridApi, GetRowIdParams, GridReadyEvent, SortChangedEvent, SelectionChangedEvent, CellValueChangedEvent, RowDragEndEvent, ICellRendererParams } from 'ag-grid-community';
|
|
88
88
|
import * as i36$1 from 'ag-grid-angular';
|
|
89
89
|
import { ICellRendererAngularComp } from 'ag-grid-angular';
|
|
90
90
|
import * as i20$1 from 'ng-zorro-antd/color-picker';
|
|
@@ -137,6 +137,9 @@ declare const atr_static_datas: {
|
|
|
137
137
|
* oss地址前缀
|
|
138
138
|
*/
|
|
139
139
|
OSS_URL: string;
|
|
140
|
+
isIso: boolean;
|
|
141
|
+
/** 图片加载失败时使用的静态资源地址;宿主可覆盖。 */
|
|
142
|
+
errImg: string;
|
|
140
143
|
/**
|
|
141
144
|
* 静态地址
|
|
142
145
|
*/
|
|
@@ -334,6 +337,7 @@ declare interface Table {
|
|
|
334
337
|
defaultVal?: any;
|
|
335
338
|
sortKey?: string;
|
|
336
339
|
cellRenderer?: any;
|
|
340
|
+
cellRendererParams?: any;
|
|
337
341
|
sortable?: boolean;
|
|
338
342
|
type: 'textcolor' | 'fixedText' | 'text' | 'link' | 'action' | 'image' | 'date' | 'dateTime' | 'sDateTime' | 'dict' | 'innerHtml' | 'image64' | 'tempRef';
|
|
339
343
|
dictCode?: string;
|
|
@@ -945,7 +949,7 @@ declare class AtrErrorImgDirective {
|
|
|
945
949
|
elementRef: ElementRef;
|
|
946
950
|
errorImagSrc: string;
|
|
947
951
|
constructor(elementRef: ElementRef);
|
|
948
|
-
ImageError(
|
|
952
|
+
ImageError(image: HTMLImageElement | null): void;
|
|
949
953
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtrErrorImgDirective, never>;
|
|
950
954
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AtrErrorImgDirective, "[atrErrorImg]", never, { "errorImagSrc": { "alias": "atrErrorImg"; "required": false; }; }, {}, never, never, true, never>;
|
|
951
955
|
}
|
|
@@ -1013,23 +1017,41 @@ declare class ImgCanvasComponent implements OnInit, AfterViewInit {
|
|
|
1013
1017
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImgCanvasComponent, "app-img", never, { "needTime": { "alias": "needTime"; "required": false; }; "url": { "alias": "url"; "required": false; }; "clipArr": { "alias": "clipArr"; "required": false; }; "rotateNum": { "alias": "rotateNum"; "required": false; }; "needContextmenu": { "alias": "needContextmenu"; "required": false; }; }, { "loadOver": "loadOver"; }, never, ["*"], false, never>;
|
|
1014
1018
|
}
|
|
1015
1019
|
|
|
1016
|
-
declare class TableFormItemComponent implements
|
|
1020
|
+
declare class TableFormItemComponent implements ControlValueAccessor {
|
|
1017
1021
|
header: AtrQueryHeader | any;
|
|
1018
|
-
value:
|
|
1019
|
-
dictList: any;
|
|
1022
|
+
value: any;
|
|
1023
|
+
dictList: any[] | null | undefined;
|
|
1020
1024
|
headerAction: EventEmitter<TableAction>;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1025
|
+
disabled: boolean;
|
|
1026
|
+
readonly modelOptions: {
|
|
1027
|
+
standalone: boolean;
|
|
1028
|
+
};
|
|
1029
|
+
onChangeListener: (value: any) => void;
|
|
1030
|
+
onTouchedListener: () => void;
|
|
1031
|
+
get options(): any[];
|
|
1032
|
+
get checkboxOptions(): {
|
|
1033
|
+
label: string;
|
|
1034
|
+
value: any;
|
|
1035
|
+
disabled?: boolean;
|
|
1036
|
+
}[];
|
|
1037
|
+
get isMultiple(): boolean;
|
|
1038
|
+
get hasValue(): boolean;
|
|
1039
|
+
get showTime(): boolean | {
|
|
1040
|
+
nzFormat: string;
|
|
1041
|
+
};
|
|
1042
|
+
get dateFormat(): string;
|
|
1043
|
+
private getTimeFormat;
|
|
1044
|
+
optionLabel(option: any): string;
|
|
1045
|
+
optionValue(option: any): any;
|
|
1046
|
+
writeValue(value: any): void;
|
|
1047
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
1048
|
+
registerOnTouched(fn: () => void): void;
|
|
1049
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1050
|
+
markTouched(): void;
|
|
1051
|
+
onChange(value?: any): void;
|
|
1052
|
+
clearValue(event?: Event): void;
|
|
1031
1053
|
selectChange(value: any, item: any): void;
|
|
1032
|
-
clickIcon(value: any, item: AtrQueryHeader,
|
|
1054
|
+
clickIcon(value: any, item: AtrQueryHeader, event: Event): void;
|
|
1033
1055
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableFormItemComponent, never>;
|
|
1034
1056
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableFormItemComponent, "app-table-form-item", never, { "header": { "alias": "header"; "required": false; }; "value": { "alias": "value"; "required": false; }; "dictList": { "alias": "dictList"; "required": false; }; }, { "headerAction": "headerAction"; }, never, never, false, never>;
|
|
1035
1057
|
}
|
|
@@ -1274,7 +1296,7 @@ declare class AtrFormComponent implements OnInit {
|
|
|
1274
1296
|
getFormValue(): any;
|
|
1275
1297
|
getFormVaild(): any;
|
|
1276
1298
|
showTime(item: any): any;
|
|
1277
|
-
defNumFormat: (value: number) => string;
|
|
1299
|
+
defNumFormat: (value: number | string | null | undefined) => string;
|
|
1278
1300
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtrFormComponent, never>;
|
|
1279
1301
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtrFormComponent, "atr-form", never, { "formOpts": { "alias": "formOpts"; "required": false; }; "viewTitle": { "alias": "viewTitle"; "required": false; }; "viewSize": { "alias": "viewSize"; "required": false; }; }, { "formAction": "formAction"; "uploadAction": "uploadAction"; }, never, ["*", "*"], false, never>;
|
|
1280
1302
|
}
|
|
@@ -1406,7 +1428,7 @@ declare class ViewFormComponent implements OnInit {
|
|
|
1406
1428
|
static ɵcmp: i0.ɵɵComponentDeclaration<ViewFormComponent, "atr-view-form", never, { "formOpts": { "alias": "formOpts"; "required": false; }; "atrForm": { "alias": "atrForm"; "required": false; }; "dicts": { "alias": "dicts"; "required": false; }; "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
|
1407
1429
|
}
|
|
1408
1430
|
|
|
1409
|
-
declare class EditorComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
1431
|
+
declare class EditorComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
1410
1432
|
private uploadOssService;
|
|
1411
1433
|
apiKey_editor: string;
|
|
1412
1434
|
value: any;
|
|
@@ -1416,7 +1438,9 @@ declare class EditorComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
1416
1438
|
onChangeListener: any;
|
|
1417
1439
|
onTouchedListener: any;
|
|
1418
1440
|
initialized: boolean;
|
|
1441
|
+
private defaultEditorConfig;
|
|
1419
1442
|
constructor(uploadOssService: UploadOssService);
|
|
1443
|
+
ngOnInit(): void;
|
|
1420
1444
|
ngAfterViewInit(): void;
|
|
1421
1445
|
uploadOss(blobInfo: any): Promise<string>;
|
|
1422
1446
|
writeValue(value: string): void;
|
|
@@ -1429,7 +1453,7 @@ declare class EditorComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
1429
1453
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "app-editor", never, { "value": { "alias": "value"; "required": false; }; "editorConfig": { "alias": "editorConfig"; "required": false; }; "imgDir": { "alias": "imgDir"; "required": false; }; }, {}, never, never, false, never>;
|
|
1430
1454
|
}
|
|
1431
1455
|
|
|
1432
|
-
declare class AtrGridTableComponent implements OnInit, AfterViewInit {
|
|
1456
|
+
declare class AtrGridTableComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
1433
1457
|
private fb;
|
|
1434
1458
|
private ossImgPipe;
|
|
1435
1459
|
private defaultValPipe;
|
|
@@ -1438,124 +1462,165 @@ declare class AtrGridTableComponent implements OnInit, AfterViewInit {
|
|
|
1438
1462
|
private injector;
|
|
1439
1463
|
private locale;
|
|
1440
1464
|
private cd;
|
|
1441
|
-
columnDefs: ColDef[];
|
|
1442
|
-
dictMap: any;
|
|
1443
|
-
rowSelection: any;
|
|
1444
|
-
gridApi: GridApi | null;
|
|
1445
|
-
viewInitOver: boolean;
|
|
1446
|
-
tableWidth: number;
|
|
1447
|
-
tableHeight: string;
|
|
1448
|
-
scrollX: number;
|
|
1449
|
-
id: number;
|
|
1450
|
-
scrollSize: any;
|
|
1451
|
-
isCollapse: boolean;
|
|
1452
|
-
atrForm: UntypedFormGroup | any;
|
|
1453
|
-
dicts: any;
|
|
1454
|
-
pageIndex: number;
|
|
1455
|
-
total: number;
|
|
1456
1465
|
pageSize: number;
|
|
1457
1466
|
pageSizeOptions: number[];
|
|
1458
1467
|
loading: boolean;
|
|
1459
1468
|
allowDrag: boolean;
|
|
1460
1469
|
showQueryTime: boolean;
|
|
1461
|
-
tableDatas: any;
|
|
1462
|
-
visibleTables: Table[];
|
|
1463
|
-
isAllDisplayDataChecked: boolean;
|
|
1464
|
-
isIndeterminate: boolean;
|
|
1465
|
-
numberOfChecked: number;
|
|
1466
|
-
mapOfCheckedId: {
|
|
1467
|
-
[key: string]: boolean;
|
|
1468
|
-
};
|
|
1469
|
-
curChecked: number;
|
|
1470
|
-
imagePrefix: string;
|
|
1471
|
-
defaultParams: {};
|
|
1472
1470
|
isHideTable: boolean;
|
|
1473
|
-
isAllLoad: boolean;
|
|
1474
|
-
sortMap: {
|
|
1475
|
-
[key: string]: any;
|
|
1476
|
-
};
|
|
1477
|
-
rowSpanMap: any;
|
|
1478
|
-
headerDefaultVal: any;
|
|
1479
1471
|
sortKey: string;
|
|
1480
1472
|
queryOpts: AtrQueyrOpt | any;
|
|
1481
1473
|
showPagination: boolean;
|
|
1482
1474
|
title: string;
|
|
1483
|
-
queryHeaders: null;
|
|
1475
|
+
queryHeaders: json | null;
|
|
1476
|
+
rowKey: string;
|
|
1477
|
+
gridOptions: GridOptions;
|
|
1484
1478
|
tableAction: EventEmitter<TableAction>;
|
|
1485
1479
|
queryBack: EventEmitter<TableAction>;
|
|
1486
1480
|
headerAction: EventEmitter<TableAction>;
|
|
1487
|
-
tableHeader
|
|
1488
|
-
tableContent: ElementRef
|
|
1481
|
+
tableHeader?: ElementRef<HTMLElement>;
|
|
1482
|
+
tableContent: ElementRef<HTMLElement>;
|
|
1483
|
+
columnDefs: ColDef[];
|
|
1484
|
+
defaultColDef: ColDef;
|
|
1485
|
+
resolvedGridOptions: GridOptions;
|
|
1486
|
+
cellSpanEnabled: boolean;
|
|
1487
|
+
rowSelection: RowSelectionOptions;
|
|
1488
|
+
gridApi: GridApi | null;
|
|
1489
|
+
dictMap: Record<string, Record<string, string>>;
|
|
1490
|
+
dicts: Record<string, any[]>;
|
|
1491
|
+
atrForm: UntypedFormGroup;
|
|
1492
|
+
searchHeaders: AtrQueryHeader[];
|
|
1493
|
+
headerDefaultVal: json;
|
|
1494
|
+
defaultParams: json;
|
|
1495
|
+
tableDatas: any[];
|
|
1496
|
+
visibleTables: Table[];
|
|
1497
|
+
sortMap: Record<string, 'asc' | 'desc' | null>;
|
|
1498
|
+
rowSpanMap: Record<string, Record<number, {
|
|
1499
|
+
num: number;
|
|
1500
|
+
}>>;
|
|
1501
|
+
mapOfCheckedId: Record<string, boolean>;
|
|
1502
|
+
numberOfChecked: number;
|
|
1503
|
+
isAllDisplayDataChecked: boolean;
|
|
1504
|
+
isIndeterminate: boolean;
|
|
1505
|
+
curChecked: number;
|
|
1506
|
+
pageIndex: number;
|
|
1507
|
+
total: number;
|
|
1508
|
+
isCollapse: boolean;
|
|
1509
|
+
isAllLoad: boolean;
|
|
1510
|
+
viewInitOver: boolean;
|
|
1511
|
+
tableWidth: number;
|
|
1512
|
+
tableHeight: string;
|
|
1513
|
+
queryTime: string;
|
|
1514
|
+
queryError: string;
|
|
1515
|
+
imagePrefix: string;
|
|
1516
|
+
scrollX: number;
|
|
1517
|
+
scrollSize: {
|
|
1518
|
+
x: string;
|
|
1519
|
+
y: string;
|
|
1520
|
+
};
|
|
1521
|
+
resizeDirection: NzResizeDirection | null;
|
|
1522
|
+
id: number;
|
|
1523
|
+
widthId: ReturnType<typeof setTimeout> | undefined;
|
|
1524
|
+
private initialized;
|
|
1525
|
+
private viewReady;
|
|
1526
|
+
private destroyed;
|
|
1527
|
+
private configRevision;
|
|
1528
|
+
private columnRevision;
|
|
1529
|
+
private requestRevision;
|
|
1530
|
+
private querySubscription?;
|
|
1531
|
+
private resizeObserver?;
|
|
1532
|
+
private readonly destroy$;
|
|
1533
|
+
private readonly pendingDictionaries;
|
|
1534
|
+
private readonly loadedDictionaries;
|
|
1535
|
+
private readonly fallbackRowIds;
|
|
1536
|
+
private nextRowId;
|
|
1537
|
+
private suppressSelectionEvents;
|
|
1538
|
+
private columnTables;
|
|
1489
1539
|
constructor(fb: UntypedFormBuilder, ossImgPipe: OssImgPipe, defaultValPipe: DefaultValPipe, datePipe: DatePipe, viewContainerRef: ViewContainerRef, injector: Injector, locale: string, cd: ChangeDetectorRef);
|
|
1540
|
+
get actions(): TableAction[];
|
|
1541
|
+
get tables(): Table[];
|
|
1542
|
+
get visibleHeaderCount(): number;
|
|
1543
|
+
get hasMoreHeaders(): boolean;
|
|
1544
|
+
isHeaderVisible(header: AtrQueryHeader, index: number): boolean;
|
|
1545
|
+
get enableCellSpan(): boolean;
|
|
1546
|
+
ngOnInit(): void;
|
|
1547
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1548
|
+
ngAfterViewInit(): void;
|
|
1549
|
+
private initializeGrid;
|
|
1550
|
+
private configureGrid;
|
|
1490
1551
|
initTableHeader(): Promise<void>;
|
|
1552
|
+
refreshColumns(): Promise<void>;
|
|
1553
|
+
transColumnDefs(tableItem: Table): Promise<ColDef>;
|
|
1554
|
+
createTemplateCellRenderer(template: TemplateRef<any>, tableItem: Table): any;
|
|
1491
1555
|
updateTableHeight(): void;
|
|
1492
|
-
|
|
1556
|
+
getRowId: (params: GetRowIdParams) => string;
|
|
1557
|
+
private getDataId;
|
|
1558
|
+
getRowStyle: NonNullable<GridOptions['getRowStyle']>;
|
|
1493
1559
|
onGridReady(event: GridReadyEvent): void;
|
|
1560
|
+
onSortChanged(event: SortChangedEvent): void;
|
|
1494
1561
|
onSelectionChanged(event: SelectionChangedEvent): void;
|
|
1562
|
+
private syncSelection;
|
|
1495
1563
|
getSelectedRows(): any[];
|
|
1496
|
-
transColumnDefs(tableItem: Table): Promise<ColDef>;
|
|
1497
|
-
createTemplateCellRenderer(template: TemplateRef<any>, tableItem: Table): {
|
|
1498
|
-
new (): {
|
|
1499
|
-
eGui: HTMLSpanElement;
|
|
1500
|
-
viewRef: EmbeddedViewRef<any> | null;
|
|
1501
|
-
init(params: ICellRendererParams): void;
|
|
1502
|
-
getGui(): HTMLElement;
|
|
1503
|
-
refresh(params: ICellRendererParams): boolean;
|
|
1504
|
-
destroy(): void;
|
|
1505
|
-
render(params: ICellRendererParams): void;
|
|
1506
|
-
};
|
|
1507
|
-
};
|
|
1508
|
-
getImageList(value: any, defaultVal: any): any;
|
|
1509
|
-
onResize({ width, height, direction }: NzResizeEvent, item: any): void;
|
|
1510
|
-
ngAfterViewInit(): void;
|
|
1511
|
-
ngOnInit(): void;
|
|
1512
|
-
isShowColor(data: any): any;
|
|
1513
|
-
dbclickData(data: any, rowNo: number): void;
|
|
1514
|
-
doActionByRow2(e: any): void;
|
|
1515
|
-
private get httpService();
|
|
1516
|
-
private get nzContextMenuService();
|
|
1517
|
-
widthId: any;
|
|
1518
|
-
resizeDirection: NzResizeDirection | null;
|
|
1519
|
-
setTableLoadding(loadding: boolean): void;
|
|
1520
|
-
isEnable(operator: string): boolean;
|
|
1521
|
-
isShowBtn(data: any, operator: string, action?: TableAction): boolean;
|
|
1522
|
-
checkIsShowBase(op: any, data: any): boolean;
|
|
1523
|
-
compare(value: any, operator: any, target: any): boolean;
|
|
1524
|
-
pushTableDatas(tableDatas: any): void;
|
|
1525
|
-
removeDatas(key: any, value: any): void;
|
|
1526
|
-
uploadAction(e: any, action: any): void;
|
|
1527
|
-
doAction(code: any): void;
|
|
1528
|
-
doActionByRow(data: any, code: any, event: MouseEvent): void;
|
|
1529
|
-
getAllCheckInfo(): any[];
|
|
1530
1564
|
getAllCheckDatas(): any[];
|
|
1565
|
+
getAllCheckInfo(): any[];
|
|
1531
1566
|
checkAll(value: boolean): void;
|
|
1532
1567
|
refreshStatus(): void;
|
|
1568
|
+
private isSelectable;
|
|
1533
1569
|
selectRow(data: any, rowNo: number): void;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1570
|
+
doAction(code: any): void;
|
|
1571
|
+
doActionByRow(data: any, code: any, event?: MouseEvent): void;
|
|
1572
|
+
doActionByRow2(e: any): void;
|
|
1573
|
+
dbclickData(data: any, rowNo: number): void;
|
|
1574
|
+
onCellValueChanged(event: CellValueChangedEvent): void;
|
|
1575
|
+
isShowColor(data: any): string;
|
|
1576
|
+
isShowBtn(data: any, operator?: string, action?: TableAction): boolean;
|
|
1577
|
+
checkIsShowBase(op: any, data: any): boolean;
|
|
1578
|
+
compare(value: any, operator: any, target: any): boolean;
|
|
1579
|
+
isEnable(operator?: string): boolean;
|
|
1580
|
+
initHeader(): Promise<void>;
|
|
1581
|
+
private loadDictionary;
|
|
1582
|
+
getDictValue(code: string): Promise<any[]>;
|
|
1583
|
+
getDicList(item: AtrQueryHeader): Promise<void>;
|
|
1584
|
+
setFormValue(key: string, value: any): void;
|
|
1541
1585
|
resetForm(): void;
|
|
1586
|
+
toggleCollapse(): void;
|
|
1542
1587
|
selectChange(value: any, item: any): void;
|
|
1543
|
-
clickIcon(value: any, item: AtrQueryHeader,
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1588
|
+
clickIcon(value: any, item: AtrQueryHeader, event: any): void;
|
|
1589
|
+
uploadAction(event: any, action: TableAction): void;
|
|
1590
|
+
getQueryParams(reset?: boolean): json;
|
|
1591
|
+
getHederType(key: string, typeKey?: string): any;
|
|
1592
|
+
setDefaultParams(params: json, reset?: boolean): void;
|
|
1547
1593
|
getSortInfo(): string;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1594
|
+
private parseSort;
|
|
1595
|
+
sort(sortName: string, value: any): void;
|
|
1596
|
+
PageSizeChange(size: number): void;
|
|
1597
|
+
PageIndexChange(page: number): void;
|
|
1598
|
+
private normalizePagination;
|
|
1599
|
+
setDates(response: any): void;
|
|
1600
|
+
private applyData;
|
|
1553
1601
|
query(reset?: boolean): void;
|
|
1554
|
-
|
|
1602
|
+
private handleQueryError;
|
|
1603
|
+
private cancelQuery;
|
|
1604
|
+
setTableLoadding(loading: boolean): void;
|
|
1605
|
+
pushTableDatas(rows: any[]): void;
|
|
1606
|
+
removeDatas(key: string, value: any): void;
|
|
1607
|
+
getImageList(value: any, defaultVal: any): string[];
|
|
1555
1608
|
refreshVisibleTables(): void;
|
|
1556
|
-
|
|
1609
|
+
setColumnVisible(key: string, visible: boolean): void;
|
|
1610
|
+
exportCsv(fileName?: string): void;
|
|
1611
|
+
getRowSpan(): void;
|
|
1612
|
+
checkShowTd(item: Table, index: number): boolean;
|
|
1613
|
+
canDragRows(): boolean;
|
|
1614
|
+
onRowDragEnd(event: RowDragEndEvent): void;
|
|
1615
|
+
drop(event: CdkDragDrop<any[]>): void;
|
|
1616
|
+
private reorderRows;
|
|
1617
|
+
onResize(event: NzResizeEvent, item: Table): void;
|
|
1618
|
+
contextMenu(event: any, menu: NzDropdownMenuComponent): void;
|
|
1619
|
+
private get httpService();
|
|
1620
|
+
private get dictService();
|
|
1621
|
+
ngOnDestroy(): void;
|
|
1557
1622
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtrGridTableComponent, never>;
|
|
1558
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtrGridTableComponent, "atr-grid-table", never, { "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "allowDrag": { "alias": "allowDrag"; "required": false; }; "showQueryTime": { "alias": "showQueryTime"; "required": false; }; "isHideTable": { "alias": "isHideTable"; "required": false; }; "sortKey": { "alias": "sortKey"; "required": false; }; "queryOpts": { "alias": "queryOpts"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "title": { "alias": "title"; "required": false; }; "queryHeaders": { "alias": "queryHeaders"; "required": false; }; }, { "tableAction": "tableAction"; "queryBack": "queryBack"; "headerAction": "headerAction"; }, never, ["[header-left-slot]", "[header-right-slot]", "[button-left-slot]", "[button-right-slot]"], false, never>;
|
|
1623
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtrGridTableComponent, "atr-grid-table", never, { "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "allowDrag": { "alias": "allowDrag"; "required": false; }; "showQueryTime": { "alias": "showQueryTime"; "required": false; }; "isHideTable": { "alias": "isHideTable"; "required": false; }; "sortKey": { "alias": "sortKey"; "required": false; }; "queryOpts": { "alias": "queryOpts"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "title": { "alias": "title"; "required": false; }; "queryHeaders": { "alias": "queryHeaders"; "required": false; }; "rowKey": { "alias": "rowKey"; "required": false; }; "gridOptions": { "alias": "gridOptions"; "required": false; }; }, { "tableAction": "tableAction"; "queryBack": "queryBack"; "headerAction": "headerAction"; }, never, ["[header-left-slot]", "[header-right-slot]", "[button-left-slot]", "[button-right-slot]"], false, never>;
|
|
1559
1624
|
}
|
|
1560
1625
|
|
|
1561
1626
|
interface BtnTdParams extends ICellRendererParams {
|