ngx-axis-appforge 0.0.0-watch
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/README.md +111 -0
- package/axis-components/badge/design/index.d.ts +5 -0
- package/axis-components/badge/design/index.d.ts.map +1 -0
- package/axis-components/badge/index.d.ts +27 -0
- package/axis-components/badge/index.d.ts.map +1 -0
- package/axis-components/button/design/index.d.ts +5 -0
- package/axis-components/button/index.d.ts +33 -0
- package/axis-components/checkbox/design/index.d.ts +5 -0
- package/axis-components/checkbox/design/index.d.ts.map +1 -0
- package/axis-components/checkbox/index.d.ts +32 -0
- package/axis-components/checkbox/index.d.ts.map +1 -0
- package/axis-components/color-picker/design/index.d.ts +5 -0
- package/axis-components/color-picker/design/index.d.ts.map +1 -0
- package/axis-components/color-picker/index.d.ts +20 -0
- package/axis-components/color-picker/index.d.ts.map +1 -0
- package/axis-components/cytoscape/design/index.d.ts +5 -0
- package/axis-components/cytoscape/design/index.d.ts.map +1 -0
- package/axis-components/cytoscape/index.d.ts +20 -0
- package/axis-components/cytoscape/index.d.ts.map +1 -0
- package/axis-components/date-picker/design/index.d.ts +5 -0
- package/axis-components/date-picker/design/index.d.ts.map +1 -0
- package/axis-components/date-picker/index.d.ts +36 -0
- package/axis-components/date-picker/index.d.ts.map +1 -0
- package/axis-components/desc/design/index.d.ts +5 -0
- package/axis-components/desc/design/index.d.ts.map +1 -0
- package/axis-components/desc/index.d.ts +30 -0
- package/axis-components/desc/index.d.ts.map +1 -0
- package/axis-components/design/design/index.d.ts +5 -0
- package/axis-components/design/index.d.ts +282 -0
- package/axis-components/dropdown/design/index.d.ts +5 -0
- package/axis-components/dropdown/design/index.d.ts.map +1 -0
- package/axis-components/dropdown/index.d.ts +25 -0
- package/axis-components/dropdown/index.d.ts.map +1 -0
- package/axis-components/dynamic-container/design/index.d.ts +5 -0
- package/axis-components/dynamic-container/design/index.d.ts.map +1 -0
- package/axis-components/dynamic-container/index.d.ts +44 -0
- package/axis-components/dynamic-container/index.d.ts.map +1 -0
- package/axis-components/dynamic-value/design/index.d.ts +5 -0
- package/axis-components/dynamic-value/design/index.d.ts.map +1 -0
- package/axis-components/dynamic-value/index.d.ts +16 -0
- package/axis-components/dynamic-value/index.d.ts.map +1 -0
- package/axis-components/edit-table/design/index.d.ts +5 -0
- package/axis-components/edit-table/design/index.d.ts.map +1 -0
- package/axis-components/edit-table/index.d.ts +106 -0
- package/axis-components/edit-table/index.d.ts.map +1 -0
- package/axis-components/editor/design/index.d.ts +5 -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 +31 -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/design/index.d.ts.map +1 -0
- package/axis-components/image/index.d.ts +18 -0
- package/axis-components/image/index.d.ts.map +1 -0
- package/axis-components/index.d.ts +5 -0
- package/axis-components/index.d.ts.map +1 -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/design/index.d.ts.map +1 -0
- package/axis-components/input-component/index.d.ts +43 -0
- package/axis-components/input-component/index.d.ts.map +1 -0
- package/axis-components/input-icon/design/index.d.ts +5 -0
- package/axis-components/input-icon/index.d.ts +25 -0
- package/axis-components/input-json/design/index.d.ts +5 -0
- package/axis-components/input-json/index.d.ts +25 -0
- package/axis-components/input-number/design/index.d.ts +5 -0
- package/axis-components/input-number/design/index.d.ts.map +1 -0
- package/axis-components/input-number/index.d.ts +25 -0
- package/axis-components/input-number/index.d.ts.map +1 -0
- package/axis-components/menu/design/index.d.ts +5 -0
- package/axis-components/menu/design/index.d.ts.map +1 -0
- package/axis-components/menu/index.d.ts +43 -0
- package/axis-components/menu/index.d.ts.map +1 -0
- package/axis-components/modal/design/index.d.ts +5 -0
- package/axis-components/modal/design/index.d.ts.map +1 -0
- package/axis-components/modal/index.d.ts +33 -0
- package/axis-components/modal/index.d.ts.map +1 -0
- package/axis-components/radio/design/index.d.ts +5 -0
- package/axis-components/radio/design/index.d.ts.map +1 -0
- package/axis-components/radio/index.d.ts +31 -0
- package/axis-components/radio/index.d.ts.map +1 -0
- package/axis-components/rate/design/index.d.ts +5 -0
- package/axis-components/rate/design/index.d.ts.map +1 -0
- package/axis-components/rate/index.d.ts +16 -0
- package/axis-components/rate/index.d.ts.map +1 -0
- package/axis-components/rich-text-editor/design/index.d.ts +5 -0
- package/axis-components/rich-text-editor/design/index.d.ts.map +1 -0
- package/axis-components/rich-text-editor/index.d.ts +28 -0
- package/axis-components/rich-text-editor/index.d.ts.map +1 -0
- package/axis-components/scope/design/index.d.ts +5 -0
- package/axis-components/scope/index.d.ts +26 -0
- package/axis-components/select/design/index.d.ts +5 -0
- package/axis-components/select/index.d.ts +48 -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/design/index.d.ts.map +1 -0
- package/axis-components/splitter/index.d.ts +29 -0
- package/axis-components/splitter/index.d.ts.map +1 -0
- package/axis-components/steps/design/index.d.ts +5 -0
- package/axis-components/steps/design/index.d.ts.map +1 -0
- package/axis-components/steps/index.d.ts +38 -0
- package/axis-components/steps/index.d.ts.map +1 -0
- package/axis-components/switch/design/index.d.ts +5 -0
- package/axis-components/switch/design/index.d.ts.map +1 -0
- package/axis-components/switch/index.d.ts +23 -0
- package/axis-components/switch/index.d.ts.map +1 -0
- package/axis-components/table/design/index.d.ts +5 -0
- package/axis-components/table/index.d.ts +144 -0
- package/axis-components/table-helper/index.d.ts +220 -0
- package/axis-components/tabs/design/index.d.ts +5 -0
- package/axis-components/tabs/design/index.d.ts.map +1 -0
- package/axis-components/tabs/index.d.ts +38 -0
- package/axis-components/tabs/index.d.ts.map +1 -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/design/index.d.ts.map +1 -0
- package/axis-components/textarea/index.d.ts +25 -0
- package/axis-components/textarea/index.d.ts.map +1 -0
- package/axis-components/timer/design/index.d.ts +5 -0
- package/axis-components/timer/design/index.d.ts.map +1 -0
- package/axis-components/timer/index.d.ts +22 -0
- package/axis-components/timer/index.d.ts.map +1 -0
- package/axis-components/transfer/design/index.d.ts +5 -0
- package/axis-components/transfer/design/index.d.ts.map +1 -0
- package/axis-components/transfer/index.d.ts +113 -0
- package/axis-components/transfer/index.d.ts.map +1 -0
- package/axis-components/tree-selector/design/index.d.ts +5 -0
- package/axis-components/tree-selector/design/index.d.ts.map +1 -0
- package/axis-components/tree-selector/index.d.ts +80 -0
- package/axis-components/tree-selector/index.d.ts.map +1 -0
- package/axis-components/upload/design/index.d.ts +5 -0
- package/axis-components/upload/design/index.d.ts.map +1 -0
- package/axis-components/upload/index.d.ts +52 -0
- package/axis-components/upload/index.d.ts.map +1 -0
- package/axis-components-covers/badge.svg +1 -0
- package/axis-components-covers/button.svg +14 -0
- package/axis-components-covers/checkbox.svg +24 -0
- package/axis-components-covers/color-picker.svg +98 -0
- package/axis-components-covers/cytoscape.svg +17 -0
- package/axis-components-covers/date-picker.svg +28 -0
- package/axis-components-covers/desc.svg +39 -0
- package/axis-components-covers/design.jpg +0 -0
- package/axis-components-covers/dropdown.svg +39 -0
- package/axis-components-covers/dynamic-container.svg +9 -0
- package/axis-components-covers/dynamic-value.svg +32 -0
- package/axis-components-covers/edit-table.png +0 -0
- package/axis-components-covers/editor.png +0 -0
- package/axis-components-covers/flex.svg +33 -0
- package/axis-components-covers/form-item.svg +22 -0
- package/axis-components-covers/form.svg +38 -0
- package/axis-components-covers/icon.svg +22 -0
- package/axis-components-covers/image.svg +13 -0
- package/axis-components-covers/input-component.svg +27 -0
- package/axis-components-covers/input-icon.svg +29 -0
- package/axis-components-covers/input-json.svg +29 -0
- package/axis-components-covers/input-number.svg +35 -0
- package/axis-components-covers/input.svg +21 -0
- package/axis-components-covers/menu.svg +17 -0
- package/axis-components-covers/modal.svg +23 -0
- package/axis-components-covers/radio.svg +19 -0
- package/axis-components-covers/rate.svg +31 -0
- package/axis-components-covers/rich-text-editor.png +0 -0
- package/axis-components-covers/scope.svg +9 -0
- package/axis-components-covers/select.svg +20 -0
- package/axis-components-covers/splitter.svg +8 -0
- package/axis-components-covers/steps.svg +1 -0
- package/axis-components-covers/switch.svg +14 -0
- package/axis-components-covers/table.svg +27 -0
- package/axis-components-covers/tabs.svg +1 -0
- package/axis-components-covers/text.svg +22 -0
- package/axis-components-covers/textarea.svg +9 -0
- package/axis-components-covers/timer.svg +1 -0
- package/axis-components-covers/transfer.svg +86 -0
- package/axis-components-covers/tree-selector.svg +77 -0
- package/axis-components-covers/upload.svg +26 -0
- package/core/index.d.ts +853 -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 +120 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +80 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +92 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +119 -0
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +97 -0
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +34 -0
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +63 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +54 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +115 -0
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +104 -0
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.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 +83 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +1922 -0
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +178 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +55 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +83 -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 +149 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +77 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +29 -0
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +344 -0
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +332 -0
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +75 -0
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.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 +88 -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 +97 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +151 -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 +56 -0
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +83 -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 +64 -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 +75 -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 +74 -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-menu-design.mjs +356 -0
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +98 -0
- package/fesm2022/ngx-axis-appforge-axis-components-menu.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-radio-design.mjs +104 -0
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +100 -0
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +80 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +30 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +76 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +141 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +388 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +75 -0
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +146 -0
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +202 -0
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +121 -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 +106 -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 +60 -0
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +197 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +61 -0
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +79 -0
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +48 -0
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +497 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +650 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +374 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +260 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +69 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.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-timer-design.mjs +69 -0
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +59 -0
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +359 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +278 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +223 -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 +337 -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 +175 -0
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +1643 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-core.mjs +3611 -0
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-providers.mjs +52 -0
- 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 +389 -0
- package/providers/index.d.ts +13 -0
- package/providers/index.d.ts.map +1 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FunFieldValueBase, valueFbConfig, baseFbConfig, valueFunField, baseFunField, ValueDesignSetting, BaseDesignSetting, InputTrigger, OptionsNode } from 'ngx-axis-appforge/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i1 from 'ng-zorro-antd/form';
|
|
7
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
8
|
+
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
9
|
+
import * as i3 from 'ng-zorro-antd/collapse';
|
|
10
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
11
|
+
|
|
12
|
+
class Setting extends FunFieldValueBase {
|
|
13
|
+
fg = this.fb.group(({
|
|
14
|
+
...baseFbConfig,
|
|
15
|
+
...valueFbConfig,
|
|
16
|
+
}));
|
|
17
|
+
funFields = {
|
|
18
|
+
...baseFunField,
|
|
19
|
+
...valueFunField,
|
|
20
|
+
};
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-input-json-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i3.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'axis-design-input-json-setting', imports: [NzFormModule, FormsModule, ReactiveFormsModule, NzGridModule, NzCollapseModule, ValueDesignSetting, BaseDesignSetting, InputTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
27
|
+
}] });
|
|
28
|
+
|
|
29
|
+
const Config = {
|
|
30
|
+
componentName: "JSON输入框",
|
|
31
|
+
buildOptionsNodes(nextInfo) {
|
|
32
|
+
return {
|
|
33
|
+
treeNode: new OptionsNode({
|
|
34
|
+
parentId: nextInfo.parentId,
|
|
35
|
+
scopeId: nextInfo.scopeId,
|
|
36
|
+
name: "JSON输入框",
|
|
37
|
+
canSetting: true,
|
|
38
|
+
canDrag: true,
|
|
39
|
+
dragType: "component",
|
|
40
|
+
parentObj: nextInfo.parentObject,
|
|
41
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
42
|
+
rootOptions: nextInfo.currentObject,
|
|
43
|
+
settingType: Setting,
|
|
44
|
+
icon: "file"
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
bindElementsOptionsNode(element, options) {
|
|
49
|
+
return {
|
|
50
|
+
[options.id]: { element }
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Generated bundle index. Do not edit.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
export { Config };
|
|
60
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-json-design.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-json-design.mjs","sources":["../../../axis-components/input-json/design/setting/setting.ts","../../../axis-components/input-json/design/setting/setting.html","../../../axis-components/input-json/design/config.ts","../../../axis-components/input-json/design/ngx-axis-appforge-axis-components-input-json-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\n\n@Component({\n selector: 'axis-design-input-json-setting',\n imports: [NzFormModule, FormsModule, ReactiveFormsModule, NzGridModule, NzCollapseModule, ValueDesignSetting, BaseDesignSetting, InputTrigger],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n override fg: UntypedFormGroup = this.fb.group(({\n ...baseFbConfig,\n ...valueFbConfig,\n }));\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"JSON输入框\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"JSON输入框\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n icon: \"file\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;AAcM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AACnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;AAC7C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AACjB,KAAA,EAAE;AAEgB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;KACjB;uGATU,OAAO,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAP,IAAA,OAAA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,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,SAAS;AACf,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,IAAI,EAAE;aACT;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AC3BL;;AAEG;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { computed, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
5
|
+
import * as i2 from 'ng-zorro-antd/input';
|
|
6
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
7
|
+
import * as i4 from 'ng-zorro-antd/modal';
|
|
8
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i3 from 'ng-zorro-antd/icon';
|
|
11
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
12
|
+
import { NzAlertModule } from 'ng-zorro-antd/alert';
|
|
13
|
+
import { ValueAccess, ValueAccessOptions, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
14
|
+
|
|
15
|
+
class InputJson extends ValueAccess {
|
|
16
|
+
options = new ValueAccessOptions();
|
|
17
|
+
editorOptions = computed(() => ({
|
|
18
|
+
component: "axis-components/editor",
|
|
19
|
+
inuse: true,
|
|
20
|
+
mode: "json",
|
|
21
|
+
readonly: this.options.readonly(),
|
|
22
|
+
disabled: this.options.disabled(),
|
|
23
|
+
}), ...(ngDevMode ? [{ debugName: "editorOptions" }] : []));
|
|
24
|
+
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
25
|
+
canOk = computed(() => {
|
|
26
|
+
try {
|
|
27
|
+
if (this.editData() != "") {
|
|
28
|
+
JSON.parse(this.editData());
|
|
29
|
+
}
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
catch (_) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}, ...(ngDevMode ? [{ debugName: "canOk" }] : []));
|
|
36
|
+
editData = model("", ...(ngDevMode ? [{ debugName: "editData" }] : []));
|
|
37
|
+
setInitValue(value) {
|
|
38
|
+
super.setInitValue(value);
|
|
39
|
+
this.setEditData();
|
|
40
|
+
}
|
|
41
|
+
writeValue(value) {
|
|
42
|
+
super.writeValue(value);
|
|
43
|
+
this.setEditData();
|
|
44
|
+
}
|
|
45
|
+
setEditData() {
|
|
46
|
+
if (this.value() !== undefined) {
|
|
47
|
+
this.editData.set(JSON.stringify(this.value(), null, '\t'));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.editData.set("");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
onCancel() {
|
|
54
|
+
this.setEditData();
|
|
55
|
+
this.open.set(false);
|
|
56
|
+
}
|
|
57
|
+
onOk() {
|
|
58
|
+
this.open.set(false);
|
|
59
|
+
this.onChange?.(this.editData() == "" ? null : JSON.parse(this.editData()));
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InputJson, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.4", type: InputJson, isStandalone: true, selector: "axis-input-json", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, editData: { classPropertyName: "editData", publicName: "editData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", editData: "editDataChange" }, usesInheritance: true, ngImport: i0, template: "<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'\u786E\u5B9A'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i2.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i4.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i4.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "directive", type: i4.NzModalTitleDirective, selector: "[nzModalTitle]", exportAs: ["nzModalTitle"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzAlertModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InputJson, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'axis-input-json', imports: [ReactiveFormsModule, NzInputModule, NzIconModule, NzModalModule, NzFormModule, NzAlertModule, DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'\u786E\u5B9A'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'\u67E5\u770BJSON':'\u7F16\u8F91JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>", styles: [":host{display:block;width:100%}\n"] }]
|
|
67
|
+
}] });
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Generated bundle index. Do not edit.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
export { InputJson };
|
|
74
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-json.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-json.mjs","sources":["../../../axis-components/input-json/input-json.ts","../../../axis-components/input-json/input-json.html","../../../axis-components/input-json/ngx-axis-appforge-axis-components-input-json.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzAlertModule } from 'ng-zorro-antd/alert';\nimport { DynamicDirective, ValueAccess, ValueAccessOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-input-json',\n imports: [ReactiveFormsModule, NzInputModule, NzIconModule, NzModalModule, NzFormModule, NzAlertModule, DynamicDirective, FormsModule],\n templateUrl: './input-json.html',\n styleUrl: './input-json.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class InputJson extends ValueAccess<ValueAccessOptions> {\n\n override options: ValueAccessOptions = new ValueAccessOptions();\n\n readonly editorOptions = computed(() => ({\n component: \"axis-components/editor\",\n inuse: true,\n mode: \"json\",\n readonly: this.options.readonly(),\n disabled: this.options.disabled(),\n }));\n\n readonly open = model(false);\n\n readonly canOk = computed(() => {\n try {\n if (this.editData() != \"\") {\n JSON.parse(this.editData());\n }\n return true;\n } catch (_) {\n return false;\n }\n });\n\n readonly editData = model(\"\");\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n this.setEditData();\n }\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.setEditData();\n }\n\n setEditData() {\n if (this.value() !== undefined) {\n this.editData.set(JSON.stringify(this.value(), null, '\\t'));\n } else {\n this.editData.set(\"\");\n }\n }\n\n onCancel() {\n this.setEditData();\n this.open.set(false);\n }\n\n onOk() {\n this.open.set(false);\n this.onChange?.(this.editData() == \"\" ? null : JSON.parse(this.editData()));\n }\n\n}\n","<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input nz-input readonly [style.cursor]=\"options.disabled()?null:'pointer'\" [disabled]=\"options.disabled()\"\n type=\"text\" [placeholder]=\"options.readonly()?'查看JSON':'编辑JSON'\" (click)=\"open.set(true)\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i>\n</ng-template>\n<ng-template #suffixTemplate>\n <i style=\"color:rgba(150, 150, 150, 0.5);\" nz-icon nzType=\"right\" nzTheme=\"outline\"></i>\n</ng-template>\n<nz-modal nzWidth=\"800px\" [nzBodyStyle]=\"{padding:'0',height:'400px'}\" [(nzVisible)]=\"open\" (nzOnCancel)=\"onCancel()\"\n (nzOnOk)=\"onOk()\" [nzOkDisabled]=\"!canOk()\" [nzOkText]=\"options.readonly()?null:'确定'\">\n <ng-container *nzModalTitle>\n <i nz-icon [nzType]=\"options.readonly()?'eye':'edit'\"></i> {{options.readonly()?'查看JSON':'编辑JSON'}}\n </ng-container>\n <ng-container *nzModalContent>\n <ng-container [axisDynamic]=\"editorOptions()\" [standalone]=\"true\" [(ngModel)]=\"editData\"></ng-container>\n </ng-container>\n</nz-modal>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-json';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBM,MAAO,SAAU,SAAQ,WAA+B,CAAA;AAEnD,IAAA,OAAO,GA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,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAA,eAAA,EAGrH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6rCAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { FunFieldValueBase, FormValidators, valueFbConfig, baseFbConfig, valueFunField, baseFunField, FunField, BaseDesignSetting, InputTrigger, ValueDesignSetting, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i2 from 'ng-zorro-antd/collapse';
|
|
7
|
+
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
|
|
8
|
+
import * as i6 from 'ng-zorro-antd/form';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i4 from 'ng-zorro-antd/input';
|
|
11
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
12
|
+
import * as i3 from 'ng-zorro-antd/input-number';
|
|
13
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
14
|
+
import * as i8 from 'ng-zorro-antd/radio';
|
|
15
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
16
|
+
import * as i9 from 'ng-zorro-antd/select';
|
|
17
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
18
|
+
import * as i7 from 'ng-zorro-antd/switch';
|
|
19
|
+
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
20
|
+
import * as i5 from 'ng-zorro-antd/grid';
|
|
21
|
+
|
|
22
|
+
class Setting extends FunFieldValueBase {
|
|
23
|
+
fg = this.fb.group({
|
|
24
|
+
...baseFbConfig,
|
|
25
|
+
...valueFbConfig,
|
|
26
|
+
max: [],
|
|
27
|
+
min: [],
|
|
28
|
+
step: [undefined, FormValidators.requiredFun],
|
|
29
|
+
precision: [],
|
|
30
|
+
controls: [undefined, FormValidators.requiredFun],
|
|
31
|
+
placeholder: [],
|
|
32
|
+
variant: [undefined, FormValidators.requiredFun],
|
|
33
|
+
size: [undefined, FormValidators.requiredFun],
|
|
34
|
+
align: [undefined, FormValidators.requiredFun],
|
|
35
|
+
});
|
|
36
|
+
funFields = {
|
|
37
|
+
...baseFunField,
|
|
38
|
+
...valueFunField,
|
|
39
|
+
max: {
|
|
40
|
+
defaultValue: undefined
|
|
41
|
+
},
|
|
42
|
+
min: {
|
|
43
|
+
defaultValue: undefined
|
|
44
|
+
},
|
|
45
|
+
step: {
|
|
46
|
+
defaultValue: 1
|
|
47
|
+
},
|
|
48
|
+
precision: {
|
|
49
|
+
defaultValue: undefined
|
|
50
|
+
},
|
|
51
|
+
controls: {
|
|
52
|
+
defaultValue: true
|
|
53
|
+
},
|
|
54
|
+
placeholder: {
|
|
55
|
+
defaultValue: ""
|
|
56
|
+
},
|
|
57
|
+
variant: {
|
|
58
|
+
defaultValue: "outlined"
|
|
59
|
+
},
|
|
60
|
+
size: {
|
|
61
|
+
defaultValue: "default"
|
|
62
|
+
},
|
|
63
|
+
align: {
|
|
64
|
+
defaultValue: "left"
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-input-number-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u8F93\u5165\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5C0F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8C03\u6574\u6B65\u957F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5C0F\u6570\u7CBE\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u589E\u51CF\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BF9\u9F50\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">\u5DE6</label>\n <label nz-radio-button nzValue=\"center\">\u4E2D</label>\n <label nz-radio-button nzValue=\"right\">\u53F3</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i4.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i5.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i5.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i6.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i6.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i6.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i6.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i7.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i8.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i8.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i9.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i9.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ selector: 'axis-design-input-number-setting', imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u8F93\u5165\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5C0F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8C03\u6574\u6B65\u957F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5C0F\u6570\u7CBE\u5EA6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u589E\u51CF\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5360\u4F4D\u7B26\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F62\u6001\u53D8\u4F53\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"\u5916\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"\u65E0\u8FB9\u6846\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"\u586B\u5145\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"\u4E0B\u8FB9\u7EBF\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BF9\u9F50\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">\u5DE6</label>\n <label nz-radio-button nzValue=\"center\">\u4E2D</label>\n <label nz-radio-button nzValue=\"right\">\u53F3</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
73
|
+
}] });
|
|
74
|
+
|
|
75
|
+
const Config = {
|
|
76
|
+
componentName: "数值输入框",
|
|
77
|
+
buildOptionsNodes(nextInfo) {
|
|
78
|
+
return {
|
|
79
|
+
treeNode: new OptionsNode({
|
|
80
|
+
parentId: nextInfo.parentId,
|
|
81
|
+
scopeId: nextInfo.scopeId,
|
|
82
|
+
name: "数值输入框",
|
|
83
|
+
canSetting: true,
|
|
84
|
+
canDrag: true,
|
|
85
|
+
dragType: "component",
|
|
86
|
+
parentObj: nextInfo.parentObject,
|
|
87
|
+
indexOfParentObj: nextInfo.indexOfParent,
|
|
88
|
+
rootOptions: nextInfo.currentObject,
|
|
89
|
+
settingType: Setting,
|
|
90
|
+
contextMenu: SimpleMenu,
|
|
91
|
+
icon: "field-number",
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
bindElementsOptionsNode(element, options) {
|
|
96
|
+
return {
|
|
97
|
+
[options.id]: { element }
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Generated bundle index. Do not edit.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
export { Config };
|
|
107
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-number-design.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number-design.mjs","sources":["../../../axis-components/input-number/design/setting/setting.ts","../../../axis-components/input-number/design/setting/setting.html","../../../axis-components/input-number/design/config.ts","../../../axis-components/input-number/design/ngx-axis-appforge-axis-components-input-number-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-input-number-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n max: [],\n min: [],\n step: [undefined, FormValidators.requiredFun],\n precision: [],\n controls: [undefined, FormValidators.requiredFun],\n placeholder: [],\n variant: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n align: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n max: {\n defaultValue: undefined\n },\n min: {\n defaultValue: undefined\n },\n step: {\n defaultValue: 1\n },\n precision: {\n defaultValue: undefined\n },\n controls: {\n defaultValue: true\n },\n placeholder: {\n defaultValue: \"\"\n },\n variant: {\n defaultValue: \"outlined\"\n },\n size: {\n defaultValue: \"default\"\n },\n align: {\n defaultValue: \"left\"\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"输入设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 最大值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"max\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 最小值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"min\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 调整步长\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"step\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 小数精度\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"precision\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"外观设置\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 增减按钮\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"controls\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 占位符\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 形态变体\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"variant\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"outlined\" nzLabel=\"外边框\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"无边框\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"填充\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"下边线\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"small\">小</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"large\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 对齐方式\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"align\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"left\">左</label>\n <label nz-radio-button nzValue=\"center\">中</label>\n <label nz-radio-button nzValue=\"right\">右</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"数值输入框\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"数值输入框\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"field-number\",\n }),\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAChD,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,KAAK,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC/C,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,GAAG,EAAE;AACH,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,GAAG,EAAE;AACH,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,IAAI,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ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
|
|
4
|
+
import * as i1 from 'ng-zorro-antd/input-number';
|
|
5
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { FormsModule } from '@angular/forms';
|
|
8
|
+
import * as i3 from '@angular/common';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
|
|
11
|
+
class InputNumberOptions extends ValueAccessOptions {
|
|
12
|
+
max = signal(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
13
|
+
min = signal(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
14
|
+
step = signal(1, ...(ngDevMode ? [{ debugName: "step" }] : []));
|
|
15
|
+
precision = signal(null, ...(ngDevMode ? [{ debugName: "precision" }] : []));
|
|
16
|
+
controls = signal(true, ...(ngDevMode ? [{ debugName: "controls" }] : []));
|
|
17
|
+
placeholder = signal("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
18
|
+
variant = signal("outlined", ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
19
|
+
size = signal('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
20
|
+
align = signal('left', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class InputNumber extends ValueAccess {
|
|
24
|
+
options = new InputNumberOptions();
|
|
25
|
+
max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max(), ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
26
|
+
min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min(), ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
27
|
+
digitsInfo = computed(() => {
|
|
28
|
+
if (this.options.precision() == null) {
|
|
29
|
+
return "1.0";
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return `1.0-${this.options.precision()}`;
|
|
33
|
+
}
|
|
34
|
+
}, ...(ngDevMode ? [{ debugName: "digitsInfo" }] : []));
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: InputNumber, isStandalone: true, selector: "axis-input-number", usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"], dependencies: [{ kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i1.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InputNumber, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'axis-input-number', imports: [NzInputNumberModule, FormsModule, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"] }]
|
|
41
|
+
}] });
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Generated bundle index. Do not edit.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
export { InputNumber };
|
|
48
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-input-number.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number.mjs","sources":["../../../axis-components/input-number/input-number.options.ts","../../../axis-components/input-number/input-number.ts","../../../axis-components/input-number/input-number.html","../../../axis-components/input-number/ngx-axis-appforge-axis-components-input-number.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputNumberOptions extends ValueAccessOptions {\n\n readonly max = signal<number | null>(null);\n readonly min = signal<number | null>(null);\n readonly step = signal(1);\n readonly precision = signal<number | null>(null);\n\n readonly controls = signal(true);\n readonly placeholder = signal(\"\");\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n readonly size = signal<'large' | 'default' | 'small'>('default');\n readonly align = signal<\"left\" | \"center\" | \"right\">('left');\n\n}","import { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { InputNumberOptions } from './input-number.options';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'axis-input-number',\n imports: [NzInputNumberModule, FormsModule, CommonModule],\n templateUrl: './input-number.html',\n styleUrl: './input-number.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputNumber extends ValueAccess<InputNumberOptions> {\n\n override options: InputNumberOptions = new InputNumberOptions();\n\n readonly max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max());\n readonly min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min());\n\n readonly digitsInfo = computed(() => {\n if (this.options.precision() == null) {\n return \"1.0\"\n } else {\n return `1.0-${this.options.precision()}`;\n }\n })\n\n}\n","@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-number';\n"],"names":[],"mappings":";;;;;;;;;;AAGM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAE7C,IAAA,GAAG,GAAG,MAAM,CAAgB,IAAI,+CAAC;AACjC,IAAA,GAAG,GAAG,MAAM,CAAgB,IAAI,+CAAC;AACjC,IAAA,IAAI,GAAG,MAAM,CAAC,CAAC,gDAAC;AAChB,IAAA,SAAS,GAAG,MAAM,CAAgB,IAAI,qDAAC;AAEvC,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,oDAAC;AACvB,IAAA,WAAW,GAAG,MAAM,CAAC,EAAE,uDAAC;AACxB,IAAA,OAAO,GAAG,MAAM,CAAsD,UAAU,mDAAC;AACjF,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,KAAK,GAAG,MAAM,CAA8B,MAAM,iDAAC;AAE/D;;ACFK,MAAO,WAAY,SAAQ,WAA+B,CAAA;AAErD,IAAA,OAAO,GAAuB,IAAI,kBAAkB,EAAE;AAEtD,IAAA,GAAG,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,IAAI,GAAG,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,+CAAC;AAC/F,IAAA,GAAG,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,IAAI,GAAG,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,+CAAC;AAE/F,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;QAClC,IAAI,IAAI,CAAC,OAAO,CAAC,S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B,SAAS;+BACE,mBAAmB,EAAA,OAAA,EACpB,CAAC,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC,EAAA,eAAA,EAGxC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mlBAAA,EAAA,MAAA,EAAA,CAAA,oTAAA,CAAA,EAAA;;;AEZjD;;AAEG;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, effect, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { ValueAccessOptions, ValueAccess, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import * as i1 from 'ng-zorro-antd/input';
|
|
7
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
8
|
+
import { debounceTime, Subject } from 'rxjs';
|
|
9
|
+
|
|
10
|
+
class InputOptions extends ValueAccessOptions {
|
|
11
|
+
placeholder = signal("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
12
|
+
maxlength = signal(null, ...(ngDevMode ? [{ debugName: "maxlength" }] : []));
|
|
13
|
+
debounceTime = signal(null, ...(ngDevMode ? [{ debugName: "debounceTime" }] : []));
|
|
14
|
+
autofocus = signal(false, ...(ngDevMode ? [{ debugName: "autofocus" }] : []));
|
|
15
|
+
type = signal("text", ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
16
|
+
prefix = signal(undefined, ...(ngDevMode ? [{ debugName: "prefix" }] : []));
|
|
17
|
+
suffix = signal(undefined, ...(ngDevMode ? [{ debugName: "suffix" }] : []));
|
|
18
|
+
variant = signal("outlined", ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class Input extends ValueAccess {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
effect(() => {
|
|
25
|
+
this.unsubscribe(["change"]);
|
|
26
|
+
if (this.options.debounceTime() ?? 0 > 0) {
|
|
27
|
+
this.addSubscribe(this.inputSubject.pipe(debounceTime(this.options.debounceTime())).subscribe(value => {
|
|
28
|
+
this.value.set(value);
|
|
29
|
+
this.onChange?.(value);
|
|
30
|
+
}), "change");
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.addSubscribe(this.inputSubject.subscribe(value => {
|
|
34
|
+
this.value.set(value);
|
|
35
|
+
this.onChange?.(value);
|
|
36
|
+
}), "change");
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
effect(() => {
|
|
40
|
+
if (this.options.initValue() !== undefined) {
|
|
41
|
+
this.inputValue.set(this.options.initValue());
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
options = new InputOptions();
|
|
46
|
+
inputValue = model(...(ngDevMode ? [undefined, { debugName: "inputValue" }] : []));
|
|
47
|
+
inputSubject = new Subject();
|
|
48
|
+
writeValue(value) {
|
|
49
|
+
super.writeValue(value);
|
|
50
|
+
this.inputValue.set(value);
|
|
51
|
+
}
|
|
52
|
+
onEnter() {
|
|
53
|
+
this.triggeEvents("enterKeydown").subscribe();
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Input, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Input, isStandalone: true, selector: "axis-input", inputs: { inputValue: { classPropertyName: "inputValue", publicName: "inputValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { inputValue: "inputValueChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template>\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Input, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{ selector: 'axis-input', imports: [NzInputModule, FormsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template>\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}", styles: [":host{display:block;width:100%}\n"] }]
|
|
61
|
+
}], ctorParameters: () => [] });
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Generated bundle index. Do not edit.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
export { Input };
|
|
68
|
+
//# sourceMappingURL=ngx-axis-appforge-axis-components-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input.mjs","sources":["../../../axis-components/input/input.options.ts","../../../axis-components/input/input.ts","../../../axis-components/input/input.html","../../../axis-components/input/ngx-axis-appforge-axis-components-input.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputOptions extends ValueAccessOptions {\n\n readonly placeholder = signal(\"\");\n readonly maxlength = signal<number | null>(null);\n readonly debounceTime = signal<number | null>(null);\n readonly autofocus = signal<boolean>(false);\n readonly type = signal<\"text\" | \"password\">(\"text\");\n readonly prefix = signal<any>(undefined);\n readonly suffix = signal<any>(undefined);\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n}","import { ChangeDetectionStrategy, Component, effect, model } from '@angular/core';\nimport { InputOptions } from './input.options';\nimport { FormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { debounceTime, Subject } from 'rxjs';\n\n@Component({\n selector: 'axis-input',\n imports: [NzInputModule, FormsModule, DynamicDirective],\n templateUrl: './input.html',\n styleUrl: './input.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Input extends ValueAccess<InputOptions> {\n constructor() {\n super();\n effect(() => {\n this.unsubscribe([\"change\"]);\n if (this.options.debounceTime() ?? 0 > 0) {\n this.addSubscribe(this.inputSubject.pipe(debounceTime(this.options.debounceTime()!)).subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n } else {\n this.addSubscribe(this.inputSubject.subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n }\n });\n effect(() => {\n if (this.options.initValue() !== undefined) {\n this.inputValue.set(this.options.initValue());\n }\n })\n }\n\n override options: InputOptions = new InputOptions();\n\n readonly inputValue = model<string>();\n readonly inputSubject = new Subject();\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.inputValue.set(value);\n }\n\n onEnter() {\n this.triggeEvents(\"enterKeydown\").subscribe();\n }\n\n}\n","@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\" />\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template>\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input';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