ngx-axis-appforge 0.0.69 → 0.0.71

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 (22) hide show
  1. package/axis-components/echarts/design/index.d.ts +5 -0
  2. package/axis-components/echarts/index.d.ts +22 -0
  3. package/axis-components/table/index.d.ts +4 -1
  4. package/axis-components/tree-selector/index.d.ts +2 -0
  5. package/axis-components-covers/echarts.png +0 -0
  6. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +2 -2
  7. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -1
  8. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +77 -0
  9. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -0
  10. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +46 -0
  11. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -0
  12. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +21 -3
  13. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
  14. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +21 -3
  15. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  16. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +14 -2
  17. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
  18. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +4 -2
  19. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
  20. package/fesm2022/ngx-axis-appforge-axis-components.mjs +82 -0
  21. package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
  22. package/package.json +156 -146
@@ -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,22 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { EChartsOption } from 'echarts';
3
+ import { BaseOptions, Base } from 'ngx-axis-appforge/core';
4
+
5
+ declare class EchartsOptions extends BaseOptions {
6
+ readonly initOpts: _angular_core.WritableSignal<any>;
7
+ readonly loadingOpts: _angular_core.WritableSignal<any>;
8
+ readonly echatsOpts: _angular_core.WritableSignal<EChartsOption>;
9
+ readonly autoResize: _angular_core.WritableSignal<boolean>;
10
+ }
11
+
12
+ declare class Echarts extends Base<EchartsOptions> {
13
+ constructor();
14
+ options: EchartsOptions;
15
+ readonly loading: _angular_core.WritableSignal<boolean>;
16
+ readonly chartsOptions: _angular_core.WritableSignal<EChartsOption>;
17
+ readonly mergeOptions: _angular_core.WritableSignal<EChartsOption>;
18
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Echarts, never>;
19
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Echarts, "axis-echarts", never, {}, {}, never, never, true, never>;
20
+ }
21
+
22
+ export { Echarts };
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy, ElementRef } from '@angular/core';
3
- import { DataOptions, Base } from 'ngx-axis-appforge/core';
3
+ import { DataOptions, Base, EventHandlerOptions } from 'ngx-axis-appforge/core';
4
4
  import { BaseTableOptions, SelectableTableOptions, ExpandableTableOptions, StatisticTableOptions, BaseTableFieldOptions, StatisticTableFieldOptions, TableFieldDisplayService, TableService, ExpandService, StatisticService, SelectService } from 'ngx-axis-appforge/axis-components/table-helper';
5
5
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
6
6
  import { NzResizeEvent } from 'ng-zorro-antd/resizable';
@@ -41,6 +41,7 @@ declare class TableOptions extends DataOptions implements BaseTableOptions, Sele
41
41
  readonly showSizeChanger: _angular_core.WritableSignal<boolean>;
42
42
  readonly pageSizeOptions: _angular_core.WritableSignal<string>;
43
43
  readonly useBackEndPaging: _angular_core.WritableSignal<boolean>;
44
+ readonly customExportData: _angular_core.WritableSignal<boolean>;
44
45
  readonly importLimitLength: _angular_core.WritableSignal<number | null>;
45
46
  readonly importStartLine: _angular_core.WritableSignal<number>;
46
47
  readonly importTemplateFileName: _angular_core.WritableSignal<string>;
