@gct-paas/excel 0.1.28-beta.9 → 0.1.29
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/{BaseComponent-yoXj5Q9c.js → BaseComponent-9YPaGJfR.js} +3 -1
- package/dist/{VueVideoPlayer-DnxMrbso.js → VueVideoPlayer-DDUZu4FR.js} +2 -2
- package/dist/{align-editor-B4gydK1M.js → align-editor-aEWznFoT.js} +1 -1
- package/dist/{barcode-design-Cid0MzDI.js → barcode-design-BxpkeU3s.js} +2 -2
- package/dist/base/index.es.js +718 -466
- package/dist/{diagonal-design-C1ZotzUS.js → diagonal-design-TclIHJPn.js} +2 -2
- package/dist/{dynamic-table-action-C1o2TjqX.js → dynamic-table-action-DmQ4nVdA.js} +825 -216
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js} +2457 -757
- package/dist/{edit.utils-CXmmCnxE-DEOcuCns.js → edit.utils-CXmmCnxE-pmY90xaE.js} +1 -1
- package/dist/excel.css +20939 -21654
- package/dist/{exceljs.min-DHw6Xo0Z.js → exceljs.min-DMs_Il25.js} +2 -2
- package/dist/{font-editor-BMzWHu2P.js → font-editor-Jk202Wfw.js} +3 -3
- package/dist/{image-design-Cv7Md3br.js → image-design-CV8ivT4U.js} +3 -2
- package/dist/index-56SEKe0q.js +56 -0
- package/dist/{index-ClwYjOaz.js → index-B94zjbXB.js} +2 -2
- package/dist/{index-DCyS2gPu.js → index-B9hn-Xpy.js} +62 -261
- package/dist/{index-CTfI5z2v.js → index-BI1w0HuA.js} +2 -2
- package/dist/{index-DYJ2NY6r.js → index-BIyoFjsu.js} +1 -1
- package/dist/{index-Cf0HUPLj.js → index-BNdFxtuu.js} +2 -2
- package/dist/index-BR3okRzi.js +26 -0
- package/dist/{index-B_rAitke.js → index-BVy2F-LZ.js} +2 -2
- package/dist/{index-CDLpl1vT.js → index-BWSh7ft6.js} +57467 -75573
- package/dist/{index-BQLH_u5E.js → index-BgUSwNSn.js} +1 -1
- package/dist/{index-DVknMcoI.js → index-BzNleuvF.js} +8 -5
- package/dist/{index-BC7ZPYu4.js → index-CJgeCzTz.js} +4 -7
- package/dist/{index-KJIuf63z.js → index-CM0bDadW.js} +3 -3
- package/dist/{index-DYPfKE_B.js → index-Co8dy8tY.js} +2 -2
- package/dist/{index-Ca8Vr4hp.js → index-CslB9Mj3.js} +3 -3
- package/dist/{index-B2oEU1dw.js → index-D3RlguP-.js} +2 -2
- package/dist/{index-De0lJXBW.js → index-DAokF2RK.js} +2 -2
- package/dist/{index-B_qNr-yz.js → index-DUomn6r4.js} +2 -2
- package/dist/{index-DGF9F0hk.js → index-DVBGDVN0.js} +2 -2
- package/dist/{index-DLhVj92F.js → index-DVCumM_5.js} +2 -2
- package/dist/{index-DHCfwj7L.js → index-DX2S50Jz.js} +1 -1
- package/dist/{index-b03O87gX.js → index-DXutPZQB.js} +1 -1
- package/dist/{index-BMaOAtO5.js → index-DXvugQoP.js} +2 -2
- package/dist/{index-t_DIs_9d.js → index-DmLngOvC.js} +2 -2
- package/dist/{index-EGCBxJ5U.js → index-Dxiaj_9W.js} +2 -2
- package/dist/{index-CB2KdECV.js → index-DzZ4dTHg.js} +2 -2
- package/dist/index-P-QlF0da.js +26 -0
- package/dist/{index-BNW93hpM.js → index-RHv1ncwn.js} +1 -1
- package/dist/{index-Bi8eFVNQ.js → index-eaPQQt2I.js} +1 -1
- package/dist/{index-DPHsObDL.js → index-iCBdHXeT.js} +2 -2
- package/dist/{index-D4SRGG7R.js → index-kZ3vhOMA.js} +2 -2
- package/dist/{index-yee5hcWj.js → index-q0gBBMoc.js} +2 -2
- package/dist/{index--m7aMhTe.js → index-s7YNVpgF.js} +1 -1
- package/dist/{index-DWd__rfX.js → index-zuExIXWU.js} +1 -1
- package/dist/index.es.js +49 -47
- package/dist/{mb-render-DNA0sAdk.js → mb-render-BBRR_byl.js} +3 -3
- package/dist/{version-select-Dt0iT2ZE.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BGrVMSEF.js} +418 -421
- package/dist/{pagination-design-a-8WGmGL.js → pagination-design-DWvn4UrB.js} +2 -2
- package/dist/paper-widget-design-DZ7tF6Rn.js +4 -0
- package/dist/{qrcode-design-CWa7ucIf.js → qrcode-design-yLHw_1Hb.js} +1 -1
- package/dist/{revo-grid.entry-D7L9YPVS.js → revo-grid.entry-DW8yYngF.js} +1 -1
- package/dist/{revogr-attribution_7.entry-Cp0OE2PX.js → revogr-attribution_7.entry-WnSOjAfL.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-CcGTw0f4.js → revogr-clipboard_3.entry-5f1ZtJWy.js} +2 -2
- package/dist/{revogr-data_4.entry-Bh7oCpj9.js → revogr-data_4.entry-BwcXhOPY.js} +2 -2
- package/dist/{revogr-filter-panel.entry-OJyr7l1E.js → revogr-filter-panel.entry-CXpo_Btw.js} +1 -1
- package/dist/{serialnumber-design-BDTeHe2C.js → serialnumber-design-CYdELIDU.js} +1 -1
- package/dist/shared/index.es.js +25 -30
- package/dist/{single-field-drop-C-IeYaFA.js → single-field-drop-hAnlTOzR.js} +2 -2
- package/dist/{size-editor-Ibjf73lo.js → size-editor-Dr3sVcUl.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +36 -0
- package/dist/src/adapter/setup.d.ts +18 -12
- package/dist/src/domain/field/auto-complete/material-container-manifest.d.ts +2 -0
- package/dist/src/domain/field/auto-complete/material-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/auto-complete/related-lot-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/auto-complete/scrap-material-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/auto-complete/sterilization-container-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/date-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/date-time-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/production-date-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/re-inspection-date-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/report-end-time-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/report-start-time-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/time-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/trace-date-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/validity-manifest.d.ts +2 -0
- package/dist/src/domain/field/date/warehouse-receipt-date-manifest.d.ts +2 -0
- package/dist/src/domain/field/index.d.ts +9 -0
- package/dist/src/domain/field/number/decimal-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/destructive-test-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/double-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/good-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/inspection-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/integer-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/long-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/material-check-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/not-good-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/of-inst-num-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/operation-output-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/operation-receive-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/product-check-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/production-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/qty-consumed-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/qty-required-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/scrap-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/work-hours-manifest.d.ts +2 -0
- package/dist/src/domain/field/option/boolean-manifest.d.ts +2 -0
- package/dist/src/domain/field/option/enum-manifest.d.ts +2 -0
- package/dist/src/domain/field/option/enum-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/option/option-manifest.d.ts +2 -0
- package/dist/src/domain/field/option/option-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/rdo-select/e-sop-manifest.d.ts +2 -0
- package/dist/src/domain/field/rdo-select/product-manifest.d.ts +2 -0
- package/dist/src/domain/field/rdo-select/scrap-material-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/device-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/device-ref-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/device-ref-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/location-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/mfg-order-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/model-relation-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/not-good-group-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/not-good-reason-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/operation-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/org-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/org-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/production-container-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/ref-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/ref-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/routing-operation-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/scrap-group-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/scrap-reason-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/shopfloor-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/target-warehouse-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/user-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/user-multi-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/warehouse-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/e-sop-version-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/external-reference-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/long-text-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/order-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/record-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/text-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/warehouse-receipt-no-manifest.d.ts +2 -0
- package/dist/src/domain/field/types.d.ts +18 -0
- package/dist/src/domain/field/upload/attachment-manifest.d.ts +2 -0
- package/dist/src/domain/field/upload/image-manifest.d.ts +2 -0
- package/dist/src/domain/field/upload/reporter-manifest.d.ts +2 -0
- package/dist/src/domain/field/upload/signature-manifest.d.ts +2 -0
- package/dist/src/domain/field/upload/warehouse-manager-manifest.d.ts +2 -0
- package/dist/src/domain/index.d.ts +1 -0
- package/dist/src/domain/object/date-object/index.d.ts +5 -0
- package/dist/src/domain/object/date-object/profile/field-keys.d.ts +19 -0
- package/dist/src/domain/object/date-object/profile/fields.d.ts +2 -0
- package/dist/src/domain/object/date-object/profile/index.d.ts +3 -0
- package/dist/src/domain/object/date-object/runtime/date-object-context.d.ts +30 -0
- package/dist/src/domain/object/date-object/runtime/date-object-runtime.d.ts +43 -0
- package/dist/src/domain/object/date-object/runtime/fetch-records.d.ts +13 -0
- package/dist/src/domain/object/date-object/runtime/object-handlers.d.ts +4 -0
- package/dist/src/domain/object/date-object/runtime/re-inspection-date.d.ts +25 -0
- package/dist/src/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/object/date-object/runtime/utils.d.ts +13 -0
- package/dist/src/domain/object/date-object/types.d.ts +53 -0
- package/dist/src/domain/object/index.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +14 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +14 -0
- package/dist/src/domain/table/business/warehouse/shared/eqm-part-api.d.ts +13 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +40 -3
- package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +9 -1
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +17 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +14 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +17 -34
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +13 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/types.d.ts +20 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +14 -0
- package/dist/src/domain/table/design/panel-features.d.ts +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-modal.vue.d.ts +3 -1
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +2 -0
- package/dist/src/nocode-base/src/constant/index.d.ts +5 -1
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +42 -2
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +1 -1
- 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/scan-helpers.d.ts +13 -0
- package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/stocktake-calc.d.ts +3 -1
- package/dist/src/nocode-base/src/core/sub-table/warehouse-in-table-core.d.ts +15 -0
- package/dist/src/nocode-base/src/core/sub-table/warehouse-out-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/date-object/use-date-object.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +3 -4
- package/dist/src/nocode-base/src/hooks/device-link/types.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/index.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +20 -6
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +34 -19
- package/dist/src/nocode-base/src/hooks/material-consume/service.d.ts +12 -0
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +1 -4
- package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +49 -8
- package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/product-lot-link.d.ts +35 -0
- package/dist/src/nocode-base/src/hooks/operation-receive-qty.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +12 -0
- package/dist/src/nocode-base/src/hooks/useStyles.d.ts +2 -2
- package/dist/src/nocode-base/src/interface/device-query.d.ts +40 -0
- package/dist/src/nocode-base/src/interface/index.d.ts +2 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +11 -0
- package/dist/src/nocode-base/src/interface/transform.d.ts +1 -1
- package/dist/src/nocode-base/src/types/business/index.d.ts +3 -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 +5 -1
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-select.d.ts +13 -1
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -6
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +4 -8
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts +1 -1
- 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 +15 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/field-config-visibility.d.ts +2 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search-editor.vue.d.ts +1 -4
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +12 -10
- package/dist/src/online-form/src/views/__cell_widgets__/common/ref-autofill-editor/autofill-field-utils.d.ts +10 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-input.vue.d.ts +13 -0
- package/dist/src/{nocode-web-render/src/render/sub-table/stocktake/scan-modal.vue.d.ts → online-form/src/views/__cell_widgets__/fake-field/fake-number-input.vue.d.ts} +7 -1
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-select.vue.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/index.d.ts +4 -0
- package/dist/src/online-form/src/views/__cell_widgets__/field-design-components.d.ts +4 -0
- package/dist/src/online-form/src/views/__cell_widgets__/index.d.ts +0 -3
- package/dist/src/online-form/src/views/__cell_widgets__/widget-panel-map.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +5 -6
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +80 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +110 -3
- package/dist/src/online-form/src/views/designer/modules/base/drag-box.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor-modal.vue.d.ts +30 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor.vue.d.ts +6 -17
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/types.d.ts +20 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +58 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/material-consumption/bom-entry-editor.vue.d.ts +2 -1
- package/dist/src/online-form/src/views/designer/modules/toolkit/model-field/add-field-btn.vue.d.ts +1 -3
- package/dist/src/online-form/src/views/designer/utils/cell-content-style.d.ts +30 -0
- package/dist/src/online-form/src/views/designer/utils/field-type-label.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_common_/widget-component-visible.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +34 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +23 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.d.ts +5 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +40 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +21 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +24 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/index.d.ts +9 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/use-select-list-height.d.ts +9 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/trace-like-wrapper.d.ts +26 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/auto-complete/index.d.ts +14 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/{trace → rdo-select}/index.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/usePopoverWrapperHeight.d.ts +11 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/columns.d.ts +13 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +3 -3
- package/dist/src/shared/components/FieldStateIcon/field-state-icon.vue.d.ts +17 -0
- package/dist/src/shared/components/FieldStateIcon/index.d.ts +3 -0
- package/dist/src/shared/components/Preview/src/Functional.vue.d.ts +1 -1
- package/dist/src/shared/components/Signature/index.d.ts +2 -1
- package/dist/src/shared/components/Signature/types/index.d.ts +4 -0
- package/dist/src/shared/components/Signature/ui/handwriting-signer.vue.d.ts +1 -0
- package/dist/src/shared/components/Signature/ui/password-signer.vue.d.ts +1 -0
- package/dist/src/shared/components/Signature/ui/sign-popover-content.vue.d.ts +122 -0
- package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +4 -0
- package/dist/src/shared/components/Signature/ui/sign-switcher.vue.d.ts +3 -0
- package/dist/src/shared/components/registerGlobComp.d.ts +5 -0
- package/dist/src/shared/enum/field-type.d.ts +39 -284
- package/dist/src/shared/enum/index.d.ts +1 -1
- package/dist/src/shared/utils/field-size.d.ts +3 -0
- package/dist/src/shared/utils/lot2sn.d.ts +22 -0
- package/dist/{text-design-B1eX7Rp1.js → text-design-B9BH6_VT.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-kodOPzL5.js → throttle-Cpk1LoGk-Dkz6zJ8F.js} +1 -1
- package/dist/{timediff-design-CoDU15y8.js → timediff-design-INgy9LDa.js} +1 -1
- package/dist/trace-like-wrapper-B-PzUZAG.js +34 -0
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-ey1VNCHV.js → value-editor.vue_vue_type_style_index_0_lang-BSGmjBMz.js} +2 -2
- package/dist/web-render/index.es.js +118 -17
- package/dist/{widget-barcode-DAxib6qS.js → widget-barcode-su16tQ64.js} +4 -4
- package/dist/{widget-diagonal-BLo6XT0t.js → widget-diagonal-Dl3D3MJK.js} +5 -7
- package/dist/{widget-image-D_1erLrE.js → widget-image-C3143nmQ.js} +6 -5
- package/dist/{widget-line-BwnSq4--.js → widget-line-B3FO96uu.js} +4 -4
- package/dist/{widget-pagination-DZMwe14i.js → widget-pagination-Su-wNAqe.js} +5 -5
- package/dist/{widget-power-DfV-8moi.js → widget-power-DLbxegjB.js} +3 -3
- package/dist/{widget-qrcode-C3yTAHOn.js → widget-qrcode-BC2Eyf9h.js} +3 -3
- package/dist/{widget-rangelimit-DK8hANd1.js → widget-rangelimit-iuZswyH3.js} +3 -3
- package/dist/{widget-serialnumber-B2pkh6KT.js → widget-serialnumber-BqZm6cQQ.js} +1 -1
- package/dist/{widget-text-98SaLOpt.js → widget-text-DSAv-liE.js} +5 -5
- package/dist/{widget-timediff-OD7HVoVr.js → widget-timediff-CD8Jrx8s.js} +2 -2
- package/package.json +16 -6
- package/dist/agg-design-BO3eBkol.js +0 -24
- package/dist/agg-props-DEXapyb8.js +0 -10
- package/dist/agg-style-CDLpFoBn.js +0 -33
- package/dist/attach-fields-editor-DXh9f5iy.js +0 -116
- package/dist/base-font-editor-Ccv90UWY.js +0 -179
- package/dist/boolean-design-D1BIjOGz.js +0 -124
- package/dist/boolean-props-Cqb1zZfy.js +0 -155
- package/dist/boolean-style-C2uaO_Ei.js +0 -108
- package/dist/cell-upload-xzz2ufK7.js +0 -35
- package/dist/date-range-editor-D0SCmmS0.js +0 -472
- package/dist/date-time-design-pv0mRSgV.js +0 -64
- package/dist/date-time-props-B0YQO-ig.js +0 -105
- package/dist/date-time-style-Dn4TErcH.js +0 -33
- package/dist/decimal-design-BMKikWwr.js +0 -29
- package/dist/decimal-display-mode-BLrn-r-H.js +0 -60
- package/dist/decimal-props-BXVnDByV.js +0 -313
- package/dist/decimal-style-C5hB5sv6.js +0 -33
- package/dist/default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-LcZ8lvPF.js +0 -370
- package/dist/double-design-5yOxs5xB.js +0 -28
- package/dist/double-props-CQ9yBXNl.js +0 -91
- package/dist/double-style-C01aPXrT.js +0 -33
- package/dist/enum-design-DewhmfeF.js +0 -97
- package/dist/enum-props-0ECHvFUr.js +0 -734
- package/dist/enum-style-fm5Ap8eG.js +0 -76
- package/dist/expression-design-BY6oI5EW.js +0 -24
- package/dist/expression-props-3OvDgw-p.js +0 -10
- package/dist/expression-style-Hhv8wnAe.js +0 -33
- package/dist/file-design-QE5qUMix.js +0 -17
- package/dist/file-props-CEGee5yo.js +0 -201
- package/dist/file-style-65tfxL94.js +0 -9
- package/dist/image-design-BoQOLCEL.js +0 -23
- package/dist/image-props-GuHBNt9S.js +0 -16
- package/dist/image-style-BLQukPqV.js +0 -9
- package/dist/index-CBYXYocJ.js +0 -40
- package/dist/index-DI8vltuS.js +0 -68
- package/dist/integer-design-C8kRP1tV.js +0 -28
- package/dist/integer-props-XICS-8Qt.js +0 -162
- package/dist/integer-style-BstrlNJp.js +0 -33
- package/dist/number-input-ex-BjIp4mym.js +0 -69
- package/dist/org-design-DWZI8xev.js +0 -24
- package/dist/org-props-0CY6-hLS.js +0 -96
- package/dist/org-style-HDV7obSe.js +0 -33
- package/dist/paper-widget-design-CT80i7VR.js +0 -4
- package/dist/ref-autofill-editor-CObqr_xh.js +0 -2376
- package/dist/ref-design-BQ8o1gKm.js +0 -24
- package/dist/ref-props-xjVvnvGW.js +0 -348
- package/dist/ref-style-MZ52QRhu.js +0 -33
- package/dist/regex-editor-BctX8jdd.js +0 -823
- package/dist/select-render-type-editor.vue_vue_type_script_setup_true_lang-CONYLCmt.js +0 -159
- package/dist/signature-design-CFOFAaEu.js +0 -20
- package/dist/signature-props-N6ng9rqg.js +0 -346
- package/dist/signature-style-D2QQrgMT.js +0 -9
- package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +0 -44
- package/dist/src/nocode-base/src/hooks/material-date/service.d.ts +0 -4
- package/dist/src/nocode-base/src/hooks/material-date/use-material-date.d.ts +0 -2
- package/dist/text-design-CCs-p8Y3.js +0 -39
- package/dist/text-props-C6-s7LBP.js +0 -447
- package/dist/text-style-OUxV8LDu.js +0 -33
- package/dist/trace-design-Bhg0EIyC.js +0 -77
- package/dist/trace-props-DVekq4wE.js +0 -624
- package/dist/trace-style-CfSu__TO.js +0 -33
- package/dist/user-design-fMF_h4IG.js +0 -24
- package/dist/user-props-BGjEpC4j.js +0 -103
- package/dist/user-style-RUHIGWFF.js +0 -33
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
function _sfc_render(_ctx, _cache) {
|
|
5
|
-
return openBlock(), createElementBlock("div");
|
|
6
|
-
}
|
|
7
|
-
const aggProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
8
|
-
export {
|
|
9
|
-
aggProps as default
|
|
10
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { B as BaseFontEditor } from "./base-font-editor-Ccv90UWY.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "agg-style",
|
|
5
|
-
props: {
|
|
6
|
-
widget: {},
|
|
7
|
-
disabled: { type: Boolean }
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const formState = computed({
|
|
12
|
-
get() {
|
|
13
|
-
return props.widget;
|
|
14
|
-
},
|
|
15
|
-
set(v) {
|
|
16
|
-
Object.assign(props.widget, v);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(BaseFontEditor, {
|
|
21
|
-
"font-size": formState.value.fontSize,
|
|
22
|
-
"onUpdate:fontSize": _cache[0] || (_cache[0] = ($event) => formState.value.fontSize = $event),
|
|
23
|
-
"letter-space": formState.value.letterSpace,
|
|
24
|
-
"onUpdate:letterSpace": _cache[1] || (_cache[1] = ($event) => formState.value.letterSpace = $event),
|
|
25
|
-
"no-letter-space": true,
|
|
26
|
-
disabled: __props.disabled
|
|
27
|
-
}, null, 8, ["font-size", "letter-space", "disabled"]);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
_sfc_main as default
|
|
33
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
|
|
2
|
-
import { message } from "ant-design-vue";
|
|
3
|
-
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
4
|
-
import { u as useModelFields, d as useDrop, T as TransferType, e as getFieldIcon, M as MultipleDrop, f as FieldConfig } from "./index-CDLpl1vT.js";
|
|
5
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "attach-fields-editor",
|
|
8
|
-
props: {
|
|
9
|
-
items: {},
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
isFieldConfigurable: { type: Boolean, default: true },
|
|
12
|
-
customFieldTypes: {},
|
|
13
|
-
customFieldMsg: {}
|
|
14
|
-
},
|
|
15
|
-
emits: ["item-click", "update:items"],
|
|
16
|
-
setup(__props, { emit: __emit }) {
|
|
17
|
-
const ns = useNamespace("attach-fields-editor");
|
|
18
|
-
const { getFieldMeta } = useModelFields();
|
|
19
|
-
const props = __props;
|
|
20
|
-
const emit = __emit;
|
|
21
|
-
const getFieldName = (field) => {
|
|
22
|
-
return getFieldMeta(field).name;
|
|
23
|
-
};
|
|
24
|
-
const { handleDragOver, handleDrop } = useDrop([TransferType.Field], {
|
|
25
|
-
onFieldDrop(fieldMeta, fieldWidget) {
|
|
26
|
-
const allowFieldTypes = props.customFieldTypes?.length ? props.customFieldTypes : [
|
|
27
|
-
FIELD_TYPE.TEXT,
|
|
28
|
-
FIELD_TYPE.LONG_TEXT,
|
|
29
|
-
FIELD_TYPE.INTEGER,
|
|
30
|
-
FIELD_TYPE.LONG,
|
|
31
|
-
FIELD_TYPE.DOUBLE,
|
|
32
|
-
FIELD_TYPE.DECIMAL,
|
|
33
|
-
FIELD_TYPE.DATE,
|
|
34
|
-
FIELD_TYPE.TIME,
|
|
35
|
-
FIELD_TYPE.DATE_TIME,
|
|
36
|
-
FIELD_TYPE.MATERIAL_NO,
|
|
37
|
-
FIELD_TYPE.STERILIZATION_CONTAINER,
|
|
38
|
-
FIELD_TYPE.MATERIAL_CONTAINER,
|
|
39
|
-
FIELD_TYPE.RELATED_LOT_NO,
|
|
40
|
-
FIELD_TYPE.PRODUCT,
|
|
41
|
-
FIELD_TYPE.DEVICE,
|
|
42
|
-
FIELD_TYPE.MFG_ORDER,
|
|
43
|
-
FIELD_TYPE.RECORD_NO,
|
|
44
|
-
FIELD_TYPE.ORDER_NO,
|
|
45
|
-
FIELD_TYPE.TRACE_DATE
|
|
46
|
-
];
|
|
47
|
-
if (!allowFieldTypes.includes(fieldMeta.fieldType)) {
|
|
48
|
-
message.warn(props.customFieldMsg ?? $t("sys.onlineForm.BindFieldValidateTip"));
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const arr = props.items || [];
|
|
52
|
-
arr.push({ fieldMeta, fieldWidget });
|
|
53
|
-
emit("update:items", arr);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
const multipleItems = computed(() => {
|
|
57
|
-
return props.items?.map((item) => {
|
|
58
|
-
return {
|
|
59
|
-
label: getFieldName(item.fieldMeta),
|
|
60
|
-
icon: getFieldIcon(item.fieldMeta.fieldType)
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
const handleSelectedChange = (index) => {
|
|
65
|
-
if (!props.isFieldConfigurable) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
if (index === void 0) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
const item = props.items[index];
|
|
72
|
-
window.NocodeAdapter.utils.overlay.drawer(
|
|
73
|
-
FieldConfig,
|
|
74
|
-
{
|
|
75
|
-
fieldMeta: item.fieldMeta,
|
|
76
|
-
fieldWidget: item.fieldWidget
|
|
77
|
-
},
|
|
78
|
-
{ title: getFieldName(item.fieldMeta) }
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
const handleMove = (args) => {
|
|
82
|
-
if (!props.items) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const arr = [...props.items];
|
|
86
|
-
const el = arr.splice(args.oldIndex, 1);
|
|
87
|
-
arr.splice(args.newIndex, 0, ...el);
|
|
88
|
-
emit("update:items", arr);
|
|
89
|
-
};
|
|
90
|
-
const handleRemove = (index) => {
|
|
91
|
-
if (!props.items) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const arr = [...props.items];
|
|
95
|
-
arr.splice(index, 1);
|
|
96
|
-
emit("update:items", arr);
|
|
97
|
-
};
|
|
98
|
-
return (_ctx, _cache) => {
|
|
99
|
-
return openBlock(), createBlock(MultipleDrop, {
|
|
100
|
-
class: normalizeClass([unref(ns).b()]),
|
|
101
|
-
onDragover: unref(handleDragOver),
|
|
102
|
-
onDrop: unref(handleDrop),
|
|
103
|
-
dragText: _ctx.$t("sys.onlineForm.dragFieldIn"),
|
|
104
|
-
items: multipleItems.value,
|
|
105
|
-
disabled: __props.disabled,
|
|
106
|
-
"onUpdate:selectedIndex": handleSelectedChange,
|
|
107
|
-
onMove: handleMove,
|
|
108
|
-
onRemove: handleRemove
|
|
109
|
-
}, null, 8, ["class", "onDragover", "onDrop", "dragText", "items", "disabled"]);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
const AttachFieldEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-820bec1e"]]);
|
|
114
|
-
export {
|
|
115
|
-
AttachFieldEditor as A
|
|
116
|
-
};
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, createVNode, withCtx, createBlock, createSlots, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
3
|
-
import { b as FormItem } from "./index-CDLpl1vT.js";
|
|
4
|
-
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
5
|
-
const DEFAULT_LETTER_SPACE = 8;
|
|
6
|
-
const DEFAULT_OPTION_GAP = 12;
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "base-font-editor",
|
|
9
|
-
props: {
|
|
10
|
-
fontSize: {},
|
|
11
|
-
letterSpace: {},
|
|
12
|
-
noLetterSpace: { type: Boolean },
|
|
13
|
-
optionGap: {},
|
|
14
|
-
showOptionGap: { type: Boolean },
|
|
15
|
-
disabled: { type: Boolean }
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:fontSize", "update:letterSpace", "update:optionGap"],
|
|
18
|
-
setup(__props, { emit: __emit }) {
|
|
19
|
-
const ns = useNamespace("base-font-editor");
|
|
20
|
-
const props = __props;
|
|
21
|
-
const emit = __emit;
|
|
22
|
-
const letterSpaceFocused = ref(false);
|
|
23
|
-
const optionGapFocused = ref(false);
|
|
24
|
-
const letterSpaceDraft = ref(
|
|
25
|
-
props.letterSpace ?? (props.showOptionGap ? DEFAULT_LETTER_SPACE : void 0)
|
|
26
|
-
);
|
|
27
|
-
const optionGapDraft = ref(props.optionGap ?? DEFAULT_OPTION_GAP);
|
|
28
|
-
const fontSizeOptions = Array.from({ length: 8 }, (_, i) => i * 2 + 10).map((num) => ({
|
|
29
|
-
label: num,
|
|
30
|
-
value: num
|
|
31
|
-
}));
|
|
32
|
-
const _fontSize = computed({
|
|
33
|
-
get() {
|
|
34
|
-
return props.fontSize;
|
|
35
|
-
},
|
|
36
|
-
set(v) {
|
|
37
|
-
emit("update:fontSize", v);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
watch(
|
|
41
|
-
() => props.letterSpace,
|
|
42
|
-
(value) => {
|
|
43
|
-
if (!letterSpaceFocused.value) {
|
|
44
|
-
letterSpaceDraft.value = value ?? (props.showOptionGap ? DEFAULT_LETTER_SPACE : void 0);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
watch(
|
|
49
|
-
() => props.optionGap,
|
|
50
|
-
(value) => {
|
|
51
|
-
if (!optionGapFocused.value) {
|
|
52
|
-
optionGapDraft.value = value ?? DEFAULT_OPTION_GAP;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
const handleLetterSpaceFocus = () => {
|
|
57
|
-
letterSpaceFocused.value = true;
|
|
58
|
-
};
|
|
59
|
-
const handleLetterSpaceUpdate = (value) => {
|
|
60
|
-
if (value != null) {
|
|
61
|
-
emit("update:letterSpace", value);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const handleOptionGapFocus = () => {
|
|
65
|
-
optionGapFocused.value = true;
|
|
66
|
-
};
|
|
67
|
-
const handleOptionGapUpdate = (value) => {
|
|
68
|
-
if (value != null) {
|
|
69
|
-
emit("update:optionGap", value);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const restoreLetterSpaceDefault = () => {
|
|
73
|
-
letterSpaceFocused.value = false;
|
|
74
|
-
if (!props.showOptionGap || letterSpaceDraft.value != null) return;
|
|
75
|
-
letterSpaceDraft.value = DEFAULT_LETTER_SPACE;
|
|
76
|
-
emit("update:letterSpace", DEFAULT_LETTER_SPACE);
|
|
77
|
-
};
|
|
78
|
-
const restoreOptionGapDefault = () => {
|
|
79
|
-
optionGapFocused.value = false;
|
|
80
|
-
if (optionGapDraft.value != null) return;
|
|
81
|
-
optionGapDraft.value = DEFAULT_OPTION_GAP;
|
|
82
|
-
emit("update:optionGap", DEFAULT_OPTION_GAP);
|
|
83
|
-
};
|
|
84
|
-
return (_ctx, _cache) => {
|
|
85
|
-
const _component_a_select = resolveComponent("a-select");
|
|
86
|
-
const _component_a_input_number = resolveComponent("a-input-number");
|
|
87
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
88
|
-
createElementVNode("div", {
|
|
89
|
-
class: normalizeClass([unref(ns).b(), __props.showOptionGap && unref(ns).m("equal-control")])
|
|
90
|
-
}, [
|
|
91
|
-
createVNode(FormItem, {
|
|
92
|
-
class: normalizeClass(unref(ns).e("item")),
|
|
93
|
-
inline: false,
|
|
94
|
-
label: _ctx.$t("sys.cardDesign.cfg_form.size_mode")
|
|
95
|
-
}, {
|
|
96
|
-
default: withCtx(() => [
|
|
97
|
-
createVNode(_component_a_select, {
|
|
98
|
-
value: _fontSize.value,
|
|
99
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _fontSize.value = $event),
|
|
100
|
-
options: unref(fontSizeOptions),
|
|
101
|
-
size: "small",
|
|
102
|
-
disabled: __props.disabled,
|
|
103
|
-
placeholder: _ctx.$t("sys.inputText")
|
|
104
|
-
}, null, 8, ["value", "options", "disabled", "placeholder"])
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["class", "label"]),
|
|
108
|
-
!__props.noLetterSpace ? (openBlock(), createBlock(FormItem, {
|
|
109
|
-
key: 0,
|
|
110
|
-
class: normalizeClass(unref(ns).e("item")),
|
|
111
|
-
inline: false,
|
|
112
|
-
label: _ctx.$t("sys.onlineForm.spacing")
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
createVNode(_component_a_input_number, {
|
|
116
|
-
value: letterSpaceDraft.value,
|
|
117
|
-
"onUpdate:value": [
|
|
118
|
-
_cache[1] || (_cache[1] = ($event) => letterSpaceDraft.value = $event),
|
|
119
|
-
handleLetterSpaceUpdate
|
|
120
|
-
],
|
|
121
|
-
disabled: __props.disabled,
|
|
122
|
-
precision: 0,
|
|
123
|
-
size: __props.showOptionGap ? "small" : void 0,
|
|
124
|
-
onFocus: handleLetterSpaceFocus,
|
|
125
|
-
onBlur: restoreLetterSpaceDefault
|
|
126
|
-
}, createSlots({ _: 2 }, [
|
|
127
|
-
__props.showOptionGap ? {
|
|
128
|
-
name: "addonAfter",
|
|
129
|
-
fn: withCtx(() => [
|
|
130
|
-
_cache[3] || (_cache[3] = createTextVNode("px", -1))
|
|
131
|
-
]),
|
|
132
|
-
key: "0"
|
|
133
|
-
} : void 0
|
|
134
|
-
]), 1032, ["value", "disabled", "size"])
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["class", "label"])) : createCommentVNode("", true)
|
|
138
|
-
], 2),
|
|
139
|
-
__props.showOptionGap ? (openBlock(), createElementBlock("div", {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: normalizeClass([unref(ns).b(), unref(ns).m("equal-control")])
|
|
142
|
-
}, [
|
|
143
|
-
createVNode(FormItem, {
|
|
144
|
-
class: normalizeClass(unref(ns).e("item")),
|
|
145
|
-
inline: false,
|
|
146
|
-
label: _ctx.$t("sys.optionSpacing")
|
|
147
|
-
}, {
|
|
148
|
-
default: withCtx(() => [
|
|
149
|
-
createVNode(_component_a_input_number, {
|
|
150
|
-
value: optionGapDraft.value,
|
|
151
|
-
"onUpdate:value": [
|
|
152
|
-
_cache[2] || (_cache[2] = ($event) => optionGapDraft.value = $event),
|
|
153
|
-
handleOptionGapUpdate
|
|
154
|
-
],
|
|
155
|
-
disabled: __props.disabled,
|
|
156
|
-
precision: 0,
|
|
157
|
-
min: 0,
|
|
158
|
-
max: 100,
|
|
159
|
-
size: "small",
|
|
160
|
-
onFocus: handleOptionGapFocus,
|
|
161
|
-
onBlur: restoreOptionGapDefault
|
|
162
|
-
}, {
|
|
163
|
-
addonAfter: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
164
|
-
createTextVNode("px", -1)
|
|
165
|
-
])]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["value", "disabled"])
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
}, 8, ["class", "label"])
|
|
171
|
-
], 2)) : createCommentVNode("", true)
|
|
172
|
-
], 64);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
const BaseFontEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2e6daa3"]]);
|
|
177
|
-
export {
|
|
178
|
-
BaseFontEditor as B
|
|
179
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
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-CDLpl1vT.js";
|
|
3
|
-
import { T as BooleanShowMode, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
4
|
-
import { isNil } from "lodash-es";
|
|
5
|
-
import "dayjs";
|
|
6
|
-
import "ant-design-vue";
|
|
7
|
-
const _hoisted_1 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "boolean-design__affix"
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_2 = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "boolean-design__affix"
|
|
14
|
-
};
|
|
15
|
-
const DEFAULT_OPTION_GAP = 16;
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "boolean-design",
|
|
18
|
-
props: {
|
|
19
|
-
disabled: { type: Boolean },
|
|
20
|
-
fieldWidget: {}
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const hasAffix = computed(() => Boolean(props.fieldWidget.prefix || props.fieldWidget.suffix));
|
|
25
|
-
const optionGap = computed(() => props.fieldWidget.optionGap ?? DEFAULT_OPTION_GAP);
|
|
26
|
-
const iconType = computed(() => {
|
|
27
|
-
return {
|
|
28
|
-
[CellWidgetRenderComp.Radio]: "radio",
|
|
29
|
-
[CellWidgetRenderComp.Checkbox]: "checkbox"
|
|
30
|
-
}[props.fieldWidget.renderComp];
|
|
31
|
-
});
|
|
32
|
-
const options = computed(() => {
|
|
33
|
-
const result = [
|
|
34
|
-
{
|
|
35
|
-
label: props.fieldWidget.trueText || $t("sys.real"),
|
|
36
|
-
value: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: props.fieldWidget.falseText || $t("sys.fake"),
|
|
40
|
-
value: false
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
if (props.fieldWidget.renderComp === CellWidgetRenderComp.Checkbox) {
|
|
44
|
-
if (props.fieldWidget.showMode === BooleanShowMode.OnlyTrue) {
|
|
45
|
-
result.pop();
|
|
46
|
-
} else if (props.fieldWidget.showMode === BooleanShowMode.OnlyFalse) {
|
|
47
|
-
result.shift();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (props.fieldWidget.renderComp === CellWidgetRenderComp.Select) {
|
|
51
|
-
result.unshift({
|
|
52
|
-
label: $t("sys.null"),
|
|
53
|
-
value: null
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return result;
|
|
57
|
-
});
|
|
58
|
-
const nullValue = computed(() => {
|
|
59
|
-
if (props.fieldWidget.renderComp !== CellWidgetRenderComp.Checkbox) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (props.fieldWidget.showMode === BooleanShowMode.OnlyTrue) {
|
|
63
|
-
return false;
|
|
64
|
-
} else if (props.fieldWidget.showMode === BooleanShowMode.OnlyFalse) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
return void 0;
|
|
68
|
-
});
|
|
69
|
-
const styleVars = computed(() => {
|
|
70
|
-
const result = {};
|
|
71
|
-
if (!isNil(props.fieldWidget.iconLabelSpace)) {
|
|
72
|
-
result["--gct-select-ex-icon-label-space"] = props.fieldWidget.iconLabelSpace + "px";
|
|
73
|
-
}
|
|
74
|
-
result["--gct-select-ex-option-gap"] = `${optionGap.value}px`;
|
|
75
|
-
return result;
|
|
76
|
-
});
|
|
77
|
-
return (_ctx, _cache) => {
|
|
78
|
-
return openBlock(), createElementBlock("div", {
|
|
79
|
-
class: normalizeClass(["boolean-design", { "boolean-design--with-affix": hasAffix.value }])
|
|
80
|
-
}, [
|
|
81
|
-
__props.fieldWidget.prefix ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(__props.fieldWidget.prefix), 1)) : createCommentVNode("", true),
|
|
82
|
-
createVNode(unref(SelectEx), {
|
|
83
|
-
disabled: __props.disabled,
|
|
84
|
-
options: options.value,
|
|
85
|
-
value: __props.fieldWidget.defaultValue,
|
|
86
|
-
"is-multiple": false,
|
|
87
|
-
"show-mode": __props.fieldWidget.renderComp === unref(CellWidgetRenderComp).Select ? "select" : "icon-label",
|
|
88
|
-
"icon-type": iconType.value,
|
|
89
|
-
direction: __props.fieldWidget.direction,
|
|
90
|
-
"label-position": __props.fieldWidget.labelPosition,
|
|
91
|
-
"null-value": nullValue.value,
|
|
92
|
-
"icon-label-space": __props.fieldWidget.iconLabelSpace ?? 6,
|
|
93
|
-
"option-gap": optionGap.value,
|
|
94
|
-
style: normalizeStyle(styleVars.value),
|
|
95
|
-
size: "small",
|
|
96
|
-
placeholder: _ctx.$t("sys.chooseText")
|
|
97
|
-
}, {
|
|
98
|
-
suffix: withCtx(({ option }) => [
|
|
99
|
-
option.value === true && __props.fieldWidget.trueAttachFields?.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.fieldWidget.trueAttachFields, (field) => {
|
|
100
|
-
return openBlock(), createBlock(CellWidgetDesign, {
|
|
101
|
-
key: field.fieldMeta.field,
|
|
102
|
-
"field-meta": field.fieldMeta,
|
|
103
|
-
"field-widget": field.fieldWidget
|
|
104
|
-
}, null, 8, ["field-meta", "field-widget"]);
|
|
105
|
-
}), 128)) : createCommentVNode("", true),
|
|
106
|
-
option.value === false && __props.fieldWidget.falseAttachFields?.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.fieldWidget.falseAttachFields, (field) => {
|
|
107
|
-
return openBlock(), createBlock(CellWidgetDesign, {
|
|
108
|
-
key: field.fieldMeta.field,
|
|
109
|
-
"field-meta": field.fieldMeta,
|
|
110
|
-
"field-widget": field.fieldWidget
|
|
111
|
-
}, null, 8, ["field-meta", "field-widget"]);
|
|
112
|
-
}), 128)) : createCommentVNode("", true)
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["disabled", "options", "value", "show-mode", "icon-type", "direction", "label-position", "null-value", "icon-label-space", "option-gap", "style", "placeholder"]),
|
|
116
|
-
__props.fieldWidget.suffix ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.fieldWidget.suffix), 1)) : createCommentVNode("", true)
|
|
117
|
-
], 2);
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
const booleanDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b171bafd"]]);
|
|
122
|
-
export {
|
|
123
|
-
booleanDesign as default
|
|
124
|
-
};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { b as FormItem } from "./index-CDLpl1vT.js";
|
|
3
|
-
import { A as AttachFieldEditor } from "./attach-fields-editor-DXh9f5iy.js";
|
|
4
|
-
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
5
|
-
const _hoisted_1 = { style: { "float": "right" } };
|
|
6
|
-
const _hoisted_2 = { class: "option-container" };
|
|
7
|
-
const _hoisted_3 = { class: "option" };
|
|
8
|
-
const _hoisted_4 = { class: "option__label" };
|
|
9
|
-
const _hoisted_5 = { class: "option-container" };
|
|
10
|
-
const _hoisted_6 = { class: "option" };
|
|
11
|
-
const _hoisted_7 = { class: "option__label" };
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "boolean-props",
|
|
14
|
-
props: {
|
|
15
|
-
widget: {},
|
|
16
|
-
disabled: { type: Boolean }
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const formState = computed({
|
|
21
|
-
get() {
|
|
22
|
-
return props.widget;
|
|
23
|
-
},
|
|
24
|
-
set(v) {
|
|
25
|
-
Object.assign(props.widget, v);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const trueEnable = computed({
|
|
29
|
-
get() {
|
|
30
|
-
return !!formState.value.trueAttachFields;
|
|
31
|
-
},
|
|
32
|
-
set(v) {
|
|
33
|
-
formState.value.trueAttachFields = v ? [] : void 0;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const falseEnable = computed({
|
|
37
|
-
get() {
|
|
38
|
-
return !!formState.value.falseAttachFields;
|
|
39
|
-
},
|
|
40
|
-
set(v) {
|
|
41
|
-
formState.value.falseAttachFields = v ? [] : void 0;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const defaultValue = computed({
|
|
45
|
-
get() {
|
|
46
|
-
return `${formState.value.defaultValue}`;
|
|
47
|
-
},
|
|
48
|
-
set(v) {
|
|
49
|
-
let setVal = null;
|
|
50
|
-
switch (v) {
|
|
51
|
-
case "true":
|
|
52
|
-
setVal = true;
|
|
53
|
-
break;
|
|
54
|
-
case "false":
|
|
55
|
-
setVal = false;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
formState.value.defaultValue = setVal;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
const defaultOptions = computed(() => {
|
|
62
|
-
return [
|
|
63
|
-
{ label: $t("sys.null"), value: "null" },
|
|
64
|
-
{ label: formState.value.trueText || $t("sys.real"), value: "true" },
|
|
65
|
-
{ label: formState.value.falseText || $t("sys.fake"), value: "false" }
|
|
66
|
-
];
|
|
67
|
-
});
|
|
68
|
-
return (_ctx, _cache) => {
|
|
69
|
-
const _component_a_input = resolveComponent("a-input");
|
|
70
|
-
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
71
|
-
const _component_a_select = resolveComponent("a-select");
|
|
72
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
73
|
-
createVNode(FormItem, { inline: false }, {
|
|
74
|
-
label: withCtx(() => [
|
|
75
|
-
createElementVNode("span", null, toDisplayString(_ctx.$t("sys.boolOpt")), 1),
|
|
76
|
-
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.$t("sys.onlineForm.introduceField")), 1)
|
|
77
|
-
]),
|
|
78
|
-
default: withCtx(() => [
|
|
79
|
-
createElementVNode("div", _hoisted_2, [
|
|
80
|
-
createElementVNode("div", _hoisted_3, [
|
|
81
|
-
createElementVNode("span", _hoisted_4, toDisplayString(`${_ctx.$t("sys.real")}`), 1),
|
|
82
|
-
createVNode(_component_a_input, {
|
|
83
|
-
class: "option__input",
|
|
84
|
-
size: "small",
|
|
85
|
-
disabled: __props.disabled,
|
|
86
|
-
value: formState.value.trueText,
|
|
87
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.trueText = $event)
|
|
88
|
-
}, null, 8, ["disabled", "value"]),
|
|
89
|
-
createVNode(_component_a_checkbox, {
|
|
90
|
-
class: "option__checkbox",
|
|
91
|
-
disabled: __props.disabled,
|
|
92
|
-
checked: trueEnable.value,
|
|
93
|
-
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => trueEnable.value = $event)
|
|
94
|
-
}, null, 8, ["disabled", "checked"])
|
|
95
|
-
]),
|
|
96
|
-
trueEnable.value ? (openBlock(), createBlock(AttachFieldEditor, {
|
|
97
|
-
key: 0,
|
|
98
|
-
class: "mt-2px",
|
|
99
|
-
disabled: __props.disabled,
|
|
100
|
-
items: formState.value.trueAttachFields,
|
|
101
|
-
"onUpdate:items": _cache[2] || (_cache[2] = ($event) => formState.value.trueAttachFields = $event)
|
|
102
|
-
}, null, 8, ["disabled", "items"])) : createCommentVNode("", true)
|
|
103
|
-
]),
|
|
104
|
-
createElementVNode("div", _hoisted_5, [
|
|
105
|
-
createElementVNode("div", _hoisted_6, [
|
|
106
|
-
createElementVNode("span", _hoisted_7, toDisplayString(`${_ctx.$t("sys.fake")}`), 1),
|
|
107
|
-
createVNode(_component_a_input, {
|
|
108
|
-
class: "option__input",
|
|
109
|
-
size: "small",
|
|
110
|
-
disabled: __props.disabled,
|
|
111
|
-
value: formState.value.falseText,
|
|
112
|
-
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.falseText = $event)
|
|
113
|
-
}, null, 8, ["disabled", "value"]),
|
|
114
|
-
createVNode(_component_a_checkbox, {
|
|
115
|
-
class: "option__checkbox",
|
|
116
|
-
disabled: __props.disabled,
|
|
117
|
-
checked: falseEnable.value,
|
|
118
|
-
"onUpdate:checked": _cache[4] || (_cache[4] = ($event) => falseEnable.value = $event)
|
|
119
|
-
}, null, 8, ["disabled", "checked"])
|
|
120
|
-
]),
|
|
121
|
-
falseEnable.value ? (openBlock(), createBlock(AttachFieldEditor, {
|
|
122
|
-
key: 0,
|
|
123
|
-
class: "mt-2px",
|
|
124
|
-
disabled: __props.disabled,
|
|
125
|
-
items: formState.value.falseAttachFields,
|
|
126
|
-
"onUpdate:items": _cache[5] || (_cache[5] = ($event) => formState.value.falseAttachFields = $event)
|
|
127
|
-
}, null, 8, ["disabled", "items"])) : createCommentVNode("", true)
|
|
128
|
-
])
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}),
|
|
132
|
-
createVNode(FormItem, {
|
|
133
|
-
label: `${_ctx.$t("sys.defaultValue")}`,
|
|
134
|
-
inline: false
|
|
135
|
-
}, {
|
|
136
|
-
default: withCtx(() => [
|
|
137
|
-
createVNode(_component_a_select, {
|
|
138
|
-
class: "w-full",
|
|
139
|
-
value: defaultValue.value,
|
|
140
|
-
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => defaultValue.value = $event),
|
|
141
|
-
size: "small",
|
|
142
|
-
disabled: __props.disabled,
|
|
143
|
-
options: defaultOptions.value
|
|
144
|
-
}, null, 8, ["value", "disabled", "options"])
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["label"])
|
|
148
|
-
], 64);
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
const booleanProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ebe4855"]]);
|
|
153
|
-
export {
|
|
154
|
-
booleanProps as default
|
|
155
|
-
};
|