ngx-axis-appforge 0.0.40 → 0.0.41
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/select/index.d.ts +8 -3
- package/axis-components/transfer/design/index.d.ts +5 -0
- package/axis-components/transfer/index.d.ts +114 -0
- package/axis-components-covers/transfer.svg +86 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +76 -73
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +360 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +304 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +28 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
- package/package.json +106 -98
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { FunFieldValueBase, FormValidators, valueFbConfig, baseFbConfig, valueFunField, baseFunField, BaseDesignSetting, ValueDesignSetting, FunField, DynamicDirective, InputTrigger, BaseMenu, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { computed, ViewChild, ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i5 from 'ng-zorro-antd/auto-complete';
|
|
7
|
+
import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
|
|
8
|
+
import * as i2 from 'ng-zorro-antd/collapse';
|
|
9
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
10
|
+
import * as i4 from 'ng-zorro-antd/form';
|
|
11
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
12
|
+
import * as i6 from 'ng-zorro-antd/input';
|
|
13
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
14
|
+
import * as i9 from 'ng-zorro-antd/input-number';
|
|
15
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
16
|
+
import * as i10 from 'ng-zorro-antd/radio';
|
|
17
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
18
|
+
import * as i7 from 'ng-zorro-antd/select';
|
|
19
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
20
|
+
import * as i8 from 'ng-zorro-antd/switch';
|
|
21
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
22
|
+
import * as i3 from 'ng-zorro-antd/grid';
|
|
23
|
+
import * as i3$1 from 'ng-zorro-antd/divider';
|
|
24
|
+
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
|
25
|
+
import * as i2$1 from 'ng-zorro-antd/dropdown';
|
|
26
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
27
|
+
import * as i4$1 from 'ng-zorro-antd/icon';
|
|
28
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
29
|
+
import * as i1$1 from 'ng-zorro-antd/menu';
|
|
30
|
+
|
|
31
|
+
class Setting extends FunFieldValueBase {
|
|
32
|
+
fg = this.fb.group({
|
|
33
|
+
...baseFbConfig,
|
|
34
|
+
...valueFbConfig,
|
|
35
|
+
labelField: ["title", FormValidators.required],
|
|
36
|
+
valueField: ["key", FormValidators.required],
|
|
37
|
+
disabledField: ["disabled", FormValidators.required],
|
|
38
|
+
fullValue: [false, FormValidators.required],
|
|
39
|
+
allowInvalidValue: [false, FormValidators.required],
|
|
40
|
+
data: [],
|
|
41
|
+
type: ['normal', FormValidators.required],
|
|
42
|
+
modalTitle: [],
|
|
43
|
+
titles: [],
|
|
44
|
+
operations: [],
|
|
45
|
+
itemUnits: [],
|
|
46
|
+
selectAll: [undefined, FormValidators.requiredFun],
|
|
47
|
+
showSearch: [undefined, FormValidators.requiredFun],
|
|
48
|
+
searchPlaceholder: [],
|
|
49
|
+
notFoundContent: [],
|
|
50
|
+
oneWay: [undefined, FormValidators.requiredFun],
|
|
51
|
+
allowClear: [undefined, FormValidators.requiredFun],
|
|
52
|
+
placeholder: [],
|
|
53
|
+
variant: [undefined, FormValidators.requiredFun],
|
|
54
|
+
size: [undefined, FormValidators.requiredFun],
|
|
55
|
+
maxTagCount: [],
|
|
56
|
+
tableSize: [undefined, FormValidators.requiredFun],
|
|
57
|
+
showOrder: [undefined, FormValidators.requiredFun],
|
|
58
|
+
showDataSize: [undefined, FormValidators.requiredFun],
|
|
59
|
+
bordered: [undefined, FormValidators.requiredFun],
|
|
60
|
+
outerBordered: [undefined, FormValidators.requiredFun],
|
|
61
|
+
tableWidth: [],
|
|
62
|
+
showPagination: [true, FormValidators.required],
|
|
63
|
+
pageSize: [undefined, FormValidators.requiredFun],
|
|
64
|
+
showSizeChanger: [undefined, FormValidators.requiredFun],
|
|
65
|
+
pageSizeOptions: ["10,20,50,100", [FormValidators.required, FormValidators.pattern(/^\d+(?:,\d+)*$/)]],
|
|
66
|
+
});
|
|
67
|
+
funFields = {
|
|
68
|
+
...baseFunField,
|
|
69
|
+
...valueFunField,
|
|
70
|
+
data: {
|
|
71
|
+
defaultValue: undefined
|
|
72
|
+
},
|
|
73
|
+
modalTitle: {
|
|
74
|
+
defaultValue: '请选择'
|
|
75
|
+
},
|
|
76
|
+
titles: {
|
|
77
|
+
defaultValue: '待选,已选'
|
|
78
|
+
},
|
|
79
|
+
operations: {
|
|
80
|
+
defaultValue: ''
|
|
81
|
+
},
|
|
82
|
+
itemUnits: {
|
|
83
|
+
defaultValue: '项'
|
|
84
|
+
},
|
|
85
|
+
selectAll: {
|
|
86
|
+
defaultValue: true
|
|
87
|
+
},
|
|
88
|
+
showSearch: {
|
|
89
|
+
defaultValue: false
|
|
90
|
+
},
|
|
91
|
+
searchPlaceholder: {
|
|
92
|
+
defaultValue: '请输入搜索内容'
|
|
93
|
+
},
|
|
94
|
+
notFoundContent: {
|
|
95
|
+
defaultValue: '列表为空'
|
|
96
|
+
},
|
|
97
|
+
oneWay: {
|
|
98
|
+
defaultValue: false
|
|
99
|
+
},
|
|
100
|
+
allowClear: {
|
|
101
|
+
defaultValue: true
|
|
102
|
+
},
|
|
103
|
+
placeholder: {
|
|
104
|
+
defaultValue: ""
|
|
105
|
+
},
|
|
106
|
+
variant: {
|
|
107
|
+
defaultValue: "outlined"
|
|
108
|
+
},
|
|
109
|
+
size: {
|
|
110
|
+
defaultValue: "default"
|
|
111
|
+
},
|
|
112
|
+
maxTagCount: {
|
|
113
|
+
defaultValue: undefined
|
|
114
|
+
},
|
|
115
|
+
tableSize: {
|
|
116
|
+
defaultValue: "middle"
|
|
117
|
+
},
|
|
118
|
+
showOrder: {
|
|
119
|
+
defaultValue: true
|
|
120
|
+
},
|
|
121
|
+
showDataSize: {
|
|
122
|
+
defaultValue: true
|
|
123
|
+
},
|
|
124
|
+
bordered: {
|
|
125
|
+
defaultValue: false
|
|
126
|
+
},
|
|
127
|
+
outerBordered: {
|
|
128
|
+
defaultValue: false
|
|
129
|
+
},
|
|
130
|
+
tableWidth: {
|
|
131
|
+
defaultValue: null
|
|
132
|
+
},
|
|
133
|
+
pageSize: {
|
|
134
|
+
defaultValue: 10
|
|
135
|
+
},
|
|
136
|
+
showSizeChanger: {
|
|
137
|
+
defaultValue: true
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
dataFunField;
|
|
141
|
+
fields = computed(() => {
|
|
142
|
+
if (this.dataFunField.computeResult()?.length) {
|
|
143
|
+
return Object.keys(this.dataFunField.computeResult()[0]);
|
|
144
|
+
}
|
|
145
|
+
return [];
|
|
146
|
+
}, ...(ngDevMode ? [{ debugName: "fields" }] : []));
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
148
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Setting, isStandalone: true, selector: "axis-design-single-selector-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 \u5141\u8BB8\u65E0\u6548\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"allowInvalidValue\"></nz-switch>\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 <nz-collapse-panel nzHeader=\"\u7A7F\u68AD\u6846\u5916\u89C2\u8BBE\u7F6E\">\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 <nz-select formControlName=\"type\">\n <nz-option nzValue=\"normal\" nzLabel=\"\u666E\u901A\"></nz-option>\n <nz-option nzValue=\"table\" nzLabel=\"\u8868\u683C\"></nz-option>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.type != \"table\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5355\u5411\u6A21\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"oneWay\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5F39\u7A97\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"modalTitle\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u5DE6\u53F3\u4E24\u4FA7\u7684\u6807\u9898\">\n \u7A7F\u68AD\u6846\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"titles\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u4E24\u4E2A\u65B9\u5411\u7684\u64CD\u4F5C\u6807\u9898\">\n \u64CD\u4F5C\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"operations\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u5355\u6570\u548C\u590D\u6570\u7684\u663E\u793A\u5355\u4F4D\">\n \u663E\u793A\u5355\u4F4D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"itemUnits\">\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\" nzRequired>\n \u5168\u9009\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"selectAll\">\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\">\n \u7A7A\u5217\u8868\u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"notFoundContent\">\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\" nzRequired>\n \u641C\u7D22\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showSearch\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if(formValue()?.showSearch.funMode || formValue()?.showSearch.originValue){\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u641C\u7D22\u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"searchPlaceholder\">\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 <nz-collapse-panel nzHeader=\"\u9009\u62E9\u6846\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></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 \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}\" nzSize=\"small\">\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 \u5141\u8BB8\u6E05\u7A7A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"allowClear\">\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\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\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 \u53EF\u89C1\u6807\u7B7E\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"maxTagCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u8868\u683C\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u8868\u683C\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"tableSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</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\" nzRequired>\n \u663E\u793A\u5E8F\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showOrder\">\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 \u663E\u793A\u6570\u636E\u6761\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showDataSize\">\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 \u663E\u793A\u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"bordered\">\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 \u663E\u793A\u5916\u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"outerBordered\">\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\" nzTooltipTitle=\"\u4E0D\u8BBE\u7F6E\u65F6\uFF0C\u81EA\u52A8\u8BA1\u7B97\u6EDA\u52A8\u5BBD\u5EA6\uFF0C\u81EA\u52A8\u8BA1\u7B97\u4E0D\u5408\u7406\u65F6\u624B\u52A8\u8BBE\u7F6E\">\n \u8868\u683C\u6EDA\u52A8\u5BBD\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"tableWidth\">\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 \u662F\u5426\u5206\u9875\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <nz-switch formControlName=\"showPagination\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.showPagination) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u9ED8\u8BA4\u884C\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"pageSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\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 \u884C\u6570\u4FEE\u6539\u5668\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showSizeChanger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().showSizeChanger?.funMode || formValue()?.showSizeChanger?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired nzTooltipTitle=\"\u7528\u9017\u53F7\u5206\u9694\uFF0C\u4F8B:10,20,50,100\">\n \u9875\u6570\u53EF\u9009\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <input nz-input formControlName=\"pageSizeOptions\" placeholder=\"\u4F8B:10,20,50,100\" />\n </nz-form-control>\n </nz-form-item>\n }\n }\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"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], 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: i7.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i7.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: "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: 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", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i9.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: NzRadioModule }, { kind: "component", type: i10.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i10.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
149
|
+
}
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, decorators: [{
|
|
151
|
+
type: Component,
|
|
152
|
+
args: [{ selector: 'axis-design-single-selector-setting', imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzAutocompleteModule, NzInputModule, NzSelectModule, FunField, DynamicDirective, NzSwitchModule, InputTrigger, NzInputNumberModule, NzRadioModule, NzSelectModule], 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 \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 \u5141\u8BB8\u65E0\u6548\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"allowInvalidValue\"></nz-switch>\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 <nz-collapse-panel nzHeader=\"\u7A7F\u68AD\u6846\u5916\u89C2\u8BBE\u7F6E\">\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 <nz-select formControlName=\"type\">\n <nz-option nzValue=\"normal\" nzLabel=\"\u666E\u901A\"></nz-option>\n <nz-option nzValue=\"table\" nzLabel=\"\u8868\u683C\"></nz-option>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.type != \"table\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5355\u5411\u6A21\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"oneWay\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5F39\u7A97\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"modalTitle\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u5DE6\u53F3\u4E24\u4FA7\u7684\u6807\u9898\">\n \u7A7F\u68AD\u6846\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"titles\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u4E24\u4E2A\u65B9\u5411\u7684\u64CD\u4F5C\u6807\u9898\">\n \u64CD\u4F5C\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"operations\">\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\" nzTooltipTitle=\"\u53EF\u901A\u8FC7\u9017\u53F7\u5206\u9694\u8BBE\u7F6E\u5355\u6570\u548C\u590D\u6570\u7684\u663E\u793A\u5355\u4F4D\">\n \u663E\u793A\u5355\u4F4D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"itemUnits\">\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\" nzRequired>\n \u5168\u9009\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"selectAll\">\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\">\n \u7A7A\u5217\u8868\u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"notFoundContent\">\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\" nzRequired>\n \u641C\u7D22\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showSearch\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if(formValue()?.showSearch.funMode || formValue()?.showSearch.originValue){\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u641C\u7D22\u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"searchPlaceholder\">\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 <nz-collapse-panel nzHeader=\"\u9009\u62E9\u6846\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></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 \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}\" nzSize=\"small\">\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 \u5141\u8BB8\u6E05\u7A7A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"allowClear\">\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\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\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 \u53EF\u89C1\u6807\u7B7E\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"maxTagCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u8868\u683C\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u8868\u683C\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"tableSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</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\" nzRequired>\n \u663E\u793A\u5E8F\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showOrder\">\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 \u663E\u793A\u6570\u636E\u6761\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showDataSize\">\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 \u663E\u793A\u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"bordered\">\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 \u663E\u793A\u5916\u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"outerBordered\">\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\" nzTooltipTitle=\"\u4E0D\u8BBE\u7F6E\u65F6\uFF0C\u81EA\u52A8\u8BA1\u7B97\u6EDA\u52A8\u5BBD\u5EA6\uFF0C\u81EA\u52A8\u8BA1\u7B97\u4E0D\u5408\u7406\u65F6\u624B\u52A8\u8BBE\u7F6E\">\n \u8868\u683C\u6EDA\u52A8\u5BBD\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"tableWidth\">\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 \u662F\u5426\u5206\u9875\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <nz-switch formControlName=\"showPagination\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.showPagination) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u9ED8\u8BA4\u884C\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"pageSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\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 \u884C\u6570\u4FEE\u6539\u5668\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"showSizeChanger\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().showSizeChanger?.funMode || formValue()?.showSizeChanger?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired nzTooltipTitle=\"\u7528\u9017\u53F7\u5206\u9694\uFF0C\u4F8B:10,20,50,100\">\n \u9875\u6570\u53EF\u9009\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <input nz-input formControlName=\"pageSizeOptions\" placeholder=\"\u4F8B:10,20,50,100\" />\n </nz-form-control>\n </nz-form-item>\n }\n }\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>" }]
|
|
153
|
+
}], propDecorators: { dataFunField: [{
|
|
154
|
+
type: ViewChild,
|
|
155
|
+
args: ["data", { static: true }]
|
|
156
|
+
}] } });
|
|
157
|
+
|
|
158
|
+
class TransferTableFieldsMenu extends BaseMenu {
|
|
159
|
+
addField() {
|
|
160
|
+
const field = `unnamed#${this.optionsNodes.current.options.length + 1}`;
|
|
161
|
+
this.optionsNodes.current.options.push({
|
|
162
|
+
field: field,
|
|
163
|
+
title: "未命名",
|
|
164
|
+
inuse: true,
|
|
165
|
+
});
|
|
166
|
+
this.onChange?.({ nextNodeId: `${this.optionsNodes.parent?.id}.${field}`, historyDesc: "添加表格字段" });
|
|
167
|
+
}
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TransferTableFieldsMenu, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: TransferTableFieldsMenu, isStandalone: true, selector: "axis-design-transfer-table-fields-menu", usesInheritance: true, ngImport: i0, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addField()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u5B57\u6BB5</span>\n </li>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
170
|
+
}
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TransferTableFieldsMenu, decorators: [{
|
|
172
|
+
type: Component,
|
|
173
|
+
args: [{ selector: 'axis-design-transfer-table-fields-menu', imports: [NzDropDownModule, NzDividerModule, NzIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addField()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u5B57\u6BB5</span>\n </li>\n </ul>\n</nz-dropdown-menu>" }]
|
|
174
|
+
}] });
|
|
175
|
+
|
|
176
|
+
class TransferTableFieldSetting extends FunFieldValueBase {
|
|
177
|
+
fg = this.fb.group({
|
|
178
|
+
inuse: [undefined, FormValidators.requiredFun],
|
|
179
|
+
field: ["unknown", FormValidators.required],
|
|
180
|
+
title: [undefined, FormValidators.requiredFun],
|
|
181
|
+
sortAble: [undefined, FormValidators.requiredFun],
|
|
182
|
+
sortOrder: [],
|
|
183
|
+
sortPriority: [],
|
|
184
|
+
filterAble: [undefined, FormValidators.requiredFun],
|
|
185
|
+
filterMultiple: [undefined, FormValidators.requiredFun],
|
|
186
|
+
filterDisplayFn: [],
|
|
187
|
+
width: [],
|
|
188
|
+
align: [undefined, FormValidators.requiredFun],
|
|
189
|
+
freezeMode: [undefined, FormValidators.requiredFun],
|
|
190
|
+
});
|
|
191
|
+
funFields = {
|
|
192
|
+
inuse: {
|
|
193
|
+
defaultValue: true
|
|
194
|
+
},
|
|
195
|
+
title: {
|
|
196
|
+
defaultValue: "未命名"
|
|
197
|
+
},
|
|
198
|
+
sortAble: {
|
|
199
|
+
defaultValue: false
|
|
200
|
+
},
|
|
201
|
+
sortOrder: {
|
|
202
|
+
defaultValue: null
|
|
203
|
+
},
|
|
204
|
+
sortPriority: {
|
|
205
|
+
defaultValue: null
|
|
206
|
+
},
|
|
207
|
+
filterAble: {
|
|
208
|
+
defaultValue: false
|
|
209
|
+
},
|
|
210
|
+
filterMultiple: {
|
|
211
|
+
defaultValue: false
|
|
212
|
+
},
|
|
213
|
+
width: {
|
|
214
|
+
defaultValue: null
|
|
215
|
+
},
|
|
216
|
+
align: {
|
|
217
|
+
defaultValue: "left"
|
|
218
|
+
},
|
|
219
|
+
freezeMode: {
|
|
220
|
+
defaultValue: "none"
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
elementRef = inject(AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN);
|
|
224
|
+
filterFnScopes = computed(() => {
|
|
225
|
+
const data = this.elementRef.ref?.instance.options?.data();
|
|
226
|
+
return [{
|
|
227
|
+
scopeId: this.elementRef.options.id + '.filter.' + this.formValue().field,
|
|
228
|
+
scopeName: "过滤项",
|
|
229
|
+
ds: {
|
|
230
|
+
row: data?.[0] ?? {},
|
|
231
|
+
value: data?.[0]?.[this.formValue().field] ?? null
|
|
232
|
+
}
|
|
233
|
+
}];
|
|
234
|
+
}, ...(ngDevMode ? [{ debugName: "filterFnScopes" }] : []));
|
|
235
|
+
fields = computed(() => {
|
|
236
|
+
const data = this.elementRef.ref?.instance.options?.data();
|
|
237
|
+
return Object.keys(data?.[0] ?? {});
|
|
238
|
+
}, ...(ngDevMode ? [{ debugName: "fields" }] : []));
|
|
239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TransferTableFieldSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
240
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: TransferTableFieldSetting, isStandalone: true, selector: "axis-design-transfer-table-field-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\" [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=\"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-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 <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u8FC7\u6EE4\u663E\u793A\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"filterDisplayFn\" [scopes]=\"filterFnScopes()\" [onlyFun]=\"true\"\n [noListen]=\"true\">\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: 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: "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: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.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: i7.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i7.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: i9.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"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
241
|
+
}
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TransferTableFieldSetting, decorators: [{
|
|
243
|
+
type: Component,
|
|
244
|
+
args: [{ selector: 'axis-design-transfer-table-field-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, NzInputModule, FunField, NzRadioModule, NzSelectModule, NzInputNumberModule, NzSwitchModule, NzAutocompleteModule], 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=\"10\" nzRequired>\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <input nz-input formControlName=\"field\" [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=\"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-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 <nz-form-item>\n <nz-form-label nzSpan=\"10\">\n \u8FC7\u6EE4\u663E\u793A\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"filterDisplayFn\" [scopes]=\"filterFnScopes()\" [onlyFun]=\"true\"\n [noListen]=\"true\">\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n </nz-collapse>\n</form>" }]
|
|
245
|
+
}] });
|
|
246
|
+
|
|
247
|
+
const Config = {
|
|
248
|
+
componentName: "穿梭框",
|
|
249
|
+
buildOptionsNodes(nextInfo) {
|
|
250
|
+
const next = [];
|
|
251
|
+
const headerNode = new OptionsNode({
|
|
252
|
+
id: nextInfo.currentObject.id + ".header",
|
|
253
|
+
parentId: nextInfo.currentObject.id,
|
|
254
|
+
scopeId: nextInfo.scopeId,
|
|
255
|
+
rootOptions: nextInfo.currentObject,
|
|
256
|
+
name: "头部",
|
|
257
|
+
contextMenu: SimpleMenu,
|
|
258
|
+
canDrop: true,
|
|
259
|
+
dropType: "component",
|
|
260
|
+
dropObj: nextInfo.currentObject,
|
|
261
|
+
defaultDropIndex: "header",
|
|
262
|
+
icon: "control",
|
|
263
|
+
children: []
|
|
264
|
+
});
|
|
265
|
+
next.push({
|
|
266
|
+
parentId: headerNode.id,
|
|
267
|
+
parentObject: nextInfo.currentObject,
|
|
268
|
+
indexOfParent: "header",
|
|
269
|
+
scopeId: nextInfo.scopeId
|
|
270
|
+
});
|
|
271
|
+
const fieldsChildren = [];
|
|
272
|
+
const fieldsNode = new OptionsNode({
|
|
273
|
+
id: nextInfo.currentObject.id + ".fields",
|
|
274
|
+
parentId: nextInfo.currentObject.id,
|
|
275
|
+
scopeId: nextInfo.scopeId,
|
|
276
|
+
rootOptions: nextInfo.currentObject.fields,
|
|
277
|
+
contextMenu: TransferTableFieldsMenu,
|
|
278
|
+
name: `表格列[${nextInfo.currentObject.fields?.length ?? 0}]`,
|
|
279
|
+
canDrop: true,
|
|
280
|
+
dropType: "axis-components/table/table-field",
|
|
281
|
+
dropObj: nextInfo.currentObject.fields,
|
|
282
|
+
defaultDropIndex: nextInfo.currentObject.fields?.length ?? 0,
|
|
283
|
+
childDirection: 'horizontal',
|
|
284
|
+
icon: "project",
|
|
285
|
+
children: fieldsChildren
|
|
286
|
+
});
|
|
287
|
+
nextInfo.currentObject.fields?.forEach((f, i) => {
|
|
288
|
+
next.push({
|
|
289
|
+
parentId: fieldsNode.id + "." + f.field,
|
|
290
|
+
parentObject: f,
|
|
291
|
+
indexOfParent: "child",
|
|
292
|
+
scopeId: nextInfo.currentObject.id + ".row"
|
|
293
|
+
});
|
|
294
|
+
fieldsChildren.push(new OptionsNode({
|
|
295
|
+
id: fieldsNode.id + "." + f.field,
|
|
296
|
+
updateId: (options) => fieldsNode.id + "." + options.field,
|
|
297
|
+
scopeId: fieldsNode.scopeId,
|
|
298
|
+
parentId: fieldsNode.id,
|
|
299
|
+
parentObj: fieldsNode.options,
|
|
300
|
+
indexOfParentObj: i,
|
|
301
|
+
rootOptions: f,
|
|
302
|
+
name: `字段[${f.field}]`,
|
|
303
|
+
icon: "profile",
|
|
304
|
+
canSetting: true,
|
|
305
|
+
settingType: TransferTableFieldSetting,
|
|
306
|
+
contextMenu: SimpleMenu,
|
|
307
|
+
canDrag: true,
|
|
308
|
+
dragType: "axis-components/table/table-field",
|
|
309
|
+
canDrop: true,
|
|
310
|
+
dropType: "component",
|
|
311
|
+
dropObj: f,
|
|
312
|
+
defaultDropIndex: "child",
|
|
313
|
+
children: []
|
|
314
|
+
}));
|
|
315
|
+
});
|
|
316
|
+
return {
|
|
317
|
+
treeNode: new OptionsNode({
|
|
318
|
+
parentId: nextInfo.parentId,
|
|
319
|
+
scopeId: nextInfo.scopeId,
|
|
320
|
+
name: "穿梭框",
|
|
321
|
+
canSetting: true,
|
|
322
|
+
canDrag: true,
|
|
323
|
+
dragType: "component",
|
|
324
|
+
parentObj: nextInfo.parentObject,
|
|
325
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
326
|
+
rootOptions: nextInfo.currentObject,
|
|
327
|
+
settingType: Setting,
|
|
328
|
+
contextMenu: SimpleMenu,
|
|
329
|
+
icon: "interaction",
|
|
330
|
+
children: [
|
|
331
|
+
headerNode,
|
|
332
|
+
fieldsNode,
|
|
333
|
+
],
|
|
334
|
+
}),
|
|
335
|
+
next: next,
|
|
336
|
+
newScopes: [
|
|
337
|
+
{
|
|
338
|
+
scopeId: nextInfo.currentObject.id + ".row",
|
|
339
|
+
parentScopeId: nextInfo.scopeId,
|
|
340
|
+
scopeName: "穿梭框表格行",
|
|
341
|
+
ds: {
|
|
342
|
+
row: nextInfo.currentObject.data?.[0] ?? "示例数据"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
};
|
|
347
|
+
},
|
|
348
|
+
bindElementsOptionsNode(element, options) {
|
|
349
|
+
return {
|
|
350
|
+
[options.id]: { element },
|
|
351
|
+
};
|
|
352
|
+
},
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Generated bundle index. Do not edit.
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
export { Config };
|
|
360
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-transfer-design.mjs.map
|