ngx-axis-appforge 0.0.3 → 0.0.4
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/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 +40 -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/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 +12 -0
- package/package.json +16 -217
- package/providers/ng-package.json +5 -0
- package/{fesm2022/ngx-axis-appforge-providers.mjs → providers/providers.ts} +8 -16
- package/providers/public-api.ts +1 -0
- package/public-api.ts +1 -0
- package/tsconfig.json +35 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +11 -0
- package/axis-components/badge/design/index.d.ts +0 -5
- package/axis-components/badge/index.d.ts +0 -27
- package/axis-components/button/design/index.d.ts +0 -5
- package/axis-components/button/index.d.ts +0 -32
- package/axis-components/desc/design/index.d.ts +0 -5
- package/axis-components/desc/index.d.ts +0 -30
- package/axis-components/design/design/index.d.ts +0 -5
- package/axis-components/design/index.d.ts +0 -246
- package/axis-components/dynamic-container/design/index.d.ts +0 -5
- package/axis-components/dynamic-container/index.d.ts +0 -14
- package/axis-components/editor/index.d.ts +0 -33
- package/axis-components/flex/design/index.d.ts +0 -5
- package/axis-components/flex/index.d.ts +0 -20
- package/axis-components/form/design/index.d.ts +0 -5
- package/axis-components/form/index.d.ts +0 -30
- package/axis-components/form-item/design/index.d.ts +0 -5
- package/axis-components/form-item/index.d.ts +0 -34
- package/axis-components/icon/design/index.d.ts +0 -5
- package/axis-components/icon/index.d.ts +0 -16
- package/axis-components/image/design/index.d.ts +0 -5
- package/axis-components/image/index.d.ts +0 -16
- package/axis-components/index.d.ts +0 -5
- package/axis-components/input/design/index.d.ts +0 -5
- package/axis-components/input/index.d.ts +0 -27
- package/axis-components/input-component/design/index.d.ts +0 -5
- package/axis-components/input-component/index.d.ts +0 -33
- package/axis-components/input-icon/design/index.d.ts +0 -5
- package/axis-components/input-icon/index.d.ts +0 -24
- package/axis-components/input-json/design/index.d.ts +0 -5
- package/axis-components/input-json/index.d.ts +0 -24
- package/axis-components/input-number/design/index.d.ts +0 -5
- package/axis-components/input-number/index.d.ts +0 -25
- package/axis-components/modal/design/index.d.ts +0 -5
- package/axis-components/modal/index.d.ts +0 -33
- package/axis-components/scope/design/index.d.ts +0 -5
- package/axis-components/scope/index.d.ts +0 -24
- package/axis-components/single-selector/design/index.d.ts +0 -5
- package/axis-components/single-selector/index.d.ts +0 -37
- package/axis-components/splitter/design/index.d.ts +0 -5
- package/axis-components/splitter/index.d.ts +0 -28
- package/axis-components/table/design/index.d.ts +0 -5
- package/axis-components/table/index.d.ts +0 -183
- package/axis-components/text/design/index.d.ts +0 -5
- package/axis-components/text/index.d.ts +0 -24
- package/axis-components/textarea/design/index.d.ts +0 -5
- package/axis-components/textarea/index.d.ts +0 -25
- package/axis-components/tree-selector/design/index.d.ts +0 -5
- package/axis-components/tree-selector/index.d.ts +0 -76
- package/axis-components/upload/design/index.d.ts +0 -5
- package/axis-components/upload/index.d.ts +0 -51
- package/core/index.d.ts +0 -773
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +0 -191
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +0 -39
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +0 -116
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +0 -78
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +0 -224
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +0 -51
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +0 -69
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +0 -1746
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +0 -65
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +0 -26
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +0 -99
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +0 -98
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +0 -31
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +0 -108
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +0 -242
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +0 -144
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +0 -132
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +0 -88
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +0 -28
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +0 -75
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +0 -43
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +0 -70
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +0 -61
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +0 -142
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +0 -71
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +0 -64
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +0 -60
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +0 -70
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +0 -107
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +0 -48
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +0 -68
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +0 -181
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +0 -74
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +0 -330
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +0 -55
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +0 -120
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +0 -102
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +0 -178
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +0 -49
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +0 -442
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +0 -452
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +0 -95
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +0 -64
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +0 -94
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +0 -64
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +0 -222
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +0 -295
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +0 -146
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +0 -156
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +0 -988
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +0 -3169
- package/fesm2022/ngx-axis-appforge-core.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge-providers.mjs.map +0 -1
- package/fesm2022/ngx-axis-appforge.mjs +0 -6
- package/fesm2022/ngx-axis-appforge.mjs.map +0 -1
- package/index.d.ts +0 -2
- package/providers/index.d.ts +0 -13
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, inject, computed, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i2 from 'ng-zorro-antd/form';
|
|
4
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
5
|
-
import * as i3 from 'ng-zorro-antd/input';
|
|
6
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
7
|
-
import { ValueAccessOptions, ValueAccess, FormValidators, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
8
|
-
import * as i5 from '@angular/forms';
|
|
9
|
-
import { UntypedFormBuilder, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
10
|
-
import * as i4 from 'ng-zorro-antd/modal';
|
|
11
|
-
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
12
|
-
import * as i6 from 'ng-zorro-antd/icon';
|
|
13
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
14
|
-
import * as i7 from 'ng-zorro-antd/radio';
|
|
15
|
-
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
16
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
17
|
-
import * as i1 from 'ng-zorro-antd/grid';
|
|
18
|
-
|
|
19
|
-
class InputIconOptions extends ValueAccessOptions {
|
|
20
|
-
placeholder = signal("设置图标", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
21
|
-
modalTitle = signal("设置图标", ...(ngDevMode ? [{ debugName: "modalTitle" }] : []));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class InputIcon extends ValueAccess {
|
|
25
|
-
options = new InputIconOptions();
|
|
26
|
-
fb = inject(UntypedFormBuilder);
|
|
27
|
-
fg = this.fb.group({
|
|
28
|
-
lib: ["antdesign", FormValidators.required],
|
|
29
|
-
theme: ["outline", FormValidators.required],
|
|
30
|
-
icon: [undefined, FormValidators.required]
|
|
31
|
-
});
|
|
32
|
-
formValue = toSignal(this.fg.valueChanges);
|
|
33
|
-
preview = computed(() => ({ component: "axis-components/icon", inuse: true, ...this.formValue() }), ...(ngDevMode ? [{ debugName: "preview" }] : []));
|
|
34
|
-
isVisible = model(false, ...(ngDevMode ? [{ debugName: "isVisible" }] : []));
|
|
35
|
-
writeValue(value) {
|
|
36
|
-
super.writeValue(value);
|
|
37
|
-
this.fg.reset(value);
|
|
38
|
-
}
|
|
39
|
-
resetForm() {
|
|
40
|
-
this.fg.reset({
|
|
41
|
-
lib: "antdesign",
|
|
42
|
-
theme: "outline",
|
|
43
|
-
icon: undefined,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
onOk() {
|
|
47
|
-
this.value.set(this.preview());
|
|
48
|
-
this.onChange?.(this.value());
|
|
49
|
-
this.isVisible.set(false);
|
|
50
|
-
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputIcon, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: InputIcon, isStandalone: true, selector: "axis-input-icon", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isVisible: "isVisibleChange" }, usesInheritance: true, ngImport: i0, template: "@if (!options.readonly()) {\n<nz-input-group (click)=\"isVisible.set(!options.disabled())\" [nzPrefix]=\"value()?.component? iconInp:undefined\"\n [nzSuffix]=\"iconSuffix\">\n <input nz-input [disabled]=\"options.disabled()\" [placeholder]=\"options.placeholder()\" readonly />\n</nz-input-group>\n<ng-template #iconInp>\n <ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n</ng-template>\n<ng-template #iconSuffix>\n <i nz-icon nzType=\"right\" style=\"color:rgba(0, 0, 0, 0.25)\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal [(nzVisible)]=\"isVisible\" [nzTitle]=\"options.modalTitle()\" (nzOnOk)=\"onOk()\"\n (nzOnCancel)=\"isVisible.set(false)\" (nzAfterClose)=\"resetForm()\">\n <ng-container *nzModalContent>\n <form [formGroup]=\"fg\">\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807\u5E93</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"lib\">\n <label nz-radio-button nzValue=\"antdesign\">antdesign</label>\n <label nz-radio-button nzValue=\"iconfont\">iconfont</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n @if (formValue() == undefined || formValue()?.lib == 'antdesign') {\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807\u4E3B\u9898</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"theme\">\n <label nz-radio-button nzValue=\"outline\">outline</label>\n <label nz-radio-button nzValue=\"fill\">fill</label>\n <label nz-radio-button nzValue=\"twotone\">twotone</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-input-group style=\"max-width: 200px;\" [nzSuffix]=\"iconPreview\">\n <input autofocus placeholder=\"\u8F93\u5165\u56FE\u6807\u7C7B\u578B\uFF0C\u5982 edit\" nz-input formControlName=\"icon\" />\n </nz-input-group>\n <ng-template #iconPreview>\n <ng-container [axisDynamic]=\"preview()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n antdesign \u56FE\u6807\u5E93\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\"\n href=\"https://ng.ant.design/components/icon/zh\">https://ng.ant.design/components/icon/zh</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n iconfont \u56FE\u6807\u5E93\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\" href=\"https://www.iconfont.cn/\">https://www.iconfont.cn/</a>\n </nz-form-control>\n </nz-form-item>\n </form>\n </ng-container>\n</nz-modal>\n}@else if(value()?.comonent){\n<ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n}", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i4.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i4.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i6.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputIcon, decorators: [{
|
|
55
|
-
type: Component,
|
|
56
|
-
args: [{ selector: 'axis-input-icon', imports: [NzFormModule, NzInputModule, NzFormModule, DynamicDirective, NzModalModule, ReactiveFormsModule, NzIconModule, NzRadioModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!options.readonly()) {\n<nz-input-group (click)=\"isVisible.set(!options.disabled())\" [nzPrefix]=\"value()?.component? iconInp:undefined\"\n [nzSuffix]=\"iconSuffix\">\n <input nz-input [disabled]=\"options.disabled()\" [placeholder]=\"options.placeholder()\" readonly />\n</nz-input-group>\n<ng-template #iconInp>\n <ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n</ng-template>\n<ng-template #iconSuffix>\n <i nz-icon nzType=\"right\" style=\"color:rgba(0, 0, 0, 0.25)\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal [(nzVisible)]=\"isVisible\" [nzTitle]=\"options.modalTitle()\" (nzOnOk)=\"onOk()\"\n (nzOnCancel)=\"isVisible.set(false)\" (nzAfterClose)=\"resetForm()\">\n <ng-container *nzModalContent>\n <form [formGroup]=\"fg\">\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807\u5E93</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"lib\">\n <label nz-radio-button nzValue=\"antdesign\">antdesign</label>\n <label nz-radio-button nzValue=\"iconfont\">iconfont</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n @if (formValue() == undefined || formValue()?.lib == 'antdesign') {\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807\u4E3B\u9898</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"theme\">\n <label nz-radio-button nzValue=\"outline\">outline</label>\n <label nz-radio-button nzValue=\"fill\">fill</label>\n <label nz-radio-button nzValue=\"twotone\">twotone</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>\u56FE\u6807</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-input-group style=\"max-width: 200px;\" [nzSuffix]=\"iconPreview\">\n <input autofocus placeholder=\"\u8F93\u5165\u56FE\u6807\u7C7B\u578B\uFF0C\u5982 edit\" nz-input formControlName=\"icon\" />\n </nz-input-group>\n <ng-template #iconPreview>\n <ng-container [axisDynamic]=\"preview()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n antdesign \u56FE\u6807\u5E93\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\"\n href=\"https://ng.ant.design/components/icon/zh\">https://ng.ant.design/components/icon/zh</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n iconfont \u56FE\u6807\u5E93\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\" href=\"https://www.iconfont.cn/\">https://www.iconfont.cn/</a>\n </nz-form-control>\n </nz-form-item>\n </form>\n </ng-container>\n</nz-modal>\n}@else if(value()?.comonent){\n<ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n}", styles: [":host{display:block;width:100%}\n"] }]
|
|
57
|
-
}] });
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Generated bundle index. Do not edit.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
export { InputIcon };
|
|
64
|
-
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-icon.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-icon.mjs","sources":["../../../axis-components/input-icon/input-icon.options.ts","../../../axis-components/input-icon/input-icon.ts","../../../axis-components/input-icon/input-icon.html","../../../axis-components/input-icon/ngx-axis-appforge-axis-components-input-icon.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputIconOptions extends ValueAccessOptions {\n readonly placeholder = signal(\"设置图标\");\n readonly modalTitle = signal(\"设置图标\");\n}","import { ChangeDetectionStrategy, Component, computed, inject, model } from '@angular/core';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { InputIconOptions } from './input-icon.options';\nimport { FormsModule, ReactiveFormsModule, UntypedFormBuilder } from '@angular/forms';\nimport { DynamicDirective, FormValidators, ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'axis-input-icon',\n imports: [NzFormModule, NzInputModule, NzFormModule, DynamicDirective, NzModalModule, ReactiveFormsModule, NzIconModule, NzRadioModule, FormsModule],\n templateUrl: './input-icon.html',\n styleUrl: './input-icon.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputIcon extends ValueAccess<InputIconOptions> {\n protected override options: InputIconOptions = new InputIconOptions();\n\n private readonly fb = inject(UntypedFormBuilder);\n readonly fg = this.fb.group({\n lib: [\"antdesign\", FormValidators.required],\n theme: [\"outline\", FormValidators.required],\n icon: [undefined, FormValidators.required]\n });\n readonly formValue = toSignal(this.fg.valueChanges);\n readonly preview = computed(() => ({ component: \"axis-components/icon\", inuse: true, ...this.formValue() }))\n\n isVisible = model(false);\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.fg.reset(value);\n }\n\n resetForm() {\n this.fg.reset({\n lib: \"antdesign\",\n theme: \"outline\",\n icon: undefined,\n });\n }\n\n onOk() {\n this.value.set(this.preview());\n this.onChange?.(this.value())\n this.isVisible.set(false);\n }\n}\n","@if (!options.readonly()) {\n<nz-input-group (click)=\"isVisible.set(!options.disabled())\" [nzPrefix]=\"value()?.component? iconInp:undefined\"\n [nzSuffix]=\"iconSuffix\">\n <input nz-input [disabled]=\"options.disabled()\" [placeholder]=\"options.placeholder()\" readonly />\n</nz-input-group>\n<ng-template #iconInp>\n <ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n</ng-template>\n<ng-template #iconSuffix>\n <i nz-icon nzType=\"right\" style=\"color:rgba(0, 0, 0, 0.25)\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal [(nzVisible)]=\"isVisible\" [nzTitle]=\"options.modalTitle()\" (nzOnOk)=\"onOk()\"\n (nzOnCancel)=\"isVisible.set(false)\" (nzAfterClose)=\"resetForm()\">\n <ng-container *nzModalContent>\n <form [formGroup]=\"fg\">\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>图标库</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"lib\">\n <label nz-radio-button nzValue=\"antdesign\">antdesign</label>\n <label nz-radio-button nzValue=\"iconfont\">iconfont</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n @if (formValue() == undefined || formValue()?.lib == 'antdesign') {\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>图标主题</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-radio-group formControlName=\"theme\">\n <label nz-radio-button nzValue=\"outline\">outline</label>\n <label nz-radio-button nzValue=\"fill\">fill</label>\n <label nz-radio-button nzValue=\"twotone\">twotone</label>\n </nz-radio-group>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"6\" nzRequired>图标</nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <nz-input-group style=\"max-width: 200px;\" [nzSuffix]=\"iconPreview\">\n <input autofocus placeholder=\"输入图标类型,如 edit\" nz-input formControlName=\"icon\" />\n </nz-input-group>\n <ng-template #iconPreview>\n <ng-container [axisDynamic]=\"preview()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n antdesign 图标库\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\"\n href=\"https://ng.ant.design/components/icon/zh\">https://ng.ant.design/components/icon/zh</a>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"6\">\n iconfont 图标库\n </nz-form-label>\n <nz-form-control nzSpan=\"18\">\n <a target=\"_blank\" href=\"https://www.iconfont.cn/\">https://www.iconfont.cn/</a>\n </nz-form-control>\n </nz-form-item>\n </form>\n </ng-container>\n</nz-modal>\n}@else if(value()?.comonent){\n<ng-container [axisDynamic]=\"value()\" [standalone]=\"true\"></ng-container>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-icon';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGM,MAAO,gBAAiB,SAAQ,kBAAkB,CAAA;AAC3C,IAAA,WAAW,GAAG,MAAM,CAAC,MAAM,uDAAC;AAC5B,IAAA,UAAU,GAAG,MAAM,CAAC,MAAM,sDAAC;AACvC;;ACYK,MAAO,SAAU,SAAQ,WAA6B,CAAA;AACvC,IA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AKxI,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;+BACE,iBAAiB,EAAA,OAAA,EAClB,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,CAAC,EAAA,eAAA,EAGnI,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mlHAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;;AEhBjD;;AAEG;;;;"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { FunFieldValueBase, valueFbConfig, baseFbConfig, valueFunField, baseFunField, ValueDesignSetting, BaseDesignSetting, InputTrigger, OptionsNode } from 'ngx-axis-appforge/core';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import * as i2 from '@angular/forms';
|
|
5
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import * as i1 from 'ng-zorro-antd/form';
|
|
7
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
8
|
-
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
9
|
-
import * as i3 from 'ng-zorro-antd/collapse';
|
|
10
|
-
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
11
|
-
|
|
12
|
-
class Setting extends FunFieldValueBase {
|
|
13
|
-
fg = this.fb.group(({
|
|
14
|
-
...baseFbConfig,
|
|
15
|
-
...valueFbConfig,
|
|
16
|
-
}));
|
|
17
|
-
funFields = {
|
|
18
|
-
...baseFunField,
|
|
19
|
-
...valueFunField,
|
|
20
|
-
};
|
|
21
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: Setting, isStandalone: true, selector: "axis-design-input-json-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: NzFormModule }, { kind: "directive", type: i1.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i3.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Setting, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{ selector: 'axis-design-input-json-setting', imports: [NzFormModule, FormsModule, ReactiveFormsModule, NzGridModule, NzCollapseModule, ValueDesignSetting, BaseDesignSetting, 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>" }]
|
|
27
|
-
}] });
|
|
28
|
-
|
|
29
|
-
const Config = {
|
|
30
|
-
componentName: "JSON输入框",
|
|
31
|
-
buildOptionsNodes(nextInfo) {
|
|
32
|
-
return {
|
|
33
|
-
treeNode: new OptionsNode({
|
|
34
|
-
parentId: nextInfo.parentId,
|
|
35
|
-
scopeId: nextInfo.scopeId,
|
|
36
|
-
name: "JSON输入框",
|
|
37
|
-
canSetting: true,
|
|
38
|
-
canDrag: true,
|
|
39
|
-
dragType: "component",
|
|
40
|
-
parentObj: nextInfo.parentObject,
|
|
41
|
-
indexOfParentObj: nextInfo.indexOfParent,
|
|
42
|
-
rootOptions: nextInfo.currentObject,
|
|
43
|
-
settingType: Setting,
|
|
44
|
-
icon: "file"
|
|
45
|
-
})
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
bindElementsOptionsNode(element, options) {
|
|
49
|
-
return {
|
|
50
|
-
[options.id]: { element }
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Generated bundle index. Do not edit.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
export { Config };
|
|
60
|
-
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-json-design.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-json-design.mjs","sources":["../../../axis-components/input-json/design/setting/setting.ts","../../../axis-components/input-json/design/setting/setting.html","../../../axis-components/input-json/design/config.ts","../../../axis-components/input-json/design/ngx-axis-appforge-axis-components-input-json-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\n\n@Component({\n selector: 'axis-design-input-json-setting',\n imports: [NzFormModule, FormsModule, ReactiveFormsModule, NzGridModule, NzCollapseModule, ValueDesignSetting, BaseDesignSetting, InputTrigger],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n override fg: UntypedFormGroup = this.fb.group(({\n ...baseFbConfig,\n ...valueFbConfig,\n }));\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\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 } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"JSON输入框\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"JSON输入框\",\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 icon: \"file\"\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;AACnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;AAC7C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AACjB,KAAA,EAAE;AAEgB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;KACjB;uGATU,OAAO,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAP,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,OAAO,iHCdpB,6XAMO,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDGK,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,I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,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,IAAI,EAAE;aACT;SACJ;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;KACJ;;;AC3BL;;AAEG;;;;"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { computed, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/forms';
|
|
4
|
-
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
5
|
-
import * as i2 from 'ng-zorro-antd/input';
|
|
6
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
7
|
-
import * as i4 from 'ng-zorro-antd/modal';
|
|
8
|
-
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
9
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
-
import * as i3 from 'ng-zorro-antd/icon';
|
|
11
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
12
|
-
import { NzAlertModule } from 'ng-zorro-antd/alert';
|
|
13
|
-
import { ValueAccess, ValueAccessOptions, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
14
|
-
|
|
15
|
-
class InputJson extends ValueAccess {
|
|
16
|
-
options = new ValueAccessOptions();
|
|
17
|
-
editorOptions = computed(() => ({
|
|
18
|
-
component: "axis-components/editor",
|
|
19
|
-
inuse: true,
|
|
20
|
-
mode: "json",
|
|
21
|
-
readonly: this.options.readonly(),
|
|
22
|
-
disabled: this.options.disabled(),
|
|
23
|
-
}), ...(ngDevMode ? [{ debugName: "editorOptions" }] : []));
|
|
24
|
-
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
25
|
-
canOk = computed(() => {
|
|
26
|
-
try {
|
|
27
|
-
if (this.editData() != "") {
|
|
28
|
-
JSON.parse(this.editData());
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
catch (_) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}, ...(ngDevMode ? [{ debugName: "canOk" }] : []));
|
|
36
|
-
editData = model("", ...(ngDevMode ? [{ debugName: "editData" }] : []));
|
|
37
|
-
writeValue(value) {
|
|
38
|
-
super.writeValue(value);
|
|
39
|
-
this.setEditData();
|
|
40
|
-
}
|
|
41
|
-
setEditData() {
|
|
42
|
-
if (this.value() !== undefined) {
|
|
43
|
-
this.editData.set(JSON.stringify(this.value(), null, '\t'));
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.editData.set("");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
onCancel() {
|
|
50
|
-
this.setEditData();
|
|
51
|
-
this.open.set(false);
|
|
52
|
-
}
|
|
53
|
-
onOk() {
|
|
54
|
-
this.open.set(false);
|
|
55
|
-
this.onChange?.(this.editData() == "" ? null : JSON.parse(this.editData()));
|
|
56
|
-
}
|
|
57
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputJson, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.2", type: InputJson, isStandalone: true, selector: "axis-input-json", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, editData: { classPropertyName: "editData", publicName: "editData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", editData: "editDataChange" }, usesInheritance: true, ngImport: i0, template: "<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'\u786E\u5B9A'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i4.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i4.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "directive", type: i4.NzModalTitleDirective, selector: "[nzModalTitle]", exportAs: ["nzModalTitle"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzAlertModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
-
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputJson, decorators: [{
|
|
61
|
-
type: Component,
|
|
62
|
-
args: [{ selector: 'axis-input-json', imports: [ReactiveFormsModule, NzInputModule, NzIconModule, NzModalModule, NzFormModule, NzAlertModule, DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'\u786E\u5B9A'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block;width:100%}\n"] }]
|
|
63
|
-
}] });
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Generated bundle index. Do not edit.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export { InputJson };
|
|
70
|
-
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-json.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-json.mjs","sources":["../../../axis-components/input-json/input-json.ts","../../../axis-components/input-json/input-json.html","../../../axis-components/input-json/ngx-axis-appforge-axis-components-input-json.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzAlertModule } from 'ng-zorro-antd/alert';\nimport { DynamicDirective, ValueAccess, ValueAccessOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-input-json',\n imports: [ReactiveFormsModule, NzInputModule, NzIconModule, NzModalModule, NzFormModule, NzAlertModule, DynamicDirective, FormsModule],\n templateUrl: './input-json.html',\n styleUrl: './input-json.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class InputJson extends ValueAccess<ValueAccessOptions> {\n\n protected override options: ValueAccessOptions = new ValueAccessOptions();\n\n readonly editorOptions = computed(() => ({\n component: \"axis-components/editor\",\n inuse: true,\n mode: \"json\",\n readonly: this.options.readonly(),\n disabled: this.options.disabled(),\n }));\n\n readonly open = model(false);\n\n readonly canOk = computed(() => {\n try {\n if (this.editData() != \"\") {\n JSON.parse(this.editData());\n }\n return true;\n } catch (_) {\n return false;\n }\n });\n\n readonly editData = model(\"\")\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.setEditData();\n }\n\n setEditData() {\n if (this.value() !== undefined) {\n this.editData.set(JSON.stringify(this.value(), null, '\\t'));\n } else {\n this.editData.set(\"\");\n }\n }\n\n onCancel() {\n this.setEditData();\n this.open.set(false);\n }\n\n onOk() {\n this.open.set(false);\n this.onChange?.(this.editData() == \"\" ? null : JSON.parse(this.editData()));\n }\n\n}\n","<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'查看JSON':'编辑JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'确定'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'查看JSON':'编辑JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-json';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBM,MAAO,SAAU,SAAQ,WAA+B,CAAA;AAEzC,IAAA,OAAO,GAAuB,IAAI,kBAAkB,EAAE;AAEhE,IAAA,aAAa,GAAG,QAAQ,CAAC,OAAO;AACvC,QAAA,SAAS,EAAE,wBAAwB;AACnC,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;AACjC,QAAA,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;AAClC,KAAA,CAAC,yDAAC;AAEM,IAAA,IAAI,GAAG,KAAK,CAAC,KAAK,gDAAC;AAEnB,IAAA,KAAK,GAAG,QAAQ,CAAC,MAAK;AAC7B,QAAA,IAAI;AACF,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE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YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,uIAAE,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAK1H,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;+BACE,iBAAiB,EAAA,OAAA,EAClB,CAAC,mBAAmB,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAA,eAAA,EAGrH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6rCAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { FunFieldValueBase, FormValidators, valueFbConfig, baseFbConfig, valueFunField, baseFunField, FunField, BaseDesignSetting, InputTrigger, ValueDesignSetting, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import * as i1 from '@angular/forms';
|
|
5
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import * as i2 from 'ng-zorro-antd/collapse';
|
|
7
|
-
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
8
|
-
import * as i6 from 'ng-zorro-antd/form';
|
|
9
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
-
import * as i4 from 'ng-zorro-antd/input';
|
|
11
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
12
|
-
import * as i3 from 'ng-zorro-antd/input-number';
|
|
13
|
-
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
14
|
-
import * as i8 from 'ng-zorro-antd/radio';
|
|
15
|
-
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
16
|
-
import * as i9 from 'ng-zorro-antd/select';
|
|
17
|
-
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
18
|
-
import * as i7 from 'ng-zorro-antd/switch';
|
|
19
|
-
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
20
|
-
import * as i5 from 'ng-zorro-antd/grid';
|
|
21
|
-
|
|
22
|
-
class Setting extends FunFieldValueBase {
|
|
23
|
-
fg = this.fb.group({
|
|
24
|
-
...baseFbConfig,
|
|
25
|
-
...valueFbConfig,
|
|
26
|
-
max: [],
|
|
27
|
-
min: [],
|
|
28
|
-
step: [undefined, FormValidators.requiredFun],
|
|
29
|
-
precision: [],
|
|
30
|
-
controls: [undefined, FormValidators.requiredFun],
|
|
31
|
-
placeholder: [],
|
|
32
|
-
variant: [undefined, FormValidators.requiredFun],
|
|
33
|
-
size: [undefined, FormValidators.requiredFun],
|
|
34
|
-
align: [undefined, FormValidators.requiredFun],
|
|
35
|
-
});
|
|
36
|
-
funFields = {
|
|
37
|
-
...baseFunField,
|
|
38
|
-
...valueFunField,
|
|
39
|
-
max: {
|
|
40
|
-
defaultValue: undefined
|
|
41
|
-
},
|
|
42
|
-
min: {
|
|
43
|
-
defaultValue: undefined
|
|
44
|
-
},
|
|
45
|
-
step: {
|
|
46
|
-
defaultValue: 1
|
|
47
|
-
},
|
|
48
|
-
precision: {
|
|
49
|
-
defaultValue: undefined
|
|
50
|
-
},
|
|
51
|
-
controls: {
|
|
52
|
-
defaultValue: true
|
|
53
|
-
},
|
|
54
|
-
placeholder: {
|
|
55
|
-
defaultValue: ""
|
|
56
|
-
},
|
|
57
|
-
variant: {
|
|
58
|
-
defaultValue: "outlined"
|
|
59
|
-
},
|
|
60
|
-
size: {
|
|
61
|
-
defaultValue: "default"
|
|
62
|
-
},
|
|
63
|
-
align: {
|
|
64
|
-
defaultValue: "left"
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: Setting, isStandalone: true, selector: "axis-design-input-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u8F93\u5165\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5C0F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8C03\u6574\u6B65\u957F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5C0F\u6570\u7CBE\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u589E\u51CF\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BF9\u9F50\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">\u5DE6</label>\n <label nz-radio-button nzValue=\"center\">\u4E2D</label>\n <label nz-radio-button nzValue=\"right\">\u53F3</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i4.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i5.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i5.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i6.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i6.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i6.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i6.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { 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: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i8.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i8.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i9.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i9.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
|
-
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Setting, decorators: [{
|
|
71
|
-
type: Component,
|
|
72
|
-
args: [{ selector: 'axis-design-input-setting', imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u8F93\u5165\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5C0F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8C03\u6574\u6B65\u957F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5C0F\u6570\u7CBE\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u589E\u51CF\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BF9\u9F50\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">\u5DE6</label>\n <label nz-radio-button nzValue=\"center\">\u4E2D</label>\n <label nz-radio-button nzValue=\"right\">\u53F3</label>\n </nz-radio-group>\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>" }]
|
|
73
|
-
}] });
|
|
74
|
-
|
|
75
|
-
const Config = {
|
|
76
|
-
componentName: "数值输入框",
|
|
77
|
-
buildOptionsNodes(nextInfo) {
|
|
78
|
-
return {
|
|
79
|
-
treeNode: new OptionsNode({
|
|
80
|
-
parentId: nextInfo.parentId,
|
|
81
|
-
scopeId: nextInfo.scopeId,
|
|
82
|
-
name: "数值输入框",
|
|
83
|
-
canSetting: true,
|
|
84
|
-
canDrag: true,
|
|
85
|
-
dragType: "component",
|
|
86
|
-
parentObj: nextInfo.parentObject,
|
|
87
|
-
indexOfParentObj: nextInfo.indexOfParent,
|
|
88
|
-
rootOptions: nextInfo.currentObject,
|
|
89
|
-
settingType: Setting,
|
|
90
|
-
contextMenu: SimpleMenu,
|
|
91
|
-
icon: "field-number",
|
|
92
|
-
}),
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
bindElementsOptionsNode(element, options) {
|
|
96
|
-
return {
|
|
97
|
-
[options.id]: { element }
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Generated bundle index. Do not edit.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
export { Config };
|
|
107
|
-
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-number-design.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number-design.mjs","sources":["../../../axis-components/input-number/design/setting/setting.ts","../../../axis-components/input-number/design/setting/setting.html","../../../axis-components/input-number/design/config.ts","../../../axis-components/input-number/design/ngx-axis-appforge-axis-components-input-number-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 { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-input-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule],\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 max: [],\n min: [],\n step: [undefined, FormValidators.requiredFun],\n precision: [],\n controls: [undefined, FormValidators.requiredFun],\n placeholder: [],\n variant: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n align: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n max: {\n defaultValue: undefined\n },\n min: {\n defaultValue: undefined\n },\n step: {\n defaultValue: 1\n },\n precision: {\n defaultValue: undefined\n },\n controls: {\n defaultValue: true\n },\n placeholder: {\n defaultValue: \"\"\n },\n variant: {\n defaultValue: \"outlined\"\n },\n size: {\n defaultValue: \"default\"\n },\n align: {\n defaultValue: \"left\"\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=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 最小值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 调整步长\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 小数精度\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"外观设置\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 增减按钮\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 占位符\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 形态变体\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"外边框\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"无边框\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"填充\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"下边线\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">小</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"large\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 对齐方式\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">左</label>\n <label nz-radio-button nzValue=\"center\">中</label>\n <label nz-radio-button nzValue=\"right\">右</label>\n </nz-radio-group>\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, 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: \"field-number\",\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":";;;;;;;;;;;;;;;;;;;;;AAkBM,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,GAAG,EAAE,EAAE;AACP,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WA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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,cAAc;aACvB,CAAC;SACL;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;KACJ;;;AC5BL;;AAEG;;;;"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
|
|
4
|
-
import * as i1 from 'ng-zorro-antd/input-number';
|
|
5
|
-
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
6
|
-
import * as i2 from '@angular/forms';
|
|
7
|
-
import { FormsModule } from '@angular/forms';
|
|
8
|
-
import * as i3 from '@angular/common';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
|
|
11
|
-
class InputNumberOptions extends ValueAccessOptions {
|
|
12
|
-
max = signal(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
13
|
-
min = signal(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
14
|
-
step = signal(1, ...(ngDevMode ? [{ debugName: "step" }] : []));
|
|
15
|
-
precision = signal(null, ...(ngDevMode ? [{ debugName: "precision" }] : []));
|
|
16
|
-
controls = signal(true, ...(ngDevMode ? [{ debugName: "controls" }] : []));
|
|
17
|
-
placeholder = signal("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
18
|
-
variant = signal("outlined", ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
19
|
-
size = signal('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
20
|
-
align = signal('left', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
class InputNumber extends ValueAccess {
|
|
24
|
-
options = new InputNumberOptions();
|
|
25
|
-
max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max(), ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
26
|
-
min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min(), ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
27
|
-
digitsInfo = computed(() => {
|
|
28
|
-
if (this.options.precision() == null) {
|
|
29
|
-
return "1.0";
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return `1.0-${this.options.precision()}`;
|
|
33
|
-
}
|
|
34
|
-
}, ...(ngDevMode ? [{ debugName: "digitsInfo" }] : []));
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: InputNumber, isStandalone: true, selector: "axis-input-number", usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"], dependencies: [{ kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i1.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: InputNumber, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'axis-input-number', imports: [NzInputNumberModule, FormsModule, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"] }]
|
|
41
|
-
}] });
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Generated bundle index. Do not edit.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
export { InputNumber };
|
|
48
|
-
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-number.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number.mjs","sources":["../../../axis-components/input-number/input-number.options.ts","../../../axis-components/input-number/input-number.ts","../../../axis-components/input-number/input-number.html","../../../axis-components/input-number/ngx-axis-appforge-axis-components-input-number.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputNumberOptions extends ValueAccessOptions {\n\n readonly max = signal<number | null>(null);\n readonly min = signal<number | null>(null);\n readonly step = signal(1);\n readonly precision = signal<number | null>(null);\n\n readonly controls = signal(true);\n readonly placeholder = signal(\"\");\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n readonly size = signal<'large' | 'default' | 'small'>('default');\n readonly align = signal<\"left\" | \"center\" | \"right\">('left');\n\n}","import { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { InputNumberOptions } from './input-number.options';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'axis-input-number',\n imports: [NzInputNumberModule, FormsModule, CommonModule],\n templateUrl: './input-number.html',\n styleUrl: './input-number.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputNumber extends ValueAccess<InputNumberOptions> {\n\n override options: InputNumberOptions = new InputNumberOptions();\n\n readonly max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max());\n readonly min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min());\n\n readonly digitsInfo = computed(() => {\n if (this.options.precision() == null) {\n return \"1.0\"\n } else {\n return `1.0-${this.options.precision()}`;\n }\n })\n\n}\n","@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-number';\n"],"names":[],"mappings":";;;;;;;;;;AAGM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAE7C,IAAA,GAAG,GAAG,MAAM,CAAgB,IAAI,+CAAC;AACjC,IAAA,GAAG,GAAG,MAAM,CAAgB,IAAI,+CAAC;AACjC,IAAA,IAAI,GAAG,MAAM,CAAC,CAAC,gDAAC;AAChB,IAAA,SAAS,GAAG,MAAM,CAAgB,IAAI,qDAAC;AAEvC,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,oDAAC;AACvB,IAAA,WAAW,GAAG,MAAM,CAAC,EAAE,uDAAC;AACxB,IAAA,OAAO,GAAG,MAAM,CAAsD,UAAU,mDAAC;AACjF,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,KAAK,GAAG,MAAM,CAA8B,MAAM,iDAAC;AAE/D;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