ngx-axis-appforge 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/axis-components-covers/read-file.svg +26 -0
  2. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +8 -3
  3. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
  4. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +12 -6
  5. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
  6. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +1 -1
  7. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
  8. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +1 -1
  9. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
  10. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +2 -2
  11. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
  12. package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs +6 -6
  13. package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs.map +1 -1
  14. package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs +116 -0
  15. package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs.map +1 -0
  16. package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs +114 -0
  17. package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs.map +1 -0
  18. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +3 -3
  19. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
  20. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +1 -1
  21. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  22. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +1 -1
  23. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
  24. package/fesm2022/ngx-axis-appforge-axis-components.mjs +17 -0
  25. package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
  26. package/fesm2022/ngx-axis-appforge-core.mjs +65 -5
  27. package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
  28. package/package.json +9 -1
  29. package/types/ngx-axis-appforge-axis-components-checkbox.d.ts +1 -0
  30. package/types/ngx-axis-appforge-axis-components-read-file-design.d.ts +5 -0
  31. package/types/ngx-axis-appforge-axis-components-read-file.d.ts +37 -0
  32. package/types/ngx-axis-appforge-core.d.ts +3 -1
@@ -0,0 +1,116 @@
1
+ import { FunFieldValueBase, FormValidators, valueFbConfig, baseFbConfig, valueFunField, baseFunField, BaseDesignSetting, FunField, ValueDesignSetting, DynamicDirective, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
2
+ import * as i0 from '@angular/core';
3
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import * as i1 from '@angular/forms';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import * as i3 from 'ng-zorro-antd/form';
7
+ import { NzFormModule } from 'ng-zorro-antd/form';
8
+ import * as i4 from 'ng-zorro-antd/collapse';
9
+ import { NzCollapseModule } from 'ng-zorro-antd/collapse';
10
+ import * as i5 from 'ng-zorro-antd/input';
11
+ import { NzInputModule } from 'ng-zorro-antd/input';
12
+ import * as i6 from 'ng-zorro-antd/switch';
13
+ import { NzSwitchModule } from 'ng-zorro-antd/switch';
14
+ import * as i7 from 'ng-zorro-antd/input-number';
15
+ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
16
+ import * as i8 from 'ng-zorro-antd/select';
17
+ import { NzSelectModule } from 'ng-zorro-antd/select';
18
+ import * as i9 from 'ng-zorro-antd/radio';
19
+ import { NzRadioModule } from 'ng-zorro-antd/radio';
20
+ import * as i10 from 'ng-zorro-antd/auto-complete';
21
+ import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
22
+ import * as i2 from 'ng-zorro-antd/grid';
23
+
24
+ class Setting extends FunFieldValueBase {
25
+ fg = this.fb.group({
26
+ ...baseFbConfig,
27
+ ...valueFbConfig,
28
+ fileType: [undefined, FormValidators.requiredFun],
29
+ limitSize: [],
30
+ buttonType: [undefined, FormValidators.requiredFun],
31
+ buttonTitle: [],
32
+ buttonIcon: [{ component: 'axis-components/icon', inuse: true, icon: 'file-text' }],
33
+ buttonStyle: [undefined, FormValidators.requiredFun],
34
+ buttonSize: [undefined, FormValidators.requiredFun],
35
+ buttonBlock: [undefined, FormValidators.requiredFun],
36
+ buttonShape: [],
37
+ dropTitle: [],
38
+ dropTip: [],
39
+ });
40
+ funFields = {
41
+ ...baseFunField,
42
+ ...valueFunField,
43
+ fileType: {
44
+ defaultValue: "text/*"
45
+ },
46
+ limitSize: {
47
+ defaultValue: null
48
+ },
49
+ buttonType: {
50
+ defaultValue: "custom"
51
+ },
52
+ buttonTitle: {
53
+ defaultValue: "选择文件"
54
+ },
55
+ buttonStyle: {
56
+ defaultValue: "default"
57
+ },
58
+ buttonSize: {
59
+ defaultValue: "default"
60
+ },
61
+ buttonBlock: {
62
+ defaultValue: false
63
+ },
64
+ buttonShape: {
65
+ defaultValue: ""
66
+ },
67
+ dropTitle: {
68
+ defaultValue: "点击或拖拽文件"
69
+ },
70
+ dropTip: {
71
+ defaultValue: ""
72
+ },
73
+ };
74
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
75
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Setting, isStandalone: true, selector: "axis-design-read-file-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u6587\u4EF6\u63A7\u5236\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n \u5168\u90E8\u7C7B\u578B\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5927\u5C0F\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"\u81EA\u5B9A\u4E49\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"\u6587\u4EF6\u62D6\u62FD\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\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 </nz-collapse>\n</form>", styles: [":host{display:block}\n"], 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],[formArray],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", "nzSize", "nzVariant", "nzRequiredMark"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "directive", type: i5.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzKeyboard", "nzControls", "nzChangeOnWheel", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i8.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i8.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i9.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i9.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzAutocompleteModule }, { kind: "component", type: i10.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i10.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i10.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Setting, decorators: [{
78
+ type: Component,
79
+ args: [{ selector: 'axis-design-read-file-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, ValueDesignSetting, NzInputModule, NzSwitchModule, NzInputNumberModule, NzSelectModule, NzRadioModule, NzAutocompleteModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u6587\u4EF6\u63A7\u5236\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n \u5168\u90E8\u7C7B\u578B\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5927\u5C0F\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"\u81EA\u5B9A\u4E49\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"\u6587\u4EF6\u62D6\u62FD\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\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 </nz-collapse>\n</form>", styles: [":host{display:block}\n"] }]
80
+ }] });
81
+
82
+ const Config = {
83
+ componentName: "文件读取",
84
+ buildOptionsNodes(nextInfo) {
85
+ return {
86
+ treeNode: new OptionsNode({
87
+ parentId: nextInfo.parentId,
88
+ scopeId: nextInfo.scopeId,
89
+ name: "文件读取",
90
+ canSetting: true,
91
+ canDrag: true,
92
+ dragType: "component",
93
+ parentObj: nextInfo.parentObject,
94
+ indexOfParentObj: nextInfo.indexOfParent,
95
+ rootOptions: nextInfo.currentObject,
96
+ settingType: Setting,
97
+ contextMenu: SimpleMenu,
98
+ icon: "file-text",
99
+ children: [],
100
+ }),
101
+ next: []
102
+ };
103
+ },
104
+ bindElementsOptionsNode(element, options) {
105
+ return {
106
+ [options.id]: { element }
107
+ };
108
+ },
109
+ };
110
+
111
+ /**
112
+ * Generated bundle index. Do not edit.
113
+ */
114
+
115
+ export { Config };
116
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-read-file-design.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-read-file-design.mjs","sources":["../../../axis-components/read-file/design/setting/setting.ts","../../../axis-components/read-file/design/setting/setting.html","../../../axis-components/read-file/design/config.ts","../../../axis-components/read-file/design/ngx-axis-appforge-axis-components-read-file-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\n\n@Component({\n selector: 'axis-design-read-file-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, ValueDesignSetting, NzInputModule, NzSwitchModule, NzInputNumberModule, NzSelectModule, NzRadioModule, NzAutocompleteModule, DynamicDirective],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n fileType: [undefined, FormValidators.requiredFun],\n limitSize: [],\n buttonType: [undefined, FormValidators.requiredFun],\n buttonTitle: [],\n buttonIcon: [{ component: 'axis-components/icon', inuse: true, icon: 'file-text' }],\n buttonStyle: [undefined, FormValidators.requiredFun],\n buttonSize: [undefined, FormValidators.requiredFun],\n buttonBlock: [undefined, FormValidators.requiredFun],\n buttonShape: [],\n dropTitle: [],\n dropTip: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n fileType: {\n defaultValue: \"text/*\"\n },\n limitSize: {\n defaultValue: null\n },\n buttonType: {\n defaultValue: \"custom\"\n },\n buttonTitle: {\n defaultValue: \"选择文件\"\n },\n buttonStyle: {\n defaultValue: \"default\"\n },\n buttonSize: {\n defaultValue: \"default\"\n },\n buttonBlock: {\n defaultValue: false\n },\n buttonShape: {\n defaultValue: \"\"\n },\n dropTitle: {\n defaultValue: \"点击或拖拽文件\"\n },\n dropTip: {\n defaultValue: \"\"\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"文件控制\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n 全部类型\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\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=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"外观设置\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 上传按钮\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"自定义\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"文件拖拽\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\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=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮图标\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 宽度尽量大\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮形状\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\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=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\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=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\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 </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"文件读取\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"文件读取\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"file-text\",\n children: [],\n }),\n next: []\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AACnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAA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AW,EAAE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGtO,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,g7PAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEd1C,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,WAAW;AACjB,gBAAA,QAAQ,EAAE,EAAE;aACf,CAAC;AACF,YAAA,IAAI,EAAE;SACT;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC9BL;;AAEG;;;;"}
@@ -0,0 +1,114 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, computed, model, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { ValueAccessOptions, ValueAccess, DynamicDirective } from 'ngx-axis-appforge/core';
4
+ import * as i1 from 'ng-zorro-antd/upload';
5
+ import { NzUploadModule } from 'ng-zorro-antd/upload';
6
+ import * as i2 from 'ng-zorro-antd/button';
7
+ import { NzButtonModule } from 'ng-zorro-antd/button';
8
+ import * as i5 from 'ng-zorro-antd/icon';
9
+ import { NzIconModule } from 'ng-zorro-antd/icon';
10
+ import { NzFlexModule } from 'ng-zorro-antd/flex';
11
+ import { fromPromise } from 'rxjs/internal/observable/innerFrom';
12
+ import * as i6 from 'ng-zorro-antd/modal';
13
+ import { NzModalModule } from 'ng-zorro-antd/modal';
14
+ import * as i7 from '@angular/forms';
15
+ import { FormsModule } from '@angular/forms';
16
+ import * as i3 from 'ng-zorro-antd/core/transition-patch';
17
+ import * as i4 from 'ng-zorro-antd/core/wave';
18
+
19
+ class ReadFileOptions extends ValueAccessOptions {
20
+ fileType = signal("text/*", ...(ngDevMode ? [{ debugName: "fileType" }] : /* istanbul ignore next */ []));
21
+ limitSize = signal(null, ...(ngDevMode ? [{ debugName: "limitSize" }] : /* istanbul ignore next */ []));
22
+ buttonType = signal("custom", ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
23
+ buttonTitle = signal("选择文件", ...(ngDevMode ? [{ debugName: "buttonTitle" }] : /* istanbul ignore next */ []));
24
+ buttonIcon = signal({ component: 'axis-components/icon', inuse: true, icon: 'file-text' }, ...(ngDevMode ? [{ debugName: "buttonIcon" }] : /* istanbul ignore next */ []));
25
+ buttonStyle = signal("default", ...(ngDevMode ? [{ debugName: "buttonStyle" }] : /* istanbul ignore next */ []));
26
+ buttonSize = signal("default", ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
27
+ buttonBlock = signal(false, ...(ngDevMode ? [{ debugName: "buttonBlock" }] : /* istanbul ignore next */ []));
28
+ buttonShape = signal(null, ...(ngDevMode ? [{ debugName: "buttonShape" }] : /* istanbul ignore next */ []));
29
+ dropTitle = signal("点击或拖拽文件", ...(ngDevMode ? [{ debugName: "dropTitle" }] : /* istanbul ignore next */ []));
30
+ dropTip = signal("", ...(ngDevMode ? [{ debugName: "dropTip" }] : /* istanbul ignore next */ []));
31
+ }
32
+
33
+ class ReadFile extends ValueAccess {
34
+ options = new ReadFileOptions();
35
+ fileList = computed(() => this.updateFileList(), ...(ngDevMode ? [{ debugName: "fileList" }] : /* istanbul ignore next */ []));
36
+ previewModalVisible = model(false, ...(ngDevMode ? [{ debugName: "previewModalVisible" }] : /* istanbul ignore next */ []));
37
+ previewEditorMode = computed(() => {
38
+ switch (this.options.fileType()) {
39
+ case "application/json":
40
+ return "json";
41
+ case "text/javascript":
42
+ return "javascript";
43
+ default:
44
+ return "plain_text";
45
+ }
46
+ }, ...(ngDevMode ? [{ debugName: "previewEditorMode" }] : /* istanbul ignore next */ []));
47
+ setInitValue(value) {
48
+ super.setInitValue(value);
49
+ if (value !== undefined) {
50
+ }
51
+ }
52
+ writeValue(value) {
53
+ super.writeValue(value);
54
+ }
55
+ updateFileList() {
56
+ if (typeof this.value() == "string" && this.value()) {
57
+ let name = this.buildName(this.value());
58
+ return [{
59
+ uid: name,
60
+ name: name,
61
+ status: 'done',
62
+ response: {
63
+ content: this.value()
64
+ }
65
+ }];
66
+ }
67
+ else {
68
+ return [];
69
+ }
70
+ }
71
+ buildName(value) {
72
+ let name = value.trim();
73
+ if (value.length > 8) {
74
+ name = value.substring(0, 4) + "..." + value.substring(value.length - 4);
75
+ }
76
+ return name;
77
+ }
78
+ updateValue(fileList) {
79
+ let value = fileList[0]?.response?.content ?? null;
80
+ this.value.set(value);
81
+ this.onChange?.(this.value());
82
+ }
83
+ handlePreview = async (file) => {
84
+ this.previewModalVisible.set(true);
85
+ };
86
+ upload = (item) => {
87
+ return fromPromise(item.file.text()).subscribe(async (content) => {
88
+ item.onSuccess?.({ content }, item.file, null);
89
+ });
90
+ };
91
+ fileChange(e) {
92
+ switch (e.type) {
93
+ case "success":
94
+ this.updateValue(e.fileList);
95
+ break;
96
+ case "removed":
97
+ this.updateValue(e.fileList);
98
+ break;
99
+ }
100
+ }
101
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ReadFile, deps: null, target: i0.ɵɵFactoryTarget.Component });
102
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ReadFile, isStandalone: true, selector: "axis-read-file", inputs: { previewModalVisible: { classPropertyName: "previewModalVisible", publicName: "previewModalVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { previewModalVisible: "previewModalVisibleChange" }, usesInheritance: true, ngImport: i0, template: "<nz-upload [nzFileList]=\"fileList()\" [nzType]=\" options.buttonType()=='drag-file'?'drag':'select'\" [nzMaxCount]=\"1\"\n [nzAccept]=\"options.fileType()\" [nzSize]=\"options.limitSize()\" nzListType=\"text\" [nzDisabled]=\"options.disabled()\"\n [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\" [nzShowButton]=\"!options.readonly()\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true}\">\n @if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>\n\n<nz-modal [(nzVisible)]=\"previewModalVisible\" nzTitle=\"\u6587\u4EF6\u9884\u89C8\" [nzOkText]=\"null\" nzCancelText=\"\u5173\u95ED\"\n (nzOnCancel)=\"previewModalVisible.set(false)\">\n <ng-container *nzModalContent>\n <ng-container\n [axisDynamic]=\"{component:'axis-components/editor',readonly:true,inuse:true,mode:previewEditorMode(),style:{height:'500px'}}\"\n [standalone]=\"true\" [ngModel]=\"value()\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzUploadModule }, { kind: "component", type: i1.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender", "nzMaxCount"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i6.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i6.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
103
+ }
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ReadFile, decorators: [{
105
+ type: Component,
106
+ args: [{ selector: 'axis-read-file', imports: [NzUploadModule, NzButtonModule, NzIconModule, NzFlexModule, DynamicDirective, NzModalModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-upload [nzFileList]=\"fileList()\" [nzType]=\" options.buttonType()=='drag-file'?'drag':'select'\" [nzMaxCount]=\"1\"\n [nzAccept]=\"options.fileType()\" [nzSize]=\"options.limitSize()\" nzListType=\"text\" [nzDisabled]=\"options.disabled()\"\n [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\" [nzShowButton]=\"!options.readonly()\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true}\">\n @if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>\n\n<nz-modal [(nzVisible)]=\"previewModalVisible\" nzTitle=\"\u6587\u4EF6\u9884\u89C8\" [nzOkText]=\"null\" nzCancelText=\"\u5173\u95ED\"\n (nzOnCancel)=\"previewModalVisible.set(false)\">\n <ng-container *nzModalContent>\n <ng-container\n [axisDynamic]=\"{component:'axis-components/editor',readonly:true,inuse:true,mode:previewEditorMode(),style:{height:'500px'}}\"\n [standalone]=\"true\" [ngModel]=\"value()\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block}\n"] }]
107
+ }], propDecorators: { previewModalVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewModalVisible", required: false }] }, { type: i0.Output, args: ["previewModalVisibleChange"] }] } });
108
+
109
+ /**
110
+ * Generated bundle index. Do not edit.
111
+ */
112
+
113
+ export { ReadFile };
114
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-read-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-read-file.mjs","sources":["../../../axis-components/read-file/read-file.options.ts","../../../axis-components/read-file/read-file.ts","../../../axis-components/read-file/read-file.html","../../../axis-components/read-file/ngx-axis-appforge-axis-components-read-file.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class ReadFileOptions extends ValueAccessOptions {\n\n readonly fileType = signal(\"text/*\");\n readonly limitSize = signal<number | null>(null);\n\n readonly buttonType = signal<\"drag-file\" | \"custom\">(\"custom\");\n readonly buttonTitle = signal<string>(\"选择文件\");\n readonly buttonIcon = signal<any>({ component: 'axis-components/icon', inuse: true, icon: 'file-text' });\n readonly buttonStyle = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly buttonSize = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly buttonBlock = signal<boolean>(false);\n readonly buttonShape = signal<null | \"circle\" | \"round\">(null);\n readonly dropTitle = signal<string>(\"点击或拖拽文件\");\n readonly dropTip = signal<string>(\"\");\n}\n","import { ChangeDetectionStrategy, Component, computed, model } from '@angular/core';\nimport { ReadFileOptions } from './read-file.options';\nimport { ValueAccess, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzUploadFile, NzUploadModule, NzUploadChangeParam, NzUploadXHRArgs } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\nimport { Subscription } from 'rxjs';\nimport { fromPromise } from 'rxjs/internal/observable/innerFrom';\nimport { NzModalModule } from \"ng-zorro-antd/modal\";\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axis-read-file',\n imports: [NzUploadModule, NzButtonModule, NzIconModule, NzFlexModule, DynamicDirective, NzModalModule, FormsModule],\n templateUrl: './read-file.html',\n styleUrl: './read-file.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ReadFile extends ValueAccess<ReadFileOptions> {\n\n override options: ReadFileOptions = new ReadFileOptions();\n\n readonly fileList = computed(() => this.updateFileList());\n readonly previewModalVisible = model(false);\n readonly previewEditorMode = computed(() => {\n switch (this.options.fileType()) {\n case \"application/json\":\n return \"json\";\n case \"text/javascript\":\n return \"javascript\";\n default:\n return \"plain_text\";\n }\n });\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n if (value !== undefined) {\n }\n }\n\n override writeValue(value: any): void {\n super.writeValue(value);\n }\n\n private updateFileList(): NzUploadFile[] {\n if (typeof this.value() == \"string\" && this.value()) {\n let name = this.buildName(this.value());\n return [{\n uid: name,\n name: name,\n status: 'done',\n response: {\n content: this.value()\n }\n }];\n } else {\n return [];\n }\n }\n\n private buildName(value: string) {\n let name = value.trim();\n if (value.length > 8) {\n name = value.substring(0, 4) + \"...\" + value.substring(value.length - 4);\n }\n return name;\n }\n\n private updateValue(fileList: NzUploadFile[]) {\n let value: any = fileList[0]?.response?.content ?? null;\n this.value.set(value);\n this.onChange?.(this.value());\n }\n\n handlePreview = async (file: NzUploadFile) => {\n this.previewModalVisible.set(true);\n };\n\n upload = (item: NzUploadXHRArgs): Subscription => {\n return fromPromise((item.file as any as File).text()).subscribe(async content => {\n item.onSuccess?.({ content }, item.file, null);\n })\n }\n\n fileChange(e: NzUploadChangeParam) {\n switch (e.type) {\n case \"success\":\n this.updateValue(e.fileList);\n break;\n case \"removed\":\n this.updateValue(e.fileList);\n break;\n }\n }\n}\n","<nz-upload [nzFileList]=\"fileList()\" [nzType]=\" options.buttonType()=='drag-file'?'drag':'select'\" [nzMaxCount]=\"1\"\n [nzAccept]=\"options.fileType()\" [nzSize]=\"options.limitSize()\" nzListType=\"text\" [nzDisabled]=\"options.disabled()\"\n [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\" [nzShowButton]=\"!options.readonly()\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true}\">\n @if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>\n\n<nz-modal [(nzVisible)]=\"previewModalVisible\" nzTitle=\"文件预览\" [nzOkText]=\"null\" nzCancelText=\"关闭\"\n (nzOnCancel)=\"previewModalVisible.set(false)\">\n <ng-container *nzModalContent>\n <ng-container\n [axisDynamic]=\"{component:'axis-components/editor',readonly:true,inuse:true,mode:previewEditorMode(),style:{height:'500px'}}\"\n [standalone]=\"true\" [ngModel]=\"value()\"></ng-container>\n </ng-container>\n</nz-modal>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './read-file';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AAE1C,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,+EAAC;AAC3B,IAAA,SAAS,GAAG,MAAM,CAAgB,IAAI,gFAAC;AAEvC,IAAA,UAAU,GAAG,MAAM,CAAyB,QAAQ,iFAAC;AACrD,IAAA,WAAW,GAAG,MAAM,CAAS,MAAM,kFAAC;AACpC,IAAA,UAAU,GAAG,MAAM,CA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eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAKvG,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAPpB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WACjB,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,CAAC,EAAA,eAAA,EAGlG,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8yDAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEjBjD;;AAEG;;;;"}
@@ -31,10 +31,10 @@ class Scope extends Base {
31
31
  switch (e.name) {
32
32
  case "triggeEvent":
33
33
  if (e.data.target === "component") {
34
- return this.childScope.findInstance(e.data.id)?.triggeEvents(e.data.name, e.data.data) ?? of(false);
34
+ return this.childScope.findInstance(e.data.id)?.triggeEvents(e.data.name, { ...e.tempDataSource, ...e.data.data }) ?? of(false);
35
35
  }
36
36
  else {
37
- return this.triggeEvents(e.data.name, e.data.data);
37
+ return this.triggeEvents(e.data.name, { ...e.tempDataSource, ...e.data.data });
38
38
  }
39
39
  }
40
40
  return undefined;
@@ -57,7 +57,7 @@ class Scope extends Base {
57
57
  });
58
58
  }
59
59
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Scope, deps: null, target: i0.ɵɵFactoryTarget.Component });
60
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: Scope, isStandalone: true, selector: "axis-scope", viewQueries: [{ propertyName: "childScope", first: true, predicate: ScopeDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container [axisScope]=\"options.id\" [scopeName]=\"options.scopeName()\" [isRoot]=\"true\"\n [dataSources]=\"options.dataSources()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</ng-container>", styles: [":host{display:block;width:100%;height:100%;position:relative}\n"], dependencies: [{ kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "dataSources"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }] });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: Scope, isStandalone: true, selector: "axis-scope", viewQueries: [{ propertyName: "childScope", first: true, predicate: ScopeDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container [axisScope]=\"options.id\" [scopeName]=\"options.scopeName()\" [isRoot]=\"true\"\n [dataSources]=\"options.dataSources()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</ng-container>", styles: [":host{display:block;width:100%;height:100%;position:relative}\n"], dependencies: [{ kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "passComponents", "dataSources"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }] });
61
61
  }
62
62
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Scope, decorators: [{
63
63
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-scope.mjs","sources":["../../../axis-components/scope/scope.options.ts","../../../axis-components/scope/scope.ts","../../../axis-components/scope/scope.html","../../../axis-components/scope/ngx-axis-appforge-axis-components-scope.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions, DataSourceOptions } from \"ngx-axis-appforge/core\";\n\nexport class ScopeOptions extends BaseOptions {\n readonly scopeName = signal(\"未命名\");\n readonly dataSources = signal<DataSourceOptions[]>([]);\n readonly child = signal<any>(undefined);\n readonly isRoot = signal(true);\n}","import { AfterViewInit, Component, effect, untracked, ViewChild } from '@angular/core';\nimport { ScopeOptions } from './scope.options';\nimport { ScopeDirective, DynamicDirective, Base, EventHandlerOptions } from 'ngx-axis-appforge/core';\nimport { Observable, of } from 'rxjs';\n\n@Component({\n selector: 'axis-scope',\n imports: [ScopeDirective, DynamicDirective],\n templateUrl: './scope.html',\n styleUrl: './scope.css',\n})\nexport class Scope extends Base<ScopeOptions> implements AfterViewInit {\n\n override ngAfterViewInit(): void {\n super.ngAfterViewInit();\n this.listenDataChange();\n }\n\n override options: ScopeOptions = new ScopeOptions();\n\n @ViewChild(ScopeDirective, { static: true })\n childScope!: ScopeDirective;\n\n override triggeEvents(trigger: string, tempDataSource?: any, triggeEvents?: { [trigger: string]: EventHandlerOptions<any>[]; }, scope?: ScopeDirective): Observable<boolean> {\n return super.triggeEvents(trigger, tempDataSource, triggeEvents, scope ?? this.childScope);\n }\n\n override triggeEvent(e: EventHandlerOptions<unknown>, scope?: ScopeDirective): Observable<boolean> {\n return super.triggeEvent(e, scope ?? this.childScope);\n }\n\n override onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined {\n const obs = super.onEvents?.(e);\n if (obs) {\n return;\n }\n switch (e.name) {\n case \"triggeEvent\":\n if (e.data.target === \"component\") {\n return this.childScope.findInstance(e.data.id)?.triggeEvents(e.data.name, e.data.data) ?? of(false);\n } else {\n return this.triggeEvents(e.data.name, e.data.data);\n }\n }\n return undefined;\n }\n\n\n listenDataChange(): void {\n this.unsubscribe([\"dataChange\"]);\n const dataChangeHandlers = this.options.triggeEvents()?.[\"dataChange\"];\n untracked(() => {\n if (dataChangeHandlers) {\n for (const handler of dataChangeHandlers) {\n const io = this.childScope.dynamicOptions(handler, true);\n if (io.init) {\n this.triggeEvents(\"dataChange\", undefined, { dataChange: [handler] }).subscribe();\n }\n if (io.obs) {\n this.addSubscribe(io.obs.subscribe(_ => this.triggeEvents(\"dataChange\", undefined, { dataChange: [handler] }).subscribe()), \"dataChange\");\n }\n }\n }\n });\n }\n\n}\n","<ng-container [axisScope]=\"options.id\" [scopeName]=\"options.scopeName()\" [isRoot]=\"true\"\n [dataSources]=\"options.dataSources()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './scope';\n"],"names":[],"mappings":";;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;AACzB,IAAA,WAAW,GAAG,MAAM,CAAsB,EAAE,kFAAC;AAC7C,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,4EAAC;AAC9B,IAAA,MAAM,GAAG,MAAM,CAAC,IAAI,6EAAC;AACjC;;ACGK,MAAO,KAAM,SAAQ,IAAkB,CAAA;IAElC,eAAe,GAAA;QACtB,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,gBAAgB,EAAE;IACzB;AAES,IAAA,OAAO,GAAiB,IAAI,YAAY,EAAE;AAGnD,IAAA,UAAU;AAED,IAAA,YAAY,CAAC,OAAe,EAAE,cAAoB,EAAE,YAAiE,EAAE,KAAsB,EAAA;AACpJ,QAAA,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,IAAI,IAAI,CAAC,UAAU,CAAC;IAC5F;IAES,WAAW,CAAC,CAA+B,EAAE,KAAsB,EAAA;AAC1E,QAAA,OAAO,KAAK,CAAC,WAAW,CAA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1C,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;AEpB7C;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-scope.mjs","sources":["../../../axis-components/scope/scope.options.ts","../../../axis-components/scope/scope.ts","../../../axis-components/scope/scope.html","../../../axis-components/scope/ngx-axis-appforge-axis-components-scope.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions, DataSourceOptions } from \"ngx-axis-appforge/core\";\n\nexport class ScopeOptions extends BaseOptions {\n readonly scopeName = signal(\"未命名\");\n readonly dataSources = signal<DataSourceOptions[]>([]);\n readonly child = signal<any>(undefined);\n readonly isRoot = signal(true);\n}","import { AfterViewInit, Component, effect, untracked, ViewChild } from '@angular/core';\nimport { ScopeOptions } from './scope.options';\nimport { ScopeDirective, DynamicDirective, Base, EventHandlerOptions } from 'ngx-axis-appforge/core';\nimport { Observable, of } from 'rxjs';\n\n@Component({\n selector: 'axis-scope',\n imports: [ScopeDirective, DynamicDirective],\n templateUrl: './scope.html',\n styleUrl: './scope.css',\n})\nexport class Scope extends Base<ScopeOptions> implements AfterViewInit {\n\n override ngAfterViewInit(): void {\n super.ngAfterViewInit();\n this.listenDataChange();\n }\n\n override options: ScopeOptions = new ScopeOptions();\n\n @ViewChild(ScopeDirective, { static: true })\n childScope!: ScopeDirective;\n\n override triggeEvents(trigger: string, tempDataSource?: any, triggeEvents?: { [trigger: string]: EventHandlerOptions<any>[]; }, scope?: ScopeDirective): Observable<boolean> {\n return super.triggeEvents(trigger, tempDataSource, triggeEvents, scope ?? this.childScope);\n }\n\n override triggeEvent(e: EventHandlerOptions<unknown>, scope?: ScopeDirective): Observable<boolean> {\n return super.triggeEvent(e, scope ?? this.childScope);\n }\n\n override onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined {\n const obs = super.onEvents?.(e);\n if (obs) {\n return;\n }\n switch (e.name) {\n case \"triggeEvent\":\n if (e.data.target === \"component\") {\n return this.childScope.findInstance(e.data.id)?.triggeEvents(e.data.name, { ...e.tempDataSource, ...e.data.data }) ?? of(false);\n } else {\n return this.triggeEvents(e.data.name, { ...e.tempDataSource, ...e.data.data });\n }\n }\n return undefined;\n }\n\n\n listenDataChange(): void {\n this.unsubscribe([\"dataChange\"]);\n const dataChangeHandlers = this.options.triggeEvents()?.[\"dataChange\"];\n untracked(() => {\n if (dataChangeHandlers) {\n for (const handler of dataChangeHandlers) {\n const io = this.childScope.dynamicOptions(handler, true);\n if (io.init) {\n this.triggeEvents(\"dataChange\", undefined, { dataChange: [handler] }).subscribe();\n }\n if (io.obs) {\n this.addSubscribe(io.obs.subscribe(_ => this.triggeEvents(\"dataChange\", undefined, { dataChange: [handler] }).subscribe()), \"dataChange\");\n }\n }\n }\n });\n }\n\n}\n","<ng-container [axisScope]=\"options.id\" [scopeName]=\"options.scopeName()\" [isRoot]=\"true\"\n [dataSources]=\"options.dataSources()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './scope';\n"],"names":[],"mappings":";;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;AACzB,IAAA,WAAW,GAAG,MAAM,CAAsB,EAAE,kFAAC;AAC7C,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,4EAAC;AAC9B,IAAA,MAAM,GAAG,MAAM,CAAC,IAAI,6EAAC;AACjC;;ACGK,MAAO,KAAM,SAAQ,IAAkB,CAAA;IAElC,eAAe,GAAA;QACtB,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,gBAAgB,EAAE;IACzB;AAES,IAAA,OAAO,GAAiB,IAAI,YAAY,EAAE;AAGnD,IAAA,UAAU;AAED,IAAA,YAAY,CAAC,OAAe,EAAE,cAAoB,EAAE,YAAiE,EAAE,KAAsB,EAAA;AACpJ,QAAA,O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AAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAI/B,KAAK,EAAA,UAAA,EAAA,CAAA;kBANjB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,OAAA,EACb,CAAC,cAAc,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,oOAAA,EAAA,MAAA,EAAA,CAAA,iEAAA,CAAA,EAAA;;sBAa1C,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;AEpB7C;;AAEG;;;;"}
@@ -553,7 +553,7 @@ class Table extends Base {
553
553
  provide: AXIS_TABLE_SELECT_TOKEN,
554
554
  useExisting: SelectService,
555
555
  },
556
- ], viewQueries: [{ propertyName: "tableSetter", first: true, predicate: TableSetter, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (options.showTableTitleSet()) {\n<axis-table-setter [fields]=\"oriFields()\" [cacheKey]=\"options.tableSetCacheKey()\"\n (onChange)=\"fixFields.set($event)\"></axis-table-setter>\n}\n<nz-table #table [nzSize]=\"options.size()\" [nzData]=\"tableSvc.rows()??[]\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\"\n [nzFrontPagination]=\"options.showPagination() && !options.useBackEndPaging()\" [nzTotal]=\"tableSvc.rowtotal()\"\n [(nzPageSize)]=\"options.pageSize\" [nzShowSizeChanger]=\"options.showSizeChanger()\"\n [nzPageSizeOptions]=\"tableSvc.pageSizeOptions()\" [nzShowTotal]=\"options.showDataSize()?totalRange:null\"\n [nzScroll]=\"scroll()\" (nzPageIndexChange)=\"onPageIndexChange()\" (nzPageSizeChange)=\"onPageSizeChange()\"\n [(nzPageIndex)]=\"tableSvc.pageIndex\" [nzVirtualItemSize]=\"options.virtualItemSize()\"\n [nzVirtualForTrackBy]=\"trackByKeyField\">\n <thead>\n <tr>\n @if (options.showCheckbox()) {\n @if (!options.checkboxLinkageForExpand() && !options.singleCheck()) {\n <th nzLeft [nzChecked]=\"select.headerChecked()!='none'\"\n [nzIndeterminate]=\"select.headerChecked()=='indeterminate' || (select.headerChecked()=='checked' && tableSvc.useBackEndPaging())\"\n (nzCheckedChange)=\"select.onAllChecked($event)\" nzAlign=\"center\"\n [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\">\n </th>\n }@else {\n <th nzLeft [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\"></th>\n }\n }\n @if (options.showExpand()) {\n <th nzLeft nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()-15+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <th [attr.data-field]=\"loopFieldOriFieldMap().get(f)??f.field()\" nz-resizable nzBounds=\"window\"\n [nzDisabled]=\"!options.showTableTitleSet() || !f.width()\"\n [nzWidth]=\"f.width() == null ?null:f.width()+'px'\" (nzResize)=\"tableSetter?.onResize(f,$event)\"\n [nzShowSort]=\"tableSvc.fieldSortAble(f)\" [nzSortDirections]=\"tableSvc.fieldSortDirections(f)\"\n [nzSortFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.sortFn\" [(nzSortOrder)]=\"f.sortOrder\"\n [nzSortPriority]=\"tableSvc.fieldSortPriority(f)\"\n [nzShowFilter]=\"f.filterAble() && !options.useBackEndPaging()\" (nzSortOrderChange)=\"sortChange()\"\n [nzFilters]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"tableSvc.filterChange(f.field(),$event)\" [nzFilterMultiple]=\"f.filterMultiple()\"\n [nzAlign]=\"f.align()\" [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n @if(options.showTableTitleSet()){\n <nz-resize-handle [style.transform]=\"`translateX(${resizeHandleOffsetX(f)}px)`\" nzDirection=\"right\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n }\n </span>\n </th>\n }\n @if (rowActions().length)\n {\n <th nzRight nzAlign=\"center\" [nzWidth]=\"actionsFieldWidth()+'px'\" data-rowactions>\u64CD\u4F5C</th>\n }\n </tr>\n </thead>\n <tbody>\n @if (!options.showPagination() && options.virtualScroll()) {\n <ng-template nz-virtual-scroll let-data let-i=\"index\">\n </ng-template>\n }@else {\n @for (trow of table.data; track options.keyField()?trow[options.keyField()]:trow;let i=$index) {\n @for (data of expand.getListForExpanded(trow); track options.keyField()?data[options.keyField()]:data) {\n <tr (click)=\"rowClick($event,data)\" [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\"\n [class.checkedRow]=\"select.setOfCheckedId().has(data[options.keyField()])\">\n @if (options.showCheckbox()) {\n <td nzLeft [nzChecked]=\"select.setOfCheckedId().has(data[options.keyField()])\"\n [nzIndeterminate]=\"select.setOfIndeterminateId().has(data[options.keyField()])\"\n [nzDisabled]=\"select.setOfDisabledId().has(data[options.keyField()])\"\n (nzCheckedChange)=\"select.onItemChecked(data, $event)\" nzAlign=\"center\"></td>\n }\n @if (options.showExpand()) {\n @if(options.expandMode() == \"tree\" && !expand.nodeMap().get(data[options.keyField()])?.children?.length){\n <td nzLeft></td>\n }@else{\n <td nzLeft [nzExpand]=\"expand.expandedSet.has(data[options.keyField()])\"\n (nzExpandChange)=\"expand.onExpandChange(data[options.keyField()],$event)\"></td>\n }\n }\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <td [attr.rowspan]=\"tableSvc.rowspan(f,i,table.nzPageIndex,table.nzPageSize,data)\"\n [nzLeft]=\"f.freezeMode()=='left'\" [attr.data-field]=\"f.field()\" [nzRight]=\"f.freezeMode()=='right'\"\n [nzAlign]=\"f.align()\">\n @if (f.child()) {\n @if(loopFieldDataMap().has(f)){\n <ng-container [axisScope]=\"options.id+'.fields.'+f.field()+'.row.loop'\" scopeName=\"\u5217\u5FAA\u73AF\"\n [dataSources]=\"[{name:'loopRow',type:'local',data:loopFieldDataMap().get(f)}]\">\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n </ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }\n }@else {\n {{data[f.field()]}}\n }\n </td>\n }\n @if (rowActions().length) {\n <td nzRight>\n <div nz-flex nzJustify=\"space-evenly\" data-rowactions>\n @for (a of rowActions(); track a.id) {\n <ng-container [axisDynamic]=\"a\"></ng-container>\n }\n </div>\n </td>\n }\n </tr>\n @if (options.showStatistic() && tableSvc.isGroupEnd(i+(table.nzPageIndex-1)*table.nzPageSize,data)) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:statistic.statisticGroupMap()[tableSvc.getGroupValue(data)]}]\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if(options.showOrder()){\n <td nzAlign=\"right\">\n {{options.statisticTitle()}}\n </td>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <td [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n @if (f.statisticAble()) {\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{statistic.statisticGroupMap()[tableSvc.getGroupValue(data)]?.[f.field()]}}\n }\n }@else if(i==0 && !options.showOrder()){\n @if(tableSvc.groupAbleFields()[0] == f){\n {{data[f.field()]}}({{options.statisticTitle()}})\n }@else{\n {{options.statisticTitle()}}\n }\n }@else if (f.groupAble() && f == tableSvc.groupAbleFields()[0]) {\n {{data[f.field()]}}\n }\n </td>\n }\n @if (rowActions().length) {\n <td nzRight></td>\n }\n </tr>\n }\n }\n @if (options.showExpand() && options.expandMode() == \"custom\") {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\" [dataSources]=\"[{name:'row',type:'local',data:trow}]\"\n [nzExpand]=\"expand.expandedSet.has(trow[options.keyField()])\" data-expandrow>\n <ng-container [axisDynamic]=\"options.expandRow()\"></ng-container>\n </tr>\n }\n }\n }\n </tbody>\n @if (options.showStatistic()) {\n <tfoot nzSummary>\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:statistic.statisticMap()}]\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if(options.showOrder()){\n <td nzAlign=\"right\">\n <b>{{options.statisticTitle()}}</b>\n </td>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <td [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n <b>\n @if (f.statisticAble()) {\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{statistic.statisticMap()[f.field()]}}\n }\n }@else if(i==0 && !options.showOrder()){\n {{options.statisticTitle()}}\n }\n </b>\n </td>\n }\n @if (rowActions().length) {\n <td nzRight></td>\n }\n </tr>\n </tfoot>\n }\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n</nz-table>", styles: [":host{display:block;width:100%;overflow:hidden}:host ::ng-deep .ant-table-placeholder .ant-table-expanded-row-fixed{margin:-8px -10px}td[rowspan=\"0\"]{display:none}.checkedRow>td{background-color:var(--ant-primary-2)}.checkedRow:hover>td{background-color:var(--ant-primary-3)}\n"], dependencies: [{ kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i2$1.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i2$1.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i2$1.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i2$1.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i2$1.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i2$1.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i2$1.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i2$1.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i2$1.NzTableVirtualScrollDirective, selector: "[nz-virtual-scroll]", exportAs: ["nzVirtualScroll"] }, { kind: "directive", type: i2$1.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "directive", type: i2$1.NzTrExpandDirective, selector: "tr[nzExpand]", inputs: ["nzExpand"] }, { kind: "component", type: i2$1.NzTfootSummaryComponent, selector: "tfoot[nzSummary]", inputs: ["nzFixed"] }, { kind: "directive", type: i2$1.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: i2$1.NzTableFixedRowComponent, selector: "tr[nz-table-fixed-row], tr[nzExpand]" }, { kind: "component", type: i2$1.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "dataSources"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: TableSetter, selector: "axis-table-setter", inputs: ["fields", "cacheKey", "modalVisible"], outputs: ["onChange", "modalVisibleChange"] }, { kind: "ngmodule", type: NzResizableModule }, { kind: "directive", type: i3$1.NzResizableDirective, selector: "[nz-resizable]", inputs: ["nzBounds", "nzMaxHeight", "nzMaxWidth", "nzMinHeight", "nzMinWidth", "nzGridColumnCount", "nzMaxColumn", "nzMinColumn", "nzLockAspectRatio", "nzPreview", "nzDisabled"], outputs: ["nzResize", "nzResizeEnd", "nzResizeStart"], exportAs: ["nzResizable"] }, { kind: "component", type: i3$1.NzResizeHandleComponent, selector: "nz-resize-handle, [nz-resize-handle]", inputs: ["nzDirection", "nzCursorType"], outputs: ["nzMouseDown"], exportAs: ["nzResizeHandle"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i4$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
556
+ ], viewQueries: [{ propertyName: "tableSetter", first: true, predicate: TableSetter, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (options.showTableTitleSet()) {\n<axis-table-setter [fields]=\"oriFields()\" [cacheKey]=\"options.tableSetCacheKey()\"\n (onChange)=\"fixFields.set($event)\"></axis-table-setter>\n}\n<nz-table #table [nzSize]=\"options.size()\" [nzData]=\"tableSvc.rows()??[]\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\"\n [nzFrontPagination]=\"options.showPagination() && !options.useBackEndPaging()\" [nzTotal]=\"tableSvc.rowtotal()\"\n [(nzPageSize)]=\"options.pageSize\" [nzShowSizeChanger]=\"options.showSizeChanger()\"\n [nzPageSizeOptions]=\"tableSvc.pageSizeOptions()\" [nzShowTotal]=\"options.showDataSize()?totalRange:null\"\n [nzScroll]=\"scroll()\" (nzPageIndexChange)=\"onPageIndexChange()\" (nzPageSizeChange)=\"onPageSizeChange()\"\n [(nzPageIndex)]=\"tableSvc.pageIndex\" [nzVirtualItemSize]=\"options.virtualItemSize()\"\n [nzVirtualForTrackBy]=\"trackByKeyField\">\n <thead>\n <tr>\n @if (options.showCheckbox()) {\n @if (!options.checkboxLinkageForExpand() && !options.singleCheck()) {\n <th nzLeft [nzChecked]=\"select.headerChecked()!='none'\"\n [nzIndeterminate]=\"select.headerChecked()=='indeterminate' || (select.headerChecked()=='checked' && tableSvc.useBackEndPaging())\"\n (nzCheckedChange)=\"select.onAllChecked($event)\" nzAlign=\"center\"\n [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\">\n </th>\n }@else {\n <th nzLeft [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\"></th>\n }\n }\n @if (options.showExpand()) {\n <th nzLeft nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()-15+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <th [attr.data-field]=\"loopFieldOriFieldMap().get(f)??f.field()\" nz-resizable nzBounds=\"window\"\n [nzDisabled]=\"!options.showTableTitleSet() || !f.width()\"\n [nzWidth]=\"f.width() == null ?null:f.width()+'px'\" (nzResize)=\"tableSetter?.onResize(f,$event)\"\n [nzShowSort]=\"tableSvc.fieldSortAble(f)\" [nzSortDirections]=\"tableSvc.fieldSortDirections(f)\"\n [nzSortFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.sortFn\" [(nzSortOrder)]=\"f.sortOrder\"\n [nzSortPriority]=\"tableSvc.fieldSortPriority(f)\"\n [nzShowFilter]=\"f.filterAble() && !options.useBackEndPaging()\" (nzSortOrderChange)=\"sortChange()\"\n [nzFilters]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"tableSvc.filterChange(f.field(),$event)\" [nzFilterMultiple]=\"f.filterMultiple()\"\n [nzAlign]=\"f.align()\" [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n @if(options.showTableTitleSet()){\n <nz-resize-handle [style.transform]=\"`translateX(${resizeHandleOffsetX(f)}px)`\" nzDirection=\"right\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n }\n </span>\n </th>\n }\n @if (rowActions().length)\n {\n <th nzRight nzAlign=\"center\" [nzWidth]=\"actionsFieldWidth()+'px'\" data-rowactions>\u64CD\u4F5C</th>\n }\n </tr>\n </thead>\n <tbody>\n @if (!options.showPagination() && options.virtualScroll()) {\n <ng-template nz-virtual-scroll let-data let-i=\"index\">\n </ng-template>\n }@else {\n @for (trow of table.data; track options.keyField()?trow[options.keyField()]:trow;let i=$index) {\n @for (data of expand.getListForExpanded(trow); track options.keyField()?data[options.keyField()]:data) {\n <tr (click)=\"rowClick($event,data)\" [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\"\n [class.checkedRow]=\"select.setOfCheckedId().has(data[options.keyField()])\">\n @if (options.showCheckbox()) {\n <td nzLeft [nzChecked]=\"select.setOfCheckedId().has(data[options.keyField()])\"\n [nzIndeterminate]=\"select.setOfIndeterminateId().has(data[options.keyField()])\"\n [nzDisabled]=\"select.setOfDisabledId().has(data[options.keyField()])\"\n (nzCheckedChange)=\"select.onItemChecked(data, $event)\" nzAlign=\"center\"></td>\n }\n @if (options.showExpand()) {\n @if(options.expandMode() == \"tree\" && !expand.nodeMap().get(data[options.keyField()])?.children?.length){\n <td nzLeft></td>\n }@else{\n <td nzLeft [nzExpand]=\"expand.expandedSet.has(data[options.keyField()])\"\n (nzExpandChange)=\"expand.onExpandChange(data[options.keyField()],$event)\"></td>\n }\n }\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <td [attr.rowspan]=\"tableSvc.rowspan(f,i,table.nzPageIndex,table.nzPageSize,data)\"\n [nzLeft]=\"f.freezeMode()=='left'\" [attr.data-field]=\"f.field()\" [nzRight]=\"f.freezeMode()=='right'\"\n [nzAlign]=\"f.align()\">\n @if (f.child()) {\n @if(loopFieldDataMap().has(f)){\n <ng-container [axisScope]=\"options.id+'.fields.'+f.field()+'.row.loop'\" scopeName=\"\u5217\u5FAA\u73AF\"\n [dataSources]=\"[{name:'loopRow',type:'local',data:loopFieldDataMap().get(f)}]\">\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n </ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }\n }@else {\n {{data[f.field()]}}\n }\n </td>\n }\n @if (rowActions().length) {\n <td nzRight>\n <div nz-flex nzJustify=\"space-evenly\" data-rowactions>\n @for (a of rowActions(); track a.id) {\n <ng-container [axisDynamic]=\"a\"></ng-container>\n }\n </div>\n </td>\n }\n </tr>\n @if (options.showStatistic() && tableSvc.isGroupEnd(i+(table.nzPageIndex-1)*table.nzPageSize,data)) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:statistic.statisticGroupMap()[tableSvc.getGroupValue(data)]}]\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if(options.showOrder()){\n <td nzAlign=\"right\">\n {{options.statisticTitle()}}\n </td>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <td [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n @if (f.statisticAble()) {\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{statistic.statisticGroupMap()[tableSvc.getGroupValue(data)]?.[f.field()]}}\n }\n }@else if(i==0 && !options.showOrder()){\n @if(tableSvc.groupAbleFields()[0] == f){\n {{data[f.field()]}}({{options.statisticTitle()}})\n }@else{\n {{options.statisticTitle()}}\n }\n }@else if (f.groupAble() && f == tableSvc.groupAbleFields()[0]) {\n {{data[f.field()]}}\n }\n </td>\n }\n @if (rowActions().length) {\n <td nzRight></td>\n }\n </tr>\n }\n }\n @if (options.showExpand() && options.expandMode() == \"custom\") {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\" [dataSources]=\"[{name:'row',type:'local',data:trow}]\"\n [nzExpand]=\"expand.expandedSet.has(trow[options.keyField()])\" data-expandrow>\n <ng-container [axisDynamic]=\"options.expandRow()\"></ng-container>\n </tr>\n }\n }\n }\n </tbody>\n @if (options.showStatistic()) {\n <tfoot nzSummary>\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:statistic.statisticMap()}]\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if(options.showOrder()){\n <td nzAlign=\"right\">\n <b>{{options.statisticTitle()}}</b>\n </td>\n }\n @for (f of tableSvc.displayFields(); track f.field();let i=$index) {\n <td [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n <b>\n @if (f.statisticAble()) {\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{statistic.statisticMap()[f.field()]}}\n }\n }@else if(i==0 && !options.showOrder()){\n {{options.statisticTitle()}}\n }\n </b>\n </td>\n }\n @if (rowActions().length) {\n <td nzRight></td>\n }\n </tr>\n </tfoot>\n }\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n</nz-table>", styles: [":host{display:block;width:100%;overflow:hidden}:host ::ng-deep .ant-table-placeholder .ant-table-expanded-row-fixed{margin:-8px -10px}td[rowspan=\"0\"]{display:none}.checkedRow>td{background-color:var(--ant-primary-2)}.checkedRow:hover>td{background-color:var(--ant-primary-3)}\n"], dependencies: [{ kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i2$1.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i2$1.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i2$1.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i2$1.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i2$1.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i2$1.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i2$1.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i2$1.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i2$1.NzTableVirtualScrollDirective, selector: "[nz-virtual-scroll]", exportAs: ["nzVirtualScroll"] }, { kind: "directive", type: i2$1.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "directive", type: i2$1.NzTrExpandDirective, selector: "tr[nzExpand]", inputs: ["nzExpand"] }, { kind: "component", type: i2$1.NzTfootSummaryComponent, selector: "tfoot[nzSummary]", inputs: ["nzFixed"] }, { kind: "directive", type: i2$1.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: i2$1.NzTableFixedRowComponent, selector: "tr[nz-table-fixed-row], tr[nzExpand]" }, { kind: "component", type: i2$1.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "passComponents", "dataSources"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: TableSetter, selector: "axis-table-setter", inputs: ["fields", "cacheKey", "modalVisible"], outputs: ["onChange", "modalVisibleChange"] }, { kind: "ngmodule", type: NzResizableModule }, { kind: "directive", type: i3$1.NzResizableDirective, selector: "[nz-resizable]", inputs: ["nzBounds", "nzMaxHeight", "nzMaxWidth", "nzMinHeight", "nzMinWidth", "nzGridColumnCount", "nzMaxColumn", "nzMinColumn", "nzLockAspectRatio", "nzPreview", "nzDisabled"], outputs: ["nzResize", "nzResizeEnd", "nzResizeStart"], exportAs: ["nzResizable"] }, { kind: "component", type: i3$1.NzResizeHandleComponent, selector: "nz-resize-handle, [nz-resize-handle]", inputs: ["nzDirection", "nzCursorType"], outputs: ["nzMouseDown"], exportAs: ["nzResizeHandle"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i4$1.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
557
557
  }
558
558
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Table, decorators: [{
559
559
  type: Component,