ngx-axis-appforge 0.0.0
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/.editorconfig +17 -0
- package/README.md +111 -0
- package/angular.json +40 -0
- package/axis-components/badge/badge.css +3 -0
- package/axis-components/badge/badge.html +20 -0
- package/axis-components/badge/badge.options.ts +23 -0
- package/axis-components/badge/badge.ts +17 -0
- package/axis-components/badge/design/config.ts +52 -0
- package/axis-components/badge/design/ng-package.json +5 -0
- package/axis-components/badge/design/setting/setting.css +0 -0
- package/axis-components/badge/design/setting/setting.html +181 -0
- package/axis-components/badge/design/setting/setting.ts +126 -0
- package/axis-components/badge/ng-package.json +5 -0
- package/axis-components/button/button.css +3 -0
- package/axis-components/button/button.html +13 -0
- package/axis-components/button/button.options.ts +17 -0
- package/axis-components/button/button.ts +56 -0
- package/axis-components/button/design/config.ts +30 -0
- package/axis-components/button/design/ng-package.json +5 -0
- package/axis-components/button/design/setting/setting.css +0 -0
- package/axis-components/button/design/setting/setting.html +151 -0
- package/axis-components/button/design/setting/setting.ts +76 -0
- package/axis-components/button/ng-package.json +5 -0
- package/axis-components/cmp-map.ts +52 -0
- package/axis-components/cmplib.ts +9 -0
- package/axis-components/desc/desc.css +8 -0
- package/axis-components/desc/desc.html +19 -0
- package/axis-components/desc/desc.options.ts +24 -0
- package/axis-components/desc/desc.ts +29 -0
- package/axis-components/desc/design/config.ts +113 -0
- package/axis-components/desc/design/desc-item-setting/desc-item-setting.css +0 -0
- package/axis-components/desc/design/desc-item-setting/desc-item-setting.html +47 -0
- package/axis-components/desc/design/desc-item-setting/desc-item-setting.ts +40 -0
- package/axis-components/desc/design/desc-items-menu/desc-items-menu.css +0 -0
- package/axis-components/desc/design/desc-items-menu/desc-items-menu.html +9 -0
- package/axis-components/desc/design/desc-items-menu/desc-items-menu.ts +23 -0
- package/axis-components/desc/design/desc-setting/desc-setting.css +0 -0
- package/axis-components/desc/design/desc-setting/desc-setting.html +76 -0
- package/axis-components/desc/design/desc-setting/desc-setting.ts +51 -0
- package/axis-components/desc/design/ng-package.json +5 -0
- package/axis-components/desc/ng-package.json +5 -0
- package/axis-components/design/cmplib/cmplib.css +5 -0
- package/axis-components/design/cmplib/cmplib.html +52 -0
- package/axis-components/design/cmplib/cmplib.ts +96 -0
- package/axis-components/design/design/config.ts +29 -0
- package/axis-components/design/design/ng-package.json +5 -0
- package/axis-components/design/design/setting/setting.css +0 -0
- package/axis-components/design/design/setting/setting.html +33 -0
- package/axis-components/design/design/setting/setting.ts +33 -0
- package/axis-components/design/design.css +15 -0
- package/axis-components/design/design.html +51 -0
- package/axis-components/design/design.options.ts +9 -0
- package/axis-components/design/design.ts +509 -0
- package/axis-components/design/ng-package.json +5 -0
- package/axis-components/design/preview/drag.service.ts +148 -0
- package/axis-components/design/preview/drop-handler.ts +56 -0
- package/axis-components/design/preview/preview.css +3 -0
- package/axis-components/design/preview/preview.html +1 -0
- package/axis-components/design/preview/preview.ts +250 -0
- package/axis-components/design/preview/select.service.ts +140 -0
- package/axis-components/design/shortcut-key.ts +160 -0
- package/axis-components/design/toolbar/toolbar.css +24 -0
- package/axis-components/design/toolbar/toolbar.html +96 -0
- package/axis-components/design/toolbar/toolbar.ts +65 -0
- package/axis-components/design/tree/drag-drop.ts +125 -0
- package/axis-components/design/tree/tree.css +30 -0
- package/axis-components/design/tree/tree.html +49 -0
- package/axis-components/design/tree/tree.ts +292 -0
- package/axis-components/dynamic-container/design/config.ts +30 -0
- package/axis-components/dynamic-container/design/ng-package.json +5 -0
- package/axis-components/dynamic-container/design/setting/setting.css +0 -0
- package/axis-components/dynamic-container/design/setting/setting.html +20 -0
- package/axis-components/dynamic-container/design/setting/setting.ts +30 -0
- package/axis-components/dynamic-container/dynamic-container.css +3 -0
- package/axis-components/dynamic-container/dynamic-container.html +2 -0
- package/axis-components/dynamic-container/dynamic-container.options.ts +6 -0
- package/axis-components/dynamic-container/dynamic-container.ts +17 -0
- package/axis-components/dynamic-container/ng-package.json +5 -0
- package/axis-components/editor/editor.css +47 -0
- package/axis-components/editor/editor.html +10 -0
- package/axis-components/editor/editor.options.ts +10 -0
- package/axis-components/editor/editor.ts +86 -0
- package/axis-components/editor/ng-package.json +5 -0
- package/axis-components/examples/examples/badge.ts +17 -0
- package/axis-components/examples/examples/button.ts +38 -0
- package/axis-components/examples/examples/desc.ts +31 -0
- package/axis-components/examples/examples/design.ts +15 -0
- package/axis-components/examples/examples/dynamic-container.ts +21 -0
- package/axis-components/examples/examples/flex.ts +18 -0
- package/axis-components/examples/examples/form-item.ts +39 -0
- package/axis-components/examples/examples/form.ts +315 -0
- package/axis-components/examples/examples/icon.ts +16 -0
- package/axis-components/examples/examples/image.ts +15 -0
- package/axis-components/examples/examples/input-component.ts +15 -0
- package/axis-components/examples/examples/input-icon.ts +15 -0
- package/axis-components/examples/examples/input-json.ts +15 -0
- package/axis-components/examples/examples/input-number.ts +15 -0
- package/axis-components/examples/examples/input.ts +15 -0
- package/axis-components/examples/examples/modal.ts +15 -0
- package/axis-components/examples/examples/scope.ts +17 -0
- package/axis-components/examples/examples/single-selector.ts +25 -0
- package/axis-components/examples/examples/splitter.ts +36 -0
- package/axis-components/examples/examples/table.ts +126 -0
- package/axis-components/examples/examples/text.ts +15 -0
- package/axis-components/examples/examples/textarea.ts +15 -0
- package/axis-components/examples/examples/tree-selector.ts +35 -0
- package/axis-components/examples/examples/upload.ts +15 -0
- package/axis-components/examples/examples.ts +73 -0
- package/axis-components/flex/design/config.ts +49 -0
- package/axis-components/flex/design/ng-package.json +5 -0
- package/axis-components/flex/design/setting/setting.css +0 -0
- package/axis-components/flex/design/setting/setting.html +72 -0
- package/axis-components/flex/design/setting/setting.ts +43 -0
- package/axis-components/flex/flex.css +5 -0
- package/axis-components/flex/flex.html +6 -0
- package/axis-components/flex/flex.options.ts +12 -0
- package/axis-components/flex/flex.ts +15 -0
- package/axis-components/flex/ng-package.json +5 -0
- package/axis-components/form/design/config.ts +71 -0
- package/axis-components/form/design/ng-package.json +5 -0
- package/axis-components/form/design/setting/setting.css +0 -0
- package/axis-components/form/design/setting/setting.html +21 -0
- package/axis-components/form/design/setting/setting.ts +31 -0
- package/axis-components/form/form.css +3 -0
- package/axis-components/form/form.html +3 -0
- package/axis-components/form/form.options.ts +9 -0
- package/axis-components/form/form.ts +121 -0
- package/axis-components/form/ng-package.json +5 -0
- package/axis-components/form-item/design/config.ts +43 -0
- package/axis-components/form-item/design/ng-package.json +5 -0
- package/axis-components/form-item/design/setting/input-validator/input-validator.css +8 -0
- package/axis-components/form-item/design/setting/input-validator/input-validator.html +140 -0
- package/axis-components/form-item/design/setting/input-validator/input-validator.ts +158 -0
- package/axis-components/form-item/design/setting/setting.css +0 -0
- package/axis-components/form-item/design/setting/setting.html +39 -0
- package/axis-components/form-item/design/setting/setting.ts +40 -0
- package/axis-components/form-item/form-item.css +4 -0
- package/axis-components/form-item/form-item.html +16 -0
- package/axis-components/form-item/form-item.options.ts +12 -0
- package/axis-components/form-item/form-item.ts +128 -0
- package/axis-components/form-item/ng-package.json +5 -0
- package/axis-components/icon/design/config.ts +29 -0
- package/axis-components/icon/design/ng-package.json +5 -0
- package/axis-components/icon/design/setting/setting.css +0 -0
- package/axis-components/icon/design/setting/setting.html +67 -0
- package/axis-components/icon/design/setting/setting.ts +48 -0
- package/axis-components/icon/icon.css +0 -0
- package/axis-components/icon/icon.html +7 -0
- package/axis-components/icon/icon.options.ts +10 -0
- package/axis-components/icon/icon.ts +17 -0
- package/axis-components/icon/ng-package.json +5 -0
- package/axis-components/image/design/config.ts +30 -0
- package/axis-components/image/design/ng-package.json +5 -0
- package/axis-components/image/design/setting/setting.css +0 -0
- package/axis-components/image/design/setting/setting.html +42 -0
- package/axis-components/image/design/setting/setting.ts +37 -0
- package/axis-components/image/image.css +58 -0
- package/axis-components/image/image.html +14 -0
- package/axis-components/image/image.options.ts +8 -0
- package/axis-components/image/image.ts +29 -0
- package/axis-components/image/ng-package.json +5 -0
- package/axis-components/input/design/config.ts +80 -0
- package/axis-components/input/design/ng-package.json +5 -0
- package/axis-components/input/design/setting/setting.css +0 -0
- package/axis-components/input/design/setting/setting.html +79 -0
- package/axis-components/input/design/setting/setting.ts +51 -0
- package/axis-components/input/input.css +4 -0
- package/axis-components/input/input.html +32 -0
- package/axis-components/input/input.options.ts +14 -0
- package/axis-components/input/input.ts +53 -0
- package/axis-components/input/ng-package.json +5 -0
- package/axis-components/input-component/design/config.ts +30 -0
- package/axis-components/input-component/design/ng-package.json +5 -0
- package/axis-components/input-component/design/setting/setting.css +0 -0
- package/axis-components/input-component/design/setting/setting.html +33 -0
- package/axis-components/input-component/design/setting/setting.ts +33 -0
- package/axis-components/input-component/input-component.css +4 -0
- package/axis-components/input-component/input-component.html +25 -0
- package/axis-components/input-component/input-component.options.ts +7 -0
- package/axis-components/input-component/input-component.ts +50 -0
- package/axis-components/input-component/ng-package.json +5 -0
- package/axis-components/input-icon/design/config.ts +30 -0
- package/axis-components/input-icon/design/ng-package.json +5 -0
- package/axis-components/input-icon/design/setting/setting.css +0 -0
- package/axis-components/input-icon/design/setting/setting.html +29 -0
- package/axis-components/input-icon/design/setting/setting.ts +33 -0
- package/axis-components/input-icon/input-icon.css +4 -0
- package/axis-components/input-icon/input-icon.html +70 -0
- package/axis-components/input-icon/input-icon.options.ts +7 -0
- package/axis-components/input-icon/input-icon.ts +51 -0
- package/axis-components/input-icon/ng-package.json +5 -0
- package/axis-components/input-json/design/config.ts +29 -0
- package/axis-components/input-json/design/ng-package.json +5 -0
- package/axis-components/input-json/design/setting/setting.css +0 -0
- package/axis-components/input-json/design/setting/setting.html +7 -0
- package/axis-components/input-json/design/setting/setting.ts +26 -0
- package/axis-components/input-json/input-json.css +4 -0
- package/axis-components/input-json/input-json.html +19 -0
- package/axis-components/input-json/input-json.ts +67 -0
- package/axis-components/input-json/ng-package.json +5 -0
- package/axis-components/input-number/design/config.ts +30 -0
- package/axis-components/input-number/design/ng-package.json +5 -0
- package/axis-components/input-number/design/setting/setting.css +0 -0
- package/axis-components/input-number/design/setting/setting.html +118 -0
- package/axis-components/input-number/design/setting/setting.ts +66 -0
- package/axis-components/input-number/input-number.css +22 -0
- package/axis-components/input-number/input-number.html +11 -0
- package/axis-components/input-number/input-number.options.ts +17 -0
- package/axis-components/input-number/input-number.ts +30 -0
- package/axis-components/input-number/ng-package.json +5 -0
- package/axis-components/modal/design/config.ts +50 -0
- package/axis-components/modal/design/ng-package.json +5 -0
- package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.css +0 -0
- package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.html +15 -0
- package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.ts +34 -0
- package/axis-components/modal/design/setting/setting.css +0 -0
- package/axis-components/modal/design/setting/setting.html +139 -0
- package/axis-components/modal/design/setting/setting.ts +92 -0
- package/axis-components/modal/modal.css +0 -0
- package/axis-components/modal/modal.html +7 -0
- package/axis-components/modal/modal.options.ts +20 -0
- package/axis-components/modal/modal.ts +57 -0
- package/axis-components/modal/ng-package.json +5 -0
- package/axis-components/ng-package.json +5 -0
- package/axis-components/scope/design/config.ts +59 -0
- package/axis-components/scope/design/ng-package.json +5 -0
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.css +28 -0
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.html +188 -0
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.ts +245 -0
- package/axis-components/scope/design/setting/setting.css +0 -0
- package/axis-components/scope/design/setting/setting.html +19 -0
- package/axis-components/scope/design/setting/setting.ts +30 -0
- package/axis-components/scope/ng-package.json +5 -0
- package/axis-components/scope/scope.css +6 -0
- package/axis-components/scope/scope.html +4 -0
- package/axis-components/scope/scope.options.ts +8 -0
- package/axis-components/scope/scope.ts +48 -0
- package/axis-components/single-selector/design/config.ts +30 -0
- package/axis-components/single-selector/design/ng-package.json +5 -0
- package/axis-components/single-selector/design/setting/setting.css +0 -0
- package/axis-components/single-selector/design/setting/setting.html +164 -0
- package/axis-components/single-selector/design/setting/setting.ts +80 -0
- package/axis-components/single-selector/ng-package.json +5 -0
- package/axis-components/single-selector/single-selector.css +8 -0
- package/axis-components/single-selector/single-selector.html +51 -0
- package/axis-components/single-selector/single-selector.options.ts +22 -0
- package/axis-components/single-selector/single-selector.ts +80 -0
- package/axis-components/splitter/design/config.ts +84 -0
- package/axis-components/splitter/design/ng-package.json +5 -0
- package/axis-components/splitter/design/splitter-menu/splitter-menu.css +0 -0
- package/axis-components/splitter/design/splitter-menu/splitter-menu.html +10 -0
- package/axis-components/splitter/design/splitter-menu/splitter-menu.ts +22 -0
- package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.css +0 -0
- package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.html +66 -0
- package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.ts +47 -0
- package/axis-components/splitter/design/splitter-setting/splitter-setting.css +0 -0
- package/axis-components/splitter/design/splitter-setting/splitter-setting.html +28 -0
- package/axis-components/splitter/design/splitter-setting/splitter-setting.ts +30 -0
- package/axis-components/splitter/ng-package.json +5 -0
- package/axis-components/splitter/splitter.css +7 -0
- package/axis-components/splitter/splitter.html +12 -0
- package/axis-components/splitter/splitter.options.ts +18 -0
- package/axis-components/splitter/splitter.ts +29 -0
- package/axis-components/table/design/config.ts +147 -0
- package/axis-components/table/design/ng-package.json +5 -0
- package/axis-components/table/design/table-field-setting/table-field-setting.css +0 -0
- package/axis-components/table/design/table-field-setting/table-field-setting.html +259 -0
- package/axis-components/table/design/table-field-setting/table-field-setting.ts +105 -0
- package/axis-components/table/design/table-fields-menu/table-fields-menu.css +0 -0
- package/axis-components/table/design/table-fields-menu/table-fields-menu.html +9 -0
- package/axis-components/table/design/table-fields-menu/table-fields-menu.ts +24 -0
- package/axis-components/table/design/table-setting/table-setting.css +0 -0
- package/axis-components/table/design/table-setting/table-setting.html +417 -0
- package/axis-components/table/design/table-setting/table-setting.ts +173 -0
- package/axis-components/table/expand.ts +12 -0
- package/axis-components/table/ng-package.json +5 -0
- package/axis-components/table/select.ts +66 -0
- package/axis-components/table/table-setter/table-setter.css +55 -0
- package/axis-components/table/table-setter/table-setter.html +38 -0
- package/axis-components/table/table-setter/table-setter.ts +121 -0
- package/axis-components/table/table.css +5 -0
- package/axis-components/table/table.html +191 -0
- package/axis-components/table/table.options.ts +72 -0
- package/axis-components/table/table.ts +204 -0
- package/axis-components/text/design/config.ts +30 -0
- package/axis-components/text/design/ng-package.json +5 -0
- package/axis-components/text/design/setting/setting.css +0 -0
- package/axis-components/text/design/setting/setting.html +84 -0
- package/axis-components/text/design/setting/setting.ts +54 -0
- package/axis-components/text/ng-package.json +5 -0
- package/axis-components/text/text.css +3 -0
- package/axis-components/text/text.html +17 -0
- package/axis-components/text/text.options.ts +10 -0
- package/axis-components/text/text.ts +54 -0
- package/axis-components/textarea/design/config.ts +30 -0
- package/axis-components/textarea/design/ng-package.json +5 -0
- package/axis-components/textarea/design/setting/setting.css +0 -0
- package/axis-components/textarea/design/setting/setting.html +76 -0
- package/axis-components/textarea/design/setting/setting.ts +55 -0
- package/axis-components/textarea/ng-package.json +5 -0
- package/axis-components/textarea/textarea.css +4 -0
- package/axis-components/textarea/textarea.html +11 -0
- package/axis-components/textarea/textarea.options.ts +13 -0
- package/axis-components/textarea/textarea.ts +49 -0
- package/axis-components/tree-selector/design/config.ts +55 -0
- package/axis-components/tree-selector/design/ng-package.json +5 -0
- package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.css +0 -0
- package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.html +9 -0
- package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.ts +26 -0
- package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.css +0 -0
- package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.html +80 -0
- package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.ts +58 -0
- package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.css +0 -0
- package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.html +235 -0
- package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.ts +87 -0
- package/axis-components/tree-selector/ng-package.json +5 -0
- package/axis-components/tree-selector/tree-selector.css +43 -0
- package/axis-components/tree-selector/tree-selector.html +65 -0
- package/axis-components/tree-selector/tree-selector.options.ts +50 -0
- package/axis-components/tree-selector/tree-selector.ts +252 -0
- package/axis-components/upload/design/config.ts +37 -0
- package/axis-components/upload/design/ng-package.json +5 -0
- package/axis-components/upload/design/setting/setting.css +0 -0
- package/axis-components/upload/design/setting/setting.html +288 -0
- package/axis-components/upload/design/setting/setting.ts +96 -0
- package/axis-components/upload/ng-package.json +5 -0
- package/axis-components/upload/upload.css +3 -0
- package/axis-components/upload/upload.html +36 -0
- package/axis-components/upload/upload.options.ts +29 -0
- package/axis-components/upload/upload.ts +130 -0
- package/axis-components-covers/badge.svg +1 -0
- package/axis-components-covers/button.svg +14 -0
- package/axis-components-covers/desc.svg +39 -0
- package/axis-components-covers/design.jpg +0 -0
- package/axis-components-covers/dynamic-container.svg +9 -0
- package/axis-components-covers/flex.svg +33 -0
- package/axis-components-covers/form-item.svg +22 -0
- package/axis-components-covers/form.svg +38 -0
- package/axis-components-covers/icon.svg +22 -0
- package/axis-components-covers/image.svg +13 -0
- package/axis-components-covers/input-component.svg +27 -0
- package/axis-components-covers/input-icon.svg +29 -0
- package/axis-components-covers/input-json.svg +29 -0
- package/axis-components-covers/input-number.svg +35 -0
- package/axis-components-covers/input.svg +21 -0
- package/axis-components-covers/modal.svg +23 -0
- package/axis-components-covers/scope.svg +9 -0
- package/axis-components-covers/single-selector.svg +20 -0
- package/axis-components-covers/splitter.svg +8 -0
- package/axis-components-covers/table.svg +27 -0
- package/axis-components-covers/text.svg +22 -0
- package/axis-components-covers/textarea.svg +9 -0
- package/axis-components-covers/tree-selector.svg +77 -0
- package/axis-components-covers/upload.svg +26 -0
- package/core/base/base-menu.ts +22 -0
- package/core/base/base.ts +143 -0
- package/core/base/design-builder.ts +8 -0
- package/core/base/funfield-base.ts +106 -0
- package/core/base/funfield-value-base.ts +53 -0
- package/core/base/value-access.ts +70 -0
- package/core/directives/dynamic.ts +216 -0
- package/core/directives/scope.ts +432 -0
- package/core/models/api.options.ts +5 -0
- package/core/models/base.options.ts +11 -0
- package/core/models/cmplib.ts +7 -0
- package/core/models/data-source.options.ts +11 -0
- package/core/models/data.options.ts +6 -0
- package/core/models/design-build.ts +26 -0
- package/core/models/design-config.ts +14 -0
- package/core/models/design-tree-node.ts +16 -0
- package/core/models/event-desc.ts +28 -0
- package/core/models/event-handler.ts +6 -0
- package/core/models/event.options.ts +14 -0
- package/core/models/examples.ts +21 -0
- package/core/models/form-registe.options.ts +12 -0
- package/core/models/fun-field.options.ts +6 -0
- package/core/models/initobs.ts +8 -0
- package/core/models/options-node.ts +149 -0
- package/core/models/static-data-source.options.ts +4 -0
- package/core/models/trigge-events.options.ts +3 -0
- package/core/models/value-access.options.ts +10 -0
- package/core/ng-package.json +5 -0
- package/core/pipes/how-long.pipe.ts +69 -0
- package/core/public-api.ts +39 -0
- package/core/share/api-handler/api-handler.css +0 -0
- package/core/share/api-handler/api-handler.html +38 -0
- package/core/share/api-handler/api-handler.ts +51 -0
- package/core/share/array-filter-handler/array-filter-handler.css +0 -0
- package/core/share/array-filter-handler/array-filter-handler.html +26 -0
- package/core/share/array-filter-handler/array-filter-handler.ts +65 -0
- package/core/share/array-filter-handler/input-filter-options/filter-options.css +19 -0
- package/core/share/array-filter-handler/input-filter-options/filter-options.html +57 -0
- package/core/share/array-filter-handler/input-filter-options/filter-options.ts +100 -0
- package/core/share/base-design-setting/base-design-setting.css +0 -0
- package/core/share/base-design-setting/base-design-setting.html +50 -0
- package/core/share/base-design-setting/base-design-setting.ts +55 -0
- package/core/share/base-event-handler-descs.ts +100 -0
- package/core/share/common-menu/common-menu.css +0 -0
- package/core/share/common-menu/common-menu.html +21 -0
- package/core/share/common-menu/common-menu.ts +73 -0
- package/core/share/data-handler/data-handler.css +0 -0
- package/core/share/data-handler/data-handler.html +13 -0
- package/core/share/data-handler/data-handler.ts +39 -0
- package/core/share/events-handler.service.ts +185 -0
- package/core/share/fun-field/fun-field.css +55 -0
- package/core/share/fun-field/fun-field.html +175 -0
- package/core/share/fun-field/fun-field.ts +363 -0
- package/core/share/input-trigger/input-trigger.css +16 -0
- package/core/share/input-trigger/input-trigger.html +114 -0
- package/core/share/input-trigger/input-trigger.ts +394 -0
- package/core/share/msg-tip-handler/msg-tip-handler.css +0 -0
- package/core/share/msg-tip-handler/msg-tip-handler.html +40 -0
- package/core/share/msg-tip-handler/msg-tip-handler.ts +46 -0
- package/core/share/refresh-data-source-handler/refresh-data-source-handler.css +0 -0
- package/core/share/refresh-data-source-handler/refresh-data-source-handler.html +29 -0
- package/core/share/refresh-data-source-handler/refresh-data-source-handler.ts +55 -0
- package/core/share/route-handler/route-handler.css +0 -0
- package/core/share/route-handler/route-handler.html +49 -0
- package/core/share/route-handler/route-handler.ts +51 -0
- package/core/share/set-data-source-handler/set-data-source-handler.css +0 -0
- package/core/share/set-data-source-handler/set-data-source-handler.html +23 -0
- package/core/share/set-data-source-handler/set-data-source-handler.ts +44 -0
- package/core/share/simple-menu/simple-menu.css +0 -0
- package/core/share/simple-menu/simple-menu.html +5 -0
- package/core/share/simple-menu/simple-menu.ts +17 -0
- package/core/share/tokens.ts +29 -0
- package/core/share/value-design-setting/value-design-setting.css +0 -0
- package/core/share/value-design-setting/value-design-setting.html +48 -0
- package/core/share/value-design-setting/value-design-setting.ts +54 -0
- package/core/utils/code-name.utils.ts +19 -0
- package/core/utils/components-loader.ts +29 -0
- package/core/utils/declaration.utils.ts +38 -0
- package/core/utils/dynamic.util.ts +57 -0
- package/core/utils/form-validators.ts +160 -0
- package/core/utils/form.util.ts +25 -0
- package/core/utils/http.utils.ts +8 -0
- package/core/utils/object.utils.ts +182 -0
- package/core/utils/scripts-loader.ts +25 -0
- package/ng-package.json +13 -0
- package/package.json +37 -0
- package/providers/ng-package.json +5 -0
- package/providers/providers.ts +44 -0
- package/providers/public-api.ts +1 -0
- package/public-api.ts +1 -0
- package/tsconfig.json +38 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +11 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<nz-input-group [nzSuffix]="suffixTemplate" [nzPrefix]="prefixTemplate">
|
|
2
|
+
<input nz-input readonly [style.cursor]="options.disabled()?null:'pointer'" [disabled]="options.disabled()"
|
|
3
|
+
type="text" [placeholder]="options.readonly()?'查看JSON':'编辑JSON'" (click)="open.set(true)" />
|
|
4
|
+
</nz-input-group>
|
|
5
|
+
<ng-template #prefixTemplate>
|
|
6
|
+
<i nz-icon [nzType]="options.readonly()?'eye':'edit'"></i>
|
|
7
|
+
</ng-template>
|
|
8
|
+
<ng-template #suffixTemplate>
|
|
9
|
+
<i style="color:rgba(150, 150, 150, 0.5);" nz-icon nzType="right" nzTheme="outline"></i>
|
|
10
|
+
</ng-template>
|
|
11
|
+
<nz-modal nzWidth="800px" [nzBodyStyle]="{padding:'0',height:'400px'}" [(nzVisible)]="open" (nzOnCancel)="onCancel()"
|
|
12
|
+
(nzOnOk)="onOk()" [nzOkDisabled]="!canOk()" [nzOkText]="options.readonly()?null:'确定'">
|
|
13
|
+
<ng-container *nzModalTitle>
|
|
14
|
+
<i nz-icon [nzType]="options.readonly()?'eye':'edit'"></i> {{options.readonly()?'查看JSON':'编辑JSON'}}
|
|
15
|
+
</ng-container>
|
|
16
|
+
<ng-container *nzModalContent>
|
|
17
|
+
<ng-container [axisDynamic]="editorOptions()" [standalone]="true" [(ngModel)]="editData"></ng-container>
|
|
18
|
+
</ng-container>
|
|
19
|
+
</nz-modal>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, model } from '@angular/core';
|
|
2
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
4
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
5
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
6
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
7
|
+
import { NzAlertModule } from 'ng-zorro-antd/alert';
|
|
8
|
+
import { DynamicDirective, ValueAccess, ValueAccessOptions } from 'ngx-axis-appforge/core';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'axis-input-json',
|
|
12
|
+
imports: [ReactiveFormsModule, NzInputModule, NzIconModule, NzModalModule, NzFormModule, NzAlertModule, DynamicDirective, FormsModule],
|
|
13
|
+
templateUrl: './input-json.html',
|
|
14
|
+
styleUrl: './input-json.css',
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
16
|
+
})
|
|
17
|
+
export class InputJson extends ValueAccess<ValueAccessOptions> {
|
|
18
|
+
|
|
19
|
+
protected override options: ValueAccessOptions = new ValueAccessOptions();
|
|
20
|
+
|
|
21
|
+
readonly editorOptions = computed(() => ({
|
|
22
|
+
component: "axis-components/editor",
|
|
23
|
+
inuse: true,
|
|
24
|
+
mode: "json",
|
|
25
|
+
readonly: this.options.readonly(),
|
|
26
|
+
disabled: this.options.disabled(),
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
readonly open = model(false);
|
|
30
|
+
|
|
31
|
+
readonly canOk = computed(() => {
|
|
32
|
+
try {
|
|
33
|
+
if (this.editData() != "") {
|
|
34
|
+
JSON.parse(this.editData());
|
|
35
|
+
}
|
|
36
|
+
return true;
|
|
37
|
+
} catch (_) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
readonly editData = model("")
|
|
43
|
+
|
|
44
|
+
override writeValue(value: any): void {
|
|
45
|
+
super.writeValue(value);
|
|
46
|
+
this.setEditData();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setEditData() {
|
|
50
|
+
if (this.value() !== undefined) {
|
|
51
|
+
this.editData.set(JSON.stringify(this.value(), null, '\t'));
|
|
52
|
+
} else {
|
|
53
|
+
this.editData.set("");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
onCancel() {
|
|
58
|
+
this.setEditData();
|
|
59
|
+
this.open.set(false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
onOk() {
|
|
63
|
+
this.open.set(false);
|
|
64
|
+
this.onChange?.(this.editData() == "" ? null : JSON.parse(this.editData()));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from "ngx-axis-appforge/core";
|
|
2
|
+
import { Setting } from "./setting/setting";
|
|
3
|
+
|
|
4
|
+
export const Config: DesignConfig = {
|
|
5
|
+
|
|
6
|
+
componentName: "数值输入框",
|
|
7
|
+
buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {
|
|
8
|
+
return {
|
|
9
|
+
treeNode: new OptionsNode({
|
|
10
|
+
parentId: nextInfo.parentId,
|
|
11
|
+
scopeId: nextInfo.scopeId,
|
|
12
|
+
name: "数值输入框",
|
|
13
|
+
canSetting: true,
|
|
14
|
+
canDrag: true,
|
|
15
|
+
dragType: "component",
|
|
16
|
+
parentObj: nextInfo.parentObject,
|
|
17
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
18
|
+
rootOptions: nextInfo.currentObject,
|
|
19
|
+
settingType: Setting,
|
|
20
|
+
contextMenu: SimpleMenu,
|
|
21
|
+
icon: "field-number",
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {
|
|
26
|
+
return {
|
|
27
|
+
[options.id]: { element }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<form [formGroup]="fg" nz-form>
|
|
2
|
+
<nz-collapse [nzBordered]="false">
|
|
3
|
+
<nz-collapse-panel nzHeader="输入设置" nzActive>
|
|
4
|
+
<nz-form-item>
|
|
5
|
+
<nz-form-label nzSpan="8">
|
|
6
|
+
最大值
|
|
7
|
+
</nz-form-label>
|
|
8
|
+
<nz-form-control nzSpan="16">
|
|
9
|
+
<axis-fun-field formControlName="max">
|
|
10
|
+
<nz-input-number style="width: 100%;" ngModel [ngModelOptions]="{standalone:true}">
|
|
11
|
+
</nz-input-number>
|
|
12
|
+
</axis-fun-field>
|
|
13
|
+
</nz-form-control>
|
|
14
|
+
</nz-form-item>
|
|
15
|
+
<nz-form-item>
|
|
16
|
+
<nz-form-label nzSpan="8">
|
|
17
|
+
最小值
|
|
18
|
+
</nz-form-label>
|
|
19
|
+
<nz-form-control nzSpan="16">
|
|
20
|
+
<axis-fun-field formControlName="min">
|
|
21
|
+
<nz-input-number style="width: 100%;" ngModel [ngModelOptions]="{standalone:true}">
|
|
22
|
+
</nz-input-number>
|
|
23
|
+
</axis-fun-field>
|
|
24
|
+
</nz-form-control>
|
|
25
|
+
</nz-form-item>
|
|
26
|
+
<nz-form-item>
|
|
27
|
+
<nz-form-label nzSpan="8" nzRequired>
|
|
28
|
+
调整步长
|
|
29
|
+
</nz-form-label>
|
|
30
|
+
<nz-form-control nzSpan="16">
|
|
31
|
+
<axis-fun-field formControlName="step">
|
|
32
|
+
<nz-input-number style="width: 100%;" ngModel [ngModelOptions]="{standalone:true}" [nzMin]="0">
|
|
33
|
+
</nz-input-number>
|
|
34
|
+
</axis-fun-field>
|
|
35
|
+
</nz-form-control>
|
|
36
|
+
</nz-form-item>
|
|
37
|
+
<nz-form-item>
|
|
38
|
+
<nz-form-label nzSpan="8">
|
|
39
|
+
小数精度
|
|
40
|
+
</nz-form-label>
|
|
41
|
+
<nz-form-control nzSpan="16">
|
|
42
|
+
<axis-fun-field formControlName="precision">
|
|
43
|
+
<nz-input-number style="width: 100%;" ngModel [ngModelOptions]="{standalone:true}" [nzMin]="0">
|
|
44
|
+
</nz-input-number>
|
|
45
|
+
</axis-fun-field>
|
|
46
|
+
</nz-form-control>
|
|
47
|
+
</nz-form-item>
|
|
48
|
+
</nz-collapse-panel>
|
|
49
|
+
<nz-collapse-panel nzHeader="外观设置">
|
|
50
|
+
<nz-form-item>
|
|
51
|
+
<nz-form-label nzSpan="8" nzRequired>
|
|
52
|
+
增减按钮
|
|
53
|
+
</nz-form-label>
|
|
54
|
+
<nz-form-control nzSpan="16">
|
|
55
|
+
<axis-fun-field formControlName="controls">
|
|
56
|
+
<nz-switch ngModel [ngModelOptions]="{standalone:true}"></nz-switch>
|
|
57
|
+
</axis-fun-field>
|
|
58
|
+
</nz-form-control>
|
|
59
|
+
</nz-form-item>
|
|
60
|
+
<nz-form-item>
|
|
61
|
+
<nz-form-label nzSpan="8">
|
|
62
|
+
占位符
|
|
63
|
+
</nz-form-label>
|
|
64
|
+
<nz-form-control nzSpan="16">
|
|
65
|
+
<axis-fun-field formControlName="placeholder">
|
|
66
|
+
<input nz-input ngModel [ngModelOptions]="{standalone:true}" />
|
|
67
|
+
</axis-fun-field>
|
|
68
|
+
</nz-form-control>
|
|
69
|
+
</nz-form-item>
|
|
70
|
+
<nz-form-item>
|
|
71
|
+
<nz-form-label nzSpan="8" nzRequired>
|
|
72
|
+
形态变体
|
|
73
|
+
</nz-form-label>
|
|
74
|
+
<nz-form-control nzSpan="16">
|
|
75
|
+
<axis-fun-field formControlName="variant">
|
|
76
|
+
<nz-select ngModel [ngModelOptions]="{standalone:true}">
|
|
77
|
+
<nz-option nzValue="outlined" nzLabel="外边框"></nz-option>
|
|
78
|
+
<nz-option nzValue="borderless" nzLabel="无边框"></nz-option>
|
|
79
|
+
<nz-option nzValue="filled" nzLabel="填充"></nz-option>
|
|
80
|
+
<nz-option nzValue="underlined" nzLabel="下边线"></nz-option>
|
|
81
|
+
</nz-select>
|
|
82
|
+
</axis-fun-field>
|
|
83
|
+
</nz-form-control>
|
|
84
|
+
</nz-form-item>
|
|
85
|
+
<nz-form-item>
|
|
86
|
+
<nz-form-label nzSpan="8" nzRequired>
|
|
87
|
+
大小
|
|
88
|
+
</nz-form-label>
|
|
89
|
+
<nz-form-control nzSpan="16">
|
|
90
|
+
<axis-fun-field formControlName="size">
|
|
91
|
+
<nz-radio-group ngModel [ngModelOptions]="{standalone:true}" nzSize="small">
|
|
92
|
+
<label nz-radio-button nzValue="small">小</label>
|
|
93
|
+
<label nz-radio-button nzValue="default">中</label>
|
|
94
|
+
<label nz-radio-button nzValue="large">大</label>
|
|
95
|
+
</nz-radio-group>
|
|
96
|
+
</axis-fun-field>
|
|
97
|
+
</nz-form-control>
|
|
98
|
+
</nz-form-item>
|
|
99
|
+
<nz-form-item>
|
|
100
|
+
<nz-form-label nzSpan="8" nzRequired>
|
|
101
|
+
对齐方式
|
|
102
|
+
</nz-form-label>
|
|
103
|
+
<nz-form-control nzSpan="16">
|
|
104
|
+
<axis-fun-field formControlName="align">
|
|
105
|
+
<nz-radio-group ngModel [ngModelOptions]="{standalone:true}" nzSize="small">
|
|
106
|
+
<label nz-radio-button nzValue="left">左</label>
|
|
107
|
+
<label nz-radio-button nzValue="center">中</label>
|
|
108
|
+
<label nz-radio-button nzValue="right">右</label>
|
|
109
|
+
</nz-radio-group>
|
|
110
|
+
</axis-fun-field>
|
|
111
|
+
</nz-form-control>
|
|
112
|
+
</nz-form-item>
|
|
113
|
+
</nz-collapse-panel>
|
|
114
|
+
<axis-value-design-setting [fg]="fg"></axis-value-design-setting>
|
|
115
|
+
<axis-base-design-setting [fg]="fg"></axis-base-design-setting>
|
|
116
|
+
<axis-input-trigger formControlName="triggeEvents" [internalTriggers]="['valueChange']"></axis-input-trigger>
|
|
117
|
+
</nz-collapse>
|
|
118
|
+
</form>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
4
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
5
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
6
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
7
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
8
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
9
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
10
|
+
import { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'axis-design-input-setting',
|
|
14
|
+
imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule],
|
|
15
|
+
templateUrl: './setting.html',
|
|
16
|
+
styleUrl: './setting.css',
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
})
|
|
19
|
+
export class Setting extends FunFieldValueBase {
|
|
20
|
+
|
|
21
|
+
override fg: UntypedFormGroup = this.fb.group({
|
|
22
|
+
...baseFbConfig,
|
|
23
|
+
...valueFbConfig,
|
|
24
|
+
max: [],
|
|
25
|
+
min: [],
|
|
26
|
+
step: [undefined, FormValidators.requiredFun],
|
|
27
|
+
precision: [],
|
|
28
|
+
controls: [undefined, FormValidators.requiredFun],
|
|
29
|
+
placeholder: [],
|
|
30
|
+
variant: [undefined, FormValidators.requiredFun],
|
|
31
|
+
size: [undefined, FormValidators.requiredFun],
|
|
32
|
+
align: [undefined, FormValidators.requiredFun],
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
protected override funFields: FunFieldOptions = {
|
|
36
|
+
...baseFunField,
|
|
37
|
+
...valueFunField,
|
|
38
|
+
max: {
|
|
39
|
+
defaultValue: undefined
|
|
40
|
+
},
|
|
41
|
+
min: {
|
|
42
|
+
defaultValue: undefined
|
|
43
|
+
},
|
|
44
|
+
step: {
|
|
45
|
+
defaultValue: 1
|
|
46
|
+
},
|
|
47
|
+
precision: {
|
|
48
|
+
defaultValue: undefined
|
|
49
|
+
},
|
|
50
|
+
controls: {
|
|
51
|
+
defaultValue: true
|
|
52
|
+
},
|
|
53
|
+
placeholder: {
|
|
54
|
+
defaultValue: ""
|
|
55
|
+
},
|
|
56
|
+
variant: {
|
|
57
|
+
defaultValue: "outlined"
|
|
58
|
+
},
|
|
59
|
+
size: {
|
|
60
|
+
defaultValue: "default"
|
|
61
|
+
},
|
|
62
|
+
align: {
|
|
63
|
+
defaultValue: "left"
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.align-left ::ng-deep input {
|
|
7
|
+
text-align: left;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.align-center ::ng-deep input {
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.align-right ::ng-deep input {
|
|
15
|
+
text-align: right;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.controls ::ng-deep input:focus,
|
|
19
|
+
.controls:hover ::ng-deep input,
|
|
20
|
+
.controls ::ng-deep .ant-input-number-focused input {
|
|
21
|
+
padding-right: 25px;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@if (options.readonly()) {
|
|
2
|
+
<span>
|
|
3
|
+
{{value() | number:digitsInfo()}}
|
|
4
|
+
</span>
|
|
5
|
+
}@else {
|
|
6
|
+
<nz-input-number style="width: 100%;" [(ngModel)]="value" (ngModelChange)="onChange?.($event)" [nzMax]="max()"
|
|
7
|
+
[nzMin]="min()" [nzStep]="options.step()" [nzPrecision]="options.precision()" [nzControls]="options.controls()"
|
|
8
|
+
[nzPlaceHolder]="options.placeholder()" [nzVariant]="options.variant()" [nzSize]="options.size()"
|
|
9
|
+
[class]="`align-${options.align()}`" [nzDisabled]="options.disabled()"
|
|
10
|
+
[class.controls]="options.controls()"></nz-input-number>
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { signal } from "@angular/core";
|
|
2
|
+
import { ValueAccessOptions } from "ngx-axis-appforge/core";
|
|
3
|
+
|
|
4
|
+
export class InputNumberOptions extends ValueAccessOptions {
|
|
5
|
+
|
|
6
|
+
readonly max = signal<number | null>(null);
|
|
7
|
+
readonly min = signal<number | null>(null);
|
|
8
|
+
readonly step = signal(1);
|
|
9
|
+
readonly precision = signal<number | null>(null);
|
|
10
|
+
|
|
11
|
+
readonly controls = signal(true);
|
|
12
|
+
readonly placeholder = signal("");
|
|
13
|
+
readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>("outlined");
|
|
14
|
+
readonly size = signal<'large' | 'default' | 'small'>('default');
|
|
15
|
+
readonly align = signal<"left" | "center" | "right">('left');
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed } from '@angular/core';
|
|
2
|
+
import { InputNumberOptions } from './input-number.options';
|
|
3
|
+
import { ValueAccess } from 'ngx-axis-appforge/core';
|
|
4
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'axis-input-number',
|
|
10
|
+
imports: [NzInputNumberModule, FormsModule, CommonModule],
|
|
11
|
+
templateUrl: './input-number.html',
|
|
12
|
+
styleUrl: './input-number.css',
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
})
|
|
15
|
+
export class InputNumber extends ValueAccess<InputNumberOptions> {
|
|
16
|
+
|
|
17
|
+
override options: InputNumberOptions = new InputNumberOptions();
|
|
18
|
+
|
|
19
|
+
readonly max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max());
|
|
20
|
+
readonly min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min());
|
|
21
|
+
|
|
22
|
+
readonly digitsInfo = computed(() => {
|
|
23
|
+
if (this.options.precision() == null) {
|
|
24
|
+
return "1.0"
|
|
25
|
+
} else {
|
|
26
|
+
return `1.0-${this.options.precision()}`;
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from "ngx-axis-appforge/core";
|
|
2
|
+
import { Setting } from "./setting/setting";
|
|
3
|
+
import { SetModalVisibleHandler } from "./set-modal-visible-handler/set-modal-visible-handler";
|
|
4
|
+
|
|
5
|
+
export const Config: DesignConfig = {
|
|
6
|
+
|
|
7
|
+
componentName: "对话框",
|
|
8
|
+
eventHandlerDescs: {
|
|
9
|
+
setModalVisible: {
|
|
10
|
+
name: "setModalVisible",
|
|
11
|
+
title: "打开/关闭对话框",
|
|
12
|
+
dataComponent: SetModalVisibleHandler,
|
|
13
|
+
icon: "check-square",
|
|
14
|
+
target: "component",
|
|
15
|
+
targetComponent: "axis-components/modal",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {
|
|
19
|
+
return {
|
|
20
|
+
treeNode: new OptionsNode({
|
|
21
|
+
parentId: nextInfo.parentId,
|
|
22
|
+
scopeId: nextInfo.scopeId,
|
|
23
|
+
name: nameCode("对话框", nextInfo.currentObject.title),
|
|
24
|
+
canSetting: true,
|
|
25
|
+
canDrag: true,
|
|
26
|
+
dragType: "component",
|
|
27
|
+
canDrop: true,
|
|
28
|
+
dropObj: nextInfo.currentObject,
|
|
29
|
+
dropType: "component",
|
|
30
|
+
defaultDropIndex: "child",
|
|
31
|
+
parentObj: nextInfo.parentObject,
|
|
32
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
33
|
+
rootOptions: nextInfo.currentObject,
|
|
34
|
+
settingType: Setting,
|
|
35
|
+
contextMenu: SimpleMenu,
|
|
36
|
+
icon: "check-square",
|
|
37
|
+
children: [],
|
|
38
|
+
}),
|
|
39
|
+
next: [{
|
|
40
|
+
parentId: nextInfo.currentObject.id,
|
|
41
|
+
parentObject: nextInfo.currentObject,
|
|
42
|
+
indexOfParent: "child",
|
|
43
|
+
scopeId: nextInfo.scopeId,
|
|
44
|
+
}]
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {
|
|
48
|
+
return {}
|
|
49
|
+
},
|
|
50
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<form nz-form [formGroup]="fg">
|
|
2
|
+
<nz-form-item>
|
|
3
|
+
<nz-form-label [nzSpan]="6" nzRequired>
|
|
4
|
+
打开/关闭
|
|
5
|
+
</nz-form-label>
|
|
6
|
+
<nz-form-control nzSpan="18">
|
|
7
|
+
<axis-fun-field formControlName="visible" [noListen]="noListen()">
|
|
8
|
+
<nz-radio-group ngModel [ngModelOptions]="{standalone:true}">
|
|
9
|
+
<label nz-radio-button [nzValue]="true">打开</label>
|
|
10
|
+
<label nz-radio-button [nzValue]="false">关闭</label>
|
|
11
|
+
</nz-radio-group>
|
|
12
|
+
</axis-fun-field>
|
|
13
|
+
</nz-form-control>
|
|
14
|
+
</nz-form-item>
|
|
15
|
+
</form>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
+
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
4
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
5
|
+
import { FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger } from 'ngx-axis-appforge/core';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'axis-modal-design-set-modal-visible-handler',
|
|
9
|
+
imports: [NzFormModule, ReactiveFormsModule, FunField, FormsModule, NzRadioModule],
|
|
10
|
+
templateUrl: './set-modal-visible-handler.html',
|
|
11
|
+
styleUrl: './set-modal-visible-handler.css',
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
providers: [
|
|
14
|
+
{
|
|
15
|
+
provide: NG_VALUE_ACCESSOR,
|
|
16
|
+
useExisting: forwardRef(() => SetModalVisibleHandler),
|
|
17
|
+
multi: true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
})
|
|
21
|
+
export class SetModalVisibleHandler extends FunFieldValueBase {
|
|
22
|
+
readonly noListen = inject(InputTrigger).noListen;
|
|
23
|
+
protected override sendInitValue: boolean = true;
|
|
24
|
+
override fg: UntypedFormGroup = this.fb.group({
|
|
25
|
+
visible: [undefined, FormValidators.requiredFun],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
protected override funFields: FunFieldOptions = {
|
|
29
|
+
visible: {
|
|
30
|
+
defaultValue: true,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
}
|
|
File without changes
|