ngx-axis-appforge 0.0.59 → 0.0.61
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/axis-components/edit-table/index.d.ts +2 -0
- package/axis-components/table/index.d.ts +2 -1
- package/axis-components/table-helper/index.d.ts +6 -3
- package/core/index.d.ts +2 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +6 -2
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +12 -3
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +6 -2
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +26 -7
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +8 -3
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +21 -16
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +143 -143
|
@@ -23,6 +23,7 @@ declare class EditTableOptions extends ValueAccessOptions implements BaseTableOp
|
|
|
23
23
|
readonly width: _angular_core.WritableSignal<number | undefined>;
|
|
24
24
|
readonly showCheckbox: _angular_core.WritableSignal<boolean>;
|
|
25
25
|
readonly checkedFormName: _angular_core.WritableSignal<string>;
|
|
26
|
+
readonly checkeOnRowClick: _angular_core.WritableSignal<boolean>;
|
|
26
27
|
readonly singleCheck: _angular_core.WritableSignal<boolean>;
|
|
27
28
|
readonly disableCheckboxFn: _angular_core.WritableSignal<string | undefined>;
|
|
28
29
|
readonly defaultSelectFirstRow: _angular_core.WritableSignal<boolean>;
|
|
@@ -91,6 +92,7 @@ declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit,
|
|
|
91
92
|
refreshStatus(row: EditTableRowData): void;
|
|
92
93
|
ngOnDestroy(): void;
|
|
93
94
|
onSelectedChange(checkedIds: Set<any>): void;
|
|
95
|
+
rowClick(row: EditTableRowData): void;
|
|
94
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditTable, [null, null, null, { optional: true; skipSelf: true; }]>;
|
|
95
97
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditTable, "axis-edit-table", never, { "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; }, { "pageIndex": "pageIndexChange"; }, never, never, true, never>;
|
|
96
98
|
}
|
|
@@ -22,10 +22,10 @@ declare class TableOptions extends DataOptions implements BaseTableOptions, Sele
|
|
|
22
22
|
readonly width: _angular_core.WritableSignal<number | undefined>;
|
|
23
23
|
readonly actionsFieldWidth: _angular_core.WritableSignal<number | null>;
|
|
24
24
|
readonly showCheckbox: _angular_core.WritableSignal<boolean>;
|
|
25
|
+
readonly checkeOnRowClick: _angular_core.WritableSignal<boolean>;
|
|
25
26
|
readonly singleCheck: _angular_core.WritableSignal<boolean>;
|
|
26
27
|
readonly checkboxLinkageForExpand: _angular_core.WritableSignal<boolean>;
|
|
27
28
|
readonly disableCheckboxFn: _angular_core.WritableSignal<string | undefined>;
|
|
28
|
-
readonly enableRowClick: _angular_core.WritableSignal<boolean>;
|
|
29
29
|
readonly defaultSelectFirstRow: _angular_core.WritableSignal<boolean>;
|
|
30
30
|
readonly showStatistic: _angular_core.WritableSignal<boolean>;
|
|
31
31
|
readonly statisticTitle: _angular_core.WritableSignal<string>;
|
|
@@ -136,6 +136,7 @@ declare class Table extends Base<TableOptions> {
|
|
|
136
136
|
sortChange(): void;
|
|
137
137
|
rowspan(field: string, index: number): number;
|
|
138
138
|
onSelectedChange(): void;
|
|
139
|
+
rowClick(row: any): void;
|
|
139
140
|
ngOnDestroy(): void;
|
|
140
141
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
141
142
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, {}, {}, never, never, true, never>;
|
|
@@ -131,26 +131,29 @@ declare class SelectService {
|
|
|
131
131
|
private parent?;
|
|
132
132
|
private subSelectKeyFun?;
|
|
133
133
|
private registToParent;
|
|
134
|
+
private getRow?;
|
|
134
135
|
readonly headerChecked: i0.WritableSignal<"none" | "checked" | "indeterminate">;
|
|
135
136
|
readonly setOfCheckedId: i0.WritableSignal<Set<any>>;
|
|
136
137
|
readonly setOfIndeterminateId: i0.WritableSignal<Set<any>>;
|
|
137
|
-
readonly setOfDisabledId:
|
|
138
|
+
readonly setOfDisabledId: i0.WritableSignal<Set<any>>;
|
|
138
139
|
private subs;
|
|
139
140
|
private readonly subSelects;
|
|
141
|
+
private get rows();
|
|
140
142
|
init(opts: {
|
|
141
143
|
options: SelectableTableOptions;
|
|
142
144
|
keyField: string;
|
|
143
|
-
data: Signal<any
|
|
145
|
+
data: Signal<any>;
|
|
144
146
|
onSelectedChange: (checkedIds: Set<any>) => void;
|
|
145
147
|
parent?: SelectService;
|
|
146
148
|
scope?: ScopeDirective | null;
|
|
147
149
|
subSelectKeyFun?: (scope: ScopeDirective) => string;
|
|
148
150
|
registToParent?: boolean;
|
|
151
|
+
getRow?: (row: any) => any;
|
|
149
152
|
}): void;
|
|
150
153
|
findSubSelect(key: string): SelectService | undefined;
|
|
151
154
|
getSubSelectKey(scope: ScopeDirective): string;
|
|
152
155
|
private initCheckboxLinkageForExpand;
|
|
153
|
-
|
|
156
|
+
refreshDisabledId(): void;
|
|
154
157
|
onAllChecked(checked: boolean, scene?: ChangeScene): void;
|
|
155
158
|
toggleChecked(row: any, scene?: ChangeScene): void;
|
|
156
159
|
onItemChecked(row: any, checked: boolean, scene?: ChangeScene): void;
|
package/core/index.d.ts
CHANGED
|
@@ -316,6 +316,7 @@ declare class DynamicDirective implements ControlValueAccessor, OnDestroy {
|
|
|
316
316
|
readonly axisDynamic: _angular_core.InputSignal<any>;
|
|
317
317
|
readonly standalone: _angular_core.InputSignal<boolean>;
|
|
318
318
|
readonly isDesign: _angular_core.InputSignal<boolean>;
|
|
319
|
+
readonly forceRenderOnChange: _angular_core.InputSignal<boolean>;
|
|
319
320
|
readonly onRegisteValueAccess: _angular_core.OutputEmitterRef<RegisteValueAccessOptions>;
|
|
320
321
|
private component?;
|
|
321
322
|
private sub?;
|
|
@@ -346,7 +347,7 @@ declare class DynamicDirective implements ControlValueAccessor, OnDestroy {
|
|
|
346
347
|
destoryInstance(): void;
|
|
347
348
|
ngOnDestroy(): void;
|
|
348
349
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicDirective, never>;
|
|
349
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DynamicDirective, "[axisDynamic]", ["axisDynamic"], { "axisDynamic": { "alias": "axisDynamic"; "required": true; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "isDesign": { "alias": "isDesign"; "required": false; "isSignal": true; }; }, { "onRegisteValueAccess": "onRegisteValueAccess"; }, never, never, true, never>;
|
|
350
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DynamicDirective, "[axisDynamic]", ["axisDynamic"], { "axisDynamic": { "alias": "axisDynamic"; "required": true; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "isDesign": { "alias": "isDesign"; "required": false; "isSignal": true; }; "forceRenderOnChange": { "alias": "forceRenderOnChange"; "required": false; "isSignal": true; }; }, { "onRegisteValueAccess": "onRegisteValueAccess"; }, never, never, true, never>;
|
|
350
351
|
}
|
|
351
352
|
|
|
352
353
|
declare class HowLongPipe implements PipeTransform {
|
|
@@ -24,7 +24,7 @@ class BadgeOptions extends DataOptions {
|
|
|
24
24
|
class Text extends Base {
|
|
25
25
|
options = new BadgeOptions();
|
|
26
26
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Text, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Text, isStandalone: true, selector: "axis-badge", usesInheritance: true, ngImport: i0, template: "@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzBadgeModule }, { kind: "component", type: i1.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }, { kind: "component", type: i1.NzRibbonComponent, selector: "nz-ribbon", inputs: ["nzColor", "nzPlacement", "nzText"], exportAs: ["nzRibbon"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Text, isStandalone: true, selector: "axis-badge", usesInheritance: true, ngImport: i0, template: "@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzBadgeModule }, { kind: "component", type: i1.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }, { kind: "component", type: i1.NzRibbonComponent, selector: "nz-ribbon", inputs: ["nzColor", "nzPlacement", "nzText"], exportAs: ["nzRibbon"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
28
|
}
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Text, decorators: [{
|
|
30
30
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-badge.mjs","sources":["../../../axis-components/badge/badge.options.ts","../../../axis-components/badge/badge.ts","../../../axis-components/badge/badge.html","../../../axis-components/badge/ngx-axis-appforge-axis-components-badge.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class BadgeOptions extends DataOptions {\n\n readonly type = signal<\"badge\" | \"status\" | \"ribbon\">(\"badge\");\n\n readonly showDot = signal(true);\n readonly dot = signal(false);\n readonly overflowCount = signal(Number.MAX_VALUE);\n readonly showZero = signal(false);\n readonly count = signal<number | undefined>(undefined);\n readonly child = signal<any>(undefined);\n readonly size = signal<\"default\" | \"small\">(\"default\");\n readonly offset = signal<[number, number] | undefined>(undefined);\n readonly title = signal(\"\");\n\n readonly color = signal<string | undefined>(undefined);\n readonly status = signal<'success' | 'processing' | 'default' | 'error' | 'warning'>(\"default\");\n readonly text = signal(\"\");\n\n readonly placement = signal<\"start\" | \"end\">(\"end\");\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BadgeOptions } from './badge.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzBadgeModule } from 'ng-zorro-antd/badge';\n\n@Component({\n selector: 'axis-badge',\n imports: [NzBadgeModule, DynamicDirective],\n templateUrl: './badge.html',\n styleUrl: './badge.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Text extends Base<BadgeOptions> {\n\n override options: BadgeOptions = new BadgeOptions();\n\n}\n","@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './badge';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAEhC,IAAA,IAAI,GAAG,MAAM,CAAgC,OAAO,gDAAC;AAErD,IAAA,OAAO,GAAG,MAAM,CAAC,IAAI,mDAAC;AACtB,IAAA,GAAG,GAAG,MAAM,CAAC,KAAK,+CAAC;AACnB,IAAA,aAAa,GAAG,MAA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AAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAK9B,IAAI,EAAA,UAAA,EAAA,CAAA;kBAPhB,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGzB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,i/BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-badge.mjs","sources":["../../../axis-components/badge/badge.options.ts","../../../axis-components/badge/badge.ts","../../../axis-components/badge/badge.html","../../../axis-components/badge/ngx-axis-appforge-axis-components-badge.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class BadgeOptions extends DataOptions {\n\n readonly type = signal<\"badge\" | \"status\" | \"ribbon\">(\"badge\");\n\n readonly showDot = signal(true);\n readonly dot = signal(false);\n readonly overflowCount = signal(Number.MAX_VALUE);\n readonly showZero = signal(false);\n readonly count = signal<number | undefined>(undefined);\n readonly child = signal<any>(undefined);\n readonly size = signal<\"default\" | \"small\">(\"default\");\n readonly offset = signal<[number, number] | undefined>(undefined);\n readonly title = signal(\"\");\n\n readonly color = signal<string | undefined>(undefined);\n readonly status = signal<'success' | 'processing' | 'default' | 'error' | 'warning'>(\"default\");\n readonly text = signal(\"\");\n\n readonly placement = signal<\"start\" | \"end\">(\"end\");\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BadgeOptions } from './badge.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzBadgeModule } from 'ng-zorro-antd/badge';\n\n@Component({\n selector: 'axis-badge',\n imports: [NzBadgeModule, DynamicDirective],\n templateUrl: './badge.html',\n styleUrl: './badge.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Text extends Base<BadgeOptions> {\n\n override options: BadgeOptions = new BadgeOptions();\n\n}\n","@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './badge';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAEhC,IAAA,IAAI,GAAG,MAAM,CAAgC,OAAO,gDAAC;AAErD,IAAA,OAAO,GAAG,MAAM,CAAC,IAAI,mDAAC;AACtB,IAAA,GAAG,GAAG,MAAM,CAAC,KAAK,+CAAC;AACnB,IAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,yDAAC;AACxC,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC;AACxB,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAsB,SAAS,gDAAC;AAC7C,IAAA,MAAM,GAAG,MAA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AAC,MAAM,EAAA,QAAA,EAAA,i/BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
@@ -78,7 +78,7 @@ class Setting extends FunFieldValueBase {
|
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-button-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u56FE\u6807\u4F4D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"iconPosition\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"left\">\u5DE6\u4FA7</label>\n <label nz-radio-button nzValue=\"right\">\u53F3\u4FA7</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledBtn\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u80CC\u666F\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"ghost\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5371\u9669\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"danger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u786E\u8BA4\u63D0\u793A\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5F00\u542F\u786E\u8BA4\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u786E\u8BA4\u6846\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">\u5F39\u7A97</label>\n <label nz-radio-button nzValue=\"pop\">\u6C14\u6CE1</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u786E\u8BA4\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'\u70B9\u51FB\u6309\u94AE'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i2.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i8.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i8.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: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-button-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u56FE\u6807\u4F4D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"iconPosition\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"left\">\u5DE6\u4FA7</label>\n <label nz-radio-button nzValue=\"right\">\u53F3\u4FA7</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledBtn\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u80CC\u666F\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"ghost\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5371\u9669\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"danger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u786E\u8BA4\u63D0\u793A\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5F00\u542F\u786E\u8BA4\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u786E\u8BA4\u6846\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">\u5F39\u7A97</label>\n <label nz-radio-button nzValue=\"pop\">\u6C14\u6CE1</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u786E\u8BA4\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'\u70B9\u51FB\u6309\u94AE'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i2.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i8.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i8.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: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
82
82
|
}
|
|
83
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
84
84
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-button-design.mjs","sources":["../../../axis-components/button/design/setting/setting.ts","../../../axis-components/button/design/setting/setting.html","../../../axis-components/button/design/config.ts","../../../axis-components/button/design/ngx-axis-appforge-axis-components-button-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { InputTrigger, FunFieldValueBase, FunField, DynamicDirective, BaseDesignSetting, baseFbConfig, FormValidators, baseFunField, FunFieldOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-button-setting',\n imports: [NzFormModule, NzSelectModule, FormsModule, ReactiveFormsModule, FunField, NzGridModule, NzInputModule, DynamicDirective, NzSwitchModule, NzRadioModule, NzCollapseModule, BaseDesignSetting, InputTrigger],\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 title: [],\n icon: [undefined],\n iconPosition: [undefined, [FormValidators.requiredFun]],\n confirm: [undefined, [FormValidators.requiredFun]],\n confirmText: [undefined],\n confirmType: [undefined],\n disabledBtn: [undefined, [FormValidators.requiredFun]],\n styleType: [undefined, [FormValidators.requiredFun]],\n block: [undefined, [FormValidators.requiredFun]],\n danger: [undefined, [FormValidators.requiredFun]],\n ghost: [undefined, [FormValidators.requiredFun]],\n size: [undefined, [FormValidators.requiredFun]],\n shape: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n icon: {\n defaultValue: undefined\n },\n iconPosition: {\n defaultValue: \"left\"\n },\n confirm: {\n defaultValue: false\n },\n confirmType: {\n defaultValue: \"modal\"\n },\n confirmText: {\n defaultValue: \"是否确认?\"\n },\n disabledBtn: {\n defaultValue: false\n },\n styleType: {\n defaultValue: \"default\"\n },\n ghost: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n block: {\n defaultValue: false\n },\n danger: {\n defaultValue: false\n },\n shape: {\n defaultValue: \"\"\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=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\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=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\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=\"iconPosition\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"left\">左侧</label>\n <label nz-radio-button nzValue=\"right\">右侧</label>\n </nz-radio-group>\n </axis-fun-field>\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=\"disabledBtn\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\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=\"ghost\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\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=\"block\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"danger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"确认提示\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 开启确认提示\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 确认框类型\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">弹窗</label>\n <label nz-radio-button nzValue=\"pop\">气泡</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n 确认文本\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'点击按钮'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { Setting } from \"./setting/setting\";\nimport { DesignConfig, NextInfo, DesignBuildResult, OptionsNode, DesignBindElementsResult, nameCode, SimpleMenu } from 'ngx-axis-appforge/core';\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: nameCode(\"按钮\", nextInfo.currentObject.title),\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: \"border-outer\"\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":";;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,SAAS,CAAC;QACjB,YAAY,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACvD,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAClD,WAAW,EAAE,CAAC,SAAS,CAAC;QACxB,WAA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C;AAClD,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-button-design.mjs","sources":["../../../axis-components/button/design/setting/setting.ts","../../../axis-components/button/design/setting/setting.html","../../../axis-components/button/design/config.ts","../../../axis-components/button/design/ngx-axis-appforge-axis-components-button-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { InputTrigger, FunFieldValueBase, FunField, DynamicDirective, BaseDesignSetting, baseFbConfig, FormValidators, baseFunField, FunFieldOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-button-setting',\n imports: [NzFormModule, NzSelectModule, FormsModule, ReactiveFormsModule, FunField, NzGridModule, NzInputModule, DynamicDirective, NzSwitchModule, NzRadioModule, NzCollapseModule, BaseDesignSetting, InputTrigger],\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 title: [],\n icon: [undefined],\n iconPosition: [undefined, [FormValidators.requiredFun]],\n confirm: [undefined, [FormValidators.requiredFun]],\n confirmText: [undefined],\n confirmType: [undefined],\n disabledBtn: [undefined, [FormValidators.requiredFun]],\n styleType: [undefined, [FormValidators.requiredFun]],\n block: [undefined, [FormValidators.requiredFun]],\n danger: [undefined, [FormValidators.requiredFun]],\n ghost: [undefined, [FormValidators.requiredFun]],\n size: [undefined, [FormValidators.requiredFun]],\n shape: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n icon: {\n defaultValue: undefined\n },\n iconPosition: {\n defaultValue: \"left\"\n },\n confirm: {\n defaultValue: false\n },\n confirmType: {\n defaultValue: \"modal\"\n },\n confirmText: {\n defaultValue: \"是否确认?\"\n },\n disabledBtn: {\n defaultValue: false\n },\n styleType: {\n defaultValue: \"default\"\n },\n ghost: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n block: {\n defaultValue: false\n },\n danger: {\n defaultValue: false\n },\n shape: {\n defaultValue: \"\"\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=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\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=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\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=\"iconPosition\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"left\">左侧</label>\n <label nz-radio-button nzValue=\"right\">右侧</label>\n </nz-radio-group>\n </axis-fun-field>\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=\"disabledBtn\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\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=\"ghost\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\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=\"block\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"danger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"确认提示\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 开启确认提示\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 确认框类型\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">弹窗</label>\n <label nz-radio-button nzValue=\"pop\">气泡</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n 确认文本\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'点击按钮'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { Setting } from \"./setting/setting\";\nimport { DesignConfig, NextInfo, DesignBuildResult, OptionsNode, DesignBindElementsResult, nameCode, SimpleMenu } from 'ngx-axis-appforge/core';\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: nameCode(\"按钮\", nextInfo.currentObject.title),\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: \"border-outer\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n *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aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,CAAC,EAAA,eAAA,EAGnM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,02QAAA,EAAA;;;AEb1C,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;gBACzB,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AAClD,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
@@ -65,7 +65,7 @@ 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: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 });
|
|
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", "forceRenderOnChange"], 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,
|
|
@@ -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: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,IAAI,GAAG,MAA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}
|
|
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: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,CA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AAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2xBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
|
|
@@ -47,7 +47,7 @@ class Setting extends FunFieldValueBase {
|
|
|
47
47
|
return [];
|
|
48
48
|
}, ...(ngDevMode ? [{ debugName: "fields" }] : []));
|
|
49
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-checkbox-setting", viewQueries: [{ propertyName: "dataFunField", first: true, predicate: ["data"], descendants: true, static: true }], 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\" nzRequired>\n \u503C\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"valueField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u540D\u79F0\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"labelField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-autocomplete #fieldAuto nzBackfill>\n @for (f of fields(); track f) {\n <nz-auto-option [nzLabel]=\"f\" [nzValue]=\"f\">\n {{f}}\n </nz-auto-option>\n }\n </nz-autocomplete>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5B8C\u6574\u5BF9\u8C61\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5C55\u793A\u5168\u9009\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field #data formControlName=\"showAll\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u9009\u9879\u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field #data formControlName=\"data\">\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 </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\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.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { 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: NzFormModule }, { kind: "directive", type: i3.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: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzAutocompleteModule }, { kind: "component", type: i5.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i5.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i5.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i6.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSelectModule }, { 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"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: NzRadioModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-checkbox-setting", viewQueries: [{ propertyName: "dataFunField", first: true, predicate: ["data"], descendants: true, static: true }], 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\" nzRequired>\n \u503C\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"valueField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u540D\u79F0\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"labelField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-autocomplete #fieldAuto nzBackfill>\n @for (f of fields(); track f) {\n <nz-auto-option [nzLabel]=\"f\" [nzValue]=\"f\">\n {{f}}\n </nz-auto-option>\n }\n </nz-autocomplete>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5B8C\u6574\u5BF9\u8C61\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5C55\u793A\u5168\u9009\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field #data formControlName=\"showAll\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u9009\u9879\u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field #data formControlName=\"data\">\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 </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\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.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { 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: NzFormModule }, { kind: "directive", type: i3.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: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzAutocompleteModule }, { kind: "component", type: i5.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i5.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i5.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i6.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSelectModule }, { 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: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: NzRadioModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51
51
|
}
|
|
52
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
53
53
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-checkbox-design.mjs","sources":["../../../axis-components/checkbox/design/setting/setting.ts","../../../axis-components/checkbox/design/setting/setting.html","../../../axis-components/checkbox/design/config.ts","../../../axis-components/checkbox/design/ngx-axis-appforge-axis-components-checkbox-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, ViewChild } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-checkbox-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzAutocompleteModule, NzInputModule, NzSelectModule, FunField, DynamicDirective, NzSwitchModule, InputTrigger, NzInputNumberModule, NzRadioModule],\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 ...valueFbConfig,\n labelField: [\"title\", FormValidators.required],\n valueField: [\"key\", FormValidators.required],\n disabledField: [\"disabled\", FormValidators.required],\n fullValue: [false, FormValidators.required],\n showAll: [undefined, FormValidators.requiredFun],\n data: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n showAll: {\n defaultValue: false\n },\n data: {\n defaultValue: undefined\n },\n };\n\n @ViewChild(\"data\", { static: true })\n dataFunField!: FunField;\n\n fields = computed(() => {\n if (this.dataFunField.computeResult()?.length) {\n return Object.keys(this.dataFunField.computeResult()[0]);\n }\n return [];\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\" nzRequired>\n 值字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"valueField\" [nzAutocomplete]=\"fieldAuto\" />\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 <input nz-input formControlName=\"labelField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-autocomplete #fieldAuto nzBackfill>\n @for (f of fields(); track f) {\n <nz-auto-option [nzLabel]=\"f\" [nzValue]=\"f\">\n {{f}}\n </nz-auto-option>\n }\n </nz-autocomplete>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 完整对象值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\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 #data formControlName=\"showAll\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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 #data formControlName=\"data\">\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 </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, 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: \"check-square\",\n }),\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element },\n }\n },\n};\n","/**\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}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-checkbox-design.mjs","sources":["../../../axis-components/checkbox/design/setting/setting.ts","../../../axis-components/checkbox/design/setting/setting.html","../../../axis-components/checkbox/design/config.ts","../../../axis-components/checkbox/design/ngx-axis-appforge-axis-components-checkbox-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, ViewChild } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-checkbox-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzAutocompleteModule, NzInputModule, NzSelectModule, FunField, DynamicDirective, NzSwitchModule, InputTrigger, NzInputNumberModule, NzRadioModule],\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 ...valueFbConfig,\n labelField: [\"title\", FormValidators.required],\n valueField: [\"key\", FormValidators.required],\n disabledField: [\"disabled\", FormValidators.required],\n fullValue: [false, FormValidators.required],\n showAll: [undefined, FormValidators.requiredFun],\n data: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n showAll: {\n defaultValue: false\n },\n data: {\n defaultValue: undefined\n },\n };\n\n @ViewChild(\"data\", { static: true })\n dataFunField!: FunField;\n\n fields = computed(() => {\n if (this.dataFunField.computeResult()?.length) {\n return Object.keys(this.dataFunField.computeResult()[0]);\n }\n return [];\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\" nzRequired>\n 值字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"valueField\" [nzAutocomplete]=\"fieldAuto\" />\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 <input nz-input formControlName=\"labelField\" [nzAutocomplete]=\"fieldAuto\" />\n </nz-form-control>\n </nz-form-item>\n <nz-autocomplete #fieldAuto nzBackfill>\n @for (f of fields(); track f) {\n <nz-auto-option [nzLabel]=\"f\" [nzValue]=\"f\">\n {{f}}\n </nz-auto-option>\n }\n </nz-autocomplete>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 完整对象值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\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 #data formControlName=\"showAll\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\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 #data formControlName=\"data\">\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 </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, 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: \"check-square\",\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":";;;;;;;;;;;;;;;;;;;;AAmBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,UAAU,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC9C,QAAA,UAAU,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC5C,QAAA,aAAa,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,QAAQ,C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,gBAAA,IAAA,EAAA,CAAA,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;AExC9B,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,cAAc;aACvB,CAAC;SACL;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;SAC5B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
@@ -21,7 +21,7 @@ class Setting extends FunFieldValueBase {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-cytoscape-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 \u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\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 </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"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-cytoscape-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 \u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\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 </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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
25
|
}
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
27
27
|
type: Component,
|