@solar-angular/ui-zorro 19.0.0 → 19.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"solar-angular-ui-zorro-updater.mjs","sources":["../../../packages/ui-zorro/updater/app-updater.ts","../../../packages/ui-zorro/updater/updater.component.ts","../../../packages/ui-zorro/updater/updater.component.html","../../../packages/ui-zorro/updater/solar-angular-ui-zorro-updater.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { NzMessageService } from 'ng-zorro-antd/message';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppUpdater {\n protected readonly update = inject(SwUpdate);\n protected readonly message = inject(NzMessageService);\n\n checkForUpdate() {\n const loading = this.message.loading('正在检查更新...', { nzDuration: 0 });\n\n this.update.checkForUpdate()\n // 这里我们只处理 bool 为 false 的情况;如果为 true,意味着有新版本,应该由 sun-updates 组件处理\n .then(bool => bool || this.message.info('当前已是最新版本'))\n .catch(() => this.message.error('检查更新失败'))\n .finally(() => this.message.remove(loading.messageId));\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, TemplateRef, ViewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { SwUpdate } from '@angular/service-worker';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzNotificationComponent, NzNotificationModule, NzNotificationRef, NzNotificationService } from 'ng-zorro-antd/notification';\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { exhaustMap, filter, tap } from 'rxjs';\n\n@Component({\n selector: 'sun-updater',\n imports: [\n NzIconModule,\n NzButtonModule,\n NzSpaceModule,\n NzNotificationModule\n ],\n templateUrl: './updater.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SunUpdater {\n private readonly location = inject(DOCUMENT).defaultView!.location;\n private readonly notification = inject(NzNotificationService);\n\n @ViewChild(TemplateRef, { static: true }) templateRef!: TemplateRef<any>;\n\n constructor() {\n const updater = inject(SwUpdate);\n\n let loadingRef: NzNotificationRef;\n\n updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_DETECTED'),\n tap(() => {\n loadingRef = this.notification.info(\n '温馨提示',\n '发现新版本,正在下载更新...',\n { nzCloseIcon: 'loading', nzDuration: 0 }\n );\n }),\n exhaustMap(() => updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_READY')\n )),\n takeUntilDestroyed()\n ).subscribe(() => {\n this.notification.remove(loadingRef.messageId);\n this.present();\n })\n\n updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_INSTALLATION_FAILED'),\n takeUntilDestroyed()\n ).subscribe(event => {\n this.notification.remove(loadingRef.messageId);\n this.notification.error(\n '温馨提示',\n '新版本安装失败,原因:' + event.error,\n { nzDuration: 0 }\n );\n })\n\n updater.unrecoverable.pipe(\n takeUntilDestroyed()\n ).subscribe(event => {\n alert(`发生错误,我们无法从 ${event.reason} 恢复,请重新加载页面。`);\n });\n }\n\n private present() {\n this.notification.info(\n '新版本已就绪',\n '为了让您获得更好的使用体验,我们建议您立即进行更新。',\n {\n nzButton: this.templateRef,\n nzDuration: 0\n }\n );\n }\n\n update() {\n this.location.reload();\n }\n\n defer(notification: NzNotificationComponent) {\n notification.close();\n\n setTimeout(() => {\n this.present();\n }, 1000 * 60 * 5); // 5min\n }\n}\n","<ng-template let-notification>\n <nz-space>\n <button *nzSpaceItem nz-button nzType=\"link\" nzSize=\"small\" (click)=\"defer(notification)\">稍后提醒</button>\n <button *nzSpaceItem nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"update()\">立即更新</button>\n </nz-space>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAOa,UAAU,CAAA;AAHvB,IAAA,WAAA,GAAA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.component.ts","../../../packages/ui-zorro/updater/updater.component.html","../../../packages/ui-zorro/updater/solar-angular-ui-zorro-updater.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { NzMessageService } from 'ng-zorro-antd/message';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppUpdater {\n protected readonly update = inject(SwUpdate);\n protected readonly message = inject(NzMessageService);\n\n checkForUpdate() {\n this.update.checkForUpdate()\n // 这里我们只处理 bool 为 false 的情况;如果为 true,意味着有新版本,应该由 sun-updates 组件处理\n .then(bool => bool || this.message.info('当前已是最新版本'))\n .catch(() => this.message.error('检查更新失败'))\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, TemplateRef, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { SwUpdate } from '@angular/service-worker';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzNotificationComponent, NzNotificationRef, NzNotificationService } from 'ng-zorro-antd/notification';\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { exhaustMap, filter } from 'rxjs';\n\n@Component({\n selector: 'sun-updater',\n imports: [\n NzIconModule,\n NzButtonModule,\n NzSpaceModule\n ],\n templateUrl: './updater.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SunUpdater {\n private readonly location = inject(DOCUMENT).defaultView!.location;\n private readonly notification = inject(NzNotificationService);\n\n readonly templateRef = viewChild.required(TemplateRef);\n\n constructor() {\n const updater = inject(SwUpdate);\n\n let loadingRef: NzNotificationRef;\n\n updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_DETECTED'),\n exhaustMap(() => {\n loadingRef = this.notification.info(\n '温馨提示',\n '发现新版本,正在下载更新...',\n { nzCloseIcon: 'loading', nzDuration: 0 }\n );\n return updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_READY')\n )\n }),\n takeUntilDestroyed()\n ).subscribe(() => {\n this.notification.remove(loadingRef.messageId);\n this.present();\n })\n\n updater.versionUpdates.pipe(\n filter(event => event.type === 'VERSION_INSTALLATION_FAILED'),\n takeUntilDestroyed()\n ).subscribe(event => {\n this.notification.remove(loadingRef.messageId);\n this.notification.error(\n '温馨提示',\n '新版本安装失败,原因:' + event.error,\n { nzDuration: 0 }\n );\n })\n\n updater.unrecoverable.pipe(\n takeUntilDestroyed()\n ).subscribe(event => {\n alert(`发生错误,我们无法从 ${event.reason} 恢复,请重新加载页面。`);\n });\n }\n\n private present() {\n this.notification.info(\n '新版本已就绪',\n '为了让您获得更好的使用体验,我们建议您立即进行更新。',\n {\n nzButton: this.templateRef(),\n nzDuration: 0\n }\n );\n }\n\n update() {\n this.location.reload();\n }\n\n defer(notification: NzNotificationComponent) {\n notification.close();\n\n setTimeout(() => {\n this.present();\n }, 1000 * 60 * 5); // 5min\n }\n}\n","<ng-template let-notification>\n <nz-space>\n <button *nzSpaceItem nz-button nzType=\"link\" nzSize=\"small\" (click)=\"defer(notification)\">稍后提醒</button>\n <button *nzSpaceItem nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"update()\">立即更新</button>\n </nz-space>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAOa,UAAU,CAAA;AAHvB,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAQtD;IANC,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,MAAM,CAAC,cAAc;;AAEvB,aAAA,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;AAClD,aAAA,KAAK,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC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,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAKJ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAVtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EACd,OAAA,EAAA;wBACP,YAAY;wBACZ,cAAc;wBACd;qBACD,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qVAAA,EAAA;;;AElBjD;;AAEG;;;;"}
@@ -1,8 +1,9 @@
1
+ import { Builder, SingleSchemaKey } from '@fluent-form/core';
2
+ import { FormGroupSchema } from '@fluent-form/ui-zorro';
1
3
  import { NzSafeAny } from 'ng-zorro-antd/core/types';
