ngx-axis-appforge 0.0.51 → 0.0.53

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.
Files changed (31) hide show
  1. package/axis-components/rich-text-editor/design/index.d.ts +5 -0
  2. package/axis-components/rich-text-editor/index.d.ts +28 -0
  3. package/axis-components/table/index.d.ts +1 -1
  4. package/axis-components/table-helper/index.d.ts +1 -0
  5. package/axis-components-covers/rate.svg +2 -2
  6. package/axis-components-covers/rich-text-editor.png +0 -0
  7. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +2 -2
  8. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
  9. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +1 -1
  10. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
  11. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +3 -3
  12. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
  13. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +2 -2
  14. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
  15. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +2 -2
  16. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
  17. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +76 -0
  18. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -0
  19. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +141 -0
  20. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -0
  21. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +3 -0
  22. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
  23. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +4 -4
  24. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  25. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +19 -13
  26. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
  27. package/fesm2022/ngx-axis-appforge-axis-components.mjs +19 -2
  28. package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
  29. package/fesm2022/ngx-axis-appforge-core.mjs +76 -4
  30. package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
  31. package/package.json +135 -125
@@ -0,0 +1,5 @@
1
+ import { DesignConfig } from 'ngx-axis-appforge/core';
2
+
3
+ declare const Config: DesignConfig;
4
+
5
+ export { Config };
@@ -0,0 +1,28 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
3
+ import { EditorComponent } from '@tinymce/tinymce-angular';
4
+ import { RawEditorOptions } from 'tinymce';
5
+
6
+ declare class RichTextEditorOptions extends ValueAccessOptions {
7
+ readonly fileUploadUrl: _angular_core.WritableSignal<string>;
8
+ readonly fileUploadFormName: _angular_core.WritableSignal<string>;
9
+ readonly fileUploadResponseFn: _angular_core.WritableSignal<string>;
10
+ readonly tinymceOptions: _angular_core.WritableSignal<any>;
11
+ }
12
+
13
+ declare class RichTextEditor extends ValueAccess<RichTextEditorOptions> {
14
+ options: RichTextEditorOptions;
15
+ private readonly fileBaseUrl;
16
+ private readonly http;
17
+ private platformLocation;
18
+ editor: EditorComponent;
19
+ editorConfig: _angular_core.Signal<any>;
20
+ filePickerCallback(callback: (value: string, meta?: Record<string, any>) => void, value: string, meta: Record<string, any>): void;
21
+ uploadHandler(blobInfo: any, progress: any): Promise<string>;
22
+ getUrl(url: string): string;
23
+ defaultEditorConfig: RawEditorOptions;
24
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RichTextEditor, never>;
25
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RichTextEditor, "axis-rich-text-editor", never, {}, {}, never, never, true, never>;
26
+ }
27
+
28
+ export { RichTextEditor };
@@ -123,7 +123,7 @@ declare class Table extends Base<TableOptions> {
123
123
  readonly rowActions: _angular_core.Signal<any[]>;
124
124
  readonly actionsFieldWidth: _angular_core.Signal<number>;
125
125
  readonly fixFields: _angular_core.WritableSignal<TableFieldOptions[]>;
126
- readonly backendPageParamsChange: Subject<any>;
126
+ readonly backendPageParamsChange: Subject<void>;
127
127
  timer?: number;
128
128
  resizeHandleOffsetX(field: TableFieldOptions): number;
129
129
  tableSetter?: TableSetter;
@@ -82,6 +82,7 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
82
82
  readonly useBackEndPaging: Signal<boolean>;
83
83
  readonly rows: Signal<any[] | undefined>;
84
84
  readonly pageIndex: i0.WritableSignal<number>;
85
+ hasTotal: boolean;
85
86
  readonly rowtotal: i0.WritableSignal<number>;
86
87
  readonly displayFields: Signal<F[]>;
87
88
  readonly fieldsControlsMap: i0.WritableSignal<{
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="158px" height="22px" viewBox="0 0 158 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <svg width="158px" height="22px" viewBox="0 0 170 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
3
  <title>Rate</title>
4
4
  <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
5
  <g id="Ant-Design-组件缩略图" transform="translate(-1294.000000, -142.000000)">
6
6
  <g id="Rate" transform="translate(1294.000000, 142.000000)">
7
7
  <text id="Text" font-family="HelveticaNeue, Helvetica Neue" font-size="14" font-weight="normal" line-spacing="22" fill="#000000" fill-opacity="0.65">
8
- <tspan x="138" y="13">3.5</tspan>
8
+ <tspan x="138" y="16">3.5</tspan>
9
9
  </text>
10
10
  <g id="Rate/_Resource/Star+unselected" transform="translate(104.000000, 3.000000)" fill="#000000" fill-opacity="0.04">
11
11
  <path d="M14.3886837,6.37641211 C14.1796604,6.17267922 14.0842913,5.87914938 14.1336555,5.59147323 L14.9174679,1.02224826 C14.9787809,0.660183861 14.9175685,0.400689958 14.6206793,0.184424923 C14.4526922,0.0623018619 14.2528417,3.20934945e-06 14.052971,3.20934945e-06 C13.8994673,3.20934945e-06 13.7454607,0.0366944403 13.6040264,0.111042461 L9.41261655,2.37000729 C9.15428936,2.5058091 8.84567266,2.5058091 8.58734547,2.37000729 L4.57188854,0.111022345 C4.24651537,-0.0603442099 3.85260765,-0.0313774487 3.55473279,0.184404807 C3.2578436,0.400669842 3.02069836,0.659680966 3.08299701,1.02222814 L4.0431848,5.68631926 C4.09252887,5.9739954 3.99715983,6.26752525 3.7881566,6.47125814 L0.292230604,9.22104865 C0.028170413,9.47738437 -0.0659715611,9.86117384 0.0469988078,10.2106659 C0.16091462,10.560178 0.462651716,10.8145826 0.826627118,10.8676883 L5.37386551,11.6657025 C5.66260779,11.7077043 5.91220472,11.8890282 6.04138843,12.1506342 L8.13488064,16.568528 C8.2970945,16.8982261 8.63260604,17.1067867 9.00044367,17.1067867 C9.36828131,17.1067867 9.70282729,16.8982462 9.86600671,16.568528 L11.8773862,12.1507348 C12.0065498,11.8890483 12.2561869,11.7076439 12.5449896,11.6656623 L17.1742602,10.8676883 C17.5372902,10.8150654 17.8399727,10.560178 17.9529431,10.2106659 C18.0663962,9.86117384 17.9708059,9.47740448 17.7082142,9.22106876 L14.3886837,6.37641211 Z" id="Shape-Copy-4" transform="translate(9.000000, 8.553393) scale(1, -1) translate(-9.000000, -8.553393) "></path>
@@ -65,11 +65,11 @@ class Button extends Base {
65
65
  .subscribe();
66
66
  }
67
67
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Button, deps: [{ token: i1.NzModalService }], target: i0.ɵɵFactoryTarget.Component });
68
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:10px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "directive", type: i5.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nzPopconfirmTitleContext", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzBeforeConfirm", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus", "nzOkText", "nzOkType", "nzCancelText", "nzOkButtonProps", "nzCancelButtonProps", "nzOkDisabled", "nzOkDanger"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { kind: "ngmodule", type: NzModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "directive", type: i5.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nzPopconfirmTitleContext", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzBeforeConfirm", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus", "nzOkText", "nzOkType", "nzCancelText", "nzOkButtonProps", "nzCancelButtonProps", "nzOkDisabled", "nzOkDanger"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { kind: "ngmodule", type: NzModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
69
69
  }
