@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,823 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, createElementVNode, renderSlot, toDisplayString, ref, reactive, watch, onBeforeUnmount, withModifiers, Fragment, withCtx, createTextVNode, renderList, normalizeClass, createCommentVNode, onMounted, createBlock, normalizeStyle, toRaw } from "vue";
|
|
2
|
-
import { isNil, cloneDeep } from "lodash-es";
|
|
3
|
-
import { _ as _export_sfc, w as api, y as useModal } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
|
|
4
|
-
import { n as applyDesignReadonlyModal, b as FormItem } from "./index-CDLpl1vT.js";
|
|
5
|
-
import { message } from "ant-design-vue";
|
|
6
|
-
const _hoisted_1$3 = { class: "number-range" };
|
|
7
|
-
const _hoisted_2$2 = { class: "middle" };
|
|
8
|
-
const _hoisted_3$2 = { class: "length-sep" };
|
|
9
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "number-range",
|
|
11
|
-
props: {
|
|
12
|
-
min: {},
|
|
13
|
-
max: {},
|
|
14
|
-
precision: { default: 0 },
|
|
15
|
-
disabled: { type: Boolean, default: false },
|
|
16
|
-
lowerLimit: { default: 0 },
|
|
17
|
-
upperLimit: { default: Infinity },
|
|
18
|
-
minPlaceholder: { default: $t("sys.inputText") },
|
|
19
|
-
maxPlaceholder: { default: $t("sys.inputText") }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:min", "update:max"],
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const emit = __emit;
|
|
25
|
-
const minValue = computed({
|
|
26
|
-
get() {
|
|
27
|
-
return props.min;
|
|
28
|
-
},
|
|
29
|
-
set(v) {
|
|
30
|
-
emit("update:min", v);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const maxValue = computed({
|
|
34
|
-
get() {
|
|
35
|
-
return props.max;
|
|
36
|
-
},
|
|
37
|
-
set(v) {
|
|
38
|
-
emit("update:max", v);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const minLimit = computed(() => {
|
|
42
|
-
const lowerLimit = props.lowerLimit;
|
|
43
|
-
const upperLimit = isNil(maxValue.value) ? props.upperLimit : maxValue.value;
|
|
44
|
-
return {
|
|
45
|
-
lowerLimit,
|
|
46
|
-
upperLimit
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
const maxLimit = computed(() => {
|
|
50
|
-
const lowerLimit = isNil(minValue.value) ? props.lowerLimit : minValue.value;
|
|
51
|
-
const upperLimit = props.upperLimit;
|
|
52
|
-
return {
|
|
53
|
-
lowerLimit,
|
|
54
|
-
upperLimit
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
return (_ctx, _cache) => {
|
|
58
|
-
const _component_a_input_number = resolveComponent("a-input-number");
|
|
59
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
60
|
-
createVNode(_component_a_input_number, {
|
|
61
|
-
value: minValue.value,
|
|
62
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => minValue.value = $event),
|
|
63
|
-
min: minLimit.value.lowerLimit,
|
|
64
|
-
max: minLimit.value.upperLimit,
|
|
65
|
-
disabled: __props.disabled,
|
|
66
|
-
precision: __props.precision,
|
|
67
|
-
placeholder: __props.minPlaceholder,
|
|
68
|
-
controls: false,
|
|
69
|
-
size: "small"
|
|
70
|
-
}, null, 8, ["value", "min", "max", "disabled", "precision", "placeholder"]),
|
|
71
|
-
createElementVNode("div", _hoisted_2$2, [
|
|
72
|
-
renderSlot(_ctx.$slots, "middle", {}, () => [
|
|
73
|
-
createElementVNode("span", _hoisted_3$2, toDisplayString(_ctx.$t("sys.fieldTypeProps.to")), 1)
|
|
74
|
-
], true)
|
|
75
|
-
]),
|
|
76
|
-
createVNode(_component_a_input_number, {
|
|
77
|
-
value: maxValue.value,
|
|
78
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => maxValue.value = $event),
|
|
79
|
-
min: maxLimit.value.lowerLimit,
|
|
80
|
-
max: maxLimit.value.upperLimit,
|
|
81
|
-
disabled: __props.disabled,
|
|
82
|
-
precision: __props.precision,
|
|
83
|
-
placeholder: __props.maxPlaceholder,
|
|
84
|
-
controls: false,
|
|
85
|
-
size: "small"
|
|
86
|
-
}, null, 8, ["value", "min", "max", "disabled", "precision", "placeholder"])
|
|
87
|
-
]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
const NumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-e847ebd6"]]);
|
|
92
|
-
async function fetchCommonRegexList() {
|
|
93
|
-
const data = await api.platform.regexp.getList?.() || [];
|
|
94
|
-
return (data || []).filter((item) => !item.sysBuiltin);
|
|
95
|
-
}
|
|
96
|
-
async function createCommonRegex(payload) {
|
|
97
|
-
await api.platform.regexp.post?.(payload);
|
|
98
|
-
}
|
|
99
|
-
async function updateCommonRegex(id, payload) {
|
|
100
|
-
await api.platform.regexp.putId?.({ id }, payload);
|
|
101
|
-
}
|
|
102
|
-
async function deleteCommonRegex(id) {
|
|
103
|
-
await api.platform.regexp.delete?.({ ids: id });
|
|
104
|
-
}
|
|
105
|
-
const _hoisted_1$2 = { class: "common-regex-panel__header" };
|
|
106
|
-
const _hoisted_2$1 = { class: "common-regex-panel__title" };
|
|
107
|
-
const _hoisted_3$1 = { class: "common-regex-panel__empty" };
|
|
108
|
-
const _hoisted_4$1 = { class: "common-regex-panel__empty-tip" };
|
|
109
|
-
const _hoisted_5$1 = { class: "common-regex-panel__header has-border" };
|
|
110
|
-
const _hoisted_6$1 = { class: "common-regex-panel__title" };
|
|
111
|
-
const _hoisted_7$1 = { class: "common-regex-panel__list" };
|
|
112
|
-
const _hoisted_8$1 = { class: "common-regex-panel__item-main" };
|
|
113
|
-
const _hoisted_9$1 = ["title"];
|
|
114
|
-
const _hoisted_10$1 = ["title"];
|
|
115
|
-
const _hoisted_11$1 = { class: "common-regex-panel__item-actions" };
|
|
116
|
-
const _hoisted_12$1 = ["onClick"];
|
|
117
|
-
const _hoisted_13$1 = ["onClick"];
|
|
118
|
-
const _hoisted_14 = ["onClick"];
|
|
119
|
-
const _hoisted_15 = { class: "common-regex-panel__header has-border" };
|
|
120
|
-
const _hoisted_16 = { class: "common-regex-panel__title" };
|
|
121
|
-
const _hoisted_17 = { class: "common-regex-panel__form" };
|
|
122
|
-
const _hoisted_18 = { class: "common-regex-panel__form-item" };
|
|
123
|
-
const _hoisted_19 = { class: "common-regex-panel__form-label is-required" };
|
|
124
|
-
const _hoisted_20 = {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: "error"
|
|
127
|
-
};
|
|
128
|
-
const _hoisted_21 = { class: "common-regex-panel__form-item" };
|
|
129
|
-
const _hoisted_22 = { class: "common-regex-panel__form-label is-required" };
|
|
130
|
-
const _hoisted_23 = {
|
|
131
|
-
key: 0,
|
|
132
|
-
class: "error"
|
|
133
|
-
};
|
|
134
|
-
const _hoisted_24 = { class: "common-regex-panel__form-footer" };
|
|
135
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
136
|
-
__name: "common-regex-panel",
|
|
137
|
-
props: {
|
|
138
|
-
list: {}
|
|
139
|
-
},
|
|
140
|
-
emits: ["update:list", "fill", "delete-confirm"],
|
|
141
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
142
|
-
const props = __props;
|
|
143
|
-
const emit = __emit;
|
|
144
|
-
const panelRef = ref();
|
|
145
|
-
const view = ref("list");
|
|
146
|
-
const formMode = ref("create");
|
|
147
|
-
const confirmId = ref();
|
|
148
|
-
const saving = ref(false);
|
|
149
|
-
const editingId = ref();
|
|
150
|
-
const formState = reactive({
|
|
151
|
-
name: "",
|
|
152
|
-
value: ""
|
|
153
|
-
});
|
|
154
|
-
const formErrors = reactive({
|
|
155
|
-
name: "",
|
|
156
|
-
value: ""
|
|
157
|
-
});
|
|
158
|
-
watch(
|
|
159
|
-
() => props.list,
|
|
160
|
-
() => {
|
|
161
|
-
if (view.value === "form") return;
|
|
162
|
-
closeConfirm();
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
function resetForm() {
|
|
166
|
-
formState.name = "";
|
|
167
|
-
formState.value = "";
|
|
168
|
-
formErrors.name = "";
|
|
169
|
-
formErrors.value = "";
|
|
170
|
-
editingId.value = void 0;
|
|
171
|
-
}
|
|
172
|
-
function openCreate() {
|
|
173
|
-
closeConfirm();
|
|
174
|
-
formMode.value = "create";
|
|
175
|
-
resetForm();
|
|
176
|
-
view.value = "form";
|
|
177
|
-
}
|
|
178
|
-
function openEdit(item) {
|
|
179
|
-
closeConfirm();
|
|
180
|
-
formMode.value = "edit";
|
|
181
|
-
editingId.value = item.id;
|
|
182
|
-
formState.name = item.name || "";
|
|
183
|
-
formState.value = item.value || "";
|
|
184
|
-
formErrors.name = "";
|
|
185
|
-
formErrors.value = "";
|
|
186
|
-
view.value = "form";
|
|
187
|
-
}
|
|
188
|
-
function closeConfirm() {
|
|
189
|
-
confirmId.value = void 0;
|
|
190
|
-
emit("delete-confirm", null);
|
|
191
|
-
}
|
|
192
|
-
function openDeleteConfirm(item, event) {
|
|
193
|
-
const overlay = panelRef.value?.closest(".regex-common-panel-overlay");
|
|
194
|
-
const btn = event.currentTarget;
|
|
195
|
-
if (!overlay || !btn || !item.id) return;
|
|
196
|
-
const overlayRect = overlay.getBoundingClientRect();
|
|
197
|
-
const btnRect = btn.getBoundingClientRect();
|
|
198
|
-
confirmId.value = item.id;
|
|
199
|
-
emit("delete-confirm", {
|
|
200
|
-
item,
|
|
201
|
-
style: {
|
|
202
|
-
right: `${overlayRect.right - btnRect.right}px`,
|
|
203
|
-
top: `${btnRect.top - overlayRect.top - 8}px`
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
function backToList() {
|
|
208
|
-
resetForm();
|
|
209
|
-
closeConfirm();
|
|
210
|
-
view.value = "list";
|
|
211
|
-
}
|
|
212
|
-
onBeforeUnmount(() => {
|
|
213
|
-
closeConfirm();
|
|
214
|
-
});
|
|
215
|
-
function validateFormField(field, options) {
|
|
216
|
-
const checkRequired = options?.checkRequired ?? true;
|
|
217
|
-
formErrors[field] = "";
|
|
218
|
-
const text = formState[field] ?? "";
|
|
219
|
-
if (field === "name" && text.length > 100) {
|
|
220
|
-
formErrors.name = $t("sys.regexEditor.maxNChars", { n: 100 });
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
if (field === "value" && text.length > 500) {
|
|
224
|
-
formErrors.value = $t("sys.regexEditor.maxNChars", { n: 500 });
|
|
225
|
-
return false;
|
|
226
|
-
}
|
|
227
|
-
if (checkRequired && !text.trim()) {
|
|
228
|
-
formErrors[field] = field === "name" ? $t("sys.regexEditor.pleaseInputName") : $t("sys.regexEditor.pleaseInputRegex");
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
if (field === "name" && text.trim()) {
|
|
232
|
-
const duplicated = props.list.find(
|
|
233
|
-
(d) => d.name === formState.name.trim() && d.id !== editingId.value
|
|
234
|
-
);
|
|
235
|
-
if (duplicated) {
|
|
236
|
-
formErrors.name = $t("sys.regexEditor.repeatRegName");
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
function validateForm() {
|
|
243
|
-
const nameOk = validateFormField("name", { checkRequired: true });
|
|
244
|
-
const valueOk = validateFormField("value", { checkRequired: true });
|
|
245
|
-
return nameOk && valueOk;
|
|
246
|
-
}
|
|
247
|
-
async function refreshList() {
|
|
248
|
-
const next = await fetchCommonRegexList();
|
|
249
|
-
emit("update:list", next);
|
|
250
|
-
}
|
|
251
|
-
async function onSaveForm() {
|
|
252
|
-
if (!validateForm()) return;
|
|
253
|
-
saving.value = true;
|
|
254
|
-
try {
|
|
255
|
-
const payload = {
|
|
256
|
-
name: formState.name.trim(),
|
|
257
|
-
value: formState.value.trim()
|
|
258
|
-
};
|
|
259
|
-
if (formMode.value === "edit" && editingId.value) {
|
|
260
|
-
await updateCommonRegex(editingId.value, payload);
|
|
261
|
-
} else {
|
|
262
|
-
await createCommonRegex(payload);
|
|
263
|
-
}
|
|
264
|
-
await refreshList();
|
|
265
|
-
resetForm();
|
|
266
|
-
view.value = "list";
|
|
267
|
-
} catch (err) {
|
|
268
|
-
message.error(err?.message || $t("sys.operationFailed"));
|
|
269
|
-
} finally {
|
|
270
|
-
saving.value = false;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
function onFill(item) {
|
|
274
|
-
emit("fill", item);
|
|
275
|
-
}
|
|
276
|
-
async function onDelete(item) {
|
|
277
|
-
if (!item.id) return;
|
|
278
|
-
try {
|
|
279
|
-
await deleteCommonRegex(item.id);
|
|
280
|
-
closeConfirm();
|
|
281
|
-
await refreshList();
|
|
282
|
-
} catch (err) {
|
|
283
|
-
message.error(err?.message || $t("sys.operationFailed"));
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
__expose({
|
|
287
|
-
openCreate,
|
|
288
|
-
closeConfirm,
|
|
289
|
-
deleteItem: onDelete
|
|
290
|
-
});
|
|
291
|
-
return (_ctx, _cache) => {
|
|
292
|
-
const _component_a_button = resolveComponent("a-button");
|
|
293
|
-
const _component_a_input = resolveComponent("a-input");
|
|
294
|
-
return openBlock(), createElementBlock("div", {
|
|
295
|
-
ref_key: "panelRef",
|
|
296
|
-
ref: panelRef,
|
|
297
|
-
class: "common-regex-panel",
|
|
298
|
-
onClick: withModifiers(closeConfirm, ["stop"])
|
|
299
|
-
}, [
|
|
300
|
-
view.value === "list" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
301
|
-
!__props.list.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
302
|
-
createElementVNode("div", _hoisted_1$2, [
|
|
303
|
-
createElementVNode("span", _hoisted_2$1, toDisplayString(_ctx.$t("sys.regexEditor.commonReg")), 1)
|
|
304
|
-
]),
|
|
305
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
306
|
-
_cache[7] || (_cache[7] = createElementVNode("i", { class: "iconfont icon-changyongzhengzequesheng common-regex-panel__empty-icon" }, null, -1)),
|
|
307
|
-
createElementVNode("div", _hoisted_4$1, toDisplayString(_ctx.$t("sys.regexEditor.noCommon")), 1),
|
|
308
|
-
createVNode(_component_a_button, {
|
|
309
|
-
type: "primary",
|
|
310
|
-
size: "small",
|
|
311
|
-
onClick: openCreate
|
|
312
|
-
}, {
|
|
313
|
-
default: withCtx(() => [
|
|
314
|
-
_cache[6] || (_cache[6] = createElementVNode("i", { class: "iconfont icon-chuangjian common-regex-panel__empty-btn-add-icon" }, null, -1)),
|
|
315
|
-
createTextVNode(" " + toDisplayString(_ctx.$t("sys.add")), 1)
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
})
|
|
319
|
-
])
|
|
320
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
321
|
-
createElementVNode("div", _hoisted_5$1, [
|
|
322
|
-
createElementVNode("span", _hoisted_6$1, toDisplayString(_ctx.$t("sys.regexEditor.commonReg")), 1),
|
|
323
|
-
createElementVNode("button", {
|
|
324
|
-
class: "common-regex-panel__add",
|
|
325
|
-
type: "button",
|
|
326
|
-
onClick: openCreate
|
|
327
|
-
}, [
|
|
328
|
-
_cache[8] || (_cache[8] = createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1)),
|
|
329
|
-
createTextVNode(" " + toDisplayString(_ctx.$t("sys.regexEditor.addCommon")), 1)
|
|
330
|
-
])
|
|
331
|
-
]),
|
|
332
|
-
createElementVNode("div", {
|
|
333
|
-
class: "common-regex-panel__scrollbar",
|
|
334
|
-
onScroll: closeConfirm
|
|
335
|
-
}, [
|
|
336
|
-
createElementVNode("div", _hoisted_7$1, [
|
|
337
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item) => {
|
|
338
|
-
return openBlock(), createElementBlock("div", {
|
|
339
|
-
key: item.id,
|
|
340
|
-
class: "common-regex-panel__item"
|
|
341
|
-
}, [
|
|
342
|
-
createElementVNode("div", _hoisted_8$1, [
|
|
343
|
-
createElementVNode("div", {
|
|
344
|
-
class: "common-regex-panel__item-name",
|
|
345
|
-
title: item.name
|
|
346
|
-
}, toDisplayString(item.name), 9, _hoisted_9$1),
|
|
347
|
-
createElementVNode("div", {
|
|
348
|
-
class: "common-regex-panel__item-value",
|
|
349
|
-
title: item.value
|
|
350
|
-
}, toDisplayString(item.value), 9, _hoisted_10$1)
|
|
351
|
-
]),
|
|
352
|
-
createElementVNode("div", _hoisted_11$1, [
|
|
353
|
-
createElementVNode("button", {
|
|
354
|
-
class: "action-fill",
|
|
355
|
-
type: "button",
|
|
356
|
-
onClick: ($event) => onFill(item)
|
|
357
|
-
}, toDisplayString(_ctx.$t("sys.regexEditor.fill")), 9, _hoisted_12$1),
|
|
358
|
-
!item.sysBuiltin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
359
|
-
createElementVNode("button", {
|
|
360
|
-
class: "action-icon action-edit",
|
|
361
|
-
type: "button",
|
|
362
|
-
onClick: ($event) => openEdit(item)
|
|
363
|
-
}, [..._cache[9] || (_cache[9] = [
|
|
364
|
-
createElementVNode("i", { class: "iconfont icon-bianji" }, null, -1)
|
|
365
|
-
])], 8, _hoisted_13$1),
|
|
366
|
-
createElementVNode("button", {
|
|
367
|
-
class: normalizeClass(["action-icon action-delete", { "is-active": confirmId.value === item.id }]),
|
|
368
|
-
type: "button",
|
|
369
|
-
onClick: withModifiers(($event) => openDeleteConfirm(item, $event), ["stop"])
|
|
370
|
-
}, [..._cache[10] || (_cache[10] = [
|
|
371
|
-
createElementVNode("i", { class: "iconfont icon-shanchu2" }, null, -1)
|
|
372
|
-
])], 10, _hoisted_14)
|
|
373
|
-
], 64)) : createCommentVNode("", true)
|
|
374
|
-
])
|
|
375
|
-
]);
|
|
376
|
-
}), 128))
|
|
377
|
-
])
|
|
378
|
-
], 32)
|
|
379
|
-
], 64))
|
|
380
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
381
|
-
createElementVNode("div", _hoisted_15, [
|
|
382
|
-
createElementVNode("span", _hoisted_16, toDisplayString(formMode.value === "edit" ? _ctx.$t("sys.regexEditor.editCommon") : _ctx.$t("sys.regexEditor.addCommon")), 1)
|
|
383
|
-
]),
|
|
384
|
-
createElementVNode("div", _hoisted_17, [
|
|
385
|
-
createElementVNode("div", _hoisted_18, [
|
|
386
|
-
createElementVNode("div", _hoisted_19, toDisplayString(_ctx.$t("sys.name")), 1),
|
|
387
|
-
createElementVNode("div", {
|
|
388
|
-
class: normalizeClass({ "ant-form-item-has-error": !!formErrors.name })
|
|
389
|
-
}, [
|
|
390
|
-
createVNode(_component_a_input, {
|
|
391
|
-
value: formState.name,
|
|
392
|
-
"onUpdate:value": [
|
|
393
|
-
_cache[0] || (_cache[0] = ($event) => formState.name = $event),
|
|
394
|
-
_cache[1] || (_cache[1] = ($event) => validateFormField("name", { checkRequired: false }))
|
|
395
|
-
],
|
|
396
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
397
|
-
"allow-clear": "",
|
|
398
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => validateFormField("name"))
|
|
399
|
-
}, null, 8, ["value", "placeholder"])
|
|
400
|
-
], 2),
|
|
401
|
-
formErrors.name ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString(formErrors.name), 1)) : createCommentVNode("", true)
|
|
402
|
-
]),
|
|
403
|
-
createElementVNode("div", _hoisted_21, [
|
|
404
|
-
createElementVNode("div", _hoisted_22, toDisplayString(_ctx.$t("sys.regexEditor.regex")), 1),
|
|
405
|
-
createElementVNode("div", {
|
|
406
|
-
class: normalizeClass({ "ant-form-item-has-error": !!formErrors.value })
|
|
407
|
-
}, [
|
|
408
|
-
createVNode(_component_a_input, {
|
|
409
|
-
value: formState.value,
|
|
410
|
-
"onUpdate:value": [
|
|
411
|
-
_cache[3] || (_cache[3] = ($event) => formState.value = $event),
|
|
412
|
-
_cache[4] || (_cache[4] = ($event) => validateFormField("value", { checkRequired: false }))
|
|
413
|
-
],
|
|
414
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
415
|
-
"allow-clear": "",
|
|
416
|
-
onBlur: _cache[5] || (_cache[5] = ($event) => validateFormField("value"))
|
|
417
|
-
}, null, 8, ["value", "placeholder"])
|
|
418
|
-
], 2),
|
|
419
|
-
formErrors.value ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(formErrors.value), 1)) : createCommentVNode("", true)
|
|
420
|
-
]),
|
|
421
|
-
createElementVNode("div", _hoisted_24, [
|
|
422
|
-
createVNode(_component_a_button, {
|
|
423
|
-
size: "small",
|
|
424
|
-
onMousedown: withModifiers(backToList, ["prevent"])
|
|
425
|
-
}, {
|
|
426
|
-
default: withCtx(() => [
|
|
427
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.cancelText")), 1)
|
|
428
|
-
]),
|
|
429
|
-
_: 1
|
|
430
|
-
}),
|
|
431
|
-
createVNode(_component_a_button, {
|
|
432
|
-
type: "primary",
|
|
433
|
-
size: "small",
|
|
434
|
-
loading: saving.value,
|
|
435
|
-
onClick: onSaveForm
|
|
436
|
-
}, {
|
|
437
|
-
default: withCtx(() => [
|
|
438
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.saveText")), 1)
|
|
439
|
-
]),
|
|
440
|
-
_: 1
|
|
441
|
-
}, 8, ["loading"])
|
|
442
|
-
])
|
|
443
|
-
])
|
|
444
|
-
], 64))
|
|
445
|
-
], 512);
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
const CommonRegexPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-45300c70"]]);
|
|
450
|
-
const _hoisted_1$1 = { class: "regex-editor-modal" };
|
|
451
|
-
const _hoisted_2 = { class: "regex-editor-modal__item" };
|
|
452
|
-
const _hoisted_3 = { class: "regex-editor-modal__label" };
|
|
453
|
-
const _hoisted_4 = { class: "regex-editor-modal__regex-row" };
|
|
454
|
-
const _hoisted_5 = { class: "regex-editor-modal__regex-main" };
|
|
455
|
-
const _hoisted_6 = {
|
|
456
|
-
key: 0,
|
|
457
|
-
class: "error"
|
|
458
|
-
};
|
|
459
|
-
const _hoisted_7 = {
|
|
460
|
-
key: 1,
|
|
461
|
-
class: "regex-editor-modal__tags"
|
|
462
|
-
};
|
|
463
|
-
const _hoisted_8 = ["onClick"];
|
|
464
|
-
const _hoisted_9 = { class: "regex-common-panel-overlay__clip" };
|
|
465
|
-
const _hoisted_10 = { class: "delete-confirm__title" };
|
|
466
|
-
const _hoisted_11 = { class: "delete-confirm__actions" };
|
|
467
|
-
const _hoisted_12 = { class: "regex-editor-modal__item regex-editor-modal__item--hint" };
|
|
468
|
-
const _hoisted_13 = {
|
|
469
|
-
key: 0,
|
|
470
|
-
class: "error"
|
|
471
|
-
};
|
|
472
|
-
const TAG_NAME_MAX = 12;
|
|
473
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
474
|
-
__name: "regex-editor-modal",
|
|
475
|
-
props: {
|
|
476
|
-
value: {},
|
|
477
|
-
modal: {},
|
|
478
|
-
readonly: { type: Boolean }
|
|
479
|
-
},
|
|
480
|
-
setup(__props) {
|
|
481
|
-
const props = __props;
|
|
482
|
-
const formState = reactive({
|
|
483
|
-
regex: void 0,
|
|
484
|
-
regexHint: void 0
|
|
485
|
-
});
|
|
486
|
-
const errors = reactive({});
|
|
487
|
-
const commonList = ref([]);
|
|
488
|
-
const panelShown = ref(false);
|
|
489
|
-
const commonPanelRef = ref(null);
|
|
490
|
-
const deleteConfirm = ref(null);
|
|
491
|
-
watch(
|
|
492
|
-
() => props.value,
|
|
493
|
-
(v) => {
|
|
494
|
-
Object.assign(formState, cloneDeep(v) || { regex: void 0, regexHint: void 0 });
|
|
495
|
-
},
|
|
496
|
-
{ immediate: true }
|
|
497
|
-
);
|
|
498
|
-
async function loadCommonList() {
|
|
499
|
-
try {
|
|
500
|
-
commonList.value = await fetchCommonRegexList();
|
|
501
|
-
} catch {
|
|
502
|
-
commonList.value = [];
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
onMounted(() => {
|
|
506
|
-
loadCommonList();
|
|
507
|
-
if (props.readonly) {
|
|
508
|
-
applyDesignReadonlyModal(props.modal);
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
async function onPanelVisibleChange(visible) {
|
|
512
|
-
panelShown.value = visible;
|
|
513
|
-
if (!visible) {
|
|
514
|
-
deleteConfirm.value = null;
|
|
515
|
-
return;
|
|
516
|
-
}
|
|
517
|
-
await loadCommonList();
|
|
518
|
-
}
|
|
519
|
-
function onDeleteConfirmChange(payload) {
|
|
520
|
-
deleteConfirm.value = payload;
|
|
521
|
-
}
|
|
522
|
-
function onCancelDelete() {
|
|
523
|
-
commonPanelRef.value?.closeConfirm?.();
|
|
524
|
-
}
|
|
525
|
-
async function onConfirmDelete() {
|
|
526
|
-
const item = deleteConfirm.value?.item;
|
|
527
|
-
if (!item) return;
|
|
528
|
-
await commonPanelRef.value?.deleteItem?.(item);
|
|
529
|
-
}
|
|
530
|
-
onBeforeUnmount(() => {
|
|
531
|
-
deleteConfirm.value = null;
|
|
532
|
-
panelShown.value = false;
|
|
533
|
-
});
|
|
534
|
-
function truncateName(name) {
|
|
535
|
-
const text = name || "";
|
|
536
|
-
if (text.length <= TAG_NAME_MAX) return text;
|
|
537
|
-
return `${text.slice(0, TAG_NAME_MAX)}...`;
|
|
538
|
-
}
|
|
539
|
-
function isNameTruncated(name) {
|
|
540
|
-
return (name || "").length > TAG_NAME_MAX;
|
|
541
|
-
}
|
|
542
|
-
function fillRegex(item) {
|
|
543
|
-
formState.regex = item.value || "";
|
|
544
|
-
validateField("regex", { checkRequired: false });
|
|
545
|
-
}
|
|
546
|
-
function onFillFromPanel(item) {
|
|
547
|
-
fillRegex(item);
|
|
548
|
-
panelShown.value = false;
|
|
549
|
-
}
|
|
550
|
-
const validateField = (field, options) => {
|
|
551
|
-
const checkRequired = options?.checkRequired ?? true;
|
|
552
|
-
errors[field] = "";
|
|
553
|
-
const text = String(formState[field] ?? "");
|
|
554
|
-
if (field === "regex" && text.length > 500) {
|
|
555
|
-
errors.regex = $t("sys.regexEditor.maxNChars", { n: 500 });
|
|
556
|
-
return false;
|
|
557
|
-
}
|
|
558
|
-
if (field === "regexHint" && text.length > 100) {
|
|
559
|
-
errors.regexHint = $t("sys.regexEditor.maxNChars", { n: 100 });
|
|
560
|
-
return false;
|
|
561
|
-
}
|
|
562
|
-
if (checkRequired && field === "regexHint" && formState.regex && !text.trim()) {
|
|
563
|
-
errors.regexHint = $t("sys.regexEditor.pleaseInputHint");
|
|
564
|
-
return false;
|
|
565
|
-
}
|
|
566
|
-
return true;
|
|
567
|
-
};
|
|
568
|
-
const validateAll = () => {
|
|
569
|
-
const regexOk = validateField("regex", { checkRequired: false });
|
|
570
|
-
const hintOk = validateField("regexHint", { checkRequired: true });
|
|
571
|
-
return regexOk && hintOk;
|
|
572
|
-
};
|
|
573
|
-
async function onSave() {
|
|
574
|
-
if (props.readonly) {
|
|
575
|
-
return null;
|
|
576
|
-
}
|
|
577
|
-
if (!validateAll()) {
|
|
578
|
-
return { ok: false };
|
|
579
|
-
}
|
|
580
|
-
return {
|
|
581
|
-
ok: true,
|
|
582
|
-
data: [
|
|
583
|
-
toRaw({
|
|
584
|
-
regex: formState.regex || void 0,
|
|
585
|
-
regexHint: formState.regex ? formState.regexHint : void 0
|
|
586
|
-
})
|
|
587
|
-
]
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
useModal(onSave);
|
|
591
|
-
return (_ctx, _cache) => {
|
|
592
|
-
const _component_a_input = resolveComponent("a-input");
|
|
593
|
-
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
594
|
-
const _component_a_button = resolveComponent("a-button");
|
|
595
|
-
const _component_a_dropdown = resolveComponent("a-dropdown");
|
|
596
|
-
const _component_a_textarea = resolveComponent("a-textarea");
|
|
597
|
-
const _component_view_container = resolveComponent("view-container");
|
|
598
|
-
return openBlock(), createBlock(_component_view_container, null, {
|
|
599
|
-
default: withCtx(() => [
|
|
600
|
-
createElementVNode("div", _hoisted_1$1, [
|
|
601
|
-
createElementVNode("div", _hoisted_2, [
|
|
602
|
-
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.$t("sys.regexEditor.regex")), 1),
|
|
603
|
-
createElementVNode("div", _hoisted_4, [
|
|
604
|
-
createElementVNode("div", _hoisted_5, [
|
|
605
|
-
createElementVNode("div", {
|
|
606
|
-
class: normalizeClass({ "ant-form-item-has-error": !!errors.regex })
|
|
607
|
-
}, [
|
|
608
|
-
createVNode(_component_a_input, {
|
|
609
|
-
value: formState.regex,
|
|
610
|
-
"onUpdate:value": [
|
|
611
|
-
_cache[0] || (_cache[0] = ($event) => formState.regex = $event),
|
|
612
|
-
_cache[1] || (_cache[1] = ($event) => validateField("regex", { checkRequired: false }))
|
|
613
|
-
],
|
|
614
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
615
|
-
"allow-clear": "",
|
|
616
|
-
disabled: __props.readonly,
|
|
617
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => validateField("regex"))
|
|
618
|
-
}, null, 8, ["value", "placeholder", "disabled"])
|
|
619
|
-
], 2),
|
|
620
|
-
errors.regex ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(errors.regex), 1)) : createCommentVNode("", true),
|
|
621
|
-
commonList.value.length && !__props.readonly ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
622
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(commonList.value, (item) => {
|
|
623
|
-
return openBlock(), createBlock(_component_a_tooltip, {
|
|
624
|
-
key: item.id,
|
|
625
|
-
title: isNameTruncated(item.name) ? item.name : void 0
|
|
626
|
-
}, {
|
|
627
|
-
default: withCtx(() => [
|
|
628
|
-
createElementVNode("button", {
|
|
629
|
-
type: "button",
|
|
630
|
-
class: "regex-tag",
|
|
631
|
-
onClick: ($event) => fillRegex(item)
|
|
632
|
-
}, toDisplayString(truncateName(item.name)), 9, _hoisted_8)
|
|
633
|
-
]),
|
|
634
|
-
_: 2
|
|
635
|
-
}, 1032, ["title"]);
|
|
636
|
-
}), 128))
|
|
637
|
-
])) : createCommentVNode("", true)
|
|
638
|
-
]),
|
|
639
|
-
!__props.readonly ? (openBlock(), createBlock(_component_a_dropdown, {
|
|
640
|
-
key: 0,
|
|
641
|
-
visible: panelShown.value,
|
|
642
|
-
trigger: ["click"],
|
|
643
|
-
placement: "bottomRight",
|
|
644
|
-
destroyPopupOnHide: true,
|
|
645
|
-
overlayClassName: "regex-common-panel-dropdown",
|
|
646
|
-
align: { offset: [0, 8] },
|
|
647
|
-
onVisibleChange: onPanelVisibleChange
|
|
648
|
-
}, {
|
|
649
|
-
overlay: withCtx(() => [
|
|
650
|
-
createElementVNode("div", {
|
|
651
|
-
class: "regex-common-panel-overlay",
|
|
652
|
-
onMousedown: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
653
|
-
}, ["stop"])),
|
|
654
|
-
onClick: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
655
|
-
}, ["stop"]))
|
|
656
|
-
}, [
|
|
657
|
-
createElementVNode("div", _hoisted_9, [
|
|
658
|
-
panelShown.value ? (openBlock(), createBlock(CommonRegexPanel, {
|
|
659
|
-
key: 0,
|
|
660
|
-
ref_key: "commonPanelRef",
|
|
661
|
-
ref: commonPanelRef,
|
|
662
|
-
list: commonList.value,
|
|
663
|
-
"onUpdate:list": _cache[3] || (_cache[3] = ($event) => commonList.value = $event),
|
|
664
|
-
onFill: onFillFromPanel,
|
|
665
|
-
onDeleteConfirm: onDeleteConfirmChange
|
|
666
|
-
}, null, 8, ["list"])) : createCommentVNode("", true)
|
|
667
|
-
]),
|
|
668
|
-
deleteConfirm.value ? (openBlock(), createElementBlock("div", {
|
|
669
|
-
key: 0,
|
|
670
|
-
class: "delete-confirm",
|
|
671
|
-
style: normalizeStyle(deleteConfirm.value.style),
|
|
672
|
-
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
673
|
-
}, ["stop"])),
|
|
674
|
-
onClick: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
675
|
-
}, ["stop"]))
|
|
676
|
-
}, [
|
|
677
|
-
createElementVNode("div", _hoisted_10, [
|
|
678
|
-
_cache[11] || (_cache[11] = createElementVNode("i", { class: "iconfont icon-jinggao1 delete-confirm__icon" }, null, -1)),
|
|
679
|
-
createElementVNode("span", null, toDisplayString(_ctx.$t("sys.confirmExecution")), 1)
|
|
680
|
-
]),
|
|
681
|
-
createElementVNode("div", _hoisted_11, [
|
|
682
|
-
createVNode(_component_a_button, {
|
|
683
|
-
size: "small",
|
|
684
|
-
onClick: onCancelDelete
|
|
685
|
-
}, {
|
|
686
|
-
default: withCtx(() => [
|
|
687
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.cancelText")), 1)
|
|
688
|
-
]),
|
|
689
|
-
_: 1
|
|
690
|
-
}),
|
|
691
|
-
createVNode(_component_a_button, {
|
|
692
|
-
type: "primary",
|
|
693
|
-
size: "small",
|
|
694
|
-
onClick: onConfirmDelete
|
|
695
|
-
}, {
|
|
696
|
-
default: withCtx(() => [
|
|
697
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.okText")), 1)
|
|
698
|
-
]),
|
|
699
|
-
_: 1
|
|
700
|
-
})
|
|
701
|
-
])
|
|
702
|
-
], 36)) : createCommentVNode("", true)
|
|
703
|
-
], 32)
|
|
704
|
-
]),
|
|
705
|
-
default: withCtx(() => [
|
|
706
|
-
createVNode(_component_a_tooltip, {
|
|
707
|
-
title: panelShown.value ? void 0 : _ctx.$t("sys.regexEditor.commonReg")
|
|
708
|
-
}, {
|
|
709
|
-
default: withCtx(() => [
|
|
710
|
-
createElementVNode("button", {
|
|
711
|
-
type: "button",
|
|
712
|
-
class: normalizeClass(["regex-editor-modal__bookmark", { active: panelShown.value }])
|
|
713
|
-
}, [..._cache[12] || (_cache[12] = [
|
|
714
|
-
createElementVNode("i", { class: "iconfont icon-changyongzhengze regex-editor-modal__bookmark-icon" }, null, -1)
|
|
715
|
-
])], 2)
|
|
716
|
-
]),
|
|
717
|
-
_: 1
|
|
718
|
-
}, 8, ["title"])
|
|
719
|
-
]),
|
|
720
|
-
_: 1
|
|
721
|
-
}, 8, ["visible"])) : createCommentVNode("", true)
|
|
722
|
-
])
|
|
723
|
-
]),
|
|
724
|
-
createElementVNode("div", _hoisted_12, [
|
|
725
|
-
createElementVNode("div", {
|
|
726
|
-
class: normalizeClass(["regex-editor-modal__label", { "is-required": !!formState.regex }])
|
|
727
|
-
}, toDisplayString(_ctx.$t("sys.regexEditor.hint")), 3),
|
|
728
|
-
createElementVNode("div", {
|
|
729
|
-
class: normalizeClass({ "ant-form-item-has-error": !!errors.regexHint })
|
|
730
|
-
}, [
|
|
731
|
-
createVNode(_component_a_textarea, {
|
|
732
|
-
value: formState.regexHint,
|
|
733
|
-
"onUpdate:value": [
|
|
734
|
-
_cache[8] || (_cache[8] = ($event) => formState.regexHint = $event),
|
|
735
|
-
_cache[9] || (_cache[9] = ($event) => validateField("regexHint", { checkRequired: false }))
|
|
736
|
-
],
|
|
737
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
738
|
-
rows: 3,
|
|
739
|
-
disabled: __props.readonly,
|
|
740
|
-
onBlur: _cache[10] || (_cache[10] = ($event) => validateField("regexHint"))
|
|
741
|
-
}, null, 8, ["value", "placeholder", "disabled"])
|
|
742
|
-
], 2),
|
|
743
|
-
errors.regexHint ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(errors.regexHint), 1)) : createCommentVNode("", true)
|
|
744
|
-
])
|
|
745
|
-
])
|
|
746
|
-
]),
|
|
747
|
-
_: 1
|
|
748
|
-
});
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
});
|
|
752
|
-
const RegexEditorModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-21e7e6bd"]]);
|
|
753
|
-
const _hoisted_1 = { class: "regex-editor__label" };
|
|
754
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
755
|
-
__name: "regex-editor",
|
|
756
|
-
props: {
|
|
757
|
-
regex: {},
|
|
758
|
-
regexHint: {},
|
|
759
|
-
disabled: { type: Boolean }
|
|
760
|
-
},
|
|
761
|
-
emits: ["update:regex", "update:regexHint"],
|
|
762
|
-
setup(__props, { emit: __emit }) {
|
|
763
|
-
const props = __props;
|
|
764
|
-
const emit = __emit;
|
|
765
|
-
const hasRegex = computed(() => !!(props.regex && props.regexHint));
|
|
766
|
-
const openModal = async () => {
|
|
767
|
-
if (props.disabled && !hasRegex.value) return;
|
|
768
|
-
const result = await window.NocodeAdapter.utils.overlay.modal(
|
|
769
|
-
RegexEditorModal,
|
|
770
|
-
{
|
|
771
|
-
value: hasRegex.value ? { regex: props.regex, regexHint: props.regexHint } : void 0,
|
|
772
|
-
readonly: !!props.disabled
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
title: $t("sys.regexEditor.config"),
|
|
776
|
-
width: 640,
|
|
777
|
-
minHeight: 250,
|
|
778
|
-
showFooter: true,
|
|
779
|
-
okText: $t("sys.okText"),
|
|
780
|
-
cancelText: $t("sys.cancelText")
|
|
781
|
-
}
|
|
782
|
-
);
|
|
783
|
-
if (!result.ok || props.disabled) return;
|
|
784
|
-
const data = result.data?.[0] || {};
|
|
785
|
-
emit("update:regex", data.regex);
|
|
786
|
-
emit("update:regexHint", data.regexHint);
|
|
787
|
-
};
|
|
788
|
-
return (_ctx, _cache) => {
|
|
789
|
-
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
790
|
-
return openBlock(), createBlock(FormItem, { inline: false }, {
|
|
791
|
-
label: withCtx(() => [
|
|
792
|
-
createElementVNode("div", _hoisted_1, [
|
|
793
|
-
createElementVNode("span", null, toDisplayString(_ctx.$t("sys.regexEditor.regexValidate")), 1),
|
|
794
|
-
createVNode(_component_a_tooltip, {
|
|
795
|
-
placement: "top",
|
|
796
|
-
"overlay-class-name": "regex-editor-popper"
|
|
797
|
-
}, {
|
|
798
|
-
title: withCtx(() => [
|
|
799
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.regexEditor.validateTip")), 1)
|
|
800
|
-
]),
|
|
801
|
-
default: withCtx(() => [
|
|
802
|
-
_cache[0] || (_cache[0] = createElementVNode("i", { class: "iconfont icon-assist regex-editor__tip" }, null, -1))
|
|
803
|
-
]),
|
|
804
|
-
_: 1
|
|
805
|
-
})
|
|
806
|
-
])
|
|
807
|
-
]),
|
|
808
|
-
default: withCtx(() => [
|
|
809
|
-
createElementVNode("div", {
|
|
810
|
-
class: normalizeClass(["regex-editor__button allow-readonly-view", [hasRegex.value ? "primary" : "default"]]),
|
|
811
|
-
onClick: openModal
|
|
812
|
-
}, toDisplayString(hasRegex.value ? _ctx.$t("sys.regexEditor.editExpr") : _ctx.$t("sys.regexEditor.addExpr")), 3)
|
|
813
|
-
]),
|
|
814
|
-
_: 1
|
|
815
|
-
});
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
const RegexEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb5cd7f9"]]);
|
|
820
|
-
export {
|
|
821
|
-
NumberRange as N,
|
|
822
|
-
RegexEditor as R
|
|
823
|
-
};
|