@delon/abc 19.2.0 → 20.0.0-beta.0
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/auto-focus/index.d.ts +19 -2
- package/cell/index.d.ts +316 -6
- package/count-down/index.d.ts +26 -5
- package/date-picker/index.d.ts +51 -5
- package/down-file/index.d.ts +34 -5
- package/ellipsis/index.d.ts +55 -5
- package/error-collect/index.d.ts +35 -5
- package/exception/index.d.ts +45 -5
- package/fesm2022/auto-focus.mjs +7 -7
- package/fesm2022/cell.mjs +14 -15
- package/fesm2022/cell.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +11 -11
- package/fesm2022/count-down.mjs +8 -9
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +16 -15
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +8 -8
- package/fesm2022/ellipsis.mjs +9 -9
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +15 -15
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +94 -78
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +44 -22
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +25 -38
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +79 -60
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +8 -8
- package/fesm2022/loading.mjs +12 -12
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +12 -11
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +12 -13
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +19 -29
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +14 -14
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +22 -27
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +13 -13
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/quick-menu.mjs +9 -9
- package/fesm2022/quick-menu.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +32 -38
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +20 -21
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +17 -18
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +73 -84
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +23 -25
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +13 -29
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +16 -15
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +8 -7
- package/fesm2022/zip.mjs.map +1 -1
- package/footer-toolbar/index.d.ts +23 -5
- package/full-content/index.d.ts +55 -5
- package/global-footer/index.d.ts +44 -5
- package/hotkey/index.d.ts +25 -5
- package/index.d.ts +2 -5
- package/index.less +0 -2
- package/loading/index.d.ts +93 -5
- package/lodop/index.d.ts +277 -5
- package/media/index.d.ts +61 -5
- package/notice-icon/index.d.ts +90 -5
- package/observers/index.d.ts +34 -5
- package/onboarding/index.d.ts +212 -5
- package/package.json +5 -13
- package/page-header/index.d.ts +83 -5
- package/pdf/index.d.ts +142 -5
- package/quick-menu/index.d.ts +38 -5
- package/reuse-tab/index.d.ts +512 -3
- package/se/index.d.ts +129 -5
- package/sg/index.d.ts +44 -5
- package/st/index.d.ts +1708 -3
- package/sv/index.d.ts +96 -5
- package/tag-select/index.d.ts +27 -5
- package/theme-dark.less +0 -4
- package/theme-default.less +0 -8
- package/xlsx/index.d.ts +71 -5
- package/zip/index.d.ts +65 -5
- package/auto-focus/auto-focus.directive.d.ts +0 -10
- package/auto-focus/auto-focus.module.d.ts +0 -7
- package/avatar-list/avatar-list-item.component.d.ts +0 -9
- package/avatar-list/avatar-list.component.d.ts +0 -29
- package/avatar-list/avatar-list.module.d.ts +0 -14
- package/avatar-list/index.d.ts +0 -5
- package/avatar-list/public_api.d.ts +0 -3
- package/avatar-list/style/index.less +0 -53
- package/avatar-list/style/rtl.less +0 -3
- package/cell/cell-host.directive.d.ts +0 -10
- package/cell/cell.component.d.ts +0 -30
- package/cell/cell.module.d.ts +0 -17
- package/cell/cell.service.d.ts +0 -19
- package/cell/cell.types.d.ts +0 -234
- package/cell/provide.d.ts +0 -10
- package/count-down/count-down.component.d.ts +0 -15
- package/count-down/count-down.module.d.ts +0 -9
- package/count-down/public_api.d.ts +0 -2
- package/date-picker/date-picker.module.d.ts +0 -11
- package/date-picker/public_api.d.ts +0 -3
- package/date-picker/range-shortcut.component.d.ts +0 -10
- package/date-picker/range.directive.d.ts +0 -30
- package/down-file/down-file.directive.d.ts +0 -23
- package/down-file/down-file.module.d.ts +0 -9
- package/down-file/public_api.d.ts +0 -2
- package/ellipsis/ellipsis.component.d.ts +0 -43
- package/ellipsis/ellipsis.module.d.ts +0 -10
- package/ellipsis/public_api.d.ts +0 -2
- package/error-collect/error-collect.component.d.ts +0 -23
- package/error-collect/error-collect.module.d.ts +0 -9
- package/error-collect/public_api.d.ts +0 -2
- package/exception/exception.component.d.ts +0 -36
- package/exception/exception.module.d.ts +0 -12
- package/exception/public_api.d.ts +0 -2
- package/fesm2022/avatar-list.mjs +0 -132
- package/fesm2022/avatar-list.mjs.map +0 -1
- package/fesm2022/result.mjs +0 -84
- package/fesm2022/result.mjs.map +0 -1
- package/footer-toolbar/footer-toolbar.component.d.ts +0 -14
- package/footer-toolbar/footer-toolbar.module.d.ts +0 -10
- package/footer-toolbar/public_api.d.ts +0 -2
- package/full-content/full-content-toggle.directive.d.ts +0 -7
- package/full-content/full-content.component.d.ts +0 -32
- package/full-content/full-content.module.d.ts +0 -9
- package/full-content/full-content.service.d.ts +0 -10
- package/full-content/public_api.d.ts +0 -4
- package/global-footer/global-footer-item.component.d.ts +0 -10
- package/global-footer/global-footer.component.d.ts +0 -22
- package/global-footer/global-footer.module.d.ts +0 -10
- package/global-footer/global-footer.types.d.ts +0 -7
- package/global-footer/public_api.d.ts +0 -4
- package/hotkey/hotkey.directive.d.ts +0 -16
- package/hotkey/hotkey.module.d.ts +0 -7
- package/hotkey/public_api.d.ts +0 -2
- package/loading/loading.component.d.ts +0 -11
- package/loading/loading.module.d.ts +0 -12
- package/loading/loading.service.d.ts +0 -34
- package/loading/loading.types.d.ts +0 -35
- package/loading/public_api.d.ts +0 -4
- package/lodop/lodop.module.d.ts +0 -6
- package/lodop/lodop.service.d.ts +0 -74
- package/lodop/lodop.types.d.ts +0 -193
- package/lodop/public_api.d.ts +0 -3
- package/media/media.component.d.ts +0 -33
- package/media/media.module.d.ts +0 -8
- package/media/media.service.d.ts +0 -17
- package/media/public_api.d.ts +0 -3
- package/notice-icon/notice-icon-tab.component.d.ts +0 -13
- package/notice-icon/notice-icon.component.d.ts +0 -25
- package/notice-icon/notice-icon.module.d.ts +0 -18
- package/notice-icon/notice-icon.types.d.ts +0 -36
- package/notice-icon/public_api.d.ts +0 -4
- package/observers/observer-size.d.ts +0 -31
- package/observers/public-api.d.ts +0 -1
- package/onboarding/onboarding.component.d.ts +0 -35
- package/onboarding/onboarding.module.d.ts +0 -13
- package/onboarding/onboarding.service.d.ts +0 -58
- package/onboarding/onboarding.storage.d.ts +0 -11
- package/onboarding/onboarding.types.d.ts +0 -95
- package/onboarding/public_api.d.ts +0 -5
- package/page-header/page-header.component.d.ts +0 -70
- package/page-header/page-header.module.d.ts +0 -14
- package/page-header/public_api.d.ts +0 -2
- package/pdf/pdf.component.d.ts +0 -101
- package/pdf/pdf.config.d.ts +0 -2
- package/pdf/pdf.module.d.ts +0 -9
- package/pdf/pdf.types.d.ts +0 -29
- package/pdf/public_api.d.ts +0 -4
- package/public_api.d.ts +0 -2
- package/quick-menu/public_api.d.ts +0 -2
- package/quick-menu/quick-menu.component.d.ts +0 -26
- package/quick-menu/quick-menu.module.d.ts +0 -10
- package/result/index.d.ts +0 -5
- package/result/public_api.d.ts +0 -2
- package/result/result.component.d.ts +0 -21
- package/result/result.module.d.ts +0 -13
- package/result/style/index.less +0 -66
- package/result/style/rtl.less +0 -3
- package/reuse-tab/lifecycle_hooks.d.ts +0 -16
- package/reuse-tab/provide.d.ts +0 -28
- package/reuse-tab/public_api.d.ts +0 -14
- package/reuse-tab/reuse-tab-context-menu.component.d.ts +0 -21
- package/reuse-tab/reuse-tab-context.component.d.ts +0 -11
- package/reuse-tab/reuse-tab-context.directive.d.ts +0 -10
- package/reuse-tab/reuse-tab-context.service.d.ts +0 -14
- package/reuse-tab/reuse-tab.cache.d.ts +0 -16
- package/reuse-tab/reuse-tab.component.d.ts +0 -79
- package/reuse-tab/reuse-tab.interfaces.d.ts +0 -110
- package/reuse-tab/reuse-tab.module.d.ts +0 -17
- package/reuse-tab/reuse-tab.service.d.ts +0 -192
- package/reuse-tab/reuse-tab.state.d.ts +0 -14
- package/reuse-tab/reuse-tab.strategy.d.ts +0 -10
- package/se/public_api.d.ts +0 -4
- package/se/se-container.component.d.ts +0 -49
- package/se/se.component.d.ts +0 -60
- package/se/se.module.d.ts +0 -12
- package/se/se.types.d.ts +0 -9
- package/sg/public_api.d.ts +0 -3
- package/sg/sg-container.component.d.ts +0 -15
- package/sg/sg.component.d.ts +0 -19
- package/sg/sg.module.d.ts +0 -9
- package/st/provide.d.ts +0 -10
- package/st/public_api.d.ts +0 -12
- package/st/st-column-source.d.ts +0 -47
- package/st/st-data-source.d.ts +0 -77
- package/st/st-export.d.ts +0 -11
- package/st/st-filter.component.d.ts +0 -23
- package/st/st-row.directive.d.ts +0 -20
- package/st/st-widget-host.directive.d.ts +0 -12
- package/st/st-widget.d.ts +0 -11
- package/st/st.component.d.ts +0 -295
- package/st/st.config.d.ts +0 -2
- package/st/st.interfaces.d.ts +0 -1201
- package/st/st.module.d.ts +0 -9
- package/st/st.types.d.ts +0 -77
- package/sv/public_api.d.ts +0 -4
- package/sv/sv-container.component.d.ts +0 -39
- package/sv/sv-value.component.d.ts +0 -10
- package/sv/sv.component.d.ts +0 -34
- package/sv/sv.module.d.ts +0 -14
- package/tag-select/public_api.d.ts +0 -2
- package/tag-select/tag-select.component.d.ts +0 -21
- package/tag-select/tag-select.module.d.ts +0 -10
- package/xlsx/public_api.d.ts +0 -4
- package/xlsx/xlsx.directive.d.ts +0 -9
- package/xlsx/xlsx.module.d.ts +0 -7
- package/xlsx/xlsx.service.d.ts +0 -27
- package/xlsx/xlsx.types.d.ts +0 -27
- package/zip/public_api.d.ts +0 -2
- package/zip/zip.service.d.ts +0 -34
- package/zip/zip.types.d.ts +0 -28
package/st/st-column-source.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
2
|
-
import { ACLService } from '@delon/acl';
|
|
3
|
-
import { AlainI18NService } from '@delon/theme';
|
|
4
|
-
import { AlainSTConfig } from '@delon/util/config';
|
|
5
|
-
import { STRowSource } from './st-row.directive';
|
|
6
|
-
import { STWidgetRegistry } from './st-widget';
|
|
7
|
-
import { STColumn, STColumnFilter, STColumnSafeType, STResizable, STWidthMode } from './st.interfaces';
|
|
8
|
-
import { _STColumn, _STHeader } from './st.types';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export interface STColumnSourceProcessOptions {
|
|
11
|
-
widthMode: STWidthMode;
|
|
12
|
-
resizable?: STResizable;
|
|
13
|
-
safeType: STColumnSafeType;
|
|
14
|
-
expand: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class STColumnSource {
|
|
17
|
-
private dom;
|
|
18
|
-
private rowSource;
|
|
19
|
-
private acl;
|
|
20
|
-
private i18nSrv;
|
|
21
|
-
private stWidgetRegistry;
|
|
22
|
-
private cog;
|
|
23
|
-
constructor(dom: DomSanitizer, rowSource: STRowSource, acl: ACLService, i18nSrv: AlainI18NService, stWidgetRegistry: STWidgetRegistry);
|
|
24
|
-
setCog(val: AlainSTConfig): void;
|
|
25
|
-
private fixPop;
|
|
26
|
-
private btnCoerce;
|
|
27
|
-
private btnCoerceIf;
|
|
28
|
-
private fixedCoerce;
|
|
29
|
-
private sortCoerce;
|
|
30
|
-
private fixSortCoerce;
|
|
31
|
-
private filterCoerce;
|
|
32
|
-
private restoreRender;
|
|
33
|
-
private widgetCoerce;
|
|
34
|
-
private genHeaders;
|
|
35
|
-
private cleanCond;
|
|
36
|
-
private mergeClass;
|
|
37
|
-
process(list: STColumn[], options: STColumnSourceProcessOptions): {
|
|
38
|
-
columns: _STColumn[];
|
|
39
|
-
headers: _STHeader[][];
|
|
40
|
-
headerWidths: string[] | null;
|
|
41
|
-
};
|
|
42
|
-
restoreAllRender(columns: _STColumn[]): void;
|
|
43
|
-
updateDefault(filter: STColumnFilter): this;
|
|
44
|
-
cleanFilter(col: _STColumn): this;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STColumnSource, [null, { host: true; }, { optional: true; }, { optional: true; }, null]>;
|
|
46
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<STColumnSource>;
|
|
47
|
-
}
|
package/st/st-data-source.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { DecimalPipe } from '@angular/common';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DatePipe, YNPipe, _HttpClient } from '@delon/theme';
|
|
5
|
-
import type { AlainSTConfig } from '@delon/util/config';
|
|
6
|
-
import { CurrencyService } from '@delon/util/format';
|
|
7
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
8
|
-
import type { STColumn, STCustomRequestOptions, STData, STMultiSort, STMultiSortResultType, STOnCellResult, STPage, STReq, STRes, STRowClassName, STSingleSort, STStatisticalResults } from './st.interfaces';
|
|
9
|
-
import type { _STColumn, _STHeader } from './st.types';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export interface STDataSourceOptions {
|
|
12
|
-
pi: number;
|
|
13
|
-
ps: number;
|
|
14
|
-
paginator: boolean;
|
|
15
|
-
data?: string | STData[] | Observable<STData[]>;
|
|
16
|
-
total: number;
|
|
17
|
-
req: STReq;
|
|
18
|
-
res: STRes;
|
|
19
|
-
page: STPage;
|
|
20
|
-
columns: _STColumn[];
|
|
21
|
-
headers: _STHeader[][];
|
|
22
|
-
singleSort?: STSingleSort | null;
|
|
23
|
-
multiSort?: STMultiSort;
|
|
24
|
-
rowClassName?: STRowClassName | null;
|
|
25
|
-
customRequest?: (options: STCustomRequestOptions) => Observable<NzSafeAny>;
|
|
26
|
-
}
|
|
27
|
-
export interface STDataSourceResult {
|
|
28
|
-
/** 是否需要显示分页器 */
|
|
29
|
-
pageShow: boolean;
|
|
30
|
-
/** 新 `pi`,若返回 `undefined` 表示用户受控 */
|
|
31
|
-
pi: number;
|
|
32
|
-
/** 新 `ps`,若返回 `undefined` 表示用户受控 */
|
|
33
|
-
ps: number;
|
|
34
|
-
/** 新 `total`,若返回 `undefined` 表示用户受控 */
|
|
35
|
-
total: number;
|
|
36
|
-
/** 数据 */
|
|
37
|
-
list: STData[];
|
|
38
|
-
/** 统计数据 */
|
|
39
|
-
statistical: STStatisticalResults;
|
|
40
|
-
}
|
|
41
|
-
export declare class STDataSource {
|
|
42
|
-
private http;
|
|
43
|
-
private datePipe;
|
|
44
|
-
private ynPipe;
|
|
45
|
-
private numberPipe;
|
|
46
|
-
private currencySrv;
|
|
47
|
-
private dom;
|
|
48
|
-
private cog;
|
|
49
|
-
private sortTick;
|
|
50
|
-
constructor(http: _HttpClient, datePipe: DatePipe, ynPipe: YNPipe, numberPipe: DecimalPipe, currencySrv: CurrencyService, dom: DomSanitizer);
|
|
51
|
-
setCog(val: AlainSTConfig): void;
|
|
52
|
-
process(options: STDataSourceOptions): Observable<STDataSourceResult>;
|
|
53
|
-
private get;
|
|
54
|
-
private getByRemote;
|
|
55
|
-
getCell(c: STColumn, item: STData, idx: number): STOnCellResult;
|
|
56
|
-
optimizeData(options: {
|
|
57
|
-
columns: _STColumn[];
|
|
58
|
-
result: STData[];
|
|
59
|
-
rowClassName?: STRowClassName | null;
|
|
60
|
-
}): STData[];
|
|
61
|
-
getNoIndex(item: STData, col: _STColumn, idx: number): number;
|
|
62
|
-
private genButtons;
|
|
63
|
-
private fixMaxMultiple;
|
|
64
|
-
private getValidSort;
|
|
65
|
-
private getSorterFn;
|
|
66
|
-
get nextSortTick(): number;
|
|
67
|
-
getReqSortMap(singleSort: STSingleSort | undefined | null, multiSort: STMultiSort | undefined, headers: _STHeader[][]): STMultiSortResultType;
|
|
68
|
-
private getFilteredData;
|
|
69
|
-
private getReqFilterMap;
|
|
70
|
-
private genStatistical;
|
|
71
|
-
private getStatistical;
|
|
72
|
-
private toFixed;
|
|
73
|
-
private getValues;
|
|
74
|
-
private getSum;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STDataSource, [null, { host: true; }, { host: true; }, { host: true; }, null, null]>;
|
|
76
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<STDataSource>;
|
|
77
|
-
}
|
package/st/st-export.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { XlsxExportResult } from '@delon/abc/xlsx';
|
|
2
|
-
import { STExportOptions } from './st.interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class STExport {
|
|
5
|
-
private readonly xlsxSrv;
|
|
6
|
-
private _stGet;
|
|
7
|
-
private genSheet;
|
|
8
|
-
export(opt: STExportOptions): Promise<XlsxExportResult>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STExport, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<STExport>;
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import type { LocaleData } from '@delon/theme';
|
|
3
|
-
import type { STColumnFilter, STColumnFilterMenu, STIcon } from './st.interfaces';
|
|
4
|
-
import type { _STColumn } from './st.types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class STFilterComponent {
|
|
7
|
-
private readonly cdr;
|
|
8
|
-
visible: boolean;
|
|
9
|
-
col: _STColumn;
|
|
10
|
-
locale: LocaleData;
|
|
11
|
-
f: STColumnFilter;
|
|
12
|
-
readonly n: EventEmitter<unknown>;
|
|
13
|
-
readonly handle: EventEmitter<boolean>;
|
|
14
|
-
get icon(): STIcon;
|
|
15
|
-
stopPropagation($event: MouseEvent): void;
|
|
16
|
-
checkboxChange(): void;
|
|
17
|
-
radioChange(item: STColumnFilterMenu): void;
|
|
18
|
-
close(result?: boolean): void;
|
|
19
|
-
confirm(): this;
|
|
20
|
-
reset(): this;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STFilterComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STFilterComponent, "st-filter", never, { "col": { "alias": "col"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "f": { "alias": "f"; "required": false; }; }, { "n": "n"; "handle": "handle"; }, never, never, true, never>;
|
|
23
|
-
}
|
package/st/st-row.directive.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class STRowSource {
|
|
4
|
-
private titles;
|
|
5
|
-
private rows;
|
|
6
|
-
add(type: string | undefined, path: string, ref: TemplateRef<void>): void;
|
|
7
|
-
getTitle(path: string): TemplateRef<void>;
|
|
8
|
-
getRow(path: string): TemplateRef<void>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STRowSource, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<STRowSource>;
|
|
11
|
-
}
|
|
12
|
-
export declare class STRowDirective implements OnInit {
|
|
13
|
-
private readonly source;
|
|
14
|
-
private readonly ref;
|
|
15
|
-
id: string;
|
|
16
|
-
type?: 'title';
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STRowDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<STRowDirective, "[st-row]", never, { "id": { "alias": "st-row"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { STColumn, STData } from './st.interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class STWidgetHostDirective implements OnInit {
|
|
5
|
-
private readonly stWidgetRegistry;
|
|
6
|
-
private readonly viewContainerRef;
|
|
7
|
-
record: STData;
|
|
8
|
-
column: STColumn;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STWidgetHostDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<STWidgetHostDirective, "[st-widget-host]", never, { "record": { "alias": "record"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
package/st/st-widget.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class STWidgetRegistry {
|
|
4
|
-
private _widgets;
|
|
5
|
-
get widgets(): NzSafeAny;
|
|
6
|
-
register(type: string, widget: NzSafeAny): void;
|
|
7
|
-
has(type: string): boolean;
|
|
8
|
-
get(type: string): NzSafeAny;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STWidgetRegistry, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<STWidgetRegistry>;
|
|
11
|
-
}
|
package/st/st.component.d.ts
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import type { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { AfterViewInit, EventEmitter, OnChanges, SimpleChange, SimpleChanges, TemplateRef, TrackByFunction } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { LocaleData } from '@delon/theme';
|
|
5
|
-
import { AlainConfigService, AlainSTConfig } from '@delon/util/config';
|
|
6
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
7
|
-
import { NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
|
|
8
|
-
import { NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
9
|
-
import { NzTableComponent } from 'ng-zorro-antd/table';
|
|
10
|
-
import type { STChange, STClickRowClassName, STColumn, STColumnButton, STColumnSelection, STContextmenuFn, STContextmenuItem, STCustomRequestOptions, STData, STDragOptions, STError, STExportOptions, STLoadOptions, STPage, STReq, STRes, STResetColumnsOption, STResizable, STRowClassName, STSingleSort, STStatisticalResults, STWidthMode } from './st.interfaces';
|
|
11
|
-
import type { _STColumn, _STHeader, _STTdNotify } from './st.types';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class STTdComponent {
|
|
14
|
-
private readonly stComp;
|
|
15
|
-
private readonly router;
|
|
16
|
-
private readonly modalHelper;
|
|
17
|
-
private readonly drawerHelper;
|
|
18
|
-
c: _STColumn;
|
|
19
|
-
cIdx: number;
|
|
20
|
-
data: STData[];
|
|
21
|
-
i: STData;
|
|
22
|
-
index: number;
|
|
23
|
-
readonly n: EventEmitter<_STTdNotify>;
|
|
24
|
-
private get routerState();
|
|
25
|
-
private report;
|
|
26
|
-
_checkbox(value: boolean): void;
|
|
27
|
-
_radio(): void;
|
|
28
|
-
_link(e: Event): boolean;
|
|
29
|
-
_client(): void;
|
|
30
|
-
_stopPropagation(ev: Event): void;
|
|
31
|
-
_btn(btn: STColumnButton, ev?: Event): void;
|
|
32
|
-
private btnCallback;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STTdComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STTdComponent, "st-td", never, { "c": { "alias": "c"; "required": false; }; "cIdx": { "alias": "cIdx"; "required": false; }; "data": { "alias": "data"; "required": false; }; "i": { "alias": "i"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, { "n": "n"; }, never, never, true, never>;
|
|
35
|
-
}
|
|
36
|
-
export declare class STComponent implements AfterViewInit, OnChanges {
|
|
37
|
-
private readonly i18nSrv;
|
|
38
|
-
private readonly el;
|
|
39
|
-
private readonly cdr;
|
|
40
|
-
private readonly doc;
|
|
41
|
-
private readonly exportSrv;
|
|
42
|
-
private readonly columnSource;
|
|
43
|
-
private readonly dataSource;
|
|
44
|
-
private readonly delonI18n;
|
|
45
|
-
private readonly cms;
|
|
46
|
-
private readonly destroy$;
|
|
47
|
-
private totalTpl;
|
|
48
|
-
private inied;
|
|
49
|
-
cog: AlainSTConfig;
|
|
50
|
-
private _req;
|
|
51
|
-
private _res;
|
|
52
|
-
private _page;
|
|
53
|
-
private _widthMode;
|
|
54
|
-
private customWidthConfig;
|
|
55
|
-
_widthConfig: string[];
|
|
56
|
-
locale: LocaleData;
|
|
57
|
-
_loading: boolean;
|
|
58
|
-
_data: STData[];
|
|
59
|
-
_statistical: STStatisticalResults;
|
|
60
|
-
_isPagination: boolean;
|
|
61
|
-
_allChecked: boolean;
|
|
62
|
-
_allCheckedDisabled: boolean;
|
|
63
|
-
_indeterminate: boolean;
|
|
64
|
-
_headers: _STHeader[][];
|
|
65
|
-
_columns: _STColumn[];
|
|
66
|
-
contextmenuList: STContextmenuItem[];
|
|
67
|
-
readonly orgTable: NzTableComponent<STData>;
|
|
68
|
-
readonly contextmenuTpl: NzDropdownMenuComponent;
|
|
69
|
-
get req(): STReq;
|
|
70
|
-
set req(value: STReq);
|
|
71
|
-
/** 返回体配置 */
|
|
72
|
-
get res(): STRes;
|
|
73
|
-
set res(value: STRes);
|
|
74
|
-
get page(): STPage;
|
|
75
|
-
set page(value: STPage);
|
|
76
|
-
data?: string | STData[] | Observable<STData[]>;
|
|
77
|
-
columns?: STColumn[] | null;
|
|
78
|
-
contextmenu?: STContextmenuFn | null;
|
|
79
|
-
ps: number;
|
|
80
|
-
pi: number;
|
|
81
|
-
total: number;
|
|
82
|
-
loading: boolean | null;
|
|
83
|
-
loadingDelay: number;
|
|
84
|
-
loadingIndicator: TemplateRef<void> | null;
|
|
85
|
-
bordered: boolean;
|
|
86
|
-
size: 'small' | 'middle' | 'default';
|
|
87
|
-
scroll: {
|
|
88
|
-
x?: string | null;
|
|
89
|
-
y?: string | null;
|
|
90
|
-
};
|
|
91
|
-
drag: import("@angular/core").InputSignalWithTransform<STDragOptions | null, unknown>;
|
|
92
|
-
singleSort?: STSingleSort | null;
|
|
93
|
-
private _multiSort?;
|
|
94
|
-
get multiSort(): NzSafeAny;
|
|
95
|
-
set multiSort(value: NzSafeAny);
|
|
96
|
-
rowClassName?: STRowClassName | null;
|
|
97
|
-
clickRowClassName?: STClickRowClassName | null;
|
|
98
|
-
set widthMode(value: STWidthMode);
|
|
99
|
-
get widthMode(): STWidthMode;
|
|
100
|
-
set widthConfig(val: string[]);
|
|
101
|
-
private _resizable?;
|
|
102
|
-
set resizable(val: STResizable | boolean | string);
|
|
103
|
-
header?: string | TemplateRef<void> | null;
|
|
104
|
-
showHeader: boolean;
|
|
105
|
-
footer?: string | TemplateRef<void> | null;
|
|
106
|
-
bodyHeader?: TemplateRef<{
|
|
107
|
-
$implicit: STStatisticalResults;
|
|
108
|
-
}> | null;
|
|
109
|
-
body?: TemplateRef<{
|
|
110
|
-
$implicit: STStatisticalResults;
|
|
111
|
-
}> | null;
|
|
112
|
-
expandRowByClick: boolean;
|
|
113
|
-
expandAccordion: boolean;
|
|
114
|
-
expand: TemplateRef<{
|
|
115
|
-
$implicit: STData;
|
|
116
|
-
index: number;
|
|
117
|
-
}> | null;
|
|
118
|
-
expandIcon: TemplateRef<{
|
|
119
|
-
$implicit: STData;
|
|
120
|
-
index: number;
|
|
121
|
-
}> | null;
|
|
122
|
-
noResult?: string | TemplateRef<void> | null;
|
|
123
|
-
responsive: boolean;
|
|
124
|
-
responsiveHideHeaderFooter?: boolean;
|
|
125
|
-
readonly error: EventEmitter<STError>;
|
|
126
|
-
readonly change: EventEmitter<STChange<any>>;
|
|
127
|
-
virtualScroll: boolean;
|
|
128
|
-
virtualItemSize: number;
|
|
129
|
-
virtualMaxBufferPx: number;
|
|
130
|
-
virtualMinBufferPx: number;
|
|
131
|
-
customRequest?: (options: STCustomRequestOptions) => Observable<NzSafeAny>;
|
|
132
|
-
virtualForTrackBy: TrackByFunction<STData>;
|
|
133
|
-
trackBy: TrackByFunction<STData>;
|
|
134
|
-
/**
|
|
135
|
-
* Get the number of the current page
|
|
136
|
-
*/
|
|
137
|
-
get count(): number;
|
|
138
|
-
/**
|
|
139
|
-
* Get the data of the current page
|
|
140
|
-
*/
|
|
141
|
-
get list(): STData[];
|
|
142
|
-
get noColumns(): boolean;
|
|
143
|
-
constructor(configSrv: AlainConfigService);
|
|
144
|
-
private setCog;
|
|
145
|
-
cd(): this;
|
|
146
|
-
private refreshData;
|
|
147
|
-
renderTotal(total: string, range: string[]): string;
|
|
148
|
-
private changeEmit;
|
|
149
|
-
/**
|
|
150
|
-
* 获取过滤后所有数据
|
|
151
|
-
* - 本地数据:包含排序、过滤后不分页数据
|
|
152
|
-
* - 远程数据:不传递 `pi`、`ps` 两个参数
|
|
153
|
-
*/
|
|
154
|
-
get filteredData(): Observable<STData[]>;
|
|
155
|
-
private updateTotalTpl;
|
|
156
|
-
private setLoading;
|
|
157
|
-
private loadData;
|
|
158
|
-
private loadPageData;
|
|
159
|
-
/** 清空所有数据 */
|
|
160
|
-
clear(cleanStatus?: boolean): this;
|
|
161
|
-
/** 清空所有状态 */
|
|
162
|
-
clearStatus(): this;
|
|
163
|
-
/**
|
|
164
|
-
* 根据页码重新加载数据
|
|
165
|
-
*
|
|
166
|
-
* @param pi 指定当前页码,默认:`1`
|
|
167
|
-
* @param extraParams 重新指定 `extraParams` 值
|
|
168
|
-
* @param options 选项
|
|
169
|
-
*/
|
|
170
|
-
load(pi?: number, extraParams?: NzSafeAny, options?: STLoadOptions): this;
|
|
171
|
-
/**
|
|
172
|
-
* 重新刷新当前页
|
|
173
|
-
*
|
|
174
|
-
* @param extraParams 重新指定 `extraParams` 值
|
|
175
|
-
*/
|
|
176
|
-
reload(extraParams?: NzSafeAny, options?: STLoadOptions): this;
|
|
177
|
-
/**
|
|
178
|
-
* 重置且重新设置 `pi` 为 `1`,包含以下值:
|
|
179
|
-
* - `check` 数据
|
|
180
|
-
* - `radio` 数据
|
|
181
|
-
* - `sort` 数据
|
|
182
|
-
* - `fileter` 数据
|
|
183
|
-
*
|
|
184
|
-
* @param extraParams 重新指定 `extraParams` 值
|
|
185
|
-
*/
|
|
186
|
-
reset(extraParams?: NzSafeAny, options?: STLoadOptions): this;
|
|
187
|
-
private _toTop;
|
|
188
|
-
_change(type: 'pi' | 'ps', options?: STLoadOptions): void;
|
|
189
|
-
private closeOtherExpand;
|
|
190
|
-
_rowClick(e: Event, item: STData, index: number, dbl: boolean): void;
|
|
191
|
-
private _clickRowClassName;
|
|
192
|
-
_expandChange(item: STData, expand: boolean): void;
|
|
193
|
-
_stopPropagation(ev: Event): void;
|
|
194
|
-
private _refColAndData;
|
|
195
|
-
/**
|
|
196
|
-
* Add a rows in the table, like this:
|
|
197
|
-
*
|
|
198
|
-
* ```
|
|
199
|
-
* this.st.addRow(stDataItem)
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* **TIPS:** Don't change the `total` value, it is recommended to use the `reload` method if needed
|
|
203
|
-
*/
|
|
204
|
-
addRow(data: STData | STData[], options?: {
|
|
205
|
-
index?: number;
|
|
206
|
-
}): this;
|
|
207
|
-
/**
|
|
208
|
-
* Remove a row in the table, like this:
|
|
209
|
-
*
|
|
210
|
-
* ```
|
|
211
|
-
* this.st.removeRow(0)
|
|
212
|
-
* this.st.removeRow(stDataItem)
|
|
213
|
-
* ```
|
|
214
|
-
*
|
|
215
|
-
* **TIPS:** Don't change the `total` value, it is recommended to use the `reload` method if needed
|
|
216
|
-
*/
|
|
217
|
-
removeRow(data: STData | STData[] | number): this;
|
|
218
|
-
/**
|
|
219
|
-
* Sets the row value for the `index` in the table, like this:
|
|
220
|
-
*
|
|
221
|
-
* - `optinos.refreshSchema` Whether to refresh of st schemas
|
|
222
|
-
* - `optinos.emitReload` Whether to trigger a reload http request when data is url
|
|
223
|
-
*
|
|
224
|
-
* ```
|
|
225
|
-
* this.st.setRow(0, { price: 100 })
|
|
226
|
-
* this.st.setRow(0, { price: 100, name: 'asdf' })
|
|
227
|
-
* this.st.setRow(item, { price: 100 })
|
|
228
|
-
* ```
|
|
229
|
-
*/
|
|
230
|
-
setRow(index: number | STData, item: STData, options?: {
|
|
231
|
-
refreshSchema?: boolean;
|
|
232
|
-
emitReload?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
* @param arrayProcessMethod 数组处理方式
|
|
236
|
-
* - `true` 表示替换新值,不管新值为哪种类型
|
|
237
|
-
* - `false` 表示会合并整个数组(将旧数据与新数据合并成新数组)
|
|
238
|
-
*/
|
|
239
|
-
arrayProcessMethod?: boolean;
|
|
240
|
-
}): this;
|
|
241
|
-
sort(col: _STColumn, value: NzSafeAny): void;
|
|
242
|
-
clearSort(): this;
|
|
243
|
-
_handleFilter(col: _STColumn, confirm: boolean): void;
|
|
244
|
-
handleFilterNotify(value?: unknown): void;
|
|
245
|
-
clearFilter(): this;
|
|
246
|
-
/** 清除所有 `checkbox` */
|
|
247
|
-
clearCheck(): this;
|
|
248
|
-
private _refCheck;
|
|
249
|
-
checkAll(checked?: boolean): this;
|
|
250
|
-
_rowSelection(row: STColumnSelection): this;
|
|
251
|
-
_checkNotify(): this;
|
|
252
|
-
/** 清除所有 `radio` */
|
|
253
|
-
clearRadio(): this;
|
|
254
|
-
_handleTd(ev: _STTdNotify): void;
|
|
255
|
-
/**
|
|
256
|
-
* 导出当前页,确保已经注册 `XlsxModule`
|
|
257
|
-
*
|
|
258
|
-
* @param newData 重新指定数据;若为 `true` 表示使用 `filteredData` 数据
|
|
259
|
-
* @param opt 额外参数
|
|
260
|
-
*/
|
|
261
|
-
export(newData?: STData[] | true, opt?: STExportOptions): void;
|
|
262
|
-
colResize({ width }: NzResizeEvent, column: _STColumn): void;
|
|
263
|
-
onContextmenu(event: MouseEvent): void;
|
|
264
|
-
get cdkVirtualScrollViewport(): CdkVirtualScrollViewport | undefined;
|
|
265
|
-
private _resetColumns;
|
|
266
|
-
resetColumns(options?: STResetColumnsOption): Promise<this>;
|
|
267
|
-
private refreshColumns;
|
|
268
|
-
private optimizeData;
|
|
269
|
-
/**
|
|
270
|
-
* Return pure data, `st` internally maintains a set of data for caching, this part of data may affect the backend
|
|
271
|
-
*
|
|
272
|
-
* 返回纯净数据,`st` 内部会维护一组用于缓存的数据,这部分数据可能会影响后端
|
|
273
|
-
*/
|
|
274
|
-
pureItem(itemOrIndex: STData | number): STData | null;
|
|
275
|
-
ngAfterViewInit(): void;
|
|
276
|
-
ngOnChanges(changes: {
|
|
277
|
-
[P in keyof this]?: SimpleChange;
|
|
278
|
-
} & SimpleChanges): void;
|
|
279
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<STComponent, never>;
|
|
280
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": { "alias": "req"; "required": false; }; "res": { "alias": "res"; "required": false; }; "page": { "alias": "page"; "required": false; }; "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "contextmenu": { "alias": "contextmenu"; "required": false; }; "ps": { "alias": "ps"; "required": false; }; "pi": { "alias": "pi"; "required": false; }; "total": { "alias": "total"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingDelay": { "alias": "loadingDelay"; "required": false; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "size": { "alias": "size"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "drag": { "alias": "drag"; "required": false; "isSignal": true; }; "singleSort": { "alias": "singleSort"; "required": false; }; "multiSort": { "alias": "multiSort"; "required": false; }; "rowClassName": { "alias": "rowClassName"; "required": false; }; "clickRowClassName": { "alias": "clickRowClassName"; "required": false; }; "widthMode": { "alias": "widthMode"; "required": false; }; "widthConfig": { "alias": "widthConfig"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "header": { "alias": "header"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "bodyHeader": { "alias": "bodyHeader"; "required": false; }; "body": { "alias": "body"; "required": false; }; "expandRowByClick": { "alias": "expandRowByClick"; "required": false; }; "expandAccordion": { "alias": "expandAccordion"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; "expandIcon": { "alias": "expandIcon"; "required": false; }; "noResult": { "alias": "noResult"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "responsiveHideHeaderFooter": { "alias": "responsiveHideHeaderFooter"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualItemSize": { "alias": "virtualItemSize"; "required": false; }; "virtualMaxBufferPx": { "alias": "virtualMaxBufferPx"; "required": false; }; "virtualMinBufferPx": { "alias": "virtualMinBufferPx"; "required": false; }; "customRequest": { "alias": "customRequest"; "required": false; }; "virtualForTrackBy": { "alias": "virtualForTrackBy"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, { "error": "error"; "change": "change"; }, never, never, true, never>;
|
|
281
|
-
static ngAcceptInputType_ps: unknown;
|
|
282
|
-
static ngAcceptInputType_pi: unknown;
|
|
283
|
-
static ngAcceptInputType_total: unknown;
|
|
284
|
-
static ngAcceptInputType_loadingDelay: unknown;
|
|
285
|
-
static ngAcceptInputType_bordered: unknown;
|
|
286
|
-
static ngAcceptInputType_showHeader: unknown;
|
|
287
|
-
static ngAcceptInputType_expandRowByClick: unknown;
|
|
288
|
-
static ngAcceptInputType_expandAccordion: unknown;
|
|
289
|
-
static ngAcceptInputType_responsive: unknown;
|
|
290
|
-
static ngAcceptInputType_responsiveHideHeaderFooter: unknown;
|
|
291
|
-
static ngAcceptInputType_virtualScroll: unknown;
|
|
292
|
-
static ngAcceptInputType_virtualItemSize: unknown;
|
|
293
|
-
static ngAcceptInputType_virtualMaxBufferPx: unknown;
|
|
294
|
-
static ngAcceptInputType_virtualMinBufferPx: unknown;
|
|
295
|
-
}
|
package/st/st.config.d.ts
DELETED