@gct-paas/excel 0.1.27 → 0.1.28-beta.1
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-D5r4RRnv.js → VueVideoPlayer-B6X1JmEL.js} +2 -2
- package/dist/{agg-design-BVxNAUfK.js → agg-design-qUcK9OAF.js} +1 -1
- package/dist/{agg-props-BM1V7-82.js → agg-props-ockP_cAM.js} +1 -1
- package/dist/{agg-style-bu1csor3.js → agg-style-BV0qjEEw.js} +1 -1
- package/dist/{align-editor-D2IrDyiX.js → align-editor-DpWvsI_x.js} +1 -1
- package/dist/{attach-fields-editor-cbkBKnao.js → attach-fields-editor-B55NB5QH.js} +5 -5
- package/dist/{barcode-design-BRx1bmVT.js → barcode-design-D1Ll_5lG.js} +2 -2
- package/dist/base/index.es.js +401 -552
- package/dist/{base-font-editor-DvxGgHGz.js → base-font-editor-Bc5Nq5zV.js} +2 -2
- package/dist/{boolean-design-bh0IRiJd.js → boolean-design-quBCeS1G.js} +2 -2
- package/dist/{boolean-props-CblOGRwR.js → boolean-props-BqRbb2XN.js} +3 -3
- package/dist/{boolean-style-DwRYZG46.js → boolean-style-BLJfwtaX.js} +4 -4
- package/dist/{cell-upload-C-xtn3eM.js → cell-upload-PkWTiWYW.js} +1 -1
- package/dist/{date-range-editor-DgRj3qWq.js → date-range-editor-DptQq6pH.js} +2 -2
- package/dist/{date-time-design-CmzyZZ0f.js → date-time-design-DmeUPsi-.js} +1 -1
- package/dist/{date-time-props-D2g7OYyD.js → date-time-props-B5jOoX4Y.js} +3 -3
- package/dist/{date-time-style-D1hsou32.js → date-time-style-DFtXaN2d.js} +1 -1
- package/dist/{decimal-design-mtrsEocu.js → decimal-design-DQ-61MMF.js} +1 -1
- package/dist/{decimal-display-mode-DBBORdt8.js → decimal-display-mode-C1KBlKKw.js} +2 -2
- package/dist/{decimal-props-BAnCY6iG.js → decimal-props-CDo5SCYL.js} +4 -4
- package/dist/{decimal-style-B_3SjSrk.js → decimal-style-DwLrDj_1.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CaXarLgm.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-MEsfM8dF.js} +2 -2
- package/dist/{diagonal-design-CcD7fvfW.js → diagonal-design-cdmqJBTe.js} +2 -2
- package/dist/{double-design-7vcqNVyg.js → double-design-Bpuy9Ss3.js} +1 -1
- package/dist/{double-props-B-y0KH2n.js → double-props-DXysqniB.js} +4 -4
- package/dist/{double-style-CA5tNsrD.js → double-style-BnEd4QED.js} +1 -1
- package/dist/{dynamic-table-action-C2GfKCbJ.js → dynamic-table-action-CT_aYOca.js} +8 -10
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Dti3Kjh8.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-SAa6KGYz.js} +2240 -392
- package/dist/{edit.utils-CXmmCnxE-Ca3Pb0IU.js → edit.utils-CXmmCnxE-CrBcZqbG.js} +1 -1
- package/dist/{enum-design-QV-rTgR9.js → enum-design-CGIgeXrw.js} +2 -2
- package/dist/{enum-props-75ShzzCh.js → enum-props-XT85YcrM.js} +3 -3
- package/dist/{enum-style-BMtWgRC6.js → enum-style-Cqw4JjzR.js} +3 -3
- package/dist/excel.css +150 -148
- package/dist/{exceljs.min-0mQdhEhP.js → exceljs.min-BHpCeDsd.js} +2 -2
- package/dist/{expression-design-E4gBR1RY.js → expression-design-DO5gzF-x.js} +1 -1
- package/dist/{expression-props-BwPz0GJc.js → expression-props-DuvdDUWt.js} +1 -1
- package/dist/{expression-style-D7o1udLl.js → expression-style-BYJ-iIYc.js} +1 -1
- package/dist/{file-design-CY5qOoTr.js → file-design-Cix4ztNq.js} +1 -1
- package/dist/{file-props-zXWQ1bVe.js → file-props-DwUasn2W.js} +2 -2
- package/dist/{file-style-BxiYD3KK.js → file-style-DTXliETB.js} +1 -1
- package/dist/{font-editor-Dvzk8M-U.js → font-editor-CxdKktbw.js} +3 -3
- package/dist/{image-design-lVRSbqr7.js → image-design-BxFQTm4-.js} +2 -2
- package/dist/{image-design-BhK2hIpf.js → image-design-IaQbw4Bv.js} +1 -1
- package/dist/{image-props-BzWQmFnm.js → image-props-ENaIXFCE.js} +1 -1
- package/dist/{image-style-COx37YQA.js → image-style-BuGQiWh9.js} +1 -1
- package/dist/{index-D4c8S3QX.js → index-1kSDRqJL.js} +1 -1
- package/dist/{index-DQUYeRO2.js → index-5E89tzgQ.js} +1 -1
- package/dist/{index-Xo3mSme0.js → index-6AnvwL1T.js} +1 -1
- package/dist/{index-_sBfWkw5.js → index-BCFgHqQ4.js} +1 -1
- package/dist/{index-DJMQPKtC.js → index-BKQgEYOt.js} +1 -1
- package/dist/{index-BKl3sdLV.js → index-BSWx0ysi.js} +1 -1
- package/dist/{index-FsRMnSH6.js → index-BUEsJ6db.js} +1 -1
- package/dist/{index-n08cOEu4.js → index-BuucdbMD.js} +1 -1
- package/dist/{index-xAiRicc_.js → index-C7XazAkv.js} +27 -22
- package/dist/{index-Bnw3rp6T.js → index-CLFPSEpt.js} +5 -3
- package/dist/{index-BxJDx07D.js → index-CO1Iw_97.js} +1 -1
- package/dist/{index-BfFR4_sj.js → index-CSGDQQxf.js} +1 -1
- package/dist/{index-BOJ1qa5y.js → index-CYc23F99.js} +1 -1
- package/dist/{index-CLiI_jbj.js → index-CmfE-VkX.js} +1 -1
- package/dist/{index--0Kpxacn.js → index-CvefH3Ld.js} +1 -1
- package/dist/{index-C3vFg5YC.js → index-DBt-6fax.js} +2 -2
- package/dist/{index-sDAMzgHy.js → index-DG8SGSHV.js} +11 -1
- package/dist/{index-DX751NRk.js → index-DIHeOfRf.js} +1 -1
- package/dist/{index-7I61fuwY.js → index-DJsySg7Z.js} +1 -1
- package/dist/{index-BZUfZUe_.js → index-DayP0trN.js} +1 -1
- package/dist/{index-LPi5gPDc.js → index-DgbS8dwI.js} +2 -2
- package/dist/{index-Cv8PAOND.js → index-Dl48Dmuf.js} +1 -1
- package/dist/{index-D1eAo-Nu.js → index-DuELqbrc.js} +1 -1
- package/dist/{index-gZDQm5ZQ.js → index-HHW_GvS9.js} +1 -1
- package/dist/{index-BcFJ5NMo.js → index-PgmRu5Zh.js} +1 -1
- package/dist/{index-BQkzdAys.js → index-V3KPtSlA.js} +1 -1
- package/dist/{index-BKcbh7wy.js → index-VU8yct3A.js} +1 -1
- package/dist/{index-D_EbV20_.js → index-VjzaY3fS.js} +2 -2
- package/dist/{index-JMdllXCQ.js → index-aZhb-M_v.js} +1 -1
- package/dist/{index-uPWALfQF.js → index-hkXYQoCV.js} +1 -1
- package/dist/{index-CvgNTIj3.js → index-pkv7_FaG.js} +1372 -1287
- package/dist/{index-C8YcRZdY.js → index-uIR6j0YE.js} +1 -1
- package/dist/{index-CvnUTiu5.js → index-w83mSV_k.js} +5 -3
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-B4_XsKZo.js → integer-design-B48BapfF.js} +1 -1
- package/dist/{integer-props-C6PM1TRQ.js → integer-props-1bbkhP4A.js} +4 -4
- package/dist/{integer-style-BEQYgQr6.js → integer-style-BDe6Dudv.js} +1 -1
- package/dist/{mb-render-Cuhqw431.js → mb-render-DiWQ5hOn.js} +12 -1
- package/dist/{number-input-ex-C-lDRF5x.js → number-input-ex-6e_-B7y7.js} +1 -1
- package/dist/{org-props-COEjPBZu.js → org-props-CVEkrQTH.js} +2 -2
- package/dist/{org-style-BCAm4c-t.js → org-style-CDb_GH8S.js} +1 -1
- package/dist/{pagination-design-BCbcTaoL.js → pagination-design-wrFXRg3I.js} +2 -2
- package/dist/paper-widget-design-pzfwtqOo.js +4 -0
- package/dist/{qrcode-design-DsWOsTMb.js → qrcode-design-D4SZHVWw.js} +1 -1
- package/dist/{ref-autofill-editor-M4SwZwAT.js → ref-autofill-editor-C_73eGxk.js} +7 -6
- package/dist/{ref-props-z-4FJ63a.js → ref-props-CH853iFu.js} +3 -3
- package/dist/{ref-style-Cd4xxgki.js → ref-style-DNNTi1cL.js} +1 -1
- package/dist/{regex-editor-Clq3qEOM.js → regex-editor-BjpdR0tH.js} +2 -2
- package/dist/{revo-grid.entry-mK396nD_.js → revo-grid.entry-Cg-4cMIo.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CVFYs2_S.js → revogr-attribution_7.entry-DzamtFvo.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-CXob_C6H.js → revogr-clipboard_3.entry-CIxDfW07.js} +2 -2
- package/dist/{revogr-data_4.entry-DdIOstSg.js → revogr-data_4.entry-BNENcgpR.js} +2 -2
- package/dist/{revogr-filter-panel.entry-CbN2tKV5.js → revogr-filter-panel.entry-BrYsomo0.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-BRaJttUU.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-Dr3dZp--.js} +2 -2
- package/dist/{serialnumber-design-lwuR-KrB.js → serialnumber-design-BsAogg1u.js} +1 -1
- package/dist/shared/index.es.js +29 -29
- package/dist/{signature-design-CWKOqjMe.js → signature-design-sSyiIxFB.js} +1 -1
- package/dist/{signature-props-B4yndn4q.js → signature-props-BvPvVkD0.js} +3 -3
- package/dist/{signature-style-5DImPCv-.js → signature-style-wLJo19Kd.js} +1 -1
- package/dist/{single-field-drop-C0IXAiGz.js → single-field-drop-lP3_RRCL.js} +2 -2
- package/dist/{size-editor-DKIp_UFV.js → size-editor-DnyvSWUn.js} +1 -1
- package/dist/src/assets/svgs/table/index.d.ts +5 -0
- package/dist/src/domain/suite/suite-features.d.ts +14 -0
- package/dist/src/domain/table/business/material/material-requisition/index.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-requisition/profile/field-keys.d.ts +35 -0
- package/dist/src/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-requisition/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/index.d.ts +2 -1
- 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/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/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 -1
- 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/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 +1 -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/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-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 -1
- 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/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 +1 -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/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/design/autofill-expander.d.ts +19 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +13 -0
- package/dist/src/domain/table/index.d.ts +4 -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 +61 -2
- package/dist/src/nocode-base/src/constant/index.d.ts +11 -1
- 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 +61 -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/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/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/interface/render.d.ts +2 -1
- package/dist/src/nocode-base/src/types/business/allocate.d.ts +8 -0
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +14 -0
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +2 -3
- 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 +1 -0
- package/dist/src/online-form/src/views/designer/enums/index.d.ts +6 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +8 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +11 -17
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +4 -0
- package/dist/src/shared/enum/field-type.d.ts +10 -4
- package/dist/src/shared/enum/online-form.d.ts +11 -1
- package/dist/{text-design-Cvkrx7Ay.js → text-design-CE2RPOMG.js} +2 -2
- package/dist/{text-design-Buv9yt9S.js → text-design-DhW8EogW.js} +2 -2
- package/dist/{text-props-CkVBSTXP.js → text-props-SHUEXLgb.js} +4 -4
- package/dist/{text-style-ByQS_L5l.js → text-style-aUG_dSEM.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-G-XhI3O-.js → throttle-Cpk1LoGk-BYyz4gtI.js} +1 -1
- package/dist/{timediff-design-DDoTcrkV.js → timediff-design-JHt1-ug6.js} +1 -1
- package/dist/{trace-design-BCzk8EyB.js → trace-design-ZgPtVMap.js} +2 -2
- package/dist/{trace-props-BL3L-jup.js → trace-props-C1sYAcFN.js} +6 -6
- package/dist/{trace-style-BlpFFb55.js → trace-style-BVzEquy0.js} +1 -1
- package/dist/{user-props-B-vYJaSq.js → user-props-DFN3xNvd.js} +2 -2
- package/dist/{user-style-CbvEdi3Y.js → user-style-CQL88-69.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-s8AB671m.js → value-editor.vue_vue_type_style_index_0_lang-BdgFyP-I.js} +2 -2
- package/dist/{version-select-CgXKULuu.js → version-select-Bw8yzDaH.js} +1 -1
- package/dist/web-render/index.es.js +2 -2
- package/dist/{widget-barcode-DSSIOMEn.js → widget-barcode-7P0lBeMG.js} +4 -4
- package/dist/{widget-diagonal-Ce7X4BVB.js → widget-diagonal-DOTVKoIQ.js} +3 -3
- package/dist/{widget-image-B07sa8Hv.js → widget-image-COhPjcF3.js} +5 -5
- package/dist/{widget-line-gfOAwJ73.js → widget-line-BMc5nU5m.js} +2 -2
- package/dist/{widget-pagination-DQT0Hcnv.js → widget-pagination-DxFNovQR.js} +5 -5
- package/dist/{widget-power-DB41Q7HC.js → widget-power-CAmZZQVa.js} +3 -3
- package/dist/{widget-qrcode-DPMDGtjU.js → widget-qrcode-CGE3qC2v.js} +3 -3
- package/dist/{widget-rangelimit-BpxO9qfT.js → widget-rangelimit-ZRtD4u7u.js} +3 -3
- package/dist/{widget-serialnumber-CM-Lm2mW.js → widget-serialnumber-CG997c4V.js} +1 -1
- package/dist/{widget-text-DnHhMcYh.js → widget-text-VWrSiodT.js} +5 -5
- package/dist/{widget-timediff-CHA6cLPN.js → widget-timediff-D_67OMYb.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-B1eAfVY6.js +0 -4
|
@@ -425,6 +425,11 @@ var SubTableType = /* @__PURE__ */ ((SubTableType2) => {
|
|
|
425
425
|
SubTableType2["WAREHOUSE_IN"] = "WAREHOUSE_IN";
|
|
426
426
|
SubTableType2["WAREHOUSE_OUT"] = "WAREHOUSE_OUT";
|
|
427
427
|
SubTableType2["WAREHOUSE_IN_OUT"] = "WAREHOUSE_IN_OUT";
|
|
428
|
+
SubTableType2["WAREHOUSE_INBOUND"] = "WAREHOUSE_INBOUND";
|
|
429
|
+
SubTableType2["WAREHOUSE_OUTBOUND"] = "WAREHOUSE_OUTBOUND";
|
|
430
|
+
SubTableType2["PART_STOCKTAKE"] = "PART_STOCKTAKE";
|
|
431
|
+
SubTableType2["DEVICE_PART_CONSUME"] = "DEVICE_PART_CONSUME";
|
|
432
|
+
SubTableType2["MATERIAL_REQUISITION"] = "MATERIAL_REQUISITION";
|
|
428
433
|
return SubTableType2;
|
|
429
434
|
})(SubTableType || {});
|
|
430
435
|
const PaperSizeMap = computed(() => ({
|
|
@@ -457,7 +462,7 @@ const PaperSizeMap = computed(() => ({
|
|
|
457
462
|
size: void 0
|
|
458
463
|
}
|
|
459
464
|
}));
|
|
460
|
-
const uuid2 = (len, radix) => {
|
|
465
|
+
const uuid2$1 = (len, radix) => {
|
|
461
466
|
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
462
467
|
let uuid = [], i2;
|
|
463
468
|
radix = radix || chars.length;
|
|
@@ -513,7 +518,7 @@ function ensureFrontRowKey(row) {
|
|
|
513
518
|
if (!row) return "";
|
|
514
519
|
const existing = row[FRONT_ROW_KEY];
|
|
515
520
|
if (existing != null && String(existing).trim() !== "") return String(existing);
|
|
516
|
-
const uid = `r_${Date.now()}_${uuid2(8)}`;
|
|
521
|
+
const uid = `r_${Date.now()}_${uuid2$1(8)}`;
|
|
517
522
|
row[FRONT_ROW_KEY] = uid;
|
|
518
523
|
return uid;
|
|
519
524
|
}
|
|
@@ -690,6 +695,11 @@ var onlineFormMasterModelTypeEnum = /* @__PURE__ */ ((onlineFormMasterModelTypeE
|
|
|
690
695
|
onlineFormMasterModelTypeEnum2["ALLOCATE"] = "ALLOCATE";
|
|
691
696
|
onlineFormMasterModelTypeEnum2["STERILIZE_BATCH"] = "PRODUCTION_CONTAINER_LIST_4_STERILIZATION";
|
|
692
697
|
onlineFormMasterModelTypeEnum2["PRETREATMENT_LIST"] = "PRETREATMENT_LIST";
|
|
698
|
+
onlineFormMasterModelTypeEnum2["WAREHOUSE_INBOUND"] = "WAREHOUSE_INBOUND";
|
|
699
|
+
onlineFormMasterModelTypeEnum2["WAREHOUSE_OUTBOUND"] = "WAREHOUSE_OUTBOUND";
|
|
700
|
+
onlineFormMasterModelTypeEnum2["PART_STOCKTAKE"] = "PART_STOCKTAKE";
|
|
701
|
+
onlineFormMasterModelTypeEnum2["DEVICE_PART_CONSUME"] = "DEVICE_PART_CONSUME";
|
|
702
|
+
onlineFormMasterModelTypeEnum2["MATERIAL_REQUISITION"] = "MATERIAL_REQUISITION";
|
|
693
703
|
return onlineFormMasterModelTypeEnum2;
|
|
694
704
|
})(onlineFormMasterModelTypeEnum || {});
|
|
695
705
|
var RecordNoGenerateEnum = /* @__PURE__ */ ((RecordNoGenerateEnum2) => {
|
|
@@ -783,8 +793,9 @@ var FIELD_TYPE = /* @__PURE__ */ ((FIELD_TYPE2) => {
|
|
|
783
793
|
FIELD_TYPE2["DATA_TABLE_FORMULA"] = "data_table_formula";
|
|
784
794
|
FIELD_TYPE2["READONLYCMP"] = "readonlycmp";
|
|
785
795
|
FIELD_TYPE2["MATERIAL_NO"] = "material_no";
|
|
786
|
-
FIELD_TYPE2["
|
|
787
|
-
FIELD_TYPE2["
|
|
796
|
+
FIELD_TYPE2["PRODUCTION_CONTAINER"] = "production_container";
|
|
797
|
+
FIELD_TYPE2["STERILIZATION_CONTAINER"] = "sterilization_container";
|
|
798
|
+
FIELD_TYPE2["MATERIAL_CONTAINER"] = "material_container";
|
|
788
799
|
FIELD_TYPE2["RELATED_LOT_NO"] = "related_lot_no";
|
|
789
800
|
FIELD_TYPE2["PRODUCT"] = "product";
|
|
790
801
|
FIELD_TYPE2["DEVICE"] = "device";
|
|
@@ -894,8 +905,9 @@ var FIELD_TYPE_LOGIC = /* @__PURE__ */ ((FIELD_TYPE_LOGIC2) => {
|
|
|
894
905
|
})(FIELD_TYPE_LOGIC || {});
|
|
895
906
|
var FIELD_TYPE_TRACE = /* @__PURE__ */ ((FIELD_TYPE_TRACE2) => {
|
|
896
907
|
FIELD_TYPE_TRACE2["MATERIAL_NO"] = "material_no";
|
|
897
|
-
FIELD_TYPE_TRACE2["
|
|
898
|
-
FIELD_TYPE_TRACE2["
|
|
908
|
+
FIELD_TYPE_TRACE2["PRODUCTION_CONTAINER"] = "production_container";
|
|
909
|
+
FIELD_TYPE_TRACE2["STERILIZATION_CONTAINER"] = "sterilization_container";
|
|
910
|
+
FIELD_TYPE_TRACE2["MATERIAL_CONTAINER"] = "material_container";
|
|
899
911
|
FIELD_TYPE_TRACE2["RELATED_LOT_NO"] = "related_lot_no";
|
|
900
912
|
FIELD_TYPE_TRACE2["PRODUCT"] = "product";
|
|
901
913
|
FIELD_TYPE_TRACE2["SHOPFLOOR"] = "shopfloor";
|
|
@@ -1120,13 +1132,17 @@ const FieldTypeToJs = {
|
|
|
1120
1132
|
"material_no"
|
|
1121
1133
|
/* MATERIAL_NO */
|
|
1122
1134
|
]: "string",
|
|
1135
|
+
[
|
|
1136
|
+
"production_container"
|
|
1137
|
+
/* PRODUCTION_CONTAINER */
|
|
1138
|
+
]: "string",
|
|
1123
1139
|
[
|
|
1124
1140
|
"sterilization_container"
|
|
1125
|
-
/*
|
|
1141
|
+
/* STERILIZATION_CONTAINER */
|
|
1126
1142
|
]: "string",
|
|
1127
1143
|
[
|
|
1128
1144
|
"material_container"
|
|
1129
|
-
/*
|
|
1145
|
+
/* MATERIAL_CONTAINER */
|
|
1130
1146
|
]: "string",
|
|
1131
1147
|
[
|
|
1132
1148
|
"related_lot_no"
|
|
@@ -1469,13 +1485,17 @@ const FieldIconMap = {
|
|
|
1469
1485
|
"material_no"
|
|
1470
1486
|
/* MATERIAL_NO */
|
|
1471
1487
|
]: "icon-field-material-no",
|
|
1488
|
+
[
|
|
1489
|
+
"production_container"
|
|
1490
|
+
/* PRODUCTION_CONTAINER */
|
|
1491
|
+
]: "icon-field-material-no",
|
|
1472
1492
|
[
|
|
1473
1493
|
"sterilization_container"
|
|
1474
|
-
/*
|
|
1494
|
+
/* STERILIZATION_CONTAINER */
|
|
1475
1495
|
]: "icon-field-material-no",
|
|
1476
1496
|
[
|
|
1477
1497
|
"material_container"
|
|
1478
|
-
/*
|
|
1498
|
+
/* MATERIAL_CONTAINER */
|
|
1479
1499
|
]: "icon-field-material-no",
|
|
1480
1500
|
[
|
|
1481
1501
|
"related_lot_no"
|
|
@@ -10273,7 +10293,7 @@ function requireNodeSqlParser() {
|
|
|
10273
10293
|
return Nl(r3, t3, 1);
|
|
10274
10294
|
}, l = lu("IF", true), c2 = function(r3, t3) {
|
|
10275
10295
|
return Nl(r3, t3);
|
|
10276
|
-
}, f2 = lu("AUTO_INCREMENT", true), b = lu("UNIQUE", true), v = lu("KEY", true), L2 = lu("PRIMARY", true), C = lu("COLUMN_FORMAT", true), p2 = lu("FIXED", true), d = lu("DYNAMIC", true), w2 = lu("DEFAULT", true), y = lu("STORAGE", true), E = lu("DISK", true), h2 = lu("MEMORY", true), A = lu("ALGORITHM", true), m = lu("INSTANT", true), T = lu("INPLACE", true), R2 = lu("COPY", true), I = lu("LOCK", true), N2 = lu("NONE", true), _ = lu("SHARED", true), g = lu("EXCLUSIVE", true), S = lu("PRIMARY KEY", true), O = lu("FOREIGN KEY", true), x = lu("MATCH FULL", true), U2 = lu("MATCH PARTIAL", true), k = lu("MATCH SIMPLE", true), M2 = lu("RESTRICT", true), D = lu("CASCADE", true), P2 = lu("SET NULL", true), G2 = lu("NO ACTION", true), $ = lu("SET DEFAULT", true),
|
|
10296
|
+
}, f2 = lu("AUTO_INCREMENT", true), b = lu("UNIQUE", true), v = lu("KEY", true), L2 = lu("PRIMARY", true), C = lu("COLUMN_FORMAT", true), p2 = lu("FIXED", true), d = lu("DYNAMIC", true), w2 = lu("DEFAULT", true), y = lu("STORAGE", true), E = lu("DISK", true), h2 = lu("MEMORY", true), A = lu("ALGORITHM", true), m = lu("INSTANT", true), T = lu("INPLACE", true), R2 = lu("COPY", true), I = lu("LOCK", true), N2 = lu("NONE", true), _ = lu("SHARED", true), g = lu("EXCLUSIVE", true), S = lu("PRIMARY KEY", true), O = lu("FOREIGN KEY", true), x = lu("MATCH FULL", true), U2 = lu("MATCH PARTIAL", true), k = lu("MATCH SIMPLE", true), M2 = lu("RESTRICT", true), D = lu("CASCADE", true), P2 = lu("SET NULL", true), G2 = lu("NO ACTION", true), $ = lu("SET DEFAULT", true), F2 = lu("CHARACTER", true), j = lu("SET", true), H2 = lu("CHARSET", true), Y = lu("COLLATE", true), B = lu("AVG_ROW_LENGTH", true), W = lu("KEY_BLOCK_SIZE", true), X2 = lu("MAX_ROWS", true), q2 = lu("MIN_ROWS", true), V2 = lu("STATS_SAMPLE_PAGES", true), K = lu("CONNECTION", true), z = lu("COMPRESSION", true), Z = lu("'", false), Q = lu("ZLIB", true), J = lu("LZ4", true), rr = lu("ENGINE", true), tr = lu("READ", true), er = lu("LOCAL", true), nr = lu("LOW_PRIORITY", true), sr = lu("WRITE", true), ur = function(r3, t3) {
|
|
10277
10297
|
return Nl(r3, t3);
|
|
10278
10298
|
}, or = lu("(", false), ar = lu(")", false), ir = lu(".", false), lr = lu("UNNEST", true), cr = lu("BTREE", true), fr = lu("HASH", true), br = lu("WITH", true), vr = lu("PARSER", true), Lr = lu("VISIBLE", true), Cr = lu("INVISIBLE", true), pr = function(r3, t3) {
|
|
10279
10299
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
@@ -10833,7 +10853,7 @@ function requireNodeSqlParser() {
|
|
|
10833
10853
|
var t3, e3, n2, s2, o2, a2, i3, l2, c3;
|
|
10834
10854
|
return t3 = nu, (e3 = ga()) === u && (e3 = null), e3 !== u && rl() !== u ? ((n2 = (function() {
|
|
10835
10855
|
var t4, e4, n3;
|
|
10836
|
-
return t4 = nu, "character" === r2.substr(nu, 9).toLowerCase() ? (e4 = r2.substr(nu, 9), nu += 9) : (e4 = u, 0 === iu && vu(
|
|
10856
|
+
return t4 = nu, "character" === r2.substr(nu, 9).toLowerCase() ? (e4 = r2.substr(nu, 9), nu += 9) : (e4 = u, 0 === iu && vu(F2)), e4 !== u && rl() !== u ? ("set" === r2.substr(nu, 3).toLowerCase() ? (n3 = r2.substr(nu, 3), nu += 3) : (n3 = u, 0 === iu && vu(j)), n3 !== u ? (su = t4, t4 = e4 = "CHARACTER SET") : (nu = t4, t4 = u)) : (nu = t4, t4 = u), t4;
|
|
10837
10857
|
})()) === u && ("charset" === r2.substr(nu, 7).toLowerCase() ? (n2 = r2.substr(nu, 7), nu += 7) : (n2 = u, 0 === iu && vu(H2)), n2 === u && ("collate" === r2.substr(nu, 7).toLowerCase() ? (n2 = r2.substr(nu, 7), nu += 7) : (n2 = u, 0 === iu && vu(Y)))), n2 !== u && rl() !== u ? ((s2 = Pi()) === u && (s2 = null), s2 !== u && rl() !== u && (o2 = Wo()) !== u ? (su = t3, i3 = n2, l2 = s2, c3 = o2, t3 = e3 = { keyword: (a2 = e3) && `${a2[0].toLowerCase()} ${i3.toLowerCase()}` || i3.toLowerCase(), symbol: l2, value: c3 }) : (nu = t3, t3 = u)) : (nu = t3, t3 = u)) : (nu = t3, t3 = u), t3;
|
|
10838
10858
|
}
|
|
10839
10859
|
function ku() {
|
|
@@ -12789,7 +12809,7 @@ function requireNodeSqlParser() {
|
|
|
12789
12809
|
return pc(r3, t3);
|
|
12790
12810
|
}, f2 = Bu("=", false), b = Bu("DUPLICATE", true), v = Bu("BINARY", true), L2 = Bu("MASTER", true), C = Bu("LOGS", true), p2 = Bu("BINLOG", true), d = Bu("EVENTS", true), w2 = Bu("CHARACTER", true), y = Bu("SET", true), E = Bu("COLLATION", true), h2 = function(r3, t3) {
|
|
12791
12811
|
return pc(r3, t3, 1);
|
|
12792
|
-
}, A = Bu("IF", true), m = Bu("CASCADED", true), T = Bu("LOCAL", true), R2 = Bu("CHECK", true), I = Bu("OPTION", false), N2 = Bu("check_option", true), _ = Bu("security_barrier", true), g = Bu("security_invoker", true), S = Bu("GRANTS", true), O = Bu(".", false), x = Bu("ALGORITHM", true), U2 = Bu("DEFAULT", true), k = Bu("INSTANT", true), M2 = Bu("INPLACE", true), D = Bu("COPY", true), P2 = Bu("LOCK", true), G2 = Bu("NONE", true), $ = Bu("SHARED", true),
|
|
12812
|
+
}, A = Bu("IF", true), m = Bu("CASCADED", true), T = Bu("LOCAL", true), R2 = Bu("CHECK", true), I = Bu("OPTION", false), N2 = Bu("check_option", true), _ = Bu("security_barrier", true), g = Bu("security_invoker", true), S = Bu("GRANTS", true), O = Bu(".", false), x = Bu("ALGORITHM", true), U2 = Bu("DEFAULT", true), k = Bu("INSTANT", true), M2 = Bu("INPLACE", true), D = Bu("COPY", true), P2 = Bu("LOCK", true), G2 = Bu("NONE", true), $ = Bu("SHARED", true), F2 = Bu("EXCLUSIVE", true), j = Bu("AUTO_INCREMENT", true), H2 = Bu("UNIQUE", true), Y = Bu("KEY", true), B = Bu("PRIMARY", true), W = Bu("FOR", true), X2 = Bu("COLUMN_FORMAT", true), q2 = Bu("FIXED", true), V2 = Bu("DYNAMIC", true), K = Bu("STORAGE", true), z = Bu("DISK", true), Z = Bu("MEMORY", true), Q = Bu("MATCH FULL", true), J = Bu("MATCH PARTIAL", true), rr = Bu("MATCH SIMPLE", true), tr = Bu("expiration_timestamp", true), er = Bu("partition_expiration_days", true), nr = Bu("require_partition_filter", true), sr = Bu("kms_key_name", true), ur = Bu("friendly_name", true), or = Bu("description", true), ar = Bu("labels", true), ir = Bu("default_rounding_mode", true), lr = Bu("AVG_ROW_LENGTH", true), cr = Bu("KEY_BLOCK_SIZE", true), fr = Bu("MAX_ROWS", true), br = Bu("MIN_ROWS", true), vr = Bu("STATS_SAMPLE_PAGES", true), Lr = Bu("CONNECTION", true), Cr = Bu("COMPRESSION", true), pr = Bu("'", false), dr = Bu("ZLIB", true), wr = Bu("LZ4", true), yr = Bu("ENGINE", true), Er = Bu("CLUSTER", true), hr = Bu("BY", true), Ar = Bu("OPTIONS", true), mr = Bu("CHARSET", true), Tr = Bu("COLLATE", true), Rr = Bu("READ", true), Ir = Bu("LOW_PRIORITY", true), Nr = Bu("WRITE", true), _r = Bu("NOT", true), gr = Bu("BTREE", true), Sr = Bu("HASH", true), Or = Bu("WITH", true), xr = Bu("PARSER", true), Ur = Bu("VISIBLE", true), kr = Bu("INVISIBLE", true), Mr = Bu("RESTRICT", true), Dr = Bu("CASCADE", true), Pr = Bu("SET NULL", true), Gr = Bu("NO ACTION", true), $r = Bu("SET DEFAULT", true), Fr = Bu("UPDATE", true), jr = Bu("CREATE", true), Hr = Bu("DELETE", true), Yr = Bu("INSERT", true), Br = Bu(":=", false), Wr = Bu("return", true), Xr = Bu("REPLACE", true), qr = Bu("ANALYZE", true), Vr = Bu("ATTACH", true), Kr = Bu("DATABASE", true), zr = Bu("RENAME", true), Zr = Bu("SHOW", true), Qr = Bu("DESCRIBE", true), Jr = Bu("@", false), rt = Bu("@@", false), tt = Bu("$", false), et = Bu("TEMPORARY", true), nt = Bu("TEMP", true), st = Bu("SCHEMA", true), ut = Bu("ALTER", true), ot = Bu("SPATIAL", true), at = Bu("(", false), it = Bu(")", false), lt2 = Bu("INTERSECT", true), ct = Bu("EXCEPT", true), ft = Bu("SYSTEM_TIME", true), bt = Bu("AS", true), vt = Bu("OF", true), Lt = Bu("UNNEST", true), Ct = function(r3, t3) {
|
|
12793
12813
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
12794
12814
|
const { table: t4, as: e3 } = r4;
|
|
12795
12815
|
Tc[t4] = t4, e3 && (Tc[e3] = t4), (function(r5) {
|
|
@@ -13395,7 +13415,7 @@ function requireNodeSqlParser() {
|
|
|
13395
13415
|
}
|
|
13396
13416
|
function yo() {
|
|
13397
13417
|
var t3, e3, n2, s2;
|
|
13398
|
-
return t3 = Gu, "lock" === r2.substr(Gu, 4).toLowerCase() ? (e3 = r2.substr(Gu, 4), Gu += 4) : (e3 = u, 0 === Yu && Vu(P2)), e3 !== u && Jl() !== u ? ((n2 = $o()) === u && (n2 = null), n2 !== u && Jl() !== u ? ("default" === r2.substr(Gu, 7).toLowerCase() ? (s2 = r2.substr(Gu, 7), Gu += 7) : (s2 = u, 0 === Yu && Vu(U2)), s2 === u && ("none" === r2.substr(Gu, 4).toLowerCase() ? (s2 = r2.substr(Gu, 4), Gu += 4) : (s2 = u, 0 === Yu && Vu(G2)), s2 === u && ("shared" === r2.substr(Gu, 6).toLowerCase() ? (s2 = r2.substr(Gu, 6), Gu += 6) : (s2 = u, 0 === Yu && Vu($)), s2 === u && ("exclusive" === r2.substr(Gu, 9).toLowerCase() ? (s2 = r2.substr(Gu, 9), Gu += 9) : (s2 = u, 0 === Yu && Vu(
|
|
13418
|
+
return t3 = Gu, "lock" === r2.substr(Gu, 4).toLowerCase() ? (e3 = r2.substr(Gu, 4), Gu += 4) : (e3 = u, 0 === Yu && Vu(P2)), e3 !== u && Jl() !== u ? ((n2 = $o()) === u && (n2 = null), n2 !== u && Jl() !== u ? ("default" === r2.substr(Gu, 7).toLowerCase() ? (s2 = r2.substr(Gu, 7), Gu += 7) : (s2 = u, 0 === Yu && Vu(U2)), s2 === u && ("none" === r2.substr(Gu, 4).toLowerCase() ? (s2 = r2.substr(Gu, 4), Gu += 4) : (s2 = u, 0 === Yu && Vu(G2)), s2 === u && ("shared" === r2.substr(Gu, 6).toLowerCase() ? (s2 = r2.substr(Gu, 6), Gu += 6) : (s2 = u, 0 === Yu && Vu($)), s2 === u && ("exclusive" === r2.substr(Gu, 9).toLowerCase() ? (s2 = r2.substr(Gu, 9), Gu += 9) : (s2 = u, 0 === Yu && Vu(F2))))), s2 !== u ? ($u = t3, t3 = e3 = { type: "alter", keyword: "lock", resource: "lock", symbol: n2, lock: s2 }) : (Gu = t3, t3 = u)) : (Gu = t3, t3 = u)) : (Gu = t3, t3 = u), t3;
|
|
13399
13419
|
}
|
|
13400
13420
|
function Eo() {
|
|
13401
13421
|
var t3;
|
|
@@ -15390,7 +15410,7 @@ function requireNodeSqlParser() {
|
|
|
15390
15410
|
return Mi(r3, t3, 1);
|
|
15391
15411
|
}, l = Hs("IF", true), c2 = function(r3, t3) {
|
|
15392
15412
|
return Mi(r3, t3);
|
|
15393
|
-
}, f2 = Hs("AUTO_INCREMENT", true), b = Hs("UNIQUE", true), v = Hs("KEY", true), L2 = Hs("PRIMARY", true), C = Hs("COLUMN_FORMAT", true), p2 = Hs("FIXED", true), d = Hs("DYNAMIC", true), w2 = Hs("DEFAULT", true), y = Hs("STORAGE", true), E = Hs("DISK", true), h2 = Hs("MEMORY", true), A = Hs("ALGORITHM", true), m = Hs("INSTANT", true), T = Hs("INPLACE", true), R2 = Hs("COPY", true), I = Hs("LOCK", true), N2 = Hs("NONE", true), _ = Hs("SHARED", true), g = Hs("EXCLUSIVE", true), S = Hs("CHECK", true), O = Hs("NOCHECK", true), x = Hs("PRIMARY KEY", true), U2 = Hs("NOT", true), k = Hs("FOR", true), M2 = Hs("REPLICATION", true), D = Hs("FOREIGN KEY", true), P2 = Hs("MATCH FULL", true), G2 = Hs("MATCH PARTIAL", true), $ = Hs("MATCH SIMPLE", true),
|
|
15413
|
+
}, f2 = Hs("AUTO_INCREMENT", true), b = Hs("UNIQUE", true), v = Hs("KEY", true), L2 = Hs("PRIMARY", true), C = Hs("COLUMN_FORMAT", true), p2 = Hs("FIXED", true), d = Hs("DYNAMIC", true), w2 = Hs("DEFAULT", true), y = Hs("STORAGE", true), E = Hs("DISK", true), h2 = Hs("MEMORY", true), A = Hs("ALGORITHM", true), m = Hs("INSTANT", true), T = Hs("INPLACE", true), R2 = Hs("COPY", true), I = Hs("LOCK", true), N2 = Hs("NONE", true), _ = Hs("SHARED", true), g = Hs("EXCLUSIVE", true), S = Hs("CHECK", true), O = Hs("NOCHECK", true), x = Hs("PRIMARY KEY", true), U2 = Hs("NOT", true), k = Hs("FOR", true), M2 = Hs("REPLICATION", true), D = Hs("FOREIGN KEY", true), P2 = Hs("MATCH FULL", true), G2 = Hs("MATCH PARTIAL", true), $ = Hs("MATCH SIMPLE", true), F2 = Hs("RESTRICT", true), j = Hs("CASCADE", true), H2 = Hs("SET NULL", true), Y = Hs("NO ACTION", true), B = Hs("SET DEFAULT", true), W = Hs("CHARACTER", true), X2 = Hs("SET", true), q2 = Hs("CHARSET", true), V2 = Hs("COLLATE", true), K = Hs("AVG_ROW_LENGTH", true), z = Hs("KEY_BLOCK_SIZE", true), Z = Hs("MAX_ROWS", true), Q = Hs("MIN_ROWS", true), J = Hs("STATS_SAMPLE_PAGES", true), rr = Hs("CONNECTION", true), tr = Hs("COMPRESSION", true), er = Hs("'", false), nr = Hs("ZLIB", true), sr = Hs("LZ4", true), ur = Hs("ENGINE", true), or = Hs("READ", true), ar = Hs("LOCAL", true), ir = Hs("LOW_PRIORITY", true), lr = Hs("WRITE", true), cr = function(r3, t3) {
|
|
15394
15414
|
return Mi(r3, t3);
|
|
15395
15415
|
}, fr = Hs("(", false), br = Hs(")", false), vr = Hs("BTREE", true), Lr = Hs("HASH", true), Cr = Hs("WITH", true), pr = Hs("PARSER", true), dr = Hs("VISIBLE", true), wr = Hs("INVISIBLE", true), yr = function(r3, t3) {
|
|
15396
15416
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
@@ -15971,7 +15991,7 @@ function requireNodeSqlParser() {
|
|
|
15971
15991
|
return t3 = Ds, la() !== u && ci() !== u ? ((e3 = Jo()) === u && (e3 = zo()), e3 !== u && ci() !== u && (n2 = (function() {
|
|
15972
15992
|
var t4, e4, n3;
|
|
15973
15993
|
t4 = Ds, (e4 = Xa()) !== u && ci() !== u && si() !== u && ci() !== u ? ((n3 = Vu()) === u && (n3 = null), n3 !== u && ci() !== u && ui() !== u ? (Ps = t4, t4 = e4 = { type: "function", name: { name: [{ type: "origin", value: e4 }] }, args: n3 }) : (Ds = t4, t4 = u)) : (Ds = t4, t4 = u);
|
|
15974
|
-
t4 === u && (t4 = Ds, "restrict" === r2.substr(Ds, 8).toLowerCase() ? (e4 = r2.substr(Ds, 8), Ds += 8) : (e4 = u, 0 === js && Xs(
|
|
15994
|
+
t4 === u && (t4 = Ds, "restrict" === r2.substr(Ds, 8).toLowerCase() ? (e4 = r2.substr(Ds, 8), Ds += 8) : (e4 = u, 0 === js && Xs(F2)), e4 === u && ("cascade" === r2.substr(Ds, 7).toLowerCase() ? (e4 = r2.substr(Ds, 7), Ds += 7) : (e4 = u, 0 === js && Xs(j)), e4 === u && ("set null" === r2.substr(Ds, 8).toLowerCase() ? (e4 = r2.substr(Ds, 8), Ds += 8) : (e4 = u, 0 === js && Xs(H2)), e4 === u && ("no action" === r2.substr(Ds, 9).toLowerCase() ? (e4 = r2.substr(Ds, 9), Ds += 9) : (e4 = u, 0 === js && Xs(Y)), e4 === u && ("set default" === r2.substr(Ds, 11).toLowerCase() ? (e4 = r2.substr(Ds, 11), Ds += 11) : (e4 = u, 0 === js && Xs(B)), e4 === u && (e4 = Xa()))))), e4 !== u && (Ps = t4, e4 = { type: "origin", value: e4.toLowerCase() }), t4 = e4);
|
|
15975
15995
|
return t4;
|
|
15976
15996
|
})()) !== u ? (Ps = t3, s2 = n2, t3 = { type: "on " + e3[0].toLowerCase(), value: s2 }) : (Ds = t3, t3 = u)) : (Ds = t3, t3 = u), t3;
|
|
15977
15997
|
}
|
|
@@ -17719,7 +17739,7 @@ function requireNodeSqlParser() {
|
|
|
17719
17739
|
t2 = void 0 !== t2 ? t2 : {};
|
|
17720
17740
|
var e2, u = {}, o = { start: ao }, a = ao, i2 = to("IF", true), l = to("EXTENSION", true), c2 = to("SCHEMA", true), f2 = to("VERSION", true), b = function(r3, t3) {
|
|
17721
17741
|
return _c(r3, t3, 1);
|
|
17722
|
-
}, v = to("NULLS", true), L2 = to("FIRST", true), C = to("LAST", true), p2 = to("AUTO_INCREMENT", true), d = to("UNIQUE", true), w2 = to("KEY", true), y = to("PRIMARY", true), E = to("COLUMN_FORMAT", true), h2 = to("FIXED", true), A = to("DYNAMIC", true), m = to("DEFAULT", true), T = to("STORAGE", true), R2 = to("DISK", true), I = to("MEMORY", true), N2 = to("ALGORITHM", true), _ = to("INSTANT", true), g = to("INPLACE", true), S = to("COPY", true), O = to("LOCK", true), x = to("NONE", true), U2 = to("SHARED", true), k = to("EXCLUSIVE", true), M2 = to("PRIMARY KEY", true), D = to("FOREIGN KEY", true), P2 = to("MATCH FULL", true), G2 = to("MATCH PARTIAL", true), $ = to("MATCH SIMPLE", true),
|
|
17742
|
+
}, v = to("NULLS", true), L2 = to("FIRST", true), C = to("LAST", true), p2 = to("AUTO_INCREMENT", true), d = to("UNIQUE", true), w2 = to("KEY", true), y = to("PRIMARY", true), E = to("COLUMN_FORMAT", true), h2 = to("FIXED", true), A = to("DYNAMIC", true), m = to("DEFAULT", true), T = to("STORAGE", true), R2 = to("DISK", true), I = to("MEMORY", true), N2 = to("ALGORITHM", true), _ = to("INSTANT", true), g = to("INPLACE", true), S = to("COPY", true), O = to("LOCK", true), x = to("NONE", true), U2 = to("SHARED", true), k = to("EXCLUSIVE", true), M2 = to("PRIMARY KEY", true), D = to("FOREIGN KEY", true), P2 = to("MATCH FULL", true), G2 = to("MATCH PARTIAL", true), $ = to("MATCH SIMPLE", true), F2 = to("RESTRICT", true), j = to("CASCADE", true), H2 = to("SET NULL", true), Y = to("NO ACTION", true), B = to("SET DEFAULT", true), W = to("TRIGGER", true), X2 = to("BEFORE", true), q2 = to("AFTER", true), V2 = to("INSTEAD OF", true), K = to("ON", true), z = to("EXECUTE", true), Z = to("PROCEDURE", true), Q = to("FUNCTION", true), J = to("OF", true), rr = to("NOT", true), tr = to("DEFERRABLE", true), er = to("INITIALLY IMMEDIATE", true), nr = to("INITIALLY DEFERRED", true), sr = to("FOR", true), ur = to("EACH", true), or = to("ROW", true), ar = to("STATEMENT", true), ir = to("CHARACTER", true), lr = to("SET", true), cr = to("CHARSET", true), fr = to("COLLATE", true), br = to("AVG_ROW_LENGTH", true), vr = to("KEY_BLOCK_SIZE", true), Lr = to("MAX_ROWS", true), Cr = to("MIN_ROWS", true), pr = to("STATS_SAMPLE_PAGES", true), dr = to("CONNECTION", true), wr = to("COMPRESSION", true), yr = to("'", false), Er = to("ZLIB", true), hr = to("LZ4", true), Ar = to("ENGINE", true), mr = to("IN", true), Tr = to("ACCESS SHARE", true), Rr = to("ROW SHARE", true), Ir = to("ROW EXCLUSIVE", true), Nr = to("SHARE UPDATE EXCLUSIVE", true), _r = to("SHARE ROW EXCLUSIVE", true), gr = to("ACCESS EXCLUSIVE", true), Sr = to("SHARE", true), Or = to("MODE", true), xr = to("NOWAIT", true), Ur = to("(", false), kr = to(")", false), Mr = to("BTREE", true), Dr = to("HASH", true), Pr = to("GIST", true), Gr = to("GIN", true), $r = to("WITH", true), Fr = to("PARSER", true), jr = to("VISIBLE", true), Hr = to("INVISIBLE", true), Yr = function(r3, t3) {
|
|
17723
17743
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
17724
17744
|
const { table: t4, as: e3 } = r4;
|
|
17725
17745
|
Dc[t4] = t4, e3 && (Dc[e3] = t4), (function(r5) {
|
|
@@ -18319,7 +18339,7 @@ function requireNodeSqlParser() {
|
|
|
18319
18339
|
return t3 = Ku, ji() !== u && nc() !== u ? ((e3 = Si()) === u && (e3 = Ni()), e3 !== u && nc() !== u && (n2 = (function() {
|
|
18320
18340
|
var t4, e4, n3;
|
|
18321
18341
|
t4 = Ku, (e4 = xl()) !== u && nc() !== u && Xl() !== u && nc() !== u ? ((n3 = fa()) === u && (n3 = null), n3 !== u && nc() !== u && ql() !== u ? (zu = t4, t4 = e4 = { type: "function", name: { name: [{ type: "origin", value: e4 }] }, args: n3 }) : (Ku = t4, t4 = u)) : (Ku = t4, t4 = u);
|
|
18322
|
-
t4 === u && (t4 = Ku, "restrict" === r2.substr(Ku, 8).toLowerCase() ? (e4 = r2.substr(Ku, 8), Ku += 8) : (e4 = u, 0 === ro && uo(
|
|
18342
|
+
t4 === u && (t4 = Ku, "restrict" === r2.substr(Ku, 8).toLowerCase() ? (e4 = r2.substr(Ku, 8), Ku += 8) : (e4 = u, 0 === ro && uo(F2)), e4 === u && ("cascade" === r2.substr(Ku, 7).toLowerCase() ? (e4 = r2.substr(Ku, 7), Ku += 7) : (e4 = u, 0 === ro && uo(j)), e4 === u && ("set null" === r2.substr(Ku, 8).toLowerCase() ? (e4 = r2.substr(Ku, 8), Ku += 8) : (e4 = u, 0 === ro && uo(H2)), e4 === u && ("no action" === r2.substr(Ku, 9).toLowerCase() ? (e4 = r2.substr(Ku, 9), Ku += 9) : (e4 = u, 0 === ro && uo(Y)), e4 === u && ("set default" === r2.substr(Ku, 11).toLowerCase() ? (e4 = r2.substr(Ku, 11), Ku += 11) : (e4 = u, 0 === ro && uo(B)), e4 === u && (e4 = xl()))))), e4 !== u && (zu = t4, e4 = { type: "origin", value: e4.toLowerCase() }), t4 = e4);
|
|
18323
18343
|
return t4;
|
|
18324
18344
|
})()) !== u ? (zu = t3, s2 = n2, t3 = { type: "on " + e3[0].toLowerCase(), value: s2 }) : (Ku = t3, t3 = u)) : (Ku = t3, t3 = u), t3;
|
|
18325
18345
|
}
|
|
@@ -20356,7 +20376,7 @@ function requireNodeSqlParser() {
|
|
|
20356
20376
|
return Ti(r3, t3, 1);
|
|
20357
20377
|
}, l = Ns("IF", true), c2 = function(r3, t3) {
|
|
20358
20378
|
return Ti(r3, t3);
|
|
20359
|
-
}, f2 = Ns("AUTO_INCREMENT", true), b = Ns("UNIQUE", true), v = Ns("KEY", true), L2 = Ns("PRIMARY", true), C = Ns("COLUMN_FORMAT", true), p2 = Ns("FIXED", true), d = Ns("DYNAMIC", true), w2 = Ns("DEFAULT", true), y = Ns("STORAGE", true), E = Ns("DISK", true), h2 = Ns("MEMORY", true), A = Ns("ALGORITHM", true), m = Ns("INSTANT", true), T = Ns("INPLACE", true), R2 = Ns("COPY", true), I = Ns("LOCK", true), N2 = Ns("NONE", true), _ = Ns("SHARED", true), g = Ns("EXCLUSIVE", true), S = Ns("PRIMARY KEY", true), O = Ns("FOREIGN KEY", true), x = Ns("MATCH FULL", true), U2 = Ns("MATCH PARTIAL", true), k = Ns("MATCH SIMPLE", true), M2 = Ns("RESTRICT", true), D = Ns("CASCADE", true), P2 = Ns("SET NULL", true), G2 = Ns("NO ACTION", true), $ = Ns("SET DEFAULT", true),
|
|
20379
|
+
}, f2 = Ns("AUTO_INCREMENT", true), b = Ns("UNIQUE", true), v = Ns("KEY", true), L2 = Ns("PRIMARY", true), C = Ns("COLUMN_FORMAT", true), p2 = Ns("FIXED", true), d = Ns("DYNAMIC", true), w2 = Ns("DEFAULT", true), y = Ns("STORAGE", true), E = Ns("DISK", true), h2 = Ns("MEMORY", true), A = Ns("ALGORITHM", true), m = Ns("INSTANT", true), T = Ns("INPLACE", true), R2 = Ns("COPY", true), I = Ns("LOCK", true), N2 = Ns("NONE", true), _ = Ns("SHARED", true), g = Ns("EXCLUSIVE", true), S = Ns("PRIMARY KEY", true), O = Ns("FOREIGN KEY", true), x = Ns("MATCH FULL", true), U2 = Ns("MATCH PARTIAL", true), k = Ns("MATCH SIMPLE", true), M2 = Ns("RESTRICT", true), D = Ns("CASCADE", true), P2 = Ns("SET NULL", true), G2 = Ns("NO ACTION", true), $ = Ns("SET DEFAULT", true), F2 = Ns("CHARACTER", true), j = Ns("SET", true), H2 = Ns("CHARSET", true), Y = Ns("COLLATE", true), B = Ns("AVG_ROW_LENGTH", true), W = Ns("KEY_BLOCK_SIZE", true), X2 = Ns("MAX_ROWS", true), q2 = Ns("MIN_ROWS", true), V2 = Ns("STATS_SAMPLE_PAGES", true), K = Ns("CONNECTION", true), z = Ns("COMPRESSION", true), Z = Ns("'", false), Q = Ns("ZLIB", true), J = Ns("LZ4", true), rr = Ns("ENGINE", true), tr = Ns("READ", true), er = Ns("LOCAL", true), nr = Ns("LOW_PRIORITY", true), sr = Ns("WRITE", true), ur = function(r3, t3) {
|
|
20360
20380
|
return Ti(r3, t3);
|
|
20361
20381
|
}, or = Ns("(", false), ar = Ns(")", false), ir = Ns(".", false), lr = Ns("BTREE", true), cr = Ns("HASH", true), fr = Ns("WITH", true), br = Ns("PARSER", true), vr = Ns("VISIBLE", true), Lr = Ns("INVISIBLE", true), Cr = function(r3, t3) {
|
|
20362
20382
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
@@ -20919,7 +20939,7 @@ function requireNodeSqlParser() {
|
|
|
20919
20939
|
var t3, e3, n2, s2, o2, a2, i3, l2, c3;
|
|
20920
20940
|
return t3 = hs, (e3 = Po()) === u && (e3 = null), e3 !== u && Ja() !== u ? ((n2 = (function() {
|
|
20921
20941
|
var t4, e4, n3;
|
|
20922
|
-
return t4 = hs, "character" === r2.substr(hs, 9).toLowerCase() ? (e4 = r2.substr(hs, 9), hs += 9) : (e4 = u, 0 === Is && Os(
|
|
20942
|
+
return t4 = hs, "character" === r2.substr(hs, 9).toLowerCase() ? (e4 = r2.substr(hs, 9), hs += 9) : (e4 = u, 0 === Is && Os(F2)), e4 !== u && Ja() !== u ? ("set" === r2.substr(hs, 3).toLowerCase() ? (n3 = r2.substr(hs, 3), hs += 3) : (n3 = u, 0 === Is && Os(j)), n3 !== u ? (As = t4, t4 = e4 = "CHARACTER SET") : (hs = t4, t4 = u)) : (hs = t4, t4 = u), t4;
|
|
20923
20943
|
})()) === u && ("charset" === r2.substr(hs, 7).toLowerCase() ? (n2 = r2.substr(hs, 7), hs += 7) : (n2 = u, 0 === Is && Os(H2)), n2 === u && ("collate" === r2.substr(hs, 7).toLowerCase() ? (n2 = r2.substr(hs, 7), hs += 7) : (n2 = u, 0 === Is && Os(Y)))), n2 !== u && Ja() !== u ? ((s2 = Ga()) === u && (s2 = null), s2 !== u && Ja() !== u && (o2 = so()) !== u ? (As = t3, i3 = n2, l2 = s2, c3 = o2, t3 = e3 = { keyword: (a2 = e3) && `${a2[0].toLowerCase()} ${i3.toLowerCase()}` || i3.toLowerCase(), symbol: l2, value: c3 }) : (hs = t3, t3 = u)) : (hs = t3, t3 = u)) : (hs = t3, t3 = u), t3;
|
|
20924
20944
|
}
|
|
20925
20945
|
function Qs() {
|
|
@@ -22708,7 +22728,7 @@ function requireNodeSqlParser() {
|
|
|
22708
22728
|
return vL(r3, t3);
|
|
22709
22729
|
}, E = nl("role", true), h2 = nl("NONE", true), A = nl("SSL", true), m = nl("X509", true), T = nl("CIPHER", true), R2 = nl("ISSUER", true), I = nl("SUBJECT", true), N2 = function(r3, t3) {
|
|
22710
22730
|
return t3.prefix = r3.toLowerCase(), t3;
|
|
22711
|
-
}, _ = nl("REQUIRE", true), g = nl("MAX_QUERIES_PER_HOUR", true), S = nl("MAX_UPDATES_PER_HOUR", true), O = nl("MAX_CONNECTIONS_PER_HOUR", true), x = nl("MAX_USER_CONNECTIONS", true), U2 = nl("EXPIRE", true), k = nl("DEFAULT", true), M2 = nl("NEVER", true), D = nl("HISTORY", true), P2 = nl("REUSE", false), G2 = nl("CURRENT", true), $ = nl("OPTIONAL", true),
|
|
22731
|
+
}, _ = nl("REQUIRE", true), g = nl("MAX_QUERIES_PER_HOUR", true), S = nl("MAX_UPDATES_PER_HOUR", true), O = nl("MAX_CONNECTIONS_PER_HOUR", true), x = nl("MAX_USER_CONNECTIONS", true), U2 = nl("EXPIRE", true), k = nl("DEFAULT", true), M2 = nl("NEVER", true), D = nl("HISTORY", true), P2 = nl("REUSE", false), G2 = nl("CURRENT", true), $ = nl("OPTIONAL", true), F2 = nl("FAILED_LOGIN_ATTEMPTS", true), j = nl("PASSWORD_LOCK_TIME", true), H2 = nl("UNBOUNDED", true), Y = nl("ACCOUNT", true), B = nl("LOCK", true), W = nl("UNLOCK", true), X2 = nl("ATTRIBUTE", true), q2 = nl("CASCADED", true), V2 = nl("LOCAL", true), K = nl("CHECK", true), z = nl("OPTION", false), Z = nl("ALGORITHM", true), Q = nl("UNDEFINED", true), J = nl("MERGE", true), rr = nl("TEMPTABLE", true), tr = nl("SQL", true), er = nl("SECURITY", true), nr = nl("DEFINER", true), sr = nl("INVOKER", true), ur = function(r3, t3) {
|
|
22712
22732
|
return vL(r3, t3);
|
|
22713
22733
|
}, or = nl("AUTO_INCREMENT", true), ar = nl("UNIQUE", true), ir = nl("KEY", true), lr = nl("PRIMARY", true), cr = nl("@", false), fr = function() {
|
|
22714
22734
|
return fL("=", { type: "origin", value: "definer" }, { type: "function", name: { name: [{ type: "default", value: "current_user" }] }, args: { type: "expr_list", value: [] } });
|
|
@@ -23390,7 +23410,7 @@ function requireNodeSqlParser() {
|
|
|
23390
23410
|
return { keyword: "password reuse", value: r3 };
|
|
23391
23411
|
})(s2)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u), t3 === u && (t3 = Zi, "password" === r2.substr(Zi, 8).toLowerCase() ? (e3 = r2.substr(Zi, 8), Zi += 8) : (e3 = u, 0 === el2 && al(d)), e3 !== u && Gv() !== u ? ("require" === r2.substr(Zi, 7).toLowerCase() ? (n2 = r2.substr(Zi, 7), Zi += 7) : (n2 = u, 0 === el2 && al(_)), n2 !== u && Gv() !== u ? ("current" === r2.substr(Zi, 7).toLowerCase() ? (s2 = r2.substr(Zi, 7), Zi += 7) : (s2 = u, 0 === el2 && al(G2)), s2 !== u && Gv() !== u ? ("default" === r2.substr(Zi, 7).toLowerCase() ? (o2 = r2.substr(Zi, 7), Zi += 7) : (o2 = u, 0 === el2 && al(k)), o2 === u && ("optional" === r2.substr(Zi, 8).toLowerCase() ? (o2 = r2.substr(Zi, 8), Zi += 8) : (o2 = u, 0 === el2 && al($))), o2 !== u ? (Qi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
23392
23412
|
return { keyword: "password require current", value: { type: "origin", value: r3 } };
|
|
23393
|
-
})(o2)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u), t3 === u && (t3 = Zi, "failed_login_attempts" === r2.substr(Zi, 21).toLowerCase() ? (e3 = r2.substr(Zi, 21), Zi += 21) : (e3 = u, 0 === el2 && al(
|
|
23413
|
+
})(o2)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u)) : (Zi = t3, t3 = u), t3 === u && (t3 = Zi, "failed_login_attempts" === r2.substr(Zi, 21).toLowerCase() ? (e3 = r2.substr(Zi, 21), Zi += 21) : (e3 = u, 0 === el2 && al(F2)), e3 !== u && Gv() !== u && (n2 = Xf()) !== u ? (Qi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
23394
23414
|
return { keyword: "failed_login_attempts", value: r3 };
|
|
23395
23415
|
})(n2)) : (Zi = t3, t3 = u), t3 === u && (t3 = Zi, "password_lock_time" === r2.substr(Zi, 18).toLowerCase() ? (e3 = r2.substr(Zi, 18), Zi += 18) : (e3 = u, 0 === el2 && al(j)), e3 !== u && Gv() !== u ? ((n2 = Xf()) === u && ("unbounded" === r2.substr(Zi, 9).toLowerCase() ? (n2 = r2.substr(Zi, 9), Zi += 9) : (n2 = u, 0 === el2 && al(H2))), n2 !== u ? (Qi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
23396
23416
|
return { keyword: "password_lock_time", value: "string" == typeof r3 ? { type: "origin", value: r3 } : r3 };
|
|
@@ -26046,7 +26066,7 @@ function requireNodeSqlParser() {
|
|
|
26046
26066
|
return Zv(r3, t3);
|
|
26047
26067
|
}, E = qi("role", true), h2 = qi("NONE", true), A = qi("SSL", true), m = qi("X509", true), T = qi("CIPHER", true), R2 = qi("ISSUER", true), I = qi("SUBJECT", true), N2 = function(r3, t3) {
|
|
26048
26068
|
return t3.prefix = r3.toLowerCase(), t3;
|
|
26049
|
-
}, _ = qi("REQUIRE", true), g = qi("MAX_QUERIES_PER_HOUR", true), S = qi("MAX_UPDATES_PER_HOUR", true), O = qi("MAX_CONNECTIONS_PER_HOUR", true), x = qi("MAX_USER_CONNECTIONS", true), U2 = qi("EXPIRE", true), k = qi("DEFAULT", true), M2 = qi("NEVER", true), D = qi("HISTORY", true), P2 = qi("REUSE", false), G2 = qi("CURRENT", true), $ = qi("OPTIONAL", true),
|
|
26069
|
+
}, _ = qi("REQUIRE", true), g = qi("MAX_QUERIES_PER_HOUR", true), S = qi("MAX_UPDATES_PER_HOUR", true), O = qi("MAX_CONNECTIONS_PER_HOUR", true), x = qi("MAX_USER_CONNECTIONS", true), U2 = qi("EXPIRE", true), k = qi("DEFAULT", true), M2 = qi("NEVER", true), D = qi("HISTORY", true), P2 = qi("REUSE", false), G2 = qi("CURRENT", true), $ = qi("OPTIONAL", true), F2 = qi("FAILED_LOGIN_ATTEMPTS", true), j = qi("PASSWORD_LOCK_TIME", true), H2 = qi("UNBOUNDED", true), Y = qi("ACCOUNT", true), B = qi("LOCK", true), W = qi("UNLOCK", true), X2 = qi("ATTRIBUTE", true), q2 = qi("CASCADED", true), V2 = qi("LOCAL", true), K = qi("CHECK", true), z = qi("OPTION", false), Z = qi("ALGORITHM", true), Q = qi("UNDEFINED", true), J = qi("MERGE", true), rr = qi("TEMPTABLE", true), tr = qi("SQL", true), er = qi("SECURITY", true), nr = qi("DEFINER", true), sr = qi("INVOKER", true), ur = function(r3, t3) {
|
|
26050
26070
|
return Zv(r3, t3);
|
|
26051
26071
|
}, or = qi("AUTO_INCREMENT", true), ar = qi("UNIQUE", true), ir = qi("KEY", true), lr = qi("PRIMARY", true), cr = qi("@", false), fr = function() {
|
|
26052
26072
|
return Kv("=", { type: "origin", value: "definer" }, { type: "function", name: { name: [{ type: "default", value: "current_user" }] }, args: { type: "expr_list", value: [] } });
|
|
@@ -26715,7 +26735,7 @@ function requireNodeSqlParser() {
|
|
|
26715
26735
|
return { keyword: "password reuse", value: r3 };
|
|
26716
26736
|
})(s2)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u), t3 === u && (t3 = ji, "password" === r2.substr(ji, 8).toLowerCase() ? (e3 = r2.substr(ji, 8), ji += 8) : (e3 = u, 0 === Xi && Zi(d)), e3 !== u && hv() !== u ? ("require" === r2.substr(ji, 7).toLowerCase() ? (n2 = r2.substr(ji, 7), ji += 7) : (n2 = u, 0 === Xi && Zi(_)), n2 !== u && hv() !== u ? ("current" === r2.substr(ji, 7).toLowerCase() ? (s2 = r2.substr(ji, 7), ji += 7) : (s2 = u, 0 === Xi && Zi(G2)), s2 !== u && hv() !== u ? ("default" === r2.substr(ji, 7).toLowerCase() ? (o2 = r2.substr(ji, 7), ji += 7) : (o2 = u, 0 === Xi && Zi(k)), o2 === u && ("optional" === r2.substr(ji, 8).toLowerCase() ? (o2 = r2.substr(ji, 8), ji += 8) : (o2 = u, 0 === Xi && Zi($))), o2 !== u ? (Hi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
26717
26737
|
return { keyword: "password require current", value: { type: "origin", value: r3 } };
|
|
26718
|
-
})(o2)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u), t3 === u && (t3 = ji, "failed_login_attempts" === r2.substr(ji, 21).toLowerCase() ? (e3 = r2.substr(ji, 21), ji += 21) : (e3 = u, 0 === Xi && Zi(
|
|
26738
|
+
})(o2)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u)) : (ji = t3, t3 = u), t3 === u && (t3 = ji, "failed_login_attempts" === r2.substr(ji, 21).toLowerCase() ? (e3 = r2.substr(ji, 21), ji += 21) : (e3 = u, 0 === Xi && Zi(F2)), e3 !== u && hv() !== u && (n2 = kf()) !== u ? (Hi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
26719
26739
|
return { keyword: "failed_login_attempts", value: r3 };
|
|
26720
26740
|
})(n2)) : (ji = t3, t3 = u), t3 === u && (t3 = ji, "password_lock_time" === r2.substr(ji, 18).toLowerCase() ? (e3 = r2.substr(ji, 18), ji += 18) : (e3 = u, 0 === Xi && Zi(j)), e3 !== u && hv() !== u ? ((n2 = kf()) === u && ("unbounded" === r2.substr(ji, 9).toLowerCase() ? (n2 = r2.substr(ji, 9), ji += 9) : (n2 = u, 0 === Xi && Zi(H2))), n2 !== u ? (Hi = t3, t3 = e3 = /* @__PURE__ */ (function(r3) {
|
|
26721
26741
|
return { keyword: "password_lock_time", value: "string" == typeof r3 ? { type: "origin", value: r3 } : r3 };
|
|
@@ -29238,7 +29258,7 @@ function requireNodeSqlParser() {
|
|
|
29238
29258
|
})(t2) + " found.";
|
|
29239
29259
|
}, r.exports = { SyntaxError: s, parse: function(r2, t2) {
|
|
29240
29260
|
t2 = void 0 !== t2 ? t2 : {};
|
|
29241
|
-
var e2, u = {}, o = { start: Ui }, a = Ui, i2 = Ni("IF", true), l = Ni("EXTENSION", true), c2 = Ni("SCHEMA", true), f2 = Ni("VERSION", true), b = Ni("CASCADED", true), v = Ni("LOCAL", true), L2 = Ni("CHECK", true), C = Ni("OPTION", false), p2 = Ni("check_option", true), d = Ni("security_barrier", true), w2 = Ni("security_invoker", true), y = Ni("SFUNC", true), E = Ni("STYPE", true), h2 = Ni("AGGREGATE", true), A = Ni("RETURNS", true), m = Ni("SETOF", true), T = Ni("CONSTANT", true), R2 = Ni(":=", false), I = Ni("BEGIN", true), N2 = Ni("DECLARE", true), _ = Ni("LANGUAGE", false), g = Ni("TRANSORM", true), S = Ni("FOR", false), O = Ni("TYPE", false), x = Ni("WINDOW", true), U2 = Ni("IMMUTABLE", true), k = Ni("STABLE", true), M2 = Ni("VOLATILE", true), D = Ni("STRICT", true), P2 = Ni("NOT", true), G2 = Ni("LEAKPROOF", true), $ = Ni("CALLED", true),
|
|
29261
|
+
var e2, u = {}, o = { start: Ui }, a = Ui, i2 = Ni("IF", true), l = Ni("EXTENSION", true), c2 = Ni("SCHEMA", true), f2 = Ni("VERSION", true), b = Ni("CASCADED", true), v = Ni("LOCAL", true), L2 = Ni("CHECK", true), C = Ni("OPTION", false), p2 = Ni("check_option", true), d = Ni("security_barrier", true), w2 = Ni("security_invoker", true), y = Ni("SFUNC", true), E = Ni("STYPE", true), h2 = Ni("AGGREGATE", true), A = Ni("RETURNS", true), m = Ni("SETOF", true), T = Ni("CONSTANT", true), R2 = Ni(":=", false), I = Ni("BEGIN", true), N2 = Ni("DECLARE", true), _ = Ni("LANGUAGE", false), g = Ni("TRANSORM", true), S = Ni("FOR", false), O = Ni("TYPE", false), x = Ni("WINDOW", true), U2 = Ni("IMMUTABLE", true), k = Ni("STABLE", true), M2 = Ni("VOLATILE", true), D = Ni("STRICT", true), P2 = Ni("NOT", true), G2 = Ni("LEAKPROOF", true), $ = Ni("CALLED", true), F2 = Ni("NULL", true), j = Ni("ON", true), H2 = Ni("INPUT", true), Y = Ni("EXTERNAL", true), B = Ni("SECURITY", true), W = Ni("INVOKER", true), X2 = Ni("DEFINER", true), q2 = Ni("PARALLEL", true), V2 = Ni("UNSAFE", true), K = Ni("RESTRICTED", true), z = Ni("SAFE", true), Z = /^[^ s\t\n\r]/, Q = _i([" ", "s", " ", "\n", "\r"], true, false), J = /^[^ s\t\n\r;]/, rr = _i([" ", "s", " ", "\n", "\r", ";"], true, false), tr = Ni("COST", true), er = Ni("ROWS", true), nr = Ni("SUPPORT", true), sr = Ni("TO", true), ur = Ni("=", false), or = Ni("CURRENT", true), ar = Ni("FUNCTION", true), ir = Ni("TYPE", true), lr = Ni("DOMAIN", true), cr = Ni("INCREMENT", true), fr = Ni("MINVALUE", true), br = function(r3, t3) {
|
|
29242
29262
|
return { resource: "sequence", prefix: r3.toLowerCase(), value: t3 };
|
|
29243
29263
|
}, vr = Ni("NO", true), Lr = Ni("MAXVALUE", true), Cr = Ni("START", true), pr = Ni("CACHE", true), dr = Ni("CYCLE", true), wr = Ni("OWNED", true), yr = Ni("NONE", true), Er = Ni("NULLS", true), hr = Ni("FIRST", true), Ar = Ni("LAST", true), mr = Ni("AUTO_INCREMENT", true), Tr = Ni("UNIQUE", true), Rr = Ni("KEY", true), Ir = Ni("PRIMARY", true), Nr = Ni("COLUMN_FORMAT", true), _r = Ni("FIXED", true), gr = Ni("DYNAMIC", true), Sr = Ni("DEFAULT", true), Or = Ni("STORAGE", true), xr = Ni("DISK", true), Ur = Ni("MEMORY", true), kr = Ni("CASCADE", true), Mr = Ni("RESTRICT", true), Dr = Ni("OUT", true), Pr = Ni("VARIADIC", true), Gr = Ni("INOUT", true), $r = Ni("OWNER", true), Fr = Ni("CURRENT_ROLE", true), jr = Ni("CURRENT_USER", true), Hr = Ni("SESSION_USER", true), Yr = Ni("ALGORITHM", true), Br = Ni("INSTANT", true), Wr = Ni("INPLACE", true), Xr = Ni("COPY", true), qr = Ni("LOCK", true), Vr = Ni("SHARED", true), Kr = Ni("EXCLUSIVE", true), zr = Ni("PRIMARY KEY", true), Zr = Ni("FOREIGN KEY", true), Qr = Ni("MATCH FULL", true), Jr = Ni("MATCH PARTIAL", true), rt = Ni("MATCH SIMPLE", true), tt = Ni("SET NULL", true), et = Ni("NO ACTION", true), nt = Ni("SET DEFAULT", true), st = Ni("TRIGGER", true), ut = Ni("BEFORE", true), ot = Ni("AFTER", true), at = Ni("INSTEAD OF", true), it = Ni("EXECUTE", true), lt2 = Ni("PROCEDURE", true), ct = Ni("OF", true), ft = Ni("DEFERRABLE", true), bt = Ni("INITIALLY IMMEDIATE", true), vt = Ni("INITIALLY DEFERRED", true), Lt = Ni("FOR", true), Ct = Ni("EACH", true), pt = Ni("ROW", true), dt = Ni("STATEMENT", true), wt = Ni("CHARACTER", true), yt = Ni("SET", true), Et = Ni("CHARSET", true), ht = Ni("COLLATE", true), At = Ni("AVG_ROW_LENGTH", true), mt = Ni("KEY_BLOCK_SIZE", true), Tt = Ni("MAX_ROWS", true), Rt = Ni("MIN_ROWS", true), It = Ni("STATS_SAMPLE_PAGES", true), Nt = Ni("CONNECTION", true), _t = Ni("COMPRESSION", true), gt = Ni("'", false), St = Ni("ZLIB", true), Ot = Ni("LZ4", true), xt = Ni("ENGINE", true), Ut = Ni("IN", true), kt = Ni("ACCESS SHARE", true), Mt = Ni("ROW SHARE", true), Dt = Ni("ROW EXCLUSIVE", true), Pt = Ni("SHARE UPDATE EXCLUSIVE", true), Gt = Ni("SHARE ROW EXCLUSIVE", true), $t2 = Ni("ACCESS EXCLUSIVE", true), Ft = Ni("SHARE", true), jt = Ni("MODE", true), Ht = Ni("NOWAIT", true), Yt = Ni("TABLES", true), Bt = Ni("PREPARE", true), Wt = Ni("USAGE", true), Xt = function(r3) {
|
|
29244
29264
|
return { type: "origin", value: Array.isArray(r3) ? r3[0] : r3 };
|
|
@@ -29953,7 +29973,7 @@ function requireNodeSqlParser() {
|
|
|
29953
29973
|
}
|
|
29954
29974
|
function qi() {
|
|
29955
29975
|
var t3, e3, n2, s2, o2, a2, i3, l2, c3, f3, b2, v2, L3, C2, p3, d2, w3;
|
|
29956
|
-
if (t3 = hi, "LANGUAGE" === r2.substr(hi, 8) ? (e3 = "LANGUAGE", hi += 8) : (e3 = u, 0 === Ii && Oi(_)), e3 !== u && (n2 = Yv()) !== u && (s2 = cf()) !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "transorm" === r2.substr(hi, 8).toLowerCase() ? (e3 = r2.substr(hi, 8), hi += 8) : (e3 = u, 0 === Ii && Oi(g)), e3 !== u && (n2 = Yv()) !== u ? (s2 = hi, "FOR" === r2.substr(hi, 3) ? (o2 = "FOR", hi += 3) : (o2 = u, 0 === Ii && Oi(S)), o2 !== u && (a2 = Yv()) !== u ? ("TYPE" === r2.substr(hi, 4) ? (i3 = "TYPE", hi += 4) : (i3 = u, 0 === Ii && Oi(O)), i3 !== u && (l2 = Yv()) !== u && (c3 = cf()) !== u ? s2 = o2 = [o2, a2, i3, l2, c3] : (hi = s2, s2 = u)) : (hi = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "window" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(x)), e3 === u && ("immutable" === r2.substr(hi, 9).toLowerCase() ? (e3 = r2.substr(hi, 9), hi += 9) : (e3 = u, 0 === Ii && Oi(U2)), e3 === u && ("stable" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(k)), e3 === u && ("volatile" === r2.substr(hi, 8).toLowerCase() ? (e3 = r2.substr(hi, 8), hi += 8) : (e3 = u, 0 === Ii && Oi(M2)), e3 === u && ("strict" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(D)))))), e3 !== u && (n2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { type: "origin", value: e3 }) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "not" === r2.substr(hi, 3).toLowerCase() ? (e3 = r2.substr(hi, 3), hi += 3) : (e3 = u, 0 === Ii && Oi(P2)), e3 === u && (e3 = null), e3 !== u && (n2 = Yv()) !== u ? ("leakproof" === r2.substr(hi, 9).toLowerCase() ? (s2 = r2.substr(hi, 9), hi += 9) : (s2 = u, 0 === Ii && Oi(G2)), s2 !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { type: "origin", value: [e3, "LEAKPROOF"].filter((r3) => r3).join(" ") }) : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "called" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi($)), e3 === u && (e3 = hi, "returns" === r2.substr(hi, 7).toLowerCase() ? (n2 = r2.substr(hi, 7), hi += 7) : (n2 = u, 0 === Ii && Oi(A)), n2 !== u && (s2 = Yv()) !== u ? ("null" === r2.substr(hi, 4).toLowerCase() ? (o2 = r2.substr(hi, 4), hi += 4) : (o2 = u, 0 === Ii && Oi(
|
|
29976
|
+
if (t3 = hi, "LANGUAGE" === r2.substr(hi, 8) ? (e3 = "LANGUAGE", hi += 8) : (e3 = u, 0 === Ii && Oi(_)), e3 !== u && (n2 = Yv()) !== u && (s2 = cf()) !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "transorm" === r2.substr(hi, 8).toLowerCase() ? (e3 = r2.substr(hi, 8), hi += 8) : (e3 = u, 0 === Ii && Oi(g)), e3 !== u && (n2 = Yv()) !== u ? (s2 = hi, "FOR" === r2.substr(hi, 3) ? (o2 = "FOR", hi += 3) : (o2 = u, 0 === Ii && Oi(S)), o2 !== u && (a2 = Yv()) !== u ? ("TYPE" === r2.substr(hi, 4) ? (i3 = "TYPE", hi += 4) : (i3 = u, 0 === Ii && Oi(O)), i3 !== u && (l2 = Yv()) !== u && (c3 = cf()) !== u ? s2 = o2 = [o2, a2, i3, l2, c3] : (hi = s2, s2 = u)) : (hi = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "window" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(x)), e3 === u && ("immutable" === r2.substr(hi, 9).toLowerCase() ? (e3 = r2.substr(hi, 9), hi += 9) : (e3 = u, 0 === Ii && Oi(U2)), e3 === u && ("stable" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(k)), e3 === u && ("volatile" === r2.substr(hi, 8).toLowerCase() ? (e3 = r2.substr(hi, 8), hi += 8) : (e3 = u, 0 === Ii && Oi(M2)), e3 === u && ("strict" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi(D)))))), e3 !== u && (n2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { type: "origin", value: e3 }) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "not" === r2.substr(hi, 3).toLowerCase() ? (e3 = r2.substr(hi, 3), hi += 3) : (e3 = u, 0 === Ii && Oi(P2)), e3 === u && (e3 = null), e3 !== u && (n2 = Yv()) !== u ? ("leakproof" === r2.substr(hi, 9).toLowerCase() ? (s2 = r2.substr(hi, 9), hi += 9) : (s2 = u, 0 === Ii && Oi(G2)), s2 !== u && (o2 = Yv()) !== u ? (Ai = t3, t3 = e3 = { type: "origin", value: [e3, "LEAKPROOF"].filter((r3) => r3).join(" ") }) : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "called" === r2.substr(hi, 6).toLowerCase() ? (e3 = r2.substr(hi, 6), hi += 6) : (e3 = u, 0 === Ii && Oi($)), e3 === u && (e3 = hi, "returns" === r2.substr(hi, 7).toLowerCase() ? (n2 = r2.substr(hi, 7), hi += 7) : (n2 = u, 0 === Ii && Oi(A)), n2 !== u && (s2 = Yv()) !== u ? ("null" === r2.substr(hi, 4).toLowerCase() ? (o2 = r2.substr(hi, 4), hi += 4) : (o2 = u, 0 === Ii && Oi(F2)), o2 !== u ? e3 = n2 = [n2, s2, o2] : (hi = e3, e3 = u)) : (hi = e3, e3 = u)), e3 === u && (e3 = null), e3 !== u && (n2 = Yv()) !== u ? ("on" === r2.substr(hi, 2).toLowerCase() ? (s2 = r2.substr(hi, 2), hi += 2) : (s2 = u, 0 === Ii && Oi(j)), s2 !== u && (o2 = Yv()) !== u ? ("null" === r2.substr(hi, 4).toLowerCase() ? (a2 = r2.substr(hi, 4), hi += 4) : (a2 = u, 0 === Ii && Oi(F2)), a2 !== u && (i3 = Yv()) !== u ? ("input" === r2.substr(hi, 5).toLowerCase() ? (l2 = r2.substr(hi, 5), hi += 5) : (l2 = u, 0 === Ii && Oi(H2)), l2 !== u && (c3 = Yv()) !== u ? (Ai = t3, t3 = e3 = (function(r3) {
|
|
29957
29977
|
return Array.isArray(r3) && (r3 = [r3[0], r3[2]].join(" ")), { type: "origin", value: r3 + " ON NULL INPUT" };
|
|
29958
29978
|
})(e3)) : (hi = t3, t3 = u)) : (hi = t3, t3 = u)) : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3 === u && (t3 = hi, "external" === r2.substr(hi, 8).toLowerCase() ? (e3 = r2.substr(hi, 8), hi += 8) : (e3 = u, 0 === Ii && Oi(Y)), e3 === u && (e3 = null), e3 !== u && (n2 = Yv()) !== u ? ("security" === r2.substr(hi, 8).toLowerCase() ? (s2 = r2.substr(hi, 8), hi += 8) : (s2 = u, 0 === Ii && Oi(B)), s2 !== u && (o2 = Yv()) !== u ? ("invoker" === r2.substr(hi, 7).toLowerCase() ? (a2 = r2.substr(hi, 7), hi += 7) : (a2 = u, 0 === Ii && Oi(W)), a2 === u && ("definer" === r2.substr(hi, 7).toLowerCase() ? (a2 = r2.substr(hi, 7), hi += 7) : (a2 = u, 0 === Ii && Oi(X2))), a2 !== u && (i3 = Yv()) !== u ? (Ai = t3, t3 = e3 = (function(r3, t4) {
|
|
29959
29979
|
return { type: "origin", value: [r3, "SECURITY", t4].filter((r4) => r4).join(" ") };
|
|
@@ -31691,7 +31711,7 @@ function requireNodeSqlParser() {
|
|
|
31691
31711
|
}
|
|
31692
31712
|
function Yf() {
|
|
31693
31713
|
var t3, e3, n2, s2;
|
|
31694
|
-
return t3 = hi, "null" === r2.substr(hi, 4).toLowerCase() ? (e3 = r2.substr(hi, 4), hi += 4) : (e3 = u, 0 === Ii && Oi(
|
|
31714
|
+
return t3 = hi, "null" === r2.substr(hi, 4).toLowerCase() ? (e3 = r2.substr(hi, 4), hi += 4) : (e3 = u, 0 === Ii && Oi(F2)), e3 !== u ? (n2 = hi, Ii++, s2 = ff(), Ii--, s2 === u ? n2 = void 0 : (hi = n2, n2 = u), n2 !== u ? t3 = e3 = [e3, n2] : (hi = t3, t3 = u)) : (hi = t3, t3 = u), t3;
|
|
31695
31715
|
}
|
|
31696
31716
|
function Bf() {
|
|
31697
31717
|
var t3, e3, n2, s2;
|
|
@@ -32628,7 +32648,7 @@ function requireNodeSqlParser() {
|
|
|
32628
32648
|
})(t2) + " found.";
|
|
32629
32649
|
}, r.exports = { SyntaxError: s, parse: function(r2, t2) {
|
|
32630
32650
|
t2 = void 0 !== t2 ? t2 : {};
|
|
32631
|
-
var e2, u = {}, o = { start: rc }, a = rc, i2 = Vl("IF", true), l = Vl("if", true), f2 = Vl("exists", true), b = Vl("EXTENSION", true), v = Vl("SCHEMA", true), L2 = Vl("VERSION", true), C = Vl("CASCADED", true), p2 = Vl("LOCAL", true), d = Vl("CHECK", true), w2 = Vl("OPTION", false), y = Vl("check_option", true), E = Vl("security_barrier", true), h2 = Vl("security_invoker", true), A = Vl("SFUNC", true), m = Vl("STYPE", true), T = Vl("AGGREGATE", true), R2 = Vl("RETURNS", true), I = Vl("SETOF", true), N2 = Vl("CONSTANT", true), _ = Vl(":=", false), g = Vl("BEGIN", true), S = Vl("DECLARE", true), O = Vl("LANGUAGE", false), x = Vl("TRANSORM", true), U2 = Vl("FOR", false), k = Vl("TYPE", false), M2 = Vl("WINDOW", true), D = Vl("IMMUTABLE", true), P2 = Vl("STABLE", true), G2 = Vl("VOLATILE", true), $ = Vl("STRICT", true),
|
|
32651
|
+
var e2, u = {}, o = { start: rc }, a = rc, i2 = Vl("IF", true), l = Vl("if", true), f2 = Vl("exists", true), b = Vl("EXTENSION", true), v = Vl("SCHEMA", true), L2 = Vl("VERSION", true), C = Vl("CASCADED", true), p2 = Vl("LOCAL", true), d = Vl("CHECK", true), w2 = Vl("OPTION", false), y = Vl("check_option", true), E = Vl("security_barrier", true), h2 = Vl("security_invoker", true), A = Vl("SFUNC", true), m = Vl("STYPE", true), T = Vl("AGGREGATE", true), R2 = Vl("RETURNS", true), I = Vl("SETOF", true), N2 = Vl("CONSTANT", true), _ = Vl(":=", false), g = Vl("BEGIN", true), S = Vl("DECLARE", true), O = Vl("LANGUAGE", false), x = Vl("TRANSORM", true), U2 = Vl("FOR", false), k = Vl("TYPE", false), M2 = Vl("WINDOW", true), D = Vl("IMMUTABLE", true), P2 = Vl("STABLE", true), G2 = Vl("VOLATILE", true), $ = Vl("STRICT", true), F2 = Vl("NOT", true), j = Vl("LEAKPROOF", true), H2 = Vl("CALLED", true), Y = Vl("NULL", true), B = Vl("ON", true), W = Vl("INPUT", true), X2 = Vl("EXTERNAL", true), q2 = Vl("SECURITY", true), V2 = Vl("INVOKER", true), K = Vl("DEFINER", true), z = Vl("PARALLEL", true), Z = Vl("UNSAFE", true), Q = Vl("RESTRICTED", true), J = Vl("SAFE", true), rr = /^[^ s\t\n\r]/, tr = Kl([" ", "s", " ", "\n", "\r"], true, false), er = /^[^ s\t\n\r;]/, nr = Kl([" ", "s", " ", "\n", "\r", ";"], true, false), sr = Vl("COST", true), ur = Vl("ROWS", true), or = Vl("SUPPORT", true), ar = Vl("TO", true), ir = Vl("=", false), lr = Vl("CURRENT", true), cr = Vl("FUNCTION", true), fr = Vl("RANGE", true), br = Vl("TYPE", true), vr = Vl("DOMAIN", true), Lr = Vl("INCREMENT", true), Cr = Vl("MINVALUE", true), pr = function(r3, t3) {
|
|
32632
32652
|
return { resource: "sequence", prefix: r3.toLowerCase(), value: t3 };
|
|
32633
32653
|
}, dr = Vl("NO", true), wr = Vl("MAXVALUE", true), yr = Vl("START", true), Er = function(r3, t3, e3) {
|
|
32634
32654
|
return { resource: "sequence", prefix: t3 ? r3.toLowerCase() + " with" : r3.toLowerCase(), value: e3 };
|
|
@@ -32778,7 +32798,7 @@ function requireNodeSqlParser() {
|
|
|
32778
32798
|
return r3;
|
|
32779
32799
|
})()) !== u && xC() !== u ? ("on" === r2.substr(Hl, 2).toLowerCase() ? (b2 = r2.substr(Hl, 2), Hl += 2) : (b2 = u, 0 === ql && Ql(B)), b2 !== u && xC() !== u && (v2 = xf()) !== u && xC() !== u ? (L3 = Hl, (C2 = Kv()) !== u && (p3 = xC()) !== u && (d2 = xf()) !== u ? L3 = C2 = [C2, p3, d2] : (Hl = L3, L3 = u), L3 === u && (L3 = null), L3 !== u && (C2 = xC()) !== u ? ((p3 = (function() {
|
|
32780
32800
|
var t6, e4, n3, s3, o3;
|
|
32781
|
-
t6 = Hl, e4 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (n3 = r2.substr(Hl, 3), Hl += 3) : (n3 = u, 0 === ql && Ql(
|
|
32801
|
+
t6 = Hl, e4 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (n3 = r2.substr(Hl, 3), Hl += 3) : (n3 = u, 0 === ql && Ql(F2));
|
|
32782
32802
|
n3 === u && (n3 = null);
|
|
32783
32803
|
n3 !== u && (s3 = xC()) !== u ? ("deferrable" === r2.substr(Hl, 10).toLowerCase() ? (o3 = r2.substr(Hl, 10), Hl += 10) : (o3 = u, 0 === ql && Ql(Dt)), o3 !== u ? e4 = n3 = [n3, s3, o3] : (Hl = e4, e4 = u)) : (Hl = e4, e4 = u);
|
|
32784
32804
|
e4 !== u && (n3 = xC()) !== u ? ("initially immediate" === r2.substr(Hl, 19).toLowerCase() ? (s3 = r2.substr(Hl, 19), Hl += 19) : (s3 = u, 0 === ql && Ql(Pt)), s3 === u && ("initially deferred" === r2.substr(Hl, 18).toLowerCase() ? (s3 = r2.substr(Hl, 18), Hl += 18) : (s3 = u, 0 === ql && Ql(Gt))), s3 !== u ? (Yl = t6, i4 = s3, e4 = { keyword: (a3 = e4) && a3[0] ? a3[0].toLowerCase() + " deferrable" : "deferrable", args: i4 && i4.toLowerCase() }, t6 = e4) : (Hl = t6, t6 = u)) : (Hl = t6, t6 = u);
|
|
@@ -33402,7 +33422,7 @@ function requireNodeSqlParser() {
|
|
|
33402
33422
|
}
|
|
33403
33423
|
function Cc() {
|
|
33404
33424
|
var t3, e3, n2, s2, o2, a2, i3, l2, c2, f3, b2, v2, L3, C2, p3, d2, w3;
|
|
33405
|
-
if (t3 = Hl, "LANGUAGE" === r2.substr(Hl, 8) ? (e3 = "LANGUAGE", Hl += 8) : (e3 = u, 0 === ql && Ql(O)), e3 !== u && (n2 = xC()) !== u && (s2 = Hb()) !== u && (o2 = xC()) !== u ? (Yl = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "transorm" === r2.substr(Hl, 8).toLowerCase() ? (e3 = r2.substr(Hl, 8), Hl += 8) : (e3 = u, 0 === ql && Ql(x)), e3 !== u && (n2 = xC()) !== u ? (s2 = Hl, "FOR" === r2.substr(Hl, 3) ? (o2 = "FOR", Hl += 3) : (o2 = u, 0 === ql && Ql(U2)), o2 !== u && (a2 = xC()) !== u ? ("TYPE" === r2.substr(Hl, 4) ? (i3 = "TYPE", Hl += 4) : (i3 = u, 0 === ql && Ql(k)), i3 !== u && (l2 = xC()) !== u && (c2 = Hb()) !== u ? s2 = o2 = [o2, a2, i3, l2, c2] : (Hl = s2, s2 = u)) : (Hl = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = xC()) !== u ? (Yl = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "window" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql(M2)), e3 === u && ("immutable" === r2.substr(Hl, 9).toLowerCase() ? (e3 = r2.substr(Hl, 9), Hl += 9) : (e3 = u, 0 === ql && Ql(D)), e3 === u && ("stable" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql(P2)), e3 === u && ("volatile" === r2.substr(Hl, 8).toLowerCase() ? (e3 = r2.substr(Hl, 8), Hl += 8) : (e3 = u, 0 === ql && Ql(G2)), e3 === u && ("strict" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql($)))))), e3 !== u && (n2 = xC()) !== u ? (Yl = t3, t3 = e3 = { type: "origin", value: e3 }) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (e3 = r2.substr(Hl, 3), Hl += 3) : (e3 = u, 0 === ql && Ql(
|
|
33425
|
+
if (t3 = Hl, "LANGUAGE" === r2.substr(Hl, 8) ? (e3 = "LANGUAGE", Hl += 8) : (e3 = u, 0 === ql && Ql(O)), e3 !== u && (n2 = xC()) !== u && (s2 = Hb()) !== u && (o2 = xC()) !== u ? (Yl = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "transorm" === r2.substr(Hl, 8).toLowerCase() ? (e3 = r2.substr(Hl, 8), Hl += 8) : (e3 = u, 0 === ql && Ql(x)), e3 !== u && (n2 = xC()) !== u ? (s2 = Hl, "FOR" === r2.substr(Hl, 3) ? (o2 = "FOR", Hl += 3) : (o2 = u, 0 === ql && Ql(U2)), o2 !== u && (a2 = xC()) !== u ? ("TYPE" === r2.substr(Hl, 4) ? (i3 = "TYPE", Hl += 4) : (i3 = u, 0 === ql && Ql(k)), i3 !== u && (l2 = xC()) !== u && (c2 = Hb()) !== u ? s2 = o2 = [o2, a2, i3, l2, c2] : (Hl = s2, s2 = u)) : (Hl = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = xC()) !== u ? (Yl = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "window" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql(M2)), e3 === u && ("immutable" === r2.substr(Hl, 9).toLowerCase() ? (e3 = r2.substr(Hl, 9), Hl += 9) : (e3 = u, 0 === ql && Ql(D)), e3 === u && ("stable" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql(P2)), e3 === u && ("volatile" === r2.substr(Hl, 8).toLowerCase() ? (e3 = r2.substr(Hl, 8), Hl += 8) : (e3 = u, 0 === ql && Ql(G2)), e3 === u && ("strict" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql($)))))), e3 !== u && (n2 = xC()) !== u ? (Yl = t3, t3 = e3 = { type: "origin", value: e3 }) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (e3 = r2.substr(Hl, 3), Hl += 3) : (e3 = u, 0 === ql && Ql(F2)), e3 === u && (e3 = null), e3 !== u && (n2 = xC()) !== u ? ("leakproof" === r2.substr(Hl, 9).toLowerCase() ? (s2 = r2.substr(Hl, 9), Hl += 9) : (s2 = u, 0 === ql && Ql(j)), s2 !== u && (o2 = xC()) !== u ? (Yl = t3, t3 = e3 = { type: "origin", value: [e3, "LEAKPROOF"].filter((r3) => r3).join(" ") }) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "called" === r2.substr(Hl, 6).toLowerCase() ? (e3 = r2.substr(Hl, 6), Hl += 6) : (e3 = u, 0 === ql && Ql(H2)), e3 === u && (e3 = Hl, "returns" === r2.substr(Hl, 7).toLowerCase() ? (n2 = r2.substr(Hl, 7), Hl += 7) : (n2 = u, 0 === ql && Ql(R2)), n2 !== u && (s2 = xC()) !== u ? ("null" === r2.substr(Hl, 4).toLowerCase() ? (o2 = r2.substr(Hl, 4), Hl += 4) : (o2 = u, 0 === ql && Ql(Y)), o2 !== u ? e3 = n2 = [n2, s2, o2] : (Hl = e3, e3 = u)) : (Hl = e3, e3 = u)), e3 === u && (e3 = null), e3 !== u && (n2 = xC()) !== u ? ("on" === r2.substr(Hl, 2).toLowerCase() ? (s2 = r2.substr(Hl, 2), Hl += 2) : (s2 = u, 0 === ql && Ql(B)), s2 !== u && (o2 = xC()) !== u ? ("null" === r2.substr(Hl, 4).toLowerCase() ? (a2 = r2.substr(Hl, 4), Hl += 4) : (a2 = u, 0 === ql && Ql(Y)), a2 !== u && (i3 = xC()) !== u ? ("input" === r2.substr(Hl, 5).toLowerCase() ? (l2 = r2.substr(Hl, 5), Hl += 5) : (l2 = u, 0 === ql && Ql(W)), l2 !== u && (c2 = xC()) !== u ? (Yl = t3, t3 = e3 = (function(r3) {
|
|
33406
33426
|
return Array.isArray(r3) && (r3 = [r3[0], r3[2]].join(" ")), { type: "origin", value: r3 + " ON NULL INPUT" };
|
|
33407
33427
|
})(e3)) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u), t3 === u && (t3 = Hl, "external" === r2.substr(Hl, 8).toLowerCase() ? (e3 = r2.substr(Hl, 8), Hl += 8) : (e3 = u, 0 === ql && Ql(X2)), e3 === u && (e3 = null), e3 !== u && (n2 = xC()) !== u ? ("security" === r2.substr(Hl, 8).toLowerCase() ? (s2 = r2.substr(Hl, 8), Hl += 8) : (s2 = u, 0 === ql && Ql(q2)), s2 !== u && (o2 = xC()) !== u ? ("invoker" === r2.substr(Hl, 7).toLowerCase() ? (a2 = r2.substr(Hl, 7), Hl += 7) : (a2 = u, 0 === ql && Ql(V2)), a2 === u && ("definer" === r2.substr(Hl, 7).toLowerCase() ? (a2 = r2.substr(Hl, 7), Hl += 7) : (a2 = u, 0 === ql && Ql(K))), a2 !== u && (i3 = xC()) !== u ? (Yl = t3, t3 = e3 = (function(r3, t4) {
|
|
33408
33428
|
return { type: "origin", value: [r3, "SECURITY", t4].filter((r4) => r4).join(" ") };
|
|
@@ -35509,7 +35529,7 @@ function requireNodeSqlParser() {
|
|
|
35509
35529
|
}
|
|
35510
35530
|
function AL() {
|
|
35511
35531
|
var t3, e3, n2, s2;
|
|
35512
|
-
return t3 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (e3 = r2.substr(Hl, 3), Hl += 3) : (e3 = u, 0 === ql && Ql(
|
|
35532
|
+
return t3 = Hl, "not" === r2.substr(Hl, 3).toLowerCase() ? (e3 = r2.substr(Hl, 3), Hl += 3) : (e3 = u, 0 === ql && Ql(F2)), e3 !== u ? (n2 = Hl, ql++, s2 = Yb(), ql--, s2 === u ? n2 = void 0 : (Hl = n2, n2 = u), n2 !== u ? (Yl = t3, t3 = e3 = "NOT") : (Hl = t3, t3 = u)) : (Hl = t3, t3 = u), t3;
|
|
35513
35533
|
}
|
|
35514
35534
|
function mL() {
|
|
35515
35535
|
var t3, e3, n2, s2;
|
|
@@ -36413,7 +36433,7 @@ function requireNodeSqlParser() {
|
|
|
36413
36433
|
})(t2) + " found.";
|
|
36414
36434
|
}, r.exports = { SyntaxError: s, parse: function(r2, t2) {
|
|
36415
36435
|
t2 = void 0 !== t2 ? t2 : {};
|
|
36416
|
-
var e2, u = {}, o = { start: $i }, a = $i, i2 = Ui("IF", true), l = Ui("EXTENSION", true), c2 = Ui("SCHEMA", true), f2 = Ui("VERSION", true), b = Ui("CASCADED", true), v = Ui("LOCAL", true), L2 = Ui("CHECK", true), C = Ui("OPTION", false), p2 = Ui("check_option", true), d = Ui("security_barrier", true), w2 = Ui("security_invoker", true), y = Ui("SFUNC", true), E = Ui("STYPE", true), h2 = Ui("AGGREGATE", true), A = Ui("RETURNS", true), m = Ui("SETOF", true), T = Ui("CONSTANT", true), R2 = Ui(":=", false), I = Ui("BEGIN", true), N2 = Ui("DECLARE", true), _ = Ui("LANGUAGE", false), g = Ui("TRANSORM", true), S = Ui("FOR", false), O = Ui("TYPE", false), x = Ui("WINDOW", true), U2 = Ui("IMMUTABLE", true), k = Ui("STABLE", true), M2 = Ui("VOLATILE", true), D = Ui("STRICT", true), P2 = Ui("NOT", true), G2 = Ui("LEAKPROOF", true), $ = Ui("CALLED", true),
|
|
36436
|
+
var e2, u = {}, o = { start: $i }, a = $i, i2 = Ui("IF", true), l = Ui("EXTENSION", true), c2 = Ui("SCHEMA", true), f2 = Ui("VERSION", true), b = Ui("CASCADED", true), v = Ui("LOCAL", true), L2 = Ui("CHECK", true), C = Ui("OPTION", false), p2 = Ui("check_option", true), d = Ui("security_barrier", true), w2 = Ui("security_invoker", true), y = Ui("SFUNC", true), E = Ui("STYPE", true), h2 = Ui("AGGREGATE", true), A = Ui("RETURNS", true), m = Ui("SETOF", true), T = Ui("CONSTANT", true), R2 = Ui(":=", false), I = Ui("BEGIN", true), N2 = Ui("DECLARE", true), _ = Ui("LANGUAGE", false), g = Ui("TRANSORM", true), S = Ui("FOR", false), O = Ui("TYPE", false), x = Ui("WINDOW", true), U2 = Ui("IMMUTABLE", true), k = Ui("STABLE", true), M2 = Ui("VOLATILE", true), D = Ui("STRICT", true), P2 = Ui("NOT", true), G2 = Ui("LEAKPROOF", true), $ = Ui("CALLED", true), F2 = Ui("NULL", true), j = Ui("ON", true), H2 = Ui("INPUT", true), Y = Ui("EXTERNAL", true), B = Ui("SECURITY", true), W = Ui("INVOKER", true), X2 = Ui("DEFINER", true), q2 = Ui("PARALLEL", true), V2 = Ui("UNSAFE", true), K = Ui("RESTRICTED", true), z = Ui("SAFE", true), Z = /^[^ s\t\n\r]/, Q = ki([" ", "s", " ", "\n", "\r"], true, false), J = /^[^ s\t\n\r;]/, rr = ki([" ", "s", " ", "\n", "\r", ";"], true, false), tr = Ui("COST", true), er = Ui("ROWS", true), nr = Ui("SUPPORT", true), sr = Ui("TO", true), ur = Ui("=", false), or = Ui("CURRENT", true), ar = Ui("FUNCTION", true), ir = Ui("TYPE", true), lr = Ui("DOMAIN", true), cr = Ui("INCREMENT", true), fr = Ui("MINVALUE", true), br = function(r3, t3) {
|
|
36417
36437
|
return { resource: "sequence", prefix: r3.toLowerCase(), value: t3 };
|
|
36418
36438
|
}, vr = Ui("NO", true), Lr = Ui("MAXVALUE", true), Cr = Ui("START", true), pr = Ui("CACHE", true), dr = Ui("CYCLE", true), wr = Ui("OWNED", true), yr = Ui("NONE", true), Er = Ui("NULLS", true), hr = Ui("FIRST", true), Ar = Ui("LAST", true), mr = Ui("AUTO_INCREMENT", true), Tr = Ui("UNIQUE", true), Rr = Ui("KEY", true), Ir = Ui("PRIMARY", true), Nr = Ui("COLUMN_FORMAT", true), _r = Ui("FIXED", true), gr = Ui("DYNAMIC", true), Sr = Ui("DEFAULT", true), Or = Ui("STORAGE", true), xr = Ui("DISK", true), Ur = Ui("MEMORY", true), kr = Ui("CASCADE", true), Mr = Ui("RESTRICT", true), Dr = Ui("OUT", true), Pr = Ui("VARIADIC", true), Gr = Ui("INOUT", true), $r = Ui("OWNER", true), Fr = Ui("CURRENT_ROLE", true), jr = Ui("CURRENT_USER", true), Hr = Ui("SESSION_USER", true), Yr = Ui("ALGORITHM", true), Br = Ui("INSTANT", true), Wr = Ui("INPLACE", true), Xr = Ui("COPY", true), qr = Ui("LOCK", true), Vr = Ui("SHARED", true), Kr = Ui("EXCLUSIVE", true), zr = Ui("PRIMARY KEY", true), Zr = Ui("FOREIGN KEY", true), Qr = Ui("MATCH FULL", true), Jr = Ui("MATCH PARTIAL", true), rt = Ui("MATCH SIMPLE", true), tt = Ui("SET NULL", true), et = Ui("NO ACTION", true), nt = Ui("SET DEFAULT", true), st = Ui("TRIGGER", true), ut = Ui("BEFORE", true), ot = Ui("AFTER", true), at = Ui("INSTEAD OF", true), it = Ui("EXECUTE", true), lt2 = Ui("PROCEDURE", true), ct = Ui("OF", true), ft = Ui("DEFERRABLE", true), bt = Ui("INITIALLY IMMEDIATE", true), vt = Ui("INITIALLY DEFERRED", true), Lt = Ui("FOR", true), Ct = Ui("EACH", true), pt = Ui("ROW", true), dt = Ui("STATEMENT", true), wt = Ui("CHARACTER", true), yt = Ui("SET", true), Et = Ui("CHARSET", true), ht = Ui("COLLATE", true), At = Ui("AVG_ROW_LENGTH", true), mt = Ui("KEY_BLOCK_SIZE", true), Tt = Ui("MAX_ROWS", true), Rt = Ui("MIN_ROWS", true), It = Ui("STATS_SAMPLE_PAGES", true), Nt = Ui("CONNECTION", true), _t = Ui("COMPRESSION", true), gt = Ui("'", false), St = Ui("ZLIB", true), Ot = Ui("LZ4", true), xt = Ui("ENGINE", true), Ut = Ui("IN", true), kt = Ui("ACCESS SHARE", true), Mt = Ui("ROW SHARE", true), Dt = Ui("ROW EXCLUSIVE", true), Pt = Ui("SHARE UPDATE EXCLUSIVE", true), Gt = Ui("SHARE ROW EXCLUSIVE", true), $t2 = Ui("ACCESS EXCLUSIVE", true), Ft = Ui("SHARE", true), jt = Ui("MODE", true), Ht = Ui("NOWAIT", true), Yt = Ui("TABLES", true), Bt = Ui("PREPARE", true), Wt = Ui("USAGE", true), Xt = function(r3) {
|
|
36419
36439
|
return { type: "origin", value: Array.isArray(r3) ? r3[0] : r3 };
|
|
@@ -37106,7 +37126,7 @@ function requireNodeSqlParser() {
|
|
|
37106
37126
|
}
|
|
37107
37127
|
function Ji() {
|
|
37108
37128
|
var t3, e3, n2, s2, o2, a2, i3, l2, c3, f3, b2, v2, L3, C2, p3, d2, w3;
|
|
37109
|
-
if (t3 = Ni, "LANGUAGE" === r2.substr(Ni, 8) ? (e3 = "LANGUAGE", Ni += 8) : (e3 = u, 0 === xi && Pi(_)), e3 !== u && (n2 = tL()) !== u && (s2 = Ef()) !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "transorm" === r2.substr(Ni, 8).toLowerCase() ? (e3 = r2.substr(Ni, 8), Ni += 8) : (e3 = u, 0 === xi && Pi(g)), e3 !== u && (n2 = tL()) !== u ? (s2 = Ni, "FOR" === r2.substr(Ni, 3) ? (o2 = "FOR", Ni += 3) : (o2 = u, 0 === xi && Pi(S)), o2 !== u && (a2 = tL()) !== u ? ("TYPE" === r2.substr(Ni, 4) ? (i3 = "TYPE", Ni += 4) : (i3 = u, 0 === xi && Pi(O)), i3 !== u && (l2 = tL()) !== u && (c3 = Ef()) !== u ? s2 = o2 = [o2, a2, i3, l2, c3] : (Ni = s2, s2 = u)) : (Ni = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "window" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(x)), e3 === u && ("immutable" === r2.substr(Ni, 9).toLowerCase() ? (e3 = r2.substr(Ni, 9), Ni += 9) : (e3 = u, 0 === xi && Pi(U2)), e3 === u && ("stable" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(k)), e3 === u && ("volatile" === r2.substr(Ni, 8).toLowerCase() ? (e3 = r2.substr(Ni, 8), Ni += 8) : (e3 = u, 0 === xi && Pi(M2)), e3 === u && ("strict" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(D)))))), e3 !== u && (n2 = tL()) !== u ? (_i = t3, t3 = e3 = { type: "origin", value: e3 }) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "not" === r2.substr(Ni, 3).toLowerCase() ? (e3 = r2.substr(Ni, 3), Ni += 3) : (e3 = u, 0 === xi && Pi(P2)), e3 === u && (e3 = null), e3 !== u && (n2 = tL()) !== u ? ("leakproof" === r2.substr(Ni, 9).toLowerCase() ? (s2 = r2.substr(Ni, 9), Ni += 9) : (s2 = u, 0 === xi && Pi(G2)), s2 !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = { type: "origin", value: [e3, "LEAKPROOF"].filter((r3) => r3).join(" ") }) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "called" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi($)), e3 === u && (e3 = Ni, "returns" === r2.substr(Ni, 7).toLowerCase() ? (n2 = r2.substr(Ni, 7), Ni += 7) : (n2 = u, 0 === xi && Pi(A)), n2 !== u && (s2 = tL()) !== u ? ("null" === r2.substr(Ni, 4).toLowerCase() ? (o2 = r2.substr(Ni, 4), Ni += 4) : (o2 = u, 0 === xi && Pi(
|
|
37129
|
+
if (t3 = Ni, "LANGUAGE" === r2.substr(Ni, 8) ? (e3 = "LANGUAGE", Ni += 8) : (e3 = u, 0 === xi && Pi(_)), e3 !== u && (n2 = tL()) !== u && (s2 = Ef()) !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = { prefix: "LANGUAGE", type: "default", value: s2 }) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "transorm" === r2.substr(Ni, 8).toLowerCase() ? (e3 = r2.substr(Ni, 8), Ni += 8) : (e3 = u, 0 === xi && Pi(g)), e3 !== u && (n2 = tL()) !== u ? (s2 = Ni, "FOR" === r2.substr(Ni, 3) ? (o2 = "FOR", Ni += 3) : (o2 = u, 0 === xi && Pi(S)), o2 !== u && (a2 = tL()) !== u ? ("TYPE" === r2.substr(Ni, 4) ? (i3 = "TYPE", Ni += 4) : (i3 = u, 0 === xi && Pi(O)), i3 !== u && (l2 = tL()) !== u && (c3 = Ef()) !== u ? s2 = o2 = [o2, a2, i3, l2, c3] : (Ni = s2, s2 = u)) : (Ni = s2, s2 = u), s2 === u && (s2 = null), s2 !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = (w3 = s2) ? { prefix: ["TRANSORM", w3[0].toUpperCase(), w3[2].toUpperCase()].join(" "), type: "default", value: w3[4] } : { type: "origin", value: "TRANSORM" }) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "window" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(x)), e3 === u && ("immutable" === r2.substr(Ni, 9).toLowerCase() ? (e3 = r2.substr(Ni, 9), Ni += 9) : (e3 = u, 0 === xi && Pi(U2)), e3 === u && ("stable" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(k)), e3 === u && ("volatile" === r2.substr(Ni, 8).toLowerCase() ? (e3 = r2.substr(Ni, 8), Ni += 8) : (e3 = u, 0 === xi && Pi(M2)), e3 === u && ("strict" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi(D)))))), e3 !== u && (n2 = tL()) !== u ? (_i = t3, t3 = e3 = { type: "origin", value: e3 }) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "not" === r2.substr(Ni, 3).toLowerCase() ? (e3 = r2.substr(Ni, 3), Ni += 3) : (e3 = u, 0 === xi && Pi(P2)), e3 === u && (e3 = null), e3 !== u && (n2 = tL()) !== u ? ("leakproof" === r2.substr(Ni, 9).toLowerCase() ? (s2 = r2.substr(Ni, 9), Ni += 9) : (s2 = u, 0 === xi && Pi(G2)), s2 !== u && (o2 = tL()) !== u ? (_i = t3, t3 = e3 = { type: "origin", value: [e3, "LEAKPROOF"].filter((r3) => r3).join(" ") }) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "called" === r2.substr(Ni, 6).toLowerCase() ? (e3 = r2.substr(Ni, 6), Ni += 6) : (e3 = u, 0 === xi && Pi($)), e3 === u && (e3 = Ni, "returns" === r2.substr(Ni, 7).toLowerCase() ? (n2 = r2.substr(Ni, 7), Ni += 7) : (n2 = u, 0 === xi && Pi(A)), n2 !== u && (s2 = tL()) !== u ? ("null" === r2.substr(Ni, 4).toLowerCase() ? (o2 = r2.substr(Ni, 4), Ni += 4) : (o2 = u, 0 === xi && Pi(F2)), o2 !== u ? e3 = n2 = [n2, s2, o2] : (Ni = e3, e3 = u)) : (Ni = e3, e3 = u)), e3 === u && (e3 = null), e3 !== u && (n2 = tL()) !== u ? ("on" === r2.substr(Ni, 2).toLowerCase() ? (s2 = r2.substr(Ni, 2), Ni += 2) : (s2 = u, 0 === xi && Pi(j)), s2 !== u && (o2 = tL()) !== u ? ("null" === r2.substr(Ni, 4).toLowerCase() ? (a2 = r2.substr(Ni, 4), Ni += 4) : (a2 = u, 0 === xi && Pi(F2)), a2 !== u && (i3 = tL()) !== u ? ("input" === r2.substr(Ni, 5).toLowerCase() ? (l2 = r2.substr(Ni, 5), Ni += 5) : (l2 = u, 0 === xi && Pi(H2)), l2 !== u && (c3 = tL()) !== u ? (_i = t3, t3 = e3 = (function(r3) {
|
|
37110
37130
|
return Array.isArray(r3) && (r3 = [r3[0], r3[2]].join(" ")), { type: "origin", value: r3 + " ON NULL INPUT" };
|
|
37111
37131
|
})(e3)) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3 === u && (t3 = Ni, "external" === r2.substr(Ni, 8).toLowerCase() ? (e3 = r2.substr(Ni, 8), Ni += 8) : (e3 = u, 0 === xi && Pi(Y)), e3 === u && (e3 = null), e3 !== u && (n2 = tL()) !== u ? ("security" === r2.substr(Ni, 8).toLowerCase() ? (s2 = r2.substr(Ni, 8), Ni += 8) : (s2 = u, 0 === xi && Pi(B)), s2 !== u && (o2 = tL()) !== u ? ("invoker" === r2.substr(Ni, 7).toLowerCase() ? (a2 = r2.substr(Ni, 7), Ni += 7) : (a2 = u, 0 === xi && Pi(W)), a2 === u && ("definer" === r2.substr(Ni, 7).toLowerCase() ? (a2 = r2.substr(Ni, 7), Ni += 7) : (a2 = u, 0 === xi && Pi(X2))), a2 !== u && (i3 = tL()) !== u ? (_i = t3, t3 = e3 = (function(r3, t4) {
|
|
37112
37132
|
return { type: "origin", value: [r3, "SECURITY", t4].filter((r4) => r4).join(" ") };
|
|
@@ -38908,7 +38928,7 @@ function requireNodeSqlParser() {
|
|
|
38908
38928
|
}
|
|
38909
38929
|
function tb() {
|
|
38910
38930
|
var t3, e3, n2, s2;
|
|
38911
|
-
return t3 = Ni, "null" === r2.substr(Ni, 4).toLowerCase() ? (e3 = r2.substr(Ni, 4), Ni += 4) : (e3 = u, 0 === xi && Pi(
|
|
38931
|
+
return t3 = Ni, "null" === r2.substr(Ni, 4).toLowerCase() ? (e3 = r2.substr(Ni, 4), Ni += 4) : (e3 = u, 0 === xi && Pi(F2)), e3 !== u ? (n2 = Ni, xi++, s2 = hf(), xi--, s2 === u ? n2 = void 0 : (Ni = n2, n2 = u), n2 !== u ? t3 = e3 = [e3, n2] : (Ni = t3, t3 = u)) : (Ni = t3, t3 = u), t3;
|
|
38912
38932
|
}
|
|
38913
38933
|
function eb() {
|
|
38914
38934
|
var t3, e3, n2, s2;
|
|
@@ -39859,7 +39879,7 @@ function requireNodeSqlParser() {
|
|
|
39859
39879
|
return Ql(r3, t3);
|
|
39860
39880
|
}, y = ju("BEGIN", true), E = ju("END", true), h2 = ju("FOR", true), A = ju("EACH", true), m = ju("ROW", true), T = ju("STATEMENT", true), R2 = ju("LOCAL", true), I = ju("CHECK", true), N2 = (function(r3, t3) {
|
|
39861
39881
|
return Ql(r3, t3);
|
|
39862
|
-
}), _ = ju("AUTO_INCREMENT", true), g = ju("AUTOINCREMENT", true), S = ju("UNIQUE", true), O = ju("KEY", true), x = ju("PRIMARY", true), U2 = ju("COLUMN_FORMAT", true), k = ju("FIXED", true), M2 = ju("DYNAMIC", true), D = ju("DEFAULT", true), P2 = ju("STORAGE", true), G2 = ju("DISK", true), $ = ju("MEMORY", true),
|
|
39882
|
+
}), _ = ju("AUTO_INCREMENT", true), g = ju("AUTOINCREMENT", true), S = ju("UNIQUE", true), O = ju("KEY", true), x = ju("PRIMARY", true), U2 = ju("COLUMN_FORMAT", true), k = ju("FIXED", true), M2 = ju("DYNAMIC", true), D = ju("DEFAULT", true), P2 = ju("STORAGE", true), G2 = ju("DISK", true), $ = ju("MEMORY", true), F2 = ju("GENERATED", true), j = ju("ALWAYS", true), H2 = ju("AS", true), Y = ju("STORED", true), B = ju("VIRTUAL", true), W = ju("first", true), X2 = ju("after", true), q2 = ju("FOREIGN", true), V2 = ju("CHANGE", true), K = ju("ALGORITHM", true), z = ju("INSTANT", true), Z = ju("INPLACE", true), Q = ju("COPY", true), J = ju("LOCK", true), rr = ju("NONE", true), tr = ju("SHARED", true), er = ju("EXCLUSIVE", true), nr = ju("NOT", true), sr = ju("REPLICATION", true), ur = ju("FOREIGN KEY", true), or = ju("ENFORCED", true), ar = ju("MATCH FULL", true), ir = ju("MATCH PARTIAL", true), lr = ju("MATCH SIMPLE", true), cr = ju("RESTRICT", true), fr = ju("CASCADE", true), br = ju("SET NULL", true), vr = ju("NO ACTION", true), Lr = ju("SET DEFAULT", true), Cr = ju("CHARACTER", true), pr = ju("SET", true), dr = ju("CHARSET", true), wr = ju("COLLATE", true), yr = ju("AVG_ROW_LENGTH", true), Er = ju("KEY_BLOCK_SIZE", true), hr = ju("MAX_ROWS", true), Ar = ju("MIN_ROWS", true), mr = ju("STATS_SAMPLE_PAGES", true), Tr = ju("CONNECTION", true), Rr = ju("COMPRESSION", true), Ir = ju("'", false), Nr = ju("ZLIB", true), _r = ju("LZ4", true), gr = ju("ENGINE", true), Sr = ju("WITHOUT", true), Or = ju("ROWID", true), xr = ju("STRICT", true), Ur = ju("READ", true), kr = ju("LOW_PRIORITY", true), Mr = ju("WRITE", true), Dr = function(r3, t3) {
|
|
39863
39883
|
return Ql(r3, t3);
|
|
39864
39884
|
}, Pr = ju("BINARY", true), Gr = ju("MASTER", true), $r = ju("LOGS", true), Fr = ju("BINLOG", true), jr = ju("EVENTS", true), Hr = ju("COLLATION", true), Yr = ju("GRANTS", true), Br = ju("(", false), Wr = ju(")", false), Xr = ju("BTREE", true), qr = ju("HASH", true), Vr = ju("WITH", true), Kr = ju("PARSER", true), zr = ju("VISIBLE", true), Zr = ju("INVISIBLE", true), Qr = function(r3, t3) {
|
|
39865
39885
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
@@ -40409,7 +40429,7 @@ function requireNodeSqlParser() {
|
|
|
40409
40429
|
var t4, e4, n3, s3, o3, a2, i3, l2;
|
|
40410
40430
|
t4 = Mu, e4 = Mu, (n3 = (function() {
|
|
40411
40431
|
var t5, e5, n4, s4, o4;
|
|
40412
|
-
t5 = Mu, e5 = Mu, "generated" === r2.substr(Mu, 9).toLowerCase() ? (n4 = r2.substr(Mu, 9), Mu += 9) : (n4 = u, 0 === Fu && Wu(
|
|
40432
|
+
t5 = Mu, e5 = Mu, "generated" === r2.substr(Mu, 9).toLowerCase() ? (n4 = r2.substr(Mu, 9), Mu += 9) : (n4 = u, 0 === Fu && Wu(F2));
|
|
40413
40433
|
n4 !== u && (s4 = Nl()) !== u ? ("always" === r2.substr(Mu, 6).toLowerCase() ? (o4 = r2.substr(Mu, 6), Mu += 6) : (o4 = u, 0 === Fu && Wu(j)), o4 !== u ? e5 = n4 = [n4, s4, o4] : (Mu = e5, e5 = u)) : (Mu = e5, e5 = u);
|
|
40414
40434
|
e5 !== u && (Du = t5, e5 = e5.join("").toLowerCase());
|
|
40415
40435
|
return t5 = e5;
|
|
@@ -42473,7 +42493,7 @@ function requireNodeSqlParser() {
|
|
|
42473
42493
|
return vb(r3, t3, 1);
|
|
42474
42494
|
}, v = pa("IF", true), L2 = function(r3, t3) {
|
|
42475
42495
|
return vb(r3, t3);
|
|
42476
|
-
}, C = pa("UNIQUE", true), p2 = pa("KEY", true), d = pa("PRIMARY", true), w2 = pa("IDENTITY", true), y = pa("COLUMN_FORMAT", true), E = pa("FIXED", true), h2 = pa("DYNAMIC", true), A = pa("DEFAULT", true), m = pa("STORAGE", true), T = pa("DISK", true), R2 = pa("MEMORY", true), I = pa("CURSOR", true), N2 = pa("EXECUTE", true), _ = pa("EXEC", true), g = pa("@", false), S = pa("if", true), O = pa("exists", true), x = pa("PROCEDURE", true), U2 = pa("ENCRYPTION", true), k = pa("SCHEMABINDING", true), M2 = pa("VIEW_METADATA", true), D = pa("CHECK", true), P2 = pa("OPTION", true), G2 = pa("ALGORITHM", true), $ = pa("INSTANT", true),
|
|
42496
|
+
}, C = pa("UNIQUE", true), p2 = pa("KEY", true), d = pa("PRIMARY", true), w2 = pa("IDENTITY", true), y = pa("COLUMN_FORMAT", true), E = pa("FIXED", true), h2 = pa("DYNAMIC", true), A = pa("DEFAULT", true), m = pa("STORAGE", true), T = pa("DISK", true), R2 = pa("MEMORY", true), I = pa("CURSOR", true), N2 = pa("EXECUTE", true), _ = pa("EXEC", true), g = pa("@", false), S = pa("if", true), O = pa("exists", true), x = pa("PROCEDURE", true), U2 = pa("ENCRYPTION", true), k = pa("SCHEMABINDING", true), M2 = pa("VIEW_METADATA", true), D = pa("CHECK", true), P2 = pa("OPTION", true), G2 = pa("ALGORITHM", true), $ = pa("INSTANT", true), F2 = pa("INPLACE", true), j = pa("COPY", true), H2 = pa("LOCK", true), Y = pa("NONE", true), B = pa("SHARED", true), W = pa("EXCLUSIVE", true), X2 = pa("NOCHECK", true), q2 = pa("PRIMARY KEY", true), V2 = pa("NOT", true), K = pa("FOR", true), z = pa("REPLICATION", true), Z = pa("FOREIGN KEY", true), Q = pa("MATCH FULL", true), J = pa("MATCH PARTIAL", true), rr = pa("MATCH SIMPLE", true), tr = pa("RESTRICT", true), er = pa("CASCADE", true), nr = pa("SET NULL", true), sr = pa("NO ACTION", true), ur = pa("SET DEFAULT", true), or = pa("CHARACTER", true), ar = pa("SET", true), ir = pa("CHARSET", true), lr = pa("COLLATE", true), cr = pa("AUTO_INCREMENT", true), fr = pa("AVG_ROW_LENGTH", true), br = pa("KEY_BLOCK_SIZE", true), vr = pa("MAX_ROWS", true), Lr = pa("MIN_ROWS", true), Cr = pa("STATS_SAMPLE_PAGES", true), pr = pa("CONNECTION", true), dr = pa("COMPRESSION", true), wr = pa("'", false), yr = pa("ZLIB", true), Er = pa("LZ4", true), hr = pa("ENGINE", true), Ar = pa("TEXTIMAGE_ON", true), mr = pa("result", true), Tr = pa("caching", true), Rr = pa("statistics", true), Ir = pa("io", true), Nr = pa("xml", true), _r = pa("profile", true), gr = pa("time", true), Sr = pa("datefirst", true), Or = pa("dateformat", true), xr = pa("deadlock_priority", true), Ur = pa("lock_timeout", true), kr = pa("concat_null_yields_null", true), Mr = pa("cursor_close_on_commit", true), Dr = pa("fips_flagger", true), Pr = pa("identity_insert", true), Gr = pa("language", true), $r = pa("offsets", true), Fr = pa("quoted_identifier", true), jr = pa("arithabort", true), Hr = pa("arithignore", true), Yr = pa("fmtonly", true), Br = pa("nocount", true), Wr = pa("noexec", true), Xr = pa("numberic_roundabort", true), qr = pa("parseonly", true), Vr = pa("query_governor_cost_limit", true), Kr = pa("rowcount", true), zr = pa("textsize", true), Zr = pa("ansi_defaults", true), Qr = pa("ansi_null_dflt_off", true), Jr = pa("ansi_null_dflt_on", true), rt = pa("ansi_nulls", true), tt = pa("ansi_padding", true), et = pa("ansi_warnings", true), nt = pa("forceplan", true), st = pa("showplan_all", true), ut = pa("showplan_text", true), ot = pa("showplan_xml", true), at = pa("implicit_transactions", true), it = pa("remote_proc_transactions", true), lt2 = pa("xact_abort", true), ct = function(r3) {
|
|
42477
42497
|
return { type: "origin", value: r3.toLowerCase() };
|
|
42478
42498
|
}, ft = pa("read", true), bt = pa("uncommitted", true), vt = pa("committed", true), Lt = pa("REPEATABLE", true), Ct = pa("snapshot", true), pt = pa("serializable", true), dt = pa("transaction", true), wt = pa("isolation", true), yt = pa("level", true), Et = pa("READ", true), ht = pa("LOCAL", true), At = pa("LOW_PRIORITY", true), mt = pa("WRITE", true), Tt = function(r3, t3) {
|
|
42479
42499
|
return vb(r3, t3);
|
|
@@ -43088,7 +43108,7 @@ function requireNodeSqlParser() {
|
|
|
43088
43108
|
}
|
|
43089
43109
|
function ja() {
|
|
43090
43110
|
var t3, e3, n2, s2;
|
|
43091
|
-
return t3 = ca, "algorithm" === r2.substr(ca, 9).toLowerCase() ? (e3 = r2.substr(ca, 9), ca += 9) : (e3 = u, 0 === Ca && Ea(G2)), e3 !== u && Hf() !== u ? ((n2 = mf()) === u && (n2 = null), n2 !== u && Hf() !== u ? ("default" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea(A)), s2 === u && ("instant" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea($)), s2 === u && ("inplace" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea(
|
|
43111
|
+
return t3 = ca, "algorithm" === r2.substr(ca, 9).toLowerCase() ? (e3 = r2.substr(ca, 9), ca += 9) : (e3 = u, 0 === Ca && Ea(G2)), e3 !== u && Hf() !== u ? ((n2 = mf()) === u && (n2 = null), n2 !== u && Hf() !== u ? ("default" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea(A)), s2 === u && ("instant" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea($)), s2 === u && ("inplace" === r2.substr(ca, 7).toLowerCase() ? (s2 = r2.substr(ca, 7), ca += 7) : (s2 = u, 0 === Ca && Ea(F2)), s2 === u && ("copy" === r2.substr(ca, 4).toLowerCase() ? (s2 = r2.substr(ca, 4), ca += 4) : (s2 = u, 0 === Ca && Ea(j))))), s2 !== u ? (fa = t3, t3 = e3 = { type: "alter", keyword: "algorithm", resource: "algorithm", symbol: n2, algorithm: s2 }) : (ca = t3, t3 = u)) : (ca = t3, t3 = u)) : (ca = t3, t3 = u), t3;
|
|
43092
43112
|
}
|
|
43093
43113
|
function Ha() {
|
|
43094
43114
|
var t3, e3, n2, s2;
|
|
@@ -45242,7 +45262,7 @@ function requireNodeSqlParser() {
|
|
|
45242
45262
|
t2 = void 0 !== t2 ? t2 : {};
|
|
45243
45263
|
var e2, u = {}, o = { start: Za }, a = Za, i2 = Wa("IF", true), l = Wa("EXTENSION", true), c2 = Wa("SCHEMA", true), f2 = Wa("VERSION", true), b = Wa("CASCADED", true), v = Wa("LOCAL", true), L2 = Wa("CHECK", true), C = Wa("OPTION", false), p2 = Wa("check_option", true), d = Wa("security_barrier", true), w2 = Wa("security_invoker", true), y = Wa("TYPE", true), E = Wa("DOMAIN", true), h2 = Wa("INCREMENT", true), A = Wa("MINVALUE", true), m = function(r3, t3) {
|
|
45244
45264
|
return { resource: "sequence", prefix: r3.toLowerCase(), value: t3 };
|
|
45245
|
-
}, T = Wa("NO", true), R2 = Wa("MAXVALUE", true), I = Wa("START", true), N2 = Wa("CACHE", true), _ = Wa("CYCLE", true), g = Wa("OWNED", true), S = Wa("NONE", true), O = Wa("NULLS", true), x = Wa("FIRST", true), U2 = Wa("LAST", true), k = Wa("AUTO_INCREMENT", true), M2 = Wa("UNIQUE", true), D = Wa("KEY", true), P2 = Wa("PRIMARY", true), G2 = Wa("COLUMN_FORMAT", true), $ = Wa("FIXED", true),
|
|
45265
|
+
}, T = Wa("NO", true), R2 = Wa("MAXVALUE", true), I = Wa("START", true), N2 = Wa("CACHE", true), _ = Wa("CYCLE", true), g = Wa("OWNED", true), S = Wa("NONE", true), O = Wa("NULLS", true), x = Wa("FIRST", true), U2 = Wa("LAST", true), k = Wa("AUTO_INCREMENT", true), M2 = Wa("UNIQUE", true), D = Wa("KEY", true), P2 = Wa("PRIMARY", true), G2 = Wa("COLUMN_FORMAT", true), $ = Wa("FIXED", true), F2 = Wa("DYNAMIC", true), j = Wa("DEFAULT", true), H2 = Wa("STORAGE", true), Y = Wa("DISK", true), B = Wa("MEMORY", true), W = Wa("CASCADE", true), X2 = Wa("RESTRICT", true), q2 = Wa("OUT", true), V2 = Wa("VARIADIC", true), K = Wa("INOUT", true), z = Wa("AGGREGATE", true), Z = Wa("FUNCTION", true), Q = Wa("OWNER", true), J = Wa("CURRENT_ROLE", true), rr = Wa("CURRENT_USER", true), tr = Wa("SESSION_USER", true), er = Wa("ALGORITHM", true), nr = Wa("INSTANT", true), sr = Wa("INPLACE", true), ur = Wa("COPY", true), or = Wa("LOCK", true), ar = Wa("SHARED", true), ir = Wa("EXCLUSIVE", true), lr = Wa("PRIMARY KEY", true), cr = Wa("FOREIGN KEY", true), fr = Wa("MATCH FULL", true), br = Wa("MATCH PARTIAL", true), vr = Wa("MATCH SIMPLE", true), Lr = Wa("SET NULL", true), Cr = Wa("NO ACTION", true), pr = Wa("SET DEFAULT", true), dr = Wa("TRIGGER", true), wr = Wa("BEFORE", true), yr = Wa("AFTER", true), Er = Wa("INSTEAD OF", true), hr = Wa("ON", true), Ar = Wa("EXECUTE", true), mr = Wa("PROCEDURE", true), Tr = Wa("OF", true), Rr = Wa("NOT", true), Ir = Wa("DEFERRABLE", true), Nr = Wa("INITIALLY IMMEDIATE", true), _r = Wa("INITIALLY DEFERRED", true), gr = Wa("FOR", true), Sr = Wa("EACH", true), Or = Wa("ROW", true), xr = Wa("STATEMENT", true), Ur = Wa("CHARACTER", true), kr = Wa("SET", true), Mr = Wa("CHARSET", true), Dr = Wa("COLLATE", true), Pr = Wa("AVG_ROW_LENGTH", true), Gr = Wa("KEY_BLOCK_SIZE", true), $r = Wa("MAX_ROWS", true), Fr = Wa("MIN_ROWS", true), jr = Wa("STATS_SAMPLE_PAGES", true), Hr = Wa("CONNECTION", true), Yr = Wa("COMPRESSION", true), Br = Wa("'", false), Wr = Wa("ZLIB", true), Xr = Wa("LZ4", true), qr = Wa("ENGINE", true), Vr = Wa("IN", true), Kr = Wa("ACCESS SHARE", true), zr = Wa("ROW SHARE", true), Zr = Wa("ROW EXCLUSIVE", true), Qr = Wa("SHARE UPDATE EXCLUSIVE", true), Jr = Wa("SHARE ROW EXCLUSIVE", true), rt = Wa("ACCESS EXCLUSIVE", true), tt = Wa("SHARE", true), et = Wa("MODE", true), nt = Wa("NOWAIT", true), st = Wa("TABLES", true), ut = Wa("PREPARE", true), ot = Wa(";", false), at = Wa("(", false), it = Wa(")", false), lt2 = Wa("PERCENT", true), ct = Wa("exclude", true), ft = Wa("OUTFILE", true), bt = Wa("DUMPFILE", true), vt = Wa("BTREE", true), Lt = Wa("HASH", true), Ct = Wa("GIST", true), pt = Wa("GIN", true), dt = Wa("WITH", true), wt = Wa("PARSER", true), yt = Wa("VISIBLE", true), Et = Wa("INVISIBLE", true), ht = function(r3, t3) {
|
|
45246
45266
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
45247
45267
|
const { table: t4, as: e3 } = r4;
|
|
45248
45268
|
Wv[t4] = t4, e3 && (Wv[e3] = t4), (function(r5) {
|
|
@@ -45810,7 +45830,7 @@ function requireNodeSqlParser() {
|
|
|
45810
45830
|
})(e3)) : ($a = t3, t3 = u)) : ($a = t3, t3 = u), t3 === u && (t3 = $a, (e3 = cv()) !== u && (Fa = t3, e3 = { comment: e3 }), (t3 = e3) === u && (t3 = $a, (e3 = li()) !== u && (Fa = t3, e3 = { collate: e3 }), (t3 = e3) === u && (t3 = $a, (e3 = (function() {
|
|
45811
45831
|
var t4, e4, n3;
|
|
45812
45832
|
t4 = $a, "column_format" === r2.substr($a, 13).toLowerCase() ? (e4 = r2.substr($a, 13), $a += 13) : (e4 = u, 0 === Ba && Ka(G2));
|
|
45813
|
-
e4 !== u && av() !== u ? ("fixed" === r2.substr($a, 5).toLowerCase() ? (n3 = r2.substr($a, 5), $a += 5) : (n3 = u, 0 === Ba && Ka($)), n3 === u && ("dynamic" === r2.substr($a, 7).toLowerCase() ? (n3 = r2.substr($a, 7), $a += 7) : (n3 = u, 0 === Ba && Ka(
|
|
45833
|
+
e4 !== u && av() !== u ? ("fixed" === r2.substr($a, 5).toLowerCase() ? (n3 = r2.substr($a, 5), $a += 5) : (n3 = u, 0 === Ba && Ka($)), n3 === u && ("dynamic" === r2.substr($a, 7).toLowerCase() ? (n3 = r2.substr($a, 7), $a += 7) : (n3 = u, 0 === Ba && Ka(F2)), n3 === u && ("default" === r2.substr($a, 7).toLowerCase() ? (n3 = r2.substr($a, 7), $a += 7) : (n3 = u, 0 === Ba && Ka(j)))), n3 !== u ? (Fa = t4, e4 = { type: "column_format", value: n3.toLowerCase() }, t4 = e4) : ($a = t4, t4 = u)) : ($a = t4, t4 = u);
|
|
45814
45834
|
return t4;
|
|
45815
45835
|
})()) !== u && (Fa = t3, e3 = { column_format: e3 }), (t3 = e3) === u && (t3 = $a, (e3 = (function() {
|
|
45816
45836
|
var t4, e4, n3;
|
|
@@ -48539,7 +48559,7 @@ function requireNodeSqlParser() {
|
|
|
48539
48559
|
t2 = void 0 !== t2 ? t2 : {};
|
|
48540
48560
|
var e2, u = {}, o = { start: Ta }, a = Ta, i2 = wa("IF", true), l = wa("EXTENSION", true), c2 = wa("SCHEMA", true), f2 = wa("VERSION", true), b = wa("CASCADED", true), v = wa("LOCAL", true), L2 = wa("CHECK", true), C = wa("OPTION", false), p2 = wa("check_option", true), d = wa("security_barrier", true), w2 = wa("security_invoker", true), y = wa("TYPE", true), E = wa("DOMAIN", true), h2 = wa("INCREMENT", true), A = wa("MINVALUE", true), m = function(r3, t3) {
|
|
48541
48561
|
return { resource: "sequence", prefix: r3.toLowerCase(), value: t3 };
|
|
48542
|
-
}, T = wa("NO", true), R2 = wa("MAXVALUE", true), I = wa("START", true), N2 = wa("CACHE", true), _ = wa("CYCLE", true), g = wa("OWNED", true), S = wa("NONE", true), O = wa("NULLS", true), x = wa("FIRST", true), U2 = wa("LAST", true), k = wa("AUTO_INCREMENT", true), M2 = wa("UNIQUE", true), D = wa("KEY", true), P2 = wa("PRIMARY", true), G2 = wa("COLUMN_FORMAT", true), $ = wa("FIXED", true),
|
|
48562
|
+
}, T = wa("NO", true), R2 = wa("MAXVALUE", true), I = wa("START", true), N2 = wa("CACHE", true), _ = wa("CYCLE", true), g = wa("OWNED", true), S = wa("NONE", true), O = wa("NULLS", true), x = wa("FIRST", true), U2 = wa("LAST", true), k = wa("AUTO_INCREMENT", true), M2 = wa("UNIQUE", true), D = wa("KEY", true), P2 = wa("PRIMARY", true), G2 = wa("COLUMN_FORMAT", true), $ = wa("FIXED", true), F2 = wa("DYNAMIC", true), j = wa("DEFAULT", true), H2 = wa("STORAGE", true), Y = wa("DISK", true), B = wa("MEMORY", true), W = wa("CASCADE", true), X2 = wa("RESTRICT", true), q2 = wa("OUT", true), V2 = wa("VARIADIC", true), K = wa("INOUT", true), z = wa("AGGREGATE", true), Z = wa("FUNCTION", true), Q = wa("OWNER", true), J = wa("CURRENT_ROLE", true), rr = wa("CURRENT_USER", true), tr = wa("SESSION_USER", true), er = wa("ALGORITHM", true), nr = wa("INSTANT", true), sr = wa("INPLACE", true), ur = wa("COPY", true), or = wa("LOCK", true), ar = wa("SHARED", true), ir = wa("EXCLUSIVE", true), lr = wa("PRIMARY KEY", true), cr = wa("FOREIGN KEY", true), fr = wa("MATCH FULL", true), br = wa("MATCH PARTIAL", true), vr = wa("MATCH SIMPLE", true), Lr = wa("SET NULL", true), Cr = wa("NO ACTION", true), pr = wa("SET DEFAULT", true), dr = wa("TRIGGER", true), wr = wa("BEFORE", true), yr = wa("AFTER", true), Er = wa("INSTEAD OF", true), hr = wa("ON", true), Ar = wa("EXECUTE", true), mr = wa("PROCEDURE", true), Tr = wa("OF", true), Rr = wa("NOT", true), Ir = wa("DEFERRABLE", true), Nr = wa("INITIALLY IMMEDIATE", true), _r = wa("INITIALLY DEFERRED", true), gr = wa("FOR", true), Sr = wa("EACH", true), Or = wa("ROW", true), xr = wa("STATEMENT", true), Ur = wa("CHARACTER", true), kr = wa("SET", true), Mr = wa("CHARSET", true), Dr = wa("COLLATE", true), Pr = wa("AVG_ROW_LENGTH", true), Gr = wa("KEY_BLOCK_SIZE", true), $r = wa("MAX_ROWS", true), Fr = wa("MIN_ROWS", true), jr = wa("STATS_SAMPLE_PAGES", true), Hr = wa("CONNECTION", true), Yr = wa("COMPRESSION", true), Br = wa("'", false), Wr = wa("ZLIB", true), Xr = wa("LZ4", true), qr = wa("ENGINE", true), Vr = wa("IN", true), Kr = wa("ACCESS SHARE", true), zr = wa("ROW SHARE", true), Zr = wa("ROW EXCLUSIVE", true), Qr = wa("SHARE UPDATE EXCLUSIVE", true), Jr = wa("SHARE ROW EXCLUSIVE", true), rt = wa("ACCESS EXCLUSIVE", true), tt = wa("SHARE", true), et = wa("MODE", true), nt = wa("NOWAIT", true), st = wa("TABLES", true), ut = wa("PREPARE", true), ot = wa(";", false), at = wa("(", false), it = wa(")", false), lt2 = function(r3, t3) {
|
|
48543
48563
|
return { with: r3, ...t3 };
|
|
48544
48564
|
}, ct = wa("OUTFILE", true), ft = wa("DUMPFILE", true), bt = wa("BTREE", true), vt = wa("HASH", true), Lt = wa("GIST", true), Ct = wa("GIN", true), pt = wa("WITH", true), dt = wa("PARSER", true), wt = wa("VISIBLE", true), yt = wa("INVISIBLE", true), Et = function(r3, t3) {
|
|
48545
48565
|
return t3.unshift(r3), t3.forEach((r4) => {
|
|
@@ -49119,7 +49139,7 @@ function requireNodeSqlParser() {
|
|
|
49119
49139
|
})(e3)) : (ba = t3, t3 = u)) : (ba = t3, t3 = u), t3 === u && (t3 = ba, (e3 = Tb()) !== u && (va = t3, e3 = { comment: e3 }), (t3 = e3) === u && (t3 = ba, (e3 = Da()) !== u && (va = t3, e3 = { collate: e3 }), (t3 = e3) === u && (t3 = ba, (e3 = (function() {
|
|
49120
49140
|
var t4, e4, n3;
|
|
49121
49141
|
t4 = ba, "column_format" === r2.substr(ba, 13).toLowerCase() ? (e4 = r2.substr(ba, 13), ba += 13) : (e4 = u, 0 === da && Aa(G2));
|
|
49122
|
-
e4 !== u && hb() !== u ? ("fixed" === r2.substr(ba, 5).toLowerCase() ? (n3 = r2.substr(ba, 5), ba += 5) : (n3 = u, 0 === da && Aa($)), n3 === u && ("dynamic" === r2.substr(ba, 7).toLowerCase() ? (n3 = r2.substr(ba, 7), ba += 7) : (n3 = u, 0 === da && Aa(
|
|
49142
|
+
e4 !== u && hb() !== u ? ("fixed" === r2.substr(ba, 5).toLowerCase() ? (n3 = r2.substr(ba, 5), ba += 5) : (n3 = u, 0 === da && Aa($)), n3 === u && ("dynamic" === r2.substr(ba, 7).toLowerCase() ? (n3 = r2.substr(ba, 7), ba += 7) : (n3 = u, 0 === da && Aa(F2)), n3 === u && ("default" === r2.substr(ba, 7).toLowerCase() ? (n3 = r2.substr(ba, 7), ba += 7) : (n3 = u, 0 === da && Aa(j)))), n3 !== u ? (va = t4, e4 = { type: "column_format", value: n3.toLowerCase() }, t4 = e4) : (ba = t4, t4 = u)) : (ba = t4, t4 = u);
|
|
49123
49143
|
return t4;
|
|
49124
49144
|
})()) !== u && (va = t3, e3 = { column_format: e3 }), (t3 = e3) === u && (t3 = ba, (e3 = (function() {
|
|
49125
49145
|
var t4, e4, n3;
|
|
@@ -52065,7 +52085,7 @@ function requireNodeSqlParser() {
|
|
|
52065
52085
|
var t2 = r2.keyword, e2 = r2.expr;
|
|
52066
52086
|
return [d(t2), y(e2)].filter(w2).join(" ");
|
|
52067
52087
|
}
|
|
52068
|
-
function
|
|
52088
|
+
function F2(r2) {
|
|
52069
52089
|
return (function(r3) {
|
|
52070
52090
|
if (Array.isArray(r3)) return j(r3);
|
|
52071
52091
|
})(r2) || (function(r3) {
|
|
@@ -52089,7 +52109,7 @@ function requireNodeSqlParser() {
|
|
|
52089
52109
|
return r2 ? [r2.prefix.map(y).join(" "), ct(r2.value), r2.suffix.map(y).join(" ")] : [];
|
|
52090
52110
|
}
|
|
52091
52111
|
function Y(r2) {
|
|
52092
|
-
return r2 ? r2.fetch || r2.offset ? (e2 = (t2 = r2).fetch, n2 = t2.offset, [].concat(
|
|
52112
|
+
return r2 ? r2.fetch || r2.offset ? (e2 = (t2 = r2).fetch, n2 = t2.offset, [].concat(F2(H2(n2)), F2(H2(e2))).filter(w2).join(" ")) : (function(r3) {
|
|
52093
52113
|
var t3 = r3.seperator, e3 = r3.value;
|
|
52094
52114
|
return 1 === e3.length && "offset" === t3 ? i2("OFFSET", ct(e3[0])) : i2("LIMIT", e3.map(ct).join("".concat("offset" === t3 ? " " : "").concat(d(t3), " ")));
|
|
52095
52115
|
})(r2) : "";
|
|
@@ -53749,9 +53769,9 @@ const safeParseSQL2Fields = (templateSQL) => {
|
|
|
53749
53769
|
const parser = new nodeSqlParserExports.Parser();
|
|
53750
53770
|
const safeSQL = replacePlaceholders(templateSQL);
|
|
53751
53771
|
const info = parser.parse(safeSQL);
|
|
53752
|
-
const
|
|
53753
|
-
console.log("fields",
|
|
53754
|
-
return
|
|
53772
|
+
const fields2 = extractSelectFields(info.ast);
|
|
53773
|
+
console.log("fields", fields2);
|
|
53774
|
+
return fields2;
|
|
53755
53775
|
} catch (err) {
|
|
53756
53776
|
console.error("SQL 解析失败:", err.message);
|
|
53757
53777
|
return [];
|
|
@@ -56052,7 +56072,7 @@ function getCommonFields(items) {
|
|
|
56052
56072
|
}
|
|
56053
56073
|
function initSubTable2dChildList(key, initRowLen) {
|
|
56054
56074
|
return {
|
|
56055
|
-
group_: `${key}${uuid2(16)}`,
|
|
56075
|
+
group_: `${key}${uuid2$1(16)}`,
|
|
56056
56076
|
// 二维表
|
|
56057
56077
|
_2DTABLE_: Array.from({ length: initRowLen }, (_, index2) => ({
|
|
56058
56078
|
...cloneDeep(DEFAULT_FROM_STATE)
|
|
@@ -56193,7 +56213,7 @@ const transformUtils = {
|
|
|
56193
56213
|
if (sInfo.subTable2d && sInfo.key === "dyn" || sInfo.checkTable2d && sInfo.key === "newfixed") {
|
|
56194
56214
|
const emptyList = Array.from({ length: sInfo.childInitRowLen });
|
|
56195
56215
|
fieldList2d = fieldList.map((fInfo) => {
|
|
56196
|
-
const group_ = `${sInfo.key}${uuid2(16)}`;
|
|
56216
|
+
const group_ = `${sInfo.key}${uuid2$1(16)}`;
|
|
56197
56217
|
return emptyList.map((_) => {
|
|
56198
56218
|
return {
|
|
56199
56219
|
...fInfo,
|
|
@@ -56334,7 +56354,7 @@ const transformUtils = {
|
|
|
56334
56354
|
const is2DTable = subInfo.subTable2d && subInfo.key === "dyn";
|
|
56335
56355
|
const isCheckTable = subInfo.checkTable2d && subInfo.key === "newfixed";
|
|
56336
56356
|
const init_table_data = Array.from({ length: subInfo.initRowLen }, (_, index2) => {
|
|
56337
|
-
const groupKey = `${subInfo.key}${uuid2(16)}`;
|
|
56357
|
+
const groupKey = `${subInfo.key}${uuid2$1(16)}`;
|
|
56338
56358
|
const baseData = cloneDeep(DEFAULT_FROM_STATE);
|
|
56339
56359
|
if (is2DTable || isCheckTable) {
|
|
56340
56360
|
const extraData = is2DTable ? { ...omit(subDefaultData, subInfo.crossFieldKeys) } : subInfo.checkDsData?.[index2] ?? {};
|
|
@@ -56396,7 +56416,7 @@ const transformUtils = {
|
|
|
56396
56416
|
if (is2DTable) {
|
|
56397
56417
|
const emptyList = Array.from({ length: childInitRowLen });
|
|
56398
56418
|
data2d = data.map((fInfo) => {
|
|
56399
|
-
const group_ = `${tableKey}${uuid2(16)}`;
|
|
56419
|
+
const group_ = `${tableKey}${uuid2$1(16)}`;
|
|
56400
56420
|
return emptyList.map((_) => {
|
|
56401
56421
|
return {
|
|
56402
56422
|
...fInfo,
|
|
@@ -56537,7 +56557,7 @@ const transformUtils = {
|
|
|
56537
56557
|
if (sInfo.subTable2d && sInfo.key === "dyn" || sInfo.checkTable2d && sInfo.key === "newfixed") {
|
|
56538
56558
|
const emptyList = Array.from({ length: sInfo.childInitRowLen });
|
|
56539
56559
|
fieldList2d = fieldList.map((fInfo) => {
|
|
56540
|
-
const group_ = `${sInfo.key}${uuid2(16)}`;
|
|
56560
|
+
const group_ = `${sInfo.key}${uuid2$1(16)}`;
|
|
56541
56561
|
return emptyList.map((_) => {
|
|
56542
56562
|
return {
|
|
56543
56563
|
...fInfo,
|
|
@@ -56724,7 +56744,7 @@ const transformUtils = {
|
|
|
56724
56744
|
const baseData = cloneDeep(DEFAULT_FROM_STATE);
|
|
56725
56745
|
const rowData = { ...baseData };
|
|
56726
56746
|
if (payload.isRowSubTable2d) {
|
|
56727
|
-
const groupKey = `dyn${uuid2(16)}`;
|
|
56747
|
+
const groupKey = `dyn${uuid2$1(16)}`;
|
|
56728
56748
|
const _2DTABLE_ = Array.from({ length: payload.childInitRowLen }, () => {
|
|
56729
56749
|
const child = {
|
|
56730
56750
|
...baseData,
|
|
@@ -57297,9 +57317,9 @@ async function getMaterialLotList({ queryData = {}, pageNo = 1, pageSize = 20 }
|
|
|
57297
57317
|
}
|
|
57298
57318
|
const processWidgets = async (dataCenter, callback, tdCallback) => {
|
|
57299
57319
|
const DEFAULT_ATTRS = { fieldAttr: "field", modelAttr: "modelKey", needDyn: true };
|
|
57300
|
-
const processRefFields = async (
|
|
57301
|
-
if (!
|
|
57302
|
-
for (const field of
|
|
57320
|
+
const processRefFields = async (fields2, key, tdWidget) => {
|
|
57321
|
+
if (!fields2 || !fields2.length) return;
|
|
57322
|
+
for (const field of fields2) {
|
|
57303
57323
|
await callback(field.props, { ...DEFAULT_ATTRS, isRef: true, key }, tdWidget);
|
|
57304
57324
|
}
|
|
57305
57325
|
};
|
|
@@ -57581,13 +57601,13 @@ const renderUtils = {
|
|
|
57581
57601
|
FIELD_TYPE.WAREHOUSE_RECEIPT_DATE
|
|
57582
57602
|
].includes(fieldType) && defaultSysDate || [FIELD_TYPE.USER, FIELD_TYPE.USER_MULTI].includes(fieldType) && defaultValue === FieldSysVarDefaultValueEnum.CURRENT_USER || [FIELD_TYPE.ORG, FIELD_TYPE.ORG_MULTI].includes(fieldType) && defaultValue === FieldSysVarDefaultValueEnum.CURRENT_ORG || ([
|
|
57583
57603
|
FIELD_TYPE.MATERIAL_NO,
|
|
57584
|
-
FIELD_TYPE.
|
|
57585
|
-
FIELD_TYPE.
|
|
57604
|
+
FIELD_TYPE.STERILIZATION_CONTAINER,
|
|
57605
|
+
FIELD_TYPE.MATERIAL_CONTAINER,
|
|
57586
57606
|
FIELD_TYPE.RELATED_LOT_NO,
|
|
57587
57607
|
FIELD_TYPE.PRODUCT,
|
|
57588
57608
|
FIELD_TYPE.ROUTING_OPERATION,
|
|
57589
57609
|
FIELD_TYPE.MFG_ORDER
|
|
57590
|
-
].includes(fieldType) || [FIELD_TYPE.E_SOP, FIELD_TYPE.E_SOP_VERSION].includes(bizType)) && !subFieldKey && !subModelKey || bizType === FIELD_TYPE.WAREHOUSE || bizType === FIELD_TYPE.PRODUCTION_QTY || !isNil(defaultValue) && defaultValue !== "";
|
|
57610
|
+
].includes(fieldType) || [FIELD_TYPE.E_SOP, FIELD_TYPE.E_SOP_VERSION].includes(bizType)) && !subFieldKey && !subModelKey || bizType === FIELD_TYPE.WAREHOUSE || bizType === FIELD_TYPE.PRODUCTION_CONTAINER || bizType === FIELD_TYPE.PRODUCTION_QTY || !isNil(defaultValue) && defaultValue !== "";
|
|
57591
57611
|
if (shouldPushDefaultValueField && !useDefaultValueFields[key]) {
|
|
57592
57612
|
useDefaultValueFields[key] = {
|
|
57593
57613
|
fieldId,
|
|
@@ -57780,7 +57800,7 @@ const renderUtils = {
|
|
|
57780
57800
|
field.newSpecificConfig.newModelName = modelMap?.[key]?.name;
|
|
57781
57801
|
field.newSpecificConfig.mappingType = fieldInfo?.mappingType;
|
|
57782
57802
|
const defaultQuery = {};
|
|
57783
|
-
if (field.field === "warehouse_id_" || field.field === "location_id_" || field.bizType === FIELD_TYPE.LOCATION || field.bizType === FIELD_TYPE.WAREHOUSE || field.bizType === FIELD_TYPE.SHOPFLOOR) {
|
|
57803
|
+
if (field.field === "warehouse_id_" || field.field === "location_id_" || field.field === "storage_zone_id_" || field.bizType === FIELD_TYPE.LOCATION || field.bizType === FIELD_TYPE.WAREHOUSE || field.bizType === FIELD_TYPE.SHOPFLOOR) {
|
|
57784
57804
|
defaultQuery.operating_state_ = true;
|
|
57785
57805
|
}
|
|
57786
57806
|
const setOptions = async () => {
|
|
@@ -57872,7 +57892,7 @@ const renderUtils = {
|
|
|
57872
57892
|
case FIELD_TYPE.SCRAP_MATERIAL_NO:
|
|
57873
57893
|
case FIELD_TYPE.MATERIAL_NO:
|
|
57874
57894
|
case FIELD_TYPE.RELATED_LOT_NO:
|
|
57875
|
-
if (bizType === FIELD_TYPE.
|
|
57895
|
+
if (bizType === FIELD_TYPE.STERILIZATION_CONTAINER || bizType === FIELD_TYPE.MATERIAL_CONTAINER) {
|
|
57876
57896
|
return {
|
|
57877
57897
|
options: []
|
|
57878
57898
|
};
|
|
@@ -57898,8 +57918,8 @@ const renderUtils = {
|
|
|
57898
57918
|
operating_state_: true
|
|
57899
57919
|
} : {}
|
|
57900
57920
|
},
|
|
57901
|
-
//
|
|
57902
|
-
needDataLink: field.field === "location_id_",
|
|
57921
|
+
// 库区 / 库位需数据联动,初始化不要加载
|
|
57922
|
+
needDataLink: field.field === "location_id_" || field.field === "storage_zone_id_",
|
|
57903
57923
|
exp: queryCondition.dataFilterExp,
|
|
57904
57924
|
isRdo
|
|
57905
57925
|
});
|
|
@@ -57956,14 +57976,15 @@ const renderUtils = {
|
|
|
57956
57976
|
...queryCondition.dataFilterFixedQueryData,
|
|
57957
57977
|
...defaultQuery
|
|
57958
57978
|
};
|
|
57959
|
-
if (field.field === "location_id_") {
|
|
57960
|
-
const
|
|
57961
|
-
|
|
57962
|
-
|
|
57979
|
+
if (field.field === "storage_zone_id_" || field.field === "location_id_") {
|
|
57980
|
+
const modelFields = modelMap?.[key]?.list ?? [];
|
|
57981
|
+
const hasStorageZone = modelFields.some((item) => item.key === "storage_zone_id_");
|
|
57982
|
+
const linkKey = field.field === "storage_zone_id_" ? "warehouse_id_" : hasStorageZone ? "storage_zone_id_" : "warehouse_id_";
|
|
57983
|
+
const linkFieldInfo = modelFields.find((item) => item.key === linkKey);
|
|
57963
57984
|
queryCondition.clsReasonDataLinkStatus = true;
|
|
57964
57985
|
queryCondition.clsReasonDataLinkInfo = {
|
|
57965
|
-
value:
|
|
57966
|
-
label: linkFieldInfo?.name ??
|
|
57986
|
+
value: linkKey,
|
|
57987
|
+
label: linkFieldInfo?.name ?? linkKey,
|
|
57967
57988
|
refModelChain: []
|
|
57968
57989
|
};
|
|
57969
57990
|
}
|
|
@@ -58096,6 +58117,7 @@ const renderUtils = {
|
|
|
58096
58117
|
mainRoutingOperation = void 0,
|
|
58097
58118
|
mainMfgOrderId = void 0,
|
|
58098
58119
|
mainWarehouseId = void 0,
|
|
58120
|
+
mainLotSnId = void 0,
|
|
58099
58121
|
mainProductQty = void 0,
|
|
58100
58122
|
mainSterilizationLot = void 0,
|
|
58101
58123
|
mainSterilizationLotId = void 0,
|
|
@@ -58120,10 +58142,13 @@ const renderUtils = {
|
|
|
58120
58142
|
if (bizType === FIELD_TYPE.WAREHOUSE) {
|
|
58121
58143
|
return mainWarehouseId;
|
|
58122
58144
|
}
|
|
58145
|
+
if (bizType === FIELD_TYPE.PRODUCTION_CONTAINER) {
|
|
58146
|
+
return mainLotSnId;
|
|
58147
|
+
}
|
|
58123
58148
|
if (bizType === FIELD_TYPE.PRODUCTION_QTY) {
|
|
58124
58149
|
return mainProductQty;
|
|
58125
58150
|
}
|
|
58126
|
-
if (bizType === FIELD_TYPE.
|
|
58151
|
+
if (bizType === FIELD_TYPE.STERILIZATION_CONTAINER || fieldType === FIELD_TYPE.STERILIZATION_CONTAINER) {
|
|
58127
58152
|
return mainSterilizationLot;
|
|
58128
58153
|
}
|
|
58129
58154
|
const sop = sopList?.[0];
|
|
@@ -58173,7 +58198,7 @@ const renderUtils = {
|
|
|
58173
58198
|
const { subFieldKey, fieldId, fieldType, autofillRules, enableAutofill, bizType } = field;
|
|
58174
58199
|
const key = subFieldKey || "gct_main";
|
|
58175
58200
|
assignValue(key, fieldId, getDefaultValue(field));
|
|
58176
|
-
if (bizType === FIELD_TYPE.
|
|
58201
|
+
if (bizType === FIELD_TYPE.STERILIZATION_CONTAINER || fieldType === FIELD_TYPE.STERILIZATION_CONTAINER) {
|
|
58177
58202
|
assignValue(key, `${fieldId}_id_`, mainSterilizationLotId);
|
|
58178
58203
|
}
|
|
58179
58204
|
if (enableAutofill !== false && Array.isArray(autofillRules) && autofillRules.length > 0) {
|
|
@@ -58190,7 +58215,7 @@ const renderUtils = {
|
|
|
58190
58215
|
if (fieldType === FIELD_TYPE.RELATED_LOT_NO) {
|
|
58191
58216
|
sourceData = relatedLotNoData;
|
|
58192
58217
|
}
|
|
58193
|
-
if (bizType === FIELD_TYPE.
|
|
58218
|
+
if (bizType === FIELD_TYPE.STERILIZATION_CONTAINER || fieldType === FIELD_TYPE.STERILIZATION_CONTAINER) {
|
|
58194
58219
|
sourceData = sterilizeLotData;
|
|
58195
58220
|
}
|
|
58196
58221
|
if (bizType === FIELD_TYPE.WAREHOUSE) {
|
|
@@ -58827,7 +58852,7 @@ function setCellMergeAndDynamicInfo({
|
|
|
58827
58852
|
const colspanNumber = colspan ? parseInt(colspan, 10) : void 0;
|
|
58828
58853
|
const borderAttrs = get$1(cellInfo.props, "sourceBorderAttrs");
|
|
58829
58854
|
const value = get$1(cellInfo.cellWidget.props, "value");
|
|
58830
|
-
const cellUuid = uuid2(8);
|
|
58855
|
+
const cellUuid = uuid2$1(8);
|
|
58831
58856
|
const cellFixedWidth = getCellWidth(
|
|
58832
58857
|
widget.props.colsWidth,
|
|
58833
58858
|
curTdIndex,
|
|
@@ -59251,7 +59276,7 @@ const calcUtils = {
|
|
|
59251
59276
|
const marketMap = /* @__PURE__ */ new Map();
|
|
59252
59277
|
const dealWithList = [];
|
|
59253
59278
|
tempMarketList.forEach((item, index2) => {
|
|
59254
|
-
const uuid = `t${index2}${uuid2(8)}`;
|
|
59279
|
+
const uuid = `t${index2}${uuid2$1(8)}`;
|
|
59255
59280
|
marketMap.set(uuid, item);
|
|
59256
59281
|
const subFieldId = item.subFieldId;
|
|
59257
59282
|
if (!subFieldId) {
|
|
@@ -60066,6 +60091,9 @@ const useOnlineFormTransformField2Component = (fieldType) => {
|
|
|
60066
60091
|
[FIELD_TYPE.LOCATION]: {
|
|
60067
60092
|
cmpKey: ComponentTypeEnum.Select
|
|
60068
60093
|
},
|
|
60094
|
+
[FIELD_TYPE.PRODUCTION_CONTAINER]: {
|
|
60095
|
+
cmpKey: ComponentTypeEnum.Select
|
|
60096
|
+
},
|
|
60069
60097
|
[FIELD_TYPE.DATE]: {
|
|
60070
60098
|
cmpKey: ComponentTypeEnum.Datepicker
|
|
60071
60099
|
},
|
|
@@ -60084,10 +60112,10 @@ const useOnlineFormTransformField2Component = (fieldType) => {
|
|
|
60084
60112
|
[FIELD_TYPE.MATERIAL_NO]: {
|
|
60085
60113
|
cmpKey: ComponentTypeEnum.Trace
|
|
60086
60114
|
},
|
|
60087
|
-
[FIELD_TYPE.
|
|
60115
|
+
[FIELD_TYPE.STERILIZATION_CONTAINER]: {
|
|
60088
60116
|
cmpKey: ComponentTypeEnum.Trace
|
|
60089
60117
|
},
|
|
60090
|
-
[FIELD_TYPE.
|
|
60118
|
+
[FIELD_TYPE.MATERIAL_CONTAINER]: {
|
|
60091
60119
|
cmpKey: ComponentTypeEnum.Trace
|
|
60092
60120
|
},
|
|
60093
60121
|
[FIELD_TYPE.RELATED_LOT_NO]: {
|
|
@@ -60333,6 +60361,7 @@ function useWidgetStaticAttrs(widget) {
|
|
|
60333
60361
|
viewState = CellWidgetViewState.Readonly;
|
|
60334
60362
|
}
|
|
60335
60363
|
const disabled = toRef(widget.props, "disabled");
|
|
60364
|
+
const fieldDisabled = toRef(widget.props, "fieldDisabled");
|
|
60336
60365
|
const readonly = toRef(widget.props, "field_readonly");
|
|
60337
60366
|
const newRequired = toRef(widget.props, "required");
|
|
60338
60367
|
const newQueryDataRef = computed(() => widget.props.newSpecificConfig?.newQueryData);
|
|
@@ -60393,6 +60422,9 @@ function useWidgetStaticAttrs(widget) {
|
|
|
60393
60422
|
return readonly.value ? "readonly-text" : "edit-component";
|
|
60394
60423
|
});
|
|
60395
60424
|
const newDisabled = computed(() => {
|
|
60425
|
+
if (fieldDisabled.value) {
|
|
60426
|
+
return true;
|
|
60427
|
+
}
|
|
60396
60428
|
if (newDisplayStatus.value === "edit-component") {
|
|
60397
60429
|
return forcedDisabled || disabled.value;
|
|
60398
60430
|
}
|
|
@@ -61332,13 +61364,13 @@ if (typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "p
|
|
|
61332
61364
|
}
|
|
61333
61365
|
function convertFieldsError(errors) {
|
|
61334
61366
|
if (!errors || !errors.length) return null;
|
|
61335
|
-
var
|
|
61367
|
+
var fields2 = {};
|
|
61336
61368
|
errors.forEach(function(error) {
|
|
61337
61369
|
var field = error.field;
|
|
61338
|
-
|
|
61339
|
-
|
|
61370
|
+
fields2[field] = fields2[field] || [];
|
|
61371
|
+
fields2[field].push(error);
|
|
61340
61372
|
});
|
|
61341
|
-
return
|
|
61373
|
+
return fields2;
|
|
61342
61374
|
}
|
|
61343
61375
|
function format(template) {
|
|
61344
61376
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -61434,11 +61466,11 @@ function flattenObjArr(objArr) {
|
|
|
61434
61466
|
}
|
|
61435
61467
|
var AsyncValidationError = /* @__PURE__ */ (function(_Error) {
|
|
61436
61468
|
_inheritsLoose(AsyncValidationError2, _Error);
|
|
61437
|
-
function AsyncValidationError2(errors,
|
|
61469
|
+
function AsyncValidationError2(errors, fields2) {
|
|
61438
61470
|
var _this;
|
|
61439
61471
|
_this = _Error.call(this, "Async Validation Error") || this;
|
|
61440
61472
|
_this.errors = errors;
|
|
61441
|
-
_this.fields =
|
|
61473
|
+
_this.fields = fields2;
|
|
61442
61474
|
return _this;
|
|
61443
61475
|
}
|
|
61444
61476
|
return AsyncValidationError2;
|
|
@@ -62069,7 +62101,7 @@ var Schema = /* @__PURE__ */ (function() {
|
|
|
62069
62101
|
}
|
|
62070
62102
|
function complete(results) {
|
|
62071
62103
|
var errors = [];
|
|
62072
|
-
var
|
|
62104
|
+
var fields2 = {};
|
|
62073
62105
|
function add(e) {
|
|
62074
62106
|
if (Array.isArray(e)) {
|
|
62075
62107
|
var _errors;
|
|
@@ -62084,8 +62116,8 @@ var Schema = /* @__PURE__ */ (function() {
|
|
|
62084
62116
|
if (!errors.length) {
|
|
62085
62117
|
callback(null, source);
|
|
62086
62118
|
} else {
|
|
62087
|
-
|
|
62088
|
-
callback(errors,
|
|
62119
|
+
fields2 = convertFieldsError(errors);
|
|
62120
|
+
callback(errors, fields2);
|
|
62089
62121
|
}
|
|
62090
62122
|
}
|
|
62091
62123
|
if (options.messages) {
|
|
@@ -62394,7 +62426,7 @@ async function runValidation(formData, paper, options = {}) {
|
|
|
62394
62426
|
}
|
|
62395
62427
|
}
|
|
62396
62428
|
const validator = new Schema(activeRules);
|
|
62397
|
-
const
|
|
62429
|
+
const fields2 = await new Promise((resolve) => {
|
|
62398
62430
|
validator.validate(flatData, { first: false, formData }, (errors, errorFields) => {
|
|
62399
62431
|
if (errors?.length) {
|
|
62400
62432
|
resolve(errorFields);
|
|
@@ -62404,8 +62436,8 @@ async function runValidation(formData, paper, options = {}) {
|
|
|
62404
62436
|
});
|
|
62405
62437
|
});
|
|
62406
62438
|
return {
|
|
62407
|
-
isValid: !
|
|
62408
|
-
fields,
|
|
62439
|
+
isValid: !fields2 || Object.keys(fields2).length === 0,
|
|
62440
|
+
fields: fields2,
|
|
62409
62441
|
editablePaths,
|
|
62410
62442
|
livePaths,
|
|
62411
62443
|
validatedPaths,
|
|
@@ -62627,25 +62659,25 @@ async function executeValidation(ctx, mode) {
|
|
|
62627
62659
|
keepExceptionHighlight: resolveFormKeep(ctx)
|
|
62628
62660
|
});
|
|
62629
62661
|
if (!res) return;
|
|
62630
|
-
const
|
|
62662
|
+
const fields2 = res.fields ?? null;
|
|
62631
62663
|
const editablePaths = res.editablePaths ?? [];
|
|
62632
62664
|
const livePaths = res.livePaths ?? [];
|
|
62633
62665
|
const flatData = res.flatData ?? {};
|
|
62634
62666
|
if (mode === "all") {
|
|
62635
|
-
const merged = mergeSubmitValidation(ctx.getComments(),
|
|
62667
|
+
const merged = mergeSubmitValidation(ctx.getComments(), fields2, editablePaths);
|
|
62636
62668
|
ctx.applyComments(merged);
|
|
62637
62669
|
} else if (mode === "display") {
|
|
62638
62670
|
const merged = mergeDisplayValidation(
|
|
62639
62671
|
ctx.getComments(),
|
|
62640
|
-
|
|
62672
|
+
fields2,
|
|
62641
62673
|
res.ruleKeys ?? listFormRuleKeys(),
|
|
62642
|
-
res.validatedPaths ?? Object.keys(
|
|
62674
|
+
res.validatedPaths ?? Object.keys(fields2 ?? {})
|
|
62643
62675
|
);
|
|
62644
62676
|
ctx.applyComments(merged);
|
|
62645
62677
|
} else {
|
|
62646
62678
|
const merged = mergeLiveValidation(
|
|
62647
62679
|
ctx.getComments(),
|
|
62648
|
-
|
|
62680
|
+
fields2,
|
|
62649
62681
|
livePaths,
|
|
62650
62682
|
(path) => resolvePayloadForPath(path, flatData)
|
|
62651
62683
|
);
|
|
@@ -62894,14 +62926,14 @@ function handleOldConfig(config) {
|
|
|
62894
62926
|
config.fieldList = config.list.map((type4) => {
|
|
62895
62927
|
return {
|
|
62896
62928
|
type: type4,
|
|
62897
|
-
key: type4 === Config_Fields.other ? uuid2(32) : type4
|
|
62929
|
+
key: type4 === Config_Fields.other ? uuid2$1(32) : type4
|
|
62898
62930
|
};
|
|
62899
62931
|
});
|
|
62900
62932
|
delete config.list;
|
|
62901
62933
|
}
|
|
62902
62934
|
config.fieldList.forEach((item) => {
|
|
62903
62935
|
if (!item.key) {
|
|
62904
|
-
item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
|
|
62936
|
+
item.key = item.type === Config_Fields.other ? uuid2$1(32) : item.type;
|
|
62905
62937
|
}
|
|
62906
62938
|
});
|
|
62907
62939
|
return config;
|
|
@@ -62957,6 +62989,1783 @@ function calcFillData(data, fillMapArr) {
|
|
|
62957
62989
|
}
|
|
62958
62990
|
return obj;
|
|
62959
62991
|
}
|
|
62992
|
+
const TABLE_TYPE$h = "dynamic-table";
|
|
62993
|
+
const profile$h = {
|
|
62994
|
+
type: TABLE_TYPE$h,
|
|
62995
|
+
label: "动态表",
|
|
62996
|
+
labelKey: "sys.onlineForm.subTableType.DEFAULT",
|
|
62997
|
+
category: "data",
|
|
62998
|
+
ribbonAction: "dynamic-table",
|
|
62999
|
+
icon: "dynamic-table",
|
|
63000
|
+
enabled: true,
|
|
63001
|
+
defaultWidgetProps: {
|
|
63002
|
+
indexedTd: false,
|
|
63003
|
+
quickFill: true
|
|
63004
|
+
},
|
|
63005
|
+
match: {
|
|
63006
|
+
fieldType: "master_slave",
|
|
63007
|
+
excludeRefModelTypes: "ALL_BUSINESS",
|
|
63008
|
+
tableType: SubTableType.DEFAULT
|
|
63009
|
+
},
|
|
63010
|
+
theme: {
|
|
63011
|
+
color: "#A47BDE",
|
|
63012
|
+
background: "rgba(164,123,222,0.2)",
|
|
63013
|
+
labelBjColor: "rgba(164,123,222,0.8)"
|
|
63014
|
+
}
|
|
63015
|
+
};
|
|
63016
|
+
const TABLE_TYPE$g = "fixed-table";
|
|
63017
|
+
const profile$g = {
|
|
63018
|
+
type: TABLE_TYPE$g,
|
|
63019
|
+
label: "固定表",
|
|
63020
|
+
labelKey: "sys.onlineForm.subTableType.FIXED",
|
|
63021
|
+
category: "data",
|
|
63022
|
+
ribbonAction: "fixed-table",
|
|
63023
|
+
icon: "fixed-table",
|
|
63024
|
+
enabled: true,
|
|
63025
|
+
defaultWidgetProps: {
|
|
63026
|
+
autoFill: true
|
|
63027
|
+
},
|
|
63028
|
+
match: {
|
|
63029
|
+
fieldType: "master_slave",
|
|
63030
|
+
excludeRefModelTypes: "ALL_BUSINESS",
|
|
63031
|
+
tableType: SubTableType.FIXED
|
|
63032
|
+
},
|
|
63033
|
+
theme: {
|
|
63034
|
+
color: "#B0947C",
|
|
63035
|
+
background: "rgba(176,148,124,0.2)",
|
|
63036
|
+
labelBjColor: "rgba(176,148,124,0.8)"
|
|
63037
|
+
}
|
|
63038
|
+
};
|
|
63039
|
+
const TABLE_TYPE$f = "two-d-table";
|
|
63040
|
+
const profile$f = {
|
|
63041
|
+
type: TABLE_TYPE$f,
|
|
63042
|
+
label: "二维表",
|
|
63043
|
+
labelKey: "sys.onlineForm.subTableType.2D",
|
|
63044
|
+
category: "data",
|
|
63045
|
+
ribbonAction: "two-d-table",
|
|
63046
|
+
icon: "two-d-table",
|
|
63047
|
+
enabled: true,
|
|
63048
|
+
assocColField: "required",
|
|
63049
|
+
defaultWidgetProps: {
|
|
63050
|
+
autoFill: true
|
|
63051
|
+
},
|
|
63052
|
+
match: {
|
|
63053
|
+
fieldType: "master_slave",
|
|
63054
|
+
excludeRefModelTypes: "ALL_BUSINESS",
|
|
63055
|
+
tableType: SubTableType._2D
|
|
63056
|
+
},
|
|
63057
|
+
theme: {
|
|
63058
|
+
color: "#E1AD01",
|
|
63059
|
+
background: "rgba(225,173,1,0.2)",
|
|
63060
|
+
labelBjColor: "rgba(225,173,1,0.8)"
|
|
63061
|
+
}
|
|
63062
|
+
};
|
|
63063
|
+
const TABLE_TYPE$e = "warehouse-in-out";
|
|
63064
|
+
const profile$e = {
|
|
63065
|
+
type: TABLE_TYPE$e,
|
|
63066
|
+
label: "出入库明细表",
|
|
63067
|
+
labelKey: "sys.pageDesigner.fieldCmp.warehouse_in_out",
|
|
63068
|
+
category: "business",
|
|
63069
|
+
ribbonAction: "warehouse-in-out",
|
|
63070
|
+
ribbonGroup: "仓储",
|
|
63071
|
+
icon: "warehouse-in-out",
|
|
63072
|
+
enabled: true,
|
|
63073
|
+
match: {
|
|
63074
|
+
fieldType: "master_slave",
|
|
63075
|
+
refModelType: "WAREHOUSE_IN_OUT",
|
|
63076
|
+
tableType: SubTableType.WAREHOUSE_IN_OUT
|
|
63077
|
+
},
|
|
63078
|
+
theme: {
|
|
63079
|
+
color: "#08A2B6",
|
|
63080
|
+
background: "rgba(8,162,182,0.2)",
|
|
63081
|
+
labelBjColor: "rgba(8,162,182,0.8)"
|
|
63082
|
+
}
|
|
63083
|
+
};
|
|
63084
|
+
const rowHandlerRegistry = /* @__PURE__ */ new Map();
|
|
63085
|
+
function registerRowHandler(profileType, handlerName, handler) {
|
|
63086
|
+
rowHandlerRegistry.set(`${profileType}:${handlerName}`, handler);
|
|
63087
|
+
}
|
|
63088
|
+
function runRowHandler(profileType, handlerName, ctx) {
|
|
63089
|
+
rowHandlerRegistry.get(`${profileType}:${handlerName}`)?.(ctx);
|
|
63090
|
+
}
|
|
63091
|
+
const hexList = [];
|
|
63092
|
+
for (let i2 = 0; i2 <= 15; i2++) {
|
|
63093
|
+
hexList[i2] = i2.toString(16);
|
|
63094
|
+
}
|
|
63095
|
+
function buildUUID() {
|
|
63096
|
+
let uuid = "";
|
|
63097
|
+
for (let i2 = 1; i2 <= 36; i2++) {
|
|
63098
|
+
if (i2 === 9 || i2 === 14 || i2 === 19 || i2 === 24) {
|
|
63099
|
+
uuid += "-";
|
|
63100
|
+
} else if (i2 === 15) {
|
|
63101
|
+
uuid += 4;
|
|
63102
|
+
} else if (i2 === 20) {
|
|
63103
|
+
uuid += hexList[Math.random() * 4 | 8];
|
|
63104
|
+
} else {
|
|
63105
|
+
uuid += hexList[Math.random() * 16 | 0];
|
|
63106
|
+
}
|
|
63107
|
+
}
|
|
63108
|
+
return uuid.replace(/-/g, "");
|
|
63109
|
+
}
|
|
63110
|
+
const uuid2 = (len, radix) => {
|
|
63111
|
+
let chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
63112
|
+
let uuid = [], i2;
|
|
63113
|
+
radix = radix || chars.length;
|
|
63114
|
+
if (len) {
|
|
63115
|
+
for (i2 = 0; i2 < len; i2++) uuid[i2] = chars[0 | Math.random() * radix];
|
|
63116
|
+
} else {
|
|
63117
|
+
var r;
|
|
63118
|
+
uuid[8] = uuid[13] = uuid[18] = uuid[23] = "-";
|
|
63119
|
+
uuid[14] = "4";
|
|
63120
|
+
for (i2 = 0; i2 < 36; i2++) {
|
|
63121
|
+
if (!uuid[i2]) {
|
|
63122
|
+
r = 0 | Math.random() * 16;
|
|
63123
|
+
uuid[i2] = chars[i2 == 19 ? r & 3 | 8 : r];
|
|
63124
|
+
}
|
|
63125
|
+
}
|
|
63126
|
+
}
|
|
63127
|
+
return uuid.join("");
|
|
63128
|
+
};
|
|
63129
|
+
function normalizeRefFieldKey(fieldKey) {
|
|
63130
|
+
return fieldKey.endsWith("_") ? fieldKey.slice(0, -1) : fieldKey;
|
|
63131
|
+
}
|
|
63132
|
+
function resolveAutofillToField(template, sourceFieldKey) {
|
|
63133
|
+
if (typeof template.toField === "function") {
|
|
63134
|
+
return template.toField({ sourceFieldKey });
|
|
63135
|
+
}
|
|
63136
|
+
return template.toField;
|
|
63137
|
+
}
|
|
63138
|
+
function expandAutofillTemplates(templates, ctx) {
|
|
63139
|
+
return templates.map((template) => ({
|
|
63140
|
+
id: uuid2(8),
|
|
63141
|
+
fromField: template.fromField,
|
|
63142
|
+
toField: resolveAutofillToField(template, ctx.sourceFieldKey)
|
|
63143
|
+
}));
|
|
63144
|
+
}
|
|
63145
|
+
const F$9 = {
|
|
63146
|
+
/** 物料 */
|
|
63147
|
+
product: "product_id_",
|
|
63148
|
+
/** 物料名称 */
|
|
63149
|
+
productName: "product_id_name_",
|
|
63150
|
+
/** 物料编码 */
|
|
63151
|
+
productCode: "product_id_code_",
|
|
63152
|
+
/** 物料规格 */
|
|
63153
|
+
productSpec: "product_id_spec_",
|
|
63154
|
+
/** 仓库 */
|
|
63155
|
+
warehouse: "warehouse_id_",
|
|
63156
|
+
/** 工单 */
|
|
63157
|
+
mfgOrder: "mfg_order_id_",
|
|
63158
|
+
/** 生产批次/SN */
|
|
63159
|
+
lotSn: "lot_sn_id_"
|
|
63160
|
+
};
|
|
63161
|
+
const READONLY_INFO_FIELDS$1 = [F$9.productName, F$9.productCode, F$9.productSpec];
|
|
63162
|
+
const CLEAR_ON_PRODUCT_EMPTY$5 = [F$9.productName, F$9.productCode, F$9.productSpec];
|
|
63163
|
+
const fields$9 = [
|
|
63164
|
+
{
|
|
63165
|
+
match: { fieldKey: F$9.product },
|
|
63166
|
+
autofillTemplates: [
|
|
63167
|
+
{
|
|
63168
|
+
fromField: "name_",
|
|
63169
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_name_`
|
|
63170
|
+
},
|
|
63171
|
+
{
|
|
63172
|
+
fromField: "code_",
|
|
63173
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_code_`
|
|
63174
|
+
},
|
|
63175
|
+
{
|
|
63176
|
+
fromField: "spec_",
|
|
63177
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_spec_`
|
|
63178
|
+
}
|
|
63179
|
+
]
|
|
63180
|
+
},
|
|
63181
|
+
{
|
|
63182
|
+
match: { fieldKey: [F$9.productName, F$9.productCode, F$9.productSpec] },
|
|
63183
|
+
defaultProps: {
|
|
63184
|
+
disabled: true,
|
|
63185
|
+
fieldDisabled: true,
|
|
63186
|
+
required: false
|
|
63187
|
+
}
|
|
63188
|
+
}
|
|
63189
|
+
];
|
|
63190
|
+
const TABLE_TYPE$d = "warehouse-in";
|
|
63191
|
+
const profile$d = {
|
|
63192
|
+
type: TABLE_TYPE$d,
|
|
63193
|
+
label: "入库明细表",
|
|
63194
|
+
labelKey: "sys.pageDesigner.fieldCmp.warehouse_in",
|
|
63195
|
+
category: "business",
|
|
63196
|
+
ribbonAction: "warehouse-in",
|
|
63197
|
+
ribbonGroup: "仓储",
|
|
63198
|
+
icon: "warehouse-in",
|
|
63199
|
+
enabled: true,
|
|
63200
|
+
match: {
|
|
63201
|
+
fieldType: "master_slave",
|
|
63202
|
+
refModelType: "WAREHOUSE_IN",
|
|
63203
|
+
tableType: SubTableType.WAREHOUSE_IN
|
|
63204
|
+
},
|
|
63205
|
+
fields: fields$9,
|
|
63206
|
+
contextAssignments: [
|
|
63207
|
+
{ when: "onRowInit", fieldKey: F$9.warehouse, paramKey: "warehouseId", onlyIfEmpty: true },
|
|
63208
|
+
{ when: "onRowInit", fieldKey: F$9.mfgOrder, paramKey: "mfgOrderId", onlyIfEmpty: true },
|
|
63209
|
+
{ when: "onRowInit", fieldKey: F$9.lotSn, paramKey: "lotSnId", onlyIfEmpty: true }
|
|
63210
|
+
],
|
|
63211
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$9.product], handler: "on-product-id-change" }],
|
|
63212
|
+
runtimeRules: [
|
|
63213
|
+
{
|
|
63214
|
+
fields: [...READONLY_INFO_FIELDS$1],
|
|
63215
|
+
effect: { disabled: true }
|
|
63216
|
+
}
|
|
63217
|
+
],
|
|
63218
|
+
theme: {
|
|
63219
|
+
color: "#08A2B6",
|
|
63220
|
+
background: "rgba(8,162,182,0.2)",
|
|
63221
|
+
labelBjColor: "rgba(8,162,182,0.8)"
|
|
63222
|
+
}
|
|
63223
|
+
};
|
|
63224
|
+
function isBlank$a(value) {
|
|
63225
|
+
return value === void 0 || value === null || value === "";
|
|
63226
|
+
}
|
|
63227
|
+
function handleProductIdChange$4(ctx) {
|
|
63228
|
+
if (!isBlank$a(ctx.rowData[F$9.product])) return;
|
|
63229
|
+
for (const fieldKey of CLEAR_ON_PRODUCT_EMPTY$5) {
|
|
63230
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63231
|
+
}
|
|
63232
|
+
}
|
|
63233
|
+
registerRowHandler(TABLE_TYPE$d, "on-product-id-change", ({ rowData }) => {
|
|
63234
|
+
handleProductIdChange$4({ rowData });
|
|
63235
|
+
});
|
|
63236
|
+
const F$8 = {
|
|
63237
|
+
/** 物料 */
|
|
63238
|
+
product: "product_id_",
|
|
63239
|
+
/** 库存主键(出库选物料时写 option.id_,用于唯一回显) */
|
|
63240
|
+
inventory: "inventory_id_",
|
|
63241
|
+
/** 物料名称 */
|
|
63242
|
+
productName: "product_id_name_",
|
|
63243
|
+
/** 物料编码 */
|
|
63244
|
+
productCode: "product_id_code_",
|
|
63245
|
+
/** 物料规格 */
|
|
63246
|
+
productSpec: "product_id_spec_",
|
|
63247
|
+
/** 物料批号 */
|
|
63248
|
+
materialNo: "material_no_",
|
|
63249
|
+
/** 物料批号ID */
|
|
63250
|
+
materialNoId: "material_no__id_",
|
|
63251
|
+
/** 仓库 */
|
|
63252
|
+
warehouse: "warehouse_id_",
|
|
63253
|
+
/** 库位 */
|
|
63254
|
+
location: "location_id_",
|
|
63255
|
+
/** 工单 */
|
|
63256
|
+
mfgOrder: "mfg_order_id_",
|
|
63257
|
+
/** 生产批次/SN */
|
|
63258
|
+
lotSn: "lot_sn_id_",
|
|
63259
|
+
/** 有效期 */
|
|
63260
|
+
validity: "validity_",
|
|
63261
|
+
/** 复检日期 */
|
|
63262
|
+
reInspectionDate: "re_inspection_date_"
|
|
63263
|
+
};
|
|
63264
|
+
const DISABLED_INPUT_FIELDS$7 = [
|
|
63265
|
+
F$8.productName,
|
|
63266
|
+
F$8.productCode,
|
|
63267
|
+
F$8.productSpec,
|
|
63268
|
+
F$8.materialNo,
|
|
63269
|
+
F$8.warehouse,
|
|
63270
|
+
F$8.location,
|
|
63271
|
+
F$8.mfgOrder,
|
|
63272
|
+
F$8.lotSn,
|
|
63273
|
+
F$8.validity,
|
|
63274
|
+
F$8.reInspectionDate
|
|
63275
|
+
];
|
|
63276
|
+
const CLEAR_ON_PRODUCT_EMPTY$4 = [
|
|
63277
|
+
F$8.inventory,
|
|
63278
|
+
F$8.productName,
|
|
63279
|
+
F$8.productCode,
|
|
63280
|
+
F$8.productSpec,
|
|
63281
|
+
F$8.materialNo,
|
|
63282
|
+
F$8.materialNoId,
|
|
63283
|
+
F$8.warehouse,
|
|
63284
|
+
F$8.location,
|
|
63285
|
+
F$8.mfgOrder,
|
|
63286
|
+
F$8.lotSn,
|
|
63287
|
+
F$8.validity,
|
|
63288
|
+
F$8.reInspectionDate
|
|
63289
|
+
];
|
|
63290
|
+
const FILL_FROM_INVENTORY_OPTION$2 = [
|
|
63291
|
+
{ optionField: "id_", toField: F$8.inventory },
|
|
63292
|
+
{ optionField: "product_id_name_", toField: F$8.productName },
|
|
63293
|
+
{ optionField: "product_id_code_", toField: F$8.productCode },
|
|
63294
|
+
{ optionField: "product_id_spec_", toField: F$8.productSpec },
|
|
63295
|
+
{ optionField: "material_no_", toField: F$8.materialNo },
|
|
63296
|
+
{ optionField: "production_identification_id_", toField: F$8.materialNoId },
|
|
63297
|
+
{ optionField: "warehouse_id_", toField: F$8.warehouse },
|
|
63298
|
+
{ optionField: "location_id_", toField: F$8.location },
|
|
63299
|
+
{ optionField: "mfg_order_id_", toField: F$8.mfgOrder },
|
|
63300
|
+
{ optionField: "lot_sn_id_", toField: F$8.lotSn },
|
|
63301
|
+
{ optionField: "validate_", toField: F$8.validity },
|
|
63302
|
+
{ optionField: "re_inspection_date_", toField: F$8.reInspectionDate }
|
|
63303
|
+
];
|
|
63304
|
+
const fields$8 = [
|
|
63305
|
+
{
|
|
63306
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$7] },
|
|
63307
|
+
defaultProps: {
|
|
63308
|
+
disabled: true,
|
|
63309
|
+
fieldDisabled: true,
|
|
63310
|
+
required: false
|
|
63311
|
+
}
|
|
63312
|
+
}
|
|
63313
|
+
];
|
|
63314
|
+
const TABLE_TYPE$c = "warehouse-out";
|
|
63315
|
+
const profile$c = {
|
|
63316
|
+
type: TABLE_TYPE$c,
|
|
63317
|
+
label: "出库明细表",
|
|
63318
|
+
labelKey: "sys.pageDesigner.fieldCmp.warehouse_out",
|
|
63319
|
+
category: "business",
|
|
63320
|
+
ribbonAction: "warehouse-out",
|
|
63321
|
+
ribbonGroup: "仓储",
|
|
63322
|
+
icon: "warehouse-out",
|
|
63323
|
+
enabled: true,
|
|
63324
|
+
match: {
|
|
63325
|
+
fieldType: "master_slave",
|
|
63326
|
+
refModelType: "WAREHOUSE_OUT",
|
|
63327
|
+
tableType: SubTableType.WAREHOUSE_OUT
|
|
63328
|
+
},
|
|
63329
|
+
fields: fields$8,
|
|
63330
|
+
contextAssignments: [
|
|
63331
|
+
{ when: "onRowInit", fieldKey: F$8.warehouse, paramKey: "warehouseId", onlyIfEmpty: true },
|
|
63332
|
+
{ when: "onRowInit", fieldKey: F$8.mfgOrder, paramKey: "mfgOrderId", onlyIfEmpty: true },
|
|
63333
|
+
{ when: "onRowInit", fieldKey: F$8.lotSn, paramKey: "lotSnId", onlyIfEmpty: true }
|
|
63334
|
+
],
|
|
63335
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$8.product], handler: "on-product-id-change" }],
|
|
63336
|
+
runtimeRules: [
|
|
63337
|
+
{
|
|
63338
|
+
fields: [...DISABLED_INPUT_FIELDS$7],
|
|
63339
|
+
effect: { disabled: true }
|
|
63340
|
+
}
|
|
63341
|
+
],
|
|
63342
|
+
theme: {
|
|
63343
|
+
color: "#D73E8D",
|
|
63344
|
+
background: "rgba(215,62,141,0.2)",
|
|
63345
|
+
labelBjColor: "rgba(215,62,141,0.8)"
|
|
63346
|
+
}
|
|
63347
|
+
};
|
|
63348
|
+
function isBlank$9(value) {
|
|
63349
|
+
return value === void 0 || value === null || value === "";
|
|
63350
|
+
}
|
|
63351
|
+
function handleProductIdChange$3(ctx) {
|
|
63352
|
+
if (!isBlank$9(ctx.rowData[F$8.product])) return;
|
|
63353
|
+
for (const fieldKey of CLEAR_ON_PRODUCT_EMPTY$4) {
|
|
63354
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63355
|
+
}
|
|
63356
|
+
}
|
|
63357
|
+
registerRowHandler(TABLE_TYPE$c, "on-product-id-change", ({ rowData }) => {
|
|
63358
|
+
handleProductIdChange$3({ rowData });
|
|
63359
|
+
});
|
|
63360
|
+
const F$7 = {
|
|
63361
|
+
/** 备件 */
|
|
63362
|
+
part: "part_id_",
|
|
63363
|
+
/** 备件 id(展示 / 文本) */
|
|
63364
|
+
partLb: "part_id__lb_",
|
|
63365
|
+
/** 备件名称 */
|
|
63366
|
+
partName: "part_id_name_",
|
|
63367
|
+
/** 备件编码 */
|
|
63368
|
+
partCode: "part_id_code_",
|
|
63369
|
+
/** 备件规格 */
|
|
63370
|
+
partSpec: "part_id_spec_",
|
|
63371
|
+
/** 数量单位 */
|
|
63372
|
+
qtyUom: "qty_uom_id_",
|
|
63373
|
+
/** 仓库 */
|
|
63374
|
+
warehouse: "warehouse_id_"
|
|
63375
|
+
};
|
|
63376
|
+
const DISABLED_INPUT_FIELDS$6 = [
|
|
63377
|
+
F$7.partLb,
|
|
63378
|
+
F$7.partName,
|
|
63379
|
+
F$7.partCode,
|
|
63380
|
+
F$7.partSpec,
|
|
63381
|
+
F$7.qtyUom
|
|
63382
|
+
];
|
|
63383
|
+
const CLEAR_ON_PART_EMPTY$3 = [F$7.partName, F$7.partCode, F$7.partSpec, F$7.qtyUom];
|
|
63384
|
+
const fields$7 = [
|
|
63385
|
+
{
|
|
63386
|
+
match: { fieldKey: F$7.part },
|
|
63387
|
+
autofillTemplates: [
|
|
63388
|
+
{
|
|
63389
|
+
fromField: "part_name_",
|
|
63390
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_name_`
|
|
63391
|
+
},
|
|
63392
|
+
{
|
|
63393
|
+
fromField: "part_code_",
|
|
63394
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_code_`
|
|
63395
|
+
},
|
|
63396
|
+
{
|
|
63397
|
+
fromField: "specification_",
|
|
63398
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_spec_`
|
|
63399
|
+
},
|
|
63400
|
+
{
|
|
63401
|
+
fromField: "unit_",
|
|
63402
|
+
toField: F$7.qtyUom
|
|
63403
|
+
}
|
|
63404
|
+
]
|
|
63405
|
+
},
|
|
63406
|
+
{
|
|
63407
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$6] },
|
|
63408
|
+
defaultProps: {
|
|
63409
|
+
disabled: true,
|
|
63410
|
+
fieldDisabled: true,
|
|
63411
|
+
required: false
|
|
63412
|
+
}
|
|
63413
|
+
}
|
|
63414
|
+
];
|
|
63415
|
+
const TABLE_TYPE$b = "warehouse-inbound";
|
|
63416
|
+
const profile$b = {
|
|
63417
|
+
type: TABLE_TYPE$b,
|
|
63418
|
+
label: "入库明细表",
|
|
63419
|
+
labelKey: "sys.pageDesigner.fieldCmp.warehouse_inbound",
|
|
63420
|
+
category: "business",
|
|
63421
|
+
ribbonAction: "warehouse-inbound",
|
|
63422
|
+
ribbonGroup: "备件",
|
|
63423
|
+
/** 仅 EQM Ribbon 展示 */
|
|
63424
|
+
ribbonSuites: ["EQM"],
|
|
63425
|
+
icon: "warehouse-inbound",
|
|
63426
|
+
enabled: true,
|
|
63427
|
+
match: {
|
|
63428
|
+
fieldType: "master_slave",
|
|
63429
|
+
refModelType: "WAREHOUSE_INBOUND",
|
|
63430
|
+
tableType: SubTableType.WAREHOUSE_INBOUND
|
|
63431
|
+
},
|
|
63432
|
+
fields: fields$7,
|
|
63433
|
+
contextAssignments: [
|
|
63434
|
+
{ when: "onRowInit", fieldKey: F$7.warehouse, paramKey: "warehouseId", onlyIfEmpty: true }
|
|
63435
|
+
],
|
|
63436
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$7.part], handler: "on-part-id-change" }],
|
|
63437
|
+
runtimeRules: [
|
|
63438
|
+
{
|
|
63439
|
+
fields: [...DISABLED_INPUT_FIELDS$6],
|
|
63440
|
+
effect: { disabled: true }
|
|
63441
|
+
}
|
|
63442
|
+
],
|
|
63443
|
+
theme: {
|
|
63444
|
+
color: "#08A2B6",
|
|
63445
|
+
background: "rgba(8,162,182,0.2)",
|
|
63446
|
+
labelBjColor: "rgba(8,162,182,0.8)"
|
|
63447
|
+
}
|
|
63448
|
+
};
|
|
63449
|
+
function isBlank$8(value) {
|
|
63450
|
+
return value === void 0 || value === null || value === "";
|
|
63451
|
+
}
|
|
63452
|
+
function handlePartIdChange$3(ctx) {
|
|
63453
|
+
if (!isBlank$8(ctx.rowData[F$7.part])) return;
|
|
63454
|
+
for (const fieldKey of CLEAR_ON_PART_EMPTY$3) {
|
|
63455
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63456
|
+
}
|
|
63457
|
+
}
|
|
63458
|
+
registerRowHandler(TABLE_TYPE$b, "on-part-id-change", ({ rowData }) => {
|
|
63459
|
+
handlePartIdChange$3({ rowData });
|
|
63460
|
+
});
|
|
63461
|
+
const F$6 = {
|
|
63462
|
+
/** 库存主键(选备件时写 option.id_,用于唯一回显) */
|
|
63463
|
+
inventory: "inventory_id_",
|
|
63464
|
+
/** 备件 */
|
|
63465
|
+
part: "part_id_",
|
|
63466
|
+
/** 备件 id(展示 / 文本) */
|
|
63467
|
+
partLb: "part_id__lb_",
|
|
63468
|
+
/** 备件编码 */
|
|
63469
|
+
partCode: "part_id_code_",
|
|
63470
|
+
/** 备件名称 */
|
|
63471
|
+
partName: "part_id_name_",
|
|
63472
|
+
/** 备件规格 */
|
|
63473
|
+
partSpec: "part_id_spec_",
|
|
63474
|
+
/** 有效期 */
|
|
63475
|
+
validity: "validity_",
|
|
63476
|
+
/** 库位 */
|
|
63477
|
+
location: "location_id_",
|
|
63478
|
+
/** 库区 */
|
|
63479
|
+
storageZone: "storage_zone_id_",
|
|
63480
|
+
/** 仓库 */
|
|
63481
|
+
warehouse: "warehouse_id_",
|
|
63482
|
+
/** 数量单位 */
|
|
63483
|
+
qtyUom: "qty_uom_id_"
|
|
63484
|
+
};
|
|
63485
|
+
const DISABLED_INPUT_FIELDS$5 = [
|
|
63486
|
+
F$6.partLb,
|
|
63487
|
+
F$6.partCode,
|
|
63488
|
+
F$6.partName,
|
|
63489
|
+
F$6.partSpec,
|
|
63490
|
+
F$6.location,
|
|
63491
|
+
F$6.storageZone,
|
|
63492
|
+
F$6.warehouse,
|
|
63493
|
+
F$6.qtyUom
|
|
63494
|
+
];
|
|
63495
|
+
const CLEAR_ON_PART_EMPTY$2 = [
|
|
63496
|
+
F$6.inventory,
|
|
63497
|
+
F$6.partCode,
|
|
63498
|
+
F$6.partName,
|
|
63499
|
+
F$6.partSpec,
|
|
63500
|
+
F$6.validity,
|
|
63501
|
+
F$6.location,
|
|
63502
|
+
F$6.storageZone,
|
|
63503
|
+
F$6.warehouse,
|
|
63504
|
+
F$6.qtyUom
|
|
63505
|
+
];
|
|
63506
|
+
const fields$6 = [
|
|
63507
|
+
{
|
|
63508
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$5] },
|
|
63509
|
+
defaultProps: {
|
|
63510
|
+
disabled: true,
|
|
63511
|
+
fieldDisabled: true,
|
|
63512
|
+
required: false
|
|
63513
|
+
}
|
|
63514
|
+
}
|
|
63515
|
+
];
|
|
63516
|
+
const TABLE_TYPE$a = "warehouse-outbound";
|
|
63517
|
+
const profile$a = {
|
|
63518
|
+
type: TABLE_TYPE$a,
|
|
63519
|
+
label: "出库明细表",
|
|
63520
|
+
labelKey: "sys.pageDesigner.fieldCmp.warehouse_outbound",
|
|
63521
|
+
category: "business",
|
|
63522
|
+
ribbonAction: "warehouse-outbound",
|
|
63523
|
+
ribbonGroup: "备件",
|
|
63524
|
+
/** 仅 EQM Ribbon 展示 */
|
|
63525
|
+
ribbonSuites: ["EQM"],
|
|
63526
|
+
icon: "warehouse-outbound",
|
|
63527
|
+
enabled: true,
|
|
63528
|
+
match: {
|
|
63529
|
+
fieldType: "master_slave",
|
|
63530
|
+
refModelType: "WAREHOUSE_OUTBOUND",
|
|
63531
|
+
tableType: SubTableType.WAREHOUSE_OUTBOUND
|
|
63532
|
+
},
|
|
63533
|
+
fields: fields$6,
|
|
63534
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$6.part], handler: "on-part-id-change" }],
|
|
63535
|
+
runtimeRules: [
|
|
63536
|
+
{
|
|
63537
|
+
fields: [...DISABLED_INPUT_FIELDS$5],
|
|
63538
|
+
effect: { disabled: true }
|
|
63539
|
+
}
|
|
63540
|
+
],
|
|
63541
|
+
theme: {
|
|
63542
|
+
color: "#D73E8D",
|
|
63543
|
+
background: "rgba(215,62,141,0.2)",
|
|
63544
|
+
labelBjColor: "rgba(215,62,141,0.8)"
|
|
63545
|
+
}
|
|
63546
|
+
};
|
|
63547
|
+
function isBlank$7(value) {
|
|
63548
|
+
return value === void 0 || value === null || value === "";
|
|
63549
|
+
}
|
|
63550
|
+
function handlePartIdChange$2(ctx) {
|
|
63551
|
+
if (!isBlank$7(ctx.rowData[F$6.part])) return;
|
|
63552
|
+
for (const fieldKey of CLEAR_ON_PART_EMPTY$2) {
|
|
63553
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63554
|
+
}
|
|
63555
|
+
}
|
|
63556
|
+
registerRowHandler(TABLE_TYPE$a, "on-part-id-change", ({ rowData }) => {
|
|
63557
|
+
handlePartIdChange$2({ rowData });
|
|
63558
|
+
});
|
|
63559
|
+
const F$5 = {
|
|
63560
|
+
/** 库存主键(选物料时写 option.id_,用于唯一回显) */
|
|
63561
|
+
inventory: "inventory_id_",
|
|
63562
|
+
/** 物料批号 */
|
|
63563
|
+
batch: "production_identification_id_",
|
|
63564
|
+
batchLb: "production_identification_id__lb_",
|
|
63565
|
+
/** 物料 */
|
|
63566
|
+
product: "product_id_",
|
|
63567
|
+
productLb: "product_id__lb_",
|
|
63568
|
+
/** 物料名称 */
|
|
63569
|
+
productName: "product_id_name_",
|
|
63570
|
+
/** 物料编码 */
|
|
63571
|
+
productCode: "product_id_code_",
|
|
63572
|
+
/** 物料规格 */
|
|
63573
|
+
productSpec: "product_id_spec_",
|
|
63574
|
+
/** 仓库 */
|
|
63575
|
+
warehouse: "warehouse_id_",
|
|
63576
|
+
/** 库位 */
|
|
63577
|
+
location: "location_id_",
|
|
63578
|
+
locationLb: "location_id__lb_",
|
|
63579
|
+
/** 库存数量 */
|
|
63580
|
+
stock: "stock_num_",
|
|
63581
|
+
/** 盘点数量 */
|
|
63582
|
+
stocktake: "stocktake_num_",
|
|
63583
|
+
/** 差异数量 */
|
|
63584
|
+
diff: "diff_num_",
|
|
63585
|
+
/** 盘点状态 */
|
|
63586
|
+
stocktakeStatus: "stocktake_status_",
|
|
63587
|
+
stocktakeStatusLb: "stocktake_status__lb_",
|
|
63588
|
+
/** 有效期 */
|
|
63589
|
+
validity: "validity_",
|
|
63590
|
+
/** 复检日期 */
|
|
63591
|
+
reInspectionDate: "re_inspection_date_",
|
|
63592
|
+
/** 行数据来源 */
|
|
63593
|
+
rowSource: "row_source_",
|
|
63594
|
+
matno: "material_no_",
|
|
63595
|
+
matcode: "product_code_",
|
|
63596
|
+
/** 扫码:库位是否已自动解析 */
|
|
63597
|
+
locationAutoResolved: "_location_auto_resolved_",
|
|
63598
|
+
/** 扫码:可选库位 id 列表 */
|
|
63599
|
+
inventoryLocationIds: "_inventory_location_ids_"
|
|
63600
|
+
};
|
|
63601
|
+
const DESIGN_DISABLED_INPUT_FIELDS = [
|
|
63602
|
+
F$5.batch,
|
|
63603
|
+
F$5.productName,
|
|
63604
|
+
F$5.productCode,
|
|
63605
|
+
F$5.productSpec,
|
|
63606
|
+
F$5.stock,
|
|
63607
|
+
F$5.diff,
|
|
63608
|
+
F$5.stocktakeStatus,
|
|
63609
|
+
F$5.warehouse,
|
|
63610
|
+
F$5.location,
|
|
63611
|
+
F$5.validity,
|
|
63612
|
+
F$5.reInspectionDate
|
|
63613
|
+
];
|
|
63614
|
+
const READONLY_INFO_FIELDS = [
|
|
63615
|
+
F$5.productName,
|
|
63616
|
+
F$5.productCode,
|
|
63617
|
+
F$5.productSpec,
|
|
63618
|
+
F$5.warehouse,
|
|
63619
|
+
F$5.stock,
|
|
63620
|
+
F$5.diff,
|
|
63621
|
+
F$5.stocktakeStatus,
|
|
63622
|
+
F$5.validity,
|
|
63623
|
+
F$5.reInspectionDate
|
|
63624
|
+
];
|
|
63625
|
+
const AUTO_LOAD_READONLY_SELECT_FIELDS = [F$5.product, F$5.batch, F$5.location];
|
|
63626
|
+
const CLEAR_ON_PRODUCT_EMPTY$3 = [
|
|
63627
|
+
F$5.inventory,
|
|
63628
|
+
F$5.batch,
|
|
63629
|
+
F$5.batchLb,
|
|
63630
|
+
F$5.productName,
|
|
63631
|
+
F$5.productCode,
|
|
63632
|
+
F$5.productSpec,
|
|
63633
|
+
F$5.stock,
|
|
63634
|
+
F$5.stocktake,
|
|
63635
|
+
F$5.diff,
|
|
63636
|
+
F$5.warehouse,
|
|
63637
|
+
F$5.location,
|
|
63638
|
+
F$5.locationLb,
|
|
63639
|
+
F$5.validity,
|
|
63640
|
+
F$5.reInspectionDate
|
|
63641
|
+
];
|
|
63642
|
+
const FILL_FROM_INVENTORY_OPTION$1 = [
|
|
63643
|
+
{ optionField: "id_", toField: F$5.inventory },
|
|
63644
|
+
{ optionField: "product_id_name_", toField: F$5.productName },
|
|
63645
|
+
{ optionField: "product_id_code_", toField: F$5.productCode },
|
|
63646
|
+
{ optionField: "product_id_spec_", toField: F$5.productSpec },
|
|
63647
|
+
{ optionField: "production_identification_id_", toField: F$5.batch },
|
|
63648
|
+
{ optionField: "warehouse_id_", toField: F$5.warehouse },
|
|
63649
|
+
{ optionField: "location_id_", toField: F$5.location },
|
|
63650
|
+
{ optionField: "stock_num_", toField: F$5.stock },
|
|
63651
|
+
{ optionField: "validate_", toField: F$5.validity },
|
|
63652
|
+
{ optionField: "re_inspection_date_", toField: F$5.reInspectionDate }
|
|
63653
|
+
];
|
|
63654
|
+
const STOCKTAKE_DERIVED_WATCH_FIELDS$1 = [F$5.stocktake, F$5.stock];
|
|
63655
|
+
const WAREHOUSE_IDENTITY_GROUP_KEYS = [F$5.batch, F$5.product, F$5.warehouse];
|
|
63656
|
+
const SCAN_MERGE_GROUP_KEYS = [F$5.batch, F$5.product, F$5.warehouse, F$5.location];
|
|
63657
|
+
const INVENTORY_BASE_FIELDS = [
|
|
63658
|
+
F$5.batch,
|
|
63659
|
+
F$5.product,
|
|
63660
|
+
F$5.productName,
|
|
63661
|
+
F$5.productCode,
|
|
63662
|
+
F$5.productSpec,
|
|
63663
|
+
F$5.warehouse
|
|
63664
|
+
];
|
|
63665
|
+
const fields$5 = [
|
|
63666
|
+
{
|
|
63667
|
+
match: { fieldKey: [...DESIGN_DISABLED_INPUT_FIELDS] },
|
|
63668
|
+
defaultProps: {
|
|
63669
|
+
disabled: true,
|
|
63670
|
+
fieldDisabled: true,
|
|
63671
|
+
required: false
|
|
63672
|
+
}
|
|
63673
|
+
},
|
|
63674
|
+
{
|
|
63675
|
+
// 实盘数量:设计态默认开启最小值 0 校验(与 Word 对齐)
|
|
63676
|
+
match: { fieldKey: F$5.stocktake },
|
|
63677
|
+
defaultProps: {
|
|
63678
|
+
enableRangeValidate: true,
|
|
63679
|
+
minValidateMode: RangeValidateMode.Fixed_Number,
|
|
63680
|
+
minValue: 0
|
|
63681
|
+
}
|
|
63682
|
+
}
|
|
63683
|
+
];
|
|
63684
|
+
const TABLE_TYPE$9 = "warehouse-inventory";
|
|
63685
|
+
const profile$9 = {
|
|
63686
|
+
type: TABLE_TYPE$9,
|
|
63687
|
+
label: "库存盘点表",
|
|
63688
|
+
labelKey: "sys.pageDesigner.fieldCmp.stocktake",
|
|
63689
|
+
category: "business",
|
|
63690
|
+
ribbonAction: "warehouse-inventory",
|
|
63691
|
+
ribbonGroup: "仓储",
|
|
63692
|
+
icon: "warehouse-inventory",
|
|
63693
|
+
enabled: true,
|
|
63694
|
+
match: {
|
|
63695
|
+
fieldType: "master_slave",
|
|
63696
|
+
refModelType: "STOCKTAKE",
|
|
63697
|
+
tableType: SubTableType.STOCKTAKE
|
|
63698
|
+
},
|
|
63699
|
+
defaultWidgetProps: {
|
|
63700
|
+
autoLoadStock: false
|
|
63701
|
+
},
|
|
63702
|
+
fields: fields$5,
|
|
63703
|
+
contextAssignments: [
|
|
63704
|
+
{ when: "onRowInit", fieldKey: F$5.warehouse, paramKey: "warehouseId", onlyIfEmpty: true }
|
|
63705
|
+
],
|
|
63706
|
+
rowHandlers: [
|
|
63707
|
+
{ when: "onFieldChange", watch: [F$5.product], handler: "on-product-id-change" },
|
|
63708
|
+
{
|
|
63709
|
+
when: "onFieldChange",
|
|
63710
|
+
watch: [...STOCKTAKE_DERIVED_WATCH_FIELDS$1],
|
|
63711
|
+
handler: "stocktake-derived"
|
|
63712
|
+
}
|
|
63713
|
+
],
|
|
63714
|
+
runtimeRules: [
|
|
63715
|
+
{
|
|
63716
|
+
fields: [...READONLY_INFO_FIELDS],
|
|
63717
|
+
effect: { disabled: true }
|
|
63718
|
+
}
|
|
63719
|
+
],
|
|
63720
|
+
theme: {
|
|
63721
|
+
color: "#524CAA",
|
|
63722
|
+
background: "rgba(82,76,170,0.2)",
|
|
63723
|
+
labelBjColor: "rgba(82,76,170,0.8)"
|
|
63724
|
+
}
|
|
63725
|
+
};
|
|
63726
|
+
function isBlank$6(value) {
|
|
63727
|
+
return value === void 0 || value === null || value === "";
|
|
63728
|
+
}
|
|
63729
|
+
function toNumber$2(value, fallback = 0) {
|
|
63730
|
+
const num = Number(value);
|
|
63731
|
+
return Number.isNaN(num) ? fallback : num;
|
|
63732
|
+
}
|
|
63733
|
+
const STOCKTAKE_STATUS_I18N$1 = {
|
|
63734
|
+
waiting: "sys.edhr.stocktakeStatusEnum.waiting",
|
|
63735
|
+
surplus: "sys.edhr.stocktakeStatusEnum.surplus",
|
|
63736
|
+
loss: "sys.edhr.stocktakeStatusEnum.loss",
|
|
63737
|
+
equals: "sys.edhr.stocktakeStatusEnum.equals"
|
|
63738
|
+
};
|
|
63739
|
+
function handleProductIdChange$2(ctx) {
|
|
63740
|
+
if (!isBlank$6(ctx.rowData[F$5.product])) return;
|
|
63741
|
+
for (const fieldKey of CLEAR_ON_PRODUCT_EMPTY$3) {
|
|
63742
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63743
|
+
}
|
|
63744
|
+
}
|
|
63745
|
+
function refreshStocktakeDerivedFields$1(ctx) {
|
|
63746
|
+
const rowData = ctx.rowData;
|
|
63747
|
+
const stocktakeNum = rowData[F$5.stocktake];
|
|
63748
|
+
const stockNum = rowData[F$5.stock];
|
|
63749
|
+
let diff;
|
|
63750
|
+
if (isBlank$6(stocktakeNum)) {
|
|
63751
|
+
diff = void 0;
|
|
63752
|
+
} else {
|
|
63753
|
+
const stocktake = toNumber$2(stocktakeNum);
|
|
63754
|
+
diff = Number.isNaN(stocktake) ? void 0 : stocktake - toNumber$2(stockNum);
|
|
63755
|
+
}
|
|
63756
|
+
let status;
|
|
63757
|
+
if (diff == null) status = "waiting";
|
|
63758
|
+
else if (diff > 0) status = "surplus";
|
|
63759
|
+
else if (diff < 0) status = "loss";
|
|
63760
|
+
else status = "equals";
|
|
63761
|
+
const statusLabel = STOCKTAKE_STATUS_I18N$1[status];
|
|
63762
|
+
rowData[F$5.diff] = diff;
|
|
63763
|
+
rowData[F$5.stocktakeStatus] = status;
|
|
63764
|
+
rowData[F$5.stocktakeStatusLb] = typeof $t === "function" ? $t(statusLabel) : statusLabel;
|
|
63765
|
+
}
|
|
63766
|
+
registerRowHandler(TABLE_TYPE$9, "on-product-id-change", ({ rowData }) => {
|
|
63767
|
+
handleProductIdChange$2({ rowData });
|
|
63768
|
+
refreshStocktakeDerivedFields$1({ rowData });
|
|
63769
|
+
});
|
|
63770
|
+
registerRowHandler(TABLE_TYPE$9, "stocktake-derived", ({ rowData }) => {
|
|
63771
|
+
refreshStocktakeDerivedFields$1({ rowData });
|
|
63772
|
+
});
|
|
63773
|
+
const F$4 = {
|
|
63774
|
+
/** 库存列表 id */
|
|
63775
|
+
inventory: "inventory_id_",
|
|
63776
|
+
/** 备件 */
|
|
63777
|
+
part: "part_id_",
|
|
63778
|
+
/** 备件 id(展示 / 文本) */
|
|
63779
|
+
partLb: "part_id__lb_",
|
|
63780
|
+
/** 备件名称 */
|
|
63781
|
+
partName: "part_id_name_",
|
|
63782
|
+
/** 备件编码 */
|
|
63783
|
+
partCode: "part_id_code_",
|
|
63784
|
+
/** 备件规格 */
|
|
63785
|
+
partSpec: "part_id_spec_",
|
|
63786
|
+
/** 库存数量 */
|
|
63787
|
+
stock: "stock_num_",
|
|
63788
|
+
/** 盘点数量 */
|
|
63789
|
+
stocktake: "stocktake_num_",
|
|
63790
|
+
/** 差异数量 */
|
|
63791
|
+
diff: "diff_num_",
|
|
63792
|
+
/** 数量单位 */
|
|
63793
|
+
qtyUom: "qty_uom_id_",
|
|
63794
|
+
/** 盘点状态 */
|
|
63795
|
+
stocktakeStatus: "stocktake_status_",
|
|
63796
|
+
stocktakeStatusLb: "stocktake_status__lb_",
|
|
63797
|
+
/** 仓库 */
|
|
63798
|
+
warehouse: "warehouse_id_",
|
|
63799
|
+
/** 库区 */
|
|
63800
|
+
storageZone: "storage_zone_id_",
|
|
63801
|
+
/** 库位 */
|
|
63802
|
+
location: "location_id_"
|
|
63803
|
+
};
|
|
63804
|
+
const DISABLED_INPUT_FIELDS$4 = [
|
|
63805
|
+
F$4.inventory,
|
|
63806
|
+
F$4.partLb,
|
|
63807
|
+
F$4.partName,
|
|
63808
|
+
F$4.partCode,
|
|
63809
|
+
F$4.partSpec,
|
|
63810
|
+
F$4.stock,
|
|
63811
|
+
F$4.diff,
|
|
63812
|
+
F$4.qtyUom,
|
|
63813
|
+
F$4.stocktakeStatus,
|
|
63814
|
+
F$4.warehouse,
|
|
63815
|
+
F$4.storageZone,
|
|
63816
|
+
F$4.location
|
|
63817
|
+
];
|
|
63818
|
+
const CLEAR_ON_PART_EMPTY$1 = [
|
|
63819
|
+
F$4.inventory,
|
|
63820
|
+
F$4.partName,
|
|
63821
|
+
F$4.partCode,
|
|
63822
|
+
F$4.partSpec,
|
|
63823
|
+
F$4.stock,
|
|
63824
|
+
F$4.stocktake,
|
|
63825
|
+
F$4.diff,
|
|
63826
|
+
F$4.qtyUom,
|
|
63827
|
+
F$4.warehouse,
|
|
63828
|
+
F$4.storageZone,
|
|
63829
|
+
F$4.location
|
|
63830
|
+
];
|
|
63831
|
+
const STOCKTAKE_DERIVED_WATCH_FIELDS = [F$4.stocktake, F$4.stock];
|
|
63832
|
+
const fields$4 = [
|
|
63833
|
+
{
|
|
63834
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$4] },
|
|
63835
|
+
defaultProps: {
|
|
63836
|
+
disabled: true,
|
|
63837
|
+
fieldDisabled: true,
|
|
63838
|
+
required: false
|
|
63839
|
+
}
|
|
63840
|
+
}
|
|
63841
|
+
];
|
|
63842
|
+
const TABLE_TYPE$8 = "part-stocktake";
|
|
63843
|
+
const profile$8 = {
|
|
63844
|
+
type: TABLE_TYPE$8,
|
|
63845
|
+
label: "库存盘点表",
|
|
63846
|
+
labelKey: "sys.pageDesigner.fieldCmp.part_stocktake",
|
|
63847
|
+
category: "business",
|
|
63848
|
+
ribbonAction: "part-stocktake",
|
|
63849
|
+
ribbonGroup: "备件",
|
|
63850
|
+
ribbonSuites: ["EQM"],
|
|
63851
|
+
icon: "part-stocktake",
|
|
63852
|
+
enabled: true,
|
|
63853
|
+
match: {
|
|
63854
|
+
fieldType: "master_slave",
|
|
63855
|
+
refModelType: "PART_STOCKTAKE",
|
|
63856
|
+
tableType: SubTableType.PART_STOCKTAKE
|
|
63857
|
+
},
|
|
63858
|
+
fields: fields$4,
|
|
63859
|
+
rowHandlers: [
|
|
63860
|
+
{ when: "onFieldChange", watch: [F$4.part], handler: "on-part-id-change" },
|
|
63861
|
+
{
|
|
63862
|
+
when: "onFieldChange",
|
|
63863
|
+
watch: [...STOCKTAKE_DERIVED_WATCH_FIELDS],
|
|
63864
|
+
handler: "stocktake-derived"
|
|
63865
|
+
}
|
|
63866
|
+
],
|
|
63867
|
+
runtimeRules: [
|
|
63868
|
+
{
|
|
63869
|
+
fields: [...DISABLED_INPUT_FIELDS$4],
|
|
63870
|
+
effect: { disabled: true }
|
|
63871
|
+
}
|
|
63872
|
+
],
|
|
63873
|
+
theme: {
|
|
63874
|
+
color: "#524CAA",
|
|
63875
|
+
background: "rgba(82,76,170,0.2)",
|
|
63876
|
+
labelBjColor: "rgba(82,76,170,0.8)"
|
|
63877
|
+
}
|
|
63878
|
+
};
|
|
63879
|
+
function isBlank$5(value) {
|
|
63880
|
+
return value === void 0 || value === null || value === "";
|
|
63881
|
+
}
|
|
63882
|
+
function toNumber$1(value, fallback = 0) {
|
|
63883
|
+
const num = Number(value);
|
|
63884
|
+
return Number.isNaN(num) ? fallback : num;
|
|
63885
|
+
}
|
|
63886
|
+
const STOCKTAKE_STATUS_I18N = {
|
|
63887
|
+
waiting: "sys.edhr.stocktakeStatusEnum.waiting",
|
|
63888
|
+
surplus: "sys.edhr.stocktakeStatusEnum.surplus",
|
|
63889
|
+
loss: "sys.edhr.stocktakeStatusEnum.loss",
|
|
63890
|
+
equals: "sys.edhr.stocktakeStatusEnum.equals"
|
|
63891
|
+
};
|
|
63892
|
+
function handlePartIdChange$1(ctx) {
|
|
63893
|
+
if (!isBlank$5(ctx.rowData[F$4.part])) return;
|
|
63894
|
+
for (const fieldKey of CLEAR_ON_PART_EMPTY$1) {
|
|
63895
|
+
ctx.rowData[fieldKey] = void 0;
|
|
63896
|
+
}
|
|
63897
|
+
refreshStocktakeDerivedFields(ctx);
|
|
63898
|
+
}
|
|
63899
|
+
function refreshStocktakeDerivedFields(ctx) {
|
|
63900
|
+
const rowData = ctx.rowData;
|
|
63901
|
+
const stocktakeNum = rowData[F$4.stocktake];
|
|
63902
|
+
const stockNum = rowData[F$4.stock];
|
|
63903
|
+
let diff;
|
|
63904
|
+
if (isBlank$5(stocktakeNum)) {
|
|
63905
|
+
diff = void 0;
|
|
63906
|
+
} else {
|
|
63907
|
+
const stocktake = toNumber$1(stocktakeNum);
|
|
63908
|
+
diff = Number.isNaN(stocktake) ? void 0 : stocktake - toNumber$1(stockNum);
|
|
63909
|
+
}
|
|
63910
|
+
let status;
|
|
63911
|
+
if (diff == null) status = "waiting";
|
|
63912
|
+
else if (diff > 0) status = "surplus";
|
|
63913
|
+
else if (diff < 0) status = "loss";
|
|
63914
|
+
else status = "equals";
|
|
63915
|
+
const statusLabel = STOCKTAKE_STATUS_I18N[status];
|
|
63916
|
+
rowData[F$4.diff] = diff;
|
|
63917
|
+
rowData[F$4.stocktakeStatus] = status;
|
|
63918
|
+
rowData[F$4.stocktakeStatusLb] = typeof $t === "function" ? $t(statusLabel) : statusLabel;
|
|
63919
|
+
}
|
|
63920
|
+
registerRowHandler(TABLE_TYPE$8, "on-part-id-change", ({ rowData }) => {
|
|
63921
|
+
handlePartIdChange$1({ rowData });
|
|
63922
|
+
});
|
|
63923
|
+
registerRowHandler(TABLE_TYPE$8, "stocktake-derived", ({ rowData }) => {
|
|
63924
|
+
refreshStocktakeDerivedFields({ rowData });
|
|
63925
|
+
});
|
|
63926
|
+
const F$3 = {
|
|
63927
|
+
/** 库存列表 id */
|
|
63928
|
+
inventory: "inventory_id_",
|
|
63929
|
+
/** 备件 */
|
|
63930
|
+
part: "part_id_",
|
|
63931
|
+
/** 备件名称 */
|
|
63932
|
+
partName: "part_id_name_",
|
|
63933
|
+
/** 备件编码 */
|
|
63934
|
+
partCode: "part_id_code_",
|
|
63935
|
+
/** 备件规格 */
|
|
63936
|
+
partSpec: "part_id_spec_",
|
|
63937
|
+
/** 数量单位 */
|
|
63938
|
+
qtyUom: "qty_uom_id_",
|
|
63939
|
+
/** 库存数量 */
|
|
63940
|
+
stock: "stock_num_",
|
|
63941
|
+
/** 仓库 */
|
|
63942
|
+
warehouse: "warehouse_id_",
|
|
63943
|
+
/** 库区 */
|
|
63944
|
+
storageZone: "storage_zone_id_",
|
|
63945
|
+
/** 库位 */
|
|
63946
|
+
location: "location_id_"
|
|
63947
|
+
};
|
|
63948
|
+
const DISABLED_INPUT_FIELDS$3 = [
|
|
63949
|
+
F$3.inventory,
|
|
63950
|
+
F$3.partName,
|
|
63951
|
+
F$3.partCode,
|
|
63952
|
+
F$3.partSpec,
|
|
63953
|
+
F$3.qtyUom,
|
|
63954
|
+
F$3.stock,
|
|
63955
|
+
F$3.warehouse,
|
|
63956
|
+
F$3.storageZone,
|
|
63957
|
+
F$3.location
|
|
63958
|
+
];
|
|
63959
|
+
const CLEAR_ON_PART_EMPTY = [
|
|
63960
|
+
F$3.inventory,
|
|
63961
|
+
F$3.partName,
|
|
63962
|
+
F$3.partCode,
|
|
63963
|
+
F$3.partSpec,
|
|
63964
|
+
F$3.qtyUom,
|
|
63965
|
+
F$3.stock,
|
|
63966
|
+
F$3.warehouse,
|
|
63967
|
+
F$3.storageZone,
|
|
63968
|
+
F$3.location
|
|
63969
|
+
];
|
|
63970
|
+
const fields$3 = [
|
|
63971
|
+
{
|
|
63972
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$3] },
|
|
63973
|
+
defaultProps: {
|
|
63974
|
+
disabled: true,
|
|
63975
|
+
fieldDisabled: true,
|
|
63976
|
+
required: false
|
|
63977
|
+
}
|
|
63978
|
+
}
|
|
63979
|
+
];
|
|
63980
|
+
const TABLE_TYPE$7 = "device-part-consume";
|
|
63981
|
+
const profile$7 = {
|
|
63982
|
+
type: TABLE_TYPE$7,
|
|
63983
|
+
label: "备件消耗表",
|
|
63984
|
+
labelKey: "sys.pageDesigner.fieldCmp.device_part_consume",
|
|
63985
|
+
category: "business",
|
|
63986
|
+
ribbonAction: "device-part-consume",
|
|
63987
|
+
ribbonGroup: "备件",
|
|
63988
|
+
ribbonSuites: ["EQM"],
|
|
63989
|
+
icon: "device-part-consume",
|
|
63990
|
+
enabled: true,
|
|
63991
|
+
match: {
|
|
63992
|
+
fieldType: "master_slave",
|
|
63993
|
+
refModelType: "DEVICE_PART_CONSUME",
|
|
63994
|
+
tableType: SubTableType.DEVICE_PART_CONSUME
|
|
63995
|
+
},
|
|
63996
|
+
fields: fields$3,
|
|
63997
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$3.part], handler: "on-part-id-change" }],
|
|
63998
|
+
runtimeRules: [
|
|
63999
|
+
{
|
|
64000
|
+
fields: [...DISABLED_INPUT_FIELDS$3],
|
|
64001
|
+
effect: { disabled: true }
|
|
64002
|
+
}
|
|
64003
|
+
],
|
|
64004
|
+
theme: {
|
|
64005
|
+
color: "#4891B3",
|
|
64006
|
+
background: "rgba(72,145,179,0.2)",
|
|
64007
|
+
labelBjColor: "rgba(72,145,179,0.8)"
|
|
64008
|
+
}
|
|
64009
|
+
};
|
|
64010
|
+
function isBlank$4(value) {
|
|
64011
|
+
return value === void 0 || value === null || value === "";
|
|
64012
|
+
}
|
|
64013
|
+
function handlePartIdChange(ctx) {
|
|
64014
|
+
if (!isBlank$4(ctx.rowData[F$3.part])) return;
|
|
64015
|
+
for (const fieldKey of CLEAR_ON_PART_EMPTY) {
|
|
64016
|
+
ctx.rowData[fieldKey] = void 0;
|
|
64017
|
+
}
|
|
64018
|
+
}
|
|
64019
|
+
registerRowHandler(TABLE_TYPE$7, "on-part-id-change", ({ rowData }) => {
|
|
64020
|
+
handlePartIdChange({ rowData });
|
|
64021
|
+
});
|
|
64022
|
+
const F$2 = {
|
|
64023
|
+
/** 库存主键(选物料时写 option.id_,用于唯一回显) */
|
|
64024
|
+
inventory: "inventory_id_",
|
|
64025
|
+
/** 物料 */
|
|
64026
|
+
product: "product_id_",
|
|
64027
|
+
/** 物料名称 */
|
|
64028
|
+
productName: "product_id_name_",
|
|
64029
|
+
/** 物料编码 */
|
|
64030
|
+
productCode: "product_id_code_",
|
|
64031
|
+
/** 物料规格 */
|
|
64032
|
+
productSpec: "product_id_spec_",
|
|
64033
|
+
/** 物料批号 */
|
|
64034
|
+
batch: "production_identification_id_",
|
|
64035
|
+
/** 源仓库 */
|
|
64036
|
+
originWarehouse: "origin_warehouse_id_",
|
|
64037
|
+
/** 源库位 */
|
|
64038
|
+
originLocation: "origin_location_id_",
|
|
64039
|
+
/** 目标仓库 */
|
|
64040
|
+
warehouse: "warehouse_id_",
|
|
64041
|
+
/** 目标库位 */
|
|
64042
|
+
location: "location_id_",
|
|
64043
|
+
/** 库存数量 */
|
|
64044
|
+
stock: "stock_num_",
|
|
64045
|
+
/** 调拨数量 */
|
|
64046
|
+
allocateNum: "allocate_num_",
|
|
64047
|
+
/** 工单 */
|
|
64048
|
+
mfgOrder: "mfg_order_id_",
|
|
64049
|
+
/** 批次/SN */
|
|
64050
|
+
lotSn: "lot_sn_id_",
|
|
64051
|
+
/** 有效期 */
|
|
64052
|
+
validity: "validity_",
|
|
64053
|
+
/** 复检日期 */
|
|
64054
|
+
reInspectionDate: "re_inspection_date_"
|
|
64055
|
+
};
|
|
64056
|
+
const DISABLED_INPUT_FIELDS$2 = [
|
|
64057
|
+
F$2.productName,
|
|
64058
|
+
F$2.productCode,
|
|
64059
|
+
F$2.productSpec,
|
|
64060
|
+
F$2.batch,
|
|
64061
|
+
F$2.originWarehouse,
|
|
64062
|
+
F$2.originLocation,
|
|
64063
|
+
F$2.mfgOrder,
|
|
64064
|
+
F$2.lotSn,
|
|
64065
|
+
F$2.stock,
|
|
64066
|
+
F$2.validity,
|
|
64067
|
+
F$2.reInspectionDate
|
|
64068
|
+
];
|
|
64069
|
+
const CLEAR_ON_PRODUCT_EMPTY$2 = [
|
|
64070
|
+
F$2.inventory,
|
|
64071
|
+
F$2.productName,
|
|
64072
|
+
F$2.productCode,
|
|
64073
|
+
F$2.productSpec,
|
|
64074
|
+
F$2.batch,
|
|
64075
|
+
F$2.originWarehouse,
|
|
64076
|
+
F$2.originLocation,
|
|
64077
|
+
F$2.warehouse,
|
|
64078
|
+
F$2.location,
|
|
64079
|
+
F$2.mfgOrder,
|
|
64080
|
+
F$2.lotSn,
|
|
64081
|
+
F$2.stock,
|
|
64082
|
+
F$2.allocateNum,
|
|
64083
|
+
F$2.validity,
|
|
64084
|
+
F$2.reInspectionDate
|
|
64085
|
+
];
|
|
64086
|
+
const FILL_FROM_INVENTORY_OPTION = [
|
|
64087
|
+
{ optionField: "id_", toField: F$2.inventory },
|
|
64088
|
+
{ optionField: "product_id_name_", toField: F$2.productName },
|
|
64089
|
+
{ optionField: "product_id_code_", toField: F$2.productCode },
|
|
64090
|
+
{ optionField: "product_id_spec_", toField: F$2.productSpec },
|
|
64091
|
+
{ optionField: "production_identification_id_", toField: F$2.batch },
|
|
64092
|
+
{ optionField: "warehouse_id_", toField: F$2.originWarehouse },
|
|
64093
|
+
{ optionField: "location_id_", toField: F$2.originLocation },
|
|
64094
|
+
{ optionField: "mfg_order_id_", toField: F$2.mfgOrder },
|
|
64095
|
+
{ optionField: "lot_sn_id_", toField: F$2.lotSn },
|
|
64096
|
+
{ optionField: "stock_num_", toField: F$2.stock },
|
|
64097
|
+
{ optionField: "validate_", toField: F$2.validity },
|
|
64098
|
+
{ optionField: "re_inspection_date_", toField: F$2.reInspectionDate }
|
|
64099
|
+
];
|
|
64100
|
+
const fields$2 = [
|
|
64101
|
+
{
|
|
64102
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$2] },
|
|
64103
|
+
defaultProps: {
|
|
64104
|
+
disabled: true,
|
|
64105
|
+
fieldDisabled: true,
|
|
64106
|
+
required: false
|
|
64107
|
+
}
|
|
64108
|
+
}
|
|
64109
|
+
];
|
|
64110
|
+
const TABLE_TYPE$6 = "warehouse-allocate";
|
|
64111
|
+
const profile$6 = {
|
|
64112
|
+
type: TABLE_TYPE$6,
|
|
64113
|
+
label: "库存调拨表",
|
|
64114
|
+
labelKey: "sys.pageDesigner.fieldCmp.allocate",
|
|
64115
|
+
category: "business",
|
|
64116
|
+
ribbonAction: "warehouse-allocate",
|
|
64117
|
+
ribbonGroup: "仓储",
|
|
64118
|
+
icon: "warehouse-allocate",
|
|
64119
|
+
enabled: true,
|
|
64120
|
+
match: {
|
|
64121
|
+
fieldType: "master_slave",
|
|
64122
|
+
refModelType: "ALLOCATE",
|
|
64123
|
+
tableType: SubTableType.ALLOCATE
|
|
64124
|
+
},
|
|
64125
|
+
fields: fields$2,
|
|
64126
|
+
contextAssignments: [
|
|
64127
|
+
{ when: "onRowInit", fieldKey: F$2.originWarehouse, paramKey: "warehouseId", onlyIfEmpty: true },
|
|
64128
|
+
{ when: "onRowInit", fieldKey: F$2.mfgOrder, paramKey: "mfgOrderId", onlyIfEmpty: true },
|
|
64129
|
+
{ when: "onRowInit", fieldKey: F$2.lotSn, paramKey: "lotSnId", onlyIfEmpty: true }
|
|
64130
|
+
],
|
|
64131
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$2.product], handler: "on-product-id-change" }],
|
|
64132
|
+
runtimeRules: [
|
|
64133
|
+
{
|
|
64134
|
+
fields: [...DISABLED_INPUT_FIELDS$2],
|
|
64135
|
+
effect: { disabled: true }
|
|
64136
|
+
}
|
|
64137
|
+
],
|
|
64138
|
+
theme: {
|
|
64139
|
+
color: "#DE45F5",
|
|
64140
|
+
background: "rgba(222,69,245,0.2)",
|
|
64141
|
+
labelBjColor: "rgba(222,69,245,0.8)"
|
|
64142
|
+
}
|
|
64143
|
+
};
|
|
64144
|
+
function isBlank$3(value) {
|
|
64145
|
+
return value === void 0 || value === null || value === "";
|
|
64146
|
+
}
|
|
64147
|
+
function handleProductIdChange$1(ctx) {
|
|
64148
|
+
if (!isBlank$3(ctx.rowData[F$2.product])) return;
|
|
64149
|
+
for (const fieldKey of CLEAR_ON_PRODUCT_EMPTY$2) {
|
|
64150
|
+
ctx.rowData[fieldKey] = void 0;
|
|
64151
|
+
}
|
|
64152
|
+
}
|
|
64153
|
+
registerRowHandler(TABLE_TYPE$6, "on-product-id-change", ({ rowData }) => {
|
|
64154
|
+
handleProductIdChange$1({ rowData });
|
|
64155
|
+
});
|
|
64156
|
+
const TABLE_TYPE$5 = "material-consume";
|
|
64157
|
+
const profile$5 = {
|
|
64158
|
+
type: TABLE_TYPE$5,
|
|
64159
|
+
label: "物料消耗表",
|
|
64160
|
+
labelKey: "sys.onlineForm.subTableType.MATERIAL_CONSUMPTION",
|
|
64161
|
+
category: "business",
|
|
64162
|
+
ribbonAction: "material-consume",
|
|
64163
|
+
ribbonGroup: "物料",
|
|
64164
|
+
icon: "material-consume",
|
|
64165
|
+
enabled: true,
|
|
64166
|
+
match: {
|
|
64167
|
+
fieldType: "master_slave",
|
|
64168
|
+
refModelType: "MATERIAL_CONSUME",
|
|
64169
|
+
tableType: SubTableType.MATERIAL_CONSUMPTION
|
|
64170
|
+
},
|
|
64171
|
+
theme: {
|
|
64172
|
+
color: "#4891B3",
|
|
64173
|
+
background: "rgba(72,145,179,0.2)",
|
|
64174
|
+
labelBjColor: "rgba(72,145,179,0.8)"
|
|
64175
|
+
}
|
|
64176
|
+
};
|
|
64177
|
+
const TABLE_TYPE$4 = "material-balance";
|
|
64178
|
+
const profile$4 = {
|
|
64179
|
+
type: TABLE_TYPE$4,
|
|
64180
|
+
label: "物料平衡表",
|
|
64181
|
+
labelKey: "sys.onlineForm.subTableType.MATERIAL_BALANCE",
|
|
64182
|
+
category: "business",
|
|
64183
|
+
ribbonAction: "material-balance",
|
|
64184
|
+
ribbonGroup: "物料",
|
|
64185
|
+
icon: "material-balance",
|
|
64186
|
+
enabled: true,
|
|
64187
|
+
match: {
|
|
64188
|
+
fieldType: "master_slave",
|
|
64189
|
+
refModelType: "MATERIAL_BALANCE",
|
|
64190
|
+
tableType: SubTableType.MATERIAL_BALANCE
|
|
64191
|
+
},
|
|
64192
|
+
theme: {
|
|
64193
|
+
color: "#6FB38B",
|
|
64194
|
+
background: "rgba(111,179,139,0.2)",
|
|
64195
|
+
labelBjColor: "rgba(111,179,139,0.8)"
|
|
64196
|
+
}
|
|
64197
|
+
};
|
|
64198
|
+
const F$1 = {
|
|
64199
|
+
/** 物料 */
|
|
64200
|
+
product: "product_id_",
|
|
64201
|
+
/** 物料名称 */
|
|
64202
|
+
productName: "product_id_name_",
|
|
64203
|
+
/** 物料编码 */
|
|
64204
|
+
productCode: "product_id_code_",
|
|
64205
|
+
/** 物料规格 */
|
|
64206
|
+
productSpec: "product_id_spec_",
|
|
64207
|
+
/** 工单 */
|
|
64208
|
+
mfgOrder: "mfg_order_id_",
|
|
64209
|
+
/** 批次/SN */
|
|
64210
|
+
lotSn: "lot_sn_id_"
|
|
64211
|
+
};
|
|
64212
|
+
const DISABLED_INPUT_FIELDS$1 = [F$1.productName, F$1.productCode, F$1.productSpec];
|
|
64213
|
+
const CLEAR_ON_PRODUCT_EMPTY$1 = [F$1.productName, F$1.productCode, F$1.productSpec];
|
|
64214
|
+
const fields$1 = [
|
|
64215
|
+
{
|
|
64216
|
+
match: { fieldKey: F$1.product },
|
|
64217
|
+
autofillTemplates: [
|
|
64218
|
+
{
|
|
64219
|
+
fromField: "name_",
|
|
64220
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_name_`
|
|
64221
|
+
},
|
|
64222
|
+
{
|
|
64223
|
+
fromField: "code_",
|
|
64224
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_code_`
|
|
64225
|
+
},
|
|
64226
|
+
{
|
|
64227
|
+
fromField: "spec_",
|
|
64228
|
+
toField: ({ sourceFieldKey }) => `${normalizeRefFieldKey(sourceFieldKey)}_spec_`
|
|
64229
|
+
}
|
|
64230
|
+
]
|
|
64231
|
+
},
|
|
64232
|
+
{
|
|
64233
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS$1] },
|
|
64234
|
+
defaultProps: {
|
|
64235
|
+
disabled: true,
|
|
64236
|
+
fieldDisabled: true,
|
|
64237
|
+
required: false
|
|
64238
|
+
}
|
|
64239
|
+
}
|
|
64240
|
+
];
|
|
64241
|
+
const TABLE_TYPE$3 = "material-requisition";
|
|
64242
|
+
const profile$3 = {
|
|
64243
|
+
type: TABLE_TYPE$3,
|
|
64244
|
+
label: "生产收料表",
|
|
64245
|
+
labelKey: "sys.pageDesigner.fieldCmp.material_requisition",
|
|
64246
|
+
category: "business",
|
|
64247
|
+
ribbonAction: "material-requisition",
|
|
64248
|
+
ribbonGroup: "生产",
|
|
64249
|
+
icon: "material-requisition",
|
|
64250
|
+
enabled: true,
|
|
64251
|
+
match: {
|
|
64252
|
+
fieldType: "master_slave",
|
|
64253
|
+
refModelType: "MATERIAL_REQUISITION",
|
|
64254
|
+
tableType: SubTableType.MATERIAL_REQUISITION
|
|
64255
|
+
},
|
|
64256
|
+
fields: fields$1,
|
|
64257
|
+
contextAssignments: [
|
|
64258
|
+
{ when: "onRowInit", fieldKey: F$1.mfgOrder, paramKey: "mfgOrderId", onlyIfEmpty: true },
|
|
64259
|
+
{ when: "onRowInit", fieldKey: F$1.lotSn, paramKey: "lotSnId", onlyIfEmpty: true }
|
|
64260
|
+
],
|
|
64261
|
+
rowHandlers: [{ when: "onFieldChange", watch: [F$1.product], handler: "on-product-id-change" }],
|
|
64262
|
+
runtimeRules: [
|
|
64263
|
+
{
|
|
64264
|
+
fields: [...DISABLED_INPUT_FIELDS$1],
|
|
64265
|
+
effect: { disabled: true }
|
|
64266
|
+
}
|
|
64267
|
+
],
|
|
64268
|
+
theme: {
|
|
64269
|
+
color: "#3E62D7",
|
|
64270
|
+
background: "rgba(62,98,215,0.2)",
|
|
64271
|
+
labelBjColor: "rgba(62,98,215,0.8)"
|
|
64272
|
+
}
|
|
64273
|
+
};
|
|
64274
|
+
function isBlank$2(value) {
|
|
64275
|
+
return value === void 0 || value === null || value === "";
|
|
64276
|
+
}
|
|
64277
|
+
function handleProductIdChange(ctx) {
|
|
64278
|
+
if (!isBlank$2(ctx.rowData[F$1.product])) return;
|
|
64279
|
+
for (const fieldKey of CLEAR_ON_PRODUCT_EMPTY$1) {
|
|
64280
|
+
ctx.rowData[fieldKey] = void 0;
|
|
64281
|
+
}
|
|
64282
|
+
}
|
|
64283
|
+
registerRowHandler(TABLE_TYPE$3, "on-product-id-change", ({ rowData }) => {
|
|
64284
|
+
handleProductIdChange({ rowData });
|
|
64285
|
+
});
|
|
64286
|
+
const TABLE_TYPE$2 = "entrust-steril-batch-list";
|
|
64287
|
+
const profile$2 = {
|
|
64288
|
+
type: TABLE_TYPE$2,
|
|
64289
|
+
label: "委托灭菌生产批次表",
|
|
64290
|
+
labelKey: "sys.onlineForm.subTableType.STERILIZE_BATCH",
|
|
64291
|
+
category: "business",
|
|
64292
|
+
ribbonAction: "entrust-steril-batch-list",
|
|
64293
|
+
ribbonGroup: "灭菌",
|
|
64294
|
+
icon: "entrust-steril-batch-list",
|
|
64295
|
+
enabled: true,
|
|
64296
|
+
seedTableKeyOnCreate: true,
|
|
64297
|
+
match: {
|
|
64298
|
+
fieldType: "master_slave",
|
|
64299
|
+
refModelType: "PRODUCTION_CONTAINER_LIST_4_STERILIZATION",
|
|
64300
|
+
tableType: SubTableType.STERILIZE_BATCH
|
|
64301
|
+
},
|
|
64302
|
+
theme: {
|
|
64303
|
+
color: "#2196D5",
|
|
64304
|
+
background: "rgba(33,150,213,0.2)",
|
|
64305
|
+
labelBjColor: "rgba(33,150,213,0.8)"
|
|
64306
|
+
}
|
|
64307
|
+
};
|
|
64308
|
+
const F = {
|
|
64309
|
+
/** 物料 */
|
|
64310
|
+
product: "product_id_",
|
|
64311
|
+
/** 物料名称 */
|
|
64312
|
+
productName: "product_id_name_",
|
|
64313
|
+
/** 编码 */
|
|
64314
|
+
productCode: "product_id_code_",
|
|
64315
|
+
/** 规格 */
|
|
64316
|
+
productSpec: "product_id_spec_",
|
|
64317
|
+
/** 生产批次号 */
|
|
64318
|
+
productionContainer: "production_container_id_",
|
|
64319
|
+
/** 数量 */
|
|
64320
|
+
qty: "qty_",
|
|
64321
|
+
/** 工单号 */
|
|
64322
|
+
mfgOrderCode: "mfg_order_code_",
|
|
64323
|
+
/** 工单 */
|
|
64324
|
+
mfgOrder: "mfg_order_id_",
|
|
64325
|
+
/** 生产日期 */
|
|
64326
|
+
productionDate: "production_date_",
|
|
64327
|
+
/** 物料批号 */
|
|
64328
|
+
materialContainerNo: "material_container_no_",
|
|
64329
|
+
/** 物料批号 ID(companion) */
|
|
64330
|
+
materialContainerNoId: "material_container_no__id_"
|
|
64331
|
+
};
|
|
64332
|
+
const DISABLED_INPUT_FIELDS = [F.productName, F.productCode, F.productSpec];
|
|
64333
|
+
const DESIGN_DISABLED_SELECT_FIELDS = [F.product, F.mfgOrderCode];
|
|
64334
|
+
const CLEAR_ON_MFG_ORDER_EMPTY = [
|
|
64335
|
+
F.mfgOrderCode,
|
|
64336
|
+
F.product,
|
|
64337
|
+
F.productName,
|
|
64338
|
+
F.productCode,
|
|
64339
|
+
F.productSpec,
|
|
64340
|
+
F.qty,
|
|
64341
|
+
F.productionDate
|
|
64342
|
+
];
|
|
64343
|
+
const CLEAR_ON_PROD_CONTAINER_EMPTY = [
|
|
64344
|
+
F.product,
|
|
64345
|
+
F.productName,
|
|
64346
|
+
F.productCode,
|
|
64347
|
+
F.productSpec,
|
|
64348
|
+
F.qty,
|
|
64349
|
+
F.mfgOrderCode,
|
|
64350
|
+
F.mfgOrder,
|
|
64351
|
+
F.productionDate
|
|
64352
|
+
];
|
|
64353
|
+
const CLEAR_ON_MATERIAL_CONTAINER_EMPTY = [
|
|
64354
|
+
F.product,
|
|
64355
|
+
F.productName,
|
|
64356
|
+
F.productCode,
|
|
64357
|
+
F.productSpec,
|
|
64358
|
+
F.qty,
|
|
64359
|
+
F.mfgOrderCode,
|
|
64360
|
+
F.mfgOrder,
|
|
64361
|
+
F.productionDate,
|
|
64362
|
+
F.materialContainerNoId,
|
|
64363
|
+
F.productionContainer
|
|
64364
|
+
];
|
|
64365
|
+
const CLEAR_ON_MFG_ORDER_SELECT = [
|
|
64366
|
+
F.productionContainer,
|
|
64367
|
+
F.materialContainerNo,
|
|
64368
|
+
F.materialContainerNoId
|
|
64369
|
+
];
|
|
64370
|
+
const CLEAR_ON_PROD_CONTAINER_SELECT = [
|
|
64371
|
+
F.mfgOrder,
|
|
64372
|
+
F.mfgOrderCode,
|
|
64373
|
+
F.materialContainerNo,
|
|
64374
|
+
F.materialContainerNoId
|
|
64375
|
+
];
|
|
64376
|
+
const CLEAR_ON_MATERIAL_CONTAINER_SELECT = [
|
|
64377
|
+
F.productionContainer,
|
|
64378
|
+
F.mfgOrder,
|
|
64379
|
+
F.mfgOrderCode
|
|
64380
|
+
];
|
|
64381
|
+
const CLEAR_ON_PRODUCT_EMPTY = [F.productName, F.productCode, F.productSpec];
|
|
64382
|
+
const FILL_FROM_CONTAINER_OPTION = [
|
|
64383
|
+
{ optionField: F.product, toField: F.product },
|
|
64384
|
+
{ optionField: F.productName, toField: F.productName },
|
|
64385
|
+
{ optionField: F.productCode, toField: F.productCode },
|
|
64386
|
+
{ optionField: F.productSpec, toField: F.productSpec },
|
|
64387
|
+
{ optionField: F.mfgOrder, toField: F.mfgOrder },
|
|
64388
|
+
{ optionField: F.mfgOrderCode, toField: F.mfgOrderCode },
|
|
64389
|
+
{ optionField: "real_start_date_", toField: F.productionDate },
|
|
64390
|
+
{ optionField: F.qty, toField: F.qty }
|
|
64391
|
+
];
|
|
64392
|
+
const FILL_FROM_MFG_ORDER_OPTION = [
|
|
64393
|
+
{ optionField: "id_", toField: F.mfgOrder },
|
|
64394
|
+
{ optionField: "code_", toField: F.mfgOrderCode },
|
|
64395
|
+
{ optionField: F.product, toField: F.product },
|
|
64396
|
+
{ optionField: F.productName, toField: F.productName },
|
|
64397
|
+
{ optionField: F.productCode, toField: F.productCode },
|
|
64398
|
+
{ optionField: F.productSpec, toField: F.productSpec },
|
|
64399
|
+
{ optionField: "real_start_date_", toField: F.productionDate },
|
|
64400
|
+
{ optionField: F.qty, toField: F.qty }
|
|
64401
|
+
];
|
|
64402
|
+
const FILL_FROM_PRODUCT_OPTION = [
|
|
64403
|
+
{ optionField: "name_", toField: F.productName },
|
|
64404
|
+
{ optionField: "code_", toField: F.productCode },
|
|
64405
|
+
{ optionField: "spec_", toField: F.productSpec }
|
|
64406
|
+
];
|
|
64407
|
+
function applyFillFromMapping(A, B, mapping) {
|
|
64408
|
+
const writableA = A;
|
|
64409
|
+
mapping.forEach(({ optionField, toField }) => {
|
|
64410
|
+
if (has(B, optionField)) {
|
|
64411
|
+
writableA[toField] = B[optionField];
|
|
64412
|
+
}
|
|
64413
|
+
});
|
|
64414
|
+
return A;
|
|
64415
|
+
}
|
|
64416
|
+
function applyFillFromOption(A, B) {
|
|
64417
|
+
return applyFillFromMapping(A, B, FILL_FROM_CONTAINER_OPTION);
|
|
64418
|
+
}
|
|
64419
|
+
function applyFillFromProductOption(A, B) {
|
|
64420
|
+
return applyFillFromMapping(A, B, FILL_FROM_PRODUCT_OPTION);
|
|
64421
|
+
}
|
|
64422
|
+
function applyFillFromMfgOrderOption(A, B) {
|
|
64423
|
+
applyFillFromMapping(A, B, FILL_FROM_MFG_ORDER_OPTION);
|
|
64424
|
+
const writableA = A;
|
|
64425
|
+
if (!has(B, "code_") && (B.label != null || B.__LABEL__ != null)) {
|
|
64426
|
+
writableA[F.mfgOrderCode] = B.label ?? B.__LABEL__;
|
|
64427
|
+
}
|
|
64428
|
+
return A;
|
|
64429
|
+
}
|
|
64430
|
+
function isBlank$1(value) {
|
|
64431
|
+
return value === void 0 || value === null || value === "";
|
|
64432
|
+
}
|
|
64433
|
+
function isProductManuallyEditable(rowData) {
|
|
64434
|
+
return !isBlank$1(rowData[F.materialContainerNo]) && isBlank$1(rowData[F.materialContainerNoId]);
|
|
64435
|
+
}
|
|
64436
|
+
const fields = [
|
|
64437
|
+
{
|
|
64438
|
+
match: { fieldKey: [...DISABLED_INPUT_FIELDS] },
|
|
64439
|
+
defaultProps: {
|
|
64440
|
+
disabled: true,
|
|
64441
|
+
fieldDisabled: true,
|
|
64442
|
+
required: false
|
|
64443
|
+
}
|
|
64444
|
+
},
|
|
64445
|
+
{
|
|
64446
|
+
// 物料、工单号:设计态默认禁用(物料运行态按批号条件解锁)
|
|
64447
|
+
match: { fieldKey: [...DESIGN_DISABLED_SELECT_FIELDS] },
|
|
64448
|
+
defaultProps: {
|
|
64449
|
+
disabled: true,
|
|
64450
|
+
fieldDisabled: true,
|
|
64451
|
+
required: false
|
|
64452
|
+
}
|
|
64453
|
+
}
|
|
64454
|
+
];
|
|
64455
|
+
const TABLE_TYPE$1 = "pretreatment-list";
|
|
64456
|
+
const profile$1 = {
|
|
64457
|
+
type: TABLE_TYPE$1,
|
|
64458
|
+
label: "预处理表",
|
|
64459
|
+
labelKey: "sys.onlineForm.subTableType.PRETREATMENT_LIST",
|
|
64460
|
+
category: "business",
|
|
64461
|
+
ribbonAction: "pretreatment-list",
|
|
64462
|
+
ribbonGroup: "预处理",
|
|
64463
|
+
icon: "pretreatment-list",
|
|
64464
|
+
enabled: true,
|
|
64465
|
+
seedTableKeyOnCreate: true,
|
|
64466
|
+
match: {
|
|
64467
|
+
fieldType: "master_slave",
|
|
64468
|
+
refModelType: "PRETREATMENT_LIST",
|
|
64469
|
+
tableType: SubTableType.PRETREATMENT_LIST
|
|
64470
|
+
},
|
|
64471
|
+
fields,
|
|
64472
|
+
rowHandlers: [
|
|
64473
|
+
{
|
|
64474
|
+
when: "onFieldChange",
|
|
64475
|
+
watch: [F.productionContainer],
|
|
64476
|
+
handler: "on-production-container-change"
|
|
64477
|
+
},
|
|
64478
|
+
{
|
|
64479
|
+
when: "onFieldChange",
|
|
64480
|
+
watch: [F.mfgOrder],
|
|
64481
|
+
handler: "on-mfg-order-change"
|
|
64482
|
+
},
|
|
64483
|
+
{
|
|
64484
|
+
when: "onFieldChange",
|
|
64485
|
+
watch: [F.materialContainerNo],
|
|
64486
|
+
handler: "on-material-container-no-change"
|
|
64487
|
+
},
|
|
64488
|
+
{
|
|
64489
|
+
when: "onFieldChange",
|
|
64490
|
+
watch: [F.product],
|
|
64491
|
+
handler: "on-product-change"
|
|
64492
|
+
}
|
|
64493
|
+
],
|
|
64494
|
+
runtimeRules: [
|
|
64495
|
+
{
|
|
64496
|
+
fields: [...DISABLED_INPUT_FIELDS],
|
|
64497
|
+
effect: { disabled: true }
|
|
64498
|
+
}
|
|
64499
|
+
],
|
|
64500
|
+
theme: {
|
|
64501
|
+
color: "#2121D5",
|
|
64502
|
+
background: "rgba(33,33,213,0.2)",
|
|
64503
|
+
labelBjColor: "rgba(33,33,213,0.8)"
|
|
64504
|
+
}
|
|
64505
|
+
};
|
|
64506
|
+
function isBlank(value) {
|
|
64507
|
+
return value === void 0 || value === null || value === "";
|
|
64508
|
+
}
|
|
64509
|
+
function clearFields(rowData, keys2) {
|
|
64510
|
+
for (const key of keys2) {
|
|
64511
|
+
rowData[key] = void 0;
|
|
64512
|
+
}
|
|
64513
|
+
}
|
|
64514
|
+
function handleProductionContainerChange(ctx) {
|
|
64515
|
+
const { rowData } = ctx;
|
|
64516
|
+
if (!isBlank(rowData[F.productionContainer])) {
|
|
64517
|
+
clearFields(rowData, CLEAR_ON_PROD_CONTAINER_SELECT);
|
|
64518
|
+
} else {
|
|
64519
|
+
clearFields(rowData, CLEAR_ON_PROD_CONTAINER_EMPTY);
|
|
64520
|
+
}
|
|
64521
|
+
}
|
|
64522
|
+
function handleMfgOrderChange(ctx) {
|
|
64523
|
+
const { rowData } = ctx;
|
|
64524
|
+
if (!isBlank(rowData[F.mfgOrder])) {
|
|
64525
|
+
clearFields(rowData, CLEAR_ON_MFG_ORDER_SELECT);
|
|
64526
|
+
} else {
|
|
64527
|
+
clearFields(rowData, CLEAR_ON_MFG_ORDER_EMPTY);
|
|
64528
|
+
}
|
|
64529
|
+
}
|
|
64530
|
+
function handleMaterialContainerNoChange(ctx) {
|
|
64531
|
+
const { rowData } = ctx;
|
|
64532
|
+
if (!isBlank(rowData[F.materialContainerNo])) {
|
|
64533
|
+
clearFields(rowData, CLEAR_ON_MATERIAL_CONTAINER_SELECT);
|
|
64534
|
+
} else {
|
|
64535
|
+
clearFields(rowData, CLEAR_ON_MATERIAL_CONTAINER_EMPTY);
|
|
64536
|
+
}
|
|
64537
|
+
}
|
|
64538
|
+
function handleProductChange(ctx) {
|
|
64539
|
+
if (!isBlank(ctx.rowData[F.product])) return;
|
|
64540
|
+
clearFields(ctx.rowData, CLEAR_ON_PRODUCT_EMPTY);
|
|
64541
|
+
}
|
|
64542
|
+
registerRowHandler(TABLE_TYPE$1, "on-production-container-change", ({ rowData }) => {
|
|
64543
|
+
handleProductionContainerChange({ rowData });
|
|
64544
|
+
});
|
|
64545
|
+
registerRowHandler(TABLE_TYPE$1, "on-mfg-order-change", ({ rowData }) => {
|
|
64546
|
+
handleMfgOrderChange({ rowData });
|
|
64547
|
+
});
|
|
64548
|
+
registerRowHandler(TABLE_TYPE$1, "on-material-container-no-change", ({ rowData }) => {
|
|
64549
|
+
handleMaterialContainerNoChange({ rowData });
|
|
64550
|
+
});
|
|
64551
|
+
registerRowHandler(TABLE_TYPE$1, "on-product-change", ({ rowData }) => {
|
|
64552
|
+
handleProductChange({ rowData });
|
|
64553
|
+
});
|
|
64554
|
+
const TABLE_TYPE = "check-table";
|
|
64555
|
+
const profile = {
|
|
64556
|
+
type: TABLE_TYPE,
|
|
64557
|
+
label: "检验表",
|
|
64558
|
+
labelKey: "sys.onlineForm.subTableType.CHECK",
|
|
64559
|
+
category: "business",
|
|
64560
|
+
ribbonAction: "check-table",
|
|
64561
|
+
ribbonGroup: "检验",
|
|
64562
|
+
icon: "check-table",
|
|
64563
|
+
enabled: true,
|
|
64564
|
+
seedCheckDataSourceOnCreate: true,
|
|
64565
|
+
assocColField: "optional",
|
|
64566
|
+
/** 检验行列分组引用填充默认开 */
|
|
64567
|
+
defaultWidgetProps: {
|
|
64568
|
+
autoFill: true
|
|
64569
|
+
},
|
|
64570
|
+
match: {
|
|
64571
|
+
fieldType: "master_slave",
|
|
64572
|
+
refModelType: "INSPECTION",
|
|
64573
|
+
tableType: SubTableType.CHECK
|
|
64574
|
+
},
|
|
64575
|
+
theme: {
|
|
64576
|
+
color: "#F7801F",
|
|
64577
|
+
background: "rgba(247,128,31,0.2)",
|
|
64578
|
+
labelBjColor: "rgba(247,128,31,0.8)"
|
|
64579
|
+
}
|
|
64580
|
+
};
|
|
64581
|
+
function isBusinessSubTableProfile(profile2) {
|
|
64582
|
+
return profile2.category === "business";
|
|
64583
|
+
}
|
|
64584
|
+
function isDataTableProfile(profile2) {
|
|
64585
|
+
return profile2.category === "data";
|
|
64586
|
+
}
|
|
64587
|
+
const FIXED_CREATE_TABLE_TYPES = /* @__PURE__ */ new Set([
|
|
64588
|
+
SubTableType.FIXED,
|
|
64589
|
+
SubTableType.CHECK
|
|
64590
|
+
]);
|
|
64591
|
+
function resolveCreateTargetByTableType(tableType) {
|
|
64592
|
+
if (tableType && FIXED_CREATE_TABLE_TYPES.has(tableType)) {
|
|
64593
|
+
return "fixedTables";
|
|
64594
|
+
}
|
|
64595
|
+
return "dynamicTables";
|
|
64596
|
+
}
|
|
64597
|
+
const ALL_TABLE_PROFILES = [
|
|
64598
|
+
profile$h,
|
|
64599
|
+
profile$g,
|
|
64600
|
+
profile$f,
|
|
64601
|
+
profile$b,
|
|
64602
|
+
profile$a,
|
|
64603
|
+
profile$8,
|
|
64604
|
+
profile$7,
|
|
64605
|
+
profile$d,
|
|
64606
|
+
profile$c,
|
|
64607
|
+
profile$e,
|
|
64608
|
+
// 兼容老文档,Ribbon 已隐藏
|
|
64609
|
+
profile$9,
|
|
64610
|
+
profile$6,
|
|
64611
|
+
profile$5,
|
|
64612
|
+
profile$4,
|
|
64613
|
+
profile$3,
|
|
64614
|
+
profile$2,
|
|
64615
|
+
profile$1,
|
|
64616
|
+
profile
|
|
64617
|
+
];
|
|
64618
|
+
const profileByType = new Map(
|
|
64619
|
+
ALL_TABLE_PROFILES.map((profile2) => [profile2.type, profile2])
|
|
64620
|
+
);
|
|
64621
|
+
const profileByTableType = new Map(
|
|
64622
|
+
ALL_TABLE_PROFILES.map((profile2) => [profile2.match.tableType, profile2])
|
|
64623
|
+
);
|
|
64624
|
+
const allBusinessProfiles = ALL_TABLE_PROFILES.filter(isBusinessSubTableProfile);
|
|
64625
|
+
const allBusinessRefModelTypes = new Set(allBusinessProfiles.map((p2) => p2.match.refModelType));
|
|
64626
|
+
const exclusiveBusinessProfiles = allBusinessProfiles.filter(
|
|
64627
|
+
(p2) => resolveCreateTargetByTableType(p2.match.tableType) === "dynamicTables"
|
|
64628
|
+
);
|
|
64629
|
+
const exclusiveBusinessRefModelTypes = new Set(
|
|
64630
|
+
exclusiveBusinessProfiles.map((p2) => p2.match.refModelType)
|
|
64631
|
+
);
|
|
64632
|
+
const exclusiveBusinessSubTableTypes = new Set(
|
|
64633
|
+
exclusiveBusinessProfiles.map((p2) => p2.match.tableType)
|
|
64634
|
+
);
|
|
64635
|
+
const refModelTypeToSubTableType = new Map(
|
|
64636
|
+
exclusiveBusinessProfiles.map((p2) => [p2.match.refModelType, p2.match.tableType])
|
|
64637
|
+
);
|
|
64638
|
+
function getProfilesByCategory(category) {
|
|
64639
|
+
return ALL_TABLE_PROFILES.filter((profile2) => profile2.category === category);
|
|
64640
|
+
}
|
|
64641
|
+
function getProfile(type4) {
|
|
64642
|
+
return profileByType.get(type4);
|
|
64643
|
+
}
|
|
64644
|
+
function getProfileByTableType(tableType) {
|
|
64645
|
+
if (!tableType) return void 0;
|
|
64646
|
+
return profileByTableType.get(tableType);
|
|
64647
|
+
}
|
|
64648
|
+
function getAllTableProfiles() {
|
|
64649
|
+
return ALL_TABLE_PROFILES.slice();
|
|
64650
|
+
}
|
|
64651
|
+
function getAllDataProfiles() {
|
|
64652
|
+
return getProfilesByCategory("data");
|
|
64653
|
+
}
|
|
64654
|
+
function getAllBusinessRefModelTypes() {
|
|
64655
|
+
return allBusinessRefModelTypes;
|
|
64656
|
+
}
|
|
64657
|
+
function isDynamicCreateTarget(tableType) {
|
|
64658
|
+
return resolveCreateTargetByTableType(tableType) === "dynamicTables";
|
|
64659
|
+
}
|
|
64660
|
+
function isDynamicCellSubTable(table) {
|
|
64661
|
+
if (!table.type) return false;
|
|
64662
|
+
if (isDynamicCreateTarget(table.type)) return true;
|
|
64663
|
+
const profile2 = getProfileByTableType(table.type);
|
|
64664
|
+
return resolveCreateTargetByTableType(table.type) === "fixedTables" && table.indexedTd !== true && profile2?.type === "fixed-table";
|
|
64665
|
+
}
|
|
64666
|
+
function getExclusiveBusinessTypeTokens() {
|
|
64667
|
+
return /* @__PURE__ */ new Set([...exclusiveBusinessSubTableTypes, ...exclusiveBusinessRefModelTypes]);
|
|
64668
|
+
}
|
|
64669
|
+
function getSubTableTypeByRefModelType(refModelType) {
|
|
64670
|
+
if (!refModelType) return void 0;
|
|
64671
|
+
return refModelTypeToSubTableType.get(refModelType);
|
|
64672
|
+
}
|
|
64673
|
+
function getThemeColorByTableType(tableType) {
|
|
64674
|
+
return getProfileByTableType(tableType)?.theme?.color;
|
|
64675
|
+
}
|
|
64676
|
+
const SUB_TABLE_PANEL_TYPE_NAME = {
|
|
64677
|
+
[SubTableType.DEFAULT]: "DynamicTable",
|
|
64678
|
+
[SubTableType._2D]: "_2DTable",
|
|
64679
|
+
[SubTableType.FIXED]: "FixedTable",
|
|
64680
|
+
[SubTableType.CHECK]: "CheckTable",
|
|
64681
|
+
[SubTableType.WAREHOUSE_IN]: "WarehouseInTable",
|
|
64682
|
+
[SubTableType.WAREHOUSE_OUT]: "WarehouseOutTable",
|
|
64683
|
+
[SubTableType.WAREHOUSE_IN_OUT]: "WarehouseInOutTable",
|
|
64684
|
+
[SubTableType.WAREHOUSE_INBOUND]: "WarehouseInboundTable",
|
|
64685
|
+
[SubTableType.WAREHOUSE_OUTBOUND]: "WarehouseOutboundTable",
|
|
64686
|
+
[SubTableType.PART_STOCKTAKE]: "PartStocktakeTable",
|
|
64687
|
+
[SubTableType.DEVICE_PART_CONSUME]: "DevicePartConsumeTable",
|
|
64688
|
+
[SubTableType.MATERIAL_CONSUMPTION]: "MaterialConsumptionTable",
|
|
64689
|
+
[SubTableType.MATERIAL_BALANCE]: "MaterialBalanceTable",
|
|
64690
|
+
[SubTableType.MATERIAL_REQUISITION]: "MaterialRequisitionTable",
|
|
64691
|
+
[SubTableType.STOCKTAKE]: "MaterialStocktakeTable",
|
|
64692
|
+
[SubTableType.ALLOCATE]: "MaterialAllocateTable",
|
|
64693
|
+
[SubTableType.STERILIZE_BATCH]: "SterilizeBatchTable",
|
|
64694
|
+
[SubTableType.PRETREATMENT_LIST]: "PretreatmentTable"
|
|
64695
|
+
};
|
|
64696
|
+
const ALL_SUB_TABLE_TYPES = Object.values(SubTableType);
|
|
64697
|
+
function collectPanelTypesByCreateTarget(createTarget, PanelTypeEnum) {
|
|
64698
|
+
const set2 = /* @__PURE__ */ new Set();
|
|
64699
|
+
for (const tableType of ALL_SUB_TABLE_TYPES) {
|
|
64700
|
+
if (resolveCreateTargetByTableType(tableType) !== createTarget) continue;
|
|
64701
|
+
const name2 = SUB_TABLE_PANEL_TYPE_NAME[tableType];
|
|
64702
|
+
if (name2 && name2 in PanelTypeEnum) {
|
|
64703
|
+
set2.add(PanelTypeEnum[name2]);
|
|
64704
|
+
}
|
|
64705
|
+
}
|
|
64706
|
+
return set2;
|
|
64707
|
+
}
|
|
64708
|
+
function getDynamicSubTablePanelTypes(PanelTypeEnum) {
|
|
64709
|
+
return collectPanelTypesByCreateTarget("dynamicTables", PanelTypeEnum);
|
|
64710
|
+
}
|
|
64711
|
+
function getFixedSubTablePanelTypes(PanelTypeEnum) {
|
|
64712
|
+
return collectPanelTypesByCreateTarget("fixedTables", PanelTypeEnum);
|
|
64713
|
+
}
|
|
64714
|
+
function isDynamicSubTablePanelType(panelType, PanelTypeEnum) {
|
|
64715
|
+
return getDynamicSubTablePanelTypes(PanelTypeEnum).has(panelType);
|
|
64716
|
+
}
|
|
64717
|
+
function isFixedSubTablePanelType(panelType, PanelTypeEnum) {
|
|
64718
|
+
return getFixedSubTablePanelTypes(PanelTypeEnum).has(panelType);
|
|
64719
|
+
}
|
|
64720
|
+
const NON_REPEATING_DYNAMIC_PANEL_NAMES = /* @__PURE__ */ new Set(["MaterialConsumptionTable"]);
|
|
64721
|
+
function isRepeatingSubTablePanelType(panelType, PanelTypeEnum) {
|
|
64722
|
+
if (!isDynamicSubTablePanelType(panelType, PanelTypeEnum)) return false;
|
|
64723
|
+
for (const name2 of NON_REPEATING_DYNAMIC_PANEL_NAMES) {
|
|
64724
|
+
if (name2 in PanelTypeEnum && PanelTypeEnum[name2] === panelType) return false;
|
|
64725
|
+
}
|
|
64726
|
+
return true;
|
|
64727
|
+
}
|
|
64728
|
+
const CONFIG_HEADER_KEY = {
|
|
64729
|
+
[SubTableType.DEFAULT]: "sys.onlineForm.dynamicTableConfiguration",
|
|
64730
|
+
[SubTableType._2D]: "sys.twoDimensionalTableConfig",
|
|
64731
|
+
[SubTableType.WAREHOUSE_IN]: "sys.warehouseInTableConfig",
|
|
64732
|
+
[SubTableType.WAREHOUSE_OUT]: "sys.warehouseOutTableConfig",
|
|
64733
|
+
[SubTableType.WAREHOUSE_IN_OUT]: "sys.warehouseInOutTableConfig",
|
|
64734
|
+
[SubTableType.WAREHOUSE_INBOUND]: "sys.warehouseInTableConfig",
|
|
64735
|
+
[SubTableType.WAREHOUSE_OUTBOUND]: "sys.warehouseOutTableConfig",
|
|
64736
|
+
[SubTableType.PART_STOCKTAKE]: "sys.edhr.mcTable.stocktakeConfig",
|
|
64737
|
+
[SubTableType.MATERIAL_REQUISITION]: "sys.materialRequisitionTableConfig",
|
|
64738
|
+
[SubTableType.STOCKTAKE]: "sys.edhr.mcTable.stocktakeConfig",
|
|
64739
|
+
[SubTableType.ALLOCATE]: "sys.edhr.mcTable.allocateConfig",
|
|
64740
|
+
[SubTableType.STERILIZE_BATCH]: "sys.sterilizeBatchConfig",
|
|
64741
|
+
[SubTableType.PRETREATMENT_LIST]: "sys.pretreatmentTableConfig"
|
|
64742
|
+
};
|
|
64743
|
+
const NO_CONFIRM_BEFORE_DELETE = /* @__PURE__ */ new Set([SubTableType.MATERIAL_BALANCE]);
|
|
64744
|
+
const SHOW_BARCODE_RULES = /* @__PURE__ */ new Set([SubTableType.STOCKTAKE]);
|
|
64745
|
+
const SHOW_AUTO_LOAD_STOCK = /* @__PURE__ */ new Set([SubTableType.STOCKTAKE]);
|
|
64746
|
+
const BIZ_TABLE_CONFIG_SEED_TYPES = /* @__PURE__ */ new Set([
|
|
64747
|
+
SubTableType.STOCKTAKE,
|
|
64748
|
+
SubTableType.STERILIZE_BATCH,
|
|
64749
|
+
SubTableType.PRETREATMENT_LIST
|
|
64750
|
+
]);
|
|
64751
|
+
function resolveDesignPanelFeatures(tableType) {
|
|
64752
|
+
const type4 = tableType ?? SubTableType.DEFAULT;
|
|
64753
|
+
const configHeaderKey = CONFIG_HEADER_KEY[type4];
|
|
64754
|
+
const showConfirmBeforeDelete = !NO_CONFIRM_BEFORE_DELETE.has(type4);
|
|
64755
|
+
const showBarcodeParsingRules = SHOW_BARCODE_RULES.has(type4);
|
|
64756
|
+
const showAutoLoadStock = SHOW_AUTO_LOAD_STOCK.has(type4);
|
|
64757
|
+
const showQuickFill = type4 === SubTableType.DEFAULT;
|
|
64758
|
+
const showConfigSection = type4 !== SubTableType.MATERIAL_BALANCE && Boolean(configHeaderKey || showConfirmBeforeDelete || showQuickFill || showBarcodeParsingRules);
|
|
64759
|
+
return {
|
|
64760
|
+
showQuickFill,
|
|
64761
|
+
showConfirmBeforeDelete,
|
|
64762
|
+
showBarcodeParsingRules,
|
|
64763
|
+
showAutoLoadStock,
|
|
64764
|
+
showAutoMergeInCells: type4 !== SubTableType._2D,
|
|
64765
|
+
configHeaderKey,
|
|
64766
|
+
showConfigSection
|
|
64767
|
+
};
|
|
64768
|
+
}
|
|
62960
64769
|
const FormChangeRowCellType = {
|
|
62961
64770
|
ADD: "SUBTABLE_ROW_ADD",
|
|
62962
64771
|
DEL: "SUBTABLE_ROW_DEL"
|
|
@@ -64240,27 +66049,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
64240
66049
|
case "revo-grid":
|
|
64241
66050
|
return import(
|
|
64242
66051
|
/* webpackMode: "lazy" */
|
|
64243
|
-
"./revo-grid.entry-
|
|
66052
|
+
"./revo-grid.entry-Cg-4cMIo.js"
|
|
64244
66053
|
).then(processMod, consoleError);
|
|
64245
66054
|
case "revogr-filter-panel":
|
|
64246
66055
|
return import(
|
|
64247
66056
|
/* webpackMode: "lazy" */
|
|
64248
|
-
"./revogr-filter-panel.entry-
|
|
66057
|
+
"./revogr-filter-panel.entry-BrYsomo0.js"
|
|
64249
66058
|
).then(processMod, consoleError);
|
|
64250
66059
|
case "revogr-attribution_7":
|
|
64251
66060
|
return import(
|
|
64252
66061
|
/* webpackMode: "lazy" */
|
|
64253
|
-
"./revogr-attribution_7.entry-
|
|
66062
|
+
"./revogr-attribution_7.entry-DzamtFvo.js"
|
|
64254
66063
|
).then(processMod, consoleError);
|
|
64255
66064
|
case "revogr-clipboard_3":
|
|
64256
66065
|
return import(
|
|
64257
66066
|
/* webpackMode: "lazy" */
|
|
64258
|
-
"./revogr-clipboard_3.entry-
|
|
66067
|
+
"./revogr-clipboard_3.entry-CIxDfW07.js"
|
|
64259
66068
|
).then(processMod, consoleError);
|
|
64260
66069
|
case "revogr-data_4":
|
|
64261
66070
|
return import(
|
|
64262
66071
|
/* webpackMode: "lazy" */
|
|
64263
|
-
"./revogr-data_4.entry-
|
|
66072
|
+
"./revogr-data_4.entry-BNENcgpR.js"
|
|
64264
66073
|
).then(processMod, consoleError);
|
|
64265
66074
|
}
|
|
64266
66075
|
}
|
|
@@ -74314,13 +76123,13 @@ const QUICK_FILL_ALLOWED_FIELDS = /* @__PURE__ */ new Set([
|
|
|
74314
76123
|
FIELD_TYPE.OPTION,
|
|
74315
76124
|
FIELD_TYPE.OPTION_MULTI,
|
|
74316
76125
|
FIELD_TYPE.MATERIAL_NO,
|
|
74317
|
-
FIELD_TYPE.
|
|
74318
|
-
FIELD_TYPE.
|
|
76126
|
+
FIELD_TYPE.STERILIZATION_CONTAINER,
|
|
76127
|
+
FIELD_TYPE.MATERIAL_CONTAINER,
|
|
74319
76128
|
FIELD_TYPE.RELATED_LOT_NO,
|
|
74320
76129
|
FIELD_TYPE.SCRAP_MATERIAL_NO
|
|
74321
76130
|
]);
|
|
74322
76131
|
function processQuickFillRows(rows = [], columns = []) {
|
|
74323
|
-
const
|
|
76132
|
+
const isBlank2 = (v) => v === null || v === void 0 || typeof v === "string" && v.trim() === "" || Array.isArray(v) && v.length === 0;
|
|
74324
76133
|
const roundToScale = (num, scale) => {
|
|
74325
76134
|
if (scale == null) return num;
|
|
74326
76135
|
const factor = Math.pow(10, scale);
|
|
@@ -74390,32 +76199,32 @@ function processQuickFillRows(rows = [], columns = []) {
|
|
|
74390
76199
|
case FIELD_TYPE.LONG:
|
|
74391
76200
|
{
|
|
74392
76201
|
const n = parseNumber(val, { integer: true });
|
|
74393
|
-
newRow[f2.prop] =
|
|
76202
|
+
newRow[f2.prop] = isBlank2(n) ? void 0 : n;
|
|
74394
76203
|
}
|
|
74395
76204
|
break;
|
|
74396
76205
|
case FIELD_TYPE.DOUBLE:
|
|
74397
76206
|
case FIELD_TYPE.DECIMAL:
|
|
74398
76207
|
{
|
|
74399
76208
|
const n = parseNumber(val, { integer: false, scale: null });
|
|
74400
|
-
newRow[f2.prop] =
|
|
76209
|
+
newRow[f2.prop] = isBlank2(n) ? void 0 : n;
|
|
74401
76210
|
}
|
|
74402
76211
|
break;
|
|
74403
76212
|
case FIELD_TYPE.DATE:
|
|
74404
76213
|
{
|
|
74405
76214
|
const d = parseToDate(val);
|
|
74406
|
-
newRow[f2.prop] = d ? formatDate(d) :
|
|
76215
|
+
newRow[f2.prop] = d ? formatDate(d) : isBlank2(val) ? void 0 : val;
|
|
74407
76216
|
}
|
|
74408
76217
|
break;
|
|
74409
76218
|
case FIELD_TYPE.TIME:
|
|
74410
76219
|
{
|
|
74411
76220
|
const d = parseToDate(val);
|
|
74412
|
-
newRow[f2.prop] = d ? formatTime(d) :
|
|
76221
|
+
newRow[f2.prop] = d ? formatTime(d) : isBlank2(val) ? void 0 : val;
|
|
74413
76222
|
}
|
|
74414
76223
|
break;
|
|
74415
76224
|
case FIELD_TYPE.DATE_TIME:
|
|
74416
76225
|
{
|
|
74417
76226
|
const d = parseToDate(val);
|
|
74418
|
-
newRow[f2.prop] = d ? formatDateTime(d) :
|
|
76227
|
+
newRow[f2.prop] = d ? formatDateTime(d) : isBlank2(val) ? void 0 : val;
|
|
74419
76228
|
}
|
|
74420
76229
|
break;
|
|
74421
76230
|
case FIELD_TYPE.OPTION_MULTI:
|
|
@@ -74426,14 +76235,14 @@ function processQuickFillRows(rows = [], columns = []) {
|
|
|
74426
76235
|
const arr = tokens.map((t) => lookup.get(t)).filter((v) => v !== void 0);
|
|
74427
76236
|
newRow[f2.prop] = arr.length ? arr.join(",") : void 0;
|
|
74428
76237
|
} else {
|
|
74429
|
-
newRow[f2.prop] =
|
|
76238
|
+
newRow[f2.prop] = isBlank2(val) ? void 0 : val;
|
|
74430
76239
|
}
|
|
74431
76240
|
}
|
|
74432
76241
|
break;
|
|
74433
76242
|
case FIELD_TYPE.OPTION:
|
|
74434
76243
|
{
|
|
74435
76244
|
const lookup = buildOptionLookup(f2.newOptions);
|
|
74436
|
-
if (
|
|
76245
|
+
if (isBlank2(val)) {
|
|
74437
76246
|
newRow[f2.prop] = void 0;
|
|
74438
76247
|
} else {
|
|
74439
76248
|
const tokens = val.split(/[;,]/).map((s) => s.trim()).filter((s) => s !== "");
|
|
@@ -74443,7 +76252,7 @@ function processQuickFillRows(rows = [], columns = []) {
|
|
|
74443
76252
|
}
|
|
74444
76253
|
break;
|
|
74445
76254
|
default:
|
|
74446
|
-
newRow[f2.prop] =
|
|
76255
|
+
newRow[f2.prop] = isBlank2(val) ? void 0 : val;
|
|
74447
76256
|
}
|
|
74448
76257
|
}
|
|
74449
76258
|
return newRow;
|
|
@@ -74451,7 +76260,7 @@ function processQuickFillRows(rows = [], columns = []) {
|
|
|
74451
76260
|
return columns.some((f2) => {
|
|
74452
76261
|
const v = row[f2.prop];
|
|
74453
76262
|
if (v === 0 || v === false) return true;
|
|
74454
|
-
return !
|
|
76263
|
+
return !isBlank2(v);
|
|
74455
76264
|
});
|
|
74456
76265
|
});
|
|
74457
76266
|
return out;
|
|
@@ -74496,295 +76305,334 @@ function groupFixedTableRows(rows, options) {
|
|
|
74496
76305
|
return result;
|
|
74497
76306
|
}
|
|
74498
76307
|
export {
|
|
74499
|
-
|
|
74500
|
-
|
|
76308
|
+
FieldIconMap as $,
|
|
76309
|
+
commonjsGlobal as A,
|
|
74501
76310
|
BwipCodeType as B,
|
|
74502
76311
|
CreateType as C,
|
|
74503
|
-
|
|
74504
|
-
|
|
76312
|
+
getDefaultExportFromCjs as D,
|
|
76313
|
+
uuid2 as E,
|
|
74505
76314
|
FIELD_TYPE as F,
|
|
74506
|
-
|
|
74507
|
-
|
|
74508
|
-
|
|
74509
|
-
|
|
74510
|
-
|
|
76315
|
+
PaperWidgeValueType as G,
|
|
76316
|
+
useCalculateFormula as H,
|
|
76317
|
+
onlineFormMasterModelTypeEnum as I,
|
|
76318
|
+
FIELD_TYPE_WAREHOUSE as J,
|
|
76319
|
+
FieldDefaultValueTypeEnum as K,
|
|
74511
76320
|
LineType as L,
|
|
74512
|
-
|
|
74513
|
-
|
|
76321
|
+
FormTypeEnum as M,
|
|
76322
|
+
mitt as N,
|
|
74514
76323
|
Orientation as O,
|
|
74515
76324
|
PaginationFormat as P,
|
|
74516
|
-
|
|
74517
|
-
|
|
74518
|
-
|
|
74519
|
-
|
|
76325
|
+
LabelPosition as Q,
|
|
76326
|
+
BooleanShowMode as R,
|
|
76327
|
+
SUB_TABLE_PANEL_TYPE_NAME as S,
|
|
76328
|
+
SignatureNumberTypeEnum as T,
|
|
74520
76329
|
UniqueConstraintType as U,
|
|
74521
|
-
|
|
74522
|
-
|
|
74523
|
-
|
|
74524
|
-
|
|
74525
|
-
|
|
76330
|
+
SignatureTimeTypeEnum as V,
|
|
76331
|
+
SignShowTypeEnum as W,
|
|
76332
|
+
SignatureTypeEnum as X,
|
|
76333
|
+
PlatformEnum as Y,
|
|
76334
|
+
buildUUID as Z,
|
|
74526
76335
|
_export_sfc as _,
|
|
74527
|
-
|
|
74528
|
-
|
|
74529
|
-
|
|
74530
|
-
|
|
74531
|
-
|
|
74532
|
-
|
|
74533
|
-
|
|
74534
|
-
|
|
74535
|
-
|
|
74536
|
-
|
|
74537
|
-
|
|
74538
|
-
|
|
74539
|
-
|
|
74540
|
-
|
|
74541
|
-
|
|
74542
|
-
|
|
74543
|
-
|
|
74544
|
-
|
|
74545
|
-
|
|
74546
|
-
|
|
74547
|
-
|
|
74548
|
-
|
|
74549
|
-
|
|
74550
|
-
|
|
74551
|
-
|
|
74552
|
-
|
|
74553
|
-
|
|
74554
|
-
|
|
74555
|
-
|
|
74556
|
-
|
|
74557
|
-
|
|
74558
|
-
|
|
74559
|
-
|
|
74560
|
-
|
|
74561
|
-
|
|
74562
|
-
|
|
74563
|
-
|
|
74564
|
-
|
|
74565
|
-
|
|
74566
|
-
|
|
74567
|
-
|
|
74568
|
-
|
|
74569
|
-
|
|
74570
|
-
|
|
74571
|
-
|
|
74572
|
-
|
|
74573
|
-
|
|
74574
|
-
|
|
74575
|
-
|
|
74576
|
-
|
|
74577
|
-
|
|
74578
|
-
|
|
74579
|
-
|
|
74580
|
-
|
|
74581
|
-
|
|
74582
|
-
|
|
74583
|
-
|
|
74584
|
-
|
|
74585
|
-
|
|
74586
|
-
|
|
74587
|
-
|
|
74588
|
-
|
|
74589
|
-
|
|
74590
|
-
|
|
74591
|
-
|
|
74592
|
-
|
|
74593
|
-
|
|
74594
|
-
|
|
74595
|
-
|
|
74596
|
-
|
|
74597
|
-
|
|
74598
|
-
|
|
74599
|
-
|
|
74600
|
-
|
|
74601
|
-
|
|
74602
|
-
|
|
74603
|
-
|
|
74604
|
-
|
|
74605
|
-
|
|
74606
|
-
|
|
74607
|
-
|
|
74608
|
-
|
|
74609
|
-
|
|
74610
|
-
|
|
74611
|
-
|
|
74612
|
-
|
|
74613
|
-
|
|
74614
|
-
|
|
74615
|
-
|
|
74616
|
-
|
|
74617
|
-
|
|
74618
|
-
|
|
74619
|
-
|
|
74620
|
-
|
|
74621
|
-
|
|
74622
|
-
|
|
74623
|
-
|
|
74624
|
-
|
|
74625
|
-
|
|
74626
|
-
|
|
74627
|
-
|
|
74628
|
-
|
|
74629
|
-
|
|
74630
|
-
|
|
74631
|
-
|
|
74632
|
-
|
|
74633
|
-
|
|
74634
|
-
|
|
74635
|
-
|
|
74636
|
-
|
|
74637
|
-
|
|
74638
|
-
|
|
74639
|
-
|
|
74640
|
-
|
|
74641
|
-
|
|
74642
|
-
|
|
74643
|
-
|
|
74644
|
-
|
|
74645
|
-
|
|
74646
|
-
|
|
74647
|
-
|
|
74648
|
-
|
|
74649
|
-
|
|
74650
|
-
|
|
74651
|
-
|
|
74652
|
-
|
|
74653
|
-
|
|
74654
|
-
|
|
74655
|
-
|
|
74656
|
-
|
|
74657
|
-
|
|
74658
|
-
|
|
74659
|
-
|
|
74660
|
-
|
|
74661
|
-
|
|
74662
|
-
|
|
74663
|
-
|
|
74664
|
-
|
|
74665
|
-
|
|
74666
|
-
|
|
74667
|
-
|
|
74668
|
-
|
|
74669
|
-
|
|
74670
|
-
|
|
74671
|
-
|
|
74672
|
-
|
|
74673
|
-
|
|
74674
|
-
|
|
74675
|
-
|
|
74676
|
-
|
|
74677
|
-
|
|
74678
|
-
|
|
74679
|
-
|
|
74680
|
-
|
|
74681
|
-
|
|
74682
|
-
|
|
74683
|
-
|
|
74684
|
-
|
|
74685
|
-
|
|
74686
|
-
|
|
74687
|
-
|
|
74688
|
-
|
|
74689
|
-
|
|
74690
|
-
|
|
74691
|
-
|
|
74692
|
-
|
|
74693
|
-
|
|
74694
|
-
|
|
74695
|
-
|
|
74696
|
-
|
|
74697
|
-
|
|
74698
|
-
|
|
74699
|
-
|
|
74700
|
-
|
|
74701
|
-
|
|
74702
|
-
|
|
74703
|
-
|
|
74704
|
-
|
|
74705
|
-
|
|
74706
|
-
|
|
74707
|
-
|
|
74708
|
-
|
|
74709
|
-
|
|
74710
|
-
|
|
74711
|
-
|
|
74712
|
-
|
|
74713
|
-
|
|
74714
|
-
|
|
74715
|
-
|
|
74716
|
-
|
|
74717
|
-
|
|
74718
|
-
|
|
74719
|
-
|
|
74720
|
-
|
|
74721
|
-
|
|
74722
|
-
|
|
74723
|
-
|
|
74724
|
-
|
|
74725
|
-
|
|
74726
|
-
|
|
74727
|
-
|
|
74728
|
-
|
|
74729
|
-
|
|
74730
|
-
|
|
74731
|
-
|
|
74732
|
-
|
|
74733
|
-
|
|
74734
|
-
|
|
74735
|
-
|
|
74736
|
-
|
|
74737
|
-
|
|
74738
|
-
|
|
74739
|
-
|
|
74740
|
-
|
|
74741
|
-
|
|
74742
|
-
|
|
74743
|
-
|
|
74744
|
-
|
|
74745
|
-
|
|
74746
|
-
|
|
74747
|
-
|
|
74748
|
-
|
|
74749
|
-
|
|
74750
|
-
|
|
74751
|
-
|
|
74752
|
-
|
|
74753
|
-
|
|
74754
|
-
|
|
74755
|
-
|
|
74756
|
-
|
|
74757
|
-
|
|
74758
|
-
|
|
74759
|
-
|
|
74760
|
-
|
|
74761
|
-
|
|
74762
|
-
|
|
74763
|
-
|
|
74764
|
-
|
|
74765
|
-
|
|
74766
|
-
|
|
74767
|
-
|
|
74768
|
-
|
|
74769
|
-
|
|
74770
|
-
|
|
74771
|
-
|
|
74772
|
-
|
|
74773
|
-
|
|
74774
|
-
|
|
74775
|
-
|
|
74776
|
-
|
|
74777
|
-
|
|
74778
|
-
|
|
76336
|
+
getProfile as a,
|
|
76337
|
+
F$5 as a$,
|
|
76338
|
+
CellWidgetViewState as a0,
|
|
76339
|
+
DiagonalDirection as a1,
|
|
76340
|
+
WidgetImageSizeMode as a2,
|
|
76341
|
+
LineDirection as a3,
|
|
76342
|
+
TimeDiffFormat as a4,
|
|
76343
|
+
DiagonalVertex as a5,
|
|
76344
|
+
resolveDiagonalVertex as a6,
|
|
76345
|
+
getThemeColorByTableType as a7,
|
|
76346
|
+
ViewTypeEnum as a8,
|
|
76347
|
+
useThrottleFn as a9,
|
|
76348
|
+
DateFormat as aA,
|
|
76349
|
+
renderUtils as aB,
|
|
76350
|
+
BindCmpStyleEnum as aC,
|
|
76351
|
+
DecimalDisplayMode as aD,
|
|
76352
|
+
NCB_PROVIDE as aE,
|
|
76353
|
+
normalizeRefLoaderResult as aF,
|
|
76354
|
+
refUtils as aG,
|
|
76355
|
+
getParseRuleInfo as aH,
|
|
76356
|
+
getParseRuleValue as aI,
|
|
76357
|
+
useCurrentPageFormState as aJ,
|
|
76358
|
+
getLotLockedReason as aK,
|
|
76359
|
+
RangeValidateMode as aL,
|
|
76360
|
+
RenderModeEnum as aM,
|
|
76361
|
+
useDependency as aN,
|
|
76362
|
+
EFieldBizTypeEnum as aO,
|
|
76363
|
+
FormulaRuleFieldKeyEnum as aP,
|
|
76364
|
+
formulaRuleFieldDict as aQ,
|
|
76365
|
+
resolveDesignPanelFeatures as aR,
|
|
76366
|
+
BIZ_TABLE_CONFIG_SEED_TYPES as aS,
|
|
76367
|
+
getAllTableProfiles as aT,
|
|
76368
|
+
isRepeatingSubTablePanelType as aU,
|
|
76369
|
+
useNocodeEmitter as aV,
|
|
76370
|
+
fetchHistoryConsume as aW,
|
|
76371
|
+
isBomGranted as aX,
|
|
76372
|
+
runRowHandler as aY,
|
|
76373
|
+
F$8 as aZ,
|
|
76374
|
+
FILL_FROM_INVENTORY_OPTION$2 as a_,
|
|
76375
|
+
noop as aa,
|
|
76376
|
+
isIOS as ab,
|
|
76377
|
+
isDynamicSubTablePanelType as ac,
|
|
76378
|
+
isFixedSubTablePanelType as ad,
|
|
76379
|
+
EmptySymbol as ae,
|
|
76380
|
+
ASSIGNMENTSTRATEGY_ENUM as af,
|
|
76381
|
+
Dependency_ENUM as ag,
|
|
76382
|
+
ExpressionModeEnum as ah,
|
|
76383
|
+
ExpressionTabEnum as ai,
|
|
76384
|
+
ReturnTypeEnum as aj,
|
|
76385
|
+
ImageDisplayModeEnum as ak,
|
|
76386
|
+
PaperSizeMap as al,
|
|
76387
|
+
EntityModelCategoryEnum as am,
|
|
76388
|
+
CheckDsTypeEnum as an,
|
|
76389
|
+
DeviceLink as ao,
|
|
76390
|
+
DeviceParamsTypeTitle as ap,
|
|
76391
|
+
AITooltips as aq,
|
|
76392
|
+
DenoiseMethodOptions as ar,
|
|
76393
|
+
BinarizeMethodOptions as as,
|
|
76394
|
+
ParamModelTypeEnum as at,
|
|
76395
|
+
JoinModelTypeEum as au,
|
|
76396
|
+
sqlUtils as av,
|
|
76397
|
+
useWidgetStaticAttrs as aw,
|
|
76398
|
+
setSelectValidatorId as ax,
|
|
76399
|
+
setSelectAnnotationId as ay,
|
|
76400
|
+
useNocodeFormWidget as az,
|
|
76401
|
+
isBusinessSubTableProfile as b,
|
|
76402
|
+
getParseRuleConfig as b$,
|
|
76403
|
+
INVENTORY_BASE_FIELDS as b0,
|
|
76404
|
+
WAREHOUSE_IDENTITY_GROUP_KEYS as b1,
|
|
76405
|
+
SCAN_MERGE_GROUP_KEYS as b2,
|
|
76406
|
+
AUTO_LOAD_READONLY_SELECT_FIELDS as b3,
|
|
76407
|
+
FILL_FROM_INVENTORY_OPTION$1 as b4,
|
|
76408
|
+
F$2 as b5,
|
|
76409
|
+
FILL_FROM_INVENTORY_OPTION as b6,
|
|
76410
|
+
calcFillData as b7,
|
|
76411
|
+
extractKeywordFromQueryData as b8,
|
|
76412
|
+
F as b9,
|
|
76413
|
+
nextFormChangeRowViewHistoryId as bA,
|
|
76414
|
+
BpmnSignatureTypeEnum as bB,
|
|
76415
|
+
ButtonTypeEnum as bC,
|
|
76416
|
+
CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bD,
|
|
76417
|
+
CodeRunner as bE,
|
|
76418
|
+
Config_Fields as bF,
|
|
76419
|
+
ControlStatusEnum as bG,
|
|
76420
|
+
EBR_PROVIDE_ENUM as bH,
|
|
76421
|
+
FieldSysVarDefaultValueEnum as bI,
|
|
76422
|
+
MobileFillTypeEnum as bJ,
|
|
76423
|
+
OfficeTypeEnum as bK,
|
|
76424
|
+
PosEnum as bL,
|
|
76425
|
+
RangeCompareOp as bM,
|
|
76426
|
+
SummaryApproveHisTypeEnum as bN,
|
|
76427
|
+
applyCheckDsDataToRuntime as bO,
|
|
76428
|
+
applyMedProCheckDsDataToRuntime as bP,
|
|
76429
|
+
buildFormChangeDisplayRows as bQ,
|
|
76430
|
+
buildStableFieldLocation as bR,
|
|
76431
|
+
deleteSubtableRow as bS,
|
|
76432
|
+
detailsHaveFormChangeRowOps as bT,
|
|
76433
|
+
extractFormChangeRowDetails as bU,
|
|
76434
|
+
fetchCheckDsDataForTable as bV,
|
|
76435
|
+
fetchCustomCheckDsData as bW,
|
|
76436
|
+
fetchMedProCheckDsData as bX,
|
|
76437
|
+
getCheckTableSnapshotKey as bY,
|
|
76438
|
+
getFormChangeRowKey as bZ,
|
|
76439
|
+
getFormChangeRowOp as b_,
|
|
76440
|
+
isProductManuallyEditable as ba,
|
|
76441
|
+
applyFillFromMfgOrderOption as bb,
|
|
76442
|
+
applyFillFromOption as bc,
|
|
76443
|
+
applyFillFromProductOption as bd,
|
|
76444
|
+
CLEAR_ON_MATERIAL_CONTAINER_SELECT as be,
|
|
76445
|
+
transformUtils as bf,
|
|
76446
|
+
settleAndValidateDisplay as bg,
|
|
76447
|
+
unregisterValidationContext as bh,
|
|
76448
|
+
clearFormRules as bi,
|
|
76449
|
+
registerValidationContext as bj,
|
|
76450
|
+
requestFullValidation as bk,
|
|
76451
|
+
requestDisplayValidation as bl,
|
|
76452
|
+
closeValidatorPopovers as bm,
|
|
76453
|
+
baseDataUtils as bn,
|
|
76454
|
+
getRawFormRuleMeta as bo,
|
|
76455
|
+
enrichFormChangeRowDetails as bp,
|
|
76456
|
+
settleAfterModeSwitch as bq,
|
|
76457
|
+
calcUtils as br,
|
|
76458
|
+
uuid2$1 as bs,
|
|
76459
|
+
normalizeToArray as bt,
|
|
76460
|
+
safeParseArray as bu,
|
|
76461
|
+
BpmnNodeTypeEnum as bv,
|
|
76462
|
+
mergeByMultiKey as bw,
|
|
76463
|
+
commonUtils as bx,
|
|
76464
|
+
getRowId as by,
|
|
76465
|
+
collectFormChangeFieldLocations as bz,
|
|
76466
|
+
getProfileByTableType as c,
|
|
76467
|
+
getColumnByProp as c$,
|
|
76468
|
+
getSubTableQuickFillInfo as c0,
|
|
76469
|
+
handleOldConfig as c1,
|
|
76470
|
+
hasAnyCheckTableSnapshot as c2,
|
|
76471
|
+
hasByTableCheckTableSnapshot as c3,
|
|
76472
|
+
hasSharedCheckTableSnapshot as c4,
|
|
76473
|
+
insertSubtableRows as c5,
|
|
76474
|
+
isAnnLocationSelected as c6,
|
|
76475
|
+
isFormChangeGhostRow as c7,
|
|
76476
|
+
isMedProSuite as c8,
|
|
76477
|
+
isRowAddedInCurrentFormChange as c9,
|
|
76478
|
+
QUICK_FILL_ALLOWED_FIELDS as cA,
|
|
76479
|
+
processQuickFillRows as cB,
|
|
76480
|
+
getIsGroupEmpty as cC,
|
|
76481
|
+
tryOnScopeDispose as cD,
|
|
76482
|
+
isClient as cE,
|
|
76483
|
+
tryOnMounted as cF,
|
|
76484
|
+
resolveUnref as cG,
|
|
76485
|
+
isString as cH,
|
|
76486
|
+
identity$1 as cI,
|
|
76487
|
+
getAugmentedNamespace as cJ,
|
|
76488
|
+
watchDebounced as cK,
|
|
76489
|
+
CardControlEnum as cL,
|
|
76490
|
+
EntityModelTypeEnum as cM,
|
|
76491
|
+
FIELD_TYPE_BASIC as cN,
|
|
76492
|
+
FIELD_TYPE_INSPECTION as cO,
|
|
76493
|
+
FIELD_TYPE_LOGIC as cP,
|
|
76494
|
+
FIELD_TYPE_MATERIAL as cQ,
|
|
76495
|
+
FIELD_TYPE_PRETREATMENT as cR,
|
|
76496
|
+
FIELD_TYPE_PRODUCE as cS,
|
|
76497
|
+
FIELD_TYPE_STERILIZATION as cT,
|
|
76498
|
+
FormDesignEnum as cU,
|
|
76499
|
+
RecordNoGenerateEnum as cV,
|
|
76500
|
+
TagTypeEnum as cW,
|
|
76501
|
+
getSubTableTypeByRefModelType as cX,
|
|
76502
|
+
getExclusiveBusinessTypeTokens as cY,
|
|
76503
|
+
registerInstance as cZ,
|
|
76504
|
+
createEvent as c_,
|
|
76505
|
+
jsonSchemaUtils as ca,
|
|
76506
|
+
judgeUnique as cb,
|
|
76507
|
+
materialCheck as cc,
|
|
76508
|
+
migrateDiagonalDirectionToVertex as cd,
|
|
76509
|
+
parseFrontConfig as ce,
|
|
76510
|
+
recordSubtableRowAdd as cf,
|
|
76511
|
+
recordSubtableRowDelete as cg,
|
|
76512
|
+
relocateDeletedRowsToEnd as ch,
|
|
76513
|
+
requestMedProCheckDsData as ci,
|
|
76514
|
+
requestNonMedProCheckDsData as cj,
|
|
76515
|
+
resolveAnnotationFieldLocation as ck,
|
|
76516
|
+
resolveFormChangeRowUi as cl,
|
|
76517
|
+
resolveRowFormChangeMark as cm,
|
|
76518
|
+
setSelectMobileTdId as cn,
|
|
76519
|
+
stockCheck as co,
|
|
76520
|
+
useOnlineFormActionButton as cp,
|
|
76521
|
+
assembleRules as cq,
|
|
76522
|
+
deleteFormRule as cr,
|
|
76523
|
+
setFormRule as cs,
|
|
76524
|
+
isReferenceOptionActive as ct,
|
|
76525
|
+
validateAllFields as cu,
|
|
76526
|
+
runValidation as cv,
|
|
76527
|
+
ensureFrontRowKey as cw,
|
|
76528
|
+
FRONT_ROW_KEY as cx,
|
|
76529
|
+
q as cy,
|
|
76530
|
+
groupFixedTableRows as cz,
|
|
76531
|
+
SubTableType as d,
|
|
76532
|
+
GROUP_EXPAND_BTN as d$,
|
|
76533
|
+
timeout as d0,
|
|
76534
|
+
getVisibleSourceItem as d1,
|
|
76535
|
+
getColumns as d2,
|
|
76536
|
+
rowTypes as d3,
|
|
76537
|
+
GroupingRowPlugin as d4,
|
|
76538
|
+
StretchColumn as d5,
|
|
76539
|
+
isStretchPlugin as d6,
|
|
76540
|
+
AutoSizeColumnPlugin as d7,
|
|
76541
|
+
FilterPlugin as d8,
|
|
76542
|
+
ExportFilePlugin as d9,
|
|
76543
|
+
ViewportStore as dA,
|
|
76544
|
+
AndOrButton as dB,
|
|
76545
|
+
ReorderButton as dC,
|
|
76546
|
+
TrashButton as dD,
|
|
76547
|
+
isFilterBtn as dE,
|
|
76548
|
+
ColumnService as dF,
|
|
76549
|
+
MOBILE_CLASS as dG,
|
|
76550
|
+
SELECTION_BORDER_CLASS as dH,
|
|
76551
|
+
getCellData as dI,
|
|
76552
|
+
getCellEditor as dJ,
|
|
76553
|
+
getRange as dK,
|
|
76554
|
+
isRangeSingleCell as dL,
|
|
76555
|
+
codesLetter as dM,
|
|
76556
|
+
calculateRowHeaderSize as dN,
|
|
76557
|
+
ROW_HEADER_TYPE as dO,
|
|
76558
|
+
getScrollbarSize as dP,
|
|
76559
|
+
FOCUS_CLASS as dQ,
|
|
76560
|
+
CELL_HANDLER_CLASS as dR,
|
|
76561
|
+
TMP_SELECTION_BG_CLASS as dS,
|
|
76562
|
+
getItemByPosition as dT,
|
|
76563
|
+
EDIT_INPUT_WR as dU,
|
|
76564
|
+
keyValues as dV,
|
|
76565
|
+
isObject as dW,
|
|
76566
|
+
DRAGG_TEXT as dX,
|
|
76567
|
+
PSEUDO_GROUP_ITEM as dY,
|
|
76568
|
+
GROUP_EXPANDED as dZ,
|
|
76569
|
+
GROUP_DEPTH as d_,
|
|
76570
|
+
SortingPlugin as da,
|
|
76571
|
+
ColumnMovePlugin as db,
|
|
76572
|
+
ThemeService as dc,
|
|
76573
|
+
h as dd,
|
|
76574
|
+
Host as de,
|
|
76575
|
+
getElement as df,
|
|
76576
|
+
BasePlugin as dg,
|
|
76577
|
+
reduce as dh,
|
|
76578
|
+
columnTypes as di,
|
|
76579
|
+
debounce$1 as dj,
|
|
76580
|
+
RESIZE_INTERVAL as dk,
|
|
76581
|
+
DimensionStore as dl,
|
|
76582
|
+
gatherTrimmedItems as dm,
|
|
76583
|
+
getColumnSizes as dn,
|
|
76584
|
+
getItemByIndex as dp,
|
|
76585
|
+
DataStore as dq,
|
|
76586
|
+
getSourceItem as dr,
|
|
76587
|
+
getSourceItemVirtualIndexByProp as ds,
|
|
76588
|
+
getColumnType as dt,
|
|
76589
|
+
setSourceByPhysicalIndex as du,
|
|
76590
|
+
setSourceByVirtualIndex as dv,
|
|
76591
|
+
SelectionStore as dw,
|
|
76592
|
+
cropCellToMax as dx,
|
|
76593
|
+
nextCell as dy,
|
|
76594
|
+
isRowType as dz,
|
|
76595
|
+
expandAutofillTemplates as e,
|
|
76596
|
+
DATA_ROW as e0,
|
|
76597
|
+
isGroupingColumn as e1,
|
|
76598
|
+
GROUP_COLUMN_PROP as e2,
|
|
76599
|
+
getCellRaw as e3,
|
|
76600
|
+
DATA_COL as e4,
|
|
76601
|
+
CELL_CLASS as e5,
|
|
76602
|
+
Build as e6,
|
|
76603
|
+
isRowDragService as e7,
|
|
76604
|
+
DRAG_ICON_CLASS as e8,
|
|
76605
|
+
DRAGGABLE_CLASS as e9,
|
|
76606
|
+
getCellDataParsed as ea,
|
|
76607
|
+
GROUP_EXPAND_EVENT as eb,
|
|
76608
|
+
isGrouping as ec,
|
|
76609
|
+
HEADER_ROW_CLASS as ed,
|
|
76610
|
+
HEADER_ACTUAL_ROW_CLASS as ee,
|
|
76611
|
+
ROW_FOCUSED_CLASS as ef,
|
|
76612
|
+
HEADER_SORTABLE_CLASS as eg,
|
|
76613
|
+
MIN_COL_SIZE as eh,
|
|
76614
|
+
FilterButton as ei,
|
|
76615
|
+
HeaderCellRenderer as ej,
|
|
76616
|
+
HEADER_CLASS as ek,
|
|
76617
|
+
getAllBusinessRefModelTypes as f,
|
|
76618
|
+
getAllDataProfiles as g,
|
|
76619
|
+
PaperWidgeType as h,
|
|
76620
|
+
isDataTableProfile as i,
|
|
76621
|
+
PageSizeEnum as j,
|
|
76622
|
+
FIELD_TYPE_TRACE as k,
|
|
76623
|
+
FIELD_TYPE_BUSINESS as l,
|
|
76624
|
+
ComponentTypeEnum as m,
|
|
76625
|
+
estraverse as n,
|
|
76626
|
+
Syntax as o,
|
|
74779
76627
|
parse as p,
|
|
74780
|
-
|
|
74781
|
-
|
|
76628
|
+
isDynamicCreateTarget as q,
|
|
76629
|
+
resolveCreateTargetByTableType as r,
|
|
74782
76630
|
src as s,
|
|
74783
|
-
|
|
76631
|
+
CellType as t,
|
|
74784
76632
|
useOnlineFormTransformField2Component as u,
|
|
74785
|
-
|
|
74786
|
-
|
|
74787
|
-
|
|
74788
|
-
|
|
74789
|
-
|
|
76633
|
+
isDynamicCellSubTable as v,
|
|
76634
|
+
api as w,
|
|
76635
|
+
FieldTypeToJs as x,
|
|
76636
|
+
useModal as y,
|
|
76637
|
+
requireEstraverse as z
|
|
74790
76638
|
};
|