@@ -125,6 +126,7 @@ declare class Table extends Base<TableOptions> {
125
126
  readonly actionsFieldWidth: _angular_core.Signal<number>;
126
127
  readonly fixFields: _angular_core.WritableSignal<TableFieldOptions[]>;
127
128
  readonly backendPageParamsChange: Subject<void>;
129
+ readonly customExportDataSubject: Subject<any[]>;
128
130
  timer?: number;
129
131
  callFunction<T>(name: String, args?: any): T | undefined;
130
132
  resizeHandleOffsetX(field: TableFieldOptions): number;
@@ -140,6 +142,7 @@ declare class Table extends Base<TableOptions> {
140
142
  onSelectedChange(): void;
141
143
  rowClick(row: any): void;
142
144
  exportExcel(): Observable<WorkSheet>;
145
+ onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
143
146
  ngOnDestroy(): void;
144
147
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null, null, { optional: true; skipSelf: true; }]>;
145
148
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, {}, {}, never, never, true, never>;
@@ -27,6 +27,8 @@ declare class TreeSelectorOptions extends ValueAccessOptions {
27
27
  readonly title: _angular_core.WritableSignal<string>;
28
28
  readonly expandedLevel: _angular_core.WritableSignal<number | null>;
29
29
  readonly placeHolder: _angular_core.WritableSignal<string>;
30
+ readonly dropdownMatchSelectWidth: _angular_core.WritableSignal<boolean>;
31
+ readonly dropdownStyle: _angular_core.WritableSignal<null>;
30
32
  readonly size: _angular_core.WritableSignal<"large" | "small" | "default">;
31
33
  readonly variant: _angular_core.WritableSignal<"outlined" | "borderless" | "filled" | "underlined">;
32
34
  readonly expandTrigger: _angular_core.WritableSignal<"click" | "hover">;
@@ -36,11 +36,11 @@ class Cytoscape extends Base {
36
36
  this.cy?.destroy();
37
37
  }
38
38
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Cytoscape, deps: [], target: i0.ɵɵFactoryTarget.Component });
39
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Cytoscape, isStandalone: true, selector: "axis-cytoscape", viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div #container style=\"width: 100%;height: 100%;\"></div>", styles: [":host{display:block;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
39
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Cytoscape, isStandalone: true, selector: "axis-cytoscape", viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div #container style=\"width: 100%;height: 100%;\"></div>", styles: [":host{display:block;height:100%;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
40
40
  }
