ngx-axis-appforge 0.0.53 → 0.0.56
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/checkbox/index.d.ts +4 -1
- package/axis-components/dropdown/design/index.d.ts.map +1 -0
- package/axis-components/dropdown/index.d.ts.map +1 -0
- package/axis-components/dynamic-container/index.d.ts +34 -4
- package/axis-components/index.d.ts.map +1 -0
- package/axis-components/input-component/index.d.ts +10 -0
- package/axis-components/menu/design/index.d.ts.map +1 -0
- package/axis-components/menu/index.d.ts.map +1 -0
- package/axis-components/rich-text-editor/design/index.d.ts.map +1 -0
- package/axis-components/rich-text-editor/index.d.ts.map +1 -0
- package/axis-components/scope/index.d.ts +1 -0
- package/axis-components/table-helper/index.d.ts +3 -1
- package/axis-components/transfer/design/index.d.ts.map +1 -0
- package/core/index.d.ts +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +6 -2
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +14 -2
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +19 -13
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +21 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +129 -6
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +10 -7
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +17 -4
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +6 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +55 -2
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +17 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +3 -2
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +42 -24
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +54 -37
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +146 -146
- package/providers/index.d.ts.map +1 -0
|
@@ -7,6 +7,8 @@ import * as i4 from 'ng-zorro-antd/collapse';
|
|
|
7
7
|
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
8
8
|
import * as i3 from 'ng-zorro-antd/form';
|
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i5 from 'ng-zorro-antd/input';
|
|
11
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
10
12
|
import * as i2 from 'ng-zorro-antd/grid';
|
|
11
13
|
|
|
12
14
|
class Setting extends FunFieldValueBase {
|
|
@@ -14,20 +16,36 @@ class Setting extends FunFieldValueBase {
|
|
|
14
16
|
...baseFbConfig,
|
|
15
17
|
...valueFbConfig,
|
|
16
18
|
child: [],
|
|
19
|
+
injectData: [],
|
|
20
|
+
injectFunc: [],
|
|
21
|
+
httpContextData: [],
|
|
22
|
+
fileBaseUrl: [],
|
|
17
23
|
});
|
|
18
24
|
funFields = {
|
|
19
25
|
...baseFunField,
|
|
20
26
|
...valueFunField,
|
|
21
27
|
child: {
|
|
22
28
|
defaultValue: undefined
|
|
23
|
-
}
|
|
29
|
+
},
|
|
30
|
+
injectData: {
|
|
31
|
+
defaultValue: {}
|
|
32
|
+
},
|
|
33
|
+
injectFunc: {
|
|
34
|
+
defaultValue: undefined
|
|
35
|
+
},
|
|
36
|
+
httpContextData: {
|
|
37
|
+
defaultValue: undefined
|
|
38
|
+
},
|
|
39
|
+
fileBaseUrl: {
|
|
40
|
+
defaultValue: undefined
|
|
41
|
+
},
|
|
24
42
|
};
|
|
25
43
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-dynamic-container-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { 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: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-dynamic-container-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\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-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u51FD\u6570\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u51FD\u6570\u540D]:{func:\u51FD\u6570,type:\u7C7B\u578B\u7B7E\u540D}}\">\n \u51FD\u6570\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n HTTP\u4E0A\u4E0B\u6587\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n \u6587\u4EF6\u57FA\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { 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: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27
45
|
}
|
|
28
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
29
47
|
type: Component,
|
|
30
|
-
args: [{ selector: 'axis-design-dynamic-container-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, 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\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
48
|
+
args: [{ selector: 'axis-design-dynamic-container-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger, NzInputModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\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-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u51FD\u6570\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u51FD\u6570\u540D]:{func:\u51FD\u6570,type:\u7C7B\u578B\u7B7E\u540D}}\">\n \u51FD\u6570\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n HTTP\u4E0A\u4E0B\u6587\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n \u6587\u4EF6\u57FA\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
31
49
|
}] });
|
|
32
50
|
|
|
33
51
|
const Config = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container-design.mjs","sources":["../../../axis-components/dynamic-container/design/setting/setting.ts","../../../axis-components/dynamic-container/design/setting/setting.html","../../../axis-components/dynamic-container/design/config.ts","../../../axis-components/dynamic-container/design/ngx-axis-appforge-axis-components-dynamic-container-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 { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-container-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\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\">\n 组件配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态容器\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态容器\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"container\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;AAaM,MAAO,O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A,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container-design.mjs","sources":["../../../axis-components/dynamic-container/design/setting/setting.ts","../../../axis-components/dynamic-container/design/setting/setting.html","../../../axis-components/dynamic-container/design/config.ts","../../../axis-components/dynamic-container/design/ngx-axis-appforge-axis-components-dynamic-container-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 { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-container-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger, NzInputModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n injectData: [],\n injectFunc: [],\n httpContextData: [],\n fileBaseUrl: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\n defaultValue: undefined\n },\n injectData: {\n defaultValue: {}\n },\n injectFunc: {\n defaultValue: undefined\n },\n httpContextData: {\n defaultValue: undefined\n },\n fileBaseUrl: {\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\">\n 组件配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\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-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"注入的函数对象,格式:{[函数名]:{func:函数,type:类型签名}}\">\n 函数注入\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n HTTP上下文\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [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\">\n 文件基地址\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态容器\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态容器\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"container\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE,EAAE;AAChB,KAA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,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAK/J,OAAO,EAAA,UAAA,EAAA,CAAA;kBAPnB,SAAS;+BACE,uCAAuC,EAAA,OAAA,EACxC,CAAC,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,aAAa,CAAC,EAAA,eAAA,EAG1J,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,w6FAAA,EAAA;;;AET1C,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
@@ -1,22 +1,145 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { ValueAccessOptions, ValueAccess, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
2
|
+
import { signal, effect, inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { ValueAccessOptions, ValueAccess, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_FILE_BASE_URL_TOKEN, AXIS_INJECT_FUNC_TOKEN, DynamicDirective, AXIS_INJECT_DATA_TOKEN } from 'ngx-axis-appforge/core';
|
|
4
4
|
import * as i1 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { toObservable } from '@angular/core/rxjs-interop';
|
|
6
8
|
|
|
7
9
|
class DynamicContainerOptions extends ValueAccessOptions {
|
|
10
|
+
injectData = signal({}, ...(ngDevMode ? [{ debugName: "injectData" }] : []));
|
|
11
|
+
injectFunc = signal(undefined, ...(ngDevMode ? [{ debugName: "injectFunc" }] : []));
|
|
12
|
+
httpContextData = signal(undefined, ...(ngDevMode ? [{ debugName: "httpContextData" }] : []));
|
|
13
|
+
fileBaseUrl = signal("", ...(ngDevMode ? [{ debugName: "fileBaseUrl" }] : []));
|
|
8
14
|
child = signal(undefined, ...(ngDevMode ? [{ debugName: "child" }] : []));
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
class DynamicContainer extends ValueAccess {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
effect(() => {
|
|
21
|
+
this.injectFuncSub?.unsubscribe();
|
|
22
|
+
let func = this.injectFunc() ?? null;
|
|
23
|
+
if (func instanceof BehaviorSubject) {
|
|
24
|
+
this.injectFuncSub = func.subscribe(this.injectFuncSubject);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
this.injectFuncSubject.next(func ?? {});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
let injectHttpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });
|
|
31
|
+
effect(() => {
|
|
32
|
+
this.httpContextDataSub?.unsubscribe();
|
|
33
|
+
let data = this.options.httpContextData();
|
|
34
|
+
if (!data) {
|
|
35
|
+
data = injectHttpContextData;
|
|
36
|
+
}
|
|
37
|
+
if (data instanceof BehaviorSubject) {
|
|
38
|
+
this.httpContextDataSub = data.subscribe(this.httpContextDataSubject);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.httpContextDataSubject.next(data);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
let injectUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? "";
|
|
45
|
+
effect(() => {
|
|
46
|
+
this.fileBaseUrlSub?.unsubscribe();
|
|
47
|
+
let url = this.options.fileBaseUrl() ?? "";
|
|
48
|
+
if (!url) {
|
|
49
|
+
url = injectUrl;
|
|
50
|
+
}
|
|
51
|
+
if (url instanceof BehaviorSubject) {
|
|
52
|
+
this.fileBaseUrlSub = url.subscribe(this.fileBaseUrlSubject);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.fileBaseUrlSubject.next(url);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
12
59
|
options = new DynamicContainerOptions();
|
|
13
|
-
|
|
14
|
-
|
|
60
|
+
funcByInject = inject(AXIS_INJECT_FUNC_TOKEN, { optional: true, skipSelf: true });
|
|
61
|
+
injectFunc = computed(() => {
|
|
62
|
+
if (this.options.injectFunc()) {
|
|
63
|
+
return this.options.injectFunc();
|
|
64
|
+
}
|
|
65
|
+
if (this.funcByInject instanceof BehaviorSubject) {
|
|
66
|
+
return this.funcByInject.value;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return this.funcByInject ?? {};
|
|
70
|
+
}
|
|
71
|
+
}, ...(ngDevMode ? [{ debugName: "injectFunc" }] : []));
|
|
72
|
+
injectFuncSubject = new BehaviorSubject({});
|
|
73
|
+
injectFuncSub;
|
|
74
|
+
httpContextDataSubject = new BehaviorSubject(undefined);
|
|
75
|
+
httpContextDataSub;
|
|
76
|
+
fileBaseUrlSubject = new BehaviorSubject("");
|
|
77
|
+
fileBaseUrlSub;
|
|
78
|
+
ngOnDestroy() {
|
|
79
|
+
super.ngOnDestroy();
|
|
80
|
+
this.injectFuncSub?.unsubscribe();
|
|
81
|
+
this.httpContextDataSub?.unsubscribe();
|
|
82
|
+
this.fileBaseUrlSub?.unsubscribe();
|
|
83
|
+
}
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: DynamicContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: DynamicContainer, isStandalone: true, selector: "axis-dynamic-container", providers: [
|
|
86
|
+
{
|
|
87
|
+
provide: AXIS_INJECT_DATA_TOKEN,
|
|
88
|
+
useFactory: (dc) => {
|
|
89
|
+
return toObservable(dc.options.injectData);
|
|
90
|
+
},
|
|
91
|
+
deps: [DynamicContainer]
|
|
92
|
+
}, {
|
|
93
|
+
provide: AXIS_INJECT_FUNC_TOKEN,
|
|
94
|
+
useFactory: (dc) => {
|
|
95
|
+
return dc.injectFunc();
|
|
96
|
+
},
|
|
97
|
+
deps: [DynamicContainer]
|
|
98
|
+
}, {
|
|
99
|
+
provide: AXIS_HTTP_CONTEXT_DATA_TOKEN,
|
|
100
|
+
useFactory: (dc) => {
|
|
101
|
+
return dc.httpContextDataSubject;
|
|
102
|
+
},
|
|
103
|
+
deps: [DynamicContainer]
|
|
104
|
+
}, {
|
|
105
|
+
provide: AXIS_FILE_BASE_URL_TOKEN,
|
|
106
|
+
useFactory: (dc) => {
|
|
107
|
+
return dc.fileBaseUrlSubject;
|
|
108
|
+
},
|
|
109
|
+
deps: [DynamicContainer]
|
|
110
|
+
},
|
|
111
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15
112
|
}
|
|
16
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: DynamicContainer, decorators: [{
|
|
17
114
|
type: Component,
|
|
18
|
-
args: [{ selector: 'axis-dynamic-container', imports: [DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
|
|
115
|
+
args: [{ selector: 'axis-dynamic-container', imports: [DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
116
|
+
{
|
|
117
|
+
provide: AXIS_INJECT_DATA_TOKEN,
|
|
118
|
+
useFactory: (dc) => {
|
|
119
|
+
return toObservable(dc.options.injectData);
|
|
120
|
+
},
|
|
121
|
+
deps: [DynamicContainer]
|
|
122
|
+
}, {
|
|
123
|
+
provide: AXIS_INJECT_FUNC_TOKEN,
|
|
124
|
+
useFactory: (dc) => {
|
|
125
|
+
return dc.injectFunc();
|
|
126
|
+
},
|
|
127
|
+
deps: [DynamicContainer]
|
|
128
|
+
}, {
|
|
129
|
+
provide: AXIS_HTTP_CONTEXT_DATA_TOKEN,
|
|
130
|
+
useFactory: (dc) => {
|
|
131
|
+
return dc.httpContextDataSubject;
|
|
132
|
+
},
|
|
133
|
+
deps: [DynamicContainer]
|
|
134
|
+
}, {
|
|
135
|
+
provide: AXIS_FILE_BASE_URL_TOKEN,
|
|
136
|
+
useFactory: (dc) => {
|
|
137
|
+
return dc.fileBaseUrlSubject;
|
|
138
|
+
},
|
|
139
|
+
deps: [DynamicContainer]
|
|
140
|
+
},
|
|
141
|
+
], template: "<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>", styles: [":host{display:block}\n"] }]
|
|
142
|
+
}], ctorParameters: () => [] });
|
|
20
143
|
|
|
21
144
|
/**
|
|
22
145
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container.mjs","sources":["../../../axis-components/dynamic-container/dynamic-container.options.ts","../../../axis-components/dynamic-container/dynamic-container.ts","../../../axis-components/dynamic-container/dynamic-container.html","../../../axis-components/dynamic-container/ngx-axis-appforge-axis-components-dynamic-container.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicContainerOptions extends ValueAccessOptions {\n child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { DynamicContainerOptions } from './dynamic-container.options';\nimport { DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axis-dynamic-container',\n imports: [DynamicDirective, FormsModule],\n templateUrl: './dynamic-container.html',\n styleUrl: './dynamic-container.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DynamicContainer extends ValueAccess<DynamicContainerOptions> {\n\n override options: DynamicContainerOptions = new DynamicContainerOptions();\n\n}\n","<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dynamic-container';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,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M,EAAA,QAAA,EAAA,yJAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container.mjs","sources":["../../../axis-components/dynamic-container/dynamic-container.options.ts","../../../axis-components/dynamic-container/dynamic-container.ts","../../../axis-components/dynamic-container/dynamic-container.html","../../../axis-components/dynamic-container/ngx-axis-appforge-axis-components-dynamic-container.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicContainerOptions extends ValueAccessOptions {\n\n readonly injectData = signal<any>({});\n readonly injectFunc = signal<{ [name: string]: (Function | { func: Function, type: string }) } | undefined>(undefined);\n readonly httpContextData = signal<any>(undefined);\n readonly fileBaseUrl = signal<string>(\"\");\n\n readonly child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect, inject } from '@angular/core';\nimport { DynamicContainerOptions } from './dynamic-container.options';\nimport { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject, Subscription } from 'rxjs';\nimport { toObservable } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'axis-dynamic-container',\n imports: [DynamicDirective, FormsModule],\n templateUrl: './dynamic-container.html',\n styleUrl: './dynamic-container.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXIS_INJECT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return toObservable(dc.options.injectData);\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_INJECT_FUNC_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.injectFunc();\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_HTTP_CONTEXT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.httpContextDataSubject;\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_FILE_BASE_URL_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.fileBaseUrlSubject;\n },\n deps: [DynamicContainer]\n },\n ]\n})\nexport class DynamicContainer extends ValueAccess<DynamicContainerOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.injectFuncSub?.unsubscribe();\n let func: BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }> | { [name: string]: (Function | { func: Function, type: string }) } | null = this.injectFunc() ?? null;\n if (func instanceof BehaviorSubject) {\n this.injectFuncSub = func.subscribe(this.injectFuncSubject);\n } else {\n this.injectFuncSubject.next(func ?? {});\n }\n });\n let injectHttpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });\n effect(() => {\n this.httpContextDataSub?.unsubscribe();\n let data: BehaviorSubject<any> | any = this.options.httpContextData();\n if (!data) {\n data = injectHttpContextData;\n }\n if (data instanceof BehaviorSubject) {\n this.httpContextDataSub = data.subscribe(this.httpContextDataSubject);\n } else {\n this.httpContextDataSubject.next(data);\n }\n });\n let injectUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? \"\";\n effect(() => {\n this.fileBaseUrlSub?.unsubscribe();\n let url: string | BehaviorSubject<string> = this.options.fileBaseUrl() ?? \"\";\n if (!url) {\n url = injectUrl;\n }\n if (url instanceof BehaviorSubject) {\n this.fileBaseUrlSub = url.subscribe(this.fileBaseUrlSubject);\n } else {\n this.fileBaseUrlSubject.next(url);\n }\n });\n }\n\n override options: DynamicContainerOptions = new DynamicContainerOptions();\n\n private funcByInject = inject(AXIS_INJECT_FUNC_TOKEN, { optional: true, skipSelf: true });\n readonly injectFunc = computed(() => {\n if (this.options.injectFunc()) {\n return this.options.injectFunc();\n }\n if (this.funcByInject instanceof BehaviorSubject) {\n return this.funcByInject.value;\n } else {\n return this.funcByInject ?? {};\n }\n });\n readonly injectFuncSubject = new BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }>({});\n injectFuncSub?: Subscription;\n\n readonly httpContextDataSubject = new BehaviorSubject<any>(undefined);\n httpContextDataSub?: Subscription;\n\n readonly fileBaseUrlSubject = new BehaviorSubject<string>(\"\");\n fileBaseUrlSub?: Subscription;\n\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.injectFuncSub?.unsubscribe();\n this.httpContextDataSub?.unsubscribe();\n this.fileBaseUrlSub?.unsubscribe();\n }\n\n}\n","<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dynamic-container';\n"],"names":[],"mappings":";;;;;;;;AAGM,MAAO,uBAAwB,SAAQ,kBAAkB,CAAA;AAElD,IAAA,UAAU,GAAG,MAAM,CAAM,EAAE,sDAAC;AAC5B,IAAA,UAAU,GAAG,MAAM,CAAgF,SAAS,sDAAC;AAC7G,IAAA,eAAe,GAAG,MAAM,CAAM,SAAS,2DAAC;AACxC,IAAA,WAAW,GAAG,MAAM,CAAS,EAAE,uDAAC;AAEhC,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAC1C;;AC8BK,MAAO,gBAAiB,SAAQ,WAAoC,CAAA;AAExE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,aAAa,EAAE,WAAW,EAAE;YACjC,IAAI,IAAI,GAAkK,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI;AACnM,YAAA,IAAI,IAAI,YAAY,eAAe,EAAE;gBACnC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC7D;iBAAO;gBACL,IAAI,CAAC,iBAAiB,CAAC,IAAI,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AAA,EAAA,yJAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEvCH;;AAEG;;;;"}
|
|
@@ -238,15 +238,15 @@ const Config = {
|
|
|
238
238
|
});
|
|
239
239
|
nextInfo.currentObject.fields?.forEach((f, i) => {
|
|
240
240
|
next.push({
|
|
241
|
-
parentId: nextInfo.currentObject.id + "." + i,
|
|
241
|
+
parentId: nextInfo.currentObject.id + ".fields." + i,
|
|
242
242
|
parentObject: f,
|
|
243
243
|
indexOfParent: "child",
|
|
244
244
|
scopeId: nextInfo.currentObject.id + ".row"
|
|
245
245
|
});
|
|
246
246
|
fieldsChildren.push(new OptionsNode({
|
|
247
|
-
id: nextInfo.currentObject.id + "." + i,
|
|
247
|
+
id: nextInfo.currentObject.id + ".fields." + i,
|
|
248
248
|
scopeId: nextInfo.scopeId,
|
|
249
|
-
parentId: nextInfo.currentObject.id,
|
|
249
|
+
parentId: nextInfo.currentObject.id + ".fields",
|
|
250
250
|
parentObj: nextInfo.currentObject.fields,
|
|
251
251
|
indexOfParentObj: i,
|
|
252
252
|
rootOptions: f,
|
|
@@ -320,15 +320,18 @@ const Config = {
|
|
|
320
320
|
};
|
|
321
321
|
},
|
|
322
322
|
bindElementsOptionsNode(element, options) {
|
|
323
|
-
const
|
|
323
|
+
const fieldsParent = element.querySelector("thead>.ant-table-row");
|
|
324
324
|
const res = {
|
|
325
|
-
[options.id]: { element
|
|
325
|
+
[options.id]: { element },
|
|
326
|
+
[`${options.id}.fields`]: { element: fieldsParent, dropElement: fieldsParent },
|
|
326
327
|
};
|
|
327
328
|
options.fields?.forEach((f, i) => {
|
|
328
|
-
const fieldElement =
|
|
329
|
+
const fieldElement = fieldsParent?.querySelector(`th[data-index="${i}"]`);
|
|
329
330
|
const fieldChildElement = element?.querySelector(`td[data-index="${i}"]`);
|
|
330
|
-
res[`${options.id}.${i}`] = { element: fieldElement, dropElement: fieldChildElement };
|
|
331
|
+
res[`${options.id}.fields.${i}`] = { element: fieldElement, dropElement: fieldChildElement };
|
|
331
332
|
});
|
|
333
|
+
const expandRowElement = element.querySelector("tr[data-expandrow]");
|
|
334
|
+
res[`${options.id}.expandRow`] = { element: expandRowElement, dropElement: expandRowElement };
|
|
332
335
|
return res;
|
|
333
336
|
},
|
|
334
337
|
};
|