ngx-axis-appforge 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axis-components/badge/design/index.d.ts +5 -0
- package/axis-components/badge/index.d.ts +27 -0
- package/axis-components/button/design/index.d.ts +5 -0
- package/axis-components/button/index.d.ts +32 -0
- package/axis-components/desc/design/index.d.ts +5 -0
- package/axis-components/desc/index.d.ts +30 -0
- package/axis-components/design/design/index.d.ts +5 -0
- package/axis-components/design/index.d.ts +246 -0
- package/axis-components/dynamic-container/design/index.d.ts +5 -0
- package/axis-components/dynamic-container/index.d.ts +14 -0
- package/axis-components/editor/index.d.ts +33 -0
- package/axis-components/flex/design/index.d.ts +5 -0
- package/axis-components/flex/index.d.ts +20 -0
- package/axis-components/form/design/index.d.ts +5 -0
- package/axis-components/form/index.d.ts +30 -0
- package/axis-components/form-item/design/index.d.ts +5 -0
- package/axis-components/form-item/index.d.ts +34 -0
- package/axis-components/icon/design/index.d.ts +5 -0
- package/axis-components/icon/index.d.ts +16 -0
- package/axis-components/image/design/index.d.ts +5 -0
- package/axis-components/image/index.d.ts +16 -0
- package/axis-components/index.d.ts +5 -0
- package/axis-components/input/design/index.d.ts +5 -0
- package/axis-components/input/index.d.ts +27 -0
- package/axis-components/input-component/design/index.d.ts +5 -0
- package/axis-components/input-component/index.d.ts +33 -0
- package/axis-components/input-icon/design/index.d.ts +5 -0
- package/axis-components/input-icon/index.d.ts +24 -0
- package/axis-components/input-json/design/index.d.ts +5 -0
- package/axis-components/input-json/index.d.ts +24 -0
- package/axis-components/input-number/design/index.d.ts +5 -0
- package/axis-components/input-number/index.d.ts +25 -0
- package/axis-components/modal/design/index.d.ts +5 -0
- package/axis-components/modal/index.d.ts +33 -0
- package/axis-components/scope/design/index.d.ts +5 -0
- package/axis-components/scope/index.d.ts +24 -0
- package/axis-components/single-selector/design/index.d.ts +5 -0
- package/axis-components/single-selector/index.d.ts +37 -0
- package/axis-components/splitter/design/index.d.ts +5 -0
- package/axis-components/splitter/index.d.ts +28 -0
- package/axis-components/table/design/index.d.ts +5 -0
- package/axis-components/table/index.d.ts +183 -0
- package/axis-components/text/design/index.d.ts +5 -0
- package/axis-components/text/index.d.ts +24 -0
- package/axis-components/textarea/design/index.d.ts +5 -0
- package/axis-components/textarea/index.d.ts +25 -0
- package/axis-components/tree-selector/design/index.d.ts +5 -0
- package/axis-components/tree-selector/index.d.ts +76 -0
- package/axis-components/upload/design/index.d.ts +5 -0
- package/axis-components/upload/index.d.ts +51 -0
- package/core/index.d.ts +773 -0
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +191 -0
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +39 -0
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +116 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +78 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +224 -0
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +51 -0
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +69 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +1746 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +65 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +26 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +99 -0
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +98 -0
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +31 -0
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +108 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +242 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +144 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +132 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +88 -0
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +28 -0
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +75 -0
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +43 -0
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +70 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +61 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +142 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +71 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +64 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +60 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +70 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +107 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +48 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +68 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +181 -0
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +74 -0
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +330 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +55 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +120 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +102 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +178 -0
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +49 -0
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +442 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +452 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +95 -0
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +64 -0
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +94 -0
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +64 -0
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +222 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +295 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +146 -0
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +156 -0
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +988 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-core.mjs +3169 -0
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -0
- package/{providers/providers.ts → fesm2022/ngx-axis-appforge-providers.mjs} +16 -8
- package/fesm2022/ngx-axis-appforge-providers.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge.mjs +6 -0
- package/fesm2022/ngx-axis-appforge.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/package.json +217 -16
- package/providers/index.d.ts +13 -0
- package/.editorconfig +0 -17
- package/angular.json +0 -40
- package/axis-components/badge/badge.css +0 -3
- package/axis-components/badge/badge.html +0 -20
- package/axis-components/badge/badge.options.ts +0 -23
- package/axis-components/badge/badge.ts +0 -17
- package/axis-components/badge/design/config.ts +0 -52
- package/axis-components/badge/design/ng-package.json +0 -5
- package/axis-components/badge/design/setting/setting.css +0 -0
- package/axis-components/badge/design/setting/setting.html +0 -181
- package/axis-components/badge/design/setting/setting.ts +0 -126
- package/axis-components/badge/ng-package.json +0 -5
- package/axis-components/button/button.css +0 -3
- package/axis-components/button/button.html +0 -13
- package/axis-components/button/button.options.ts +0 -17
- package/axis-components/button/button.ts +0 -56
- package/axis-components/button/design/config.ts +0 -30
- package/axis-components/button/design/ng-package.json +0 -5
- package/axis-components/button/design/setting/setting.css +0 -0
- package/axis-components/button/design/setting/setting.html +0 -151
- package/axis-components/button/design/setting/setting.ts +0 -76
- package/axis-components/button/ng-package.json +0 -5
- package/axis-components/cmp-map.ts +0 -52
- package/axis-components/cmplib.ts +0 -9
- package/axis-components/desc/desc.css +0 -8
- package/axis-components/desc/desc.html +0 -19
- package/axis-components/desc/desc.options.ts +0 -24
- package/axis-components/desc/desc.ts +0 -29
- package/axis-components/desc/design/config.ts +0 -113
- 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 +0 -47
- package/axis-components/desc/design/desc-item-setting/desc-item-setting.ts +0 -40
- 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 +0 -9
- package/axis-components/desc/design/desc-items-menu/desc-items-menu.ts +0 -23
- package/axis-components/desc/design/desc-setting/desc-setting.css +0 -0
- package/axis-components/desc/design/desc-setting/desc-setting.html +0 -76
- package/axis-components/desc/design/desc-setting/desc-setting.ts +0 -51
- package/axis-components/desc/design/ng-package.json +0 -5
- package/axis-components/desc/ng-package.json +0 -5
- package/axis-components/design/cmplib/cmplib.css +0 -5
- package/axis-components/design/cmplib/cmplib.html +0 -52
- package/axis-components/design/cmplib/cmplib.ts +0 -96
- package/axis-components/design/design/config.ts +0 -29
- package/axis-components/design/design/ng-package.json +0 -5
- package/axis-components/design/design/setting/setting.css +0 -0
- package/axis-components/design/design/setting/setting.html +0 -33
- package/axis-components/design/design/setting/setting.ts +0 -33
- package/axis-components/design/design.css +0 -15
- package/axis-components/design/design.html +0 -51
- package/axis-components/design/design.options.ts +0 -9
- package/axis-components/design/design.ts +0 -509
- package/axis-components/design/ng-package.json +0 -5
- package/axis-components/design/preview/drag.service.ts +0 -148
- package/axis-components/design/preview/drop-handler.ts +0 -56
- package/axis-components/design/preview/preview.css +0 -3
- package/axis-components/design/preview/preview.html +0 -1
- package/axis-components/design/preview/preview.ts +0 -250
- package/axis-components/design/preview/select.service.ts +0 -140
- package/axis-components/design/shortcut-key.ts +0 -160
- package/axis-components/design/toolbar/toolbar.css +0 -24
- package/axis-components/design/toolbar/toolbar.html +0 -96
- package/axis-components/design/toolbar/toolbar.ts +0 -65
- package/axis-components/design/tree/drag-drop.ts +0 -125
- package/axis-components/design/tree/tree.css +0 -30
- package/axis-components/design/tree/tree.html +0 -49
- package/axis-components/design/tree/tree.ts +0 -292
- package/axis-components/dynamic-container/design/config.ts +0 -30
- package/axis-components/dynamic-container/design/ng-package.json +0 -5
- package/axis-components/dynamic-container/design/setting/setting.css +0 -0
- package/axis-components/dynamic-container/design/setting/setting.html +0 -20
- package/axis-components/dynamic-container/design/setting/setting.ts +0 -30
- package/axis-components/dynamic-container/dynamic-container.css +0 -3
- package/axis-components/dynamic-container/dynamic-container.html +0 -2
- package/axis-components/dynamic-container/dynamic-container.options.ts +0 -6
- package/axis-components/dynamic-container/dynamic-container.ts +0 -17
- package/axis-components/dynamic-container/ng-package.json +0 -5
- package/axis-components/editor/editor.css +0 -47
- package/axis-components/editor/editor.html +0 -10
- package/axis-components/editor/editor.options.ts +0 -10
- package/axis-components/editor/editor.ts +0 -86
- package/axis-components/editor/ng-package.json +0 -5
- package/axis-components/examples/examples/badge.ts +0 -17
- package/axis-components/examples/examples/button.ts +0 -38
- package/axis-components/examples/examples/desc.ts +0 -31
- package/axis-components/examples/examples/design.ts +0 -15
- package/axis-components/examples/examples/dynamic-container.ts +0 -21
- package/axis-components/examples/examples/flex.ts +0 -18
- package/axis-components/examples/examples/form-item.ts +0 -39
- package/axis-components/examples/examples/form.ts +0 -315
- package/axis-components/examples/examples/icon.ts +0 -16
- package/axis-components/examples/examples/image.ts +0 -15
- package/axis-components/examples/examples/input-component.ts +0 -15
- package/axis-components/examples/examples/input-icon.ts +0 -15
- package/axis-components/examples/examples/input-json.ts +0 -15
- package/axis-components/examples/examples/input-number.ts +0 -15
- package/axis-components/examples/examples/input.ts +0 -15
- package/axis-components/examples/examples/modal.ts +0 -15
- package/axis-components/examples/examples/scope.ts +0 -17
- package/axis-components/examples/examples/single-selector.ts +0 -25
- package/axis-components/examples/examples/splitter.ts +0 -36
- package/axis-components/examples/examples/table.ts +0 -126
- package/axis-components/examples/examples/text.ts +0 -15
- package/axis-components/examples/examples/textarea.ts +0 -15
- package/axis-components/examples/examples/tree-selector.ts +0 -35
- package/axis-components/examples/examples/upload.ts +0 -15
- package/axis-components/examples/examples.ts +0 -73
- package/axis-components/flex/design/config.ts +0 -49
- package/axis-components/flex/design/ng-package.json +0 -5
- package/axis-components/flex/design/setting/setting.css +0 -0
- package/axis-components/flex/design/setting/setting.html +0 -72
- package/axis-components/flex/design/setting/setting.ts +0 -43
- package/axis-components/flex/flex.css +0 -5
- package/axis-components/flex/flex.html +0 -6
- package/axis-components/flex/flex.options.ts +0 -12
- package/axis-components/flex/flex.ts +0 -15
- package/axis-components/flex/ng-package.json +0 -5
- package/axis-components/form/design/config.ts +0 -71
- package/axis-components/form/design/ng-package.json +0 -5
- package/axis-components/form/design/setting/setting.css +0 -0
- package/axis-components/form/design/setting/setting.html +0 -21
- package/axis-components/form/design/setting/setting.ts +0 -31
- package/axis-components/form/form.css +0 -3
- package/axis-components/form/form.html +0 -3
- package/axis-components/form/form.options.ts +0 -9
- package/axis-components/form/form.ts +0 -121
- package/axis-components/form/ng-package.json +0 -5
- package/axis-components/form-item/design/config.ts +0 -43
- package/axis-components/form-item/design/ng-package.json +0 -5
- package/axis-components/form-item/design/setting/input-validator/input-validator.css +0 -8
- package/axis-components/form-item/design/setting/input-validator/input-validator.html +0 -140
- package/axis-components/form-item/design/setting/input-validator/input-validator.ts +0 -158
- package/axis-components/form-item/design/setting/setting.css +0 -0
- package/axis-components/form-item/design/setting/setting.html +0 -39
- package/axis-components/form-item/design/setting/setting.ts +0 -40
- package/axis-components/form-item/form-item.css +0 -4
- package/axis-components/form-item/form-item.html +0 -16
- package/axis-components/form-item/form-item.options.ts +0 -12
- package/axis-components/form-item/form-item.ts +0 -128
- package/axis-components/form-item/ng-package.json +0 -5
- package/axis-components/icon/design/config.ts +0 -29
- package/axis-components/icon/design/ng-package.json +0 -5
- package/axis-components/icon/design/setting/setting.css +0 -0
- package/axis-components/icon/design/setting/setting.html +0 -67
- package/axis-components/icon/design/setting/setting.ts +0 -48
- package/axis-components/icon/icon.css +0 -0
- package/axis-components/icon/icon.html +0 -7
- package/axis-components/icon/icon.options.ts +0 -10
- package/axis-components/icon/icon.ts +0 -17
- package/axis-components/icon/ng-package.json +0 -5
- package/axis-components/image/design/config.ts +0 -30
- package/axis-components/image/design/ng-package.json +0 -5
- package/axis-components/image/design/setting/setting.css +0 -0
- package/axis-components/image/design/setting/setting.html +0 -42
- package/axis-components/image/design/setting/setting.ts +0 -37
- package/axis-components/image/image.css +0 -58
- package/axis-components/image/image.html +0 -14
- package/axis-components/image/image.options.ts +0 -8
- package/axis-components/image/image.ts +0 -29
- package/axis-components/image/ng-package.json +0 -5
- package/axis-components/input/design/config.ts +0 -80
- package/axis-components/input/design/ng-package.json +0 -5
- package/axis-components/input/design/setting/setting.css +0 -0
- package/axis-components/input/design/setting/setting.html +0 -79
- package/axis-components/input/design/setting/setting.ts +0 -51
- package/axis-components/input/input.css +0 -4
- package/axis-components/input/input.html +0 -32
- package/axis-components/input/input.options.ts +0 -14
- package/axis-components/input/input.ts +0 -53
- package/axis-components/input/ng-package.json +0 -5
- package/axis-components/input-component/design/config.ts +0 -30
- package/axis-components/input-component/design/ng-package.json +0 -5
- package/axis-components/input-component/design/setting/setting.css +0 -0
- package/axis-components/input-component/design/setting/setting.html +0 -33
- package/axis-components/input-component/design/setting/setting.ts +0 -33
- package/axis-components/input-component/input-component.css +0 -4
- package/axis-components/input-component/input-component.html +0 -25
- package/axis-components/input-component/input-component.options.ts +0 -7
- package/axis-components/input-component/input-component.ts +0 -50
- package/axis-components/input-component/ng-package.json +0 -5
- package/axis-components/input-icon/design/config.ts +0 -30
- package/axis-components/input-icon/design/ng-package.json +0 -5
- package/axis-components/input-icon/design/setting/setting.css +0 -0
- package/axis-components/input-icon/design/setting/setting.html +0 -29
- package/axis-components/input-icon/design/setting/setting.ts +0 -33
- package/axis-components/input-icon/input-icon.css +0 -4
- package/axis-components/input-icon/input-icon.html +0 -70
- package/axis-components/input-icon/input-icon.options.ts +0 -7
- package/axis-components/input-icon/input-icon.ts +0 -51
- package/axis-components/input-icon/ng-package.json +0 -5
- package/axis-components/input-json/design/config.ts +0 -29
- package/axis-components/input-json/design/ng-package.json +0 -5
- package/axis-components/input-json/design/setting/setting.css +0 -0
- package/axis-components/input-json/design/setting/setting.html +0 -7
- package/axis-components/input-json/design/setting/setting.ts +0 -26
- package/axis-components/input-json/input-json.css +0 -4
- package/axis-components/input-json/input-json.html +0 -19
- package/axis-components/input-json/input-json.ts +0 -67
- package/axis-components/input-json/ng-package.json +0 -5
- package/axis-components/input-number/design/config.ts +0 -30
- package/axis-components/input-number/design/ng-package.json +0 -5
- package/axis-components/input-number/design/setting/setting.css +0 -0
- package/axis-components/input-number/design/setting/setting.html +0 -118
- package/axis-components/input-number/design/setting/setting.ts +0 -66
- package/axis-components/input-number/input-number.css +0 -22
- package/axis-components/input-number/input-number.html +0 -11
- package/axis-components/input-number/input-number.options.ts +0 -17
- package/axis-components/input-number/input-number.ts +0 -30
- package/axis-components/input-number/ng-package.json +0 -5
- package/axis-components/modal/design/config.ts +0 -50
- package/axis-components/modal/design/ng-package.json +0 -5
- 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 +0 -15
- package/axis-components/modal/design/set-modal-visible-handler/set-modal-visible-handler.ts +0 -34
- package/axis-components/modal/design/setting/setting.css +0 -0
- package/axis-components/modal/design/setting/setting.html +0 -139
- package/axis-components/modal/design/setting/setting.ts +0 -92
- package/axis-components/modal/modal.css +0 -0
- package/axis-components/modal/modal.html +0 -7
- package/axis-components/modal/modal.options.ts +0 -20
- package/axis-components/modal/modal.ts +0 -57
- package/axis-components/modal/ng-package.json +0 -5
- package/axis-components/ng-package.json +0 -5
- package/axis-components/scope/design/config.ts +0 -59
- package/axis-components/scope/design/ng-package.json +0 -5
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.css +0 -28
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.html +0 -188
- package/axis-components/scope/design/setting/datasource-editor/datasource-editor.ts +0 -245
- package/axis-components/scope/design/setting/setting.css +0 -0
- package/axis-components/scope/design/setting/setting.html +0 -19
- package/axis-components/scope/design/setting/setting.ts +0 -30
- package/axis-components/scope/ng-package.json +0 -5
- package/axis-components/scope/scope.css +0 -6
- package/axis-components/scope/scope.html +0 -4
- package/axis-components/scope/scope.options.ts +0 -8
- package/axis-components/scope/scope.ts +0 -48
- package/axis-components/single-selector/design/config.ts +0 -30
- package/axis-components/single-selector/design/ng-package.json +0 -5
- package/axis-components/single-selector/design/setting/setting.css +0 -0
- package/axis-components/single-selector/design/setting/setting.html +0 -164
- package/axis-components/single-selector/design/setting/setting.ts +0 -80
- package/axis-components/single-selector/ng-package.json +0 -5
- package/axis-components/single-selector/single-selector.css +0 -8
- package/axis-components/single-selector/single-selector.html +0 -51
- package/axis-components/single-selector/single-selector.options.ts +0 -22
- package/axis-components/single-selector/single-selector.ts +0 -80
- package/axis-components/splitter/design/config.ts +0 -84
- package/axis-components/splitter/design/ng-package.json +0 -5
- package/axis-components/splitter/design/splitter-menu/splitter-menu.css +0 -0
- package/axis-components/splitter/design/splitter-menu/splitter-menu.html +0 -10
- package/axis-components/splitter/design/splitter-menu/splitter-menu.ts +0 -22
- 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 +0 -66
- package/axis-components/splitter/design/splitter-panel-setting/splitter-panel-setting.ts +0 -47
- package/axis-components/splitter/design/splitter-setting/splitter-setting.css +0 -0
- package/axis-components/splitter/design/splitter-setting/splitter-setting.html +0 -28
- package/axis-components/splitter/design/splitter-setting/splitter-setting.ts +0 -30
- package/axis-components/splitter/ng-package.json +0 -5
- package/axis-components/splitter/splitter.css +0 -7
- package/axis-components/splitter/splitter.html +0 -12
- package/axis-components/splitter/splitter.options.ts +0 -18
- package/axis-components/splitter/splitter.ts +0 -29
- package/axis-components/table/design/config.ts +0 -147
- package/axis-components/table/design/ng-package.json +0 -5
- 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 +0 -259
- package/axis-components/table/design/table-field-setting/table-field-setting.ts +0 -105
- 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 +0 -9
- package/axis-components/table/design/table-fields-menu/table-fields-menu.ts +0 -24
- package/axis-components/table/design/table-setting/table-setting.css +0 -0
- package/axis-components/table/design/table-setting/table-setting.html +0 -417
- package/axis-components/table/design/table-setting/table-setting.ts +0 -173
- package/axis-components/table/expand.ts +0 -12
- package/axis-components/table/ng-package.json +0 -5
- package/axis-components/table/select.ts +0 -66
- package/axis-components/table/table-setter/table-setter.css +0 -55
- package/axis-components/table/table-setter/table-setter.html +0 -38
- package/axis-components/table/table-setter/table-setter.ts +0 -121
- package/axis-components/table/table.css +0 -5
- package/axis-components/table/table.html +0 -191
- package/axis-components/table/table.options.ts +0 -72
- package/axis-components/table/table.ts +0 -204
- package/axis-components/text/design/config.ts +0 -30
- package/axis-components/text/design/ng-package.json +0 -5
- package/axis-components/text/design/setting/setting.css +0 -0
- package/axis-components/text/design/setting/setting.html +0 -84
- package/axis-components/text/design/setting/setting.ts +0 -54
- package/axis-components/text/ng-package.json +0 -5
- package/axis-components/text/text.css +0 -3
- package/axis-components/text/text.html +0 -17
- package/axis-components/text/text.options.ts +0 -10
- package/axis-components/text/text.ts +0 -54
- package/axis-components/textarea/design/config.ts +0 -30
- package/axis-components/textarea/design/ng-package.json +0 -5
- package/axis-components/textarea/design/setting/setting.css +0 -0
- package/axis-components/textarea/design/setting/setting.html +0 -76
- package/axis-components/textarea/design/setting/setting.ts +0 -55
- package/axis-components/textarea/ng-package.json +0 -5
- package/axis-components/textarea/textarea.css +0 -4
- package/axis-components/textarea/textarea.html +0 -11
- package/axis-components/textarea/textarea.options.ts +0 -13
- package/axis-components/textarea/textarea.ts +0 -49
- package/axis-components/tree-selector/design/config.ts +0 -55
- package/axis-components/tree-selector/design/ng-package.json +0 -5
- 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 +0 -9
- package/axis-components/tree-selector/design/tree-selector-menu/tree-selector-menu.ts +0 -26
- 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 +0 -80
- package/axis-components/tree-selector/design/tree-selector-menu-setting/tree-selector-menu-setting.ts +0 -58
- 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 +0 -235
- package/axis-components/tree-selector/design/tree-selector-setting/tree-selector-setting.ts +0 -87
- package/axis-components/tree-selector/ng-package.json +0 -5
- package/axis-components/tree-selector/tree-selector.css +0 -43
- package/axis-components/tree-selector/tree-selector.html +0 -65
- package/axis-components/tree-selector/tree-selector.options.ts +0 -50
- package/axis-components/tree-selector/tree-selector.ts +0 -252
- package/axis-components/upload/design/config.ts +0 -37
- package/axis-components/upload/design/ng-package.json +0 -5
- package/axis-components/upload/design/setting/setting.css +0 -0
- package/axis-components/upload/design/setting/setting.html +0 -288
- package/axis-components/upload/design/setting/setting.ts +0 -96
- package/axis-components/upload/ng-package.json +0 -5
- package/axis-components/upload/upload.css +0 -3
- package/axis-components/upload/upload.html +0 -36
- package/axis-components/upload/upload.options.ts +0 -29
- package/axis-components/upload/upload.ts +0 -130
- package/core/base/base-menu.ts +0 -22
- package/core/base/base.ts +0 -143
- package/core/base/design-builder.ts +0 -8
- package/core/base/funfield-base.ts +0 -106
- package/core/base/funfield-value-base.ts +0 -53
- package/core/base/value-access.ts +0 -70
- package/core/directives/dynamic.ts +0 -216
- package/core/directives/scope.ts +0 -432
- package/core/models/api.options.ts +0 -5
- package/core/models/base.options.ts +0 -11
- package/core/models/cmplib.ts +0 -7
- package/core/models/data-source.options.ts +0 -11
- package/core/models/data.options.ts +0 -6
- package/core/models/design-build.ts +0 -26
- package/core/models/design-config.ts +0 -14
- package/core/models/design-tree-node.ts +0 -16
- package/core/models/event-desc.ts +0 -28
- package/core/models/event-handler.ts +0 -6
- package/core/models/event.options.ts +0 -14
- package/core/models/examples.ts +0 -21
- package/core/models/form-registe.options.ts +0 -12
- package/core/models/fun-field.options.ts +0 -6
- package/core/models/initobs.ts +0 -8
- package/core/models/options-node.ts +0 -149
- package/core/models/static-data-source.options.ts +0 -4
- package/core/models/trigge-events.options.ts +0 -3
- package/core/models/value-access.options.ts +0 -10
- package/core/ng-package.json +0 -5
- package/core/pipes/how-long.pipe.ts +0 -69
- package/core/public-api.ts +0 -39
- package/core/share/api-handler/api-handler.css +0 -0
- package/core/share/api-handler/api-handler.html +0 -38
- package/core/share/api-handler/api-handler.ts +0 -51
- package/core/share/array-filter-handler/array-filter-handler.css +0 -0
- package/core/share/array-filter-handler/array-filter-handler.html +0 -26
- package/core/share/array-filter-handler/array-filter-handler.ts +0 -65
- package/core/share/array-filter-handler/input-filter-options/filter-options.css +0 -19
- package/core/share/array-filter-handler/input-filter-options/filter-options.html +0 -57
- package/core/share/array-filter-handler/input-filter-options/filter-options.ts +0 -100
- package/core/share/base-design-setting/base-design-setting.css +0 -0
- package/core/share/base-design-setting/base-design-setting.html +0 -50
- package/core/share/base-design-setting/base-design-setting.ts +0 -55
- package/core/share/base-event-handler-descs.ts +0 -100
- package/core/share/common-menu/common-menu.css +0 -0
- package/core/share/common-menu/common-menu.html +0 -21
- package/core/share/common-menu/common-menu.ts +0 -73
- package/core/share/data-handler/data-handler.css +0 -0
- package/core/share/data-handler/data-handler.html +0 -13
- package/core/share/data-handler/data-handler.ts +0 -39
- package/core/share/events-handler.service.ts +0 -185
- package/core/share/fun-field/fun-field.css +0 -55
- package/core/share/fun-field/fun-field.html +0 -175
- package/core/share/fun-field/fun-field.ts +0 -363
- package/core/share/input-trigger/input-trigger.css +0 -16
- package/core/share/input-trigger/input-trigger.html +0 -114
- package/core/share/input-trigger/input-trigger.ts +0 -394
- package/core/share/msg-tip-handler/msg-tip-handler.css +0 -0
- package/core/share/msg-tip-handler/msg-tip-handler.html +0 -40
- package/core/share/msg-tip-handler/msg-tip-handler.ts +0 -46
- 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 +0 -29
- package/core/share/refresh-data-source-handler/refresh-data-source-handler.ts +0 -55
- package/core/share/route-handler/route-handler.css +0 -0
- package/core/share/route-handler/route-handler.html +0 -49
- package/core/share/route-handler/route-handler.ts +0 -51
- 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 +0 -23
- package/core/share/set-data-source-handler/set-data-source-handler.ts +0 -44
- package/core/share/simple-menu/simple-menu.css +0 -0
- package/core/share/simple-menu/simple-menu.html +0 -5
- package/core/share/simple-menu/simple-menu.ts +0 -17
- package/core/share/tokens.ts +0 -29
- package/core/share/value-design-setting/value-design-setting.css +0 -0
- package/core/share/value-design-setting/value-design-setting.html +0 -48
- package/core/share/value-design-setting/value-design-setting.ts +0 -54
- package/core/utils/code-name.utils.ts +0 -19
- package/core/utils/components-loader.ts +0 -29
- package/core/utils/declaration.utils.ts +0 -38
- package/core/utils/dynamic.util.ts +0 -57
- package/core/utils/form-validators.ts +0 -160
- package/core/utils/form.util.ts +0 -25
- package/core/utils/http.utils.ts +0 -8
- package/core/utils/object.utils.ts +0 -182
- package/core/utils/scripts-loader.ts +0 -25
- package/ng-package.json +0 -13
- package/providers/ng-package.json +0 -5
- package/providers/public-api.ts +0 -1
- package/public-api.ts +0 -1
- package/tsconfig.json +0 -35
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -11
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<form nz-form [formGroup]="fg">
|
|
2
|
-
<nz-form-item>
|
|
3
|
-
<nz-form-label [nzSpan]="6" nzRequired>
|
|
4
|
-
数据源名
|
|
5
|
-
</nz-form-label>
|
|
6
|
-
<nz-form-control nzSpan="18">
|
|
7
|
-
<axis-fun-field formControlName="name" [noListen]="noListen()">
|
|
8
|
-
<input nz-input ngModel [ngModelOptions]="{standalone:true}" />
|
|
9
|
-
</axis-fun-field>
|
|
10
|
-
</nz-form-control>
|
|
11
|
-
</nz-form-item>
|
|
12
|
-
<nz-form-item>
|
|
13
|
-
<nz-form-label [nzSpan]="6">
|
|
14
|
-
数据
|
|
15
|
-
</nz-form-label>
|
|
16
|
-
<nz-form-control nzSpan="18">
|
|
17
|
-
<axis-fun-field formControlName="data" [noListen]="noListen()">
|
|
18
|
-
<ng-container [axisDynamic]="{component:'axis-components/input-json',inuse:true}" [standalone]="true"
|
|
19
|
-
ngModel [ngModelOptions]="{standalone:true}"></ng-container>
|
|
20
|
-
</axis-fun-field>
|
|
21
|
-
</nz-form-control>
|
|
22
|
-
</nz-form-item>
|
|
23
|
-
</form>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
4
|
-
import { FunField } from '../fun-field/fun-field';
|
|
5
|
-
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
6
|
-
import { DynamicDirective } from '../../directives/dynamic';
|
|
7
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
8
|
-
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
9
|
-
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
10
|
-
import { FunFieldValueBase } from '../../base/funfield-value-base';
|
|
11
|
-
import { FormValidators } from '../../utils/form-validators';
|
|
12
|
-
import { FunFieldOptions } from '../../models/fun-field.options';
|
|
13
|
-
import { InputTrigger } from '../input-trigger/input-trigger';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'axis-set-data-source-handler',
|
|
17
|
-
imports: [NzFormModule, ReactiveFormsModule, FunField, FormsModule, NzSelectModule, DynamicDirective, NzInputModule, NzSwitchModule, NzRadioModule],
|
|
18
|
-
templateUrl: './set-data-source-handler.html',
|
|
19
|
-
styleUrl: './set-data-source-handler.css',
|
|
20
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
|
-
providers: [
|
|
22
|
-
{
|
|
23
|
-
provide: NG_VALUE_ACCESSOR,
|
|
24
|
-
useExisting: forwardRef(() => SetDataSourceHandler),
|
|
25
|
-
multi: true
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
})
|
|
29
|
-
export class SetDataSourceHandler extends FunFieldValueBase {
|
|
30
|
-
readonly noListen = inject(InputTrigger).noListen;
|
|
31
|
-
override fg: UntypedFormGroup = this.fb.group({
|
|
32
|
-
name: [undefined, FormValidators.requiredFun],
|
|
33
|
-
data: [],
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
protected override funFields: FunFieldOptions = {
|
|
37
|
-
name: {
|
|
38
|
-
defaultValue: null,
|
|
39
|
-
},
|
|
40
|
-
data: {
|
|
41
|
-
defaultValue: null,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
}
|
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
3
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
4
|
-
import { CommonMenu } from '../common-menu/common-menu';
|
|
5
|
-
import { BaseMenu } from '../../base/base-menu';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'axis-design-simple-menu',
|
|
9
|
-
imports: [NzDropDownModule, NzIconModule, CommonMenu],
|
|
10
|
-
templateUrl: './simple-menu.html',
|
|
11
|
-
styleUrl: './simple-menu.css',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
})
|
|
14
|
-
export class SimpleMenu extends BaseMenu {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
package/core/share/tokens.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { ScopeInfo } from "../models/design-build";
|
|
3
|
-
import { OptionsNode } from "../models/options-node";
|
|
4
|
-
import { ComponentsLoader } from "../utils/components-loader";
|
|
5
|
-
import { BehaviorSubject, Observable } from "rxjs";
|
|
6
|
-
import { EventHandlerDesc, EventHandlerDescGroup } from "../models/event-desc";
|
|
7
|
-
import { RegisteFormControlOptions, RegisteValueAccessOptions } from "../models/form-registe.options";
|
|
8
|
-
import { DesignConfig } from "../models/design-config";
|
|
9
|
-
import { ExampleGroup } from "../models/examples";
|
|
10
|
-
import { EventsHandler } from "../models/event-handler";
|
|
11
|
-
|
|
12
|
-
export const AXIS_DESIGN_OPTIONS_NODE_FOR_MENU = new InjectionToken<{ current: OptionsNode, parent?: OptionsNode }>('axis.design.optionsNodeForMenu');
|
|
13
|
-
export const AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN = new InjectionToken<(scopeId?: string) => BehaviorSubject<ScopeInfo[]>>('axis.design.scopeInfosGetter');
|
|
14
|
-
export const AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN = new InjectionToken<{ component: string, componentName: string, nodes: OptionsNode[], eventHandlerDescs: { [event: string]: EventHandlerDesc } }[]>('axis.design.optionsNodesForSetting');
|
|
15
|
-
export const AXIS_DESIGN_ALL_PERMISSIONS_TOKEN = new InjectionToken<{ [permission: string]: string }>('axis.design.allPermissions');
|
|
16
|
-
export const AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN = new InjectionToken<(...tags: string[]) => Observable<{ options?: any, config?: DesignConfig }>>('axis.design.chooseComponentFunc');
|
|
17
|
-
export const AXIS_DESIGN_CMPLIBS_TOKEN = new InjectionToken<{ libName: string, lib: ExampleGroup[] }[]>('axis.design.cmplibs');
|
|
18
|
-
|
|
19
|
-
export const AXIS_COMPONENTS_TOKEN = new InjectionToken<{ [module: string]: () => Promise<any> }>('axis.components');
|
|
20
|
-
export const AXIS_COMPONENTS_LOADER_TOKEN = new InjectionToken<ComponentsLoader>('axis.componentsLoader');
|
|
21
|
-
export const AXIS_SCRIPTS_TOKEN = new InjectionToken<{ [name: string]: string }>('axis.scripts');
|
|
22
|
-
export const AXIS_EVENT_HANDLERS_TOKEN = new InjectionToken<EventsHandler[]>('axis.eventHandlers');
|
|
23
|
-
export const AXIS_EVENT_HANDLER_DESCS_TOKEN = new InjectionToken<EventHandlerDescGroup[]>('axis.eventHandlersDescs');
|
|
24
|
-
export const AXIS_INJECT_DATA_TOKEN = new InjectionToken<any>('axis.injectData');
|
|
25
|
-
export const AXIS_INJECT_FUNC_TOKEN = new InjectionToken<{ [name: string]: Function }>('axis.injectFunc');
|
|
26
|
-
export const AXIS_CURRENT_USER_PERMISSIONS_TOKEN = new InjectionToken<string[]>('axis.currentUserPermissions');
|
|
27
|
-
|
|
28
|
-
export const AXIS_FORM_REGISTE_CONTROL_TOKEN = new InjectionToken<(opt: RegisteFormControlOptions) => void>('axis.form.registeControl');
|
|
29
|
-
export const AXIS_FORMITEM_REGISTE_VALUE_ACCESS_TOKEN = new InjectionToken<(opt: RegisteValueAccessOptions) => void>('axis.form-item.registeValueAccess');
|
|
File without changes
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<form [formGroup]="fg()" nz-form>
|
|
2
|
-
<nz-collapse [nzBordered]="false">
|
|
3
|
-
<nz-collapse-panel nzHeader="值组件设置">
|
|
4
|
-
<nz-form-item>
|
|
5
|
-
<nz-form-label nzSpan="8">
|
|
6
|
-
初始值
|
|
7
|
-
</nz-form-label>
|
|
8
|
-
<nz-form-control nzSpan="16">
|
|
9
|
-
<axis-fun-field formControlName="initValue" [exclude]="exclude()" [scopeId]="scopeId()">
|
|
10
|
-
<ng-container [axisDynamic]="{component:'axis-components/input-json',inuse:true}"
|
|
11
|
-
[standalone]="true" ngModel [ngModelOptions]="{standalone:true}"></ng-container>
|
|
12
|
-
</axis-fun-field>
|
|
13
|
-
</nz-form-control>
|
|
14
|
-
</nz-form-item>
|
|
15
|
-
<nz-form-item>
|
|
16
|
-
<nz-form-label nzSpan="8" nzRequired>
|
|
17
|
-
初始事件
|
|
18
|
-
</nz-form-label>
|
|
19
|
-
<nz-form-control nzSpan="16">
|
|
20
|
-
<nz-switch formControlName="emitInitEvent"></nz-switch>
|
|
21
|
-
</nz-form-control>
|
|
22
|
-
</nz-form-item>
|
|
23
|
-
<nz-form-item>
|
|
24
|
-
<nz-form-label nzSpan="8" nzRequired>
|
|
25
|
-
禁用
|
|
26
|
-
</nz-form-label>
|
|
27
|
-
<nz-form-control nzSpan="16">
|
|
28
|
-
<axis-fun-field formControlName="disabled" [exclude]="exclude()" [scopeId]="scopeId()">
|
|
29
|
-
<nz-switch ngModel [ngModelOptions]="{standalone:true}"></nz-switch>
|
|
30
|
-
</axis-fun-field>
|
|
31
|
-
</nz-form-control>
|
|
32
|
-
</nz-form-item>
|
|
33
|
-
<nz-form-item>
|
|
34
|
-
<nz-form-label nzSpan="8" nzRequired>
|
|
35
|
-
只读
|
|
36
|
-
</nz-form-label>
|
|
37
|
-
<nz-form-control nzSpan="16">
|
|
38
|
-
<axis-fun-field formControlName="readonly" [exclude]="exclude()" [scopeId]="scopeId()">
|
|
39
|
-
<nz-switch ngModel [ngModelOptions]="{standalone:true}"></nz-switch>
|
|
40
|
-
</axis-fun-field>
|
|
41
|
-
</nz-form-control>
|
|
42
|
-
</nz-form-item>
|
|
43
|
-
</nz-collapse-panel>
|
|
44
|
-
@if (showLine()) {
|
|
45
|
-
<div></div>
|
|
46
|
-
}
|
|
47
|
-
</nz-collapse>
|
|
48
|
-
</form>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, input, signal } from '@angular/core';
|
|
2
|
-
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
3
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
4
|
-
import { FunField } from '../fun-field/fun-field';
|
|
5
|
-
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
6
|
-
import { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';
|
|
7
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
8
|
-
import { DynamicDirective } from '../../directives/dynamic';
|
|
9
|
-
import { FormValidators } from '../../utils/form-validators';
|
|
10
|
-
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
11
|
-
import { FunFieldOptions } from '../../models/fun-field.options';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'axis-value-design-setting',
|
|
15
|
-
imports: [NzCollapseModule, NzFormModule, FunField, NzSwitchModule, FormsModule, NzInputModule, ReactiveFormsModule, DynamicDirective, NzSelectModule],
|
|
16
|
-
templateUrl: './value-design-setting.html',
|
|
17
|
-
styleUrl: './value-design-setting.css',
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
})
|
|
20
|
-
export class ValueDesignSetting implements AfterViewInit {
|
|
21
|
-
|
|
22
|
-
constructor(private element: ElementRef) { }
|
|
23
|
-
|
|
24
|
-
readonly showLine = signal(false);
|
|
25
|
-
readonly scopeId = input<string>();
|
|
26
|
-
readonly exclude = input<string[]>([]);
|
|
27
|
-
|
|
28
|
-
fg = input.required<UntypedFormGroup>();
|
|
29
|
-
|
|
30
|
-
ngAfterViewInit(): void {
|
|
31
|
-
if (this.element.nativeElement.nextElementSibling) {
|
|
32
|
-
this.showLine.set(true);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const valueFbConfig = {
|
|
38
|
-
initValue: [],
|
|
39
|
-
emitInitEvent: [true, FormValidators.required],
|
|
40
|
-
disabled: [undefined, [FormValidators.requiredFun]],
|
|
41
|
-
readonly: [undefined, [FormValidators.requiredFun]],
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const valueFunField: FunFieldOptions = {
|
|
45
|
-
initValue: {
|
|
46
|
-
defaultValue: undefined
|
|
47
|
-
},
|
|
48
|
-
disabled: {
|
|
49
|
-
defaultValue: false
|
|
50
|
-
},
|
|
51
|
-
readonly: {
|
|
52
|
-
defaultValue: false
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export function codeName(code?: string, name?: string): string {
|
|
2
|
-
if (code && name) {
|
|
3
|
-
return `[${code}]${name}`
|
|
4
|
-
}
|
|
5
|
-
if (code) {
|
|
6
|
-
return `[${code}]`
|
|
7
|
-
}
|
|
8
|
-
return name || "";
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function nameCode(name?: string, code?: string): string {
|
|
12
|
-
if (code && name) {
|
|
13
|
-
return `${name}[${code}]`
|
|
14
|
-
}
|
|
15
|
-
if (code) {
|
|
16
|
-
return `[${code}]`
|
|
17
|
-
}
|
|
18
|
-
return name || "";
|
|
19
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { inject, Injectable } from "@angular/core";
|
|
2
|
-
import { AXIS_COMPONENTS_TOKEN } from "../share/tokens";
|
|
3
|
-
|
|
4
|
-
@Injectable()
|
|
5
|
-
export class ComponentsLoader {
|
|
6
|
-
|
|
7
|
-
private readonly components = inject(AXIS_COMPONENTS_TOKEN);
|
|
8
|
-
private readonly loadedMap = new Map<string, any>();
|
|
9
|
-
private readonly loadingMap = new Map<string, Promise<any>>();
|
|
10
|
-
|
|
11
|
-
loadComponent(component: string): Promise<any> {
|
|
12
|
-
if (this.loadedMap.has(component)) {
|
|
13
|
-
return Promise.resolve(this.loadedMap.get(component)!);
|
|
14
|
-
}
|
|
15
|
-
if (this.loadingMap.has(component)) {
|
|
16
|
-
return this.loadingMap.get(component)!;
|
|
17
|
-
}
|
|
18
|
-
if (!this.components[component]) {
|
|
19
|
-
return Promise.reject(`component ${component} not found`)
|
|
20
|
-
}
|
|
21
|
-
this.loadingMap.set(component, this.components[component]().then(module => {
|
|
22
|
-
const m = module[Object.keys(module)[0]];
|
|
23
|
-
this.loadedMap.set(component, m);
|
|
24
|
-
this.loadingMap.delete(component);
|
|
25
|
-
return m;
|
|
26
|
-
}));
|
|
27
|
-
return this.loadingMap.get(component)!;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// 生成变量的类型声明
|
|
2
|
-
export function generateDeclarations(args: any): string {
|
|
3
|
-
return Object.entries(args).map(([name, value]) =>
|
|
4
|
-
`declare const ${name}: ${convertToTsType(value)};`
|
|
5
|
-
).join('\n');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// 将 JavaScript 值转换为 TypeScript 类型表达式
|
|
9
|
-
function convertToTsType(value: any): string {
|
|
10
|
-
if (value === null) return 'null';
|
|
11
|
-
if (value === undefined) return 'undefined';
|
|
12
|
-
|
|
13
|
-
const type = typeof value;
|
|
14
|
-
|
|
15
|
-
if (type === 'string') return 'string';
|
|
16
|
-
if (type === 'number') return 'number';
|
|
17
|
-
if (type === 'boolean') return 'boolean';
|
|
18
|
-
if (type === 'function') return 'Function';
|
|
19
|
-
|
|
20
|
-
if (Array.isArray(value)) {
|
|
21
|
-
if (value.length > 0) {
|
|
22
|
-
return `Array<${convertToTsType(value[0])}>`;
|
|
23
|
-
}
|
|
24
|
-
return 'any[]';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (type === 'object') {
|
|
28
|
-
const props = Object.entries(value)
|
|
29
|
-
.map(([key, val]) =>
|
|
30
|
-
`${key}: ${convertToTsType(val)};`
|
|
31
|
-
)
|
|
32
|
-
.join('\n ');
|
|
33
|
-
|
|
34
|
-
return `{\n ${props}\n}`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return 'any';
|
|
38
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DynamicFnOptions {
|
|
3
|
-
fnBody?: string;
|
|
4
|
-
args?: any[] | object;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const notDefinedRegDefault = /^(.*) is not defined$/;
|
|
8
|
-
const notDefinedRegIOS = /^Can't find variable: (.*)$/;
|
|
9
|
-
export function fn(fnBody: string, argsObj: any, ignoreUndefined = false, printError = true) {
|
|
10
|
-
let argsName: string[] = [];
|
|
11
|
-
let args: any[] = [];
|
|
12
|
-
if (argsObj) {
|
|
13
|
-
argsName = Object.keys(argsObj);
|
|
14
|
-
args = argsName.map(n => argsObj[n]);
|
|
15
|
-
}
|
|
16
|
-
while (true) {
|
|
17
|
-
try {
|
|
18
|
-
const fun = new Function(...argsName, fnBody);
|
|
19
|
-
if (fun && fun instanceof Function) {
|
|
20
|
-
return fun(...args);
|
|
21
|
-
} else if (printError) {
|
|
22
|
-
_consoleError(fnBody, args, argsName);
|
|
23
|
-
}
|
|
24
|
-
} catch (e) {
|
|
25
|
-
if (ignoreUndefined && e instanceof ReferenceError && (notDefinedRegDefault.test(e.message) || notDefinedRegIOS.test(e.message))) {
|
|
26
|
-
const defaultMatch = notDefinedRegDefault.exec(e.message);
|
|
27
|
-
const iosMatch = notDefinedRegIOS.exec(e.message);
|
|
28
|
-
if (defaultMatch) {
|
|
29
|
-
argsName.push(defaultMatch[1]);
|
|
30
|
-
continue;
|
|
31
|
-
} else if (iosMatch && iosMatch[1]) {
|
|
32
|
-
argsName.push(iosMatch[1]);
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (printError) {
|
|
37
|
-
_consoleError(fnBody, args, argsName, e as Error);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _consoleError(fnBody: string, args: any[], argsName: string[], e?: Error) {
|
|
46
|
-
let ds: any[] = [];
|
|
47
|
-
args.forEach((e, i) => {
|
|
48
|
-
ds[i] = { name: argsName[i], value: e };
|
|
49
|
-
});
|
|
50
|
-
console.groupCollapsed(`%c 函数${e ? '编译' : '执行'}失败`, "color:red");
|
|
51
|
-
if (e) {
|
|
52
|
-
console.error("失败原因", e.message);
|
|
53
|
-
}
|
|
54
|
-
console.log("函数体", fnBody);
|
|
55
|
-
console.log("数据源", ds);
|
|
56
|
-
console.groupEnd();
|
|
57
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, UntypedFormControl, ValidationErrors, ValidatorFn, Validators } from "@angular/forms";
|
|
2
|
-
import { NzSafeAny } from "ng-zorro-antd/core/types";
|
|
3
|
-
|
|
4
|
-
export type MyErrorsOptions = { 'zh-cn': string } & Record<string, NzSafeAny>;
|
|
5
|
-
export type MyValidationErrors = Record<string, MyErrorsOptions>;
|
|
6
|
-
|
|
7
|
-
export class FormValidators extends Validators {
|
|
8
|
-
|
|
9
|
-
static override required(control: AbstractControl): ValidationErrors | null {
|
|
10
|
-
let error = Validators.required(control);
|
|
11
|
-
if (error) {
|
|
12
|
-
return { required: { 'zh-cn': "必填项" } };
|
|
13
|
-
}
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static requiredFun(control: AbstractControl): ValidationErrors | null {
|
|
18
|
-
let error = FormValidators.required(control);
|
|
19
|
-
if (!error) {
|
|
20
|
-
error = FormValidators.required(new UntypedFormControl(control.value?.funMode ? control.value?.fnValue.fn : control.value?.originValue));
|
|
21
|
-
}
|
|
22
|
-
if (error) {
|
|
23
|
-
return { required: { 'zh-cn': "必填项" } };
|
|
24
|
-
}
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
static equal(comparedValue: string | (() => string | null)) {
|
|
30
|
-
return (control: AbstractControl): ValidationErrors | null => {
|
|
31
|
-
if (!control.value) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
let cv;
|
|
35
|
-
if (typeof (comparedValue) != "function") {
|
|
36
|
-
cv = comparedValue;
|
|
37
|
-
} else {
|
|
38
|
-
try { cv = comparedValue(); } catch { }
|
|
39
|
-
}
|
|
40
|
-
return control.value != cv ? { notEqual: true } : null;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static override minLength(minLength: number): ValidatorFn {
|
|
45
|
-
const validator = Validators.minLength(minLength);
|
|
46
|
-
return (control: AbstractControl): MyValidationErrors | null => {
|
|
47
|
-
if (validator(control) === null) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return { minlength: { 'zh-cn': `最小长度为 ${minLength}` } };
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static override maxLength(maxLength: number): ValidatorFn {
|
|
55
|
-
const validator = Validators.maxLength(maxLength);
|
|
56
|
-
return (control: AbstractControl): MyValidationErrors | null => {
|
|
57
|
-
if (validator(control) === null) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return { minlength: { 'zh-cn': `最大长度为 ${maxLength}` } };
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
static override min(minvalue: number): ValidatorFn {
|
|
65
|
-
const validator = Validators.min(minvalue);
|
|
66
|
-
return (control: AbstractControl): MyValidationErrors | null => {
|
|
67
|
-
if (validator(control) === null) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
return { minlength: { 'zh-cn': `最小值为 ${minvalue}` } };
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
static override max(maxvalue: number): ValidatorFn {
|
|
75
|
-
const validator = Validators.max(maxvalue);
|
|
76
|
-
return (control: AbstractControl): MyValidationErrors | null => {
|
|
77
|
-
if (validator(control) === null) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
return { minlength: { 'zh-cn': `最大值为 ${maxvalue}` } };
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
static override pattern(pattern: string | RegExp): ValidatorFn {
|
|
85
|
-
const validator = Validators.pattern(pattern);
|
|
86
|
-
return (control: AbstractControl): MyValidationErrors | null => {
|
|
87
|
-
if (validator(control) === null) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
return { pattern: { 'zh-cn': "输入不正确" } };
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// static uniqueConstraints(constraintsGroup: string, keyField: string | undefined, editTable: EditTableComponent): ValidatorFn {
|
|
95
|
-
// const fields = editTable.fields.filter(f => f.validators?.some(v => v.startsWith(`uniqueConstraints:${constraintsGroup}`)));
|
|
96
|
-
// const errText = fields.map(f => `[${f.title}]`).join("加") + "须唯一";
|
|
97
|
-
// return (control: AbstractControl): MyValidationErrors | null => {
|
|
98
|
-
// if (!control.parent) {
|
|
99
|
-
// return null;
|
|
100
|
-
// }
|
|
101
|
-
// control.parent.updateValueAndValidity();
|
|
102
|
-
// const rowValue = control.parent?.value;
|
|
103
|
-
// const otherCtrl = Array.from(editTable.ctrlMap.values())
|
|
104
|
-
// .filter(c => c != control.parent);
|
|
105
|
-
// if (otherCtrl
|
|
106
|
-
// .some(c => fields.every(f => {
|
|
107
|
-
// let value1 = c.value[f.field];
|
|
108
|
-
// let value2 = rowValue[f.field];
|
|
109
|
-
// if (keyField) {
|
|
110
|
-
// value1 = value1?.[keyField];
|
|
111
|
-
// value2 = value2?.[keyField];
|
|
112
|
-
// }
|
|
113
|
-
// return value1 == value2;
|
|
114
|
-
// }))) {
|
|
115
|
-
// return { uniqueConstraints: { 'zh-cn': errText } };
|
|
116
|
-
// }
|
|
117
|
-
// return null;
|
|
118
|
-
// };
|
|
119
|
-
// }
|
|
120
|
-
|
|
121
|
-
// static datasource(dataSourceName: string, host?: EditTableComponent | FormComponent, triggeEvent?: TriggeEventOptions): AsyncValidatorFn {
|
|
122
|
-
// return (control: AbstractControl): Promise<MyValidationErrors | null> | Observable<MyValidationErrors | null> => {
|
|
123
|
-
// return host?.triggeEvent("controlValid", { value: control.value }, triggeEvent)
|
|
124
|
-
// .pipe(mergeMap(_ => host!.dataSource!.getDataSource(dataSourceName).pipe(take(1), map(error => error ? ({ datasource: { 'zh-cn': error } }) : null)))) || of(null);
|
|
125
|
-
// };
|
|
126
|
-
// }
|
|
127
|
-
|
|
128
|
-
// static _mapValid(valid: string, host?: EditTableComponent | FormComponent): ValidatorFn | null {
|
|
129
|
-
// const validParams = valid.split(":");
|
|
130
|
-
// switch (validParams[0]) {
|
|
131
|
-
// case "required":
|
|
132
|
-
// return FormValidators.required;
|
|
133
|
-
// case "minlength":
|
|
134
|
-
// return FormValidators.minLength(+validParams[1]);
|
|
135
|
-
// case "min":
|
|
136
|
-
// return FormValidators.min(+validParams[1]);
|
|
137
|
-
// case "max":
|
|
138
|
-
// return FormValidators.max(+validParams[1]);
|
|
139
|
-
// case "pattern":
|
|
140
|
-
// return FormValidators.pattern(validParams[1]);
|
|
141
|
-
// case "uniqueConstraints":
|
|
142
|
-
// return FormValidators.uniqueConstraints(validParams[1], validParams[2], host as EditTableComponent);
|
|
143
|
-
// }
|
|
144
|
-
// return null;
|
|
145
|
-
// }
|
|
146
|
-
|
|
147
|
-
// static _mapAsyncValid(valid: string, host?: EditTableComponent | FormComponent, triggeEvent?: TriggeEventOptions): AsyncValidatorFn | null {
|
|
148
|
-
// const validParams = valid.split(":");
|
|
149
|
-
// switch (validParams[0]) {
|
|
150
|
-
// case "datasource":
|
|
151
|
-
// return FormValidators.datasource(validParams[1], host, triggeEvent);
|
|
152
|
-
// }
|
|
153
|
-
// return null;
|
|
154
|
-
// }
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
// static mapValidators(validators: string[], host?: EditTableComponent | FormComponent, triggeEvent?: TriggeEventOptions): [ValidatorFn[], AsyncValidatorFn[]] {
|
|
158
|
-
// return [validators?.map(v => FormValidators._mapValid(v, host)).filter(e => e).map(e => e as ValidatorFn) || [], validators?.map(v => FormValidators._mapAsyncValid(v, host, triggeEvent)).filter(e => e).map(e => e as AsyncValidatorFn) || []];
|
|
159
|
-
// }
|
|
160
|
-
}
|
package/core/utils/form.util.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormArray, FormGroup } from "@angular/forms";
|
|
2
|
-
|
|
3
|
-
export function updateAndValidAll(form: FormGroup | FormArray | AbstractControl, options: { markAsDirty?: boolean } = { markAsDirty: true }) {
|
|
4
|
-
let isValid = true;
|
|
5
|
-
if (form instanceof FormGroup) {
|
|
6
|
-
Object.values(form.controls).forEach(control => {
|
|
7
|
-
if (!updateAndValidAll(control, options)) {
|
|
8
|
-
isValid = false;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
} else if (form instanceof FormArray) {
|
|
12
|
-
form.controls.forEach(control => {
|
|
13
|
-
if (!updateAndValidAll(control, options)) {
|
|
14
|
-
isValid = false;
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
} else {
|
|
18
|
-
if (options.markAsDirty ?? true) {
|
|
19
|
-
form.markAsDirty();
|
|
20
|
-
}
|
|
21
|
-
form.updateValueAndValidity({ onlySelf: true });
|
|
22
|
-
isValid = form.valid;
|
|
23
|
-
}
|
|
24
|
-
return isValid;
|
|
25
|
-
}
|
package/core/utils/http.utils.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpRequest } from "@angular/common/http";
|
|
2
|
-
import { ApiOptions } from "../models/api.options";
|
|
3
|
-
import { map, catchError, of, Observable } from "rxjs";
|
|
4
|
-
|
|
5
|
-
export function sendApi(opt: ApiOptions, http: HttpClient): Observable<any> {
|
|
6
|
-
return http.request(new HttpRequest(opt.method?.toUpperCase() as any || "GET", opt.url, opt.body))
|
|
7
|
-
.pipe(map((h: any) => h.body), catchError(e => of(undefined)));
|
|
8
|
-
}
|