2
4
  /**
3
5
  * 实体表单
4
6
  *
5
7
  * 内置了一个 Headless ID 控件图示:`headless('id')`
6
- * @param schemas
7
8
  */
8
- export declare function entityForm(composeFn: () => NzSafeAny): import("@angular/core").Signal<import("@fluent-form/core").AbstractFormGroupSchema>;
9
+ export declare function entityForm(composeFn: (it: Builder<FormGroupSchema<SingleSchemaKey>>) => NzSafeAny): import("@angular/core").Signal<FormGroupSchema<SingleSchemaKey>>;
@@ -1,4 +1,3 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { NzUploadChangeParam, NzUploadFile, NzUploadXHRArgs } from 'ng-zorro-antd/upload';
3
2
  import { Observable } from 'rxjs';
4
3
  import * as i0 from "@angular/core";
@@ -19,35 +18,28 @@ export declare class SunMediaUploader {
19
18
  private readonly imageCompressor;
20
19
  private readonly message;
21
20
  private readonly fileManager;
22
- data: SunMedia[];
23
- limit: number;
24
- deletable: boolean;
25
- uploadable: boolean;
26
- previewable: boolean;
27
- downloadable: boolean;
28
- shape: 'circle' | 'square';
29
- uploadKeys: Observable<import("@solar-kit/planets/earth").UploadKeys>;
21
+ readonly data: import("@angular/core").ModelSignal<SunMedia[]>;
22
+ readonly limit: import("@angular/core").InputSignalWithTransform<number, unknown>;
23
+ readonly deletable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24
+ readonly uploadable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
+ readonly previewable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
26
+ readonly downloadable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
27
+ readonly shape: import("@angular/core").InputSignal<"circle" | "square">;
28
+ readonly uploadKeys: import("@angular/core").InputSignal<Observable<import("@solar-kit/planets/earth").UploadKeys>>;
30
29
  /** 启用图片压缩 */
31
- compress: boolean;
32
- uploaded: EventEmitter<{
30
+ readonly compress: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
+ readonly uploaded: import("@angular/core").OutputEmitterRef<{
33
32
  key: string;
34
33
  hash: string;
35
34
  url: string;
36
35
  }>;
37
- delete: EventEmitter<SunMedia>;
38
- error: EventEmitter<SunMedia>;
39
- dataChange: EventEmitter<SunMedia[]>;
36
+ readonly delete: import("@angular/core").OutputEmitterRef<SunMedia>;
37
+ readonly error: import("@angular/core").OutputEmitterRef<SunMedia>;
40
38
  get transform(): (file: NzUploadFile) => Observable<Blob>;
41
- upload: (args: NzUploadXHRArgs) => import("rxjs").Subscription;
39
+ readonly upload: (args: NzUploadXHRArgs) => import("rxjs").Subscription;
42
40
  onChange({ type, file, event }: NzUploadChangeParam): void;
43
41
  onPreview(media: SunMedia): void;
44
42
  onDownload(media: SunMedia): void;
45
43
  static ɵfac: i0.ɵɵFactoryDeclaration<SunMediaUploader, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<SunMediaUploader, "sun-media-uploader", never, { "data": { "alias": "data"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "deletable": { "alias": "deletable"; "required": false; }; "uploadable": { "alias": "uploadable"; "required": false; }; "previewable": { "alias": "previewable"; "required": false; }; "downloadable": { "alias": "downloadable"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "uploadKeys": { "alias": "uploadKeys"; "required": false; }; "compress": { "alias": "compress"; "required": false; }; }, { "uploaded": "uploaded"; "delete": "delete"; "error": "error"; "dataChange": "dataChange"; }, never, never, true, never>;
47
- static ngAcceptInputType_limit: unknown;
48
- static ngAcceptInputType_deletable: unknown;
49
- static ngAcceptInputType_uploadable: unknown;
50
- static ngAcceptInputType_previewable: unknown;
51
- static ngAcceptInputType_downloadable: unknown;
52
- static ngAcceptInputType_compress: unknown;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<SunMediaUploader, "sun-media-uploader", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; "uploadable": { "alias": "uploadable"; "required": false; "isSignal": true; }; "previewable": { "alias": "previewable"; "required": false; "isSignal": true; }; "downloadable": { "alias": "downloadable"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "uploadKeys": { "alias": "uploadKeys"; "required": false; "isSignal": true; }; "compress": { "alias": "compress"; "required": false; "isSignal": true; }; }, { "data": "dataChange"; "uploaded": "uploaded"; "delete": "delete"; "error": "error"; }, never, never, true, never>;
53
45
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@solar-angular/ui-zorro",
3
- "version": "19.0.0",
3
+ "version": "19.0.2",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
- "@solar-angular/core": "19.0.0",
10
- "@solar-angular/planets": "19.0.0",
11
- "@solar-angular/platform-browser": "19.0.0",
9
+ "@solar-angular/core": "19.0.2",
10
+ "@solar-angular/planets": "19.0.2",
11
+ "@solar-angular/platform-browser": "19.0.2",
12
12
  "tslib": "^2.3.0"
13
13
  },
14
14
  "peerDependencies": {
@@ -18,8 +18,8 @@
18
18
  "@angular/forms": "^19.0.0",
19
19
  "@angular/service-worker": "^19.0.0",
20
20
  "@solar-kit/core": "^1.0.6",
21
- "@fluent-form/core": ">=0.28.0",
22
- "@fluent-form/ui-zorro": ">=0.28.0",
21
+ "@fluent-form/core": ">=0.29.0",
22
+ "@fluent-form/ui-zorro": ">=0.29.0",
23
23
  "ng-zorro-antd": "^19.0.0"
24
24
  },
25
25
  "module": "fesm2022/solar-angular-ui-zorro.mjs",
@@ -36,22 +36,22 @@
36
36
  "types": "./crud/index.d.ts",
37
37
  "default": "./fesm2022/solar-angular-ui-zorro-crud.mjs"
38
38
  },
39
- "./fan-popover": {
40
- "types": "./fan-popover/index.d.ts",
41
- "default": "./fesm2022/solar-angular-ui-zorro-fan-popover.mjs"
42
- },
43
- "./media-uploader": {
44
- "types": "./media-uploader/index.d.ts",
45
- "default": "./fesm2022/solar-angular-ui-zorro-media-uploader.mjs"
46
- },
47
39
  "./fluent-form": {
48
40
  "types": "./fluent-form/index.d.ts",
49
41
  "default": "./fesm2022/solar-angular-ui-zorro-fluent-form.mjs"
50
42
  },
43
+ "./fan-popover": {
44
+ "types": "./fan-popover/index.d.ts",
45
+ "default": "./fesm2022/solar-angular-ui-zorro-fan-popover.mjs"
46
+ },
51
47
  "./message": {
52
48
  "types": "./message/index.d.ts",
53
49
  "default": "./fesm2022/solar-angular-ui-zorro-message.mjs"
54
50
  },
51
+ "./media-uploader": {
52
+ "types": "./media-uploader/index.d.ts",
53
+ "default": "./fesm2022/solar-angular-ui-zorro-media-uploader.mjs"
54
+ },
55
55
  "./page-forbidden": {
56
56
  "types": "./page-forbidden/index.d.ts",
57
57
  "default": "./fesm2022/solar-angular-ui-zorro-page-forbidden.mjs"
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class SunUpdater {
5
5
  private readonly location;
6
6
  private readonly notification;
7
- templateRef: TemplateRef<any>;
7
+ readonly templateRef: import("@angular/core").Signal<TemplateRef<any>>;
8
8
  constructor();
9
9
  private present;
10
10
  update(): void;