ngx-axis-appforge 0.0.11 → 0.0.13
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/editor/design/index.d.ts +5 -0
- package/axis-components/modal/index.d.ts +1 -1
- package/axis-components/steps/design/index.d.ts +5 -0
- package/axis-components/steps/index.d.ts +38 -0
- package/axis-components/tabs/design/index.d.ts +5 -0
- package/axis-components/tabs/index.d.ts +38 -0
- package/axis-components-covers/badge.svg +1 -1
- package/axis-components-covers/editor.png +0 -0
- package/axis-components-covers/steps.svg +1 -0
- package/axis-components-covers/tabs.svg +1 -0
- package/core/index.d.ts +4 -3
- 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 +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +13 -8
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +75 -0
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +197 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +61 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +1 -2
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +260 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +69 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +4 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +111 -4
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +12 -6
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +88 -68
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { FunFieldValueBase, FormValidators, baseFbConfig, baseFunField, BaseDesignSetting, FunField, InputTrigger, DynamicDirective, BaseMenu, CommonMenu, OptionsNode, SimpleMenu, nameCode } from 'ngx-axis-appforge/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i4 from 'ng-zorro-antd/collapse';
|
|
7
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
8
|
+
import * as i3 from 'ng-zorro-antd/form';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i6$1 from 'ng-zorro-antd/input';
|
|
11
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
12
|
+
import * as i6 from 'ng-zorro-antd/input-number';
|
|
13
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
14
|
+
import * as i5 from 'ng-zorro-antd/select';
|
|
15
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
16
|
+
import * as i7 from 'ng-zorro-antd/radio';
|
|
17
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
18
|
+
import * as i8 from 'ng-zorro-antd/switch';
|
|
19
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
20
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
|
21
|
+
import * as i3$1 from 'ng-zorro-antd/divider';
|
|
22
|
+
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
|
23
|
+
import * as i2$1 from 'ng-zorro-antd/dropdown';
|
|
24
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
25
|
+
import * as i4$1 from 'ng-zorro-antd/icon';
|
|
26
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
27
|
+
import * as i1$1 from 'ng-zorro-antd/menu';
|
|
28
|
+
|
|
29
|
+
class StepsSetting extends FunFieldValueBase {
|
|
30
|
+
fg = this.fb.group({
|
|
31
|
+
...baseFbConfig,
|
|
32
|
+
type: [undefined, FormValidators.requiredFun],
|
|
33
|
+
current: [],
|
|
34
|
+
direction: [undefined, FormValidators.requiredFun],
|
|
35
|
+
labelPlacement: [undefined, FormValidators.requiredFun],
|
|
36
|
+
progressDot: [undefined, FormValidators.requiredFun],
|
|
37
|
+
size: [undefined, FormValidators.requiredFun],
|
|
38
|
+
startIndex: [undefined, FormValidators.requiredFun],
|
|
39
|
+
status: [],
|
|
40
|
+
});
|
|
41
|
+
funFields = {
|
|
42
|
+
...baseFunField,
|
|
43
|
+
type: {
|
|
44
|
+
defaultValue: "default",
|
|
45
|
+
},
|
|
46
|
+
current: {
|
|
47
|
+
defaultValue: "",
|
|
48
|
+
},
|
|
49
|
+
direction: {
|
|
50
|
+
defaultValue: "horizontal",
|
|
51
|
+
},
|
|
52
|
+
labelPlacement: {
|
|
53
|
+
defaultValue: "horizontal",
|
|
54
|
+
},
|
|
55
|
+
progressDot: {
|
|
56
|
+
defaultValue: false
|
|
57
|
+
},
|
|
58
|
+
size: {
|
|
59
|
+
defaultValue: "default"
|
|
60
|
+
},
|
|
61
|
+
startIndex: {
|
|
62
|
+
defaultValue: 0
|
|
63
|
+
},
|
|
64
|
+
status: {
|
|
65
|
+
defaultValue: undefined
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepsSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: StepsSetting, isStandalone: true, selector: "axis-design-steps-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\" nzRequired>\n \u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"default\">\u9ED8\u8BA4</label>\n <label nz-radio-button nzValue=\"navigation\">\u5BFC\u822A</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 \u6B65\u9AA4\u6761\u65B9\u5411\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"direction\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">\u6C34\u5E73</label>\n <label nz-radio-button nzValue=\"vertical\">\u5782\u76F4</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 \u6807\u7B7E\u65B9\u5411\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"labelPlacement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">\u6C34\u5E73</label>\n <label nz-radio-button nzValue=\"vertical\">\u5782\u76F4</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 \u70B9\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"progressDot\">\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 \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=\"default\">\u5927</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 \u8D77\u59CB\u5E8F\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"startIndex\">\n <nz-input-number style=\"width: 100%;\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F53\u524D\u6B65\u9AA4\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"current\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n @for (step of value().steps; track step.name;let i=$index) {\n <nz-option [nzValue]=\"step.name\"\n [nzLabel]=\"step.title || step.subtitle || step.desc || `\u6B65\u9AA4${i+1}`\"></nz-option>\n }\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\">\n \u5F53\u524D\u6B65\u9AA4\u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\" nzAllowClear>\n <nz-option nzValue=\"wait\" nzLabel=\"\u7B49\u5F85\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"\u8FDB\u884C\u4E2D\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"\u5DF2\u5B8C\u6210\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></nz-option>\n </nz-select>\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 <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepChange',title:'\u6B65\u9AA4\u6539\u53D8',ds:{stepName:'\u793A\u4F8B\u6570\u636E'}}]\"></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.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"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "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: NzInputNumberModule }, { kind: "component", type: i6.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzInputModule }, { 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: 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: NzSwitchModule }, { kind: "component", type: i8.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepsSetting, decorators: [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{ selector: 'axis-design-steps-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, NzSelectModule, NzInputNumberModule, NzInputModule, FunField, NzRadioModule, NzSwitchModule, InputTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"default\">\u9ED8\u8BA4</label>\n <label nz-radio-button nzValue=\"navigation\">\u5BFC\u822A</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 \u6B65\u9AA4\u6761\u65B9\u5411\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"direction\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">\u6C34\u5E73</label>\n <label nz-radio-button nzValue=\"vertical\">\u5782\u76F4</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 \u6807\u7B7E\u65B9\u5411\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"labelPlacement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">\u6C34\u5E73</label>\n <label nz-radio-button nzValue=\"vertical\">\u5782\u76F4</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 \u70B9\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"progressDot\">\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 \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=\"default\">\u5927</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 \u8D77\u59CB\u5E8F\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"startIndex\">\n <nz-input-number style=\"width: 100%;\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F53\u524D\u6B65\u9AA4\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"current\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n @for (step of value().steps; track step.name;let i=$index) {\n <nz-option [nzValue]=\"step.name\"\n [nzLabel]=\"step.title || step.subtitle || step.desc || `\u6B65\u9AA4${i+1}`\"></nz-option>\n }\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\">\n \u5F53\u524D\u6B65\u9AA4\u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\" nzAllowClear>\n <nz-option nzValue=\"wait\" nzLabel=\"\u7B49\u5F85\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"\u8FDB\u884C\u4E2D\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"\u5DF2\u5B8C\u6210\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></nz-option>\n </nz-select>\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 <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepChange',title:'\u6B65\u9AA4\u6539\u53D8',ds:{stepName:'\u793A\u4F8B\u6570\u636E'}}]\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
74
|
+
}] });
|
|
75
|
+
|
|
76
|
+
class StepSetting extends FunFieldValueBase {
|
|
77
|
+
fg = this.fb.group({
|
|
78
|
+
name: ["", FormValidators.required],
|
|
79
|
+
inuse: [undefined, FormValidators.requiredFun],
|
|
80
|
+
title: [],
|
|
81
|
+
subtitle: [],
|
|
82
|
+
desc: [],
|
|
83
|
+
icon: [],
|
|
84
|
+
status: [undefined, FormValidators.requiredFun],
|
|
85
|
+
disabled: [undefined, FormValidators.requiredFun],
|
|
86
|
+
triggeEvents: [],
|
|
87
|
+
});
|
|
88
|
+
funFields = {
|
|
89
|
+
inuse: {
|
|
90
|
+
defaultValue: true,
|
|
91
|
+
},
|
|
92
|
+
title: {
|
|
93
|
+
defaultValue: "",
|
|
94
|
+
},
|
|
95
|
+
subtitle: {
|
|
96
|
+
defaultValue: "",
|
|
97
|
+
},
|
|
98
|
+
desc: {
|
|
99
|
+
defaultValue: "",
|
|
100
|
+
},
|
|
101
|
+
icon: {
|
|
102
|
+
defaultValue: undefined,
|
|
103
|
+
},
|
|
104
|
+
status: {
|
|
105
|
+
defaultValue: "wait",
|
|
106
|
+
},
|
|
107
|
+
disabled: {
|
|
108
|
+
defaultValue: false,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: StepSetting, isStandalone: true, selector: "axis-design-steps-step-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\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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 \u6B65\u9AA4ID\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"name\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\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 \u526F\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"subtitle\">\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 \u63CF\u8FF0\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"desc\">\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 \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 \u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"wait\" nzLabel=\"\u7B49\u5F85\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"\u8FDB\u884C\u4E2D\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"\u5DF2\u5B8C\u6210\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></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 \u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabled\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepClick',title:'\u70B9\u51FB\u6B65\u9AA4'}]\"></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: 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"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "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: NzInputModule }, { kind: "directive", type: i6$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { 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: NzSwitchModule }, { kind: "component", type: i8.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
113
|
+
}
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepSetting, decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{ selector: 'axis-design-steps-step-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, NzSelectModule, NzInputModule, FunField, NzSwitchModule, DynamicDirective, InputTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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 \u6B65\u9AA4ID\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"name\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\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 \u526F\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"subtitle\">\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 \u63CF\u8FF0\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"desc\">\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 \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 \u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"wait\" nzLabel=\"\u7B49\u5F85\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"\u8FDB\u884C\u4E2D\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"\u5DF2\u5B8C\u6210\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></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 \u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabled\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepClick',title:'\u70B9\u51FB\u6B65\u9AA4'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
117
|
+
}] });
|
|
118
|
+
|
|
119
|
+
class StepsMenu extends BaseMenu {
|
|
120
|
+
addStep() {
|
|
121
|
+
const name = `step${this.optionsNodes.current.options.steps.length + 1}`;
|
|
122
|
+
this.optionsNodes.current.options.steps.push({
|
|
123
|
+
name: name,
|
|
124
|
+
title: "未命名",
|
|
125
|
+
inuse: true,
|
|
126
|
+
});
|
|
127
|
+
this.onChange?.({ nextNodeId: `${this.optionsNodes.current?.id}.${name}`, historyDesc: "添加步骤" });
|
|
128
|
+
}
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepsMenu, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: StepsMenu, isStandalone: true, selector: "axis-design-steps-menu", usesInheritance: true, ngImport: i0, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addStep()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u6B65\u9AA4</span>\n </li>\n <axis-common-menu [baseMenu]=\"this\"></axis-common-menu>\n </ul>\n</nz-dropdown-menu>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i3$1.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i4$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: CommonMenu, selector: "axis-common-menu", inputs: ["baseMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
131
|
+
}
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: StepsMenu, decorators: [{
|
|
133
|
+
type: Component,
|
|
134
|
+
args: [{ selector: 'axis-design-steps-menu', imports: [NzDropDownModule, NzDividerModule, NzIconModule, CommonMenu], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addStep()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u6B65\u9AA4</span>\n </li>\n <axis-common-menu [baseMenu]=\"this\"></axis-common-menu>\n </ul>\n</nz-dropdown-menu>" }]
|
|
135
|
+
}] });
|
|
136
|
+
|
|
137
|
+
const Config = {
|
|
138
|
+
componentName: "步骤条",
|
|
139
|
+
buildOptionsNodes(nextInfo) {
|
|
140
|
+
return {
|
|
141
|
+
treeNode: new OptionsNode({
|
|
142
|
+
parentId: nextInfo.parentId,
|
|
143
|
+
scopeId: nextInfo.scopeId,
|
|
144
|
+
name: "步骤条",
|
|
145
|
+
canSetting: true,
|
|
146
|
+
canDrag: true,
|
|
147
|
+
dragType: "component",
|
|
148
|
+
canDrop: true,
|
|
149
|
+
dropType: "axis-components/steps/step",
|
|
150
|
+
dropObj: nextInfo.currentObject.steps,
|
|
151
|
+
defaultDropIndex: nextInfo.currentObject.steps?.length,
|
|
152
|
+
parentObj: nextInfo.parentObject,
|
|
153
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
154
|
+
rootOptions: nextInfo.currentObject,
|
|
155
|
+
settingType: StepsSetting,
|
|
156
|
+
contextMenu: StepsMenu,
|
|
157
|
+
icon: "forward",
|
|
158
|
+
childDirection: nextInfo.currentObject.direction,
|
|
159
|
+
children: nextInfo.currentObject.steps?.map((s, i) => new OptionsNode({
|
|
160
|
+
id: nextInfo.currentObject.id + "." + s.name,
|
|
161
|
+
updateId: (options) => nextInfo.currentObject.id + "." + options.name,
|
|
162
|
+
parentId: nextInfo.currentObject.id,
|
|
163
|
+
scopeId: nextInfo.scopeId,
|
|
164
|
+
name: nameCode("步骤", s.title),
|
|
165
|
+
canSetting: true,
|
|
166
|
+
canDrag: true,
|
|
167
|
+
dragType: "axis-components/steps/step",
|
|
168
|
+
settingType: StepSetting,
|
|
169
|
+
contextMenu: SimpleMenu,
|
|
170
|
+
icon: "caret-right",
|
|
171
|
+
rootOptions: s,
|
|
172
|
+
parentObj: nextInfo.currentObject.steps,
|
|
173
|
+
indexOfParentObj: i
|
|
174
|
+
})),
|
|
175
|
+
})
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
bindElementsOptionsNode(element, options) {
|
|
179
|
+
const res = {
|
|
180
|
+
[options.id]: { element, dropElement: element.querySelector("nz-steps") }
|
|
181
|
+
};
|
|
182
|
+
const steps = element.querySelectorAll("nz-steps>nz-step[data-name]");
|
|
183
|
+
for (const e of steps) {
|
|
184
|
+
res[`${options.id}.${e.dataset['name']}`] = {
|
|
185
|
+
element: e
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
return res;
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Generated bundle index. Do not edit.
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
export { Config };
|
|
197
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-steps-design.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-steps-design.mjs","sources":["../../../axis-components/steps/design/steps-setting/steps-setting.ts","../../../axis-components/steps/design/steps-setting/steps-setting.html","../../../axis-components/steps/design/step-setting/step-setting.ts","../../../axis-components/steps/design/step-setting/step-setting.html","../../../axis-components/steps/design/steps-menu/steps-menu.ts","../../../axis-components/steps/design/steps-menu/steps-menu.html","../../../axis-components/steps/design/config.ts","../../../axis-components/steps/design/ngx-axis-appforge-axis-components-steps-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger } from 'ngx-axis-appforge/core';\nimport { NzRadioModule } from \"ng-zorro-antd/radio\";\nimport { NzSwitchModule } from \"ng-zorro-antd/switch\";\n\n@Component({\n selector: 'axis-design-steps-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, NzSelectModule, NzInputNumberModule, NzInputModule, FunField, NzRadioModule, NzSwitchModule, InputTrigger],\n templateUrl: './steps-setting.html',\n styleUrl: './steps-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StepsSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n type: [undefined, FormValidators.requiredFun],\n current: [],\n direction: [undefined, FormValidators.requiredFun],\n labelPlacement: [undefined, FormValidators.requiredFun],\n progressDot: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n startIndex: [undefined, FormValidators.requiredFun],\n status: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n type: {\n defaultValue: \"default\",\n },\n current: {\n defaultValue: \"\",\n },\n direction: {\n defaultValue: \"horizontal\",\n },\n labelPlacement: {\n defaultValue: \"horizontal\",\n },\n progressDot: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n startIndex: {\n defaultValue: 0\n },\n status: {\n defaultValue: undefined\n }\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"default\">默认</label>\n <label nz-radio-button nzValue=\"navigation\">导航</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=\"direction\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">水平</label>\n <label nz-radio-button nzValue=\"vertical\">垂直</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=\"labelPlacement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"horizontal\">水平</label>\n <label nz-radio-button nzValue=\"vertical\">垂直</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=\"progressDot\">\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=\"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=\"startIndex\">\n <nz-input-number style=\"width: 100%;\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\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=\"current\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n @for (step of value().steps; track step.name;let i=$index) {\n <nz-option [nzValue]=\"step.name\"\n [nzLabel]=\"step.title || step.subtitle || step.desc || `步骤${i+1}`\"></nz-option>\n }\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\">\n 当前步骤状态\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\" nzAllowClear>\n <nz-option nzValue=\"wait\" nzLabel=\"等待\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"进行中\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"已完成\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"错误\"></nz-option>\n </nz-select>\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 <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepChange',title:'步骤改变',ds:{stepName:'示例数据'}}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger } from 'ngx-axis-appforge/core';\nimport { NzSwitchModule } from \"ng-zorro-antd/switch\";\n\n@Component({\n selector: 'axis-design-steps-step-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, NzSelectModule, NzInputModule, FunField, NzSwitchModule, DynamicDirective, InputTrigger],\n templateUrl: './step-setting.html',\n styleUrl: './step-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StepSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n name: [\"\", FormValidators.required],\n inuse: [undefined, FormValidators.requiredFun],\n title: [],\n subtitle: [],\n desc: [],\n icon: [],\n status: [undefined, FormValidators.requiredFun],\n disabled: [undefined, FormValidators.requiredFun],\n triggeEvents: [],\n });\n\n protected override funFields: FunFieldOptions = {\n inuse: {\n defaultValue: true,\n },\n title: {\n defaultValue: \"\",\n },\n subtitle: {\n defaultValue: \"\",\n },\n desc: {\n defaultValue: \"\",\n },\n icon: {\n defaultValue: undefined,\n },\n status: {\n defaultValue: \"wait\",\n },\n disabled: {\n defaultValue: false,\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 是否可用\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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 步骤ID\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"name\" />\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=\"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=\"subtitle\">\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=\"desc\">\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=\"status\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"wait\" nzLabel=\"等待\"></nz-option>\n <nz-option nzValue=\"process\" nzLabel=\"进行中\"></nz-option>\n <nz-option nzValue=\"finish\" nzLabel=\"已完成\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"错误\"></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=\"disabled\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'stepClick',title:'点击步骤'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NzDividerModule } from 'ng-zorro-antd/divider';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { BaseMenu, CommonMenu } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-steps-menu',\n imports: [NzDropDownModule, NzDividerModule, NzIconModule, CommonMenu],\n templateUrl: './steps-menu.html',\n styleUrl: './steps-menu.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StepsMenu extends BaseMenu {\n\n addStep() {\n const name = `step${this.optionsNodes.current.options.steps.length + 1}`;\n this.optionsNodes.current.options.steps.push({\n name: name,\n title: \"未命名\",\n inuse: true,\n });\n this.onChange?.({ nextNodeId: `${this.optionsNodes.current?.id}.${name}`, historyDesc: \"添加步骤\" });\n }\n}\n","<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addStep()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>添加步骤</span>\n </li>\n <axis-common-menu [baseMenu]=\"this\"></axis-common-menu>\n </ul>\n</nz-dropdown-menu>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { StepsSetting } from \"./steps-setting/steps-setting\";\nimport { StepSetting } from \"./step-setting/step-setting\";\nimport { StepsMenu } from \"./steps-menu/steps-menu\";\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 canDrop: true,\n dropType: \"axis-components/steps/step\",\n dropObj: nextInfo.currentObject.steps,\n defaultDropIndex: nextInfo.currentObject.steps?.length,\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: StepsSetting,\n contextMenu: StepsMenu,\n icon: \"forward\",\n childDirection: nextInfo.currentObject.direction,\n children: nextInfo.currentObject.steps?.map((s: any, i: number) => new OptionsNode({\n id: nextInfo.currentObject.id + \".\" + s.name,\n updateId: (options) => nextInfo.currentObject.id + \".\" + options.name,\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: nameCode(\"步骤\", s.title),\n canSetting: true,\n canDrag: true,\n dragType: \"axis-components/steps/step\",\n settingType: StepSetting,\n contextMenu: SimpleMenu,\n icon: \"caret-right\",\n rootOptions: s,\n parentObj: nextInfo.currentObject.steps,\n indexOfParentObj: i\n })),\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n const res: DesignBindElementsResult = {\n [options.id]: { element, dropElement: element.querySelector(\"nz-steps\") as HTMLElement }\n };\n const steps = element.querySelectorAll(\"nz-steps>nz-step[data-name]\");\n for (const e of steps) {\n res[`${options.id}.${(e as HTMLElement).dataset['name']}`] = {\n element: e as HTMLElement\n }\n }\n return res\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":["i6","i7","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,YAAa,SAAQ,iBAAiB,CAAA;AAExC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAClD,QAAA,cAAc,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACvD,QAAA,WAAW,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACpD,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,UAAU,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAA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,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,OAAO,EAAE,QAAQ,CAAC,OAAO;oBACzB,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;AAC7B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,IAAI;AACb,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,WAAW,EAAE,WAAW;AACxB,oBAAA,WAAW,EAAE,UAAU;AACvB,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,WAAW,EAAE,CAAC;AACd,oBAAA,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK;AACvC,oBAAA,gBAAgB,EAAE;AACrB,iBAAA,CAAC,CAAC;aACN;SACJ;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;AACtD,QAAA,MAAM,GAAG,GAA6B;AAClC,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,CAAgB;SACzF;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,6BAA6B,CAAC;AACrE,QAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACnB,YAAA,GAAG,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,CAAA,CAAA,EAAK,CAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA,CAAE,CAAC,GAAG;AACzD,gBAAA,OAAO,EAAE;aACZ;;AAEL,QAAA,OAAO,GAAG;KACb;;;AC1DL;;AAEG;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, effect, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { BaseOptions, Base, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
4
|
+
import * as i1 from 'ng-zorro-antd/steps';
|
|
5
|
+
import { NzStepsModule } from 'ng-zorro-antd/steps';
|
|
6
|
+
|
|
7
|
+
class StepsOptions extends BaseOptions {
|
|
8
|
+
type = signal("default", ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
9
|
+
current = signal("", ...(ngDevMode ? [{ debugName: "current" }] : []));
|
|
10
|
+
direction = signal("horizontal", ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
11
|
+
labelPlacement = signal("horizontal", ...(ngDevMode ? [{ debugName: "labelPlacement" }] : []));
|
|
12
|
+
progressDot = signal(false, ...(ngDevMode ? [{ debugName: "progressDot" }] : []));
|
|
13
|
+
size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
14
|
+
startIndex = signal(0, ...(ngDevMode ? [{ debugName: "startIndex" }] : []));
|
|
15
|
+
status = signal(undefined, ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
16
|
+
steps = signal([], ...(ngDevMode ? [{ debugName: "steps" }] : []));
|
|
17
|
+
}
|
|
18
|
+
class StepOptions {
|
|
19
|
+
name = signal("", ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
20
|
+
inuse = signal(true, ...(ngDevMode ? [{ debugName: "inuse" }] : []));
|
|
21
|
+
title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
22
|
+
subtitle = signal("", ...(ngDevMode ? [{ debugName: "subtitle" }] : []));
|
|
23
|
+
desc = signal("", ...(ngDevMode ? [{ debugName: "desc" }] : []));
|
|
24
|
+
icon = signal(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
25
|
+
status = signal("wait", ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
26
|
+
disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
27
|
+
triggeEvents = signal(undefined, ...(ngDevMode ? [{ debugName: "triggeEvents" }] : []));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Steps extends Base {
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
effect(() => {
|
|
34
|
+
this.steps().forEach((p, i) => {
|
|
35
|
+
this.bindWithConfig(this.options.steps()[i], { options: p, tag: `bindSteps.${i}` });
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
options = new StepsOptions();
|
|
40
|
+
steps = computed(() => this.options.steps().map(_ => new StepOptions()), ...(ngDevMode ? [{ debugName: "steps" }] : []));
|
|
41
|
+
displaySteps = computed(() => this.steps().filter(s => s.inuse()), ...(ngDevMode ? [{ debugName: "displaySteps" }] : []));
|
|
42
|
+
current = computed(() => this.displaySteps().findIndex(s => s.name() == this.options.current()) + this.options.startIndex(), ...(ngDevMode ? [{ debugName: "current" }] : []));
|
|
43
|
+
onIndexChange(index) {
|
|
44
|
+
const step = this.displaySteps()[index - this.options.startIndex()];
|
|
45
|
+
this.triggeEvents("stepChange", { stepName: step.name() }).subscribe();
|
|
46
|
+
this.triggeEvents("stepClick", undefined, step.triggeEvents()).subscribe();
|
|
47
|
+
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Steps, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: Steps, isStandalone: true, selector: "axis-steps", usesInheritance: true, ngImport: i0, template: "<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzStepsModule }, { kind: "component", type: i1.NzStepsComponent, selector: "nz-steps", inputs: ["nzCurrent", "nzDirection", "nzLabelPlacement", "nzType", "nzSize", "nzStartIndex", "nzStatus", "nzProgressDot"], outputs: ["nzIndexChange"], exportAs: ["nzSteps"] }, { kind: "component", type: i1.NzStepComponent, selector: "nz-step", inputs: ["nzTitle", "nzSubtitle", "nzDescription", "nzDisabled", "nzPercentage", "nzSize", "nzStatus", "nzIcon"], exportAs: ["nzStep"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Steps, decorators: [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{ selector: 'axis-steps', imports: [NzStepsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>", styles: [":host{display:block}\n"] }]
|
|
54
|
+
}], ctorParameters: () => [] });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Generated bundle index. Do not edit.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export { Steps };
|
|
61
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-steps.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-steps.mjs","sources":["../../../axis-components/steps/steps.options.ts","../../../axis-components/steps/steps.ts","../../../axis-components/steps/steps.html","../../../axis-components/steps/ngx-axis-appforge-axis-components-steps.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions, TriggeEventsOptions } from \"ngx-axis-appforge/core\";\n\nexport class StepsOptions extends BaseOptions {\n readonly type = signal<\"default\" | \"navigation\">(\"default\");\n readonly current = signal(\"\");\n readonly direction = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly labelPlacement = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly progressDot = signal(false);\n readonly size = signal<\"small\" | \"default\">(\"default\");\n readonly startIndex = signal(0);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error' | undefined>(undefined);\n readonly steps = signal<any[]>([]);\n}\n\nexport class StepOptions {\n readonly name = signal(\"\");\n readonly inuse = signal(true);\n readonly title = signal(\"\");\n readonly subtitle = signal(\"\");\n readonly desc = signal(\"\");\n readonly icon = signal<any>(undefined);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error'>(\"wait\");\n readonly disabled = signal(false);\n readonly triggeEvents = signal<TriggeEventsOptions | undefined>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { StepOptions, StepsOptions } from './steps.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\n\n@Component({\n selector: 'axis-steps',\n imports: [NzStepsModule, DynamicDirective],\n templateUrl: './steps.html',\n styleUrl: './steps.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Steps extends Base<StepsOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.steps().forEach((p, i) => {\n this.bindWithConfig(this.options.steps()[i], { options: p, tag: `bindSteps.${i}` });\n });\n });\n }\n override options: StepsOptions = new StepsOptions();\n readonly steps = computed(() => this.options.steps().map(_ => new StepOptions()));\n readonly displaySteps = computed(() => this.steps().filter(s => s.inuse()));\n readonly current = computed(() => this.displaySteps().findIndex(s => s.name() == this.options.current()) + this.options.startIndex());\n\n onIndexChange(index: number) {\n const step = this.displaySteps()[index - this.options.startIndex()];\n this.triggeEvents(\"stepChange\", { stepName: step.name() }).subscribe();\n this.triggeEvents(\"stepClick\", undefined, step.triggeEvents()).subscribe();\n }\n\n}\n","<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './steps';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAChC,IAAA,IAAI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,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAL,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAK,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZlB,m4BAaW,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDNC,aAAa,meAAE,gBAAgB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,YAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAK9B,KAAK,EAAA,UAAA,EAAA,CAAA;kBAPjB,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGzB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m4BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i4 from 'ng-zorro-antd/collapse';
|
|
@@ -108,7 +108,6 @@ class TableFieldSetting extends FunFieldValueBase {
|
|
|
108
108
|
defaultValue: null
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
|
-
excludeDs = computed(() => this.value().dataSources?.map((e) => e.name), ...(ngDevMode ? [{ debugName: "excludeDs" }] : []));
|
|
112
111
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: TableFieldSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
113
112
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: TableFieldSetting, isStandalone: true, selector: "axis-design-scope-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=\"10\" nzRequired>\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <input nz-input formControlName=\"field\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5B57\u6BB5\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\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=\"10\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"inuse\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u5BBD\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"width\">\n <nz-input-number ngModel [ngModelOptions]=\"{standalone:true}\" style=\"width: 100%;\" [nzMin]=\"0\">\n <span nzInputAddonAfter>px</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5BF9\u9F50\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"align\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"left\" nzLabel=\"\u5DE6\u5BF9\u9F50\"></nz-option>\n <nz-option nzValue=\"center\" nzLabel=\"\u5C45\u4E2D\"></nz-option>\n <nz-option nzValue=\"right\" nzLabel=\"\u53F3\u5BF9\u9F50\"></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=\"10\" nzRequired>\n \u56FA\u5B9A\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"freezeMode\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"none\" nzLabel=\"\u4E0D\u56FA\u5B9A\"></nz-option>\n <nz-option nzValue=\"left\" nzLabel=\"\u56FA\u5B9A\u5728\u5DE6\"></nz-option>\n <nz-option nzValue=\"right\" nzLabel=\"\u56FA\u5B9A\u5728\u53F3\"></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=\"10\" nzTooltipTitle=\"\u672A\u5B9E\u73B0\">\n \u5206\u7EC4\u8868\u5934\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"titleGroup\">\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=\"10\" nzTooltipTitle=\"\u672A\u5B9E\u73B0\">\n \u5206\u7EC4\u7EA7\u522B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"groupLevel\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"1\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"1\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u6392\u5E8F\u8FC7\u6EE4\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u662F\u5426\u6392\u5E8F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"sortAble\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().sortAble?.funMode || formValue()?.sortAble?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u9ED8\u8BA4\u6392\u5E8F\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"sortOrder\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\" nzAllowClear>\n <nz-option nzValue=\"ascend\" nzLabel=\"\u5347\u5E8F\"></nz-option>\n <nz-option nzValue=\"descend\" nzLabel=\"\u964D\u5E8F\"></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=\"10\">\n \u6392\u5E8F\u4F18\u5148\u7EA7\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"sortPriority\">\n <nz-input-number style=\"width: 100%;\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u662F\u5426\u8FC7\u6EE4\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"filterAble\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().filterAble?.funMode || formValue()?.filterAble?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u591A\u4E2A\u8FC7\u6EE4\u6761\u4EF6\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"filterMultiple\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u7EDF\u8BA1\u8BBE\u7F6E(\u672A\u5B9E\u73B0)\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u662F\u5426\u7EDF\u8BA1\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <nz-switch formControlName=\"totalAble\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().totalAble) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u81EA\u5B9A\u4E49\u7EDF\u8BA1\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"totalFn\" [onlyFun]=\"true\" [noListen]=\"true\">\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5BFC\u51FA\u5BFC\u5165(\u672A\u5B9E\u73B0)\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u662F\u5426\u5BFC\u51FA\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"export\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().export?.funMode || formValue()?.export?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5BFC\u51FA\u5185\u5BB9\u8DDF\u968F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"exportFlowChild\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().exportFlowChild?.funMode || !formValue()?.exportFlowChild?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u5BFC\u51FA\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"exportFn\" [onlyFun]=\"true\" [noListen]=\"true\">\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u662F\u5426\u5BFC\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"import\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().import?.funMode || formValue()?.import?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5FC5\u586B\u6807\u5FD7\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"importRequired\">\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=\"10\" nzRequired>\n \u5355\u5143\u683C\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"importCellType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\" [nzAllowClear]=\"false\">\n <nz-option nzValue=\"text\" nzLabel=\"\u6587\u672C\"></nz-option>\n <nz-option nzValue=\"number\" nzLabel=\"\u6570\u5B57\"></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=\"10\">\n \u5BFC\u5165\u5E2E\u52A9\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"importHelp\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\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: 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"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { 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: "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: NzRadioModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i6$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i6$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "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: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "directive", type: i6.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i8.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
114
113
|
}
|