70
70
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Button, decorators: [{
71
71
  type: Component,
72
- args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:10px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"] }]
72
+ args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"] }]
73
73
  }], ctorParameters: () => [{ type: i1.NzModalService }] });
74
74
 
75
75
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly iconPosition = signal<\"left\" | \"right\">(\"left\");\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzMaskClosable: true,\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:10px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACjC,IAAA,KAAK,GAAG,MAAM,CAAS,EAAE,iDAAC;AAC1B,IAAA,IAAI,GAAG,MAAM,CAAM,SAAS,gDAAC;AAC7B,IAAA,YAAY,GAAG,MAAM,CAAmB,MAAM,wDAAC;AAC/C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,mDAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAkB,OAAO,uDAAC;AAC9C,IAAA,WAAW,GAAG,MAAM,CAAS,OAAO,uDAAC;AACrC,IAAA,WAAW,GAAG,MAAM,CAAU,KAAK,uDAAC;AACpC,IAAA,SAAS,GAAG,MAAM,CAAqD,SAAS,qDAAC;AACjF,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AA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axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly iconPosition = signal<\"left\" | \"right\">(\"left\");\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzMaskClosable: true,\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACjC,IAAA,KAAK,GAAG,MAAM,CAAS,EAAE,iDAAC;AAC1B,IAAA,IAAI,GAAG,MAAM,CAAM,SAAS,gDAAC;AAC7B,IAAA,YAAY,GAAG,MAAM,CAAmB,MAAM,wDAAC;AAC/C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,mDAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAkB,OAAO,uDAAC;AAC9C,IAAA,WAAW,GAAG,MAAM,CAAS,OAAO,uDAAC;AACrC,IAAA,WAAW,GAAG,MAAM,CAAU,KAAK,uDAAC;AACpC,IAAA,SAAS,GAAG,MAAM,CAAqD,SAAS,qDAAC;AACjF,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AAC9B,IAAA,I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D;;AAEG;;;;"}
@@ -1170,7 +1170,7 @@ class ShortcutKey {
1170
1170
  }
1171
1171
  cutNodeIds;
1172
1172
  onKeyPress(e) {
1173
- const isInput = e.target.matches('input:not([disabled]), textarea:not([disabled])');
1173
+ const isInput = e.target.matches('input:not([disabled]), textarea:not([disabled]), [contenteditable="true"]');
1174
1174
  if (isInput) {
1175
1175
  return;
1176
1176
  }