ngx-axis-appforge 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +35 -19
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +23 -13
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +35 -19
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +79 -48
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs +33 -18
- package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +18 -16
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +115 -60
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +13 -8
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +19 -11
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +7 -5
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +6 -5
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +10 -7
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +21 -12
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +60 -4
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +21 -8
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +12 -8
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +27 -15
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +24 -13
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +20 -17
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +43 -23
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +9 -8
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +33 -18
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +27 -15
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +13 -8
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +32 -22
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +11 -7
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +55 -29
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +42 -22
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +25 -14
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +45 -24
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +35 -23
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +73 -44
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +162 -84
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +45 -24
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +19 -11
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +22 -12
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs +16 -13
- package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +7 -5
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +16 -13
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +131 -67
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +14 -12
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +87 -45
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +51 -27
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-video.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-video.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +274 -192
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +9 -9
- package/types/ngx-axis-appforge-axis-components-input-icon.d.ts +1 -0
- package/types/ngx-axis-appforge-axis-components-input.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dropdown-design.mjs","sources":["../../../axis-components/dropdown/design/setting/setting.ts","../../../axis-components/dropdown/design/setting/setting.html","../../../axis-components/dropdown/design/config.ts","../../../axis-components/dropdown/design/ngx-axis-appforge-axis-components-dropdown-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzColorPickerModule } from 'ng-zorro-antd/color-picker';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dropdown-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzSwitchModule, NzInputModule, NzInputNumberModule, NzColorPickerModule, NzRadioModule, NzSelectModule, NzSpaceModule, NzButtonModule, NzIconModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n disabled: [undefined, FormValidators.requiredFun],\n placement: [undefined, FormValidators.requiredFun],\n trigger: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n disabled: {\n defaultValue: false\n },\n placement: {\n defaultValue: \"bottomLeft\"\n },\n trigger: {\n defaultValue: \"hover\"\n },\n };\n\n override reset(value?: any): void {\n super.reset(value);\n if (this.formValue()?.color) {\n this.color.set(this.formValue().color);\n }\n if (this.formValue()?.offset) {\n this.offsetX.set(this.formValue().offset[0]);\n this.offsetY.set(this.formValue().offset[1]);\n }\n }\n\n readonly offsetX = model<number | null>(null);\n readonly offsetY = model<number | null>(null);\n readonly color = model<any>({ funMode: false });\n\n setColorFormValue() {\n if (!this.color().funMode && this.color().originValue?.endsWith(\"00\")) {\n this.fg.patchValue({\n color: { ...this.color(), originValue: null }\n });\n } else {\n this.fg.patchValue({\n color: this.color()\n });\n }\n }\n\n resetOffset() {\n this.offsetX.set(null);\n this.offsetY.set(null);\n this.setOffsetFormValue();\n }\n\n setOffsetFormValue() {\n if (this.offsetX() != null || this.offsetY() != null) {\n this.fg.patchValue({\n offset: [this.offsetX() ?? 0, this.offsetY() ?? 0]\n });\n } else {\n this.fg.patchValue({\n offset: null\n });\n }\n }\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 触发方式\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"trigger\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"hover\" nzLabel=\"悬停\"></nz-option>\n <nz-option nzValue=\"click\" nzLabel=\"点击\"></nz-option>\n <nz-option nzValue=\"contextMenu\" nzLabel=\"右键\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.trigger.funMode || formValue()?.trigger.originValue != 'contextMenu') {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 禁用\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabled\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-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=\"placement\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"bottomLeft\" nzLabel=\"下左\"></nz-option>\n <nz-option nzValue=\"bottomCenter\" nzLabel=\"下中\"></nz-option>\n <nz-option nzValue=\"bottomRight\" nzLabel=\"下右\"></nz-option>\n <nz-option nzValue=\"topLeft\" nzLabel=\"上左\"></nz-option>\n <nz-option nzValue=\"topCenter\" nzLabel=\"上中\"></nz-option>\n <nz-option nzValue=\"topRight\" nzLabel=\"上右\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </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 eventHandlerDescs: {\n closeDropdown: {\n name: \"closeDropdown\",\n title: \"关闭下拉菜单\",\n icon: \"close-circle\",\n target: \"component\",\n targetComponent: \"axis-components/dropdown\",\n },\n },\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: \"down\",\n children: [\n new OptionsNode({\n id: nextInfo.currentObject.id + \".menu\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"菜单\",\n canDrop: true,\n dropObj: nextInfo.currentObject,\n dropType: \"component\",\n defaultDropIndex: \"menu\",\n parentObj: nextInfo.parentObject,\n rootOptions: nextInfo.currentObject,\n contextMenu: SimpleMenu,\n icon: \"project\",\n children: []\n }),\n new OptionsNode({\n id: nextInfo.currentObject.id + \".child\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"子组件\",\n canDrop: true,\n dropObj: nextInfo.currentObject,\n dropType: \"component\",\n defaultDropIndex: \"child\",\n parentObj: nextInfo.parentObject,\n rootOptions: nextInfo.currentObject,\n contextMenu: SimpleMenu,\n icon: \"build\",\n children: []\n }),\n ]\n }),\n next: [\n {\n parentId: nextInfo.currentObject.id + \".menu\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"menu\",\n scopeId: nextInfo.scopeId\n }, {\n parentId: nextInfo.currentObject.id + \".child\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\n }\n ]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAClD,QAAA,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA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b,CAAC;AACF,oBAAA,IAAI,WAAW,CAAC;AACZ,wBAAA,EAAE,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,GAAG,QAAQ;AACxC,wBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;wBACnC,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,wBAAA,IAAI,EAAE,KAAK;AACX,wBAAA,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,QAAQ,CAAC,aAAa;AAC/B,wBAAA,QAAQ,EAAE,WAAW;AACrB,wBAAA,gBAAgB,EAAE,OAAO;wBACzB,SAAS,EAAE,QAAQ,CAAC,YAAY;wBAChC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,wBAAA,WAAW,EAAE,UAAU;AACvB,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,QAAQ,EAAE;qBACb,CAAC;AACL;aACJ,CAAC;AACF,YAAA,IAAI,EAAE;AACF,gBAAA;AACI,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,GAAG,OAAO;oBAC7C,YAAY,EAAE,QAAQ,CAAC,aAAa;AACpC,oBAAA,aAAa,EAAE,MAAM;oBACrB,OAAO,EAAE,QAAQ,CAAC;iBACrB,EAAE;AACC,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,GAAG,QAAQ;oBAC9C,YAAY,EAAE,QAAQ,CAAC,aAAa;AACpC,oBAAA,aAAa,EAAE,OAAO;oBACtB,OAAO,EAAE,QAAQ,CAAC;AACrB;AACJ;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AClFL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dropdown-design.mjs","sources":["../../../axis-components/dropdown/design/setting/setting.ts","../../../axis-components/dropdown/design/setting/setting.html","../../../axis-components/dropdown/design/config.ts","../../../axis-components/dropdown/design/ngx-axis-appforge-axis-components-dropdown-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzColorPickerModule } from 'ng-zorro-antd/color-picker';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dropdown-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzSwitchModule, NzInputModule, NzInputNumberModule, NzColorPickerModule, NzRadioModule, NzSelectModule, NzSpaceModule, NzButtonModule, NzIconModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n disabled: [undefined, FormValidators.requiredFun],\n placement: [undefined, FormValidators.requiredFun],\n trigger: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n disabled: {\n defaultValue: false\n },\n placement: {\n defaultValue: \"bottomLeft\"\n },\n trigger: {\n defaultValue: \"hover\"\n },\n };\n\n override reset(value?: any): void {\n super.reset(value);\n if (this.formValue()?.color) {\n this.color.set(this.formValue().color);\n }\n if (this.formValue()?.offset) {\n this.offsetX.set(this.formValue().offset[0]);\n this.offsetY.set(this.formValue().offset[1]);\n }\n }\n\n readonly offsetX = model<number | null>(null);\n readonly offsetY = model<number | null>(null);\n readonly color = model<any>({ funMode: false });\n\n setColorFormValue() {\n if (!this.color().funMode && this.color().originValue?.endsWith(\"00\")) {\n this.fg.patchValue({\n color: { ...this.color(), originValue: null }\n });\n } else {\n this.fg.patchValue({\n color: this.color()\n });\n }\n }\n\n resetOffset() {\n this.offsetX.set(null);\n this.offsetY.set(null);\n this.setOffsetFormValue();\n }\n\n setOffsetFormValue() {\n if (this.offsetX() != null || this.offsetY() != null) {\n this.fg.patchValue({\n offset: [this.offsetX() ?? 0, this.offsetY() ?? 0]\n });\n } else {\n this.fg.patchValue({\n offset: null\n });\n }\n }\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 触发方式\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"trigger\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"hover\" nzLabel=\"悬停\"></nz-option>\n <nz-option nzValue=\"click\" nzLabel=\"点击\"></nz-option>\n <nz-option nzValue=\"contextMenu\" nzLabel=\"右键\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.trigger.funMode || formValue()?.trigger.originValue != 'contextMenu') {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 禁用\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabled\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-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=\"placement\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"bottomLeft\" nzLabel=\"下左\"></nz-option>\n <nz-option nzValue=\"bottomCenter\" nzLabel=\"下中\"></nz-option>\n <nz-option nzValue=\"bottomRight\" nzLabel=\"下右\"></nz-option>\n <nz-option nzValue=\"topLeft\" nzLabel=\"上左\"></nz-option>\n <nz-option nzValue=\"topCenter\" nzLabel=\"上中\"></nz-option>\n <nz-option nzValue=\"topRight\" nzLabel=\"上右\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </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 eventHandlerDescs: {\n closeDropdown: {\n name: \"closeDropdown\",\n title: \"关闭下拉菜单\",\n icon: \"close-circle\",\n target: \"component\",\n targetComponent: \"axis-components/dropdown\",\n },\n },\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: \"down\",\n children: [\n new OptionsNode({\n id: nextInfo.currentObject.id + \".menu\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"菜单\",\n canDrop: true,\n dropObj: nextInfo.currentObject,\n dropType: \"component\",\n defaultDropIndex: \"menu\",\n parentObj: nextInfo.parentObject,\n rootOptions: nextInfo.currentObject,\n contextMenu: SimpleMenu,\n icon: \"project\",\n children: []\n }),\n new OptionsNode({\n id: nextInfo.currentObject.id + \".child\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"子组件\",\n canDrop: true,\n dropObj: nextInfo.currentObject,\n dropType: \"component\",\n defaultDropIndex: \"child\",\n parentObj: nextInfo.parentObject,\n rootOptions: nextInfo.currentObject,\n contextMenu: SimpleMenu,\n icon: \"build\",\n children: []\n }),\n ]\n }),\n next: [\n {\n parentId: nextInfo.currentObject.id + \".menu\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"menu\",\n scopeId: nextInfo.scopeId\n }, {\n parentId: nextInfo.currentObject.id + \".child\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\n }\n ]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAClD,QAAA,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,YA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|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
trigger = signal('hover', /* @ts-ignore */
|
|
10
|
+
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
11
|
+
disabled = signal(false, /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
13
|
+
placement = signal('bottomLeft', /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
15
|
+
menu = signal(undefined, /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
|
|
17
|
+
child = signal(undefined, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "child" }] : /* istanbul ignore next */ []));
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
class Dropdown extends Base {
|
|
@@ -20,7 +25,8 @@ class Dropdown extends Base {
|
|
|
20
25
|
this.contextMenu = contextMenu;
|
|
21
26
|
}
|
|
22
27
|
options = new DropdownOptions();
|
|
23
|
-
visible = model(false,
|
|
28
|
+
visible = model(false, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
24
30
|
onContextMenu(event, menu) {
|
|
25
31
|
if (this.options.trigger() === 'contextMenu') {
|
|
26
32
|
this.contextMenu.create(event, menu);
|
|
@@ -39,10 +45,10 @@ class Dropdown extends Base {
|
|
|
39
45
|
}
|
|
40
46
|
return undefined;
|
|
41
47
|
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Dropdown, deps: [{ token: i1.NzContextMenuService }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Dropdown, isStandalone: true, selector: "axis-dropdown", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.trigger() == \"contextMenu\") {\n<div (contextmenu)=\"onContextMenu($event, menu)\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}@else{\n<div nz-dropdown [nzDropdownMenu]=\"menu\" [nzDisabled]=\"options.disabled()\" [nzPlacement]=\"options.placement()\"\n [nzTrigger]=\"options.trigger()=='click'?'click':'hover'\" [nzClickHide]=\"false\" [(nzVisible)]=\"visible\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ng-container [axisDynamic]=\"options.menu()\"></ng-container>\n</nz-dropdown-menu>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzDropdownModule }, { kind: "directive", type: i1.NzDropdownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzArrow", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
50
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Dropdown, decorators: [{
|
|
46
52
|
type: Component,
|
|
47
53
|
args: [{ selector: 'axis-dropdown', imports: [NzDropdownModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.trigger() == \"contextMenu\") {\n<div (contextmenu)=\"onContextMenu($event, menu)\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}@else{\n<div nz-dropdown [nzDropdownMenu]=\"menu\" [nzDisabled]=\"options.disabled()\" [nzPlacement]=\"options.placement()\"\n [nzTrigger]=\"options.trigger()=='click'?'click':'hover'\" [nzClickHide]=\"false\" [(nzVisible)]=\"visible\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ng-container [axisDynamic]=\"options.menu()\"></ng-container>\n</nz-dropdown-menu>", styles: [":host{display:block}\n"] }]
|
|
48
54
|
}], ctorParameters: () => [{ type: i1.NzContextMenuService }], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dropdown.mjs","sources":["../../../axis-components/dropdown/dropdown.options.ts","../../../axis-components/dropdown/dropdown.ts","../../../axis-components/dropdown/dropdown.html","../../../axis-components/dropdown/ngx-axis-appforge-axis-components-dropdown.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class DropdownOptions extends BaseOptions {\n\n readonly trigger = signal<'click' | 'hover' | 'contextMenu'>('hover')\n readonly disabled = signal(false);\n readonly placement = signal<'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight'>('bottomLeft');\n\n readonly menu = signal<any>(undefined);\n readonly child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { Base, DynamicDirective, EventHandlerOptions } from 'ngx-axis-appforge/core';\nimport { DropdownOptions } from './dropdown.options';\nimport { NzContextMenuService, NzDropdownModule } from 'ng-zorro-antd/dropdown';\nimport { Observable, of } from 'rxjs';\n\n@Component({\n selector: 'axis-dropdown',\n imports: [NzDropdownModule, DynamicDirective],\n templateUrl: './dropdown.html',\n styleUrl: './dropdown.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Dropdown extends Base<DropdownOptions> {\n\n constructor(private contextMenu: NzContextMenuService) {\n super();\n }\n\n override options: DropdownOptions = new DropdownOptions();\n\n readonly visible = model(false);\n\n onContextMenu(event: MouseEvent, menu: any): void {\n if (this.options.trigger() === 'contextMenu') {\n this.contextMenu.create(event, menu);\n event.preventDefault();\n }\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 \"closeDropdown\":\n this.visible.set(false);\n return of(true);\n }\n return undefined;\n }\n\n}\n","@if (options.trigger() == \"contextMenu\") {\n<div (contextmenu)=\"onContextMenu($event, menu)\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}@else{\n<div nz-dropdown [nzDropdownMenu]=\"menu\" [nzDisabled]=\"options.disabled()\" [nzPlacement]=\"options.placement()\"\n [nzTrigger]=\"options.trigger()=='click'?'click':'hover'\" [nzClickHide]=\"false\" [(nzVisible)]=\"visible\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ng-container [axisDynamic]=\"options.menu()\"></ng-container>\n</nz-dropdown-menu>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dropdown';\n"],"names":[],"mappings":";;;;;;;AAGM,MAAO,eAAgB,SAAQ,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dropdown.mjs","sources":["../../../axis-components/dropdown/dropdown.options.ts","../../../axis-components/dropdown/dropdown.ts","../../../axis-components/dropdown/dropdown.html","../../../axis-components/dropdown/ngx-axis-appforge-axis-components-dropdown.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class DropdownOptions extends BaseOptions {\n\n readonly trigger = signal<'click' | 'hover' | 'contextMenu'>('hover')\n readonly disabled = signal(false);\n readonly placement = signal<'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight'>('bottomLeft');\n\n readonly menu = signal<any>(undefined);\n readonly child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { Base, DynamicDirective, EventHandlerOptions } from 'ngx-axis-appforge/core';\nimport { DropdownOptions } from './dropdown.options';\nimport { NzContextMenuService, NzDropdownModule } from 'ng-zorro-antd/dropdown';\nimport { Observable, of } from 'rxjs';\n\n@Component({\n selector: 'axis-dropdown',\n imports: [NzDropdownModule, DynamicDirective],\n templateUrl: './dropdown.html',\n styleUrl: './dropdown.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Dropdown extends Base<DropdownOptions> {\n\n constructor(private contextMenu: NzContextMenuService) {\n super();\n }\n\n override options: DropdownOptions = new DropdownOptions();\n\n readonly visible = model(false);\n\n onContextMenu(event: MouseEvent, menu: any): void {\n if (this.options.trigger() === 'contextMenu') {\n this.contextMenu.create(event, menu);\n event.preventDefault();\n }\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 \"closeDropdown\":\n this.visible.set(false);\n return of(true);\n }\n return undefined;\n }\n\n}\n","@if (options.trigger() == \"contextMenu\") {\n<div (contextmenu)=\"onContextMenu($event, menu)\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}@else{\n<div nz-dropdown [nzDropdownMenu]=\"menu\" [nzDisabled]=\"options.disabled()\" [nzPlacement]=\"options.placement()\"\n [nzTrigger]=\"options.trigger()=='click'?'click':'hover'\" [nzClickHide]=\"false\" [(nzVisible)]=\"visible\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</div>\n}\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ng-container [axisDynamic]=\"options.menu()\"></ng-container>\n</nz-dropdown-menu>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dropdown';\n"],"names":[],"mappings":";;;;;;;AAGM,MAAO,eAAgB,SAAQ,WAAW,CAAA;IAEnC,OAAO,GAAG,MAAM,CAAoC,OAAO;gFAAC;IAC5D,QAAQ,GAAG,MAAM,CAAC,KAAK;iFAAC;IACxB,SAAS,GAAG,MAAM,CAAuF,YAAY;kFAAC;IAEtH,IAAI,GAAG,MAAM,CAAM,SAAS;6EAAC;IAC7B,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;AAC1C;;ACEK,MAAO,QAAS,SAAQ,IAAqB,CAAA;AAE7B,IAAA,WAAA;AAApB,IAAA,WAAA,CAAoB,WAAiC,EAAA;AACnD,QAAA,KAAK,EAAE;QADW,IAAA,CAAA,WAAW,GAAX,WAAW;IAE/B;AAES,IAAA,OAAO,GAAoB,IAAI,eAAe,EAAE;IAEhD,OAAO,GAAG,KAAK,CAAC,KAAK;gFAAC;IAE/B,aAAa,CAAC,KAAiB,EAAE,IAAS,EAAA;QACxC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,aAAa,EAAE;YAC5C,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;YACpC,KAAK,CAAC,cAAc,EAAE;QACxB;IACF;AAES,IAAA,QAAQ,CAAC,CAA2B,EAAA;QAC3C,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC/B,IAAI,GAAG,EAAE;YACP;QACF;AACA,QAAA,QAAQ,CAAC,CAAC,IA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OAAA,EAChB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAG5B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wnBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEXjD;;AAEG;;;;"}
|
|
@@ -40,10 +40,10 @@ class Setting extends FunFieldValueBase {
|
|
|
40
40
|
defaultValue: undefined
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Setting, isStandalone: true, selector: "axis-design-dynamic-container-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u6570\u636E\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u6570\u636E\u540D]:\u6570\u636E}\">\n \u6570\u636E\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u51FD\u6570\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u51FD\u6570\u540D]:{func:\u51FD\u6570,type:\u7C7B\u578B\u7B7E\u540D}}\">\n \u51FD\u6570\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n HTTP\u4E0A\u4E0B\u6587\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6587\u4EF6\u57FA\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[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", "nzXXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter", "nzWrap"], 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", inputs: ["nzLayout"], 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", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{ selector: 'axis-design-dynamic-container-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger, NzInputModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u7EC4\u4EF6\u914D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u6570\u636E\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u6570\u636E\u540D]:\u6570\u636E}\">\n \u6570\u636E\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"\u6CE8\u5165\u7684\u51FD\u6570\u5BF9\u8C61\uFF0C\u683C\u5F0F\uFF1A{[\u51FD\u6570\u540D]:{func:\u51FD\u6570,type:\u7C7B\u578B\u7B7E\u540D}}\">\n \u51FD\u6570\u6CE8\u5165\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n HTTP\u4E0A\u4E0B\u6587\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6587\u4EF6\u57FA\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
49
49
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container-design.mjs","sources":["../../../axis-components/dynamic-container/design/setting/setting.ts","../../../axis-components/dynamic-container/design/setting/setting.html","../../../axis-components/dynamic-container/design/config.ts","../../../axis-components/dynamic-container/design/ngx-axis-appforge-axis-components-dynamic-container-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-container-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger, NzInputModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n injectData: [],\n injectFunc: [],\n httpContextData: [],\n fileBaseUrl: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\n defaultValue: undefined\n },\n injectData: {\n defaultValue: {}\n },\n injectFunc: {\n defaultValue: undefined\n },\n httpContextData: {\n defaultValue: undefined\n },\n fileBaseUrl: {\n defaultValue: undefined\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 组件配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"注入的数据对象,格式:{[数据名]:数据}\">\n 数据注入\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"注入的函数对象,格式:{[函数名]:{func:函数,type:类型签名}}\">\n 函数注入\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n HTTP上下文\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 文件基地址\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态容器\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态容器\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"container\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE,EAAE;AAChB,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAA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,CAAA;kBAPnB,SAAS;+BACE,uCAAuC,EAAA,OAAA,EACxC,CAAC,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,aAAa,CAAC,EAAA,eAAA,EAG1J,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qpHAAA,EAAA;;;AET1C,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container-design.mjs","sources":["../../../axis-components/dynamic-container/design/setting/setting.ts","../../../axis-components/dynamic-container/design/setting/setting.html","../../../axis-components/dynamic-container/design/config.ts","../../../axis-components/dynamic-container/design/ngx-axis-appforge-axis-components-dynamic-container-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-container-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, DynamicDirective, FunField, ValueDesignSetting, InputTrigger, NzInputModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n injectData: [],\n injectFunc: [],\n httpContextData: [],\n fileBaseUrl: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\n defaultValue: undefined\n },\n injectData: {\n defaultValue: {}\n },\n injectFunc: {\n defaultValue: undefined\n },\n httpContextData: {\n defaultValue: undefined\n },\n fileBaseUrl: {\n defaultValue: undefined\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 组件配置\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"child\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"注入的数据对象,格式:{[数据名]:数据}\">\n 数据注入\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzTooltipTitle=\"注入的函数对象,格式:{[函数名]:{func:函数,type:类型签名}}\">\n 函数注入\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"injectFunc\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n HTTP上下文\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"httpContextData\">\n <ng-container ngModel [ngModelOptions]=\"{standalone:true}\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 文件基地址\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileBaseUrl\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态容器\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态容器\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"container\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE,EAAE;AAChB,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,WAAW,EAAE;AACX,YAAA,YAAY,EAAE;AACf,SAAA;KACF;uGA9BU,OAAO,EAAA,IAAA,EAAA,IAA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,EAAA,QAAA,EAAA,qpHAAA,EAAA;;;AET1C,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
@@ -7,11 +7,16 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
7
7
|
import { toObservable } from '@angular/core/rxjs-interop';
|
|
8
8
|
|
|
9
9
|
class DynamicContainerOptions extends ValueAccessOptions {
|
|
10
|
-
injectData = signal({},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
injectData = signal({}, /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "injectData" }] : /* istanbul ignore next */ []));
|
|
12
|
+
injectFunc = signal(undefined, /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "injectFunc" }] : /* istanbul ignore next */ []));
|
|
14
|
+
httpContextData = signal(undefined, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "httpContextData" }] : /* istanbul ignore next */ []));
|
|
16
|
+
fileBaseUrl = signal("", /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "fileBaseUrl" }] : /* istanbul ignore next */ []));
|
|
18
|
+
child = signal(undefined, /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "child" }] : /* istanbul ignore next */ []));
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
class DynamicContainer extends ValueAccess {
|
|
@@ -68,7 +73,8 @@ class DynamicContainer extends ValueAccess {
|
|
|
68
73
|
else {
|
|
69
74
|
return this.funcByInject ?? {};
|
|
70
75
|
}
|
|
71
|
-
},
|
|
76
|
+
}, /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "injectFunc" }] : /* istanbul ignore next */ []));
|
|
72
78
|
injectFuncSubject = new BehaviorSubject({});
|
|
73
79
|
injectFuncSub;
|
|
74
80
|
httpContextDataSubject = new BehaviorSubject(undefined);
|
|
@@ -81,8 +87,8 @@ class DynamicContainer extends ValueAccess {
|
|
|
81
87
|
this.httpContextDataSub?.unsubscribe();
|
|
82
88
|
this.fileBaseUrlSub?.unsubscribe();
|
|
83
89
|
}
|
|
84
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: DynamicContainer, isStandalone: true, selector: "axis-dynamic-container", providers: [
|
|
86
92
|
{
|
|
87
93
|
provide: AXIS_INJECT_DATA_TOKEN,
|
|
88
94
|
useFactory: (dc) => {
|
|
@@ -110,7 +116,7 @@ class DynamicContainer extends ValueAccess {
|
|
|
110
116
|
},
|
|
111
117
|
], usesInheritance: true, ngImport: i0, template: "<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
112
118
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicContainer, decorators: [{
|
|
114
120
|
type: Component,
|
|
115
121
|
args: [{ selector: 'axis-dynamic-container', imports: [DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
116
122
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container.mjs","sources":["../../../axis-components/dynamic-container/dynamic-container.options.ts","../../../axis-components/dynamic-container/dynamic-container.ts","../../../axis-components/dynamic-container/dynamic-container.html","../../../axis-components/dynamic-container/ngx-axis-appforge-axis-components-dynamic-container.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicContainerOptions extends ValueAccessOptions {\n\n readonly injectData = signal<any>({});\n readonly injectFunc = signal<{ [name: string]: (Function | { func: Function, type: string }) } | undefined>(undefined);\n readonly httpContextData = signal<any>(undefined);\n readonly fileBaseUrl = signal<string>(\"\");\n\n readonly child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect, inject } from '@angular/core';\nimport { DynamicContainerOptions } from './dynamic-container.options';\nimport { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject, Subscription } from 'rxjs';\nimport { toObservable } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'axis-dynamic-container',\n imports: [DynamicDirective, FormsModule],\n templateUrl: './dynamic-container.html',\n styleUrl: './dynamic-container.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXIS_INJECT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return toObservable(dc.options.injectData);\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_INJECT_FUNC_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.injectFunc();\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_HTTP_CONTEXT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.httpContextDataSubject;\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_FILE_BASE_URL_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.fileBaseUrlSubject;\n },\n deps: [DynamicContainer]\n },\n ]\n})\nexport class DynamicContainer extends ValueAccess<DynamicContainerOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.injectFuncSub?.unsubscribe();\n let func: BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }> | { [name: string]: (Function | { func: Function, type: string }) } | null = this.injectFunc() ?? null;\n if (func instanceof BehaviorSubject) {\n this.injectFuncSub = func.subscribe(this.injectFuncSubject);\n } else {\n this.injectFuncSubject.next(func ?? {});\n }\n });\n let injectHttpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });\n effect(() => {\n this.httpContextDataSub?.unsubscribe();\n let data: BehaviorSubject<any> | any = this.options.httpContextData();\n if (!data) {\n data = injectHttpContextData;\n }\n if (data instanceof BehaviorSubject) {\n this.httpContextDataSub = data.subscribe(this.httpContextDataSubject);\n } else {\n this.httpContextDataSubject.next(data);\n }\n });\n let injectUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? \"\";\n effect(() => {\n this.fileBaseUrlSub?.unsubscribe();\n let url: string | BehaviorSubject<string> = this.options.fileBaseUrl() ?? \"\";\n if (!url) {\n url = injectUrl;\n }\n if (url instanceof BehaviorSubject) {\n this.fileBaseUrlSub = url.subscribe(this.fileBaseUrlSubject);\n } else {\n this.fileBaseUrlSubject.next(url);\n }\n });\n }\n\n override options: DynamicContainerOptions = new DynamicContainerOptions();\n\n private funcByInject = inject(AXIS_INJECT_FUNC_TOKEN, { optional: true, skipSelf: true });\n readonly injectFunc = computed(() => {\n if (this.options.injectFunc()) {\n return this.options.injectFunc();\n }\n if (this.funcByInject instanceof BehaviorSubject) {\n return this.funcByInject.value;\n } else {\n return this.funcByInject ?? {};\n }\n });\n readonly injectFuncSubject = new BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }>({});\n injectFuncSub?: Subscription;\n\n readonly httpContextDataSubject = new BehaviorSubject<any>(undefined);\n httpContextDataSub?: Subscription;\n\n readonly fileBaseUrlSubject = new BehaviorSubject<string>(\"\");\n fileBaseUrlSub?: Subscription;\n\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.injectFuncSub?.unsubscribe();\n this.httpContextDataSub?.unsubscribe();\n this.fileBaseUrlSub?.unsubscribe();\n }\n\n}\n","<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>","/**\n *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SAAA,EACpC;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;4BAC5C,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;AACnC,gCAAA,OAAO,EAAE,CAAC,UAAU,EAAE;4BACxB,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,4BAA4B;AACrC,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,EAAE,CAAC,sBAAsB;4BAClC,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,wBAAwB;AACjC,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,EAAE,CAAC,kBAAkB;4BAC9B,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;AACP,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,yJAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEvCH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-container.mjs","sources":["../../../axis-components/dynamic-container/dynamic-container.options.ts","../../../axis-components/dynamic-container/dynamic-container.ts","../../../axis-components/dynamic-container/dynamic-container.html","../../../axis-components/dynamic-container/ngx-axis-appforge-axis-components-dynamic-container.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicContainerOptions extends ValueAccessOptions {\n\n readonly injectData = signal<any>({});\n readonly injectFunc = signal<{ [name: string]: (Function | { func: Function, type: string }) } | undefined>(undefined);\n readonly httpContextData = signal<any>(undefined);\n readonly fileBaseUrl = signal<string>(\"\");\n\n readonly child = signal<any>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect, inject } from '@angular/core';\nimport { DynamicContainerOptions } from './dynamic-container.options';\nimport { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject, Subscription } from 'rxjs';\nimport { toObservable } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'axis-dynamic-container',\n imports: [DynamicDirective, FormsModule],\n templateUrl: './dynamic-container.html',\n styleUrl: './dynamic-container.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXIS_INJECT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return toObservable(dc.options.injectData);\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_INJECT_FUNC_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.injectFunc();\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_HTTP_CONTEXT_DATA_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.httpContextDataSubject;\n },\n deps: [DynamicContainer]\n }, {\n provide: AXIS_FILE_BASE_URL_TOKEN,\n useFactory: (dc: DynamicContainer) => {\n return dc.fileBaseUrlSubject;\n },\n deps: [DynamicContainer]\n },\n ]\n})\nexport class DynamicContainer extends ValueAccess<DynamicContainerOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.injectFuncSub?.unsubscribe();\n let func: BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }> | { [name: string]: (Function | { func: Function, type: string }) } | null = this.injectFunc() ?? null;\n if (func instanceof BehaviorSubject) {\n this.injectFuncSub = func.subscribe(this.injectFuncSubject);\n } else {\n this.injectFuncSubject.next(func ?? {});\n }\n });\n let injectHttpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true, skipSelf: true });\n effect(() => {\n this.httpContextDataSub?.unsubscribe();\n let data: BehaviorSubject<any> | any = this.options.httpContextData();\n if (!data) {\n data = injectHttpContextData;\n }\n if (data instanceof BehaviorSubject) {\n this.httpContextDataSub = data.subscribe(this.httpContextDataSubject);\n } else {\n this.httpContextDataSubject.next(data);\n }\n });\n let injectUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true, skipSelf: true }) ?? \"\";\n effect(() => {\n this.fileBaseUrlSub?.unsubscribe();\n let url: string | BehaviorSubject<string> = this.options.fileBaseUrl() ?? \"\";\n if (!url) {\n url = injectUrl;\n }\n if (url instanceof BehaviorSubject) {\n this.fileBaseUrlSub = url.subscribe(this.fileBaseUrlSubject);\n } else {\n this.fileBaseUrlSubject.next(url);\n }\n });\n }\n\n override options: DynamicContainerOptions = new DynamicContainerOptions();\n\n private funcByInject = inject(AXIS_INJECT_FUNC_TOKEN, { optional: true, skipSelf: true });\n readonly injectFunc = computed(() => {\n if (this.options.injectFunc()) {\n return this.options.injectFunc();\n }\n if (this.funcByInject instanceof BehaviorSubject) {\n return this.funcByInject.value;\n } else {\n return this.funcByInject ?? {};\n }\n });\n readonly injectFuncSubject = new BehaviorSubject<{ [name: string]: (Function | { func: Function, type: string }) }>({});\n injectFuncSub?: Subscription;\n\n readonly httpContextDataSubject = new BehaviorSubject<any>(undefined);\n httpContextDataSub?: Subscription;\n\n readonly fileBaseUrlSubject = new BehaviorSubject<string>(\"\");\n fileBaseUrlSub?: Subscription;\n\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.injectFuncSub?.unsubscribe();\n this.httpContextDataSub?.unsubscribe();\n this.fileBaseUrlSub?.unsubscribe();\n }\n\n}\n","<ng-container [axisDynamic]=\"options.child()\" [standalone]=\"true\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange?.($event)\"></ng-container>","/**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AA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;4BAC5C,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;AACnC,gCAAA,OAAO,EAAE,CAAC,UAAU,EAAE;4BACxB,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,4BAA4B;AACrC,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,EAAE,CAAC,sBAAsB;4BAClC,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;yBACP,EAAE;AACD,4BAAA,OAAO,EAAE,wBAAwB;AACjC,4BAAA,UAAU,EAAE,CAAC,EAAoB,KAAI;gCACnC,OAAO,EAAE,CAAC,kBAAkB;4BAC9B,CAAC;AACD,4BAAA,IAAI,EAAE,CAAA,gBAAA;AACP,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,yJAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEvCH;;AAEG;;;;"}
|
|
@@ -21,10 +21,10 @@ class Setting extends FunFieldValueBase {
|
|
|
21
21
|
defaultValue: undefined
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Setting, isStandalone: true, selector: "axis-design-dynamic-value-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap", "nzSize", "nzVariant", "nzRequiredMark"], exportAs: ["nzForm"] }, { 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: i3.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: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
29
|
args: [{ selector: 'axis-design-dynamic-value-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, ValueDesignSetting, InputTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
30
30
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-value-design.mjs","sources":["../../../axis-components/dynamic-value/design/setting/setting.ts","../../../axis-components/dynamic-value/design/setting/setting.html","../../../axis-components/dynamic-value/design/config.ts","../../../axis-components/dynamic-value/design/ngx-axis-appforge-axis-components-dynamic-value-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-value-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, ValueDesignSetting, InputTrigger],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\n defaultValue: undefined\n }\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态值\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态值\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"child\",\n icon: \"container\",\n children: [],\n }),\n next: [\n {\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId,\n }\n ]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;AAaM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE,EAAE;AACV,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AACf;KACF;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-value-design.mjs","sources":["../../../axis-components/dynamic-value/design/setting/setting.ts","../../../axis-components/dynamic-value/design/setting/setting.html","../../../axis-components/dynamic-value/design/config.ts","../../../axis-components/dynamic-value/design/ngx-axis-appforge-axis-components-dynamic-value-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-dynamic-value-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, ValueDesignSetting, InputTrigger],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n child: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n child: {\n defaultValue: undefined\n }\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"动态值\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"动态值\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"child\",\n icon: \"container\",\n children: [],\n }),\n next: [\n {\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId,\n }\n ]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;AAaM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,KAAK,EAAE,EAAE;AACV,KAAA,CAAC;AAEi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BAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,OAAO,EAAE,QAAQ,CAAC,aAAa;AAC/B,gBAAA,gBAAgB,EAAE,OAAO;AACzB,gBAAA,IAAI,EAAE,WAAW;AACjB,gBAAA,QAAQ,EAAE,EAAE;aACf,CAAC;AACF,YAAA,IAAI,EAAE;AACF,gBAAA;AACI,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,YAAY,EAAE,QAAQ,CAAC,aAAa;AACpC,oBAAA,aAAa,EAAE,OAAO;oBACtB,OAAO,EAAE,QAAQ,CAAC,OAAO;AAC5B;AACJ;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;ACzCL;;AAEG;;;;"}
|
|
@@ -6,17 +6,20 @@ import { FormsModule } from '@angular/forms';
|
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
|
|
8
8
|
class DynamicValueOptions extends ValueAccessOptions {
|
|
9
|
-
child = signal(undefined,
|
|
10
|
-
|
|
9
|
+
child = signal(undefined, /* @ts-ignore */
|
|
10
|
+
...(ngDevMode ? [{ debugName: "child" }] : /* istanbul ignore next */ []));
|
|
11
|
+
initValue = signal({ funMode: false }, /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "initValue" }] : /* istanbul ignore next */ []));
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
class DynamicValue extends ValueAccess {
|
|
14
|
-
value = model({ funMode: false },
|
|
16
|
+
value = model({ funMode: false }, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
15
18
|
options = new DynamicValueOptions();
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicValue, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: DynamicValue, isStandalone: true, selector: "axis-dynamic-value", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<axis-fun-field [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\">\n <ng-container [axisDynamic]=\"options.child()\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n</axis-fun-field>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18
21
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicValue, decorators: [{
|
|
20
23
|
type: Component,
|
|
21
24
|
args: [{ selector: 'axis-dynamic-value', imports: [DynamicDirective, FormsModule, FunField, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<axis-fun-field [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\">\n <ng-container [axisDynamic]=\"options.child()\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n</axis-fun-field>", styles: [":host{display:block}\n"] }]
|
|
22
25
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-value.mjs","sources":["../../../axis-components/dynamic-value/dynamic-value.options.ts","../../../axis-components/dynamic-value/dynamic-value.ts","../../../axis-components/dynamic-value/dynamic-value.html","../../../axis-components/dynamic-value/ngx-axis-appforge-axis-components-dynamic-value.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicValueOptions extends ValueAccessOptions {\n child = signal<any>(undefined);\n override initValue = signal<any>({ funMode: false });\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { DynamicValueOptions } from './dynamic-value.options';\nimport { DynamicDirective, FunField, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'axis-dynamic-value',\n imports: [DynamicDirective, FormsModule, FunField, CommonModule],\n templateUrl: './dynamic-value.html',\n styleUrl: './dynamic-value.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DynamicValue extends ValueAccess<DynamicValueOptions> {\n\n override value = model<any>({ funMode: false });\n override options: DynamicValueOptions = new DynamicValueOptions();\n\n}\n","<axis-fun-field [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\">\n <ng-container [axisDynamic]=\"options.child()\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n</axis-fun-field>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dynamic-value';\n"],"names":[],"mappings":";;;;;;;AAGM,MAAO,mBAAoB,SAAQ,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-dynamic-value.mjs","sources":["../../../axis-components/dynamic-value/dynamic-value.options.ts","../../../axis-components/dynamic-value/dynamic-value.ts","../../../axis-components/dynamic-value/dynamic-value.html","../../../axis-components/dynamic-value/ngx-axis-appforge-axis-components-dynamic-value.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class DynamicValueOptions extends ValueAccessOptions {\n child = signal<any>(undefined);\n override initValue = signal<any>({ funMode: false });\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { DynamicValueOptions } from './dynamic-value.options';\nimport { DynamicDirective, FunField, ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'axis-dynamic-value',\n imports: [DynamicDirective, FormsModule, FunField, CommonModule],\n templateUrl: './dynamic-value.html',\n styleUrl: './dynamic-value.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DynamicValue extends ValueAccess<DynamicValueOptions> {\n\n override value = model<any>({ funMode: false });\n override options: DynamicValueOptions = new DynamicValueOptions();\n\n}\n","<axis-fun-field [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\">\n <ng-container [axisDynamic]=\"options.child()\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n</axis-fun-field>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dynamic-value';\n"],"names":[],"mappings":";;;;;;;AAGM,MAAO,mBAAoB,SAAQ,kBAAkB,CAAA;IACvD,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;AACrB,IAAA,SAAS,GAAG,MAAM,CAAM,EAAE,OAAO,EAAE,KAAK,EAAE;kFAAC;AACvD;;ACOK,MAAO,YAAa,SAAQ,WAAgC,CAAA;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAM,EAAE,OAAO,EAAE,KAAK,EAAE;8EAAC;AACtC,IAAA,OAAO,GAAwB,IAAI,mBAAmB,EAAE;uGAHtD,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbzB,sNAEiB,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IA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