@gct-paas/excel 0.1.16 → 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-KcMm2QYA.js → form-annotation-controller-CdNmJKv-.js} +87 -31
- 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,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useModelFields, f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-
|
|
4
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { u as useModelFields, f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-yih5hGsL.js";
|
|
3
|
+
import { _ as _sfc_main$1, N as NumberRangeEditor, I as IndicesEditor } from "./default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-DTnbLBVW.js";
|
|
4
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
|
-
import { D as DecimalDisplayMode } from "./decimal-display-mode-
|
|
7
|
+
import { D as DecimalDisplayMode } from "./decimal-display-mode-C4XUezoP.js";
|
|
8
8
|
const _hoisted_1 = { class: "w440px text-12px" };
|
|
9
9
|
const _hoisted_2 = { class: "font-600 text-[#1A1D23] mb8px" };
|
|
10
10
|
const _hoisted_3 = { class: "text-[#8B8B8B]" };
|
|
@@ -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: "decimal-style",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode, mergeProps } from "vue";
|
|
2
|
-
import { F as FormItem, S as SelectEx, e as FormulaEditor } from "./index-
|
|
3
|
-
import { E as useNamespace, _ as _export_sfc,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, watch, createElementBlock, Fragment, createCommentVNode, mergeProps } from "vue";
|
|
2
|
+
import { F as FormItem, S as SelectEx, e as FormulaEditor } from "./index-yih5hGsL.js";
|
|
3
|
+
import { E as useNamespace, _ as _export_sfc, ap as RangeValidateMode, b2 as RangeCompareOp } 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$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -104,16 +104,46 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
if (isNil(formState.value.minValidateMode)) {
|
|
105
105
|
formState.value.minValidateMode = RangeValidateMode.No_Validate;
|
|
106
106
|
}
|
|
107
|
+
if (isNil(formState.value.maxCompareOp)) {
|
|
108
|
+
formState.value.maxCompareOp = RangeCompareOp.LE;
|
|
109
|
+
}
|
|
110
|
+
if (isNil(formState.value.minCompareOp)) {
|
|
111
|
+
formState.value.minCompareOp = RangeCompareOp.GE;
|
|
112
|
+
}
|
|
107
113
|
}
|
|
108
114
|
};
|
|
115
|
+
watch(
|
|
116
|
+
() => formState.value.maxValidateMode,
|
|
117
|
+
(mode) => {
|
|
118
|
+
if (mode === RangeValidateMode.Fixed_Number && isNil(formState.value.maxCompareOp)) {
|
|
119
|
+
formState.value.maxCompareOp = RangeCompareOp.LE;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
watch(
|
|
124
|
+
() => formState.value.minValidateMode,
|
|
125
|
+
(mode) => {
|
|
126
|
+
if (mode === RangeValidateMode.Fixed_Number && isNil(formState.value.minCompareOp)) {
|
|
127
|
+
formState.value.minCompareOp = RangeCompareOp.GE;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
);
|
|
109
131
|
const validateModeOptions = Object.values(RangeValidateMode).map((val) => {
|
|
110
132
|
return {
|
|
111
|
-
label: $t(`sys.
|
|
133
|
+
label: $t(`sys.numberRangeValidateMode.${val}`),
|
|
112
134
|
value: val
|
|
113
135
|
};
|
|
114
136
|
});
|
|
137
|
+
const maxCompareOpOptions = [
|
|
138
|
+
{ label: $t("sys.rangeCompareOp.le"), value: RangeCompareOp.LE },
|
|
139
|
+
{ label: $t("sys.rangeCompareOp.lt"), value: RangeCompareOp.LT }
|
|
140
|
+
];
|
|
141
|
+
const minCompareOpOptions = [
|
|
142
|
+
{ label: $t("sys.rangeCompareOp.ge"), value: RangeCompareOp.GE },
|
|
143
|
+
{ label: $t("sys.rangeCompareOp.gt"), value: RangeCompareOp.GT }
|
|
144
|
+
];
|
|
115
145
|
const minLimit = computed(() => {
|
|
116
|
-
const lowerLimit = Infinity;
|
|
146
|
+
const lowerLimit = -Infinity;
|
|
117
147
|
const upperLimit = isNil(formState.value.max) ? Infinity : formState.value.max;
|
|
118
148
|
return {
|
|
119
149
|
lowerLimit,
|
|
@@ -121,7 +151,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
121
151
|
};
|
|
122
152
|
});
|
|
123
153
|
const maxLimit = computed(() => {
|
|
124
|
-
const lowerLimit = isNil(formState.value.min) ? Infinity : formState.value.min;
|
|
154
|
+
const lowerLimit = isNil(formState.value.min) ? -Infinity : formState.value.min;
|
|
125
155
|
const upperLimit = Infinity;
|
|
126
156
|
return {
|
|
127
157
|
lowerLimit,
|
|
@@ -130,12 +160,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
130
160
|
});
|
|
131
161
|
return (_ctx, _cache) => {
|
|
132
162
|
const _component_a_switch = resolveComponent("a-switch");
|
|
163
|
+
const _component_a_select = resolveComponent("a-select");
|
|
133
164
|
const _component_a_input_number = resolveComponent("a-input-number");
|
|
165
|
+
const _component_a_input_group = resolveComponent("a-input-group");
|
|
134
166
|
return openBlock(), createElementBlock("div", {
|
|
135
167
|
class: normalizeClass([unref(ns).b()])
|
|
136
168
|
}, [
|
|
137
169
|
createVNode(FormItem, {
|
|
138
|
-
label: _ctx.$t("sys.
|
|
170
|
+
label: _ctx.$t("sys.isEnableRangeValidate")
|
|
139
171
|
}, {
|
|
140
172
|
default: withCtx(() => [
|
|
141
173
|
createVNode(_component_a_switch, {
|
|
@@ -151,7 +183,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
151
183
|
}, 8, ["label"]),
|
|
152
184
|
formState.value.enableRangeValidate ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
153
185
|
createVNode(FormItem, {
|
|
154
|
-
label: _ctx.$t("sys.
|
|
186
|
+
label: _ctx.$t("sys.maxValidateMode"),
|
|
155
187
|
inline: false
|
|
156
188
|
}, {
|
|
157
189
|
default: withCtx(() => [
|
|
@@ -168,31 +200,50 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
168
200
|
]),
|
|
169
201
|
_: 1
|
|
170
202
|
}, 8, ["label"]),
|
|
171
|
-
formState.value.maxValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(
|
|
203
|
+
formState.value.maxValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_input_group, {
|
|
172
204
|
key: 0,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
205
|
+
compact: "",
|
|
206
|
+
class: normalizeClass([unref(ns).e("fixed-row")])
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createVNode(_component_a_select, {
|
|
210
|
+
size: "small",
|
|
211
|
+
class: normalizeClass([unref(ns).e("op")]),
|
|
212
|
+
options: maxCompareOpOptions,
|
|
213
|
+
value: formState.value.maxCompareOp || unref(RangeCompareOp).LE,
|
|
214
|
+
disabled: __props.disabled || __props.readonly,
|
|
215
|
+
"dropdown-match-select-width": false,
|
|
216
|
+
"dropdown-style": { minWidth: "110px" },
|
|
217
|
+
onChange: _cache[2] || (_cache[2] = (v) => formState.value.maxCompareOp = v)
|
|
218
|
+
}, null, 8, ["class", "value", "disabled"]),
|
|
219
|
+
createVNode(_component_a_input_number, {
|
|
220
|
+
size: "small",
|
|
221
|
+
class: normalizeClass([unref(ns).e("value")]),
|
|
222
|
+
value: formState.value.max,
|
|
223
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.max = $event),
|
|
224
|
+
min: maxLimit.value.lowerLimit,
|
|
225
|
+
max: maxLimit.value.upperLimit,
|
|
226
|
+
precision: __props.precision,
|
|
227
|
+
controls: false,
|
|
228
|
+
placeholder: _ctx.$t("sys.inputTextTip", { name: _ctx.$t("sys.maxNumber") }),
|
|
229
|
+
disabled: __props.disabled || __props.readonly
|
|
230
|
+
}, null, 8, ["class", "value", "min", "max", "precision", "placeholder", "disabled"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
183
234
|
formState.value.maxValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
|
|
184
235
|
key: 1,
|
|
185
|
-
class: normalizeClass([unref(ns).e("
|
|
236
|
+
class: normalizeClass([unref(ns).e("formula")]),
|
|
186
237
|
size: "small",
|
|
187
238
|
modelKey: __props.fieldMeta.model,
|
|
188
239
|
disabled: __props.disabled,
|
|
189
240
|
expr: formState.value.maxExpr,
|
|
190
|
-
"onUpdate:expr": _cache[
|
|
241
|
+
"onUpdate:expr": _cache[4] || (_cache[4] = ($event) => formState.value.maxExpr = $event),
|
|
191
242
|
"expr-echo": formState.value.maxExprEcho,
|
|
192
|
-
"onUpdate:exprEcho": _cache[
|
|
243
|
+
"onUpdate:exprEcho": _cache[5] || (_cache[5] = ($event) => formState.value.maxExprEcho = $event)
|
|
193
244
|
}, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true),
|
|
194
245
|
createVNode(FormItem, {
|
|
195
|
-
label: _ctx.$t("sys.
|
|
246
|
+
label: _ctx.$t("sys.minValidateMode"),
|
|
196
247
|
inline: false
|
|
197
248
|
}, {
|
|
198
249
|
default: withCtx(() => [
|
|
@@ -204,40 +255,59 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
204
255
|
options: unref(validateModeOptions),
|
|
205
256
|
disabled: __props.disabled,
|
|
206
257
|
value: formState.value.minValidateMode,
|
|
207
|
-
"onUpdate:value": _cache[
|
|
258
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => formState.value.minValidateMode = $event)
|
|
208
259
|
}, null, 8, ["options", "disabled", "value"])
|
|
209
260
|
]),
|
|
210
261
|
_: 1
|
|
211
262
|
}, 8, ["label"]),
|
|
212
|
-
formState.value.minValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(
|
|
263
|
+
formState.value.minValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_input_group, {
|
|
213
264
|
key: 2,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
265
|
+
compact: "",
|
|
266
|
+
class: normalizeClass([unref(ns).e("fixed-row")])
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
createVNode(_component_a_select, {
|
|
270
|
+
size: "small",
|
|
271
|
+
class: normalizeClass([unref(ns).e("op")]),
|
|
272
|
+
options: minCompareOpOptions,
|
|
273
|
+
value: formState.value.minCompareOp || unref(RangeCompareOp).GE,
|
|
274
|
+
disabled: __props.disabled || __props.readonly,
|
|
275
|
+
"dropdown-match-select-width": false,
|
|
276
|
+
"dropdown-style": { minWidth: "110px" },
|
|
277
|
+
onChange: _cache[7] || (_cache[7] = (v) => formState.value.minCompareOp = v)
|
|
278
|
+
}, null, 8, ["class", "value", "disabled"]),
|
|
279
|
+
createVNode(_component_a_input_number, {
|
|
280
|
+
size: "small",
|
|
281
|
+
class: normalizeClass([unref(ns).e("value")]),
|
|
282
|
+
value: formState.value.min,
|
|
283
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => formState.value.min = $event),
|
|
284
|
+
min: minLimit.value.lowerLimit,
|
|
285
|
+
max: minLimit.value.upperLimit,
|
|
286
|
+
precision: __props.precision,
|
|
287
|
+
controls: false,
|
|
288
|
+
placeholder: _ctx.$t("sys.inputTextTip", { name: _ctx.$t("sys.minNumber") }),
|
|
289
|
+
disabled: __props.disabled || __props.readonly
|
|
290
|
+
}, null, 8, ["class", "value", "min", "max", "precision", "placeholder", "disabled"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
224
294
|
formState.value.minValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
|
|
225
295
|
key: 3,
|
|
226
|
-
class: normalizeClass([unref(ns).e("
|
|
296
|
+
class: normalizeClass([unref(ns).e("formula")]),
|
|
227
297
|
size: "small",
|
|
228
298
|
modelKey: __props.fieldMeta.model,
|
|
229
299
|
disabled: __props.disabled,
|
|
230
300
|
expr: formState.value.minExpr,
|
|
231
|
-
"onUpdate:expr": _cache[
|
|
301
|
+
"onUpdate:expr": _cache[9] || (_cache[9] = ($event) => formState.value.minExpr = $event),
|
|
232
302
|
"expr-echo": formState.value.minExprEcho,
|
|
233
|
-
"onUpdate:exprEcho": _cache[
|
|
303
|
+
"onUpdate:exprEcho": _cache[10] || (_cache[10] = ($event) => formState.value.minExprEcho = $event)
|
|
234
304
|
}, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true)
|
|
235
305
|
], 64)) : createCommentVNode("", true)
|
|
236
306
|
], 2);
|
|
237
307
|
};
|
|
238
308
|
}
|
|
239
309
|
});
|
|
240
|
-
const NumberRangeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
310
|
+
const NumberRangeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-80683448"]]);
|
|
241
311
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
242
312
|
__name: "default-value-editor",
|
|
243
313
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { u as useModelFields, D as Diagonal } from "./index-
|
|
3
|
-
import { _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-
|
|
2
|
+
import { u as useModelFields, D as Diagonal } from "./index-yih5hGsL.js";
|
|
3
|
+
import { _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "diagonal-design",
|
|
6
6
|
props: {
|