@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/fesm2022/zip.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.mjs","sources":["../../../../packages/abc/zip/zip.service.ts","../../../../packages/abc/zip/zip.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone, inject } from '@angular/core';\n\nimport { saveAs } from 'file-saver';\nimport type jsZipType from 'jszip';\n\nimport { AlainConfigService, AlainZipConfig } from '@delon/util/config';\nimport { ZoneOutside } from '@delon/util/decorator';\nimport { LazyResult, LazyService } from '@delon/util/other';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { ZipSaveOptions } from './zip.types';\n\ndeclare const JSZip: jsZipType;\n\n@Injectable({ providedIn: 'root' })\nexport class ZipService {\n private readonly http = inject(HttpClient);\n private readonly lazy = inject(LazyService);\n private readonly ngZone = inject(NgZone);\n
|
|
1
|
+
{"version":3,"file":"zip.mjs","sources":["../../../../packages/abc/zip/zip.service.ts","../../../../packages/abc/zip/zip.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone, inject } from '@angular/core';\n\nimport { saveAs } from 'file-saver';\nimport type jsZipType from 'jszip';\n\nimport { AlainConfigService, AlainZipConfig } from '@delon/util/config';\nimport { ZoneOutside } from '@delon/util/decorator';\nimport { LazyResult, LazyService } from '@delon/util/other';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { ZipSaveOptions } from './zip.types';\n\ndeclare const JSZip: jsZipType;\n\n@Injectable({ providedIn: 'root' })\nexport class ZipService {\n private readonly http = inject(HttpClient);\n private readonly lazy = inject(LazyService);\n private readonly ngZone = inject(NgZone);\n private readonly cogSrv = inject(AlainConfigService);\n private cog: AlainZipConfig;\n\n constructor() {\n this.cog = this.cogSrv.merge('zip', {\n url: 'https://cdn.jsdelivr.net/npm/jszip@3/dist/jszip.min.js',\n utils: []\n })!;\n }\n\n private init(): Promise<LazyResult[]> {\n return this.lazy.load([this.cog.url!].concat(this.cog.utils!));\n }\n\n private check(zip?: jsZipType | null): void {\n if (!zip) throw new Error('get instance via `ZipService.create()`');\n }\n\n /** 解压 */\n @ZoneOutside()\n read(fileOrUrl: File | string, options?: jsZipType.JSZipLoadOptions): Promise<jsZipType> {\n return new Promise<jsZipType>((resolve, reject) => {\n const resolveCallback = (data: jsZipType): void => {\n this.ngZone.run(() => resolve(data));\n };\n this.init().then(() => {\n // from url\n if (typeof fileOrUrl === 'string') {\n this.http.request('GET', fileOrUrl, { responseType: 'arraybuffer' }).subscribe({\n next: (res: ArrayBuffer) => {\n JSZip.loadAsync(res, options).then((ret: jsZipType) => resolveCallback(ret));\n },\n error: err => {\n reject(err);\n }\n });\n return;\n }\n // from file\n const reader: FileReader = new FileReader();\n reader.onload = (e: ProgressEvent<FileReader>) => {\n JSZip.loadAsync(e.target!.result as ArrayBuffer, options).then((ret: jsZipType) => resolveCallback(ret));\n };\n reader.readAsBinaryString(fileOrUrl as File);\n });\n });\n }\n\n /** 创建 Zip 实例,用于创建压缩文件 */\n create(): Promise<jsZipType | null> {\n return new Promise<jsZipType | null>(resolve => {\n this.init()\n .then(() => {\n const zipFile = new JSZip();\n resolve(zipFile);\n })\n .catch(() => resolve(null));\n });\n }\n\n /**\n * 下载URL资源并写入 zip\n *\n * @param zip Zip 实例\n * @param path Zip 路径,例如: `text.txt`、`txt/hi.txt`\n * @param url URL 地址\n */\n pushUrl(zip: jsZipType | null, path: string, url: string): Promise<void> {\n this.check(zip);\n return new Promise<void>((resolve, reject) => {\n this.http.request('GET', url, { responseType: 'arraybuffer' }).subscribe({\n next: (res: ArrayBuffer) => {\n zip!.file(path, res);\n resolve();\n },\n error: error => {\n reject({ url, error });\n }\n });\n });\n }\n\n /**\n * 保存Zip并执行打开保存对话框\n *\n * @param zip zip 对象,务必通过 `create()` 构建\n * @param options 额外参数,\n */\n save(zip: jsZipType | null, options?: ZipSaveOptions): Promise<void> {\n this.check(zip);\n const opt = { filename: 'download.zip', ...options } as ZipSaveOptions;\n return new Promise<void>((resolve, reject) => {\n zip!.generateAsync<'blob'>({ type: 'blob', ...opt.options } as NzSafeAny, opt.update as NzSafeAny).then(\n data => {\n if (opt.callback) opt.callback(data);\n saveAs(data, opt.filename);\n resolve();\n },\n err => {\n reject(err);\n }\n );\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import * as i2 from '@delon/abc/error-collect';
|
|
5
|
+
import * as i3 from 'ng-zorro-antd/core/outlet';
|
|
6
|
+
|
|
7
|
+
declare class FooterToolbarComponent implements OnDestroy {
|
|
8
|
+
private readonly bodyCls;
|
|
9
|
+
errorCollect: i0.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
extra: i0.InputSignal<string | TemplateRef<void> | undefined>;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterToolbarComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterToolbarComponent, "footer-toolbar", ["footerToolbar"], { "errorCollect": { "alias": "errorCollect"; "required": false; "isSignal": true; }; "extra": { "alias": "extra"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class FooterToolbarModule {
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterToolbarModule, never>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FooterToolbarModule, never, [typeof i1.CommonModule, typeof i2.ErrorCollectModule, typeof i3.NzOutletModule, typeof FooterToolbarComponent], [typeof FooterToolbarComponent]>;
|
|
20
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FooterToolbarModule>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { FooterToolbarComponent, FooterToolbarModule };
|
package/full-content/index.d.ts
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnInit, OnChanges, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
|
|
6
|
+
declare class FullContentComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private readonly destroy$;
|
|
8
|
+
private readonly el;
|
|
9
|
+
private readonly cdr;
|
|
10
|
+
private readonly srv;
|
|
11
|
+
private readonly router;
|
|
12
|
+
private readonly doc;
|
|
13
|
+
private bodyEl;
|
|
14
|
+
private inited;
|
|
15
|
+
private id;
|
|
16
|
+
_height: number;
|
|
17
|
+
hideTitle: i0.InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
padding: i0.InputSignalWithTransform<number, unknown>;
|
|
19
|
+
fullscreen: i0.ModelSignal<boolean | undefined>;
|
|
20
|
+
private updateCls;
|
|
21
|
+
private update;
|
|
22
|
+
private updateHeight;
|
|
23
|
+
private removeInBody;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
toggle(): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnChanges(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FullContentComponent, "full-content", ["fullContent"], { "hideTitle": { "alias": "hideTitle"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; }, { "fullscreen": "fullscreenChange"; }, never, ["*"], true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class FullContentService {
|
|
34
|
+
private _change;
|
|
35
|
+
/** 切换全屏工作区状态 */
|
|
36
|
+
toggle(): void;
|
|
37
|
+
get change(): Observable<boolean | null>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FullContentService>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class FullContentToggleDirective {
|
|
43
|
+
private readonly parent;
|
|
44
|
+
_click(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentToggleDirective, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullContentToggleDirective, "[full-toggle]", ["fullToggle"], {}, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class FullContentModule {
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentModule, never>;
|
|
51
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FullContentModule, never, [typeof i1.CommonModule, typeof FullContentComponent, typeof FullContentToggleDirective], [typeof FullContentComponent, typeof FullContentToggleDirective]>;
|
|
52
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FullContentModule>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { FullContentComponent, FullContentModule, FullContentService, FullContentToggleDirective };
|
package/global-footer/index.d.ts
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
5
|
+
import * as _angular_cdk_bidi_module_d_IN1Vp56w from '@angular/cdk/bidi-module.d-IN1Vp56w';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/router';
|
|
8
|
+
|
|
9
|
+
interface GlobalFooterLink {
|
|
10
|
+
[key: string]: NzSafeAny;
|
|
11
|
+
title: string | SafeHtml;
|
|
12
|
+
href: string;
|
|
13
|
+
blankTarget?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class GlobalFooterItemComponent {
|
|
17
|
+
host: _angular_core.Signal<TemplateRef<void>>;
|
|
18
|
+
href: _angular_core.InputSignal<string | undefined>;
|
|
19
|
+
blankTarget: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GlobalFooterItemComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GlobalFooterItemComponent, "global-footer-item", ["globalFooterItem"], { "href": { "alias": "href"; "required": false; "isSignal": true; }; "blankTarget": { "alias": "blankTarget"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class GlobalFooterComponent {
|
|
25
|
+
private readonly router;
|
|
26
|
+
private readonly win;
|
|
27
|
+
private readonly dom;
|
|
28
|
+
dir: _angular_core.WritableSignal<_angular_cdk_bidi_module_d_IN1Vp56w.a>;
|
|
29
|
+
links: _angular_core.InputSignal<GlobalFooterLink[]>;
|
|
30
|
+
readonly items: _angular_core.Signal<readonly GlobalFooterItemComponent[]>;
|
|
31
|
+
linkHtmls: _angular_core.Signal<GlobalFooterLink[]>;
|
|
32
|
+
to(item: GlobalFooterLink | GlobalFooterItemComponent): void;
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GlobalFooterComponent, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GlobalFooterComponent, "global-footer", ["globalFooter"], { "links": { "alias": "links"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class GlobalFooterModule {
|
|
38
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GlobalFooterModule, never>;
|
|
39
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GlobalFooterModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof GlobalFooterComponent, typeof GlobalFooterItemComponent], [typeof GlobalFooterComponent, typeof GlobalFooterItemComponent]>;
|
|
40
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GlobalFooterModule>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { GlobalFooterComponent, GlobalFooterItemComponent, GlobalFooterModule };
|
|
44
|
+
export type { GlobalFooterLink };
|
package/hotkey/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class HotkeyDirective implements OnDestroy {
|
|
5
|
+
private readonly el;
|
|
6
|
+
private readonly ngZone;
|
|
7
|
+
private readonly platform;
|
|
8
|
+
/**
|
|
9
|
+
* Specify [hotkey format](https://github.com/github/hotkey#hotkey-string-format), you can get the code through [Hotkey Code](https://github.github.com/hotkey/hotkey_mapper.html)
|
|
10
|
+
*
|
|
11
|
+
* 指定[热键格式](https://github.com/github/hotkey#hotkey-string-format),可以通过 [Hotkey Code](https://github.github.com/hotkey/hotkey_mapper.html) 来获取代码。
|
|
12
|
+
*/
|
|
13
|
+
set hotkey(key: string);
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HotkeyDirective, "[hotkey]", never, { "hotkey": { "alias": "hotkey"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class HotkeyModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HotkeyModule, never, [typeof HotkeyDirective], [typeof HotkeyDirective]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HotkeyModule>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { HotkeyDirective, HotkeyModule };
|
package/index.d.ts
CHANGED
package/index.less
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import './st/style/index.less';
|
|
2
2
|
@import './sv/style/index.less';
|
|
3
3
|
@import './se/style/index.less';
|
|
4
|
-
@import './avatar-list/style/index.less';
|
|
5
4
|
@import './ellipsis/style/index.less';
|
|
6
5
|
@import './error-collect/style/index.less';
|
|
7
6
|
@import './exception/style/index.less';
|
|
@@ -11,7 +10,6 @@
|
|
|
11
10
|
@import './notice-icon/style/index.less';
|
|
12
11
|
@import './page-header/style/index.less';
|
|
13
12
|
@import './quick-menu/style/index.less';
|
|
14
|
-
@import './result/style/index.less';
|
|
15
13
|
@import './reuse-tab/style/index.less';
|
|
16
14
|
@import './tag-select/style/index.less';
|
|
17
15
|
@import './down-file/style/index.less';
|
package/loading/index.d.ts
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { OnDestroy } from '@angular/core';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
8
|
+
import * as i3 from '@angular/cdk/portal';
|
|
9
|
+
import * as i4 from 'ng-zorro-antd/icon';
|
|
10
|
+
import * as i5 from 'ng-zorro-antd/spin';
|
|
11
|
+
|
|
12
|
+
type LoadingType = 'text' | 'icon' | 'spin' | 'custom';
|
|
13
|
+
interface LoadingIcon {
|
|
14
|
+
type?: string;
|
|
15
|
+
theme?: 'fill' | 'outline' | 'twotone';
|
|
16
|
+
spin?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface LoadingCustom {
|
|
19
|
+
html?: string | SafeHtml;
|
|
20
|
+
style?: Record<string, NzSafeAny>;
|
|
21
|
+
[key: string]: NzSafeAny;
|
|
22
|
+
}
|
|
23
|
+
interface LoadingShowOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Display type of loading indicator
|
|
26
|
+
*/
|
|
27
|
+
type?: LoadingType;
|
|
28
|
+
/**
|
|
29
|
+
* Customized description content
|
|
30
|
+
*/
|
|
31
|
+
text?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Custom icon
|
|
34
|
+
*/
|
|
35
|
+
icon?: LoadingIcon;
|
|
36
|
+
/**
|
|
37
|
+
* Custom loading indicator
|
|
38
|
+
*/
|
|
39
|
+
custom?: LoadingCustom;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies a delay in milliseconds for loading state (prevent flush), unit: milliseconds
|
|
42
|
+
*/
|
|
43
|
+
delay?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class LoadingDefaultComponent {
|
|
47
|
+
options: LoadingShowOptions;
|
|
48
|
+
dir?: Direction;
|
|
49
|
+
get icon(): LoadingIcon;
|
|
50
|
+
get custom(): LoadingCustom;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingDefaultComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingDefaultComponent, "loading-default", never, {}, {}, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare class LoadingService implements OnDestroy {
|
|
56
|
+
private readonly overlay;
|
|
57
|
+
private readonly configSrv;
|
|
58
|
+
private readonly directionality;
|
|
59
|
+
private _overlayRef?;
|
|
60
|
+
private compRef;
|
|
61
|
+
private opt;
|
|
62
|
+
private cog;
|
|
63
|
+
private n$;
|
|
64
|
+
private loading$;
|
|
65
|
+
get instance(): LoadingDefaultComponent | null;
|
|
66
|
+
constructor();
|
|
67
|
+
private create;
|
|
68
|
+
/**
|
|
69
|
+
* Open a new loading indicator
|
|
70
|
+
*
|
|
71
|
+
* 打开一个新加载指示符
|
|
72
|
+
*/
|
|
73
|
+
open(options?: LoadingShowOptions): void;
|
|
74
|
+
private _close;
|
|
75
|
+
/**
|
|
76
|
+
* Turn off a loading indicator
|
|
77
|
+
*
|
|
78
|
+
* 关闭一个加载指示符
|
|
79
|
+
*/
|
|
80
|
+
close(): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class LoadingModule {
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingModule, never>;
|
|
88
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LoadingModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.NzIconModule, typeof i5.NzSpinModule, typeof LoadingDefaultComponent], [typeof LoadingDefaultComponent]>;
|
|
89
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LoadingModule>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { LoadingDefaultComponent, LoadingModule, LoadingService };
|
|
93
|
+
export type { LoadingCustom, LoadingIcon, LoadingShowOptions, LoadingType };
|
package/lodop/index.d.ts
CHANGED
|
@@ -1,5 +1,277 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnDestroy } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { AlainLodopConfig } from '@delon/util/config';
|
|
6
|
+
|
|
7
|
+
interface CLodop {
|
|
8
|
+
/**
|
|
9
|
+
* 判断是否支持https协议的属性
|
|
10
|
+
*
|
|
11
|
+
* - 0 不支持
|
|
12
|
+
* - 1 支持
|
|
13
|
+
* - 2 支持且已启动(https服务需单独启动)
|
|
14
|
+
*/
|
|
15
|
+
readonly HTTPS_STATUS: number;
|
|
16
|
+
/** 结果回调函数保留 */
|
|
17
|
+
On_Return_Remain: boolean;
|
|
18
|
+
/** 结果回调函数 */
|
|
19
|
+
On_Return: ((taskID: string, value: boolean | string) => void) | null;
|
|
20
|
+
/** 建立打印机名单 */
|
|
21
|
+
Create_Printer_List(el: Element): void;
|
|
22
|
+
/** 建立纸张类型名单 */
|
|
23
|
+
Create_PageSize_List(el: Element, iPrintIndex: number): void;
|
|
24
|
+
}
|
|
25
|
+
interface Lodop extends CLodop {
|
|
26
|
+
[key: string]: NzSafeAny;
|
|
27
|
+
/** 获得软件版本号 */
|
|
28
|
+
VERSION: string;
|
|
29
|
+
/**
|
|
30
|
+
* 打印初始化。初始化运行环境,清理异常打印遗留的系统资源,设定打印任务名。
|
|
31
|
+
*
|
|
32
|
+
* **建议或要求:**该函数与PRINT_INITA都有初始化功能,每个打印事务至少初始化一次,建议打印程序首先调用该函数。任务名要尽量区别于其它打印任务,譬如用“XX单位_XX管理信息系统_XX子系统_XX模块_XX打印作业”字样。
|
|
33
|
+
* 不希望最终用户更改打印布局时,则设strTaskName空。
|
|
34
|
+
*
|
|
35
|
+
* @param strTaskName 打印任务名
|
|
36
|
+
* @returns 返回逻辑真表示初始化成功,逻辑假表示初始化失败,失败原因有:前一个打印事务没有完成;操作系统没有添加打印机(驱动)等
|
|
37
|
+
*/
|
|
38
|
+
PRINT_INIT(strTaskName: string): boolean;
|
|
39
|
+
/** 设定纸张大小 */
|
|
40
|
+
SET_PRINT_PAGESIZE(intOrient: number, PageWidth: number | string, PageHeight: number | string, strPageName: string): void;
|
|
41
|
+
/** 增加超文本打印项(普通模式) */
|
|
42
|
+
ADD_PRINT_HTM(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strHtmlContent: string): void;
|
|
43
|
+
/**
|
|
44
|
+
* 增加表格打印项(超文本模式)
|
|
45
|
+
*/
|
|
46
|
+
ADD_PRINT_TABLE(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strHtml: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* 增加表格打印项(超文本模式)
|
|
49
|
+
*/
|
|
50
|
+
ADD_PRINT_TABLE(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strHtml: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* 增加超文本打印项(URL模式)
|
|
53
|
+
*/
|
|
54
|
+
ADD_PRINT_URL(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strURL: string): void;
|
|
55
|
+
/** 增加纯文本打印项 */
|
|
56
|
+
ADD_PRINT_TEXT(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strContent: string): void;
|
|
57
|
+
/** 增加图片打印项 */
|
|
58
|
+
ADD_PRINT_IMAGE(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strHtmlContent: string): void;
|
|
59
|
+
/** 增加矩形线 */
|
|
60
|
+
ADD_PRINT_RECT(Top: number | string, Left: number | string, Width: number | string, Height: number | string, intLineStyle: number, intLineWidth: number): void;
|
|
61
|
+
/** 增加椭圆线 */
|
|
62
|
+
ADD_PRINT_ELLIPSE(Top: number | string, Left: number | string, Width: number | string, Height: number | string, intLineStyle: number, intLineWidth: number): void;
|
|
63
|
+
/** 增加直线 */
|
|
64
|
+
ADD_PRINT_LINE(Top1: number | string, Left1: number | string, Top2: number | string, Left2: number | string, intLineStyle: number, intLineWidth: number): void;
|
|
65
|
+
/** 增加条形码 */
|
|
66
|
+
ADD_PRINT_BARCODE(Top: number | string, Left: number | string, Width: number | string, Height: number | string, CodeType: string, CodeValue: string): void;
|
|
67
|
+
/** 增加图表 */
|
|
68
|
+
ADD_PRINT_CHART(Top: number | string, Left: number | string, Width: number | string, Height: number | string, ChartType: number, strHtml: string): void;
|
|
69
|
+
/** 增加PDF */
|
|
70
|
+
ADD_PRINT_PDF(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strContent: string): void;
|
|
71
|
+
/** 增加PDF */
|
|
72
|
+
ADD_PRINT_PDF(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strContent: string): void;
|
|
73
|
+
/** 装载文档式模板 */
|
|
74
|
+
ADD_PRINT_DATA(strDataStyle: string, varDataValue: NzSafeAny): void;
|
|
75
|
+
/** 设置打印项风格 */
|
|
76
|
+
SET_PRINT_STYLE(strStyleName: LodopStyleValue, varStyleValue: number | string): void;
|
|
77
|
+
/** 打印预览 */
|
|
78
|
+
PREVIEW(): number;
|
|
79
|
+
/** 直接打印 */
|
|
80
|
+
PRINT(): string;
|
|
81
|
+
/** 打印维护 */
|
|
82
|
+
PRINT_SETUP(): string;
|
|
83
|
+
/** 打印设计 */
|
|
84
|
+
PRINT_DESIGN(): string;
|
|
85
|
+
/** 强制分页 */
|
|
86
|
+
NEWPAGE(): boolean;
|
|
87
|
+
/** 获得打印设备个数 */
|
|
88
|
+
GET_PRINTER_COUNT(): number;
|
|
89
|
+
/** 获得打印设备名称 */
|
|
90
|
+
GET_PRINTER_NAME(strPrinterIDandType: number | string): string;
|
|
91
|
+
/** 指定打印设备 */
|
|
92
|
+
SET_PRINTER_INDEX(oIndexOrName: number | string): boolean;
|
|
93
|
+
/** 【CLodop】指定打印机 */
|
|
94
|
+
SET_PRINTER_INDEX(DriverIndex: number | string, PrinterIDandName: number | string, SubDevIndex: number | string): boolean;
|
|
95
|
+
/** 选择打印设备 */
|
|
96
|
+
SELECT_PRINTER(): number;
|
|
97
|
+
/** 设置显示模式 */
|
|
98
|
+
SET_SHOW_MODE(strModeType: string, varModeValue: number | string): boolean;
|
|
99
|
+
/** 设置打印模式 */
|
|
100
|
+
SET_PRINT_MODE(strModeType: string, varModeValue: number | string): boolean | string;
|
|
101
|
+
/** 设置打印份数 */
|
|
102
|
+
SET_PRINT_COPIES(intCopies: number): boolean;
|
|
103
|
+
/** 设置预览窗口 */
|
|
104
|
+
SET_PREVIEW_WINDOW(intDispMode: number, intToolMode: number, blDirectPrint: number, inWidth: number, intHeight: number, strTitleButtonCaptoin: string): void;
|
|
105
|
+
/** 指定背景图 */
|
|
106
|
+
ADD_PRINT_SETUP_BKIMG(strImgHtml: string): void;
|
|
107
|
+
/** 发送原始数据 */
|
|
108
|
+
SEND_PRINT_RAWDATA(strRawData: string): boolean;
|
|
109
|
+
/** 写端口数据 */
|
|
110
|
+
WRITE_PORT_DATA(strPortName: string, strData: string): boolean;
|
|
111
|
+
/** 读端口数据 */
|
|
112
|
+
READ_PORT_DATA(strPortName: string): string;
|
|
113
|
+
/** 获得配置文件名 */
|
|
114
|
+
GET_PRINT_INIFFNAME(strPrintTask: string): string;
|
|
115
|
+
/** 获得纸张类型名清单 */
|
|
116
|
+
GET_PAGESIZES_LIST(oPrinterName: number | string, strSplit: string): string;
|
|
117
|
+
/** 写本地文件内容 */
|
|
118
|
+
WRITE_FILE_TEXT(intWriteMode: number | string, strFileName: string, strText: string): string;
|
|
119
|
+
/** 读本地文件内容 */
|
|
120
|
+
GET_FILE_TEXT(strFileName: string): string | null;
|
|
121
|
+
/** 读本地文件时间 */
|
|
122
|
+
GET_FILE_TIME(strFileName: string): string | null;
|
|
123
|
+
/** 判断本地文件是否存在 */
|
|
124
|
+
IS_FILE_EXIST(strFileName: string): boolean;
|
|
125
|
+
/** 获得系统信息 */
|
|
126
|
+
GET_SYSTEM_INFO(strInfoType: string): boolean;
|
|
127
|
+
/** 获得数据值 */
|
|
128
|
+
GET_VALUE(ValueType: string, ValueIndex: number | string): NzSafeAny;
|
|
129
|
+
/** 数据格式转换 */
|
|
130
|
+
FORMAT(oType: string, oValue: NzSafeAny): NzSafeAny;
|
|
131
|
+
/** 获得对话框结果值 */
|
|
132
|
+
GET_DIALOG_VALUE(oType: string, oPreValue: string): string;
|
|
133
|
+
/** (增强型)打印初始化 */
|
|
134
|
+
PRINT_INITA(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strPrintName: string): boolean;
|
|
135
|
+
/** (增强型)增加超文本打印项(图形模式) */
|
|
136
|
+
ADD_PRINT_HTML(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strHtmlContent: string): void;
|
|
137
|
+
/** (增强型)增加表格打印项(URL模式) */
|
|
138
|
+
ADD_PRINT_TBURL(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strURL: string): void;
|
|
139
|
+
/** (增强型)增加纯文本打印项 */
|
|
140
|
+
ADD_PRINT_TEXTA(Top: number | string, Left: number | string, Width: number | string, Height: number | string, strContent: string): void;
|
|
141
|
+
/** (增强型)设置打印项风格A, 继承 `SET_PRINT_STYLE` 的所有属性 */
|
|
142
|
+
SET_PRINT_STYLEA(varItemNameID: number | string, strStyleName: string, varStyleValue: number | string): void;
|
|
143
|
+
/** (增强型)导出数据到文件 */
|
|
144
|
+
SAVE_TO_FILE(strFileName: string): boolean;
|
|
145
|
+
/** (增强型)设置保存模式 */
|
|
146
|
+
SET_SAVE_MODE(varModeName: string, varModeValue: number | string): boolean;
|
|
147
|
+
/** (增强型)增加图形 */
|
|
148
|
+
ADD_PRINT_SHAPE(intShapeType: number, Top: number | string, Left: number | string, Width: number | string, Height: number | string, intLineStyle: number, intLineWidth: number, varColor: number | string): void;
|
|
149
|
+
/** (增强型)指定打印设备 */
|
|
150
|
+
SET_PRINTER_INDEXA(oIndexOrName: number | string): boolean;
|
|
151
|
+
/** (增强型)强制分页 */
|
|
152
|
+
NEWPAGEA(): boolean;
|
|
153
|
+
/** (增强型)打印预览A */
|
|
154
|
+
PREVIEWA(): number;
|
|
155
|
+
/** (增强型)打印预览B */
|
|
156
|
+
PREVIEWB(): number;
|
|
157
|
+
/** 直接打印A */
|
|
158
|
+
PRINTA(): boolean;
|
|
159
|
+
/** 直接打印B */
|
|
160
|
+
PRINTB(): boolean;
|
|
161
|
+
/** 显示图表 */
|
|
162
|
+
SHOW_CHART(): void;
|
|
163
|
+
/** 控制界面动作 */
|
|
164
|
+
DO_ACTION(ActName: string, ActValue: number | string): void;
|
|
165
|
+
/**
|
|
166
|
+
* 设置软件产品注册信息
|
|
167
|
+
*
|
|
168
|
+
* @param strCompanyName 注册单位名称,用途与控件参数CompanyName一样。
|
|
169
|
+
* @param strLicense 主注册号,用途与控件参数License一样。
|
|
170
|
+
* @param strLicenseA 附加注册号A,用途与控件参数LicenseA一样。
|
|
171
|
+
* @param strLicenseB 附加注册号B,用途与控件参数LicenseB一样。
|
|
172
|
+
*/
|
|
173
|
+
SET_LICENSES(strCompanyName: string, strLicense: string, strLicenseA?: string, strLicenseB?: string): void;
|
|
174
|
+
webskt: WebSocket;
|
|
175
|
+
}
|
|
176
|
+
type LodopStyleValue = 'FontName' | 'FontSize' | 'FontColor' | 'Bold' | 'Italic' | 'Underline' | 'Alignment' | 'Angle' | 'ItemType' | 'HOrient' | 'VOrient' | 'PenWidth' | 'PenStyle' | 'Stretch' | 'PreviewOnly' | 'ReadOnly';
|
|
177
|
+
interface LodopResult {
|
|
178
|
+
/** 是否成功 */
|
|
179
|
+
ok: boolean;
|
|
180
|
+
/** 错误码 */
|
|
181
|
+
status?: string;
|
|
182
|
+
/** 成功时携带 LODOP 对象 */
|
|
183
|
+
lodop?: Lodop;
|
|
184
|
+
/** 错误信息 */
|
|
185
|
+
error?: NzSafeAny;
|
|
186
|
+
}
|
|
187
|
+
interface LodopPrintResult {
|
|
188
|
+
/** 是否成功 */
|
|
189
|
+
ok: boolean;
|
|
190
|
+
/** 错误信息 */
|
|
191
|
+
error?: string;
|
|
192
|
+
/** 代码 */
|
|
193
|
+
code: string;
|
|
194
|
+
/** 动态参数上下文对象 */
|
|
195
|
+
item: NzSafeAny;
|
|
196
|
+
/** 代码解析表达式 */
|
|
197
|
+
parser?: RegExp;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare class LodopService implements OnDestroy {
|
|
201
|
+
private readonly scriptSrv;
|
|
202
|
+
private readonly cogSrv;
|
|
203
|
+
private defaultConfig;
|
|
204
|
+
private _cog;
|
|
205
|
+
private pending;
|
|
206
|
+
private _lodop;
|
|
207
|
+
private _init;
|
|
208
|
+
private _events;
|
|
209
|
+
private printBuffer;
|
|
210
|
+
constructor();
|
|
211
|
+
/**
|
|
212
|
+
* Get or set configuration, **Note:** Resetting will invert and reload script resources
|
|
213
|
+
*
|
|
214
|
+
* 获取或重新设置配置,**注:**重新设置会倒置重新加载脚本资源
|
|
215
|
+
*/
|
|
216
|
+
get cog(): AlainLodopConfig;
|
|
217
|
+
set cog(value: AlainLodopConfig);
|
|
218
|
+
/**
|
|
219
|
+
* Event change notification
|
|
220
|
+
*
|
|
221
|
+
* 事件变更通知
|
|
222
|
+
*/
|
|
223
|
+
get events(): Observable<LodopPrintResult>;
|
|
224
|
+
/**
|
|
225
|
+
* Get lodop object
|
|
226
|
+
*
|
|
227
|
+
* 获取 lodop 对象
|
|
228
|
+
*/
|
|
229
|
+
get lodop(): Observable<LodopResult>;
|
|
230
|
+
/**
|
|
231
|
+
* Get printer list
|
|
232
|
+
*
|
|
233
|
+
* 获取打印机列表
|
|
234
|
+
*/
|
|
235
|
+
get printer(): string[];
|
|
236
|
+
private check;
|
|
237
|
+
private request;
|
|
238
|
+
/**
|
|
239
|
+
* Reset lodop object
|
|
240
|
+
*
|
|
241
|
+
* 重置 lodop 对象
|
|
242
|
+
*/
|
|
243
|
+
reset(): void;
|
|
244
|
+
/**
|
|
245
|
+
* Attach code to the `lodop` object, the string class supports dynamic parameters of `{{key}}`,
|
|
246
|
+
* **Note:** The code refers to the string data generated by the print design
|
|
247
|
+
*
|
|
248
|
+
* 附加代码至 `lodop` 对象上,字符串类支持 `{{key}}` 的动态参数,**注:** 代码是指打印设计所产生字符串数据
|
|
249
|
+
*/
|
|
250
|
+
attachCode(code: string, contextObj?: NzSafeAny, parser?: RegExp): void;
|
|
251
|
+
/**
|
|
252
|
+
* The code is automatically returned after opening the print design and closing,
|
|
253
|
+
* **Note:** Automatically listen for the `On_Return` event, and it will be removed after running
|
|
254
|
+
*
|
|
255
|
+
* 打开打印设计关闭后自动返回代码,**注:** 自动监听 `On_Return` 事件,运行后会移除
|
|
256
|
+
*/
|
|
257
|
+
design(): Promise<string>;
|
|
258
|
+
private printDo;
|
|
259
|
+
/**
|
|
260
|
+
* Print immediately, generally used for batch printing
|
|
261
|
+
*
|
|
262
|
+
* 立即打印,一般用于批量套打
|
|
263
|
+
*/
|
|
264
|
+
print(code: string, contextObj: NzSafeAny, parser?: RegExp): void;
|
|
265
|
+
ngOnDestroy(): void;
|
|
266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LodopService, never>;
|
|
267
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LodopService>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare class LodopModule {
|
|
271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LodopModule, never>;
|
|
272
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LodopModule, never, never, never>;
|
|
273
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LodopModule>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export { LodopModule, LodopService };
|
|
277
|
+
export type { CLodop, Lodop, LodopPrintResult, LodopResult, LodopStyleValue };
|