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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { BaseOptions, Base, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
4
|
+
import * as i2 from 'ng-zorro-antd/button';
|
|
5
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i5 from 'ng-zorro-antd/popconfirm';
|
|
8
|
+
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
|
|
9
|
+
import { finalize } from 'rxjs';
|
|
10
|
+
import * as i1 from 'ng-zorro-antd/modal';
|
|
11
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
12
|
+
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
|
13
|
+
import * as i4 from 'ng-zorro-antd/core/wave';
|
|
14
|
+
|
|
15
|
+
class ButtonOptions extends BaseOptions {
|
|
16
|
+
title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
17
|
+
icon = signal(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
18
|
+
confirm = signal(false, ...(ngDevMode ? [{ debugName: "confirm" }] : []));
|
|
19
|
+
confirmType = signal("modal", ...(ngDevMode ? [{ debugName: "confirmType" }] : []));
|
|
20
|
+
confirmText = signal("是否确认?", ...(ngDevMode ? [{ debugName: "confirmText" }] : []));
|
|
21
|
+
disabledBtn = signal(false, ...(ngDevMode ? [{ debugName: "disabledBtn" }] : []));
|
|
22
|
+
styleType = signal("default", ...(ngDevMode ? [{ debugName: "styleType" }] : []));
|
|
23
|
+
ghost = signal(false, ...(ngDevMode ? [{ debugName: "ghost" }] : []));
|
|
24
|
+
size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
25
|
+
block = signal(false, ...(ngDevMode ? [{ debugName: "block" }] : []));
|
|
26
|
+
danger = signal(false, ...(ngDevMode ? [{ debugName: "danger" }] : []));
|
|
27
|
+
shape = signal(null, ...(ngDevMode ? [{ debugName: "shape" }] : []));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Button extends Base {
|
|
31
|
+
modal;
|
|
32
|
+
constructor(modal) {
|
|
33
|
+
super();
|
|
34
|
+
this.modal = modal;
|
|
35
|
+
}
|
|
36
|
+
options = new ButtonOptions();
|
|
37
|
+
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
38
|
+
buttonClick() {
|
|
39
|
+
if (this.loading()) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (this.options.confirm() && this.options.confirmType() == "modal") {
|
|
43
|
+
this.modal.confirm({
|
|
44
|
+
nzContent: this.options.confirmText(),
|
|
45
|
+
nzOnOk: () => {
|
|
46
|
+
this.doSomething();
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
else if (!this.options.confirm()) {
|
|
51
|
+
this.doSomething();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
popConfirm() {
|
|
55
|
+
if (this.options.confirm() && this.options.confirmType() == "pop") {
|
|
56
|
+
this.doSomething();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
doSomething() {
|
|
60
|
+
this.loading.set(true);
|
|
61
|
+
this.triggeEvents("buttonClick")
|
|
62
|
+
.pipe(finalize(() => this.loading.set(false)))
|
|
63
|
+
.subscribe();
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Button, deps: [{ token: i1.NzModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "directive", type: i5.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nzPopconfirmTitleContext", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzBeforeConfirm", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus", "nzOkText", "nzOkType", "nzCancelText", "nzOkButtonProps", "nzCancelButtonProps", "nzOkDisabled", "nzOkDanger"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { kind: "ngmodule", type: NzModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
67
|
+
}
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Button, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>", styles: [":host{display:block}\n"] }]
|
|
71
|
+
}], ctorParameters: () => [{ type: i1.NzModalService }] });
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Generated bundle index. Do not edit.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
export { Button };
|
|
78
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n protected override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACjC,IAAA,KAAK,GAAG,MAAM,CAAS,EAAE,iDAAC;AAC1B,IAAA,IAAI,GAAG,MAAM,CAAM,SAAS,gDAAC;AAC7B,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,mDAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAkB,OAAO,uDAAC;AAC9C,IAAA,WAAW,GAAG,MAAM,CAAS,OAAO,uDAAC;AACrC,IAAA,WAAW,GAAG,MAAM,CAAU,KAAK,uDAAC;AACpC,IAAA,SAAS,GAAG,MAAM,CAAqD,SAAS,qDAAC;AACjF,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AAC9B,IAAA,MAAM,GAAG,MAAM,CAAU,KAAK,kDAAC;AAC/B,IAAA,KAAK,GAAG,MAAM,CAA4B,IAAI,iDAAC;AAC3D;;ACAK,MAAO,MAAO,SAAQ,IAAmB,CAAA;AAEzB,IAAA,KAAA;AAApB,IAAA,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,EAAA,mBAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,qBAAA,EAAA,uBAAA,EAAA,oBAAA,EAAA,6BAAA,EAAA,6BAAA,EAAA,8BAAA,EAAA,0BAAA,EAAA,qBAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,uBAAA,EAAA,sBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,UAAA,EAAA,cAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,2BAAA,EAAA,YAAA,EAAA,aAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKhF,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EACd,CAAC,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,CAAC,EAAA,eAAA,EAG3E,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0sBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { FunFieldValueBase, FormValidators, baseFbConfig, baseFunField, BaseDesignSetting, FunField, DynamicDirective, BaseMenu, OptionsNode, SimpleMenu, nameCode } 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 i4 from 'ng-zorro-antd/collapse';
|
|
7
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
8
|
+
import * as i3 from 'ng-zorro-antd/form';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i5 from 'ng-zorro-antd/input';
|
|
11
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
12
|
+
import * as i6 from 'ng-zorro-antd/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 i7 from 'ng-zorro-antd/switch';
|
|
17
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
18
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
|
19
|
+
import * as i3$1 from 'ng-zorro-antd/divider';
|
|
20
|
+
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
|
21
|
+
import * as i2$1 from 'ng-zorro-antd/dropdown';
|
|
22
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
23
|
+
import * as i4$1 from 'ng-zorro-antd/icon';
|
|
24
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
25
|
+
import * as i1$1 from 'ng-zorro-antd/menu';
|
|
26
|
+
|
|
27
|
+
class DescSetting extends FunFieldValueBase {
|
|
28
|
+
fg = this.fb.group({
|
|
29
|
+
...baseFbConfig,
|
|
30
|
+
title: [],
|
|
31
|
+
column: [undefined, FormValidators.requiredFun],
|
|
32
|
+
bordered: [undefined, FormValidators.requiredFun],
|
|
33
|
+
size: [undefined, FormValidators.requiredFun],
|
|
34
|
+
colon: [undefined, FormValidators.requiredFun],
|
|
35
|
+
data: [],
|
|
36
|
+
});
|
|
37
|
+
funFields = {
|
|
38
|
+
...baseFunField,
|
|
39
|
+
title: {
|
|
40
|
+
defaultValue: ""
|
|
41
|
+
},
|
|
42
|
+
column: {
|
|
43
|
+
defaultValue: 3
|
|
44
|
+
},
|
|
45
|
+
bordered: {
|
|
46
|
+
defaultValue: true
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
defaultValue: "default"
|
|
50
|
+
},
|
|
51
|
+
colon: {
|
|
52
|
+
defaultValue: true
|
|
53
|
+
},
|
|
54
|
+
data: {
|
|
55
|
+
defaultValue: undefined
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: DescSetting, isStandalone: true, selector: "axis-design-desc-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\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 \u5217\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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 \u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\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=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5192\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\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: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.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: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { 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: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescSetting, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'axis-design-desc-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule, NzRadioModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\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 \u5217\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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 \u8FB9\u6846\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\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=\"middle\">\u4E2D</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5192\u53F7\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u636E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>" }]
|
|
64
|
+
}] });
|
|
65
|
+
|
|
66
|
+
class DescItemSetting extends FunFieldValueBase {
|
|
67
|
+
fg = this.fb.group({
|
|
68
|
+
inuse: [undefined, FormValidators.requiredFun],
|
|
69
|
+
title: [],
|
|
70
|
+
field: [],
|
|
71
|
+
span: [undefined, FormValidators.requiredFun],
|
|
72
|
+
});
|
|
73
|
+
funFields = {
|
|
74
|
+
inuse: {
|
|
75
|
+
defaultValue: true
|
|
76
|
+
},
|
|
77
|
+
title: {
|
|
78
|
+
defaultValue: ""
|
|
79
|
+
},
|
|
80
|
+
field: {
|
|
81
|
+
defaultValue: ""
|
|
82
|
+
},
|
|
83
|
+
span: {
|
|
84
|
+
defaultValue: 1
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemSetting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: DescItemSetting, isStandalone: true, selector: "axis-design-desc-item-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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 \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\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 \u5217\u5BBD\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\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: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { 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: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.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: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemSetting, decorators: [{
|
|
91
|
+
type: Component,
|
|
92
|
+
args: [{ selector: 'axis-design-desc-item-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u53EF\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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 \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5B57\u6BB5\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\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 \u5217\u5BBD\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n </nz-collapse>\n</form>" }]
|
|
93
|
+
}] });
|
|
94
|
+
|
|
95
|
+
class DescItemsMenu extends BaseMenu {
|
|
96
|
+
addItem() {
|
|
97
|
+
this.optionsNodes.current.options.push({
|
|
98
|
+
inuse: true,
|
|
99
|
+
title: "未命名"
|
|
100
|
+
});
|
|
101
|
+
this.onChange();
|
|
102
|
+
}
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemsMenu, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.2", type: DescItemsMenu, isStandalone: true, selector: "axis-design-desc-items-menu", usesInheritance: true, ngImport: i0, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u63CF\u8FF0\u9879</span>\n </li>\n </ul>\n</nz-dropdown-menu>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i3$1.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i4$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
|
+
}
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: DescItemsMenu, decorators: [{
|
|
107
|
+
type: Component,
|
|
108
|
+
args: [{ selector: 'axis-design-desc-items-menu', imports: [NzDropDownModule, NzDividerModule, NzIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>\u6DFB\u52A0\u63CF\u8FF0\u9879</span>\n </li>\n </ul>\n</nz-dropdown-menu>" }]
|
|
109
|
+
}] });
|
|
110
|
+
|
|
111
|
+
const Config = {
|
|
112
|
+
componentName: "描述",
|
|
113
|
+
buildOptionsNodes(nextInfo) {
|
|
114
|
+
const next = [];
|
|
115
|
+
const itemsChildren = [];
|
|
116
|
+
const itemsNode = new OptionsNode({
|
|
117
|
+
id: nextInfo.currentObject.id + ".items",
|
|
118
|
+
parentId: nextInfo.currentObject.id,
|
|
119
|
+
scopeId: nextInfo.scopeId,
|
|
120
|
+
rootOptions: nextInfo.currentObject.items,
|
|
121
|
+
contextMenu: DescItemsMenu,
|
|
122
|
+
name: `描述项[${nextInfo.currentObject.items?.length ?? 0}]`,
|
|
123
|
+
canDrop: true,
|
|
124
|
+
dropType: "axis-components/desc/desc-item",
|
|
125
|
+
dropObj: nextInfo.currentObject.items,
|
|
126
|
+
defaultDropIndex: nextInfo.currentObject.items?.length ?? 0,
|
|
127
|
+
childDirection: 'vertical',
|
|
128
|
+
icon: "project",
|
|
129
|
+
children: itemsChildren
|
|
130
|
+
});
|
|
131
|
+
nextInfo.currentObject.items?.forEach((r, i) => {
|
|
132
|
+
next.push({
|
|
133
|
+
parentId: itemsNode.id + "." + i,
|
|
134
|
+
parentObject: r,
|
|
135
|
+
indexOfParent: "child",
|
|
136
|
+
scopeId: nextInfo.scopeId
|
|
137
|
+
});
|
|
138
|
+
itemsChildren.push(new OptionsNode({
|
|
139
|
+
id: itemsNode.id + "." + i,
|
|
140
|
+
scopeId: itemsNode.scopeId,
|
|
141
|
+
parentId: itemsNode.id,
|
|
142
|
+
parentObj: itemsNode.options,
|
|
143
|
+
indexOfParentObj: i,
|
|
144
|
+
rootOptions: r,
|
|
145
|
+
name: nameCode("描述项", r.title),
|
|
146
|
+
icon: "profile",
|
|
147
|
+
canSetting: true,
|
|
148
|
+
settingType: DescItemSetting,
|
|
149
|
+
contextMenu: SimpleMenu,
|
|
150
|
+
canDrag: true,
|
|
151
|
+
dragType: "axis-components/desc/desc-item",
|
|
152
|
+
canDrop: true,
|
|
153
|
+
dropType: "component",
|
|
154
|
+
dropObj: r,
|
|
155
|
+
defaultDropIndex: "child",
|
|
156
|
+
children: []
|
|
157
|
+
}));
|
|
158
|
+
});
|
|
159
|
+
const extraNode = new OptionsNode({
|
|
160
|
+
id: nextInfo.currentObject.id + ".extra",
|
|
161
|
+
parentId: nextInfo.currentObject.id,
|
|
162
|
+
scopeId: nextInfo.scopeId,
|
|
163
|
+
rootOptions: nextInfo.currentObject,
|
|
164
|
+
name: "操作",
|
|
165
|
+
contextMenu: SimpleMenu,
|
|
166
|
+
canDrop: true,
|
|
167
|
+
dropType: "component",
|
|
168
|
+
dropObj: nextInfo.currentObject,
|
|
169
|
+
defaultDropIndex: "extra",
|
|
170
|
+
icon: "control",
|
|
171
|
+
children: []
|
|
172
|
+
});
|
|
173
|
+
next.push({
|
|
174
|
+
parentId: extraNode.id,
|
|
175
|
+
parentObject: extraNode.options,
|
|
176
|
+
indexOfParent: "extra",
|
|
177
|
+
scopeId: extraNode.scopeId
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
treeNode: new OptionsNode({
|
|
181
|
+
parentId: nextInfo.parentId,
|
|
182
|
+
scopeId: nextInfo.scopeId,
|
|
183
|
+
name: nameCode("描述", nextInfo.currentObject.title),
|
|
184
|
+
canSetting: true,
|
|
185
|
+
canDrag: true,
|
|
186
|
+
dragType: "component",
|
|
187
|
+
parentObj: nextInfo.parentObject,
|
|
188
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
189
|
+
rootOptions: nextInfo.currentObject,
|
|
190
|
+
settingType: DescSetting,
|
|
191
|
+
contextMenu: SimpleMenu,
|
|
192
|
+
icon: "file-text",
|
|
193
|
+
children: [
|
|
194
|
+
itemsNode,
|
|
195
|
+
extraNode
|
|
196
|
+
],
|
|
197
|
+
}),
|
|
198
|
+
next: next
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
bindElementsOptionsNode(element, options) {
|
|
202
|
+
const itemsElement = element.querySelector(".ant-descriptions-view");
|
|
203
|
+
const res = {
|
|
204
|
+
[options.id]: { element: element },
|
|
205
|
+
[`${options.id}.items`]: { element: itemsElement, dropElement: itemsElement }
|
|
206
|
+
};
|
|
207
|
+
const items = element.querySelectorAll(".ant-descriptions-item-content>div[data-index]");
|
|
208
|
+
items.forEach((e) => {
|
|
209
|
+
const element = e.parentElement?.previousElementSibling;
|
|
210
|
+
res[`${options.id}.items.${e.dataset['index']}`] = {
|
|
211
|
+
element: element,
|
|
212
|
+
dropElement: e.parentElement
|
|
213
|
+
};
|
|
214
|
+
});
|
|
215
|
+
return res;
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Generated bundle index. Do not edit.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
export { Config };
|
|
224
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-desc-design.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-desc-design.mjs","sources":["../../../axis-components/desc/design/desc-setting/desc-setting.ts","../../../axis-components/desc/design/desc-setting/desc-setting.html","../../../axis-components/desc/design/desc-item-setting/desc-item-setting.ts","../../../axis-components/desc/design/desc-item-setting/desc-item-setting.html","../../../axis-components/desc/design/desc-items-menu/desc-items-menu.ts","../../../axis-components/desc/design/desc-items-menu/desc-items-menu.html","../../../axis-components/desc/design/config.ts","../../../axis-components/desc/design/ngx-axis-appforge-axis-components-desc-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 { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule, NzRadioModule, DynamicDirective],\n templateUrl: './desc-setting.html',\n styleUrl: './desc-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n title: [],\n column: [undefined, FormValidators.requiredFun],\n bordered: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n colon: [undefined, FormValidators.requiredFun],\n data: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n column: {\n defaultValue: 3\n },\n bordered: {\n defaultValue: true\n },\n size: {\n defaultValue: \"default\"\n },\n colon: {\n defaultValue: true\n },\n data: {\n defaultValue: undefined\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=\"title\">\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=\"column\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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=\"bordered\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.bordered.funMode || formValue()?.bordered.originValue) {\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=\"middle\">中</label>\n <label nz-radio-button nzValue=\"default\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\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=\"colon\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\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=\"data\" #dataFunField>\n <ng-container [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>","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 { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-item-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, FunField, NzInputModule, NzInputNumberModule, NzSwitchModule],\n templateUrl: './desc-item-setting.html',\n styleUrl: './desc-item-setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescItemSetting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n inuse: [undefined, FormValidators.requiredFun],\n title: [],\n field: [],\n span: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n inuse: {\n defaultValue: true\n },\n title: {\n defaultValue: \"\"\n },\n field: {\n defaultValue: \"\"\n },\n span: {\n defaultValue: 1\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 是否可用\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"inuse\">\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=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 字段名\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"field\">\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=\"span\">\n <nz-input-number style=\"width:100%;\" nzMin=\"1\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n </nz-collapse>\n</form>","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NzDividerModule } from 'ng-zorro-antd/divider';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { BaseMenu } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-desc-items-menu',\n imports: [NzDropDownModule, NzDividerModule, NzIconModule],\n templateUrl: './desc-items-menu.html',\n styleUrl: './desc-items-menu.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DescItemsMenu extends BaseMenu {\n\n addItem() {\n this.optionsNodes.current.options.push({\n inuse: true,\n title: \"未命名\"\n });\n this.onChange();\n }\n}\n","<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item (click)=\"addItem()\">\n <i nz-icon nzType=\"plus\" nzTheme=\"outline\"></i>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <span>添加描述项</span>\n </li>\n </ul>\n</nz-dropdown-menu>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, nameCode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { DescSetting } from \"./desc-setting/desc-setting\";\nimport { DescItemSetting } from \"./desc-item-setting/desc-item-setting\";\nimport { DescItemsMenu } from \"./desc-items-menu/desc-items-menu\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"描述\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n const next: NextInfo[] = [];\n const itemsChildren: OptionsNode[] = [];\n const itemsNode = new OptionsNode({\n id: nextInfo.currentObject.id + \".items\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n rootOptions: nextInfo.currentObject.items,\n contextMenu: DescItemsMenu,\n name: `描述项[${nextInfo.currentObject.items?.length ?? 0}]`,\n canDrop: true,\n dropType: \"axis-components/desc/desc-item\",\n dropObj: nextInfo.currentObject.items,\n defaultDropIndex: nextInfo.currentObject.items?.length ?? 0,\n childDirection: 'vertical',\n icon: \"project\",\n children: itemsChildren\n });\n nextInfo.currentObject.items?.forEach((r: any, i: number) => {\n next.push({\n parentId: itemsNode.id + \".\" + i,\n parentObject: r,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\n });\n itemsChildren.push(new OptionsNode({\n id: itemsNode.id + \".\" + i,\n scopeId: itemsNode.scopeId,\n parentId: itemsNode.id,\n parentObj: itemsNode.options,\n indexOfParentObj: i,\n rootOptions: r,\n name: nameCode(\"描述项\", r.title),\n icon: \"profile\",\n canSetting: true,\n settingType: DescItemSetting,\n contextMenu: SimpleMenu,\n canDrag: true,\n dragType: \"axis-components/desc/desc-item\",\n canDrop: true,\n dropType: \"component\",\n dropObj: r,\n defaultDropIndex: \"child\",\n children: []\n }));\n });\n const extraNode = new OptionsNode({\n id: nextInfo.currentObject.id + \".extra\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n rootOptions: nextInfo.currentObject,\n name: \"操作\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"extra\",\n icon: \"control\",\n children: []\n });\n next.push({\n parentId: extraNode.id,\n parentObject: extraNode.options,\n indexOfParent: \"extra\",\n scopeId: extraNode.scopeId\n });\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: nameCode(\"描述\", nextInfo.currentObject.title),\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: DescSetting,\n contextMenu: SimpleMenu,\n icon: \"file-text\",\n children: [\n itemsNode,\n extraNode\n ],\n }),\n next: next\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n const itemsElement = element.querySelector(\".ant-descriptions-view\") as HTMLElement;\n const res: DesignBindElementsResult = {\n [options.id]: { element: element },\n [`${options.id}.items`]: { element: itemsElement, dropElement: itemsElement }\n };\n const items = element.querySelectorAll(\".ant-descriptions-item-content>div[data-index]\");\n items.forEach((e) => {\n const element = e.parentElement?.previousElementSibling as HTMLElement;\n res[`${options.id}.items.${(e as HTMLElement).dataset['index']}`] = {\n element: element!,\n dropElement: e.parentElement!\n }\n });\n return res;\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":["i1","i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBM,MAAO,WAAY,SAAQ,iBAAiB,CAAA;AAEvC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC/C,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,KAAK,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC9C,QAAA,IAAI,EAAE,EAAE;AACT,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,YAAY,EAAE;AACf,SAAA;K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,MAAM,GAAG,GAA6B;YAClC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE;AAClC,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY;SAC9E;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,gDAAgD,CAAC;AACxF,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAI;AAChB,YAAA,MAAM,OAAO,GAAG,CAAC,CAAC,aAAa,EAAE,sBAAqC;AACtE,YAAA,GAAG,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,CAAA,OAAA,EAAW,CAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA,CAAE,CAAC,GAAG;AAChE,gBAAA,OAAO,EAAE,OAAQ;gBACjB,WAAW,EAAE,CAAC,CAAC;aAClB;AACL,SAAC,CAAC;AACF,QAAA,OAAO,GAAG;KACb;;;AC/GL;;AAEG;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, effect, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { DataOptions, Base, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
4
|
+
import * as i1 from 'ng-zorro-antd/descriptions';
|
|
5
|
+
import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';
|
|
6
|
+
|
|
7
|
+
class DescOptions extends DataOptions {
|
|
8
|
+
title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
9
|
+
column = signal(3, ...(ngDevMode ? [{ debugName: "column" }] : []));
|
|
10
|
+
bordered = signal(true, ...(ngDevMode ? [{ debugName: "bordered" }] : []));
|
|
11
|
+
size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
12
|
+
colon = signal(true, ...(ngDevMode ? [{ debugName: "colon" }] : []));
|
|
13
|
+
extra = signal([], ...(ngDevMode ? [{ debugName: "extra" }] : []));
|
|
14
|
+
items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
15
|
+
}
|
|
16
|
+
class DescItemOptions {
|
|
17
|
+
inuse = signal(true, ...(ngDevMode ? [{ debugName: "inuse" }] : []));
|
|
18
|
+
title = signal("未命名", ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
19
|
+
field = signal("", ...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
20
|
+
span = signal(1, ...(ngDevMode ? [{ debugName: "span" }] : []));
|
|
21
|
+
child = signal(undefined, ...(ngDevMode ? [{ debugName: "child" }] : []));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class Desc extends Base {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
effect(() => {
|
|
28
|
+
this.items().forEach((p, i) => {
|
|
29
|
+
this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
options = new DescOptions();
|
|
34
|
+
items = computed(() => this.buildItems(), ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
35
|
+
buildItems() {
|
|
36
|
+
return this.options.items().map(_ => new DescItemOptions());
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Desc, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: Desc, isStandalone: true, selector: "axis-desc", usesInheritance: true, ngImport: i0, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"], dependencies: [{ kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i1.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i1.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: Desc, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'axis-desc', imports: [NzDescriptionsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"] }]
|
|
44
|
+
}], ctorParameters: () => [] });
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Generated bundle index. Do not edit.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
export { Desc };
|
|
51
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-desc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-desc.mjs","sources":["../../../axis-components/desc/desc.options.ts","../../../axis-components/desc/desc.ts","../../../axis-components/desc/desc.html","../../../axis-components/desc/ngx-axis-appforge-axis-components-desc.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class DescOptions extends DataOptions {\n\n readonly title = signal(\"\");\n readonly column = signal(3);\n readonly bordered = signal(true);\n readonly size = signal<'default' | 'middle' | 'small'>(\"default\");\n readonly colon = signal(true);\n readonly extra = signal<any>([]);\n readonly items = signal<DescItemOptions[]>([]);\n\n}\n\nexport class DescItemOptions {\n\n readonly inuse = signal(true);\n readonly title = signal(\"未命名\");\n readonly field = signal(\"\");\n readonly span = signal(1);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { DescItemOptions, DescOptions } from './desc.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';\n\n@Component({\n selector: 'axis-desc',\n imports: [NzDescriptionsModule, DynamicDirective],\n templateUrl: './desc.html',\n styleUrl: './desc.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Desc extends Base<DescOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.items().forEach((p, i) => {\n this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });\n });\n });\n }\n override options: DescOptions = new DescOptions();\n readonly items = computed(() => this.buildItems());\n\n private buildItems(): DescItemOptions[] {\n return this.options.items().map(_ => new DescItemOptions());\n }\n}\n","<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track $index;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\" style=\"display: contents;\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './desc';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,WAAY,SAAQ,WAAW,CAAA;AAE/B,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAClB,IAAA,MAAM,GAAG,MAAM,CAAC,CAAC,kDAAC;AAClB,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,oDAAC;AACvB,IAAA,IAAI,GAAG,MAAM,CAAiC,SAAS,gDAAC;AACxD,IAAA,KAAK,GAAG,MAAM,CAAC,IAAI,iDAAC;AACpB,IAAA,KAAK,GAAG,MAAM,CAAM,EAAE,iDAAC;AACvB,IAAA,KAAK,GAAG,MAAM,CAAoB,EAAE,iDAAC;AAEjD;MAEY,eAAe,CAAA;AAEf,IAAA,KAAK,GAAG,MAAM,CAAC,IAAI,iDAAC;AACpB,IA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