@delon/abc 16.4.3 → 17.0.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/avatar-list/style/index.less +3 -1
- package/cell/cell-host.directive.d.ts +1 -1
- package/cell/cell.component.d.ts +1 -1
- package/cell/cell.module.d.ts +12 -12
- package/cell/index.d.ts +1 -0
- package/cell/provide.d.ts +10 -0
- package/cell/style/index.less +1 -1
- package/down-file/style/index.less +1 -0
- package/ellipsis/style/index.less +2 -2
- package/error-collect/style/index.less +1 -1
- package/error-collect/style/rtl.less +2 -1
- package/esm2022/auto-focus/auto-focus.directive.mjs +5 -5
- package/esm2022/auto-focus/auto-focus.module.mjs +5 -5
- package/esm2022/avatar-list/avatar-list-item.component.mjs +4 -4
- package/esm2022/avatar-list/avatar-list.component.mjs +7 -7
- package/esm2022/avatar-list/avatar-list.module.mjs +5 -5
- package/esm2022/cell/cell-host.directive.mjs +7 -6
- package/esm2022/cell/cell.component.mjs +163 -126
- package/esm2022/cell/cell.module.mjs +10 -9
- package/esm2022/cell/cell.service.mjs +5 -5
- package/esm2022/cell/index.mjs +2 -1
- package/esm2022/cell/provide.mjs +18 -0
- package/esm2022/count-down/count-down.component.mjs +10 -7
- package/esm2022/count-down/count-down.module.mjs +5 -5
- package/esm2022/date-picker/date-picker.module.mjs +5 -5
- package/esm2022/date-picker/range-shortcut.component.mjs +11 -17
- package/esm2022/date-picker/range.directive.mjs +9 -7
- package/esm2022/down-file/down-file.directive.mjs +5 -5
- package/esm2022/down-file/down-file.module.mjs +5 -5
- package/esm2022/ellipsis/ellipsis.component.mjs +7 -7
- package/esm2022/ellipsis/ellipsis.module.mjs +5 -5
- package/esm2022/error-collect/error-collect.component.mjs +6 -6
- package/esm2022/error-collect/error-collect.module.mjs +5 -5
- package/esm2022/exception/exception.component.mjs +12 -13
- package/esm2022/exception/exception.module.mjs +5 -5
- package/esm2022/footer-toolbar/footer-toolbar.component.mjs +9 -10
- package/esm2022/footer-toolbar/footer-toolbar.module.mjs +5 -5
- package/esm2022/full-content/full-content-toggle.directive.mjs +5 -5
- package/esm2022/full-content/full-content.component.mjs +6 -6
- package/esm2022/full-content/full-content.module.mjs +5 -5
- package/esm2022/full-content/full-content.service.mjs +4 -4
- package/esm2022/global-footer/global-footer-item.component.mjs +4 -4
- package/esm2022/global-footer/global-footer.component.mjs +7 -7
- package/esm2022/global-footer/global-footer.module.mjs +5 -5
- package/esm2022/hotkey/hotkey.directive.mjs +6 -6
- package/esm2022/hotkey/hotkey.module.mjs +6 -6
- package/esm2022/let/let.directive.mjs +7 -7
- package/esm2022/let/let.module.mjs +6 -6
- package/esm2022/loading/loading.component.mjs +5 -5
- package/esm2022/loading/loading.module.mjs +5 -5
- package/esm2022/loading/loading.service.mjs +6 -6
- package/esm2022/lodop/lodop.module.mjs +5 -5
- package/esm2022/lodop/lodop.service.mjs +5 -5
- package/esm2022/media/media.component.mjs +5 -5
- package/esm2022/media/media.module.mjs +5 -5
- package/esm2022/media/media.service.mjs +5 -5
- package/esm2022/notice-icon/notice-icon-tab.component.mjs +5 -5
- package/esm2022/notice-icon/notice-icon.component.mjs +6 -6
- package/esm2022/notice-icon/notice-icon.module.mjs +5 -5
- package/esm2022/observers/observer-size.mjs +15 -14
- package/esm2022/onboarding/onboarding.component.mjs +12 -13
- package/esm2022/onboarding/onboarding.module.mjs +5 -5
- package/esm2022/onboarding/onboarding.service.mjs +6 -6
- package/esm2022/page-header/page-header.component.mjs +7 -7
- package/esm2022/page-header/page-header.module.mjs +5 -5
- package/esm2022/pdf/pdf.component.mjs +14 -11
- package/esm2022/pdf/pdf.module.mjs +5 -5
- package/esm2022/qr/qr.component.mjs +10 -7
- package/esm2022/qr/qr.module.mjs +5 -5
- package/esm2022/quick-menu/quick-menu.component.mjs +5 -5
- package/esm2022/quick-menu/quick-menu.module.mjs +5 -5
- package/esm2022/result/result.component.mjs +9 -10
- package/esm2022/result/result.module.mjs +5 -5
- package/esm2022/reuse-tab/provide.mjs +73 -0
- package/esm2022/reuse-tab/public_api.mjs +2 -1
- package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +8 -8
- package/esm2022/reuse-tab/reuse-tab-context.component.mjs +7 -6
- package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +7 -6
- package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -5
- package/esm2022/reuse-tab/reuse-tab.component.mjs +22 -13
- package/esm2022/reuse-tab/reuse-tab.module.mjs +29 -8
- package/esm2022/reuse-tab/reuse-tab.service.mjs +6 -6
- package/esm2022/se/se-container.component.mjs +22 -19
- package/esm2022/se/se.component.mjs +7 -7
- package/esm2022/se/se.module.mjs +5 -5
- package/esm2022/sg/sg-container.component.mjs +5 -5
- package/esm2022/sg/sg.component.mjs +6 -6
- package/esm2022/sg/sg.module.mjs +5 -5
- package/esm2022/st/provide.mjs +18 -0
- package/esm2022/st/public_api.mjs +2 -1
- package/esm2022/st/st-column-source.mjs +6 -6
- package/esm2022/st/st-data-source.mjs +6 -6
- package/esm2022/st/st-export.mjs +6 -6
- package/esm2022/st/st-filter.component.mjs +184 -162
- package/esm2022/st/st-row.directive.mjs +9 -9
- package/esm2022/st/st-widget-host.directive.mjs +5 -5
- package/esm2022/st/st-widget.mjs +4 -4
- package/esm2022/st/st.component.mjs +13 -13
- package/esm2022/st/st.module.mjs +5 -5
- package/esm2022/sv/sv-container.component.mjs +21 -17
- package/esm2022/sv/sv-value.component.mjs +18 -11
- package/esm2022/sv/sv.component.mjs +11 -12
- package/esm2022/sv/sv.module.mjs +5 -5
- package/esm2022/tag-select/tag-select.component.mjs +8 -9
- package/esm2022/tag-select/tag-select.module.mjs +5 -5
- package/esm2022/xlsx/xlsx.directive.mjs +7 -6
- package/esm2022/xlsx/xlsx.module.mjs +6 -8
- package/esm2022/xlsx/xlsx.service.mjs +5 -5
- package/esm2022/zip/public_api.mjs +1 -2
- package/esm2022/zip/zip.service.mjs +5 -5
- package/exception/style/index.less +6 -6
- package/fesm2022/auto-focus.mjs +8 -8
- package/fesm2022/auto-focus.mjs.map +1 -1
- package/fesm2022/avatar-list.mjs +13 -13
- package/fesm2022/avatar-list.mjs.map +1 -1
- package/fesm2022/cell.mjs +201 -154
- package/fesm2022/cell.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +14 -13
- package/fesm2022/chart-observer-size.mjs.map +1 -1
- package/fesm2022/count-down.mjs +14 -11
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +22 -26
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +8 -8
- package/fesm2022/down-file.mjs.map +1 -1
- package/fesm2022/ellipsis.mjs +10 -10
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +10 -10
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +17 -18
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +12 -13
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +18 -18
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +13 -13
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +10 -10
- package/fesm2022/hotkey.mjs.map +1 -1
- package/fesm2022/let.mjs +11 -11
- package/fesm2022/let.mjs.map +1 -1
- package/fesm2022/loading.mjs +14 -14
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +8 -8
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +13 -13
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +16 -16
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +20 -21
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +10 -10
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +19 -16
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/qr.mjs +13 -10
- 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 +13 -14
- package/fesm2022/result.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +148 -52
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +36 -32
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +13 -13
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +248 -210
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +50 -38
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +13 -14
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +15 -16
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +6 -19
- package/fesm2022/zip.mjs.map +1 -1
- package/footer-toolbar/style/index.less +1 -1
- package/full-content/style/index.less +1 -1
- package/global-footer/style/index.less +1 -1
- package/hotkey/hotkey.directive.d.ts +1 -1
- package/hotkey/hotkey.module.d.ts +1 -1
- package/let/let.directive.d.ts +1 -1
- package/let/let.module.d.ts +1 -1
- package/loading/style/index.less +3 -3
- package/notice-icon/style/index.less +7 -7
- package/observers/observer-size.d.ts +2 -2
- package/onboarding/style/index.less +3 -3
- package/package.json +6 -6
- package/page-header/style/index.less +4 -4
- package/pdf/style/index.less +1 -1
- package/quick-menu/style/index.less +2 -2
- package/result/style/index.less +7 -7
- package/reuse-tab/provide.d.ts +28 -0
- package/reuse-tab/public_api.d.ts +1 -0
- package/reuse-tab/reuse-tab-context-menu.component.d.ts +1 -1
- package/reuse-tab/reuse-tab-context.component.d.ts +1 -1
- package/reuse-tab/reuse-tab-context.directive.d.ts +1 -1
- package/reuse-tab/reuse-tab.component.d.ts +1 -1
- package/reuse-tab/reuse-tab.module.d.ts +12 -12
- package/reuse-tab/style/index.less +4 -4
- package/se/style/index.less +5 -5
- package/st/provide.d.ts +10 -0
- package/st/public_api.d.ts +1 -0
- package/st/style/index.less +4 -4
- package/sv/style/index.less +11 -11
- package/tag-select/style/index.less +2 -2
- package/tag-select/style/rtl.less +2 -1
- package/xlsx/xlsx.directive.d.ts +1 -1
- package/xlsx/xlsx.module.d.ts +1 -2
- package/zip/public_api.d.ts +0 -1
- package/esm2022/zip/zip.module.mjs +0 -15
- package/zip/zip.module.d.ts +0 -7
package/fesm2022/xlsx.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xlsx.mjs","sources":["../../../../packages/abc/xlsx/xlsx.service.ts","../../../../packages/abc/xlsx/xlsx.directive.ts","../../../../packages/abc/xlsx/xlsx.module.ts","../../../../packages/abc/xlsx/xlsx.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone } from '@angular/core';\n\nimport isUtf8 from 'isutf8';\n\nimport { AlainConfigService, AlainXlsxConfig } 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 { XlsxExportOptions, XlsxExportResult, XlsxExportSheet } from './xlsx.types';\n\ndeclare var XLSX: NzSafeAny;\ndeclare var cptable: NzSafeAny;\n\n@Injectable({ providedIn: 'root' })\nexport class XlsxService {\n constructor(\n private http: HttpClient,\n private lazy: LazyService,\n configSrv: AlainConfigService,\n private ngZone: NgZone\n ) {\n this.cog = configSrv.merge('xlsx', {\n url: 'https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js',\n modules: [`https://cdn.jsdelivr.net/npm/xlsx/dist/cpexcel.js`]\n })!;\n }\n private cog: AlainXlsxConfig;\n\n private init(): Promise<LazyResult[]> {\n return typeof XLSX !== 'undefined'\n ? Promise.resolve([])\n : this.lazy.load([this.cog.url!].concat(this.cog.modules!));\n }\n\n @ZoneOutside()\n private read(data: NzSafeAny): { [key: string]: NzSafeAny[][] } {\n const {\n read,\n utils: { sheet_to_json }\n } = XLSX;\n const ret: NzSafeAny = {};\n const buf = new Uint8Array(data);\n let type = 'array';\n if (!isUtf8(buf)) {\n try {\n data = cptable.utils.decode(936, buf);\n type = 'string';\n } catch {}\n }\n const wb = read(data, { type });\n wb.SheetNames.forEach((name: string) => {\n const sheet: NzSafeAny = wb.Sheets[name];\n ret[name] = sheet_to_json(sheet, { header: 1 });\n });\n return ret;\n }\n\n /**\n * 导入Excel并输出JSON,支持 `<input type=\"file\">`、URL 形式\n */\n import(fileOrUrl: File | string): Promise<{ [key: string]: NzSafeAny[][] }> {\n return new Promise<{ [key: string]: NzSafeAny[][] }>((resolve, reject) => {\n const r = (data: NzSafeAny): void => this.ngZone.run(() => resolve(this.read(data)));\n this.init()\n .then(() => {\n // from url\n if (typeof fileOrUrl === 'string') {\n this.http.request('GET', fileOrUrl, { responseType: 'arraybuffer' }).subscribe({\n next: (res: ArrayBuffer) => r(new Uint8Array(res)),\n error: (err: NzSafeAny) => reject(err)\n });\n return;\n }\n // from file\n const reader: FileReader = new FileReader();\n reader.onload = (e: NzSafeAny) => r(e.target.result);\n reader.onerror = (e: NzSafeAny) => reject(e);\n reader.readAsArrayBuffer(fileOrUrl);\n })\n .catch(() => reject(`Unable to load xlsx.js`));\n });\n }\n\n @ZoneOutside()\n async export(options: XlsxExportOptions): Promise<XlsxExportResult> {\n return new Promise<XlsxExportResult>((resolve, reject) => {\n this.init()\n .then(() => {\n options = { format: 'xlsx', ...options };\n const {\n writeFile,\n utils: { book_new, aoa_to_sheet, book_append_sheet }\n } = XLSX;\n const wb: NzSafeAny = book_new();\n if (Array.isArray(options.sheets)) {\n (options.sheets as XlsxExportSheet[]).forEach((value: XlsxExportSheet, index: number) => {\n const ws: NzSafeAny = aoa_to_sheet(value.data);\n book_append_sheet(wb, ws, value.name || `Sheet${index + 1}`);\n });\n } else {\n wb.SheetNames = Object.keys(options.sheets);\n wb.Sheets = options.sheets;\n }\n\n if (options.callback) options.callback(wb);\n\n const filename = options.filename || `export.${options.format}`;\n writeFile(wb, filename, {\n bookType: options.format,\n bookSST: false,\n type: 'array',\n ...options.opts\n });\n\n resolve({ filename, wb });\n })\n .catch(err => reject(err));\n });\n }\n\n /**\n * 数据转符号名\n * - `1` => `A`\n * - `27` => `AA`\n * - `703` => `AAA`\n */\n numberToSchema(val: number): string {\n const startCode = 'A'.charCodeAt(0);\n let res = '';\n\n do {\n --val;\n res = String.fromCharCode(startCode + (val % 26)) + res;\n val = (val / 26) >> 0;\n } while (val > 0);\n\n return res;\n }\n}\n","import { Directive, Input } from '@angular/core';\n\nimport { XlsxService } from './xlsx.service';\nimport { XlsxExportOptions } from './xlsx.types';\n\n@Directive({\n selector: '[xlsx]',\n exportAs: 'xlsx',\n host: {\n '(click)': '_click()'\n }\n})\nexport class XlsxDirective {\n @Input('xlsx') data!: XlsxExportOptions;\n\n constructor(private srv: XlsxService) {}\n\n _click(): void {\n this.srv.export(this.data);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { XlsxDirective } from './xlsx.directive';\n\nconst COMPONENTS = [XlsxDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class XlsxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.XlsxService"],"mappings":";;;;;;;;;;MAgBa,WAAW,CAAA;AACtB,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,MAAM,EAAE;AACjC,YAAA,GAAG,EAAE,yDAA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xlsx/xlsx.module.ts","../../../../packages/abc/xlsx/xlsx.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone } from '@angular/core';\n\nimport isUtf8 from 'isutf8';\n\nimport { AlainConfigService, AlainXlsxConfig } 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 { XlsxExportOptions, XlsxExportResult, XlsxExportSheet } from './xlsx.types';\n\ndeclare var XLSX: NzSafeAny;\ndeclare var cptable: NzSafeAny;\n\n@Injectable({ providedIn: 'root' })\nexport class XlsxService {\n constructor(\n private http: HttpClient,\n private lazy: LazyService,\n configSrv: AlainConfigService,\n private ngZone: NgZone\n ) {\n this.cog = configSrv.merge('xlsx', {\n url: 'https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js',\n modules: [`https://cdn.jsdelivr.net/npm/xlsx/dist/cpexcel.js`]\n })!;\n }\n private cog: AlainXlsxConfig;\n\n private init(): Promise<LazyResult[]> {\n return typeof XLSX !== 'undefined'\n ? Promise.resolve([])\n : this.lazy.load([this.cog.url!].concat(this.cog.modules!));\n }\n\n @ZoneOutside()\n private read(data: NzSafeAny): { [key: string]: NzSafeAny[][] } {\n const {\n read,\n utils: { sheet_to_json }\n } = XLSX;\n const ret: NzSafeAny = {};\n const buf = new Uint8Array(data);\n let type = 'array';\n if (!isUtf8(buf)) {\n try {\n data = cptable.utils.decode(936, buf);\n type = 'string';\n } catch {}\n }\n const wb = read(data, { type });\n wb.SheetNames.forEach((name: string) => {\n const sheet: NzSafeAny = wb.Sheets[name];\n ret[name] = sheet_to_json(sheet, { header: 1 });\n });\n return ret;\n }\n\n /**\n * 导入Excel并输出JSON,支持 `<input type=\"file\">`、URL 形式\n */\n import(fileOrUrl: File | string): Promise<{ [key: string]: NzSafeAny[][] }> {\n return new Promise<{ [key: string]: NzSafeAny[][] }>((resolve, reject) => {\n const r = (data: NzSafeAny): void => this.ngZone.run(() => resolve(this.read(data)));\n this.init()\n .then(() => {\n // from url\n if (typeof fileOrUrl === 'string') {\n this.http.request('GET', fileOrUrl, { responseType: 'arraybuffer' }).subscribe({\n next: (res: ArrayBuffer) => r(new Uint8Array(res)),\n error: (err: NzSafeAny) => reject(err)\n });\n return;\n }\n // from file\n const reader: FileReader = new FileReader();\n reader.onload = (e: NzSafeAny) => r(e.target.result);\n reader.onerror = (e: NzSafeAny) => reject(e);\n reader.readAsArrayBuffer(fileOrUrl);\n })\n .catch(() => reject(`Unable to load xlsx.js`));\n });\n }\n\n @ZoneOutside()\n async export(options: XlsxExportOptions): Promise<XlsxExportResult> {\n return new Promise<XlsxExportResult>((resolve, reject) => {\n this.init()\n .then(() => {\n options = { format: 'xlsx', ...options };\n const {\n writeFile,\n utils: { book_new, aoa_to_sheet, book_append_sheet }\n } = XLSX;\n const wb: NzSafeAny = book_new();\n if (Array.isArray(options.sheets)) {\n (options.sheets as XlsxExportSheet[]).forEach((value: XlsxExportSheet, index: number) => {\n const ws: NzSafeAny = aoa_to_sheet(value.data);\n book_append_sheet(wb, ws, value.name || `Sheet${index + 1}`);\n });\n } else {\n wb.SheetNames = Object.keys(options.sheets);\n wb.Sheets = options.sheets;\n }\n\n if (options.callback) options.callback(wb);\n\n const filename = options.filename || `export.${options.format}`;\n writeFile(wb, filename, {\n bookType: options.format,\n bookSST: false,\n type: 'array',\n ...options.opts\n });\n\n resolve({ filename, wb });\n })\n .catch(err => reject(err));\n });\n }\n\n /**\n * 数据转符号名\n * - `1` => `A`\n * - `27` => `AA`\n * - `703` => `AAA`\n */\n numberToSchema(val: number): string {\n const startCode = 'A'.charCodeAt(0);\n let res = '';\n\n do {\n --val;\n res = String.fromCharCode(startCode + (val % 26)) + res;\n val = (val / 26) >> 0;\n } while (val > 0);\n\n return res;\n }\n}\n","import { Directive, Input } from '@angular/core';\n\nimport { XlsxService } from './xlsx.service';\nimport { XlsxExportOptions } from './xlsx.types';\n\n@Directive({\n selector: '[xlsx]',\n exportAs: 'xlsx',\n host: {\n '(click)': '_click()'\n },\n standalone: true\n})\nexport class XlsxDirective {\n @Input('xlsx') data!: XlsxExportOptions;\n\n constructor(private srv: XlsxService) {}\n\n _click(): void {\n this.srv.export(this.data);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { XlsxDirective } from './xlsx.directive';\n\nconst COMPONENTS = [XlsxDirective];\n\n@NgModule({\n imports: [COMPONENTS],\n exports: COMPONENTS\n})\nexport class XlsxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.XlsxService"],"mappings":";;;;;;;;;MAgBa,WAAW,CAAA;AACtB,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,MAAM,EAAE;AACjC,YAAA,GAAG,EAAE,yDAAyD;YAC9D,OAAO,EAAE,CAAC,CAAA,iDAAA,CAAmD,CAAC;AAC/D,SAAA,CAAE,CAAC;KACL;IAGO,IAAI,GAAA;QACV,OAAO,OAAO,IAAI,KAAK,WAAW;AAChC,cAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;cACnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAQ,CAAC,CAAC,CAAC;KAC/D;AAGO,IAAA,IAAI,CAAC,IAAe,EAAA;QAC1B,MAAM,EACJ,IAAI,EACJ,KAAK,EAAE,EAAE,aAAa,EAAE,EACzB,GAAG,IAAI,CAAC;QACT,MAAM,GAAG,GAAc,EAAE,CAAC;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,EAAA,CAAb,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;+GAMpB,UAAU,EAAA,CAAA,CAAA,EAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
package/fesm2022/zip.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable
|
|
3
|
+
import { Injectable } from '@angular/core';
|
|
4
4
|
import { saveAs } from 'file-saver';
|
|
5
5
|
import { ZoneOutside } from '@delon/util/decorator';
|
|
6
6
|
import * as i1 from '@angular/common/http';
|
|
7
7
|
import * as i2 from '@delon/util/other';
|
|
8
8
|
import * as i3 from '@delon/util/config';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
9
|
|
|
11
10
|
class ZipService {
|
|
12
11
|
constructor(http, lazy, configSrv, ngZone) {
|
|
@@ -105,32 +104,20 @@ class ZipService {
|
|
|
105
104
|
});
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
109
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ZipService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ZipService, providedIn: 'root' }); }
|
|
110
109
|
}
|
|
111
110
|
__decorate([
|
|
112
111
|
ZoneOutside()
|
|
113
112
|
], ZipService.prototype, "read", null);
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ZipService, decorators: [{
|
|
115
114
|
type: Injectable,
|
|
116
115
|
args: [{ providedIn: 'root' }]
|
|
117
|
-
}], ctorParameters:
|
|
118
|
-
|
|
119
|
-
class ZipModule {
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
121
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ZipModule, imports: [CommonModule] }); }
|
|
122
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZipModule, imports: [CommonModule] }); }
|
|
123
|
-
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZipModule, decorators: [{
|
|
125
|
-
type: NgModule,
|
|
126
|
-
args: [{
|
|
127
|
-
imports: [CommonModule]
|
|
128
|
-
}]
|
|
129
|
-
}] });
|
|
116
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.LazyService }, { type: i3.AlainConfigService }, { type: i0.NgZone }], propDecorators: { read: [] } });
|
|
130
117
|
|
|
131
118
|
/**
|
|
132
119
|
* Generated bundle index. Do not edit.
|
|
133
120
|
*/
|
|
134
121
|
|
|
135
|
-
export {
|
|
122
|
+
export { ZipService };
|
|
136
123
|
//# sourceMappingURL=zip.mjs.map
|
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.
|
|
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 } 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","/**\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,KA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AA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cADG,MAAM,EAAA,CAAA,CAAA,EAAA;;AA0B9B,UAAA,CAAA;AADC,IAAA,WAAW,EAAE;AA2Bb,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,MAAA,EAAA,IAAA,CAAA,CAAA;2FAnDU,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;+JA0BhC,IAAI,EAAA,EAAA,EAAA,EAAA,CAAA;;ACzCN;;AAEG;;;;"}
|
|
@@ -14,5 +14,5 @@ export declare class HotkeyDirective implements OnDestroy {
|
|
|
14
14
|
constructor(el: ElementRef<HTMLElement>, ngZone: NgZone, platform: Platform);
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HotkeyDirective, "[hotkey]", never, { "hotkey": { "alias": "hotkey"; "required": false; }; }, {}, never, never,
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HotkeyDirective, "[hotkey]", never, { "hotkey": { "alias": "hotkey"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -2,6 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./hotkey.directive";
|
|
3
3
|
export declare class HotkeyModule {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HotkeyModule, [typeof i1.HotkeyDirective],
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HotkeyModule, never, [typeof i1.HotkeyDirective], [typeof i1.HotkeyDirective]>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<HotkeyModule>;
|
|
7
7
|
}
|
package/let/let.directive.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export declare class LetDirective<T> {
|
|
|
12
12
|
constructor(vc: ViewContainerRef, ref: TemplateRef<LetContext<T>>);
|
|
13
13
|
static ngTemplateContextGuard<T>(_dir: LetDirective<T>, _ctx: NzSafeAny): _ctx is LetDirective<T>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[let]", never, { "let": { "alias": "let"; "required": true; }; }, {}, never, never,
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[let]", never, { "let": { "alias": "let"; "required": true; }; }, {}, never, never, true, never>;
|
|
16
16
|
}
|
package/let/let.module.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./let.directive";
|
|
3
3
|
export declare class LetModule {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<LetModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LetModule, [typeof i1.LetDirective],
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LetModule, never, [typeof i1.LetDirective], [typeof i1.LetDirective]>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<LetModule>;
|
|
7
7
|
}
|
package/loading/style/index.less
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
@{loading-prefix} {
|
|
5
5
|
&-backdrop {
|
|
6
6
|
z-index: @loading-zindex;
|
|
7
|
-
background-color: @loading-backdrop-bg;
|
|
8
7
|
opacity: 1;
|
|
8
|
+
background-color: @loading-backdrop-bg;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&-default {
|
|
12
12
|
position: fixed;
|
|
13
|
-
inset: 0;
|
|
14
13
|
z-index: @loading-zindex + 1;
|
|
14
|
+
inset: 0;
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
align-items: center;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
&__icon {
|
|
21
21
|
margin-bottom: 8px;
|
|
22
|
-
color: @loading-icon-color;
|
|
23
22
|
font-size: 24px;
|
|
23
|
+
color: @loading-icon-color;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&__text {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
width: 336px;
|
|
6
6
|
|
|
7
7
|
&__btn {
|
|
8
|
-
display: inline-block;
|
|
9
8
|
cursor: pointer;
|
|
9
|
+
display: inline-block;
|
|
10
10
|
transition: all 0.3s;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.@{ant-prefix}-list {
|
|
31
|
-
max-height: 400px;
|
|
32
31
|
overflow: auto;
|
|
32
|
+
max-height: 400px;
|
|
33
33
|
|
|
34
34
|
&-item {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
overflow: hidden;
|
|
35
37
|
padding-right: 24px;
|
|
36
38
|
padding-left: 24px;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
cursor: pointer;
|
|
39
39
|
transition: all 0.3s;
|
|
40
40
|
|
|
41
41
|
&:last-child {
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&__clear {
|
|
77
|
+
cursor: pointer;
|
|
77
78
|
height: 46px;
|
|
78
|
-
color: @text-color;
|
|
79
79
|
line-height: 46px;
|
|
80
|
+
color: @text-color;
|
|
80
81
|
text-align: center;
|
|
81
82
|
border-top: 1px solid @border-color-split;
|
|
82
83
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
83
|
-
cursor: pointer;
|
|
84
84
|
transition: all 0.3s;
|
|
85
85
|
|
|
86
86
|
&:hover {
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
float: right;
|
|
113
113
|
margin-top: -1.5px;
|
|
114
114
|
margin-right: 0;
|
|
115
|
-
color: @text-color-secondary;
|
|
116
115
|
font-weight: normal;
|
|
116
|
+
color: @text-color-secondary;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -23,10 +23,10 @@ export declare class ObserverSize implements AfterViewInit, OnDestroy {
|
|
|
23
23
|
private _unsub;
|
|
24
24
|
ngOnDestroy(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObserverSize, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ObserverSize, "[observeSize]", ["observeSize"], {}, { "event": "observeSize"; }, never, never,
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ObserverSize, "[observeSize]", ["observeSize"], {}, { "event": "observeSize"; }, never, never, true, never>;
|
|
27
27
|
}
|
|
28
28
|
export declare class ObserversModule {
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObserversModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ObserversModule, [typeof ObserverSize],
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ObserversModule, never, [typeof ObserverSize], [typeof ObserverSize]>;
|
|
31
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<ObserversModule>;
|
|
32
32
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
&__mask {
|
|
10
10
|
position: fixed;
|
|
11
|
-
inset: 0;
|
|
12
11
|
z-index: @onboarding-zindex - 1;
|
|
13
|
-
|
|
12
|
+
inset: 0;
|
|
14
13
|
opacity: @onboarding-mask-opacity;
|
|
14
|
+
background-color: @onboarding-mask-background-color;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&__item {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&__light {
|
|
22
|
+
pointer-events: none;
|
|
22
23
|
position: absolute;
|
|
23
24
|
z-index: @onboarding-zindex;
|
|
24
25
|
background-color: @onboarding-light-background-color;
|
|
25
26
|
animation: @onboarding-light-ant;
|
|
26
|
-
pointer-events: none;
|
|
27
27
|
|
|
28
28
|
&-el {
|
|
29
29
|
// position: relative;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/abc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"jszip": "^3.10.1",
|
|
27
27
|
"xlsx": "^0.18.5",
|
|
28
28
|
"plyr": "^3.7.8",
|
|
29
|
-
"@github/hotkey": "^2.0
|
|
30
|
-
"ngx-countdown": "^
|
|
31
|
-
"@delon/theme": "^
|
|
32
|
-
"@delon/util": "^
|
|
33
|
-
"@delon/acl": "^
|
|
29
|
+
"@github/hotkey": "^2.3.0",
|
|
30
|
+
"ngx-countdown": "^17.0.0",
|
|
31
|
+
"@delon/theme": "^17.0.0",
|
|
32
|
+
"@delon/util": "^17.0.0",
|
|
33
|
+
"@delon/acl": "^17.0.0",
|
|
34
34
|
"tslib": "^2.3.0"
|
|
35
35
|
},
|
|
36
36
|
"module": "fesm2022/abc.mjs",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__title {
|
|
48
|
-
color: @heading-color;
|
|
49
|
-
font-weight: 500;
|
|
50
48
|
font-size: 20px;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
color: @heading-color;
|
|
51
51
|
|
|
52
52
|
small {
|
|
53
53
|
padding-left: @layout-gutter;
|
|
54
|
-
color: @page-header-title-sub-color;
|
|
55
|
-
font-weight: normal;
|
|
56
54
|
font-size: 14px;
|
|
55
|
+
font-weight: normal;
|
|
56
|
+
color: @page-header-title-sub-color;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
package/pdf/style/index.less
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
@{quick-menu-prefix} {
|
|
5
5
|
position: fixed;
|
|
6
|
+
z-index: @zindex + 2;
|
|
6
7
|
right: -@quick-menu-border-width;
|
|
7
8
|
left: auto;
|
|
8
|
-
z-index: @zindex + 2;
|
|
9
9
|
display: block;
|
|
10
10
|
backface-visibility: hidden;
|
|
11
11
|
transition: margin 0.3s cubic-bezier(1, 0, 0, 1);
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&__ctrl {
|
|
26
|
+
cursor: pointer;
|
|
26
27
|
position: absolute;
|
|
27
28
|
top: -1px;
|
|
28
29
|
left: -@quick-menu-ctrl-hw;
|
|
@@ -31,7 +32,6 @@
|
|
|
31
32
|
text-align: center;
|
|
32
33
|
border-right: 0;
|
|
33
34
|
border-radius: 3px 0 0 3px;
|
|
34
|
-
cursor: pointer;
|
|
35
35
|
|
|
36
36
|
&-icon {
|
|
37
37
|
font-size: 20px;
|
package/result/style/index.less
CHANGED
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
margin: 0 auto;
|
|
8
8
|
text-align: center;
|
|
9
9
|
|
|
10
|
-
@media screen and (max-width: @screen-xs) {
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
&__icon {
|
|
15
11
|
margin-bottom: 24px;
|
|
16
12
|
font-size: 72px;
|
|
@@ -27,17 +23,17 @@
|
|
|
27
23
|
|
|
28
24
|
&__title {
|
|
29
25
|
margin-bottom: 16px;
|
|
30
|
-
color: @heading-color;
|
|
31
|
-
font-weight: 500;
|
|
32
26
|
font-size: 24px;
|
|
27
|
+
font-weight: 500;
|
|
33
28
|
line-height: 32px;
|
|
29
|
+
color: @heading-color;
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
&__desc {
|
|
37
33
|
margin-bottom: 24px;
|
|
38
|
-
color: @text-color-secondary;
|
|
39
34
|
font-size: 14px;
|
|
40
35
|
line-height: 22px;
|
|
36
|
+
color: @text-color-secondary;
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
&__extra {
|
|
@@ -62,6 +58,10 @@
|
|
|
62
58
|
.@{ant-prefix}-steps .@{ant-prefix}-steps-title {
|
|
63
59
|
background: @result-extra-bg;
|
|
64
60
|
}
|
|
61
|
+
|
|
62
|
+
@media screen and (max-width: @screen-xs) {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
@import './rtl.less';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
|
+
import { ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
|
|
3
|
+
export declare enum ReuseTabFeatureKind {
|
|
4
|
+
CacheManager = 0,
|
|
5
|
+
Store = 1
|
|
6
|
+
}
|
|
7
|
+
export interface ReuseTabFeature<KindT extends ReuseTabFeatureKind> {
|
|
8
|
+
ɵkind: KindT;
|
|
9
|
+
ɵproviders: Provider[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Configures reuse-tab to be available for injection.
|
|
13
|
+
*
|
|
14
|
+
* @see {@link withLocalStorage}
|
|
15
|
+
* @see {@link withCacheManager}
|
|
16
|
+
*/
|
|
17
|
+
export declare function provideReuseTabConfig(options?: {
|
|
18
|
+
debug?: boolean;
|
|
19
|
+
mode?: ReuseTabMatchMode;
|
|
20
|
+
routeParamMatchMode?: ReuseTabRouteParamMatchMode;
|
|
21
|
+
max?: number;
|
|
22
|
+
excludes?: RegExp[];
|
|
23
|
+
storeKey?: string;
|
|
24
|
+
cacheManager?: ReuseTabFeature<ReuseTabFeatureKind.CacheManager>;
|
|
25
|
+
store?: ReuseTabFeature<ReuseTabFeatureKind.Store>;
|
|
26
|
+
}): EnvironmentProviders;
|
|
27
|
+
export declare function withCacheManager(): ReuseTabFeature<ReuseTabFeatureKind.CacheManager>;
|
|
28
|
+
export declare function withLocalStorage(): ReuseTabFeature<ReuseTabFeatureKind.Store>;
|
|
@@ -19,5 +19,5 @@ export declare class ReuseTabContextMenuComponent implements OnInit {
|
|
|
19
19
|
isDisabled(custom: ReuseCustomContextMenu): boolean;
|
|
20
20
|
closeMenu(event: MouseEvent): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextMenuComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": { "alias": "i18n"; "required": false; }; "item": { "alias": "item"; "required": false; }; "event": { "alias": "event"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; }, { "close": "close"; }, never, never,
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": { "alias": "i18n"; "required": false; }; "item": { "alias": "item"; "required": false; }; "event": { "alias": "event"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ReuseTabContextComponent implements OnDestroy {
|
|
|
10
10
|
constructor(srv: ReuseTabContextService);
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": { "alias": "i18n"; "required": false; }; }, { "change": "change"; }, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": { "alias": "i18n"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -8,5 +8,5 @@ export declare class ReuseTabContextDirective {
|
|
|
8
8
|
constructor(srv: ReuseTabContextService);
|
|
9
9
|
_onContextMenu(event: MouseEvent): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": { "alias": "reuse-tab-context-menu"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; }, {}, never, never,
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": { "alias": "reuse-tab-context-menu"; "required": false; }; "customContextMenu": { "alias": "customContextMenu"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -84,5 +84,5 @@ export declare class ReuseTabComponent implements OnInit, OnChanges {
|
|
|
84
84
|
[P in keyof this]?: SimpleChange;
|
|
85
85
|
} & SimpleChanges): void;
|
|
86
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
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,
|
|
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, true, never>;
|
|
88
88
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/router";
|
|
4
|
+
import * as i3 from "@delon/theme";
|
|
5
|
+
import * as i4 from "ng-zorro-antd/menu";
|
|
6
|
+
import * as i5 from "ng-zorro-antd/tabs";
|
|
7
|
+
import * as i6 from "ng-zorro-antd/icon";
|
|
8
|
+
import * as i7 from "@angular/cdk/overlay";
|
|
9
|
+
import * as i8 from "./reuse-tab.component";
|
|
10
|
+
import * as i9 from "./reuse-tab-context-menu.component";
|
|
11
|
+
import * as i10 from "./reuse-tab-context.component";
|
|
12
|
+
import * as i11 from "./reuse-tab-context.directive";
|
|
13
13
|
export declare class ReuseTabModule {
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ReuseTabModule, [typeof i1.
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReuseTabModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.DelonLocaleModule, typeof i4.NzMenuModule, typeof i5.NzTabsModule, typeof i6.NzIconModule, typeof i7.OverlayModule, typeof i8.ReuseTabComponent, typeof i9.ReuseTabContextMenuComponent, typeof i10.ReuseTabContextComponent, typeof i11.ReuseTabContextDirective], [typeof i8.ReuseTabComponent]>;
|
|
16
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<ReuseTabModule>;
|
|
17
17
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
@reuse-tab-prefix: ~'.reuse-tab';
|
|
3
3
|
|
|
4
4
|
@{reuse-tab-prefix} {
|
|
5
|
+
user-select: none;
|
|
5
6
|
display: block;
|
|
6
7
|
background-color: @reuse-tab-bg;
|
|
7
8
|
outline: none;
|
|
8
|
-
user-select: none;
|
|
9
9
|
.@{ant-prefix}-tabs {
|
|
10
10
|
&-nav .@{ant-prefix}-tabs-tab {
|
|
11
11
|
@{reuse-tab-prefix}__op {
|
|
12
12
|
position: absolute;
|
|
13
13
|
display: none;
|
|
14
14
|
margin: 0;
|
|
15
|
-
color: @text-color;
|
|
16
15
|
font-size: 10px;
|
|
16
|
+
color: @text-color;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
@{reuse-tab-prefix}__name {
|
|
25
25
|
&-width {
|
|
26
|
-
display: inline-block;
|
|
27
26
|
overflow: hidden;
|
|
27
|
+
display: inline-block;
|
|
28
28
|
text-overflow: ellipsis;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__disabled {
|
|
74
|
-
opacity: 0.8;
|
|
75
74
|
pointer-events: none;
|
|
75
|
+
opacity: 0.8;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|