@gct-paas/excel 0.1.28-beta.2 → 0.1.28-beta.21
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-B6X1JmEL.js → VueVideoPlayer-DCU2I_H7.js} +2 -2
- package/dist/{agg-design-DZpDRz0Y.js → agg-design-RbW6fgNa.js} +1 -1
- package/dist/{agg-props-ockP_cAM.js → agg-props-CfoEBrRu.js} +1 -1
- package/dist/{agg-style-C7nWM2if.js → agg-style-CgbQAKr0.js} +1 -1
- package/dist/{align-editor-DpWvsI_x.js → align-editor-B80IEr3w.js} +1 -1
- package/dist/{attach-fields-editor-BbWYEXfG.js → attach-fields-editor-BIiVvohl.js} +2 -2
- package/dist/{barcode-design-D1hSeWVJ.js → barcode-design-DOLYhwbG.js} +2 -2
- package/dist/base/index.es.js +886 -703
- package/dist/{base-font-editor-DFHc_3JJ.js → base-font-editor-e9sd4IkJ.js} +2 -2
- package/dist/{boolean-design-UO0nUx1k.js → boolean-design-Dlu6lW8d.js} +8 -7
- package/dist/{boolean-props--l1hf_NI.js → boolean-props-s96hsuRe.js} +3 -3
- package/dist/{boolean-style-Dqwd3N4b.js → boolean-style-f5mMhRME.js} +4 -4
- package/dist/{cell-upload-PkWTiWYW.js → cell-upload-DYgGT9In.js} +8 -11
- package/dist/{date-range-editor-CVQsTg3G.js → date-range-editor-BUGosnLi.js} +2 -2
- package/dist/{date-time-design-DmeUPsi-.js → date-time-design-BdZ_d-PG.js} +25 -6
- package/dist/{date-time-props-DqAAdD7L.js → date-time-props-tlQ_cWpv.js} +3 -3
- package/dist/{date-time-style-BTtKVpV4.js → date-time-style--7vBwDaL.js} +1 -1
- package/dist/{decimal-design-DQ-61MMF.js → decimal-design-C0K5wkAw.js} +1 -1
- package/dist/{decimal-display-mode-CPL-jNCK.js → decimal-display-mode-C3qGt4Zt.js} +2 -2
- package/dist/{decimal-props-DUeC4_o5.js → decimal-props-PGR7K6rT.js} +4 -4
- package/dist/{decimal-style-B-0QILJa.js → decimal-style-D2u4XTHf.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CeTlpjT4.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BWpYVxPc.js} +2 -2
- package/dist/{diagonal-design-Cx7RTy6_.js → diagonal-design-BrGfDqGb.js} +2 -2
- package/dist/{double-design-Bpuy9Ss3.js → double-design-B1Uiy26Z.js} +1 -1
- package/dist/{double-props-BLp5rMS0.js → double-props-yH1fU0x4.js} +6 -4
- package/dist/{double-style-BQT4UDRo.js → double-style-BVx9woku.js} +1 -1
- package/dist/{dynamic-table-action-CT_aYOca.js → dynamic-table-action-Bg2X8eeh.js} +586 -380
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-SAa6KGYz.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-B-KhKgs2.js} +700 -332
- package/dist/{edit.utils-CXmmCnxE-CrBcZqbG.js → edit.utils-CXmmCnxE-C46O9P-0.js} +1 -1
- package/dist/{enum-design-DTh9UhHf.js → enum-design-D7-yLeJb.js} +11 -4
- package/dist/{enum-props-J-3PLabW.js → enum-props-COQQfulB.js} +68 -47
- package/dist/{enum-style-h5lmzZD_.js → enum-style-CcebnktY.js} +3 -3
- package/dist/excel.css +1373 -722
- package/dist/{exceljs.min-mW_Nqru2.js → exceljs.min-Muu74e_A.js} +2 -2
- package/dist/{expression-design-Cbi_6pnX.js → expression-design-DIJRzVab.js} +1 -1
- package/dist/{expression-props-DuvdDUWt.js → expression-props-Dd1_kGVD.js} +1 -1
- package/dist/{expression-style-CcdTrGye.js → expression-style-Bp-2sfOx.js} +1 -1
- package/dist/{file-design-Cix4ztNq.js → file-design-DLIY-29d.js} +1 -1
- package/dist/{file-props-DvZgFCjv.js → file-props-QGxoOGHI.js} +5 -4
- package/dist/{file-style-DTXliETB.js → file-style-CQZsWmvF.js} +1 -1
- package/dist/{font-editor-D_4CECiK.js → font-editor-DyrF1wB8.js} +3 -3
- package/dist/{image-design-BxFQTm4-.js → image-design-4odCIiI7.js} +3 -2
- package/dist/{image-design-IaQbw4Bv.js → image-design-eVwFd3tD.js} +1 -1
- package/dist/{image-props-BmLfiJIb.js → image-props-cT1RL-gD.js} +1 -1
- package/dist/{image-style-BuGQiWh9.js → image-style-MnNoeDW2.js} +1 -1
- package/dist/{index-hkXYQoCV.js → index-2I_EN7Yx.js} +6 -6
- package/dist/{index-DnxIXenr.js → index-2gNIJ0-V.js} +2 -2
- package/dist/{index-Dl48Dmuf.js → index-3JgiYInP.js} +1 -1
- package/dist/{index-CvefH3Ld.js → index-BBnBDqub.js} +1 -1
- package/dist/{index-V3KPtSlA.js → index-BC-6IALL.js} +1 -1
- package/dist/{index-DIHeOfRf.js → index-BEKNxaNo.js} +1 -1
- package/dist/{index-T_P3hv-X.js → index-BITMorpM.js} +2 -2
- package/dist/{index-DuELqbrc.js → index-BcLaruk3.js} +1 -1
- package/dist/{index-C7XazAkv.js → index-BeFplGKa.js} +121 -455
- package/dist/{index-CO1Iw_97.js → index-BhgnUKpp.js} +1 -1
- package/dist/{index-VU8yct3A.js → index-BidsDLhX.js} +1 -1
- package/dist/{index-5E89tzgQ.js → index-Bn9kqGy7.js} +1 -1
- package/dist/{index-PgmRu5Zh.js → index-C-e2nOug.js} +1 -1
- package/dist/{index-CYc23F99.js → index-CBIz0i4u.js} +1 -1
- package/dist/{index-1kSDRqJL.js → index-CEa50csS.js} +1 -1
- package/dist/{index-CSGDQQxf.js → index-CLKf0Gla.js} +6 -6
- package/dist/{index-HHW_GvS9.js → index-CMN7FUpJ.js} +1 -1
- package/dist/{index-aZhb-M_v.js → index-CO1k5u4I.js} +1 -1
- package/dist/{index-BKQgEYOt.js → index-CRbhhL-C.js} +1 -1
- package/dist/{index-CmfE-VkX.js → index-CaNmok7V.js} +1 -1
- package/dist/{index-BCFgHqQ4.js → index-Cjfws4Sx.js} +1 -1
- package/dist/{index-BuucdbMD.js → index-CnH58RKA.js} +1 -1
- package/dist/{index-BSWx0ysi.js → index-DCucm9qw.js} +1 -1
- package/dist/{index-DJsySg7Z.js → index-DJRgFTjP.js} +1 -1
- package/dist/{index-CdoJjtvt.js → index-DS3Z0wlu.js} +2 -2
- package/dist/{index-BRifPJNN.js → index-DW9FL8UO.js} +2 -2
- package/dist/{index-DG8SGSHV.js → index-DlGnj7bK.js} +1 -1
- package/dist/{index-hcp9zj3F.js → index-QFP7aiss.js} +7621 -3448
- package/dist/{index-uIR6j0YE.js → index-bk4bX2Xm.js} +1 -1
- package/dist/{index-DAVndG-D.js → index-islXi0nD.js} +2 -2
- package/dist/{index-DayP0trN.js → index-kCtDgCx3.js} +1 -1
- package/dist/{index-6AnvwL1T.js → index-oabZhVuL.js} +1 -1
- package/dist/{index-BUEsJ6db.js → index-tWQfSOrQ.js} +1 -1
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-B48BapfF.js → integer-design-BD-LDEV_.js} +1 -1
- package/dist/{integer-props-G5n3P-Vt.js → integer-props-DZvJ_bdU.js} +4 -4
- package/dist/{integer-style-yziEYd90.js → integer-style-CxTdmZsN.js} +1 -1
- package/dist/{mb-render-DiWQ5hOn.js → mb-render-B9PVK2lM.js} +2 -1
- package/dist/{number-input-ex-6e_-B7y7.js → number-input-ex-BpIoI25j.js} +1 -1
- package/dist/{org-design-DEibx7uD.js → org-design-DWZI8xev.js} +1 -1
- package/dist/{org-props-uZzEnRfn.js → org-props-D0D94kmP.js} +2 -2
- package/dist/{org-style-CtYMw9ob.js → org-style-B_7Bhmgz.js} +1 -1
- package/dist/{pagination-design-CdnyxoR4.js → pagination-design-CWNP4U9A.js} +2 -2
- package/dist/paper-widget-design-CMzzcWw8.js +4 -0
- package/dist/{qrcode-design-Bh_lT1Yn.js → qrcode-design-DeCNb5kH.js} +1 -1
- package/dist/quick-search.util-DbpUfahg.js +77 -0
- package/dist/{ref-autofill-editor-99WrBySm.js → ref-autofill-editor-DQnrKJfB.js} +152 -115
- package/dist/{ref-design-C7LbDVQz.js → ref-design-BQ8o1gKm.js} +1 -1
- package/dist/{ref-props-BGzOHDvi.js → ref-props-BnrWZt61.js} +22 -13
- package/dist/{ref-style-C1-VGUt9.js → ref-style-BHBHe1mo.js} +1 -1
- package/dist/{regex-editor-BAjvqlvo.js → regex-editor-ChABNYS9.js} +94 -67
- package/dist/{revo-grid.entry-Cg-4cMIo.js → revo-grid.entry-DIdL7jYD.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DzamtFvo.js → revogr-attribution_7.entry-DBPjWGup.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-CIxDfW07.js → revogr-clipboard_3.entry-MYdZD9tl.js} +2 -2
- package/dist/{revogr-data_4.entry-BNENcgpR.js → revogr-data_4.entry-C4rrqPT4.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BrYsomo0.js → revogr-filter-panel.entry-BAU18Dos.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Dg2h8nwx.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-D_WfbMb1.js} +2 -2
- package/dist/{serialnumber-design-BsAogg1u.js → serialnumber-design-CckdQzWc.js} +1 -1
- package/dist/shared/index.es.js +22 -22
- package/dist/{signature-design-sSyiIxFB.js → signature-design-TKvCOON-.js} +1 -1
- package/dist/{signature-props-CYmd9GVl.js → signature-props-D1pC6hm4.js} +3 -3
- package/dist/{signature-style-wLJo19Kd.js → signature-style-BLrwnz_M.js} +1 -1
- package/dist/{single-field-drop-CilJB5DX.js → single-field-drop-C-PadB1d.js} +2 -2
- package/dist/{size-editor-DnyvSWUn.js → size-editor-szo7icZ-.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +10 -0
- package/dist/src/adapter/setup.d.ts +11 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +0 -2
- package/dist/src/index.d.ts +1 -2
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +3 -4
- package/dist/src/nocode-base/src/core/sub-table/index.d.ts +2 -0
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +3 -12
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +19 -17
- package/dist/src/nocode-base/src/core/sub-table/sterilize-batch-table-core.d.ts +3 -14
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +6 -5
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +11 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/scan/index.d.ts +3 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/scan/inventory-scan-api.d.ts +9 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/scan/production-identification-scan-api.d.ts +9 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/scan/scan-helpers.d.ts +38 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/stocktake-calc.d.ts +6 -59
- package/dist/src/nocode-base/src/core/sub-table/warehouse-in-table-core.d.ts +11 -0
- package/dist/src/nocode-base/src/core/sub-table/warehouse-out-table-core.d.ts +21 -0
- package/dist/src/nocode-base/src/hooks/index.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/label-parse-rule/type.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +15 -74
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +32 -19
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +4 -4
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +38 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/use-tmpl-bom.d.ts +13 -0
- package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +14 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +2 -0
- package/dist/src/nocode-base/src/interface/device-query.d.ts +31 -0
- package/dist/src/nocode-base/src/interface/index.d.ts +1 -0
- package/dist/src/nocode-base/src/interface/render.d.ts +1 -0
- package/dist/src/nocode-base/src/interface/transform.d.ts +1 -1
- package/dist/src/nocode-base/src/types/business/index.d.ts +11 -1
- package/dist/src/nocode-base/src/types/business/pretreatment-list.d.ts +3 -1
- package/dist/src/nocode-base/src/types/business/sterilize-batch.d.ts +3 -1
- package/dist/src/nocode-base/src/types/business/stocktake.d.ts +3 -1
- package/dist/src/nocode-base/src/types/common/base.d.ts +4 -0
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +7 -0
- package/dist/src/nocode-web-render/src/render/parse-rule/add-rule-btn.vue.d.ts +2 -0
- package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +1 -0
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +2 -1
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts +11 -1
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-dependency.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields-editor.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +6 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +11 -3
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +2 -4
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +473 -0
- package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +7 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +622 -2
- package/dist/src/online-form/src/views/designer/modules/modals/add-dependency-modal/add-dependency-modal.vue.d.ts +5 -1
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/config-modal.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/index.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/consume-item.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/qty-item/bom-formula-editor.vue.d.ts +18 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/qty-item/qty-item.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/designer/modules/panel/material-consumption/policy-items/substitute-item.vue.d.ts +23 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +62 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/index.d.ts +0 -1
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +292 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/material-consumption/bom-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/material-consumption/edit-parse-rule.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/types/index.d.ts +5 -15
- package/dist/src/online-form/src/views/designer/utils/design-readonly-modal.d.ts +3 -0
- package/dist/src/online-form/src/views/inline-cell/use-inline-icon-catalog.d.ts +2 -3
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +5 -4
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/columns.d.ts +2 -1
- package/dist/src/shared/components/Signature/card-signer.vue.d.ts +14 -0
- package/dist/src/shared/components/Signature/logic/index.d.ts +1 -0
- package/dist/src/shared/components/Signature/security-config.d.ts +6 -0
- package/dist/src/shared/components/Signature/ui/password-signer.vue.d.ts +1 -0
- package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +8 -5
- package/dist/src/shared/components/Signature/ui/sign-switcher.vue.d.ts +1 -0
- package/dist/src/shared/components/field-transfer/components/field-transfer-modal.vue.d.ts +2 -0
- package/dist/src/shared/components/field-transfer/components/modal-wrapper.vue.d.ts +2 -0
- package/dist/src/shared/components/field-transfer/useFieldTransfer.d.ts +2 -0
- package/dist/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +1 -0
- package/dist/src/shared/enum/field-type.d.ts +12 -0
- package/dist/src/shared/utils/lot2sn.d.ts +22 -0
- package/dist/{text-design-7Cct8yh2.js → text-design-C8gY_Ud0.js} +5 -5
- package/dist/{text-design-DKPFi1Rh.js → text-design-DUOCvsW-.js} +2 -2
- package/dist/{text-props-a-16iwJu.js → text-props-D-KBRHkK.js} +5 -5
- package/dist/{text-style-CRqOGAZr.js → text-style-D75O3cAI.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BYyz4gtI.js → throttle-Cpk1LoGk-D40m8Nov.js} +1 -1
- package/dist/{timediff-design-JHt1-ug6.js → timediff-design-Brg2Aoo2.js} +1 -1
- package/dist/{trace-design-DAHDTG5n.js → trace-design-Bphl0RjB.js} +33 -9
- package/dist/{trace-props-B5FBtpNR.js → trace-props-DkH0QJYT.js} +63 -35
- package/dist/{trace-style-CgdePCcv.js → trace-style-DZx1slRE.js} +1 -1
- package/dist/{user-design-BRIV937X.js → user-design-fMF_h4IG.js} +4 -4
- package/dist/{user-props-BJVjolL7.js → user-props-u0p3vKkm.js} +2 -2
- package/dist/{user-style-D17ZPHqU.js → user-style-dhqwLgPW.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-J3MR2K39.js → value-editor.vue_vue_type_style_index_0_lang-C1Y-__ux.js} +2 -2
- package/dist/{version-select-Bw8yzDaH.js → version-select-Cx1oBH6h.js} +1 -1
- package/dist/web-render/index.es.js +397 -24
- package/dist/{widget-barcode-IbgHM5xo.js → widget-barcode-D8F4NNVm.js} +4 -4
- package/dist/{widget-diagonal-juPAlqEe.js → widget-diagonal-DxWX94Uz.js} +3 -3
- package/dist/{widget-image-Dnaej-nk.js → widget-image-BZQOltF7.js} +6 -5
- package/dist/{widget-line-DL9jw_oY.js → widget-line-DrYIib_u.js} +4 -4
- package/dist/{widget-pagination-BlRJo3n4.js → widget-pagination-M80nEc3Z.js} +5 -5
- package/dist/{widget-power-CIC6itUt.js → widget-power-D7jJhsVT.js} +3 -3
- package/dist/{widget-qrcode-BWEOVEZg.js → widget-qrcode-CY6qnSPs.js} +3 -3
- package/dist/{widget-rangelimit-C4KG56d-.js → widget-rangelimit-CZ6cWnwZ.js} +3 -3
- package/dist/{widget-serialnumber-DnfRRyBY.js → widget-serialnumber-DHmkrctf.js} +1 -1
- package/dist/{widget-text-C7d0ZrX3.js → widget-text-C4e7Ec_2.js} +5 -5
- package/dist/{widget-timediff-FAvqRtXk.js → widget-timediff-B4JkGADo.js} +2 -2
- package/package.json +12 -1
- package/dist/paper-widget-design-gmMHiQFV.js +0 -4
- package/dist/src/nocode-base/src/hooks/material-stocktake/index.d.ts +0 -1
- package/dist/src/nocode-base/src/hooks/material-stocktake/useMaterialStocktake.d.ts +0 -8
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/object-init-modal.vue.d.ts +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e6 as EDIT_INPUT_WR, e7 as keyValues, d_ as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-B-KhKgs2.js";
|
|
2
2
|
function isClear(code) {
|
|
3
3
|
return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-
|
|
3
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-QFP7aiss.js";
|
|
3
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-B-KhKgs2.js";
|
|
4
4
|
import { isNil } from "lodash-es";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 0,
|
|
@@ -49,6 +49,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
const optionGap = computed(() => props.fieldWidget.optionGap ?? DEFAULT_OPTION_GAP);
|
|
50
50
|
const styleVars = computed(() => {
|
|
51
51
|
const result = {};
|
|
52
|
+
const isRequired = Boolean(props.fieldWidget.required) && !props.disabled;
|
|
53
|
+
Object.assign(result, {
|
|
54
|
+
"--cell-field-border-color": isRequired ? "#ffb0ae" : "#e0e3eb",
|
|
55
|
+
"--cell-field-border-hover-color": isRequired ? "#ff7875" : "var(--ant-primary-color)",
|
|
56
|
+
"--cell-field-background-color": props.disabled ? "#f2f3f5" : isRequired ? "#fff7f7" : "#fff",
|
|
57
|
+
"--cell-field-text-color": "#1a1d23"
|
|
58
|
+
});
|
|
52
59
|
if (!isNil(props.fieldWidget.iconLabelSpace)) {
|
|
53
60
|
result["--gct-select-ex-icon-label-space"] = `${props.fieldWidget.iconLabelSpace}px`;
|
|
54
61
|
}
|
|
@@ -73,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
80
|
"option-gap": optionGap.value,
|
|
74
81
|
style: normalizeStyle(styleVars.value),
|
|
75
82
|
size: "small",
|
|
76
|
-
placeholder: __props.fieldWidget.placeholder
|
|
83
|
+
placeholder: __props.fieldWidget.placeholder ?? _ctx.$t("sys.chooseText")
|
|
77
84
|
}, {
|
|
78
85
|
suffix: withCtx(({ option }) => [
|
|
79
86
|
!!getOptionMeta(option.value)?.attachFields ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(getOptionMeta(option.value).attachFields, (field) => {
|
|
@@ -91,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
98
|
};
|
|
92
99
|
}
|
|
93
100
|
});
|
|
94
|
-
const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
101
|
+
const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-820ca321"]]);
|
|
95
102
|
export {
|
|
96
103
|
enumDesign as default
|
|
97
104
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, Fragment, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref } from "vue";
|
|
2
|
+
import { i as useSpreadSheet, I as Icon, b as FormItem, k as draggableComponent } from "./index-QFP7aiss.js";
|
|
3
|
+
import { $ as buildUUID, _ as _export_sfc, F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-B-KhKgs2.js";
|
|
4
4
|
import { clone, cloneDeep, differenceBy } from "lodash-es";
|
|
5
5
|
import { useModal } from "@gct-paas/core";
|
|
6
|
-
import { A as AttachFieldEditor } from "./attach-fields-editor-
|
|
6
|
+
import { A as AttachFieldEditor } from "./attach-fields-editor-BIiVvohl.js";
|
|
7
7
|
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
8
8
|
const _hoisted_1$3 = { class: "enum-option-modal" };
|
|
9
9
|
const _hoisted_2$3 = { class: "enum-option-modal__footer" };
|
|
@@ -12,7 +12,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
props: {
|
|
13
13
|
option: {},
|
|
14
14
|
isEdit: { type: Boolean },
|
|
15
|
-
modal: {}
|
|
15
|
+
modal: {},
|
|
16
|
+
readonly: { type: Boolean }
|
|
16
17
|
},
|
|
17
18
|
emits: ["update", "create"],
|
|
18
19
|
setup(__props, { emit: __emit }) {
|
|
@@ -29,6 +30,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
formState.display = true;
|
|
30
31
|
};
|
|
31
32
|
const validateAndEmit = async () => {
|
|
33
|
+
if (props.readonly) return;
|
|
32
34
|
await enumFormRef.value?.validate();
|
|
33
35
|
if (props.isEdit) {
|
|
34
36
|
emit("update", clone(formState));
|
|
@@ -78,21 +80,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
78
80
|
createVNode(_component_a_form_item, {
|
|
79
81
|
label: _ctx.$t("sys.component.fieldTypeProps.showValue"),
|
|
80
82
|
name: "text",
|
|
81
|
-
rules: [{ required: true }]
|
|
83
|
+
rules: __props.readonly ? [] : [{ required: true }]
|
|
82
84
|
}, {
|
|
83
85
|
default: withCtx(() => [
|
|
84
86
|
createVNode(_component_a_input, {
|
|
85
87
|
value: formState.text,
|
|
86
88
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.text = $event),
|
|
87
|
-
placeholder: _ctx.$t("sys.inputText")
|
|
88
|
-
|
|
89
|
+
placeholder: _ctx.$t("sys.inputText"),
|
|
90
|
+
disabled: __props.readonly
|
|
91
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
89
92
|
]),
|
|
90
93
|
_: 1
|
|
91
|
-
}, 8, ["label"]),
|
|
94
|
+
}, 8, ["label", "rules"]),
|
|
92
95
|
createVNode(_component_a_form_item, {
|
|
93
96
|
label: _ctx.$t("sys.component.fieldTypeProps.optionValue"),
|
|
94
97
|
name: "value",
|
|
95
|
-
rules: [
|
|
98
|
+
rules: __props.readonly ? [] : [
|
|
96
99
|
{ required: true },
|
|
97
100
|
{
|
|
98
101
|
validator: validateSpecialCharacters
|
|
@@ -103,8 +106,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
103
106
|
createVNode(_component_a_input, {
|
|
104
107
|
value: formState.value,
|
|
105
108
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value = $event),
|
|
106
|
-
placeholder: _ctx.$t("sys.inputText")
|
|
107
|
-
|
|
109
|
+
placeholder: _ctx.$t("sys.inputText"),
|
|
110
|
+
disabled: __props.readonly
|
|
111
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
108
112
|
]),
|
|
109
113
|
_: 1
|
|
110
114
|
}, 8, ["label", "rules"]),
|
|
@@ -115,8 +119,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
115
119
|
default: withCtx(() => [
|
|
116
120
|
createVNode(_component_a_switch, {
|
|
117
121
|
checked: formState.defaultSelected,
|
|
118
|
-
"onUpdate:checked": _cache[2] || (_cache[2] = ($event) => formState.defaultSelected = $event)
|
|
119
|
-
|
|
122
|
+
"onUpdate:checked": _cache[2] || (_cache[2] = ($event) => formState.defaultSelected = $event),
|
|
123
|
+
disabled: __props.readonly
|
|
124
|
+
}, null, 8, ["checked", "disabled"])
|
|
120
125
|
]),
|
|
121
126
|
_: 1
|
|
122
127
|
}, 8, ["label"]),
|
|
@@ -127,8 +132,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
127
132
|
default: withCtx(() => [
|
|
128
133
|
createVNode(_component_a_switch, {
|
|
129
134
|
checked: formState.display,
|
|
130
|
-
"onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.display = $event)
|
|
131
|
-
|
|
135
|
+
"onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.display = $event),
|
|
136
|
+
disabled: __props.readonly
|
|
137
|
+
}, null, 8, ["checked", "disabled"])
|
|
132
138
|
]),
|
|
133
139
|
_: 1
|
|
134
140
|
}, 8, ["label"])
|
|
@@ -138,35 +144,37 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
138
144
|
createElementVNode("div", _hoisted_2$3, [
|
|
139
145
|
createVNode(_component_a_button, { onClick: closeModal }, {
|
|
140
146
|
default: withCtx(() => [
|
|
141
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.cancel")), 1)
|
|
147
|
+
createTextVNode(toDisplayString(__props.readonly ? _ctx.$t("sys.closeText") || "关闭" : _ctx.$t("sys.cancel")), 1)
|
|
142
148
|
]),
|
|
143
149
|
_: 1
|
|
144
150
|
}),
|
|
145
|
-
!__props.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
151
|
+
!__props.readonly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
152
|
+
!__props.isEdit ? (openBlock(), createBlock(_component_a_button, {
|
|
153
|
+
key: 0,
|
|
154
|
+
type: "primary",
|
|
155
|
+
onClick: saveAndNew
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
createTextVNode(toDisplayString(_ctx.$t("sys.confirmAndContinue")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})) : createCommentVNode("", true),
|
|
162
|
+
createVNode(_component_a_button, {
|
|
163
|
+
type: "primary",
|
|
164
|
+
onClick: save
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createTextVNode(toDisplayString(_ctx.$t("sys.okText")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
], 64)) : createCommentVNode("", true)
|
|
164
172
|
])
|
|
165
173
|
]);
|
|
166
174
|
};
|
|
167
175
|
}
|
|
168
176
|
});
|
|
169
|
-
const EnumOptionModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
177
|
+
const EnumOptionModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-4cd5423b"]]);
|
|
170
178
|
const _hoisted_1$2 = { class: "enum-import-title" };
|
|
171
179
|
const _hoisted_2$2 = { class: "title" };
|
|
172
180
|
const _hoisted_3$1 = { class: "desc-ul" };
|
|
@@ -482,13 +490,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
482
490
|
createElementVNode("div", {
|
|
483
491
|
class: normalizeClass(unref(ns).e("actions"))
|
|
484
492
|
}, [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
493
|
+
createElementVNode("i", {
|
|
494
|
+
class: normalizeClass([
|
|
495
|
+
"iconfont",
|
|
496
|
+
"icon-bianji",
|
|
497
|
+
unref(ns).e("edit"),
|
|
498
|
+
"allow-readonly-view"
|
|
499
|
+
]),
|
|
488
500
|
title: _ctx.$t("sys.edit"),
|
|
489
501
|
onClick: _cache[1] || (_cache[1] = ($event) => editOption(__props.option))
|
|
490
|
-
}, null, 10, _hoisted_1$1)
|
|
491
|
-
!__props.disabled ? (openBlock(), createElementBlock(Fragment, { key:
|
|
502
|
+
}, null, 10, _hoisted_1$1),
|
|
503
|
+
!__props.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
492
504
|
__props.option.display ? (openBlock(), createBlock(SeeViewIcon, {
|
|
493
505
|
key: 0,
|
|
494
506
|
class: "icon",
|
|
@@ -500,17 +512,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
500
512
|
}))
|
|
501
513
|
], 64)) : createCommentVNode("", true),
|
|
502
514
|
!__props.disabled ? (openBlock(), createElementBlock("i", {
|
|
503
|
-
key:
|
|
515
|
+
key: 1,
|
|
504
516
|
class: normalizeClass(["iconfont", "icon-shanchu", unref(ns).e("remove")]),
|
|
505
517
|
title: _ctx.$t("sys.delText"),
|
|
506
518
|
onClick: _cache[4] || (_cache[4] = ($event) => removeOption(__props.option))
|
|
507
519
|
}, null, 10, _hoisted_2$1)) : createCommentVNode("", true),
|
|
508
|
-
|
|
520
|
+
!__props.disabled ? (openBlock(), createBlock(_component_a_checkbox, {
|
|
521
|
+
key: 2,
|
|
509
522
|
class: normalizeClass([unref(ns).e("enable"), "!ml-6px"]),
|
|
510
523
|
disabled: __props.disabled,
|
|
511
524
|
checked: enableRef.value,
|
|
512
525
|
"onUpdate:checked": _cache[5] || (_cache[5] = ($event) => enableRef.value = $event)
|
|
513
|
-
}, null, 8, ["class", "disabled", "checked"])
|
|
526
|
+
}, null, 8, ["class", "disabled", "checked"])) : createCommentVNode("", true)
|
|
514
527
|
], 2)
|
|
515
528
|
], 2)),
|
|
516
529
|
enableRef.value ? (openBlock(), createBlock(AttachFieldEditor, {
|
|
@@ -523,7 +536,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
523
536
|
};
|
|
524
537
|
}
|
|
525
538
|
});
|
|
526
|
-
const EnumOptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
539
|
+
const EnumOptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-315ca811"]]);
|
|
527
540
|
const _hoisted_1 = { class: "enum-props-title" };
|
|
528
541
|
const _hoisted_2 = { class: "flex" };
|
|
529
542
|
const _hoisted_3 = { class: "ml-4px" };
|
|
@@ -551,6 +564,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
551
564
|
{
|
|
552
565
|
isEdit: !!option,
|
|
553
566
|
option,
|
|
567
|
+
readonly: !!props.disabled,
|
|
554
568
|
onUpdate: onOptionUpdate,
|
|
555
569
|
onCreate: onOptionCreate
|
|
556
570
|
},
|
|
@@ -563,16 +577,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
563
577
|
);
|
|
564
578
|
};
|
|
565
579
|
const addOption = async () => {
|
|
580
|
+
if (props.disabled) return;
|
|
566
581
|
openEditModal();
|
|
567
582
|
};
|
|
568
583
|
const editOption = async (option) => {
|
|
569
584
|
openEditModal(option);
|
|
570
585
|
};
|
|
571
586
|
const removeOption = (option) => {
|
|
587
|
+
if (props.disabled) return;
|
|
572
588
|
const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
|
|
573
589
|
formState.value.options.splice(findIndex, 1);
|
|
574
590
|
};
|
|
575
591
|
const viewOption = (option) => {
|
|
592
|
+
if (props.disabled) return;
|
|
576
593
|
formState.value.options.forEach((item) => {
|
|
577
594
|
if (item.id === option.id) {
|
|
578
595
|
item.display = true;
|
|
@@ -580,6 +597,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
580
597
|
});
|
|
581
598
|
};
|
|
582
599
|
const hiddenOption = (option) => {
|
|
600
|
+
if (props.disabled) return;
|
|
583
601
|
formState.value.options.forEach((item) => {
|
|
584
602
|
if (item.id === option.id) {
|
|
585
603
|
item.display = false;
|
|
@@ -596,15 +614,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
596
614
|
}
|
|
597
615
|
};
|
|
598
616
|
const onOptionUpdate = (option) => {
|
|
617
|
+
if (props.disabled) return;
|
|
599
618
|
const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
|
|
600
619
|
formState.value.options.splice(findIndex, 1, option);
|
|
601
620
|
afterOptionChange(option);
|
|
602
621
|
};
|
|
603
622
|
const onOptionCreate = (option) => {
|
|
623
|
+
if (props.disabled) return;
|
|
604
624
|
formState.value.options.push(option);
|
|
605
625
|
afterOptionChange(option);
|
|
606
626
|
};
|
|
607
627
|
const handleOpenImportModal = async () => {
|
|
628
|
+
if (props.disabled) return;
|
|
608
629
|
const res = await window.NocodeAdapter.utils.overlay.modal(
|
|
609
630
|
EnumImportModal,
|
|
610
631
|
{},
|
|
@@ -707,7 +728,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
707
728
|
};
|
|
708
729
|
}
|
|
709
730
|
});
|
|
710
|
-
const enumProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
731
|
+
const enumProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-958ac8d2"]]);
|
|
711
732
|
export {
|
|
712
733
|
enumProps as default
|
|
713
734
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { B as BaseFontEditor } from "./base-font-editor-
|
|
3
|
-
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { C as CellWidgetRenderComp } from "./index-
|
|
2
|
+
import { B as BaseFontEditor } from "./base-font-editor-e9sd4IkJ.js";
|
|
3
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-D_WfbMb1.js";
|
|
4
|
+
import { C as CellWidgetRenderComp } from "./index-QFP7aiss.js";
|
|
5
5
|
const DEFAULT_LETTER_SPACE = 8;
|
|
6
6
|
const DEFAULT_OPTION_GAP = 12;
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|