@delon/abc 16.1.1 → 16.2.1
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/avatar-list/avatar-list.component.d.ts +3 -4
- package/error-collect/error-collect.component.d.ts +2 -3
- package/esm2022/auto-focus/auto-focus.directive.mjs +5 -6
- package/esm2022/auto-focus/auto-focus.module.mjs +6 -7
- package/esm2022/avatar-list/avatar-list-item.component.mjs +6 -7
- package/esm2022/avatar-list/avatar-list.component.mjs +10 -14
- package/esm2022/avatar-list/avatar-list.module.mjs +6 -7
- package/esm2022/count-down/count-down.component.mjs +6 -7
- package/esm2022/count-down/count-down.module.mjs +6 -7
- package/esm2022/date-picker/date-picker.module.mjs +6 -7
- package/esm2022/date-picker/range-shortcut.component.mjs +5 -6
- package/esm2022/date-picker/range.directive.mjs +5 -6
- package/esm2022/down-file/down-file.directive.mjs +5 -6
- package/esm2022/down-file/down-file.module.mjs +6 -7
- package/esm2022/ellipsis/ellipsis.component.mjs +6 -7
- package/esm2022/ellipsis/ellipsis.module.mjs +6 -7
- package/esm2022/error-collect/error-collect.component.mjs +12 -15
- package/esm2022/error-collect/error-collect.module.mjs +6 -7
- package/esm2022/exception/exception.component.mjs +15 -16
- package/esm2022/exception/exception.module.mjs +6 -7
- package/esm2022/footer-toolbar/footer-toolbar.component.mjs +6 -7
- package/esm2022/footer-toolbar/footer-toolbar.module.mjs +6 -7
- package/esm2022/full-content/full-content-toggle.directive.mjs +5 -6
- package/esm2022/full-content/full-content.component.mjs +13 -16
- package/esm2022/full-content/full-content.module.mjs +6 -7
- package/esm2022/full-content/full-content.service.mjs +5 -6
- package/esm2022/global-footer/global-footer-item.component.mjs +6 -7
- package/esm2022/global-footer/global-footer.component.mjs +13 -16
- package/esm2022/global-footer/global-footer.module.mjs +6 -7
- package/esm2022/hotkey/hotkey.directive.mjs +5 -6
- package/esm2022/hotkey/hotkey.module.mjs +6 -7
- package/esm2022/let/let.directive.mjs +5 -6
- package/esm2022/let/let.module.mjs +6 -7
- package/esm2022/loading/loading.component.mjs +6 -7
- package/esm2022/loading/loading.module.mjs +6 -7
- package/esm2022/loading/loading.service.mjs +5 -6
- package/esm2022/lodop/lodop.module.mjs +6 -7
- package/esm2022/lodop/lodop.service.mjs +5 -6
- package/esm2022/media/media.component.mjs +12 -15
- package/esm2022/media/media.module.mjs +6 -7
- package/esm2022/media/media.service.mjs +5 -6
- package/esm2022/notice-icon/notice-icon-tab.component.mjs +6 -7
- package/esm2022/notice-icon/notice-icon.component.mjs +6 -7
- package/esm2022/notice-icon/notice-icon.module.mjs +6 -7
- package/esm2022/observers/observer-size.mjs +14 -17
- package/esm2022/onboarding/onboarding.component.mjs +5 -6
- package/esm2022/onboarding/onboarding.module.mjs +6 -7
- package/esm2022/onboarding/onboarding.service.mjs +12 -14
- package/esm2022/page-header/page-header.component.mjs +12 -16
- package/esm2022/page-header/page-header.module.mjs +6 -7
- package/esm2022/pdf/pdf.component.mjs +14 -17
- package/esm2022/pdf/pdf.module.mjs +6 -7
- package/esm2022/qr/qr.component.mjs +5 -6
- package/esm2022/qr/qr.module.mjs +6 -7
- package/esm2022/quick-menu/quick-menu.component.mjs +6 -7
- package/esm2022/quick-menu/quick-menu.module.mjs +6 -7
- package/esm2022/result/result.component.mjs +13 -16
- package/esm2022/result/result.module.mjs +6 -7
- package/esm2022/reuse-tab/public_api.mjs +2 -1
- package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.component.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab.component.mjs +13 -18
- package/esm2022/reuse-tab/reuse-tab.module.mjs +6 -7
- package/esm2022/reuse-tab/reuse-tab.service.mjs +5 -6
- package/esm2022/se/se-container.component.mjs +12 -14
- package/esm2022/se/se.component.mjs +16 -18
- package/esm2022/se/se.module.mjs +6 -7
- package/esm2022/sg/sg-container.component.mjs +6 -7
- package/esm2022/sg/sg.component.mjs +8 -8
- package/esm2022/sg/sg.module.mjs +6 -7
- package/esm2022/st/st-column-source.mjs +6 -7
- package/esm2022/st/st-data-source.mjs +19 -8
- package/esm2022/st/st-export.mjs +5 -6
- package/esm2022/st/st-filter.component.mjs +13 -14
- package/esm2022/st/st-row.directive.mjs +9 -11
- package/esm2022/st/st-widget-host.directive.mjs +5 -6
- package/esm2022/st/st-widget.mjs +5 -6
- package/esm2022/st/st.component.mjs +37 -29
- package/esm2022/st/st.interfaces.mjs +1 -1
- package/esm2022/st/st.module.mjs +6 -7
- package/esm2022/st/st.types.mjs +1 -1
- package/esm2022/sv/sv-container.component.mjs +22 -18
- package/esm2022/sv/sv-value.component.mjs +7 -8
- package/esm2022/sv/sv.component.mjs +8 -8
- package/esm2022/sv/sv.module.mjs +6 -7
- package/esm2022/tag-select/tag-select.component.mjs +11 -16
- package/esm2022/tag-select/tag-select.module.mjs +6 -7
- package/esm2022/xlsx/xlsx.directive.mjs +5 -6
- package/esm2022/xlsx/xlsx.module.mjs +6 -7
- package/esm2022/xlsx/xlsx.service.mjs +5 -6
- package/esm2022/zip/zip.module.mjs +6 -7
- package/esm2022/zip/zip.service.mjs +5 -6
- package/exception/exception.component.d.ts +2 -3
- package/fesm2022/auto-focus.mjs +7 -7
- package/fesm2022/auto-focus.mjs.map +1 -1
- package/fesm2022/avatar-list.mjs +16 -19
- package/fesm2022/avatar-list.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +10 -10
- package/fesm2022/chart-observer-size.mjs.map +1 -1
- package/fesm2022/count-down.mjs +8 -8
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +10 -10
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +7 -7
- package/fesm2022/down-file.mjs.map +1 -1
- package/fesm2022/ellipsis.mjs +8 -8
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +14 -16
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +17 -17
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +8 -8
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +21 -23
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +19 -21
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +7 -7
- package/fesm2022/hotkey.mjs.map +1 -1
- package/fesm2022/let.mjs +7 -7
- package/fesm2022/let.mjs.map +1 -1
- package/fesm2022/loading.mjs +11 -11
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +7 -7
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +17 -19
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +12 -12
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +17 -18
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +14 -17
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +16 -18
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/qr.mjs +7 -7
- package/fesm2022/qr.mjs.map +1 -1
- package/fesm2022/quick-menu.mjs +8 -8
- package/fesm2022/quick-menu.mjs.map +1 -1
- package/fesm2022/result.mjs +15 -17
- package/fesm2022/result.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +31 -35
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +27 -28
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +14 -13
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +85 -63
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +34 -27
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +13 -17
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +10 -10
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +7 -7
- package/fesm2022/zip.mjs.map +1 -1
- package/global-footer/global-footer.component.d.ts +6 -6
- package/onboarding/onboarding.service.d.ts +3 -5
- package/package.json +5 -5
- package/page-header/page-header.component.d.ts +3 -4
- package/result/result.component.d.ts +6 -6
- package/reuse-tab/public_api.d.ts +1 -0
- package/reuse-tab/reuse-tab.component.d.ts +2 -3
- package/se/se.component.d.ts +2 -3
- package/sg/sg-container.component.d.ts +1 -1
- package/st/st-data-source.d.ts +2 -1
- package/st/st.component.d.ts +1 -0
- package/st/st.interfaces.d.ts +12 -5
- package/st/st.types.d.ts +8 -1
- package/sv/sv-container.component.d.ts +6 -3
- package/tag-select/tag-select.component.d.ts +2 -3
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.module.ts","../../../../packages/abc/zip/zip.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone } 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 var JSZip: jsZipType;\n\n@Injectable({ providedIn: 'root' })\nexport class ZipService {\n private cog: AlainZipConfig;\n\n constructor(\n private http: HttpClient,\n private lazy: LazyService,\n configSrv: AlainConfigService,\n private ngZone: NgZone\n ) {\n this.cog = configSrv.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","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\n@NgModule({\n imports: [CommonModule]\n})\nexport class ZipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"zip.mjs","sources":["../../../../packages/abc/zip/zip.service.ts","../../../../packages/abc/zip/zip.module.ts","../../../../packages/abc/zip/zip.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone } 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 var JSZip: jsZipType;\n\n@Injectable({ providedIn: 'root' })\nexport class ZipService {\n private cog: AlainZipConfig;\n\n constructor(\n private http: HttpClient,\n private lazy: LazyService,\n configSrv: AlainConfigService,\n private ngZone: NgZone\n ) {\n this.cog = configSrv.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","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\n@NgModule({\n imports: [CommonModule]\n})\nexport class ZipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;MAgBa,UAAU,CAAA;AAGrB,IAAA,WAAA,CACU,IAAgB,EAChB,IAAiB,EACzB,SAA6B,EACrB,MAAc,EAAA;QAHd,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAChB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAa;QAEjB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAEtB,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE;AAChC,YAAA,GAAG,EAAE,wDAAwD;AAC7D,YAAA,KAAK,EAAE,EAAE;AACV,SAAA,CAAE,CAAC;KACL;IAEO,IAAI,GAAA;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAM,CAAC,CAAC,CAAC;KAChE;AAEO,IAAA,KAAK,CAAC,GAAsB,EAAA;AAClC,QAAA,IAAI,CAAC,GAAG;AAAE,YAAA,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;KACrE;;IAID,IAAI,CAAC,SAAwB,EAAE,OAAoC,EAAA;QACjE,OAAO,IAAI,OAAO,CAAY,CAAC,OAAO,EAAE,MAAM,KAAI;AAChD,YAAA,MAAM,eAAe,GAAG,CAAC,IAAe,KAAU;AAChD,gBAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,aAAC,CAAC;AACF,YAAA,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,MAAK;;AAEpB,gBAAA,IAAI,OAA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AAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,YAFV,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEX,SAAS,EAAA,UAAA,EAAA,CAAA;kBAHrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeDetectorRef, OnInit, QueryList } from '@angular/core';
|
|
3
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
import { GlobalFooterItemComponent } from './global-footer-item.component';
|
|
7
7
|
import { GlobalFooterLink } from './global-footer.types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class GlobalFooterComponent implements OnInit
|
|
9
|
+
export declare class GlobalFooterComponent implements OnInit {
|
|
10
10
|
private router;
|
|
11
11
|
private win;
|
|
12
12
|
private dom;
|
|
13
13
|
private directionality;
|
|
14
|
-
private
|
|
14
|
+
private cdr;
|
|
15
|
+
private dir$;
|
|
15
16
|
private _links;
|
|
16
17
|
dir: Direction;
|
|
17
18
|
set links(val: GlobalFooterLink[]);
|
|
18
19
|
get links(): GlobalFooterLink[];
|
|
19
20
|
items: QueryList<GlobalFooterItemComponent>;
|
|
20
|
-
constructor(router: Router, win: NzSafeAny, dom: DomSanitizer, directionality: Directionality);
|
|
21
|
+
constructor(router: Router, win: NzSafeAny, dom: DomSanitizer, directionality: Directionality, cdr: ChangeDetectorRef);
|
|
21
22
|
to(item: GlobalFooterLink | GlobalFooterItemComponent): void;
|
|
22
23
|
ngOnInit(): void;
|
|
23
|
-
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFooterComponent, [null, null, null, { optional: true; }]>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFooterComponent, [null, null, null, { optional: true; }, null]>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalFooterComponent, "global-footer", ["globalFooter"], { "links": { "alias": "links"; "required": false; }; }, {}, ["items"], ["*"], false, never>;
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { ApplicationRef,
|
|
2
|
+
import { ApplicationRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { DelonLocaleService } from '@delon/theme';
|
|
5
5
|
import { AlainConfigService } from '@delon/util/config';
|
|
@@ -9,9 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class OnboardingService implements OnDestroy {
|
|
10
10
|
private i18n;
|
|
11
11
|
private appRef;
|
|
12
|
-
private resolver;
|
|
13
12
|
private router;
|
|
14
|
-
private injector;
|
|
15
13
|
private doc;
|
|
16
14
|
private configSrv;
|
|
17
15
|
private directionality;
|
|
@@ -29,7 +27,7 @@ export declare class OnboardingService implements OnDestroy {
|
|
|
29
27
|
* 获取是否正在引导中
|
|
30
28
|
*/
|
|
31
29
|
get running(): boolean;
|
|
32
|
-
constructor(i18n: DelonLocaleService, appRef: ApplicationRef,
|
|
30
|
+
constructor(i18n: DelonLocaleService, appRef: ApplicationRef, router: Router, doc: NzSafeAny, configSrv: AlainConfigService, directionality: Directionality);
|
|
33
31
|
private attach;
|
|
34
32
|
private cancelRunning;
|
|
35
33
|
private updateRunning;
|
|
@@ -60,6 +58,6 @@ export declare class OnboardingService implements OnDestroy {
|
|
|
60
58
|
*/
|
|
61
59
|
done(): void;
|
|
62
60
|
ngOnDestroy(): void;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingService, [null, null, null, null, null,
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingService, [null, null, null, null, null, { optional: true; }]>;
|
|
64
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<OnboardingService>;
|
|
65
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/abc",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.1",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"plyr": "^3.7.8",
|
|
29
29
|
"pdfjs-dist": "~3.6.172",
|
|
30
30
|
"@github/hotkey": "^2.0.1",
|
|
31
|
-
"ngx-countdown": "^
|
|
32
|
-
"@delon/theme": "^16.
|
|
33
|
-
"@delon/util": "^16.
|
|
34
|
-
"@delon/acl": "^16.
|
|
31
|
+
"ngx-countdown": "^16.0.0",
|
|
32
|
+
"@delon/theme": "^16.2.1",
|
|
33
|
+
"@delon/util": "^16.2.1",
|
|
34
|
+
"@delon/acl": "^16.2.1",
|
|
35
35
|
"tslib": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"module": "fesm2022/abc.mjs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, OnChanges,
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnInit, Renderer2, TemplateRef } from '@angular/core';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { ReuseTabService } from '@delon/abc/reuse-tab';
|
|
6
6
|
import { AlainI18NService, MenuService, SettingsService, TitleService } from '@delon/theme';
|
|
@@ -12,7 +12,7 @@ interface PageHeaderPath {
|
|
|
12
12
|
title?: string;
|
|
13
13
|
link?: string[];
|
|
14
14
|
}
|
|
15
|
-
export declare class PageHeaderComponent implements OnInit, OnChanges, AfterViewInit
|
|
15
|
+
export declare class PageHeaderComponent implements OnInit, OnChanges, AfterViewInit {
|
|
16
16
|
private renderer;
|
|
17
17
|
private router;
|
|
18
18
|
private menuSrv;
|
|
@@ -29,7 +29,7 @@ export declare class PageHeaderComponent implements OnInit, OnChanges, AfterView
|
|
|
29
29
|
static ngAcceptInputType_fixed: BooleanInput;
|
|
30
30
|
static ngAcceptInputType_fixedOffsetTop: NumberInput;
|
|
31
31
|
static ngAcceptInputType_recursiveBreadcrumb: BooleanInput;
|
|
32
|
-
private
|
|
32
|
+
private dir$;
|
|
33
33
|
private conTpl;
|
|
34
34
|
private affix;
|
|
35
35
|
inited: boolean;
|
|
@@ -66,7 +66,6 @@ export declare class PageHeaderComponent implements OnInit, OnChanges, AfterView
|
|
|
66
66
|
ngOnInit(): void;
|
|
67
67
|
ngAfterViewInit(): void;
|
|
68
68
|
ngOnChanges(): void;
|
|
69
|
-
ngOnDestroy(): void;
|
|
70
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
71
70
|
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "page-header", ["pageHeader"], { "title": { "alias": "title"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "wide": { "alias": "wide"; "required": false; }; "home": { "alias": "home"; "required": false; }; "homeLink": { "alias": "homeLink"; "required": false; }; "homeI18n": { "alias": "homeI18n"; "required": false; }; "autoBreadcrumb": { "alias": "autoBreadcrumb"; "required": false; }; "autoTitle": { "alias": "autoTitle"; "required": false; }; "syncTitle": { "alias": "syncTitle"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "fixedOffsetTop": { "alias": "fixedOffsetTop"; "required": false; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; }; "recursiveBreadcrumb": { "alias": "recursiveBreadcrumb"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "action": { "alias": "action"; "required": false; }; "content": { "alias": "content"; "required": false; }; "extra": { "alias": "extra"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
72
71
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeDetectorRef, OnInit, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ResultComponent implements OnInit
|
|
4
|
+
export declare class ResultComponent implements OnInit {
|
|
5
5
|
private directionality;
|
|
6
|
-
private
|
|
6
|
+
private cdr;
|
|
7
|
+
private dir$;
|
|
7
8
|
_type: string;
|
|
8
9
|
_icon: string;
|
|
9
10
|
set type(value: string);
|
|
@@ -11,9 +12,8 @@ export declare class ResultComponent implements OnInit, OnDestroy {
|
|
|
11
12
|
description?: string | TemplateRef<void>;
|
|
12
13
|
extra?: string | TemplateRef<void>;
|
|
13
14
|
dir: Direction;
|
|
14
|
-
constructor(directionality: Directionality);
|
|
15
|
+
constructor(directionality: Directionality, cdr: ChangeDetectorRef);
|
|
15
16
|
ngOnInit(): void;
|
|
16
|
-
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResultComponent, [{ optional: true; }]>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResultComponent, [{ optional: true; }, null]>;
|
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<ResultComponent, "result", ["result"], { "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "extra": { "alias": "extra"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges,
|
|
3
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChange, SimpleChanges, TemplateRef } from '@angular/core';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { AlainI18NService } from '@delon/theme';
|
|
6
6
|
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
@@ -9,7 +9,7 @@ import { ReuseCanClose, ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomCon
|
|
|
9
9
|
import { ReuseTabService } from './reuse-tab.service';
|
|
10
10
|
import { ReuseTabStorageState } from './reuse-tab.state';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class ReuseTabComponent implements OnInit, OnChanges
|
|
12
|
+
export declare class ReuseTabComponent implements OnInit, OnChanges {
|
|
13
13
|
private srv;
|
|
14
14
|
private cdr;
|
|
15
15
|
private router;
|
|
@@ -83,7 +83,6 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
83
83
|
ngOnChanges(changes: {
|
|
84
84
|
[P in keyof this]?: SimpleChange;
|
|
85
85
|
} & SimpleChanges): void;
|
|
86
|
-
ngOnDestroy(): void;
|
|
87
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
88
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "mode": { "alias": "mode"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "max": { "alias": "max"; "required": false; }; "tabMaxWidth": { "alias": "tabMaxWidth"; "required": false; }; "excludes": { "alias": "excludes"; "required": false; }; "allowClose": { "alias": "allowClose"; "required": false; }; "keepingScroll": { "alias": "keepingScroll"; "required": false; }; "storageState": { "alias": "storageState"; "required": false; }; "keepingScrollContainer": { "alias": "keepingScrollContainer"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; "tabBarExtraContent": { "alias": "tabBarExtraContent"; "required": false; }; "tabBarGutter": { "alias": "tabBarGutter"; "required": false; }; "tabBarStyle": { "alias": "tabBarStyle"; "required": false; }; "tabType": { "alias": "tabType"; "required": false; }; "routeParamMatchMode": { "alias": "routeParamMatchMode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "titleRender": { "alias": "titleRender"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; }, { "change": "change"; "close": "close"; }, never, never, false, never>;
|
|
89
88
|
}
|
package/se/se.component.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges,
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ResponsiveService } from '@delon/theme';
|
|
3
3
|
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
4
4
|
import { NzFormStatusService } from 'ng-zorro-antd/core/form';
|
|
5
5
|
import { SEContainerComponent } from './se-container.component';
|
|
6
6
|
import { SEErrorType } from './se.types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SEComponent implements OnChanges, AfterContentInit, AfterViewInit
|
|
8
|
+
export declare class SEComponent implements OnChanges, AfterContentInit, AfterViewInit {
|
|
9
9
|
private parent;
|
|
10
10
|
private statusSrv;
|
|
11
11
|
private rep;
|
|
@@ -59,7 +59,6 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
|
|
|
59
59
|
ngAfterContentInit(): void;
|
|
60
60
|
ngOnChanges(): void;
|
|
61
61
|
ngAfterViewInit(): void;
|
|
62
|
-
ngOnDestroy(): void;
|
|
63
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, [null, { optional: true; host: true; }, null, null, null, null]>;
|
|
64
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": { "alias": "optional"; "required": false; }; "optionalHelp": { "alias": "optionalHelp"; "required": false; }; "optionalHelpColor": { "alias": "optionalHelpColor"; "required": false; }; "error": { "alias": "error"; "required": false; }; "extra": { "alias": "extra"; "required": false; }; "label": { "alias": "label"; "required": false; }; "col": { "alias": "col"; "required": false; }; "required": { "alias": "required"; "required": false; }; "controlClass": { "alias": "controlClass"; "required": false; }; "line": { "alias": "line"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, ["ngModel", "formControlName"], ["*"], false, never>;
|
|
65
64
|
}
|
package/st/st-data-source.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DatePipe, YNPipe, _HttpClient } from '@delon/theme';
|
|
|
5
5
|
import type { AlainSTConfig } from '@delon/util/config';
|
|
6
6
|
import { CurrencyService } from '@delon/util/format';
|
|
7
7
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
8
|
-
import { STCustomRequestOptions, STData, STMultiSort, STMultiSortResultType, STPage, STReq, STRes, STRowClassName, STSingleSort, STStatisticalResults } from './st.interfaces';
|
|
8
|
+
import type { STColumn, STCustomRequestOptions, STData, STMultiSort, STMultiSortResultType, STOnCellResult, STPage, STReq, STRes, STRowClassName, STSingleSort, STStatisticalResults } from './st.interfaces';
|
|
9
9
|
import { _STColumn } from './st.types';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export interface STDataSourceOptions {
|
|
@@ -51,6 +51,7 @@ export declare class STDataSource {
|
|
|
51
51
|
process(options: STDataSourceOptions): Observable<STDataSourceResult>;
|
|
52
52
|
private get;
|
|
53
53
|
private getByRemote;
|
|
54
|
+
getCell(c: STColumn, item: STData, idx: number): STOnCellResult;
|
|
54
55
|
optimizeData(options: {
|
|
55
56
|
columns: _STColumn[];
|
|
56
57
|
result: STData[];
|
package/st/st.component.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
|
|
|
38
38
|
static ngAcceptInputType_virtualMaxBufferPx: NumberInput;
|
|
39
39
|
static ngAcceptInputType_virtualMinBufferPx: NumberInput;
|
|
40
40
|
private destroy$;
|
|
41
|
+
private isDestroy;
|
|
41
42
|
private data$?;
|
|
42
43
|
private totalTpl;
|
|
43
44
|
cog: AlainSTConfig;
|
package/st/st.interfaces.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ export interface STColumn<T extends STData = any> {
|
|
|
234
234
|
title?: string | STColumnTitle;
|
|
235
235
|
/**
|
|
236
236
|
* 列数据在数据项中对应的 key,支持 `a.b.c` 的嵌套写法,例如:
|
|
237
|
-
* - `id`
|
|
237
|
+
* - `id` (需要指定类型才能智能提示)
|
|
238
238
|
* - `price.market`
|
|
239
239
|
* - `[ 'price', 'market' ]`
|
|
240
240
|
*/
|
|
@@ -337,9 +337,11 @@ export interface STColumn<T extends STData = any> {
|
|
|
337
337
|
*/
|
|
338
338
|
className?: NgClassType;
|
|
339
339
|
/**
|
|
340
|
-
*
|
|
340
|
+
* Table cell supports `colSpan` and `rowSpan`. When each of them is set to 0, the cell will not be rendered.
|
|
341
|
+
*
|
|
342
|
+
* 表格支持行/列合并,若返回的 `colSpan` 或者 `rowSpan` 设值为 0 时表示不会渲染
|
|
341
343
|
*/
|
|
342
|
-
|
|
344
|
+
onCell?: (item: T, index: number) => STOnCellResult;
|
|
343
345
|
/**
|
|
344
346
|
* 数字格式,`type=number` 有效
|
|
345
347
|
*/
|
|
@@ -411,6 +413,7 @@ export interface STColumn<T extends STData = any> {
|
|
|
411
413
|
* 分组表头
|
|
412
414
|
*/
|
|
413
415
|
children?: Array<STColumn<T>>;
|
|
416
|
+
colSpan?: number;
|
|
414
417
|
rowSpan?: number;
|
|
415
418
|
/**
|
|
416
419
|
* 调整表头配置
|
|
@@ -692,7 +695,7 @@ export interface STColumnButton<T extends STData = any> {
|
|
|
692
695
|
/**
|
|
693
696
|
* 图标
|
|
694
697
|
*/
|
|
695
|
-
icon?: string | STIcon;
|
|
698
|
+
icon?: string | STIcon | ((record: T, btn: STColumnButton<T>) => STIcon | null | undefined);
|
|
696
699
|
/**
|
|
697
700
|
* 按钮类型
|
|
698
701
|
* - `none` 无任何互动
|
|
@@ -751,7 +754,7 @@ export interface STColumnButton<T extends STData = any> {
|
|
|
751
754
|
* - `text-success` 成功色
|
|
752
755
|
* - `text-error` 错误色
|
|
753
756
|
*/
|
|
754
|
-
className?: NgClassType;
|
|
757
|
+
className?: NgClassType | ((record: T, btn: STColumnButton<T>) => NgClassType | null | undefined);
|
|
755
758
|
[key: string]: any;
|
|
756
759
|
}
|
|
757
760
|
export interface STColumnMaxMultipleButton {
|
|
@@ -1150,3 +1153,7 @@ export interface STCustomRequestOptions {
|
|
|
1150
1153
|
url: string;
|
|
1151
1154
|
options: STRequestOptions;
|
|
1152
1155
|
}
|
|
1156
|
+
export interface STOnCellResult {
|
|
1157
|
+
rowSpan?: number | null;
|
|
1158
|
+
colSpan?: number | null;
|
|
1159
|
+
}
|
package/st/st.types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import {
|
|
3
|
+
import type { NgClassType } from 'ng-zorro-antd/core/types';
|
|
4
|
+
import type { STColumn, STColumnButton, STColumnSafeType, STData, STIcon, STOnCellResult, STSortMap } from './st.interfaces';
|
|
4
5
|
/**
|
|
5
6
|
* @inner
|
|
6
7
|
*/
|
|
@@ -55,6 +56,11 @@ export interface _STHeader {
|
|
|
55
56
|
*/
|
|
56
57
|
export interface _STColumnButton<T extends STData = any> extends STColumnButton<T> {
|
|
57
58
|
_text?: string;
|
|
59
|
+
_className?: NgClassType | null;
|
|
60
|
+
/**
|
|
61
|
+
* 图标
|
|
62
|
+
*/
|
|
63
|
+
_icon?: STIcon | null;
|
|
58
64
|
children?: Array<_STColumnButton<T>>;
|
|
59
65
|
}
|
|
60
66
|
/**
|
|
@@ -67,4 +73,5 @@ export interface _STDataValue {
|
|
|
67
73
|
color?: string;
|
|
68
74
|
safeType: STColumnSafeType;
|
|
69
75
|
buttons?: _STColumnButton[];
|
|
76
|
+
props?: STOnCellResult | null;
|
|
70
77
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, OnInit, Renderer2, TemplateRef } from '@angular/core';
|
|
2
|
+
import type { REP_TYPE } from '@delon/theme';
|
|
2
3
|
import { AlainConfigService } from '@delon/util/config';
|
|
3
4
|
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -6,8 +7,10 @@ export declare class SVContainerComponent {
|
|
|
6
7
|
static ngAcceptInputType_gutter: NumberInput;
|
|
7
8
|
static ngAcceptInputType_labelWidth: NumberInput;
|
|
8
9
|
static ngAcceptInputType_col: NumberInput;
|
|
10
|
+
static ngAcceptInputType_colInCon: NumberInput;
|
|
9
11
|
static ngAcceptInputType_default: BooleanInput;
|
|
10
12
|
static ngAcceptInputType_noColon: BooleanInput;
|
|
13
|
+
colInCon?: REP_TYPE;
|
|
11
14
|
title?: string | TemplateRef<void>;
|
|
12
15
|
size: 'small' | 'large';
|
|
13
16
|
/** 列表项间距,单位为 `px` */
|
|
@@ -20,13 +23,13 @@ export declare class SVContainerComponent {
|
|
|
20
23
|
noColon: boolean;
|
|
21
24
|
constructor(configSrv: AlainConfigService);
|
|
22
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "gutter": { "alias": "gutter"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "col": { "alias": "col"; "required": false; }; "default": { "alias": "default"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "colInCon": { "alias": "sv-container"; "required": false; }; "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "gutter": { "alias": "gutter"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "col": { "alias": "col"; "required": false; }; "default": { "alias": "default"; "required": false; }; "noColon": { "alias": "noColon"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
24
27
|
}
|
|
25
28
|
export declare class SVTitleComponent implements OnInit {
|
|
29
|
+
private el;
|
|
26
30
|
private parent;
|
|
27
31
|
private ren;
|
|
28
|
-
|
|
29
|
-
constructor(el: ElementRef, parent: SVContainerComponent, ren: Renderer2);
|
|
32
|
+
constructor(el: ElementRef<HTMLElement>, parent: SVContainerComponent, ren: Renderer2);
|
|
30
33
|
private setClass;
|
|
31
34
|
ngOnInit(): void;
|
|
32
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVTitleComponent, [null, { optional: true; host: true; }, null]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter,
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
3
|
import { DelonLocaleService, LocaleData } from '@delon/theme';
|
|
4
4
|
import { BooleanInput } from '@delon/util/decorator';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TagSelectComponent implements OnInit
|
|
6
|
+
export declare class TagSelectComponent implements OnInit {
|
|
7
7
|
private i18n;
|
|
8
8
|
private directionality;
|
|
9
9
|
private cdr;
|
|
@@ -18,7 +18,6 @@ export declare class TagSelectComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
constructor(i18n: DelonLocaleService, directionality: Directionality, cdr: ChangeDetectorRef);
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
trigger(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TagSelectComponent, [null, { optional: true; }, null]>;
|
|
23
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "tag-select", ["tagSelect"], { "expandable": { "alias": "expandable"; "required": false; }; }, { "change": "change"; }, never, ["*"], false, never>;
|
|
24
23
|
}
|