@gct-paas/excel 0.1.17 → 0.1.18
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-DJNL1tGs.js → BaseComponent-xTm5lvAr.js} +1 -0
- package/dist/{VueVideoPlayer-Db7qcsRE.js → VueVideoPlayer-D3u-ZHom.js} +2 -2
- package/dist/{agg-design-BjqRVeg1.js → agg-design-D7CkIPCA.js} +1 -1
- package/dist/{agg-props-CrdosdGr.js → agg-props-DNNO9ucx.js} +1 -1
- package/dist/{agg-style-CfZoOE-b.js → agg-style-v_94dzX8.js} +1 -1
- package/dist/{align-editor-BaNT0jhx.js → align-editor-COpCDpFf.js} +1 -1
- package/dist/{attach-fields-editor-CThobu8X.js → attach-fields-editor-o_7W-2sr.js} +2 -2
- package/dist/{barcode-design-CHjIeaiJ.js → barcode-design-CvsGGAio.js} +2 -2
- package/dist/base/index.es.js +347 -53
- package/dist/{base-font-editor-BiSPxwVH.js → base-font-editor-BmC423aB.js} +2 -2
- package/dist/{boolean-design-BYAdX-h5.js → boolean-design-Hc8Es5l1.js} +2 -2
- package/dist/{boolean-props-jKvjhdlG.js → boolean-props-CGamLGXA.js} +3 -3
- package/dist/{boolean-style-RsMRzVBL.js → boolean-style-m-WuSO6S.js} +4 -4
- package/dist/{cell-upload-JxFLM1bV.js → cell-upload-CiXVE0Ii.js} +2 -2
- package/dist/date-range-editor-BZkhUU-x.js +470 -0
- package/dist/{date-time-design-Du8pmDo-.js → date-time-design-B_oFOcft.js} +1 -1
- package/dist/date-time-props-hGnSGQKc.js +105 -0
- package/dist/{date-time-style-DSEnmxAE.js → date-time-style-CGKG8i3K.js} +1 -1
- package/dist/{decimal-design-C2GbzP9k.js → decimal-design-B5Artgk6.js} +1 -1
- package/dist/{decimal-display-mode-CagizhJW.js → decimal-display-mode-C4XUezoP.js} +2 -2
- package/dist/{decimal-props-CGLqWy8I.js → decimal-props-Q37uOcWl.js} +4 -4
- package/dist/{decimal-style-6j22QKYO.js → decimal-style-C2CnGPVG.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-C5K6qhB-.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-DTnbLBVW.js} +109 -39
- package/dist/{diagonal-design-Cq3oxdHe.js → diagonal-design-CyUvkcvp.js} +2 -2
- package/dist/{document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js → document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js} +2295 -1388
- package/dist/{document-sub-table-action-rz6gyez5.js → document-sub-table-action-Cy6Rd8OS.js} +384 -193
- package/dist/{double-design-CyXEqcV7.js → double-design-D_ipWcRm.js} +1 -1
- package/dist/{double-props-DaJoio1W.js → double-props-D4FGbfe2.js} +4 -4
- package/dist/{double-style-B4lIth-J.js → double-style-BbD_6_Os.js} +1 -1
- package/dist/{edit.utils-CXmmCnxE-DW8ClKe9.js → edit.utils-CXmmCnxE-BK4QnSP-.js} +1 -1
- package/dist/{enum-design-DSx09tOO.js → enum-design-lOufLU6Z.js} +2 -2
- package/dist/{enum-props-CJNuQLJ_.js → enum-props-brKRP5Uz.js} +4 -4
- package/dist/{enum-style-5N5xmgRJ.js → enum-style-BQQHkDUD.js} +2 -2
- package/dist/excel.css +943 -440
- package/dist/{exceljs.min-D9gV8q6H.js → exceljs.min-CUwGyNAf.js} +2 -2
- package/dist/{expression-design-BJDbafot.js → expression-design-BPEci3dg.js} +1 -1
- package/dist/{expression-props-BpHbrsle.js → expression-props-Cvg-9V-B.js} +1 -1
- package/dist/{expression-style-qPh81w7Q.js → expression-style-Dv3Hl8lm.js} +1 -1
- package/dist/{file-design-B7si04Bi.js → file-design-BIzi6cpq.js} +1 -1
- package/dist/{file-props-DTtOnHQy.js → file-props-oV2U7bpO.js} +2 -2
- package/dist/{file-style-C6KW_szu.js → file-style-CZrxokgP.js} +1 -1
- package/dist/{font-editor-DgGgvmB2.js → font-editor-B41KgpWJ.js} +3 -3
- package/dist/{form-annotation-controller-CoABDD4X.js → form-annotation-controller-CdNmJKv-.js} +79 -23
- package/dist/{image-design-B92Xkcf-.js → image-design-C3FEtW6i.js} +2 -2
- package/dist/{image-design-CCfpT4Rp.js → image-design-DMfBfSkD.js} +2 -2
- package/dist/{image-props-DZgfzMta.js → image-props-DPibJk7n.js} +1 -1
- package/dist/{image-style-DX6Q_gF4.js → image-style-DLudd5Vt.js} +1 -1
- package/dist/{index-Bnbl3VER.js → index-B1CG-75q.js} +2 -2
- package/dist/{index-tbaOl7Nd.js → index-B1r6-Uxf.js} +1 -1
- package/dist/{index-bvhV6lsn.js → index-B7lz2J6V.js} +14 -7
- package/dist/{index-DRd2oRK1.js → index-B8ey1U_N.js} +2 -2
- package/dist/{index-BXMOCfWv.js → index-B8wKNUsK.js} +2 -2
- package/dist/{index-DzIKEtWw.js → index-BOis3jsA.js} +1 -1
- package/dist/{index-BYl8cK0A.js → index-BZ1jj7Nu.js} +1 -1
- package/dist/{index-DsASTvC2.js → index-BgZkpQKh.js} +1 -1
- package/dist/{index-Bg-x1hF6.js → index-BiNVmD5v.js} +2 -2
- package/dist/{index-BEBKoAOg.js → index-Bppcm2iQ.js} +2 -2
- package/dist/{index-Dsj3FuVs.js → index-Bvjplnz_.js} +2 -2
- package/dist/{index-DgHRTRH5.js → index-C5bYd42n.js} +2 -2
- package/dist/{index-BzhFcvnJ.js → index-CUIGN7Rt.js} +2 -2
- package/dist/{index-B2iip4UC.js → index-Cjz0GLDq.js} +2 -2
- package/dist/{index-DOFSbVSN.js → index-CkYbgRrH.js} +1 -1
- package/dist/{index-BB5uSbo3.js → index-Cn_c3-eW.js} +1 -1
- package/dist/{index-Be7TFwwX.js → index-Cp7mC3Qt.js} +4 -2
- package/dist/{index-DFgGQBCZ.js → index-CtiiIgjs.js} +2 -2
- package/dist/{index-D6diRqWG.js → index-D0YZX_c7.js} +2 -2
- package/dist/{index-DRKvAxuA.js → index-D7fFpHaN.js} +1 -1
- package/dist/{index-C8qPy1oW.js → index-DAqYc474.js} +2 -2
- package/dist/{index-p-Q3DQmv.js → index-DDpNgyvD.js} +3 -3
- package/dist/{index-IUYnmIJe.js → index-DFoELlwd.js} +1 -1
- package/dist/{index-DJISlRXi.js → index-DHVK-P9J.js} +4 -2
- package/dist/{index-BhzF0Rp3.js → index-DH_EZe8p.js} +4 -3
- package/dist/{index-CIoB2iny.js → index-DJIzgsog.js} +1 -1
- package/dist/{index-Doxcf2Zs.js → index-DPQkm6_v.js} +2 -2
- package/dist/{index-CtTSTTkq.js → index-DsNRjyQD.js} +2 -2
- package/dist/{index-Da7W9uBC.js → index-I_FRG0Ho.js} +2 -2
- package/dist/{index-CmaPtyCh.js → index-oSIIidoF.js} +4 -2
- package/dist/{index-rn6aiccW.js → index-rXMzwu77.js} +3 -3
- package/dist/{index-XbgrTOMF.js → index-vZZ5q2xJ.js} +1 -1
- package/dist/{index-Cw_YFCZT.js → index-yih5hGsL.js} +1467 -1345
- package/dist/index.es.js +6 -5
- package/dist/{integer-design-CPzJPZon.js → integer-design-DhkNa9IA.js} +1 -1
- package/dist/{integer-props-deCDvNET.js → integer-props-c_aQpjaT.js} +4 -4
- package/dist/{integer-style-DwZIRXEW.js → integer-style-CS5v7Bhq.js} +1 -1
- package/dist/{mb-render-Bejyn-ep.js → mb-render-Cs7LUxzk.js} +1 -1
- package/dist/{number-input-ex-CgwOH18n.js → number-input-ex-CwKIHfk1.js} +1 -1
- package/dist/{org-props-BeFVQ-QY.js → org-props-BcbW62Jg.js} +2 -2
- package/dist/{org-style-CLVWLtyd.js → org-style-Bk7mgML3.js} +1 -1
- package/dist/{pagination-design-CT0EQmxW.js → pagination-design-B1KyJUAG.js} +2 -2
- package/dist/paper-widget-design-Cp0ioo8c.js +4 -0
- package/dist/{qrcode-design-CjOkp2xa.js → qrcode-design-EafZURDZ.js} +1 -1
- package/dist/{ref-autofill-editor-B2KcQvyt.js → ref-autofill-editor-OtclaSqy.js} +2 -2
- package/dist/{ref-props-DPnt_pys.js → ref-props-C95McyZp.js} +3 -3
- package/dist/{ref-style-D0XKTtP1.js → ref-style-BxdvOF-4.js} +1 -1
- package/dist/regex-editor-BGukvOEI.js +796 -0
- package/dist/{revo-grid.entry-ztDhASK3.js → revo-grid.entry-BeRVTVKO.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BtXV91vv.js → revogr-attribution_7.entry-CHtbU2lV.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DXpq4oNb.js → revogr-clipboard_3.entry-DnvQ-Rl7.js} +2 -2
- package/dist/{revogr-data_4.entry-WA1PNcGb.js → revogr-data_4.entry-DLRSuaN8.js} +2 -2
- package/dist/{revogr-filter-panel.entry-unpVAD7l.js → revogr-filter-panel.entry-BDkhY-74.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-CqaEwsvS.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-ChESg_eM.js} +2 -2
- package/dist/{serialnumber-design-ClArHZWU.js → serialnumber-design-CRaym9J-.js} +1 -1
- package/dist/shared/index.es.js +16 -16
- package/dist/{signature-design-Cg2Ejj3g.js → signature-design-BJHfLDNV.js} +1 -1
- package/dist/{signature-props-CNuLBWtc.js → signature-props-B9hfppHh.js} +3 -3
- package/dist/{signature-style-DtlZdeFB.js → signature-style-DM4rqHnN.js} +1 -1
- package/dist/{single-field-drop-COLR9RIu.js → single-field-drop-eClQhTSv.js} +2 -2
- package/dist/{size-editor-DyGGEX3s.js → size-editor-BjlCmEWf.js} +1 -1
- package/dist/src/adapter/index.d.ts +1 -0
- package/dist/src/adapter/setup.d.ts +1 -1
- package/dist/src/nocode-base/src/_utils_/uuid.d.ts +6 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +11 -0
- package/dist/src/nocode-base/src/hooks/annotation/collect-annotation-items.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +5 -2
- package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +60 -0
- package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +2 -2
- package/dist/src/nocode-base/src/hooks/index.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/model-relation/index.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/service-util/sn-rule.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +4 -2
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +36 -4
- package/dist/src/nocode-base/src/hooks/useValidator.d.ts +6 -6
- package/dist/src/nocode-base/src/hooks/validation/admission.d.ts +19 -0
- package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +35 -0
- package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +12 -0
- package/dist/src/nocode-base/src/hooks/validation/types.d.ts +44 -0
- package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +39 -0
- package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +17 -0
- package/dist/src/nocode-base/src/interface/render.d.ts +1 -1
- package/dist/src/nocode-base/src/types/common/base.d.ts +14 -2
- package/dist/src/nocode-base/src/types/fields/i-datepicker.d.ts +5 -1
- package/dist/src/nocode-base/src/types/fields/i-datetimepicker.d.ts +5 -1
- package/dist/src/nocode-base/src/types/fields/i-inputdouble.d.ts +5 -1
- package/dist/src/nocode-base/src/types/fields/i-inputnumber.d.ts +5 -1
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +27 -1
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +2 -0
- package/dist/src/online-form/src/components/version-diff/index/types.d.ts +2 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/keep-exception-highlight-editor/keep-exception-highlight-editor.vue.d.ts +10 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/common-regex-api.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/editor.d.ts +8 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +16 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-builtin-param/add-builtin-param-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/form-field-tree-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/material-rdo-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +3 -0
- package/dist/src/online-form/src/views/render/__components__/_common_/widget-component.vue.d.ts +3 -1
- package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +5 -0
- package/dist/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +2 -2
- package/dist/src/shared/utils/host-api.d.ts +3 -11
- package/dist/{text-design-DjJS6aM4.js → text-design-BGxM7gzI.js} +2 -2
- package/dist/{text-design-490okDpw.js → text-design-C3RhersV.js} +2 -2
- package/dist/{text-props-Dh4S3iN0.js → text-props-CIpXslMv.js} +21 -252
- package/dist/{text-style-BGeNrOMv.js → text-style-BPjaT5Ic.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BWXeZXFZ.js → throttle-Cpk1LoGk-LNQ7rPwu.js} +1 -1
- package/dist/{timediff-design-DEh9xNVa.js → timediff-design-DqVuVrmx.js} +1 -1
- package/dist/{trace-design-Dk0irY70.js → trace-design-IbjVLAhv.js} +2 -2
- package/dist/{trace-props-DRBrPqIq.js → trace-props-C-F_eDG2.js} +53 -16
- package/dist/{trace-style-6lXlaJ2o.js → trace-style-DRenZ1n1.js} +1 -1
- package/dist/{user-props-yasRJPzM.js → user-props-qQx7HZ7T.js} +2 -2
- package/dist/{user-style-dkDUDf63.js → user-style-BPFOx0xn.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js → value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js} +2 -2
- package/dist/{version-select-dvsx-Ifv.js → version-select-BkZzH36D.js} +1 -1
- package/dist/web-render/index.es.js +4 -4
- package/dist/{widget-barcode-BfzXe5MQ.js → widget-barcode-CPZjarSa.js} +4 -4
- package/dist/{widget-diagonal-R5qdvCvE.js → widget-diagonal-DebN3u9t.js} +3 -3
- package/dist/{widget-image-C0zAtiuf.js → widget-image-BSMWxm9c.js} +5 -5
- package/dist/{widget-line-z4TTPDkL.js → widget-line-CyavTHOV.js} +2 -2
- package/dist/{widget-pagination-CeO9pmmu.js → widget-pagination-ZCBdy6HQ.js} +5 -5
- package/dist/{widget-power-CP1DLxkZ.js → widget-power-B1NFysHT.js} +3 -3
- package/dist/{widget-qrcode-Boz_t9l9.js → widget-qrcode-B0TTSoSK.js} +3 -3
- package/dist/{widget-rangelimit-B9kRG_Fa.js → widget-rangelimit-C_ureKDr.js} +3 -3
- package/dist/{widget-serialnumber-BBUxx4nB.js → widget-serialnumber-Dq15dHnk.js} +1 -1
- package/dist/{widget-text-qvLZssGe.js → widget-text-B9EXKFiM.js} +5 -5
- package/dist/{widget-timediff-BBmssjfJ.js → widget-timediff-BhLrQuGb.js} +2 -2
- package/package.json +1 -1
- package/dist/date-format-editor-BZ89hVjL.js +0 -240
- package/dist/date-time-props-BWvuzNXX.js +0 -265
- package/dist/paper-widget-design-DKBVqvH3.js +0 -4
- package/dist/src/nocode-base/src/hooks/form-model/fetcher.d.ts +0 -40
- package/dist/src/nocode-base/src/interface/data.d.ts +0 -47
- package/dist/src/nocode-base/src/interface/util.d.ts +0 -108
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
3
|
-
import { F as FormItem } from "./index-
|
|
2
|
+
import { E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
3
|
+
import { F as FormItem } from "./index-yih5hGsL.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "base-font-editor",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-
|
|
3
|
-
import { w as BooleanShowMode, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-yih5hGsL.js";
|
|
3
|
+
import { w as BooleanShowMode, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
4
4
|
import { isNil } from "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
3
|
-
import { A as AttachFieldEditor } from "./attach-fields-editor-
|
|
4
|
-
import { _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { F as FormItem } from "./index-yih5hGsL.js";
|
|
3
|
+
import { A as AttachFieldEditor } from "./attach-fields-editor-o_7W-2sr.js";
|
|
4
|
+
import { _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
5
5
|
const _hoisted_1 = { style: { "float": "right" } };
|
|
6
6
|
const _hoisted_2 = { class: "option-container" };
|
|
7
7
|
const _hoisted_3 = { class: "option" };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, unref, createBlock, withCtx, createCommentVNode } from "vue";
|
|
2
|
-
import { w as BooleanShowMode } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { w as BooleanShowMode } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
|
-
import { C as CellWidgetRenderComp, F as FormItem } from "./index-
|
|
6
|
-
import { B as BaseFontEditor } from "./base-font-editor-
|
|
7
|
-
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { C as CellWidgetRenderComp, F as FormItem } from "./index-yih5hGsL.js";
|
|
6
|
+
import { B as BaseFontEditor } from "./base-font-editor-BmC423aB.js";
|
|
7
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./select-render-type-editor.vue_vue_type_script_setup_true_lang-ChESg_eM.js";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "boolean-style",
|
|
10
10
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
|
-
import { E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
3
|
-
import { P as PlusOutlined } from "./index-
|
|
2
|
+
import { E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
3
|
+
import { P as PlusOutlined } from "./index-yih5hGsL.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "cell-upload",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { watch, computed, defineComponent, toRefs, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, isRef, createCommentVNode, createElementVNode, toDisplayString, createElementBlock, normalizeClass, Fragment } from "vue";
|
|
2
|
+
import { F as FormItem, S as SelectEx, e as FormulaEditor } from "./index-yih5hGsL.js";
|
|
3
|
+
import { F as FIELD_TYPE, _ as _export_sfc, ap as RangeValidateMode, b2 as RangeCompareOp, E as useNamespace } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
4
|
+
import { isNil } from "lodash-es";
|
|
5
|
+
import "dayjs";
|
|
6
|
+
const DateFormatSeparators = ["-", "/", "."];
|
|
7
|
+
const DateFormatTemplates = [
|
|
8
|
+
{ value: "YYYY", supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE] },
|
|
9
|
+
{
|
|
10
|
+
value: "YYYY${sep}MM",
|
|
11
|
+
supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
value: "YYYY${sep}MM${sep}DD",
|
|
15
|
+
supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE]
|
|
16
|
+
},
|
|
17
|
+
{ value: "YYYY${sep}MM${sep}DD HH", supportFieldTypes: [FIELD_TYPE.DATE_TIME] },
|
|
18
|
+
{
|
|
19
|
+
value: "YYYY${sep}MM${sep}DD HH:mm",
|
|
20
|
+
supportFieldTypes: [FIELD_TYPE.DATE_TIME]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "YYYY${sep}MM${sep}DD HH:mm:ss",
|
|
24
|
+
supportFieldTypes: [FIELD_TYPE.DATE_TIME]
|
|
25
|
+
},
|
|
26
|
+
{ value: "HH", supportFieldTypes: [FIELD_TYPE.TIME] },
|
|
27
|
+
{ value: "HH:mm", supportFieldTypes: [FIELD_TYPE.TIME] },
|
|
28
|
+
{ value: "HH:mm:ss", supportFieldTypes: [FIELD_TYPE.TIME] }
|
|
29
|
+
];
|
|
30
|
+
function calcFinalFormat(template, separator) {
|
|
31
|
+
return template.replace(/\${sep}/g, separator);
|
|
32
|
+
}
|
|
33
|
+
function setWidgetDefault(widget, type) {
|
|
34
|
+
if (!widget.customFormat && !widget.format) {
|
|
35
|
+
if (!widget.formatSeparator) {
|
|
36
|
+
widget.formatSeparator = DateFormatSeparators[0];
|
|
37
|
+
}
|
|
38
|
+
if (!widget.formatTemplate) {
|
|
39
|
+
let defaultFormatTemplate;
|
|
40
|
+
switch (type) {
|
|
41
|
+
case FIELD_TYPE.TIME:
|
|
42
|
+
defaultFormatTemplate = "HH:mm:ss";
|
|
43
|
+
break;
|
|
44
|
+
case FIELD_TYPE.DATE_TIME:
|
|
45
|
+
defaultFormatTemplate = "YYYY${sep}MM${sep}DD HH:mm:ss";
|
|
46
|
+
break;
|
|
47
|
+
case FIELD_TYPE.DATE:
|
|
48
|
+
case FIELD_TYPE.WAREHOUSE_RECEIPT_DATE:
|
|
49
|
+
default:
|
|
50
|
+
defaultFormatTemplate = "YYYY${sep}MM${sep}DD";
|
|
51
|
+
}
|
|
52
|
+
widget.formatTemplate = defaultFormatTemplate;
|
|
53
|
+
}
|
|
54
|
+
if (!widget.format) {
|
|
55
|
+
widget.format = calcFinalFormat(widget.formatTemplate, widget.formatSeparator);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function useDateFormatEditor(formState, fieldType) {
|
|
60
|
+
watch(
|
|
61
|
+
formState,
|
|
62
|
+
() => {
|
|
63
|
+
setWidgetDefault(formState.value, fieldType.value);
|
|
64
|
+
},
|
|
65
|
+
{ immediate: true }
|
|
66
|
+
);
|
|
67
|
+
const setCustom = (isCustom) => {
|
|
68
|
+
if (isCustom === formState.value.customFormat) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
formState.value.customFormat = isCustom;
|
|
72
|
+
if (isCustom) {
|
|
73
|
+
formState.value.format = void 0;
|
|
74
|
+
} else {
|
|
75
|
+
formState.value.format = void 0;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const calcAndSetFormat = () => {
|
|
79
|
+
if (formState.value.formatSeparator && formState.value.formatTemplate) {
|
|
80
|
+
formState.value.format = calcFinalFormat(
|
|
81
|
+
formState.value.formatTemplate,
|
|
82
|
+
formState.value.formatSeparator
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const separatorValue = computed({
|
|
87
|
+
get() {
|
|
88
|
+
return formState.value.formatSeparator;
|
|
89
|
+
},
|
|
90
|
+
set(v) {
|
|
91
|
+
setCustom(false);
|
|
92
|
+
formState.value.formatSeparator = v;
|
|
93
|
+
calcAndSetFormat();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const templateValue = computed({
|
|
97
|
+
get() {
|
|
98
|
+
return formState.value.formatTemplate;
|
|
99
|
+
},
|
|
100
|
+
set(v) {
|
|
101
|
+
setCustom(false);
|
|
102
|
+
formState.value.formatTemplate = v;
|
|
103
|
+
calcAndSetFormat();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const customFormat = computed({
|
|
107
|
+
get() {
|
|
108
|
+
return !!formState.value.customFormat;
|
|
109
|
+
},
|
|
110
|
+
set(v) {
|
|
111
|
+
if (v) {
|
|
112
|
+
setCustom(true);
|
|
113
|
+
} else {
|
|
114
|
+
setCustom(false);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const templateOptions = computed(() => {
|
|
119
|
+
if (!separatorValue.value) {
|
|
120
|
+
return [];
|
|
121
|
+
}
|
|
122
|
+
return DateFormatTemplates.filter(
|
|
123
|
+
(item) => item.supportFieldTypes.includes(fieldType.value)
|
|
124
|
+
).map((item) => {
|
|
125
|
+
return {
|
|
126
|
+
label: calcFinalFormat(item.value, separatorValue.value),
|
|
127
|
+
value: item.value
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
const separatorOptions = DateFormatSeparators.map((separator) => ({
|
|
132
|
+
label: separator,
|
|
133
|
+
value: separator
|
|
134
|
+
}));
|
|
135
|
+
return {
|
|
136
|
+
separatorValue,
|
|
137
|
+
templateValue,
|
|
138
|
+
separatorOptions,
|
|
139
|
+
templateOptions,
|
|
140
|
+
customFormat
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
const _hoisted_1 = { class: "date-format-editor__switch" };
|
|
144
|
+
const _hoisted_2 = { class: "date-format-editor__switch_text" };
|
|
145
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
146
|
+
__name: "date-format-editor",
|
|
147
|
+
props: {
|
|
148
|
+
widget: {},
|
|
149
|
+
fieldType: {},
|
|
150
|
+
disabled: { type: Boolean }
|
|
151
|
+
},
|
|
152
|
+
setup(__props) {
|
|
153
|
+
const props = __props;
|
|
154
|
+
const { widget, fieldType } = toRefs(props);
|
|
155
|
+
const { customFormat, separatorValue, templateValue, separatorOptions, templateOptions } = useDateFormatEditor(widget, fieldType);
|
|
156
|
+
return (_ctx, _cache) => {
|
|
157
|
+
const _component_a_switch = resolveComponent("a-switch");
|
|
158
|
+
const _component_a_select = resolveComponent("a-select");
|
|
159
|
+
const _component_a_col = resolveComponent("a-col");
|
|
160
|
+
const _component_a_input = resolveComponent("a-input");
|
|
161
|
+
const _component_a_row = resolveComponent("a-row");
|
|
162
|
+
return openBlock(), createBlock(FormItem, {
|
|
163
|
+
class: "date-format-editor",
|
|
164
|
+
label: _ctx.$t("sys.component.fieldTypeProps.dateFormat"),
|
|
165
|
+
inline: false
|
|
166
|
+
}, {
|
|
167
|
+
label: withCtx(() => [
|
|
168
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("sys.component.fieldTypeProps.dateFormat")), 1),
|
|
169
|
+
createElementVNode("div", _hoisted_1, [
|
|
170
|
+
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.$t("sys.customize")), 1),
|
|
171
|
+
createVNode(_component_a_switch, {
|
|
172
|
+
size: "small",
|
|
173
|
+
checked: unref(customFormat),
|
|
174
|
+
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => isRef(customFormat) ? customFormat.value = $event : null),
|
|
175
|
+
disabled: __props.disabled
|
|
176
|
+
}, null, 8, ["checked", "disabled"])
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
default: withCtx(() => [
|
|
180
|
+
createVNode(_component_a_row, null, {
|
|
181
|
+
default: withCtx(() => [
|
|
182
|
+
!unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
|
|
183
|
+
key: 0,
|
|
184
|
+
span: 5
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [
|
|
187
|
+
createVNode(_component_a_select, {
|
|
188
|
+
class: "date-format-editor__separator",
|
|
189
|
+
size: "small",
|
|
190
|
+
value: unref(separatorValue),
|
|
191
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(separatorValue) ? separatorValue.value = $event : null),
|
|
192
|
+
options: unref(separatorOptions),
|
|
193
|
+
disabled: __props.disabled
|
|
194
|
+
}, null, 8, ["value", "options", "disabled"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})) : createCommentVNode("", true),
|
|
198
|
+
!unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
|
|
199
|
+
key: 1,
|
|
200
|
+
span: 19
|
|
201
|
+
}, {
|
|
202
|
+
default: withCtx(() => [
|
|
203
|
+
createVNode(_component_a_select, {
|
|
204
|
+
class: "date-format-editor__template",
|
|
205
|
+
size: "small",
|
|
206
|
+
value: unref(templateValue),
|
|
207
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => isRef(templateValue) ? templateValue.value = $event : null),
|
|
208
|
+
options: unref(templateOptions),
|
|
209
|
+
disabled: __props.disabled
|
|
210
|
+
}, null, 8, ["value", "options", "disabled"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
})) : createCommentVNode("", true),
|
|
214
|
+
!!unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
|
|
215
|
+
key: 2,
|
|
216
|
+
span: 24
|
|
217
|
+
}, {
|
|
218
|
+
default: withCtx(() => [
|
|
219
|
+
createVNode(_component_a_input, {
|
|
220
|
+
class: "date-format-editor__custom",
|
|
221
|
+
size: "small",
|
|
222
|
+
value: unref(widget).format,
|
|
223
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => unref(widget).format = $event),
|
|
224
|
+
disabled: __props.disabled,
|
|
225
|
+
placeholder: _ctx.$t("sys.pleaseInputSth", { sth: _ctx.$t("sys.component.fieldTypeProps.dateFormat") })
|
|
226
|
+
}, null, 8, ["value", "disabled", "placeholder"])
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
})) : createCommentVNode("", true)
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["label"]);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
const DateFormatEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-49f9bd2f"]]);
|
|
240
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
|
+
__name: "date-range-editor",
|
|
242
|
+
props: {
|
|
243
|
+
fieldMeta: {},
|
|
244
|
+
widget: {},
|
|
245
|
+
fieldType: {},
|
|
246
|
+
readonly: { type: Boolean },
|
|
247
|
+
disabled: { type: Boolean }
|
|
248
|
+
},
|
|
249
|
+
setup(__props) {
|
|
250
|
+
const ns = useNamespace("date-range-editor");
|
|
251
|
+
const props = __props;
|
|
252
|
+
const formState = computed({
|
|
253
|
+
get() {
|
|
254
|
+
return props.widget;
|
|
255
|
+
},
|
|
256
|
+
set(v) {
|
|
257
|
+
Object.assign(props.widget, v);
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
const onEnableChange = (checked) => {
|
|
261
|
+
if (checked === true) {
|
|
262
|
+
if (isNil(formState.value.maxValidateMode)) {
|
|
263
|
+
formState.value.maxValidateMode = RangeValidateMode.No_Validate;
|
|
264
|
+
}
|
|
265
|
+
if (isNil(formState.value.minValidateMode)) {
|
|
266
|
+
formState.value.minValidateMode = RangeValidateMode.No_Validate;
|
|
267
|
+
}
|
|
268
|
+
if (isNil(formState.value.maxCompareOp)) {
|
|
269
|
+
formState.value.maxCompareOp = RangeCompareOp.LE;
|
|
270
|
+
}
|
|
271
|
+
if (isNil(formState.value.minCompareOp)) {
|
|
272
|
+
formState.value.minCompareOp = RangeCompareOp.GE;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
watch(
|
|
277
|
+
() => formState.value.maxValidateMode,
|
|
278
|
+
(mode) => {
|
|
279
|
+
if (mode === RangeValidateMode.Fixed_Number && isNil(formState.value.maxCompareOp)) {
|
|
280
|
+
formState.value.maxCompareOp = RangeCompareOp.LE;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
);
|
|
284
|
+
watch(
|
|
285
|
+
() => formState.value.minValidateMode,
|
|
286
|
+
(mode) => {
|
|
287
|
+
if (mode === RangeValidateMode.Fixed_Number && isNil(formState.value.minCompareOp)) {
|
|
288
|
+
formState.value.minCompareOp = RangeCompareOp.GE;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
const validateModeOptions = Object.values(RangeValidateMode).map((val) => {
|
|
293
|
+
return {
|
|
294
|
+
label: $t(`sys.numberRangeValidateMode.${val}`),
|
|
295
|
+
value: val
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
const maxCompareOpOptions = [
|
|
299
|
+
{ label: $t("sys.rangeCompareOp.le"), value: RangeCompareOp.LE },
|
|
300
|
+
{ label: $t("sys.rangeCompareOp.lt"), value: RangeCompareOp.LT }
|
|
301
|
+
];
|
|
302
|
+
const minCompareOpOptions = [
|
|
303
|
+
{ label: $t("sys.rangeCompareOp.ge"), value: RangeCompareOp.GE },
|
|
304
|
+
{ label: $t("sys.rangeCompareOp.gt"), value: RangeCompareOp.GT }
|
|
305
|
+
];
|
|
306
|
+
const isDateTime = computed(() => props.fieldType === FIELD_TYPE.DATE_TIME);
|
|
307
|
+
const pickerFormat = computed(() => isDateTime.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
308
|
+
const valueFormat = computed(() => isDateTime.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
309
|
+
function disabledMinDate(current) {
|
|
310
|
+
if (!formState.value.max) return false;
|
|
311
|
+
return current.isAfter(formState.value.max, "second");
|
|
312
|
+
}
|
|
313
|
+
function disabledMaxDate(current) {
|
|
314
|
+
if (!formState.value.min) return false;
|
|
315
|
+
return current.isBefore(formState.value.min, "second");
|
|
316
|
+
}
|
|
317
|
+
return (_ctx, _cache) => {
|
|
318
|
+
const _component_a_switch = resolveComponent("a-switch");
|
|
319
|
+
const _component_a_select = resolveComponent("a-select");
|
|
320
|
+
const _component_a_date_picker = resolveComponent("a-date-picker");
|
|
321
|
+
const _component_a_input_group = resolveComponent("a-input-group");
|
|
322
|
+
return openBlock(), createElementBlock("div", {
|
|
323
|
+
class: normalizeClass([unref(ns).b()])
|
|
324
|
+
}, [
|
|
325
|
+
createVNode(FormItem, {
|
|
326
|
+
label: _ctx.$t("sys.isEnableRangeValidate")
|
|
327
|
+
}, {
|
|
328
|
+
default: withCtx(() => [
|
|
329
|
+
createVNode(_component_a_switch, {
|
|
330
|
+
class: normalizeClass([unref(ns).e("switch")]),
|
|
331
|
+
size: "small",
|
|
332
|
+
checked: formState.value.enableRangeValidate,
|
|
333
|
+
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => formState.value.enableRangeValidate = $event),
|
|
334
|
+
disabled: __props.disabled || __props.readonly,
|
|
335
|
+
onChange: onEnableChange
|
|
336
|
+
}, null, 8, ["class", "checked", "disabled"])
|
|
337
|
+
]),
|
|
338
|
+
_: 1
|
|
339
|
+
}, 8, ["label"]),
|
|
340
|
+
formState.value.enableRangeValidate ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
341
|
+
createVNode(FormItem, {
|
|
342
|
+
label: _ctx.$t("sys.maxValidateMode"),
|
|
343
|
+
inline: false
|
|
344
|
+
}, {
|
|
345
|
+
default: withCtx(() => [
|
|
346
|
+
createVNode(unref(SelectEx), {
|
|
347
|
+
"show-mode": "icon-label",
|
|
348
|
+
"icon-type": "custom",
|
|
349
|
+
"style-type": "buttons",
|
|
350
|
+
class: "w-full",
|
|
351
|
+
options: unref(validateModeOptions),
|
|
352
|
+
value: formState.value.maxValidateMode,
|
|
353
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value.maxValidateMode = $event),
|
|
354
|
+
disabled: __props.disabled || __props.readonly
|
|
355
|
+
}, null, 8, ["options", "value", "disabled"])
|
|
356
|
+
]),
|
|
357
|
+
_: 1
|
|
358
|
+
}, 8, ["label"]),
|
|
359
|
+
formState.value.maxValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_input_group, {
|
|
360
|
+
key: 0,
|
|
361
|
+
compact: "",
|
|
362
|
+
class: normalizeClass([unref(ns).e("fixed-row")])
|
|
363
|
+
}, {
|
|
364
|
+
default: withCtx(() => [
|
|
365
|
+
createVNode(_component_a_select, {
|
|
366
|
+
size: "small",
|
|
367
|
+
class: normalizeClass([unref(ns).e("op")]),
|
|
368
|
+
options: maxCompareOpOptions,
|
|
369
|
+
value: formState.value.maxCompareOp || unref(RangeCompareOp).LE,
|
|
370
|
+
disabled: __props.disabled || __props.readonly,
|
|
371
|
+
"dropdown-match-select-width": false,
|
|
372
|
+
"dropdown-style": { minWidth: "110px" },
|
|
373
|
+
onChange: _cache[2] || (_cache[2] = (v) => formState.value.maxCompareOp = v)
|
|
374
|
+
}, null, 8, ["class", "value", "disabled"]),
|
|
375
|
+
createVNode(_component_a_date_picker, {
|
|
376
|
+
size: "small",
|
|
377
|
+
class: normalizeClass([unref(ns).e("value")]),
|
|
378
|
+
value: formState.value.max,
|
|
379
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.max = $event),
|
|
380
|
+
"disabled-date": disabledMaxDate,
|
|
381
|
+
"show-time": isDateTime.value,
|
|
382
|
+
format: pickerFormat.value,
|
|
383
|
+
"value-format": valueFormat.value,
|
|
384
|
+
placeholder: _ctx.$t("sys.pleaseSelectUpperDateLimit"),
|
|
385
|
+
disabled: __props.disabled || __props.readonly
|
|
386
|
+
}, null, 8, ["class", "value", "show-time", "format", "value-format", "placeholder", "disabled"])
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
390
|
+
formState.value.maxValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
|
|
391
|
+
key: 1,
|
|
392
|
+
class: normalizeClass([unref(ns).e("formula")]),
|
|
393
|
+
size: "small",
|
|
394
|
+
modelKey: __props.fieldMeta.model,
|
|
395
|
+
disabled: __props.disabled,
|
|
396
|
+
expr: formState.value.maxExpr,
|
|
397
|
+
"onUpdate:expr": _cache[4] || (_cache[4] = ($event) => formState.value.maxExpr = $event),
|
|
398
|
+
"expr-echo": formState.value.maxExprEcho,
|
|
399
|
+
"onUpdate:exprEcho": _cache[5] || (_cache[5] = ($event) => formState.value.maxExprEcho = $event)
|
|
400
|
+
}, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true),
|
|
401
|
+
createVNode(FormItem, {
|
|
402
|
+
label: _ctx.$t("sys.minValidateMode"),
|
|
403
|
+
inline: false
|
|
404
|
+
}, {
|
|
405
|
+
default: withCtx(() => [
|
|
406
|
+
createVNode(unref(SelectEx), {
|
|
407
|
+
"show-mode": "icon-label",
|
|
408
|
+
"icon-type": "custom",
|
|
409
|
+
"style-type": "buttons",
|
|
410
|
+
class: "w-full",
|
|
411
|
+
options: unref(validateModeOptions),
|
|
412
|
+
disabled: __props.disabled,
|
|
413
|
+
value: formState.value.minValidateMode,
|
|
414
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => formState.value.minValidateMode = $event)
|
|
415
|
+
}, null, 8, ["options", "disabled", "value"])
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["label"]),
|
|
419
|
+
formState.value.minValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_input_group, {
|
|
420
|
+
key: 2,
|
|
421
|
+
compact: "",
|
|
422
|
+
class: normalizeClass([unref(ns).e("fixed-row")])
|
|
423
|
+
}, {
|
|
424
|
+
default: withCtx(() => [
|
|
425
|
+
createVNode(_component_a_select, {
|
|
426
|
+
size: "small",
|
|
427
|
+
class: normalizeClass([unref(ns).e("op")]),
|
|
428
|
+
options: minCompareOpOptions,
|
|
429
|
+
value: formState.value.minCompareOp || unref(RangeCompareOp).GE,
|
|
430
|
+
disabled: __props.disabled || __props.readonly,
|
|
431
|
+
"dropdown-match-select-width": false,
|
|
432
|
+
"dropdown-style": { minWidth: "110px" },
|
|
433
|
+
onChange: _cache[7] || (_cache[7] = (v) => formState.value.minCompareOp = v)
|
|
434
|
+
}, null, 8, ["class", "value", "disabled"]),
|
|
435
|
+
createVNode(_component_a_date_picker, {
|
|
436
|
+
size: "small",
|
|
437
|
+
class: normalizeClass([unref(ns).e("value")]),
|
|
438
|
+
value: formState.value.min,
|
|
439
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => formState.value.min = $event),
|
|
440
|
+
"disabled-date": disabledMinDate,
|
|
441
|
+
"show-time": isDateTime.value,
|
|
442
|
+
format: pickerFormat.value,
|
|
443
|
+
"value-format": valueFormat.value,
|
|
444
|
+
placeholder: _ctx.$t("sys.pleaseSelectLowerDateLimit"),
|
|
445
|
+
disabled: __props.disabled || __props.readonly
|
|
446
|
+
}, null, 8, ["class", "value", "show-time", "format", "value-format", "placeholder", "disabled"])
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
450
|
+
formState.value.minValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
|
|
451
|
+
key: 3,
|
|
452
|
+
class: normalizeClass([unref(ns).e("formula")]),
|
|
453
|
+
size: "small",
|
|
454
|
+
modelKey: __props.fieldMeta.model,
|
|
455
|
+
disabled: __props.disabled,
|
|
456
|
+
expr: formState.value.minExpr,
|
|
457
|
+
"onUpdate:expr": _cache[9] || (_cache[9] = ($event) => formState.value.minExpr = $event),
|
|
458
|
+
"expr-echo": formState.value.minExprEcho,
|
|
459
|
+
"onUpdate:exprEcho": _cache[10] || (_cache[10] = ($event) => formState.value.minExprEcho = $event)
|
|
460
|
+
}, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true)
|
|
461
|
+
], 64)) : createCommentVNode("", true)
|
|
462
|
+
], 2);
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
const DateRangeEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0d979f2b"]]);
|
|
467
|
+
export {
|
|
468
|
+
DateFormatEditor as D,
|
|
469
|
+
DateRangeEditor as a
|
|
470
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createBlock } from "vue";
|
|
2
|
-
import { F as FIELD_TYPE } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { F as FIELD_TYPE } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "date-time-design",
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { F as FormItem } from "./index-yih5hGsL.js";
|
|
3
|
+
import { D as DateFormatEditor, a as DateRangeEditor } from "./date-range-editor-BZkhUU-x.js";
|
|
4
|
+
import { F as FIELD_TYPE } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "date-time-props",
|
|
7
|
+
props: {
|
|
8
|
+
fieldMeta: {},
|
|
9
|
+
widget: {},
|
|
10
|
+
fieldType: {},
|
|
11
|
+
readonly: { type: Boolean },
|
|
12
|
+
disabled: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const formState = computed({
|
|
17
|
+
get: () => props.widget,
|
|
18
|
+
set: (v) => Object.assign(props.widget, v)
|
|
19
|
+
});
|
|
20
|
+
const excludedDateFormatTypes = computed(() => [
|
|
21
|
+
FIELD_TYPE.PRODUCTION_DATE,
|
|
22
|
+
FIELD_TYPE.REPORT_START_TIME,
|
|
23
|
+
FIELD_TYPE.REPORT_END_TIME
|
|
24
|
+
]);
|
|
25
|
+
const excludedDefaultValueTypes = computed(() => [
|
|
26
|
+
FIELD_TYPE.REPORT_START_TIME,
|
|
27
|
+
FIELD_TYPE.REPORT_END_TIME
|
|
28
|
+
]);
|
|
29
|
+
const dateRangeTypes = computed(() => [
|
|
30
|
+
FIELD_TYPE.DATE,
|
|
31
|
+
FIELD_TYPE.DATE_TIME,
|
|
32
|
+
FIELD_TYPE.REPORT_START_TIME,
|
|
33
|
+
FIELD_TYPE.REPORT_END_TIME,
|
|
34
|
+
FIELD_TYPE.PRODUCTION_DATE,
|
|
35
|
+
FIELD_TYPE.WAREHOUSE_RECEIPT_DATE
|
|
36
|
+
]);
|
|
37
|
+
const showDateFormatEditor = computed(
|
|
38
|
+
() => !excludedDateFormatTypes.value.includes(props.fieldType)
|
|
39
|
+
);
|
|
40
|
+
const showDefaultValueCheckbox = computed(
|
|
41
|
+
() => !props.readonly && !excludedDefaultValueTypes.value.includes(props.fieldType)
|
|
42
|
+
);
|
|
43
|
+
const showDateRangeEditor = computed(() => dateRangeTypes.value.includes(props.fieldType));
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
const _component_a_input = resolveComponent("a-input");
|
|
46
|
+
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
47
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
48
|
+
!__props.readonly ? (openBlock(), createBlock(FormItem, {
|
|
49
|
+
key: 0,
|
|
50
|
+
label: `${_ctx.$t("sys.pageDesigner.fieldPlaceholder")}`,
|
|
51
|
+
inline: false
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createVNode(_component_a_input, {
|
|
55
|
+
size: "small",
|
|
56
|
+
value: formState.value.placeholder,
|
|
57
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.placeholder = $event),
|
|
58
|
+
placeholder: _ctx.$t("sys.inputText"),
|
|
59
|
+
disabled: __props.disabled,
|
|
60
|
+
"show-count": "",
|
|
61
|
+
maxlength: 32
|
|
62
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["label"])) : createCommentVNode("", true),
|
|
66
|
+
showDateFormatEditor.value ? (openBlock(), createBlock(DateFormatEditor, {
|
|
67
|
+
key: 1,
|
|
68
|
+
widget: props.widget,
|
|
69
|
+
"field-type": __props.fieldType,
|
|
70
|
+
disabled: __props.disabled
|
|
71
|
+
}, null, 8, ["widget", "field-type", "disabled"])) : createCommentVNode("", true),
|
|
72
|
+
showDefaultValueCheckbox.value ? (openBlock(), createBlock(FormItem, {
|
|
73
|
+
key: 2,
|
|
74
|
+
label: `${_ctx.$t("sys.defaultValue")}`,
|
|
75
|
+
inline: false
|
|
76
|
+
}, {
|
|
77
|
+
default: withCtx(() => [
|
|
78
|
+
createVNode(_component_a_checkbox, {
|
|
79
|
+
checked: formState.value.defaultSystemDate,
|
|
80
|
+
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => formState.value.defaultSystemDate = $event),
|
|
81
|
+
disabled: __props.disabled
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createTextVNode(toDisplayString(_ctx.$t("sys.component.fieldTypeProps.defaultSysDate")), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["checked", "disabled"])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["label"])) : createCommentVNode("", true),
|
|
91
|
+
showDateRangeEditor.value ? (openBlock(), createBlock(DateRangeEditor, {
|
|
92
|
+
key: 3,
|
|
93
|
+
"field-meta": __props.fieldMeta,
|
|
94
|
+
widget: props.widget,
|
|
95
|
+
"field-type": __props.fieldType,
|
|
96
|
+
readonly: __props.readonly,
|
|
97
|
+
disabled: __props.disabled
|
|
98
|
+
}, null, 8, ["field-meta", "widget", "field-type", "readonly", "disabled"])) : createCommentVNode("", true)
|
|
99
|
+
], 64);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
_sfc_main as default
|
|
105
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { B as BaseFontEditor } from "./base-font-editor-
|
|
2
|
+
import { B as BaseFontEditor } from "./base-font-editor-BmC423aB.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "date-time-style",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createVNode } from "vue";
|
|
2
|
-
import { N as NumberInputEx } from "./number-input-ex-
|
|
2
|
+
import { N as NumberInputEx } from "./number-input-ex-CwKIHfk1.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "decimal-design",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, withCtx, createVNode, unref } from "vue";
|
|
2
|
-
import { F as FormItem, S as SelectEx } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { F as FormItem, S as SelectEx } from "./index-yih5hGsL.js";
|
|
3
|
+
import { ai as DecimalDisplayMode$1, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|