41
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Cytoscape, decorators: [{
42
42
  type: Component,
43
- args: [{ selector: 'axis-cytoscape', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container style=\"width: 100%;height: 100%;\"></div>", styles: [":host{display:block;height:100%}\n"] }]
43
+ args: [{ selector: 'axis-cytoscape', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container style=\"width: 100%;height: 100%;\"></div>", styles: [":host{display:block;height:100%;width:100%}\n"] }]
44
44
  }], ctorParameters: () => [], propDecorators: { container: [{
45
45
  type: ViewChild,
46
46
  args: ["container", { static: true }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-cytoscape.mjs","sources":["../../../axis-components/cytoscape/cytoscape.options.ts","../../../axis-components/cytoscape/cytoscape.ts","../../../axis-components/cytoscape/cytoscape.html","../../../axis-components/cytoscape/ngx-axis-appforge-axis-components-cytoscape.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class CytoscapeOptions extends DataOptions {\n}","import { AfterContentInit, ChangeDetectionStrategy, Component, effect, ElementRef, OnDestroy, ViewChild } from '@angular/core';\nimport { CytoscapeOptions } from './cytoscape.options';\nimport { Base } from 'ngx-axis-appforge/core';\nimport { CommonModule } from '@angular/common';\nimport cytoscape from 'cytoscape';\n\n@Component({\n selector: 'axis-cytoscape',\n imports: [CommonModule],\n templateUrl: './cytoscape.html',\n styleUrl: './cytoscape.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Cytoscape extends Base<CytoscapeOptions> implements AfterContentInit, OnDestroy {\n\n constructor() {\n super();\n effect(() => {\n if (this.options.data() && this.container) {\n this.cy?.destroy();\n this.cy = cytoscape({\n container: this.container.nativeElement,\n ...this.options.data()\n });\n }\n })\n }\n\n override options: CytoscapeOptions = new CytoscapeOptions();\n\n @ViewChild(\"container\", { static: true })\n container!: ElementRef;\n\n cy?: cytoscape.Core\n\n ngAfterContentInit(): void {\n if (this.options.data() && !this.cy) {\n this.cy = cytoscape({\n container: this.container.nativeElement,\n ...this.options.data()\n });\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.cy?.destroy();\n }\n}\n","<div #container style=\"width: 100%;height: 100%;\"></div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './cytoscape';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,gBAAiB,SAAQ,WAAW,CAAA;AAChD;;ACSK,MAAO,SAAU,SAAQ,IAAsB,CAAA;AAEnD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE;AACzC,gBAAA,IAAI,CAA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CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKX,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WACjB,CAAC,YAAY,CAAC,EAAA,eAAA,EAGN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4DAAA,EAAA,MAAA,EAAA,CAAA,oCAAA,CAAA,EAAA;wDAoB/C,SAAS,EAAA,CAAA;sBADR,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;AE9B1C;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-cytoscape.mjs","sources":["../../../axis-components/cytoscape/cytoscape.options.ts","../../../axis-components/cytoscape/cytoscape.ts","../../../axis-components/cytoscape/cytoscape.html","../../../axis-components/cytoscape/ngx-axis-appforge-axis-components-cytoscape.ts"],"sourcesContent":["import { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class CytoscapeOptions extends DataOptions {\n}","import { AfterContentInit, ChangeDetectionStrategy, Component, effect, ElementRef, OnDestroy, ViewChild } from '@angular/core';\nimport { CytoscapeOptions } from './cytoscape.options';\nimport { Base } from 'ngx-axis-appforge/core';\nimport { CommonModule } from '@angular/common';\nimport cytoscape from 'cytoscape';\n\n@Component({\n selector: 'axis-cytoscape',\n imports: [CommonModule],\n templateUrl: './cytoscape.html',\n styleUrl: './cytoscape.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Cytoscape extends Base<CytoscapeOptions> implements AfterContentInit, OnDestroy {\n\n constructor() {\n super();\n effect(() => {\n if (this.options.data() && this.container) {\n this.cy?.destroy();\n this.cy = cytoscape({\n container: this.container.nativeElement,\n ...this.options.data()\n });\n }\n })\n }\n\n override options: CytoscapeOptions = new CytoscapeOptions();\n\n @ViewChild(\"container\", { static: true })\n container!: ElementRef;\n\n cy?: cytoscape.Core\n\n ngAfterContentInit(): void {\n if (this.options.data() && !this.cy) {\n this.cy = cytoscape({\n container: this.container.nativeElement,\n ...this.options.data()\n });\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.cy?.destroy();\n }\n}\n","<div #container style=\"width: 100%;height: 100%;\"></div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './cytoscape';\n"],"names":[],"mappings":";;;;;;AAEM,MAAO,gBAAiB,SAAQ,WAAW,CAAA;AAChD;;ACUK,MAAO,SAAU,SAAQ,IAAsB,CAAA;AAEnD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE;AACzC,gBAAA,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;AAClB,gBAAA,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;AAClB,oBAAA,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa;AACvC,oBAAA,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI;AACrB,iBAAA,CAAC;YACJ;AACF,QAAA,CAAC,CAAC;IACJ;AAES,IAAA,OAAO,GAAqB,IAAI,gBAAgB,EAAE;AAG3D,IAAA,SAAS;AAET,IAAA,EAAE;IAEF,kBAAkB,GAAA;AAChB,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;AACnC,YAAA,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;AAClB,gBAAA,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa;AACvC,gBAAA,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI;AACrB,aAAA,CAAC;QACJ;IACF;IAES,WAAW,GAAA;QAClB,KAAK,CAAC,WAAW,EAAE;AACnB,QAAA,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;IACpB;uGAlCW,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,WAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbtB,4DAAwD,EAAA,MAAA,EAAA,CAAA,+CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDQ5C,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKX,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WACjB,CAAC,YAAY,CAAC,EAAA,eAAA,EAGN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4DAAA,EAAA,MAAA,EAAA,CAAA,+CAAA,CAAA,EAAA;wDAoB/C,SAAS,EAAA,CAAA;sBADR,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;AE9B1C;;AAEG;;;;"}
@@ -0,0 +1,77 @@
1
+ import { FunFieldValueBase, FormValidators, baseFbConfig, baseFunField, BaseDesignSetting, FunField, DynamicDirective, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
2
+ import * as i0 from '@angular/core';
3
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import * as i1 from '@angular/forms';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import * as i4 from 'ng-zorro-antd/collapse';
7
+ import { NzCollapseModule } from 'ng-zorro-antd/collapse';
8
+ import * as i3 from 'ng-zorro-antd/form';
9
+ import { NzFormModule } from 'ng-zorro-antd/form';
10
+ import * as i5 from 'ng-zorro-antd/switch';
11
+ import { NzSwitchModule } from 'ng-zorro-antd/switch';
12
+ import * as i2 from 'ng-zorro-antd/grid';
13
+
14
+ class Setting extends FunFieldValueBase {
15
+ fg = this.fb.group({
16
+ ...baseFbConfig,
17
+ initOpts: [],
18
+ loadingOpts: [],
19
+ echatsOpts: [],
20
+ autoResize: [undefined, FormValidators.requiredFun],
21
+ });
22
+ funFields = {
23
+ ...baseFunField,
24
+ initOpts: {
25
+ defaultValue: undefined
26
+ },
27
+ loadingOpts: {
28
+ defaultValue: undefined
29
+ },
30
+ echatsOpts: {
31
+ defaultValue: undefined
32
+ },
33
+ autoResize: {
34
+ defaultValue: true
35
+ },
36
+ };
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
38
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-echarts-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u521D\u59CB\u5316\u53C2\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"initOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echarts.init\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u52A0\u8F7D\u72B6\u6001\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"loadingOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echartsInstance.showLoading\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u56FE\u8868\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"echatsOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/option.html#title\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u81EA\u9002\u5E94\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"autoResize\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i5.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
41
+ type: Component,
42
+ args: [{ selector: 'axis-design-echarts-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, DynamicDirective, NzSwitchModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u521D\u59CB\u5316\u53C2\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"initOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echarts.init\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u52A0\u8F7D\u72B6\u6001\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"loadingOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echartsInstance.showLoading\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u56FE\u8868\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"echatsOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/option.html#title\" target=\"_blank\">\u53C2\u8003\u6587\u6863</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u81EA\u9002\u5E94\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"autoResize\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>" }]
43
+ }] });
44
+
45
+ const Config = {
46
+ componentName: "图表",
47
+ buildOptionsNodes(nextInfo) {
48
+ return {
49
+ treeNode: new OptionsNode({
50
+ parentId: nextInfo.parentId,
51
+ scopeId: nextInfo.scopeId,
52
+ name: "图表",
53
+ canSetting: true,
54
+ canDrag: true,
55
+ dragType: "component",
56
+ parentObj: nextInfo.parentObject,
57
+ indexOfParentObj: nextInfo.indexOfParent,
58
+ rootOptions: nextInfo.currentObject,
59
+ settingType: Setting,
60
+ contextMenu: SimpleMenu,
61
+ icon: "pie-chart"
62
+ })
63
+ };
64
+ },
65
+ bindElementsOptionsNode(element, options) {
66
+ return {
67
+ [options.id]: { element }
68
+ };
69
+ },
70
+ };
71
+
72
+ /**
73
+ * Generated bundle index. Do not edit.
74
+ */
75
+
76
+ export { Config };
77
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-echarts-design.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-echarts-design.mjs","sources":["../../../axis-components/echarts/design/setting/setting.ts","../../../axis-components/echarts/design/setting/setting.html","../../../axis-components/echarts/design/config.ts","../../../axis-components/echarts/design/ngx-axis-appforge-axis-components-echarts-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-echarts-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, DynamicDirective, NzSwitchModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n initOpts: [],\n loadingOpts: [],\n echatsOpts: [],\n autoResize: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n initOpts: {\n defaultValue: undefined\n },\n loadingOpts: {\n defaultValue: undefined\n },\n echatsOpts: {\n defaultValue: undefined\n },\n autoResize: {\n defaultValue: true\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 初始化参数\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"initOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echarts.init\" target=\"_blank\">参考文档</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 加载状态配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"loadingOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/api.html#echartsInstance.showLoading\" target=\"_blank\">参考文档</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 图表配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"echatsOpts\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n <a href=\"https://echarts.apache.org/en/option.html#title\" target=\"_blank\">参考文档</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 自适应大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"autoResize\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"图表\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"图表\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"pie-chart\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,CAAC,SAAS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CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
@@ -0,0 +1,46 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, effect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { BaseOptions, Base } from 'ngx-axis-appforge/core';
4
+ import { CommonModule } from '@angular/common';
5
+ import { NgxEchartsDirective } from 'ngx-echarts';
6
+
7
+ class EchartsOptions extends BaseOptions {
8
+ initOpts = signal({}, ...(ngDevMode ? [{ debugName: "initOpts" }] : []));
9
+ loadingOpts = signal({}, ...(ngDevMode ? [{ debugName: "loadingOpts" }] : []));
10
+ echatsOpts = signal({}, ...(ngDevMode ? [{ debugName: "echatsOpts" }] : []));
11
+ autoResize = signal(true, ...(ngDevMode ? [{ debugName: "autoResize" }] : []));
12
+ }
13
+
14
+ class Echarts extends Base {
15
+ constructor() {
16
+ super();
17
+ effect(() => {
18
+ if (this.options.echatsOpts()) {
19
+ if (untracked(this.loading)) {
20
+ this.chartsOptions.set(this.options.echatsOpts());
21
+ this.loading.set(false);
22
+ }
23
+ else {
24
+ this.mergeOptions.set(this.options.echatsOpts());
25
+ }
26
+ }
27
+ });
28
+ }
29
+ options = new EchartsOptions();
30
+ loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
31
+ chartsOptions = signal({}, ...(ngDevMode ? [{ debugName: "chartsOptions" }] : []));
32
+ mergeOptions = signal({}, ...(ngDevMode ? [{ debugName: "mergeOptions" }] : []));
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Echarts, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Echarts, isStandalone: true, selector: "axis-echarts", usesInheritance: true, ngImport: i0, template: "<div style=\"width: 100%;height: 100%;\" echarts [initOpts]=\"options.initOpts()\" [options]=\"chartsOptions()\"\n [merge]=\"mergeOptions()\" [autoResize]=\"options.autoResize()\" [loading]=\"loading()\"\n [loadingOpts]=\"options.loadingOpts()\">\n</div>", styles: [":host{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: NgxEchartsDirective, selector: "echarts, [echarts]", inputs: ["options", "theme", "initOpts", "merge", "autoResize", "loading", "loadingType", "loadingOpts"], outputs: ["chartInit", "optionsError", "chartClick", "chartDblClick", "chartMouseDown", "chartMouseMove", "chartMouseUp", "chartMouseOver", "chartMouseOut", "chartGlobalOut", "chartContextMenu", "chartHighlight", "chartDownplay", "chartSelectChanged", "chartLegendSelectChanged", "chartLegendSelected", "chartLegendUnselected", "chartLegendLegendSelectAll", "chartLegendLegendInverseSelect", "chartLegendScroll", "chartDataZoom", "chartDataRangeSelected", "chartGraphRoam", "chartGeoRoam", "chartTreeRoam", "chartTimelineChanged", "chartTimelinePlayChanged", "chartRestore", "chartDataViewChanged", "chartMagicTypeChanged", "chartGeoSelectChanged", "chartGeoSelected", "chartGeoUnselected", "chartAxisAreaSelected", "chartBrush", "chartBrushEnd", "chartBrushSelected", "chartGlobalCursorTaken", "chartRendered", "chartFinished"], exportAs: ["echarts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
35
+ }
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Echarts, decorators: [{
37
+ type: Component,
38
+ args: [{ selector: 'axis-echarts', imports: [CommonModule, NgxEchartsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"width: 100%;height: 100%;\" echarts [initOpts]=\"options.initOpts()\" [options]=\"chartsOptions()\"\n [merge]=\"mergeOptions()\" [autoResize]=\"options.autoResize()\" [loading]=\"loading()\"\n [loadingOpts]=\"options.loadingOpts()\">\n</div>", styles: [":host{display:block;width:100%;height:100%}\n"] }]
39
+ }], ctorParameters: () => [] });
40
+
41
+ /**
42
+ * Generated bundle index. Do not edit.
43
+ */
44
+
45
+ export { Echarts };
46
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-echarts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-echarts.mjs","sources":["../../../axis-components/echarts/echarts.options.ts","../../../axis-components/echarts/echarts.ts","../../../axis-components/echarts/echarts.html","../../../axis-components/echarts/ngx-axis-appforge-axis-components-echarts.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { EChartsOption } from \"echarts\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class EchartsOptions extends BaseOptions {\n readonly initOpts = signal<any>({});\n readonly loadingOpts = signal<any>({});\n readonly echatsOpts = signal<EChartsOption>({});\n readonly autoResize = signal(true);\n}","import { ChangeDetectionStrategy, Component, effect, signal, untracked } from '@angular/core';\nimport { EchartsOptions } from './echarts.options';\nimport { Base } from 'ngx-axis-appforge/core';\nimport { CommonModule } from '@angular/common';\nimport { EChartsOption } from 'echarts';\nimport { NgxEchartsDirective } from 'ngx-echarts';\n\n@Component({\n selector: 'axis-echarts',\n imports: [CommonModule, NgxEchartsDirective],\n templateUrl: './echarts.html',\n styleUrl: './echarts.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Echarts extends Base<EchartsOptions> {\n\n constructor() {\n super();\n effect(() => {\n if (this.options.echatsOpts()) {\n if (untracked(this.loading)) {\n this.chartsOptions.set(this.options.echatsOpts());\n this.loading.set(false);\n } else {\n this.mergeOptions.set(this.options.echatsOpts());\n }\n }\n });\n }\n\n override options: EchartsOptions = new EchartsOptions();\n\n readonly loading = signal(true);\n readonly chartsOptions = signal<EChartsOption>({});\n readonly mergeOptions = signal<EChartsOption>({});\n\n\n}\n","<div style=\"width: 100%;height: 100%;\" echarts [initOpts]=\"options.initOpts()\" [options]=\"chartsOptions()\"\n [merge]=\"mergeOptions()\" [autoResize]=\"options.autoResize()\" [loading]=\"loading()\"\n [loadingOpts]=\"options.loadingOpts()\">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