@gct-paas/excel 0.1.26 → 0.1.28-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{VueVideoPlayer-0DuOfiQX.js → VueVideoPlayer-DoCV5anE.js} +2 -2
- package/dist/{agg-design-Bs7uvazc.js → agg-design-FWqhGZMN.js} +1 -1
- package/dist/{agg-props-Bp3BzB8p.js → agg-props-Demj2zwb.js} +1 -1
- package/dist/{agg-style-5rib-2BW.js → agg-style-0D2plP6P.js} +1 -1
- package/dist/{align-editor-DQ8dFN7Z.js → align-editor-BT_0oTzG.js} +1 -1
- package/dist/{attach-fields-editor-C96vYS5i.js → attach-fields-editor-Bh-SLSaJ.js} +5 -5
- package/dist/{barcode-design-GARKK2E6.js → barcode-design-B6DeTtec.js} +2 -2
- package/dist/base/index.es.js +437 -586
- package/dist/{base-font-editor-D1Yhc2dM.js → base-font-editor-rUy04_I5.js} +2 -2
- package/dist/{boolean-design-E8aTzvqE.js → boolean-design-s-0j811G.js} +2 -2
- package/dist/{boolean-props-DXxrp-m9.js → boolean-props-BKDCL1yv.js} +3 -3
- package/dist/{boolean-style-CL0DlbC0.js → boolean-style-z1WMMTXQ.js} +4 -4
- package/dist/{cell-upload-Mt9EhaFR.js → cell-upload-DIfLFlqF.js} +1 -1
- package/dist/{date-range-editor-CWD3tYMA.js → date-range-editor-Bl5qPmvu.js} +2 -2
- package/dist/{date-time-design-DxEvgEi8.js → date-time-design-BTNkgPAM.js} +1 -1
- package/dist/{date-time-props-B5Xtc7-X.js → date-time-props-DiVxg9n4.js} +3 -3
- package/dist/{date-time-style-CH-mslF5.js → date-time-style-yt5pO1dc.js} +1 -1
- package/dist/{decimal-design-DvIA4NX0.js → decimal-design-BW5UQRTH.js} +1 -1
- package/dist/{decimal-display-mode-DZwDd5fU.js → decimal-display-mode-BWR1rZ3-.js} +2 -2
- package/dist/{decimal-props-BKRzrJ-r.js → decimal-props-S3vHwaWf.js} +4 -4
- package/dist/{decimal-style-DMFs7IFs.js → decimal-style-6q9_KbIT.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BLCWBDOv.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B51R6Kdt.js} +2 -2
- package/dist/{diagonal-design-COpzJE_o.js → diagonal-design-BKuv-KYn.js} +2 -2
- package/dist/{double-design-BTJtq1hk.js → double-design-CrnloQ6U.js} +1 -1
- package/dist/{double-props-Bq3vZziK.js → double-props-CIqRhF3C.js} +4 -4
- package/dist/{double-style-DiufxslF.js → double-style-BRXKv9Tt.js} +1 -1
- package/dist/{dynamic-table-action-Dqp3OJDg.js → dynamic-table-action-B3_wsebH.js} +1359 -1077
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CvVlP70-.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js} +3396 -621
- package/dist/{edit.utils-CXmmCnxE-W27Whv1y.js → edit.utils-CXmmCnxE-C1IiqVhe.js} +1 -1
- package/dist/{enum-design-BcF4g87b.js → enum-design-4iAQqQWj.js} +2 -2
- package/dist/{enum-props-C7JjTMv4.js → enum-props-BTNED9Yi.js} +3 -3
- package/dist/{enum-style-CyAkQvzE.js → enum-style-BKunBcCU.js} +3 -3
- package/dist/excel.css +1120 -797
- package/dist/{exceljs.min-D-ILZl-Z.js → exceljs.min-DqUfJ7Zu.js} +2 -2
- package/dist/{expression-design-CjzPxio0.js → expression-design-Avbzm2SR.js} +1 -1
- package/dist/{expression-props-mAVBd5Lq.js → expression-props-BJ2AaS83.js} +1 -1
- package/dist/{expression-style-CrRd3CZN.js → expression-style-Cf0ZciKB.js} +1 -1
- package/dist/{file-design-BvSmEEHz.js → file-design-DXTNk70M.js} +1 -1
- package/dist/{file-props-CmbLCylK.js → file-props-GieYTgUG.js} +2 -2
- package/dist/{file-style-ouUREdJB.js → file-style-CLDdPXPd.js} +1 -1
- package/dist/{font-editor-5O8-WS9U.js → font-editor-DFkc4KNc.js} +3 -3
- package/dist/{image-design-DOdX4Ejf.js → image-design-DWY2Pn2m.js} +2 -2
- package/dist/{image-design-D5Avl99X.js → image-design-J45gqUS9.js} +1 -1
- package/dist/{image-props-DS7B2haQ.js → image-props-DZmoqEbT.js} +1 -1
- package/dist/{image-style-BdC16P3Z.js → image-style-C41-zdmF.js} +1 -1
- package/dist/{index-CqvvTfDm.js → index-5k7C2AD1.js} +1 -1
- package/dist/{index-CZB6MFo2.js → index-B-UBLtsV.js} +1 -1
- package/dist/{index-tVnYGnyM.js → index-B3D6zOat.js} +1 -1
- package/dist/{index-DZWPjTfD.js → index-B9nlN0jW.js} +1 -1
- package/dist/{index--x-rjhUN.js → index-BHIdTmFi.js} +3697 -3053
- package/dist/{index-Bg7RbNAd.js → index-BNn5fobS.js} +1 -1
- package/dist/{index-DjO3xXoL.js → index-BlnMSgZL.js} +2 -2
- package/dist/{index-7Z0q-sUY.js → index-BsOmgpN3.js} +1 -1
- package/dist/{index-u0UnKD61.js → index-Bs_2N-BE.js} +1 -1
- package/dist/{index-Ul5I5n2Y.js → index-BtUdO868.js} +1 -1
- package/dist/{index-DeHhItHR.js → index-C0K1pWGN.js} +1 -1
- package/dist/{index-COPdP22U.js → index-C4hw1NhV.js} +1 -1
- package/dist/{index-Bs5CmUJ6.js → index-C6-vGm0H.js} +1 -1
- package/dist/{index-BA1e8Zw5.js → index-CR7wxW9-.js} +1 -1
- package/dist/{index-Bgz9h2Ur.js → index-CYKuotDL.js} +217 -98
- package/dist/{index-BGwmxIrV.js → index-Cir8zmM7.js} +1 -1
- package/dist/{index-nDINH7fF.js → index-D-uEhZUx.js} +5 -3
- package/dist/{index-DWlCnH_H.js → index-DIknXBmB.js} +2 -2
- package/dist/{index-DPFhljcW.js → index-DRfeEqsi.js} +12 -1
- package/dist/{index-CF4GPHX_.js → index-DXZ9-91Q.js} +1 -1
- package/dist/{index-DAVr0Puy.js → index-Dlcg-_u1.js} +1 -1
- package/dist/{index-B6YwjnNP.js → index-DpPM2hsI.js} +1 -1
- package/dist/{index-POh3kOtN.js → index-DsVq6bop.js} +1 -1
- package/dist/{index-CUDme4M_.js → index-DxfrB4yU.js} +2 -2
- package/dist/{index-OD0V6QZx.js → index-DyTI4fVG.js} +4 -2
- package/dist/{index-upoyI1QX.js → index-FJf8yRGg.js} +1 -1
- package/dist/{index-CO9M5kpu.js → index-Iri9iQ7A.js} +1 -1
- package/dist/{index-B4uW2dJ0.js → index-Izpo3y-u.js} +1 -1
- package/dist/{index-CMM4w3Dw.js → index-Kc67z3Sn.js} +1 -1
- package/dist/{index-mEVrSKb2.js → index-O2psifaU.js} +5 -3
- package/dist/{index-B9bcnmUU.js → index-ZKvvKhlF.js} +1 -1
- package/dist/{index-BqzGUi2w.js → index-s5kgaRm2.js} +1 -1
- package/dist/{index-BP7lVop7.js → index-vDKWJHdv.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{integer-design-XoAOklHI.js → integer-design-oIq4PZgB.js} +1 -1
- package/dist/{integer-props-UG7rgL98.js → integer-props-Dv0CFbj2.js} +4 -4
- package/dist/{integer-style-BwF6P-1M.js → integer-style-CQsFEa78.js} +1 -1
- package/dist/mb-render-13-1F66x.js +263 -0
- package/dist/{number-input-ex-BUhgQIz_.js → number-input-ex-b3jwWBec.js} +1 -1
- package/dist/{org-props-BYIR1Qja.js → org-props-CP6UEZUk.js} +2 -2
- package/dist/{org-style-DXX3gSuh.js → org-style-CVX9tnGL.js} +1 -1
- package/dist/{pagination-design-BVFW-spw.js → pagination-design-CzI3BVnu.js} +2 -2
- package/dist/paper-widget-design-DMIGXtG2.js +4 -0
- package/dist/{qrcode-design-CoFoYXe2.js → qrcode-design-eO4Bd2-V.js} +1 -1
- package/dist/{ref-autofill-editor-8-T3_HNa.js → ref-autofill-editor-DXDYy7g2.js} +7 -6
- package/dist/{ref-props-CkbU8Sr5.js → ref-props-Aiwbx2BA.js} +3 -3
- package/dist/{ref-style-BUqCIl-S.js → ref-style-BYC5yPHt.js} +1 -1
- package/dist/{regex-editor-BAfv4Tt4.js → regex-editor-DWglxD2y.js} +2 -2
- package/dist/{revo-grid.entry-RWcWTs8I.js → revo-grid.entry-DxhjfysT.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BCSuWj1U.js → revogr-attribution_7.entry-ChJzXX9c.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BTpzs_Rr.js → revogr-clipboard_3.entry-CTfO-vHs.js} +2 -2
- package/dist/{revogr-data_4.entry-DYkSdHom.js → revogr-data_4.entry-DpsZq5Vu.js} +2 -2
- package/dist/{revogr-filter-panel.entry-DOqtLQay.js → revogr-filter-panel.entry-CkNGH07B.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-D26X3WBX.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-D36XgznF.js} +2 -2
- package/dist/{serialnumber-design-Bx6oAxgA.js → serialnumber-design-cvNqTdU4.js} +1 -1
- package/dist/shared/index.es.js +29 -29
- package/dist/{signature-design-BYwB_lgz.js → signature-design-CxYVBP9N.js} +1 -1
- package/dist/{signature-props-SNM8PS89.js → signature-props-Cs3PONrq.js} +3 -3
- package/dist/{signature-style-BqZ2DAS6.js → signature-style-CAa92-pw.js} +1 -1
- package/dist/{single-field-drop-BwCKh5bM.js → single-field-drop-BXX5wlj_.js} +2 -2
- package/dist/{size-editor-DUazmEj_.js → size-editor-B4aRo4sR.js} +1 -1
- package/dist/src/assets/svgs/table/index.d.ts +38 -0
- package/dist/src/domain/index.d.ts +1 -0
- package/dist/src/domain/suite/suite-features.d.ts +14 -0
- package/dist/src/domain/table/business/check/check-table/index.d.ts +1 -0
- package/dist/src/domain/table/business/check/check-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/material/material-balance/index.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-balance/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/material/material-consume/index.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-consume/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/index.d.ts +2 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +187 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +26 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +1 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +65 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +70 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +10 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +87 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +7 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +39 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in-out/index.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in-out/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +33 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +114 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +11 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +84 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +64 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/data/dynamic-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/dynamic-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/data/fixed-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/fixed-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/data/two-d-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/two-d-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/design/autofill-expander.d.ts +19 -0
- package/dist/src/domain/table/design/create-subtable.d.ts +14 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +13 -0
- package/dist/src/domain/table/design/index.d.ts +6 -0
- package/dist/src/domain/table/design/label.d.ts +3 -0
- package/dist/src/domain/table/design/panel-features.d.ts +16 -0
- package/dist/src/domain/table/design/panel-type.d.ts +6 -0
- package/dist/src/domain/table/design/ribbon-options.d.ts +38 -0
- package/dist/src/domain/table/design/sub-model-matcher.d.ts +10 -0
- package/dist/src/domain/table/index.d.ts +12 -0
- package/dist/src/domain/table/registry.d.ts +27 -0
- package/dist/src/domain/table/runtime/apply-profile.d.ts +16 -0
- package/dist/src/domain/table/runtime/runtime-handlers.d.ts +9 -0
- package/dist/src/domain/table/types.d.ts +137 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +0 -1
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +3 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +18 -2
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +12 -7
- package/dist/src/nocode-base/src/core/sub-table/index.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +12 -5
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +58 -0
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +17 -19
- package/dist/src/nocode-base/src/core/sub-table/utils/pretreatment/field-keys.d.ts +2 -117
- package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/field-keys.d.ts +2 -60
- package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/device-link/types.d.ts +10 -0
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +6 -1
- package/dist/src/nocode-base/src/hooks/form-model/types.d.ts +5 -0
- package/dist/src/nocode-base/src/hooks/form-tmpl-config/form-tmpl-config-controller.d.ts +16 -0
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +140 -18
- package/dist/src/nocode-base/src/hooks/material-consume/index.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-group-merge.d.ts +20 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +50 -8
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -0
- package/dist/src/nocode-base/src/hooks/material-consume/product-id-query.d.ts +31 -0
- package/dist/src/nocode-base/src/hooks/material-consume/scan-fill.d.ts +10 -0
- package/dist/src/nocode-base/src/hooks/material-consume/scan-validator.d.ts +192 -0
- package/dist/src/nocode-base/src/hooks/material-consume/service.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +9 -0
- package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +44 -0
- package/dist/src/nocode-base/src/hooks/material-date/service.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-date/use-material-date.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/useDependency.d.ts +2 -3
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/types/business/allocate.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +4 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -0
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +16 -0
- package/dist/src/nocode-base/src/types/widgets/i-serialnumber.d.ts +4 -0
- package/dist/src/nocode-web-render/src/render/index.d.ts +2 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +15 -0
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +2 -3
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +4 -0
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/input-prop-editor/input-prop-editor.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/enums/index.d.ts +8 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +48 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +66 -17
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-ipaas/parameter-struct/json-expression-editor.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-card.vue.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor.vue.d.ts +19 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/identify-param-card.vue.d.ts +10 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/repeating-sub-table-config.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/sub-table-panel-shell.vue.d.ts +24 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +1533 -0
- package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/bom-entry-editor.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/bom-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/select-check-ds-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/toolkit/model-field/add-field-btn.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/inline-cell/use-inline-icon-catalog.d.ts +5 -1
- package/dist/src/shared/components/Scrollbar/src/Scrollbar.vue.d.ts +1 -1
- package/dist/src/shared/components/Signature/logic/index.d.ts +4 -0
- package/dist/src/shared/enum/field-type.d.ts +17 -5
- package/dist/src/shared/enum/index.d.ts +4 -2
- package/dist/src/shared/enum/online-form.d.ts +14 -2
- package/dist/{text-design-Wz4yRq1g.js → text-design-DbDDDCTT.js} +2 -2
- package/dist/{text-design-DN3i2RFW.js → text-design-vFgsAOs6.js} +2 -2
- package/dist/{text-props-B00HIRMS.js → text-props-LQ8JxfCA.js} +4 -5
- package/dist/{text-style-fu30umvT.js → text-style-CKBIm6Y6.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-Fx3LWSEd.js → throttle-Cpk1LoGk-CJfuMBhT.js} +1 -1
- package/dist/{timediff-design-B-4vNIoK.js → timediff-design-C7qKjT0h.js} +1 -1
- package/dist/{trace-design-DtHxTSsv.js → trace-design-DdHPN-JX.js} +2 -2
- package/dist/{trace-props-Rg7mqGt_.js → trace-props-BSRELXnc.js} +60 -48
- package/dist/{trace-style-mCgCCGMz.js → trace-style-BOx3LU4R.js} +1 -1
- package/dist/{user-props-DonrdBsi.js → user-props-DCy_CVdE.js} +2 -2
- package/dist/{user-style-CumTeI-A.js → user-style-BbXij2Ui.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DRQFluA7.js → value-editor.vue_vue_type_style_index_0_lang-DqIfRgzS.js} +2 -2
- package/dist/{version-select-DZOffw2U.js → version-select--5mTgIzw.js} +1 -1
- package/dist/web-render/index.es.js +6 -5
- package/dist/{widget-barcode-Djaec1i2.js → widget-barcode-BYZx9koE.js} +4 -4
- package/dist/{widget-diagonal-Dw5Q9iRl.js → widget-diagonal-CbEoMTV6.js} +3 -3
- package/dist/{widget-image-Dq6zxwLm.js → widget-image-Bgb0W9tX.js} +5 -5
- package/dist/{widget-line-Csab5i9z.js → widget-line-xBvHpkdt.js} +2 -2
- package/dist/{widget-pagination-BmsUSsKm.js → widget-pagination-BjH75g8_.js} +5 -5
- package/dist/{widget-power-DtPCy7UV.js → widget-power-Bvr05ltd.js} +3 -3
- package/dist/{widget-qrcode-BAMbK-3b.js → widget-qrcode-Bj-ntq_n.js} +3 -3
- package/dist/{widget-rangelimit-Bx9qfojs.js → widget-rangelimit-BHa420t4.js} +3 -3
- package/dist/{widget-serialnumber-Bz6EQZR_.js → widget-serialnumber-BoYlmag6.js} +1 -1
- package/dist/{widget-text-CkXtxU3r.js → widget-text-_Q96wqKl.js} +5 -5
- package/dist/{widget-timediff-wqTd7OZs.js → widget-timediff-DtoWALwY.js} +2 -2
- package/package.json +8 -7
- package/dist/mb-render-CRA1gDau.js +0 -449
- package/dist/paper-widget-design-DFOElS47.js +0 -4
- package/dist/src/online-form/src/views/designer/modules/panel/panel-material-balance-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-material-stocktake-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-pretreatment-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-sterilize-batch-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/common/add-tmpl-btn.vue.d.ts +0 -7
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/edit-parse-rule.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/panel-material-consumption-table.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/translate-span.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/use-product-translate.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/add-ds-btn.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/right-list.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table.vue.d.ts → sub-table/panel-check-table.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-data-group-2d.vue.d.ts → sub-table/panel-data-group-2d.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-data-group.vue.d.ts → sub-table/panel-data-group.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-fixed-table.vue.d.ts → sub-table/panel-fixed-table.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-dynamic-table.vue.d.ts → sub-table/panel-repeating-sub-table.vue.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, normalizeClass, toDisplayString, renderList, createBlock, normalizeStyle } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a3 as LineDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, y as LineStyleOptions, z as ColorPicker } from "./index
|
|
6
|
+
import { F as FormItem, y as LineStyleOptions, z as ColorPicker } from "./index-BHIdTmFi.js";
|
|
7
7
|
const _hoisted_1 = { class: "ks-row-middle" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "widget-line",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, E as PaginationFormatOptions } from "./index
|
|
7
|
-
import { S as SizeEditor } from "./size-editor-
|
|
8
|
-
import { A as AlignEditor } from "./align-editor-
|
|
9
|
-
import { F as FontEditor } from "./font-editor-
|
|
6
|
+
import { F as FormItem, E as PaginationFormatOptions } from "./index-BHIdTmFi.js";
|
|
7
|
+
import { S as SizeEditor } from "./size-editor-B4aRo4sR.js";
|
|
8
|
+
import { A as AlignEditor } from "./align-editor-BT_0oTzG.js";
|
|
9
|
+
import { F as FontEditor } from "./font-editor-DFkc4KNc.js";
|
|
10
10
|
const _hoisted_1 = { class: "pl-6px" };
|
|
11
11
|
const _hoisted_2 = { class: "pl-6px" };
|
|
12
12
|
const DefaultCustomFormat = "Page ${no} / ${total}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-BXX5wlj_.js";
|
|
4
4
|
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
5
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "dayjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import {
|
|
2
|
+
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DqIfRgzS.js";
|
|
4
|
+
import { h as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "ant-design-vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-BXX5wlj_.js";
|
|
4
4
|
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
5
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "widget-rangelimit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index
|
|
2
|
+
import { F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "widget-serialnumber",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, F as FormItem } from "./index
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { S as SizeEditor } from "./size-editor-
|
|
5
|
-
import { A as AlignEditor } from "./align-editor-
|
|
6
|
-
import { F as FontEditor } from "./font-editor-
|
|
2
|
+
import { h as useSpreadSheet, F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DqIfRgzS.js";
|
|
4
|
+
import { S as SizeEditor } from "./size-editor-B4aRo4sR.js";
|
|
5
|
+
import { A as AlignEditor } from "./align-editor-BT_0oTzG.js";
|
|
6
|
+
import { F as FontEditor } from "./font-editor-DFkc4KNc.js";
|
|
7
7
|
const _hoisted_1 = { class: "pl-6px" };
|
|
8
8
|
const _hoisted_2 = { class: "pl-6px" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, u as useModelFields, F as FormItem } from "./index
|
|
3
|
-
import { F as FIELD_TYPE,
|
|
2
|
+
import { h as useSpreadSheet, u as useModelFields, F as FormItem } from "./index-BHIdTmFi.js";
|
|
3
|
+
import { F as FIELD_TYPE, a4 as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/excel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28-beta.0",
|
|
4
4
|
"description": "GCT Excel online form rendering",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,13 +37,14 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "vite build",
|
|
39
39
|
"build:analyze": "ANALYZE=true vite build",
|
|
40
|
-
"bump": "pnpm run bump:patch",
|
|
41
|
-
"bump:major": "npm version major --no-git-tag-version",
|
|
42
|
-
"bump:minor": "npm version minor --no-git-tag-version",
|
|
43
|
-
"bump:patch": "npm version patch --no-git-tag-version",
|
|
44
40
|
"dev": "vite build --watch",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
41
|
+
"publish:beta": "pnpm run version:beta && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public --tag beta && node ./scripts/git-commit-and-tag.mjs --no-tag",
|
|
42
|
+
"publish:patch": "pnpm run version:patch && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public --tag patch && node ./scripts/git-commit-and-tag.mjs",
|
|
43
|
+
"publish:prod": "pnpm run version:release && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public && node ./scripts/git-commit-and-tag.mjs",
|
|
44
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.build.json",
|
|
45
|
+
"version:beta": "npm version prerelease --preid=beta --no-git-tag-version",
|
|
46
|
+
"version:patch": "node ./scripts/bump-customer-patch.mjs",
|
|
47
|
+
"version:release": "npm version patch --no-git-tag-version"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
50
|
"@gct-paas/core": "0.1.6-dev.41",
|
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import { reactive, inject, provide, watch, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, nextTick, unref } from "vue";
|
|
2
|
-
import { i as api, F as FIELD_TYPE, C as CreateType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CvVlP70-.js";
|
|
3
|
-
class MCRender {
|
|
4
|
-
/**
|
|
5
|
-
* 提示信息
|
|
6
|
-
* @param opts
|
|
7
|
-
*/
|
|
8
|
-
message(opts) {
|
|
9
|
-
throw new Error("Function message not implemented.");
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 已经打开的bom的modal的参数对象
|
|
13
|
-
* @static
|
|
14
|
-
*/
|
|
15
|
-
static bomModalProps;
|
|
16
|
-
async openScanModal(opts) {
|
|
17
|
-
throw new Error("Function openScanModal not implemented.");
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 实际打开UIModal的函数
|
|
21
|
-
*/
|
|
22
|
-
async _openBomModal(reactiveOpts) {
|
|
23
|
-
}
|
|
24
|
-
async openBomModal(opts) {
|
|
25
|
-
if (MCRender.bomModalProps) {
|
|
26
|
-
Object.assign(MCRender.bomModalProps, opts);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
MCRender.bomModalProps = reactive(opts);
|
|
30
|
-
await this._openBomModal(MCRender.bomModalProps);
|
|
31
|
-
console.log("模态关闭");
|
|
32
|
-
MCRender.bomModalProps = void 0;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 打开修改条码解析规则的modal
|
|
36
|
-
* 返回空或者修改后的规则字段id
|
|
37
|
-
* @param opts \
|
|
38
|
-
* - config 回显用的配置对象
|
|
39
|
-
* @return {*}
|
|
40
|
-
*/
|
|
41
|
-
async openChangeRuleModal(opts) {
|
|
42
|
-
throw new Error("Function openChangeRuleModal not implemented.");
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 销毁所有固定的模态
|
|
46
|
-
*/
|
|
47
|
-
destroyAllModals() {
|
|
48
|
-
throw new Error("Function destroyAllModals not implemented.");
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class BaseFormModelFetcher {
|
|
52
|
-
/** 默认接口 */
|
|
53
|
-
apis = {
|
|
54
|
-
getFieldMetaList: api.apaas.fieldMeta.getList,
|
|
55
|
-
getModelMetaSubModelList: api.apaas.modelComprehensive.getSubModelList,
|
|
56
|
-
getModelDetail2FieldList: api.apaas.modelMeta.getDetail
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* 模型映射缓存
|
|
60
|
-
*/
|
|
61
|
-
modelMetaMap = {};
|
|
62
|
-
async load(opts) {
|
|
63
|
-
const { model } = opts;
|
|
64
|
-
this.modelMetaMap = {};
|
|
65
|
-
await this.loadModelFields(model);
|
|
66
|
-
await this.loadSubModelsFields(model);
|
|
67
|
-
return Object.values(this.modelMetaMap);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* 补全字段信息
|
|
71
|
-
* @param modelKey 字段所属的模型
|
|
72
|
-
* @param [fields=[]]
|
|
73
|
-
* @return {*}
|
|
74
|
-
*/
|
|
75
|
-
completeFields(modelKey, fields = []) {
|
|
76
|
-
return fields.map((field) => {
|
|
77
|
-
if (!field.modelKey) {
|
|
78
|
-
field.modelKey = modelKey;
|
|
79
|
-
}
|
|
80
|
-
return field;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* 根据模型key加载模型字段
|
|
85
|
-
*
|
|
86
|
-
* @param [modelKey=this.model]
|
|
87
|
-
* @return {*}
|
|
88
|
-
*/
|
|
89
|
-
async loadModelFields(modelKey) {
|
|
90
|
-
if (typeof this.apis.getFieldMetaList !== "function") {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const res = await this.apis.getFieldMetaList({
|
|
94
|
-
modelKey
|
|
95
|
-
});
|
|
96
|
-
this.modelMetaMap[modelKey] = {
|
|
97
|
-
key: modelKey,
|
|
98
|
-
name: "",
|
|
99
|
-
fields: this.completeFields(modelKey, res)
|
|
100
|
-
};
|
|
101
|
-
return res;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* 加载表单所有子表字段对应模型的字段信息集合
|
|
105
|
-
*/
|
|
106
|
-
async loadSubModelsFields(modelKey) {
|
|
107
|
-
const res = await this.apis.getModelMetaSubModelList({
|
|
108
|
-
modelKey
|
|
109
|
-
});
|
|
110
|
-
(res ?? []).forEach((m) => {
|
|
111
|
-
if (!this.modelMetaMap[m.key]) {
|
|
112
|
-
this.modelMetaMap[m.key] = {
|
|
113
|
-
key: m.key,
|
|
114
|
-
name: m.name,
|
|
115
|
-
subModel: m.subModel,
|
|
116
|
-
fields: this.completeFields(m.key, m.fieldMetaList)
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
class FormModelController {
|
|
123
|
-
/** 主模型的key */
|
|
124
|
-
masterModelKey;
|
|
125
|
-
/** 主模型的名称 */
|
|
126
|
-
masterModelName;
|
|
127
|
-
/** 模型请求器 */
|
|
128
|
-
fetcher = new BaseFormModelFetcher();
|
|
129
|
-
/** 模型映射缓存 */
|
|
130
|
-
modelMetaMap = reactive({});
|
|
131
|
-
/** 主模型信息 */
|
|
132
|
-
get masterModel() {
|
|
133
|
-
return this.modelMetaMap[this.masterModelKey];
|
|
134
|
-
}
|
|
135
|
-
/** 获取主模型字段集合 */
|
|
136
|
-
get masterFields() {
|
|
137
|
-
return this.masterModel.fields;
|
|
138
|
-
}
|
|
139
|
-
/** 获取子模型 */
|
|
140
|
-
getSubModel(subModelKey) {
|
|
141
|
-
return this.modelMetaMap[subModelKey];
|
|
142
|
-
}
|
|
143
|
-
/** 获取子模型字段集合 */
|
|
144
|
-
getSubModelFields(subModelKey) {
|
|
145
|
-
return this.getSubModel(subModelKey)?.fields;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* 初始化
|
|
149
|
-
*
|
|
150
|
-
* @param opts
|
|
151
|
-
* - model 主模型key
|
|
152
|
-
* - name 主模型名称
|
|
153
|
-
*/
|
|
154
|
-
async init(opts) {
|
|
155
|
-
this.masterModelKey = opts.model;
|
|
156
|
-
this.masterModelName = opts.name;
|
|
157
|
-
await this.load();
|
|
158
|
-
}
|
|
159
|
-
/** 刷新数据 */
|
|
160
|
-
async refresh() {
|
|
161
|
-
await this.load();
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* 加载数据并填充到modelMetaMap中
|
|
165
|
-
* @protected
|
|
166
|
-
* @return {*}
|
|
167
|
-
*/
|
|
168
|
-
async load() {
|
|
169
|
-
if (!this.masterModelKey) {
|
|
170
|
-
console.error("缺少主模型的key");
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
const models = await this.fetcher.load({ model: this.masterModelKey });
|
|
174
|
-
this.modelMetaMap = models.reduce((acc, cur) => {
|
|
175
|
-
acc[cur.key] = cur;
|
|
176
|
-
if (cur.key === this.masterModelKey) {
|
|
177
|
-
cur.name = this.masterModelName;
|
|
178
|
-
}
|
|
179
|
-
return acc;
|
|
180
|
-
}, {});
|
|
181
|
-
}
|
|
182
|
-
/** 是否是子模型字段 */
|
|
183
|
-
isSubField(field) {
|
|
184
|
-
return field.type === FIELD_TYPE.MASTERSLAVE && field.bindInfo;
|
|
185
|
-
}
|
|
186
|
-
/** 是否是预置字段,包括系统字段和业务内置字段 */
|
|
187
|
-
isPresetField(field) {
|
|
188
|
-
return [CreateType.BUILTIN, CreateType.SYSTEM].includes(field.createType);
|
|
189
|
-
}
|
|
190
|
-
/** 是否是系统字段 */
|
|
191
|
-
isSystemField(field) {
|
|
192
|
-
return field.createType === CreateType.SYSTEM;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* 获取主模型里子表字段对应的子模型key
|
|
196
|
-
*
|
|
197
|
-
* @param fieldKey 子表字段在主表里的字段key
|
|
198
|
-
* @return {*}
|
|
199
|
-
*/
|
|
200
|
-
getSubFieldModelKey(fieldKey) {
|
|
201
|
-
return this.masterFields.find((field) => field.key === fieldKey)?.bindInfo;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* 获取字段信息
|
|
205
|
-
* @param [modelKey=this.masterModelKey] 模型key
|
|
206
|
-
* @param fieldKey 字段key
|
|
207
|
-
* @return {*}
|
|
208
|
-
*/
|
|
209
|
-
findField(modelKey = this.masterModelKey, fieldKey) {
|
|
210
|
-
const model = this.modelMetaMap[modelKey];
|
|
211
|
-
if (!model) {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
return model.fields.find((field) => field.key === fieldKey);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
const FormModelControllerKey = "GctFormModelController";
|
|
218
|
-
function useFormModel() {
|
|
219
|
-
function provideController(c = new FormModelController()) {
|
|
220
|
-
provide(FormModelControllerKey, c);
|
|
221
|
-
return c;
|
|
222
|
-
}
|
|
223
|
-
function injectController() {
|
|
224
|
-
return inject(FormModelControllerKey);
|
|
225
|
-
}
|
|
226
|
-
return {
|
|
227
|
-
provideController,
|
|
228
|
-
injectController
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
var _a;
|
|
232
|
-
const isClient = typeof window !== "undefined";
|
|
233
|
-
const isString = (val) => typeof val === "string";
|
|
234
|
-
const noop = () => {
|
|
235
|
-
};
|
|
236
|
-
const isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
237
|
-
function resolveUnref(r) {
|
|
238
|
-
return typeof r === "function" ? r() : unref(r);
|
|
239
|
-
}
|
|
240
|
-
function createFilterWrapper(filter, fn) {
|
|
241
|
-
function wrapper(...args) {
|
|
242
|
-
return new Promise((resolve, reject) => {
|
|
243
|
-
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
return wrapper;
|
|
247
|
-
}
|
|
248
|
-
const bypassFilter = (invoke) => {
|
|
249
|
-
return invoke();
|
|
250
|
-
};
|
|
251
|
-
function debounceFilter(ms, options = {}) {
|
|
252
|
-
let timer;
|
|
253
|
-
let maxTimer;
|
|
254
|
-
let lastRejector = noop;
|
|
255
|
-
const _clearTimeout = (timer2) => {
|
|
256
|
-
clearTimeout(timer2);
|
|
257
|
-
lastRejector();
|
|
258
|
-
lastRejector = noop;
|
|
259
|
-
};
|
|
260
|
-
const filter = (invoke) => {
|
|
261
|
-
const duration = resolveUnref(ms);
|
|
262
|
-
const maxDuration = resolveUnref(options.maxWait);
|
|
263
|
-
if (timer)
|
|
264
|
-
_clearTimeout(timer);
|
|
265
|
-
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
266
|
-
if (maxTimer) {
|
|
267
|
-
_clearTimeout(maxTimer);
|
|
268
|
-
maxTimer = null;
|
|
269
|
-
}
|
|
270
|
-
return Promise.resolve(invoke());
|
|
271
|
-
}
|
|
272
|
-
return new Promise((resolve, reject) => {
|
|
273
|
-
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
274
|
-
if (maxDuration && !maxTimer) {
|
|
275
|
-
maxTimer = setTimeout(() => {
|
|
276
|
-
if (timer)
|
|
277
|
-
_clearTimeout(timer);
|
|
278
|
-
maxTimer = null;
|
|
279
|
-
resolve(invoke());
|
|
280
|
-
}, maxDuration);
|
|
281
|
-
}
|
|
282
|
-
timer = setTimeout(() => {
|
|
283
|
-
if (maxTimer)
|
|
284
|
-
_clearTimeout(maxTimer);
|
|
285
|
-
maxTimer = null;
|
|
286
|
-
resolve(invoke());
|
|
287
|
-
}, duration);
|
|
288
|
-
});
|
|
289
|
-
};
|
|
290
|
-
return filter;
|
|
291
|
-
}
|
|
292
|
-
function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
|
|
293
|
-
let lastExec = 0;
|
|
294
|
-
let timer;
|
|
295
|
-
let isLeading = true;
|
|
296
|
-
let lastRejector = noop;
|
|
297
|
-
let lastValue;
|
|
298
|
-
const clear = () => {
|
|
299
|
-
if (timer) {
|
|
300
|
-
clearTimeout(timer);
|
|
301
|
-
timer = void 0;
|
|
302
|
-
lastRejector();
|
|
303
|
-
lastRejector = noop;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
const filter = (_invoke) => {
|
|
307
|
-
const duration = resolveUnref(ms);
|
|
308
|
-
const elapsed = Date.now() - lastExec;
|
|
309
|
-
const invoke = () => {
|
|
310
|
-
return lastValue = _invoke();
|
|
311
|
-
};
|
|
312
|
-
clear();
|
|
313
|
-
if (duration <= 0) {
|
|
314
|
-
lastExec = Date.now();
|
|
315
|
-
return invoke();
|
|
316
|
-
}
|
|
317
|
-
if (elapsed > duration && (leading || !isLeading)) {
|
|
318
|
-
lastExec = Date.now();
|
|
319
|
-
invoke();
|
|
320
|
-
} else if (trailing) {
|
|
321
|
-
lastValue = new Promise((resolve, reject) => {
|
|
322
|
-
lastRejector = rejectOnCancel ? reject : resolve;
|
|
323
|
-
timer = setTimeout(() => {
|
|
324
|
-
lastExec = Date.now();
|
|
325
|
-
isLeading = true;
|
|
326
|
-
resolve(invoke());
|
|
327
|
-
clear();
|
|
328
|
-
}, Math.max(0, duration - elapsed));
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
if (!leading && !timer)
|
|
332
|
-
timer = setTimeout(() => isLeading = true, duration);
|
|
333
|
-
isLeading = false;
|
|
334
|
-
return lastValue;
|
|
335
|
-
};
|
|
336
|
-
return filter;
|
|
337
|
-
}
|
|
338
|
-
function identity(arg) {
|
|
339
|
-
return arg;
|
|
340
|
-
}
|
|
341
|
-
function tryOnScopeDispose(fn) {
|
|
342
|
-
if (getCurrentScope()) {
|
|
343
|
-
onScopeDispose(fn);
|
|
344
|
-
return true;
|
|
345
|
-
}
|
|
346
|
-
return false;
|
|
347
|
-
}
|
|
348
|
-
function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
|
|
349
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
|
|
350
|
-
}
|
|
351
|
-
function tryOnMounted(fn, sync = true) {
|
|
352
|
-
if (getCurrentInstance())
|
|
353
|
-
onMounted(fn);
|
|
354
|
-
else if (sync)
|
|
355
|
-
fn();
|
|
356
|
-
else
|
|
357
|
-
nextTick(fn);
|
|
358
|
-
}
|
|
359
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
360
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
361
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
362
|
-
var __objRest$5 = (source, exclude) => {
|
|
363
|
-
var target = {};
|
|
364
|
-
for (var prop in source)
|
|
365
|
-
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
366
|
-
target[prop] = source[prop];
|
|
367
|
-
if (source != null && __getOwnPropSymbols$6)
|
|
368
|
-
for (var prop of __getOwnPropSymbols$6(source)) {
|
|
369
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
|
|
370
|
-
target[prop] = source[prop];
|
|
371
|
-
}
|
|
372
|
-
return target;
|
|
373
|
-
};
|
|
374
|
-
function watchWithFilter(source, cb, options = {}) {
|
|
375
|
-
const _a2 = options, {
|
|
376
|
-
eventFilter = bypassFilter
|
|
377
|
-
} = _a2, watchOptions = __objRest$5(_a2, [
|
|
378
|
-
"eventFilter"
|
|
379
|
-
]);
|
|
380
|
-
return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
|
|
381
|
-
}
|
|
382
|
-
var __defProp$4 = Object.defineProperty;
|
|
383
|
-
var __defProps$4 = Object.defineProperties;
|
|
384
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
385
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
386
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
387
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
388
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
389
|
-
var __spreadValues$4 = (a, b) => {
|
|
390
|
-
for (var prop in b || (b = {}))
|
|
391
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
392
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
393
|
-
if (__getOwnPropSymbols$4)
|
|
394
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
395
|
-
if (__propIsEnum$4.call(b, prop))
|
|
396
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
397
|
-
}
|
|
398
|
-
return a;
|
|
399
|
-
};
|
|
400
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
401
|
-
var __objRest$3 = (source, exclude) => {
|
|
402
|
-
var target = {};
|
|
403
|
-
for (var prop in source)
|
|
404
|
-
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
405
|
-
target[prop] = source[prop];
|
|
406
|
-
if (source != null && __getOwnPropSymbols$4)
|
|
407
|
-
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
408
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
409
|
-
target[prop] = source[prop];
|
|
410
|
-
}
|
|
411
|
-
return target;
|
|
412
|
-
};
|
|
413
|
-
function watchDebounced(source, cb, options = {}) {
|
|
414
|
-
const _a2 = options, {
|
|
415
|
-
debounce = 0,
|
|
416
|
-
maxWait = void 0
|
|
417
|
-
} = _a2, watchOptions = __objRest$3(_a2, [
|
|
418
|
-
"debounce",
|
|
419
|
-
"maxWait"
|
|
420
|
-
]);
|
|
421
|
-
return watchWithFilter(source, cb, __spreadProps$4(__spreadValues$4({}, watchOptions), {
|
|
422
|
-
eventFilter: debounceFilter(debounce, { maxWait })
|
|
423
|
-
}));
|
|
424
|
-
}
|
|
425
|
-
class MBRender {
|
|
426
|
-
async openConsumeModal(data) {
|
|
427
|
-
throw new Error("Function openConsumeModal not implemented.");
|
|
428
|
-
}
|
|
429
|
-
async destoryConsumeModal() {
|
|
430
|
-
throw new Error("Function destoryConsumeModal not implemented.");
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
export {
|
|
434
|
-
BaseFormModelFetcher as B,
|
|
435
|
-
FormModelController as F,
|
|
436
|
-
MBRender as M,
|
|
437
|
-
useThrottleFn as a,
|
|
438
|
-
MCRender as b,
|
|
439
|
-
isClient as c,
|
|
440
|
-
tryOnMounted as d,
|
|
441
|
-
isString as e,
|
|
442
|
-
identity as f,
|
|
443
|
-
isIOS as i,
|
|
444
|
-
noop as n,
|
|
445
|
-
resolveUnref as r,
|
|
446
|
-
tryOnScopeDispose as t,
|
|
447
|
-
useFormModel as u,
|
|
448
|
-
watchDebounced as w
|
|
449
|
-
};
|
package/dist/src/online-form/src/views/designer/modules/panel/panel-material-balance-table.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
package/dist/src/online-form/src/views/designer/modules/panel/panel-pretreatment-table.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
package/dist/src/online-form/src/views/designer/modules/panel/panel-sterilize-batch-table.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DeviceLink } from '../../../../../../../../nocode-base/src';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
add: (type: DeviceLink.TmplTypeEnum) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
-
onAdd?: ((type: DeviceLink.TmplTypeEnum) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|