@gct-paas/excel 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{VueVideoPlayer-Bf0x69CJ.js → VueVideoPlayer-dfgekKID.js} +2 -2
- package/dist/{agg-design-CLSOm6QJ.js → agg-design-yDLZkVkR.js} +1 -1
- package/dist/{agg-props-4nnDqWtf.js → agg-props-DrXyaNCT.js} +1 -1
- package/dist/{agg-style-FHSkeH5u.js → agg-style-D_6r9Myg.js} +1 -1
- package/dist/{align-editor-Bf391dfO.js → align-editor-D5Ra4SB6.js} +1 -1
- package/dist/{attach-fields-editor-U0Vg4ar8.js → attach-fields-editor-C4JBi-p_.js} +2 -2
- package/dist/{barcode-design-XLuURxqD.js → barcode-design-D3JH5Afi.js} +2 -2
- package/dist/base/index.es.js +77 -74
- package/dist/{base-font-editor-adnb7ShQ.js → base-font-editor-B6J_Ts2T.js} +2 -2
- package/dist/{boolean-design-Bk3jIc2m.js → boolean-design-DQvGDcd9.js} +2 -2
- package/dist/{boolean-props-D1C7P7oX.js → boolean-props-BPxPHLqI.js} +3 -3
- package/dist/{boolean-style-CWmep9-Y.js → boolean-style-BSc1-meP.js} +4 -4
- package/dist/{cell-upload-wzPF8ovv.js → cell-upload-CiWekXUb.js} +2 -2
- package/dist/{date-range-editor-CGCLkDFp.js → date-range-editor-DPt8-LqQ.js} +2 -2
- package/dist/{date-time-design-CG6fhsBd.js → date-time-design-Dv4dW-Iy.js} +1 -1
- package/dist/{date-time-props-DGa4XIFD.js → date-time-props-Cs4GVKqC.js} +3 -3
- package/dist/{date-time-style-C5xs_HQX.js → date-time-style-iSIC_SNA.js} +1 -1
- package/dist/{decimal-design-Dg2PWB7J.js → decimal-design-C-GvHZPx.js} +1 -1
- package/dist/{decimal-display-mode-B5nxWZnK.js → decimal-display-mode-C_ooE9xL.js} +2 -2
- package/dist/{decimal-props-BUduwEu5.js → decimal-props-Vv8GsEHC.js} +4 -4
- package/dist/{decimal-style-CW6QyMh0.js → decimal-style-CY-zOSpD.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Bw0TkvW-.js} +2 -2
- package/dist/{diagonal-design-xlveiCza.js → diagonal-design-DS1kXGt1.js} +16 -4
- package/dist/{double-design-Dkzgoo0g.js → double-design-DAz8wmRS.js} +1 -1
- package/dist/{double-props-DwI5z-Mz.js → double-props-e76nS4qi.js} +4 -4
- package/dist/{double-style-B09n2Oup.js → double-style-kWIo_xYy.js} +1 -1
- package/dist/{dynamic-table-action-KwzaoPBC.js → dynamic-table-action-CbHoY76E.js} +12 -3
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js} +250 -225
- package/dist/{edit.utils-CXmmCnxE-Do4weQUL.js → edit.utils-CXmmCnxE-CLCBDG4R.js} +1 -1
- package/dist/{enum-design-D_hYB8q2.js → enum-design-DVoXOTIU.js} +2 -2
- package/dist/{enum-props-SHpVl7is.js → enum-props-DgsIc2Fz.js} +3 -3
- package/dist/{enum-style-zTZKj6Li.js → enum-style-C4r86NqC.js} +3 -3
- package/dist/excel.css +284 -66
- package/dist/{exceljs.min-Dy4OavkS.js → exceljs.min-D-mqoZsC.js} +2 -2
- package/dist/{expression-design-DH37JCnd.js → expression-design-D7PiPYQJ.js} +1 -1
- package/dist/{expression-props-D4aZ2FzY.js → expression-props-DDcg6alT.js} +1 -1
- package/dist/{expression-style-Bj0tEmqJ.js → expression-style-C0GgXqbp.js} +1 -1
- package/dist/{file-design-hV82bwcT.js → file-design-CeAmaBow.js} +1 -1
- package/dist/{file-props-BR0xOn8f.js → file-props-e06WxwTc.js} +2 -2
- package/dist/{file-style-CPXRGFCR.js → file-style-FigMgXwH.js} +1 -1
- package/dist/{font-editor-QrOFLcNA.js → font-editor-DYBI1FXx.js} +3 -3
- package/dist/{image-design-B3FASJvR.js → image-design-CcHGCTJH.js} +1 -1
- package/dist/{image-design-WqYFe8Hz.js → image-design-DxKCuSrx.js} +2 -2
- package/dist/{image-props-DZ0lHvNN.js → image-props-Co5Kp-ZH.js} +1 -1
- package/dist/{image-style-D3jSU46p.js → image-style-D6I5jBAk.js} +1 -1
- package/dist/{index-C9uva5U9.js → index-8-tnvhRC.js} +1 -1
- package/dist/{index-DKR79OBc.js → index-B2Rk7ex6.js} +1 -1
- package/dist/{index-CVsM5Bam.js → index-BC-Zhsm-.js} +1 -1
- package/dist/{index-Cblyq6yH.js → index-BZfGHVOt.js} +1 -1
- package/dist/{index-DVaUctcz.js → index-Bsabb65u.js} +1 -1
- package/dist/{index-B_bGf5j3.js → index-C7EF3bU6.js} +2 -2
- package/dist/{index-BpacgAuY.js → index-CRcKdyyr.js} +1 -1
- package/dist/{index-CAp9OIUg.js → index-CTEoW7C9.js} +2 -2
- package/dist/{index-BYnhPyxm.js → index-CgDvaY3D.js} +1 -1
- package/dist/{index-4aWfyi4S.js → index-CpsQzaA9.js} +2 -2
- package/dist/{index-BCRANZ6N.js → index-CwwHZhmI.js} +1 -1
- package/dist/{index-pMF19I7H.js → index-D3H3AjqQ.js} +1 -1
- package/dist/{index-B2JfWmQ5.js → index-D51-PvAq.js} +1 -1
- package/dist/{index-RY064UmV.js → index-D6YzCpCw.js} +2 -1
- package/dist/{index-Dvp79b5b.js → index-D7DRfQTh.js} +1 -1
- package/dist/{index-D8uy8whi.js → index-DFGBKBau.js} +1 -1
- package/dist/{index-CsLZerBY.js → index-DJdI2Xy_.js} +771 -311
- package/dist/{index-Cqh9EW_d.js → index-DSSHWwFD.js} +4 -1
- package/dist/{index-DegtNz07.js → index-DXtJ-139.js} +1 -1
- package/dist/{index-BYFfjfXo.js → index-Dacbq4L4.js} +249 -27
- package/dist/{index-CquVE9ii.js → index-DgBJVPsK.js} +1 -1
- package/dist/{index-DNHA-joo.js → index-Dku5Txlf.js} +1 -1
- package/dist/{index-DxgKf-wy.js → index-DsBusJ7S.js} +1 -1
- package/dist/{index-BgJenclY.js → index-Dx6OiqW2.js} +1 -1
- package/dist/{index-DpFPYL8b.js → index-E-flWZFi.js} +1 -1
- package/dist/{index-ChFaMPeg.js → index-GGZRPnYe.js} +2 -2
- package/dist/{index-wmbtcxzT.js → index-H9YwRWK1.js} +2 -2
- package/dist/{index-Jz0_ApK0.js → index-J1Nf5wgV.js} +1 -1
- package/dist/{index-dECIkP6q.js → index-OK49_noi.js} +1 -1
- package/dist/{index-iGA3l7nd.js → index-UeWlvtDf.js} +1 -1
- package/dist/{index-Ol6_R1tg.js → index-l3TfFIxY.js} +1 -1
- package/dist/{index-BocrGDq2.js → index-xg8BpbDL.js} +1 -1
- package/dist/{index-DU3SF4eg.js → index-yclgXrqJ.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{integer-design-_-oIGMZi.js → integer-design-DJ4aKAz0.js} +1 -1
- package/dist/{integer-props-CbhqGTWT.js → integer-props-CaSOySHa.js} +4 -4
- package/dist/{integer-style-CRDDq2e1.js → integer-style-CCLqQ4ys.js} +1 -1
- package/dist/{mb-render-Bh6EegbE.js → mb-render-JGHghp5L.js} +1 -1
- package/dist/{number-input-ex-n0MRaA8Z.js → number-input-ex-CtHpEamV.js} +1 -1
- package/dist/{org-props-B_ED1XJd.js → org-props-CRAmwHlJ.js} +2 -2
- package/dist/{org-style-P7mL2u1-.js → org-style-BWj_AEnP.js} +1 -1
- package/dist/{pagination-design-CC2ZvE5K.js → pagination-design-BGUqZKxh.js} +2 -2
- package/dist/paper-widget-design-CgmZ8LSm.js +4 -0
- package/dist/{qrcode-design-C_G8R7Lo.js → qrcode-design-CjN0UWN3.js} +1 -1
- package/dist/{ref-autofill-editor-DdUMjliQ.js → ref-autofill-editor-BKYPW69A.js} +2 -2
- package/dist/{ref-props-CCwA0E2w.js → ref-props-M99PRlsI.js} +3 -3
- package/dist/{ref-style-C3Qy3L2V.js → ref-style-BCeprSYg.js} +1 -1
- package/dist/{regex-editor-CswiNY9l.js → regex-editor-BGaFYbF4.js} +2 -2
- package/dist/{revo-grid.entry-fhJrZlXs.js → revo-grid.entry-Bokapeoj.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BxX5Aax7.js → revogr-attribution_7.entry-D7WJHpFT.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-B84Mg6_S.js → revogr-clipboard_3.entry-Bk1SGzbF.js} +2 -2
- package/dist/{revogr-data_4.entry-BSSMKH9X.js → revogr-data_4.entry-2v7X9qHp.js} +2 -2
- package/dist/{revogr-filter-panel.entry-xjYp1Z8c.js → revogr-filter-panel.entry-DXaW46ts.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-ygXwKc_C.js} +2 -2
- package/dist/{serialnumber-design-qdEzFAi4.js → serialnumber-design-Bo13RmJa.js} +1 -1
- package/dist/shared/index.es.js +22 -22
- package/dist/{signature-design-DyLTKEwS.js → signature-design-DT5T5nus.js} +1 -1
- package/dist/{signature-props-CXwqrh0H.js → signature-props-cW9R4qcY.js} +3 -3
- package/dist/{signature-style-ibNQSAPQ.js → signature-style-XPxgyfzG.js} +1 -1
- package/dist/{single-field-drop-BSdWy-C4.js → single-field-drop-CjK8KjfH.js} +2 -2
- package/dist/{size-editor-8C1AxONY.js → size-editor-aLyY3Bsr.js} +1 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +16 -1
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +13 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/widgets/i-diagonal.d.ts +4 -2
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +12 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +7 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter-editor.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +30 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-source-field-select.vue.d.ts +22 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +40 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +55 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +11 -0
- package/dist/{text-design-BzDtceUO.js → text-design-DIR_98fe.js} +2 -2
- package/dist/{text-design-Di-2lpQC.js → text-design-Dz8pIESR.js} +2 -2
- package/dist/{text-props-YXtd9DCt.js → text-props-BxirdX2V.js} +5 -5
- package/dist/{text-style-BtclwHUQ.js → text-style-MPmJRVRg.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BFMM5iqm.js → throttle-Cpk1LoGk-C22z7VFi.js} +1 -1
- package/dist/{timediff-design-DPDNHC4C.js → timediff-design-Pud7SFpe.js} +1 -1
- package/dist/{trace-design-B2tffMF2.js → trace-design-DNVZ_y9D.js} +2 -2
- package/dist/trace-props-LPvWrrti.js +610 -0
- package/dist/{trace-style-AmSVnHXF.js → trace-style-DnaicSRA.js} +1 -1
- package/dist/{user-props-hR1saiG7.js → user-props-DdTpHX3B.js} +2 -2
- package/dist/{user-style-BsMfhFHo.js → user-style-6SWgJi8d.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js → value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js} +2 -2
- package/dist/{version-select-CeQP0Bne.js → version-select-CXWtI4W-.js} +1 -1
- package/dist/web-render/index.es.js +2 -2
- package/dist/{widget-barcode-DPdsvAF5.js → widget-barcode-iBjDv4NF.js} +4 -4
- package/dist/{widget-diagonal-BfjZGony.js → widget-diagonal-4ZMgaI9y.js} +72 -17
- package/dist/{widget-image-D_E_0ZEd.js → widget-image-B63wZzz4.js} +5 -5
- package/dist/{widget-line-SDiSxrzr.js → widget-line-CIG-L--W.js} +2 -2
- package/dist/{widget-pagination-DdIoe9Yy.js → widget-pagination-CAmhXECi.js} +5 -5
- package/dist/{widget-power-hifeC3T0.js → widget-power-CsiguFSe.js} +3 -3
- package/dist/{widget-qrcode-DBEsM1iE.js → widget-qrcode-BuEayrLO.js} +3 -3
- package/dist/{widget-rangelimit-clQ84tvq.js → widget-rangelimit-CqaLvV8n.js} +3 -3
- package/dist/{widget-serialnumber-BXvzHCYR.js → widget-serialnumber-C_wAw0TS.js} +1 -1
- package/dist/{widget-text-CPojsb_9.js → widget-text-CRApo2EO.js} +5 -5
- package/dist/{widget-timediff-DGBZsme_.js → widget-timediff-D1q5VNhe.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-CvvM0OZ2.js +0 -4
- package/dist/trace-props-CWTXFYZ9.js +0 -275
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js";
|
|
4
|
+
import { a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "ant-design-vue";
|
|
8
|
-
import { A as AlignEditor } from "./align-editor-
|
|
8
|
+
import { A as AlignEditor } from "./align-editor-D5Ra4SB6.js";
|
|
9
9
|
const _hoisted_1 = { class: "pl-6px" };
|
|
10
10
|
const _hoisted_2 = { class: "flex justify-end" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
-
import { F as FormItem, S as SelectEx } from "./index-
|
|
2
|
+
import { F as FormItem, S as SelectEx } from "./index-DJdI2Xy_.js";
|
|
3
3
|
import { defaults } from "lodash-es";
|
|
4
|
-
import { F as FIELD_TYPE, _ as _export_sfc, I as DiagonalDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
4
|
+
import { F as FIELD_TYPE, _ as _export_sfc, I as DiagonalDirection, K as DiagonalVertex, bq as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
|
|
8
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
8
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CjK8KjfH.js";
|
|
9
9
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "diagonal-name-editor",
|
|
11
11
|
props: {
|
|
@@ -64,7 +64,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
extra: withCtx(() => [
|
|
65
65
|
createElementVNode("span", {
|
|
66
66
|
class: normalizeClass([unref(ns).e("switch-text")])
|
|
67
|
-
}, toDisplayString(_ctx.$t("sys.
|
|
67
|
+
}, toDisplayString(_ctx.$t("sys.diagonal.enableFIeldLabel")), 3),
|
|
68
68
|
createVNode(_component_a_switch, {
|
|
69
69
|
size: "small",
|
|
70
70
|
disabled: __props.disabled,
|
|
@@ -96,7 +96,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
const DiagonalNameEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
99
|
+
const DiagonalNameEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6aeca5f7"]]);
|
|
100
100
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
101
101
|
__name: "widget-diagonal",
|
|
102
102
|
props: {
|
|
@@ -115,42 +115,78 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
});
|
|
116
116
|
const sizeOptions = computed(() => {
|
|
117
117
|
return [
|
|
118
|
-
{ value: 2, label: $t("sys.
|
|
119
|
-
{ value: 3, label: $t("sys.
|
|
118
|
+
{ value: 2, label: $t("sys.diagonal.size2") },
|
|
119
|
+
{ value: 3, label: $t("sys.diagonal.size3") }
|
|
120
120
|
];
|
|
121
121
|
});
|
|
122
122
|
const directionOptions = computed(() => {
|
|
123
123
|
return [
|
|
124
124
|
{
|
|
125
125
|
value: DiagonalDirection.Forward,
|
|
126
|
-
label: $t("sys.
|
|
126
|
+
label: $t("sys.diagonal.directionEnum.forward"),
|
|
127
127
|
icon: "icon-a-xiangzuofenlan1"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
value: DiagonalDirection.Backward,
|
|
131
|
-
label: $t("sys.
|
|
131
|
+
label: $t("sys.diagonal.directionEnum.backward"),
|
|
132
132
|
icon: "icon-a-xiangyoufenlan1"
|
|
133
133
|
}
|
|
134
134
|
];
|
|
135
135
|
});
|
|
136
|
+
const vertexOptions = computed(() => {
|
|
137
|
+
return [
|
|
138
|
+
{
|
|
139
|
+
value: DiagonalVertex.TopLeft,
|
|
140
|
+
label: $t("sys.diagonal.vertexEnum.topLeft")
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: DiagonalVertex.TopRight,
|
|
144
|
+
label: $t("sys.diagonal.vertexEnum.topRight")
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
value: DiagonalVertex.BottomLeft,
|
|
148
|
+
label: $t("sys.diagonal.vertexEnum.bottomLeft")
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
value: DiagonalVertex.BottomRight,
|
|
152
|
+
label: $t("sys.diagonal.vertexEnum.bottomRight")
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
});
|
|
136
156
|
watch(
|
|
137
157
|
() => props.widget,
|
|
138
158
|
(v) => {
|
|
139
159
|
if (!v) {
|
|
140
160
|
return;
|
|
141
161
|
}
|
|
162
|
+
const isLegacyVertex = v.size === 3 && !("vertex" in v);
|
|
142
163
|
defaults(v, {
|
|
143
164
|
direction: DiagonalDirection.Forward,
|
|
144
165
|
bindFields: [void 0, void 0, void 0],
|
|
145
166
|
enableFields: [false, false, false]
|
|
146
167
|
});
|
|
168
|
+
if (isLegacyVertex) {
|
|
169
|
+
v.vertex = migrateDiagonalDirectionToVertex(v.direction ?? DiagonalDirection.Forward);
|
|
170
|
+
} else {
|
|
171
|
+
defaults(v, {
|
|
172
|
+
vertex: DiagonalVertex.TopLeft
|
|
173
|
+
});
|
|
174
|
+
}
|
|
147
175
|
},
|
|
148
176
|
{ immediate: true }
|
|
149
177
|
);
|
|
178
|
+
watch(
|
|
179
|
+
() => props.widget.size,
|
|
180
|
+
(newSize, oldSize) => {
|
|
181
|
+
if (newSize === 3 && oldSize === 2 && !("vertex" in props.widget)) {
|
|
182
|
+
props.widget.vertex = DiagonalVertex.TopLeft;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
);
|
|
150
186
|
return (_ctx, _cache) => {
|
|
151
187
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
152
188
|
createVNode(FormItem, {
|
|
153
|
-
label: _ctx.$t("sys.
|
|
189
|
+
label: _ctx.$t("sys.diagonal.sizeLabel"),
|
|
154
190
|
inline: false,
|
|
155
191
|
class: "important-mt-0px"
|
|
156
192
|
}, {
|
|
@@ -168,8 +204,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
204
|
]),
|
|
169
205
|
_: 1
|
|
170
206
|
}, 8, ["label"]),
|
|
171
|
-
|
|
172
|
-
|
|
207
|
+
__props.widget.size === 2 ? (openBlock(), createBlock(FormItem, {
|
|
208
|
+
key: 0,
|
|
209
|
+
label: _ctx.$t("sys.diagonal.directionLabel"),
|
|
173
210
|
inline: false,
|
|
174
211
|
class: "important-mt-0px"
|
|
175
212
|
}, {
|
|
@@ -186,23 +223,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
223
|
}, null, 8, ["disabled", "options", "value"])
|
|
187
224
|
]),
|
|
188
225
|
_: 1
|
|
189
|
-
}, 8, ["label"]),
|
|
226
|
+
}, 8, ["label"])) : (openBlock(), createBlock(FormItem, {
|
|
227
|
+
key: 1,
|
|
228
|
+
label: _ctx.$t("sys.diagonal.vertexLabel"),
|
|
229
|
+
inline: false
|
|
230
|
+
}, {
|
|
231
|
+
default: withCtx(() => [
|
|
232
|
+
createVNode(unref(SelectEx), {
|
|
233
|
+
class: "w-full",
|
|
234
|
+
"show-mode": "icon-label",
|
|
235
|
+
"icon-type": "custom",
|
|
236
|
+
disabled: __props.disabled,
|
|
237
|
+
options: vertexOptions.value,
|
|
238
|
+
"style-type": "buttons",
|
|
239
|
+
value: formState.value.vertex,
|
|
240
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.vertex = $event)
|
|
241
|
+
}, null, 8, ["disabled", "options", "value"])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["label"])),
|
|
190
245
|
createVNode(DiagonalNameEditor, {
|
|
191
246
|
index: 0,
|
|
192
|
-
label: _ctx.$t("sys.
|
|
247
|
+
label: _ctx.$t("sys.diagonal.topNameLabel"),
|
|
193
248
|
widget: __props.widget,
|
|
194
249
|
disabled: __props.disabled
|
|
195
250
|
}, null, 8, ["label", "widget", "disabled"]),
|
|
196
251
|
__props.widget.size === 3 ? (openBlock(), createBlock(DiagonalNameEditor, {
|
|
197
|
-
key:
|
|
252
|
+
key: 2,
|
|
198
253
|
index: 1,
|
|
199
|
-
label: _ctx.$t("sys.
|
|
254
|
+
label: _ctx.$t("sys.diagonal.middleNameLabel"),
|
|
200
255
|
widget: __props.widget,
|
|
201
256
|
disabled: __props.disabled
|
|
202
257
|
}, null, 8, ["label", "widget", "disabled"])) : createCommentVNode("", true),
|
|
203
258
|
createVNode(DiagonalNameEditor, {
|
|
204
259
|
index: 2,
|
|
205
|
-
label: _ctx.$t("sys.
|
|
260
|
+
label: _ctx.$t("sys.diagonal.bottomNameLabel"),
|
|
206
261
|
widget: __props.widget,
|
|
207
262
|
disabled: __props.disabled
|
|
208
263
|
}, null, 8, ["label", "widget", "disabled"])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
|
|
2
|
-
import { L as LeftOutlined, R as RightOutlined, x as isClient, h as useSpreadSheet, F as FormItem, y as ImgParser } from "./index-
|
|
3
|
-
import { S as SizeEditor } from "./size-editor-
|
|
2
|
+
import { L as LeftOutlined, R as RightOutlined, x as isClient, h as useSpreadSheet, F as FormItem, y as ImgParser } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { S as SizeEditor } from "./size-editor-aLyY3Bsr.js";
|
|
4
4
|
import { message } from "ant-design-vue";
|
|
5
|
-
import { W as WidgetImageSizeMode, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { W as WidgetImageSizeMode, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
-
import { u as useWebUpload } from "./index-
|
|
9
|
-
import { C as CloseOutlined } from "./version-select-
|
|
8
|
+
import { u as useWebUpload } from "./index-Dacbq4L4.js";
|
|
9
|
+
import { C as CloseOutlined } from "./version-select-CXWtI4W-.js";
|
|
10
10
|
const resumeSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307154239'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7317'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M316%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208zM512%20622c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039zM512%20482c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039z'%20p-id='7318'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='7319'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M648%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208z'%20p-id='7320'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
11
11
|
const rotateSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595306944988'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1820'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M1464.3%20279.7'%20p-id='1821'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M512%20960c-60.5%200-119.1-11.9-174.4-35.2-53.4-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.9%20631.1%2064%20572.5%2064%20512s11.9-119.1%2035.2-174.4c22.6-53.4%2054.9-101.3%2096-142.4s89-73.4%20142.4-96C392.9%2075.9%20451.5%2064%20512%2064s119.1%2011.9%20174.4%2035.2c53.4%2022.6%20101.3%2054.9%20142.4%2096s73.4%2089%2096%20142.4C948.1%20392.9%20960%20451.5%20960%20512c0%2019.1-15.5%2034.6-34.6%2034.6s-34.6-15.5-34.6-34.6c0-51.2-10-100.8-29.8-147.4-19.1-45.1-46.4-85.6-81.2-120.4C745%20209.4%20704.5%20182%20659.4%20163c-46.7-19.7-96.3-29.8-147.4-29.8-51.2%200-100.8%2010-147.4%2029.8-45.1%2019.1-85.6%2046.4-120.4%2081.2S182%20319.5%20163%20364.6c-19.7%2046.7-29.8%2096.3-29.8%20147.4%200%2051.2%2010%20100.8%2029.8%20147.4%2019.1%2045.1%2046.4%2085.6%2081.2%20120.4C279%20814.6%20319.5%20842%20364.6%20861c46.7%2019.7%2096.3%2029.8%20147.4%2029.8%2064.6%200%20128.4-16.5%20184.4-47.8%2054.4-30.4%20100.9-74.1%20134.6-126.6%2010.3-16.1%2031.7-20.8%2047.8-10.4%2016.1%2010.3%2020.8%2031.7%2010.4%2047.8-39.8%2062-94.8%20113.7-159.1%20149.6-66.2%2037-141.7%2056.6-218.1%2056.6z'%20p-id='1822'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M924%20552c-19.8%200-36-16.2-36-36V228c0-19.8%2016.2-36%2036-36s36%2016.2%2036%2036v288c0%2019.8-16.2%2036-36%2036zM275.4%20575.5c9.5-2.5%2019.1%202.9%2022.3%2012.2%203.5%2010.2%209.9%2017.7%2019.1%2022.6%207.1%203.9%2015.1%205.8%2024%205.8%2016.6%200%2030.8-6.9%2042.5-20.8%2011.7-13.8%2020-32.7%2024.9-75.1-7.7%2012.2-17.3%2020.8-28.7%2025.8-11.4%205-23.7%207.4-36.8%207.4-26.7%200-47.7-8.3-63.3-24.9-15.5-16.6-23.3-37.9-23.3-64.1%200-25.1%207.7-47.1%2023-66.2%2015.3-19%2037.9-28.6%2067.8-28.6%2040.3%200%2068.1%2018.1%2083.4%2054.4%208.5%2019.9%2012.7%2044.9%2012.7%2074.9%200%2033.8-5.1%2063.8-15.3%2089.9-16.9%2043.5-45.5%2065.2-85.8%2065.2-27%200-47.6-7.1-61.6-21.2-10-10.1-16.4-22-19.3-35.8-2-9.6%204-19.1%2013.5-21.6l0.9%200.1z%20m103-74.4c9.4-7.5%2014.1-20.6%2014.1-39.3%200-16.8-4.2-29.3-12.7-37.5S360.6%20412%20347.5%20412c-14%200-25.2%204.7-33.4%2014.1-8.2%209.4-12.4%2022-12.4%2037.7%200%2014.9%203.6%2026.7%2010.9%2035.5%207.2%208.8%2018.8%2013.1%2034.6%2013.1%2011.4%200%2021.8-3.8%2031.2-11.3zM646.6%20414.4c12.4%2022.8%2018.5%2054%2018.5%2093.7%200%2037.6-5.6%2068.7-16.8%2093.3-16.2%2035.3-42.8%2052.9-79.6%2052.9-33.2%200-57.9-14.4-74.2-43.3-13.5-24.1-20.3-56.4-20.3-97%200-31.4%204.1-58.4%2012.2-80.9%2015.2-42%2042.7-63%2082.5-63%2035.9%200%2061.8%2014.8%2077.7%2044.3z%20m-40.2%20173.3c9.4-13.9%2014-39.9%2014-78%200-27.4-3.4-50-10.1-67.7-6.8-17.7-19.9-26.6-39.4-26.6-17.9%200-31%208.4-39.3%2025.2-8.3%2016.8-12.4%2041.6-12.4%2074.3%200%2024.6%202.6%2044.4%207.9%2059.4%208.1%2022.8%2022%2034.3%2041.6%2034.3%2015.7%200%2028.3-7%2037.7-20.9zM803.3%20387.2c11.2%2011.3%2016.8%2025%2016.8%2041.2%200%2016.7-5.8%2030.7-17.5%2041.8C791%20481.4%20777.4%20487%20762%20487c-17.1%200-31.2-5.8-42.1-17.4-10.9-11.6-16.4-25.1-16.4-40.6%200-16.5%205.8-30.4%2017.3-41.7%2011.5-11.3%2025.3-17%2041.2-17%2016.3%200%2030.1%205.7%2041.3%2016.9zM739.5%20451c6.2%206.2%2013.7%209.3%2022.5%209.3%208.4%200%2015.8-3.1%2022.1-9.3%206.3-6.2%209.4-13.7%209.4-22.6%200-8.5-3.1-15.9-9.3-22.1-6.2-6.2-13.6-9.3-22.2-9.3s-16.1%203.1-22.4%209.3c-6.3%206.2-9.4%2013.7-9.4%2022.6-0.1%208.4%203%2015.8%209.3%2022.1z'%20p-id='1823'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
12
12
|
const scaleSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307195033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M887.081%20904.791a25.8%2025.8%200%200%201-18.376-7.619L705.618%20734.075l-4.163%203.369c-58.255%2047.18-131.522%2073.16-206.32%2073.16-181.07%200-328.377-147.308-328.377-328.367%200-181.068%20147.308-328.376%20328.377-328.376%20181.063%200%20328.376%20147.308%20328.376%20328.376%200%2077.072-27.412%20152.07-77.169%20211.17l-3.522%204.173%20162.719%20162.744a25.846%2025.846%200%200%201%207.639%2018.432%2026.081%2026.081%200%200%201-26.051%2026.045l-0.046-0.01zM495.13%20205.957c-152.336%200-276.27%20123.935-276.27%20276.27%200%20152.33%20123.934%20276.27%20276.27%20276.27%20152.34%200%20276.275-123.94%20276.275-276.27%200-152.335-123.935-276.27-276.275-276.27z'%20fill='%23ffffff'%20p-id='8117'%3e%3c/path%3e%3cpath%20d='M626.545%20508.355h-262.83a26.127%2026.127%200%200%201%200-52.255h262.83a26.127%2026.127%200%200%201%200%2052.255z'%20fill='%23ffffff'%20p-id='8118'%3e%3c/path%3e%3cpath%20d='M495.13%20639.77a26.127%2026.127%200%200%201-26.128-26.128v-262.83a26.127%2026.127%200%200%201%2052.255%200v262.835a26.127%2026.127%200%200%201-26.127%2026.123z'%20fill='%23ffffff'%20p-id='8119'%3e%3c/path%3e%3c/svg%3e";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, normalizeClass, toDisplayString, renderList, createBlock, normalizeStyle } from "vue";
|
|
2
|
-
import { J as LineDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { J as LineDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, z as LineStyleOptions, E as ColorPicker } from "./index-
|
|
6
|
+
import { F as FormItem, z as LineStyleOptions, E as ColorPicker } from "./index-DJdI2Xy_.js";
|
|
7
7
|
const _hoisted_1 = { class: "ks-row-middle" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "widget-line",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, G as PaginationFormatOptions } from "./index-
|
|
7
|
-
import { S as SizeEditor } from "./size-editor-
|
|
8
|
-
import { A as AlignEditor } from "./align-editor-
|
|
9
|
-
import { F as FontEditor } from "./font-editor-
|
|
6
|
+
import { F as FormItem, G as PaginationFormatOptions } from "./index-DJdI2Xy_.js";
|
|
7
|
+
import { S as SizeEditor } from "./size-editor-aLyY3Bsr.js";
|
|
8
|
+
import { A as AlignEditor } from "./align-editor-D5Ra4SB6.js";
|
|
9
|
+
import { F as FontEditor } from "./font-editor-DYBI1FXx.js";
|
|
10
10
|
const _hoisted_1 = { class: "pl-6px" };
|
|
11
11
|
const _hoisted_2 = { class: "pl-6px" };
|
|
12
12
|
const DefaultCustomFormat = "Page ${no} / ${total}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CjK8KjfH.js";
|
|
4
4
|
import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
|
|
5
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "dayjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { h as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js";
|
|
4
|
+
import { a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "ant-design-vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CjK8KjfH.js";
|
|
4
4
|
import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
|
|
5
|
-
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "widget-rangelimit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
2
|
+
import { F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "widget-serialnumber",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { S as SizeEditor } from "./size-editor-
|
|
5
|
-
import { A as AlignEditor } from "./align-editor-
|
|
6
|
-
import { F as FontEditor } from "./font-editor-
|
|
2
|
+
import { h as useSpreadSheet, F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js";
|
|
4
|
+
import { S as SizeEditor } from "./size-editor-aLyY3Bsr.js";
|
|
5
|
+
import { A as AlignEditor } from "./align-editor-D5Ra4SB6.js";
|
|
6
|
+
import { F as FontEditor } from "./font-editor-DYBI1FXx.js";
|
|
7
7
|
const _hoisted_1 = { class: "pl-6px" };
|
|
8
8
|
const _hoisted_2 = { class: "pl-6px" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { h as useSpreadSheet, u as useModelFields, F as FormItem } from "./index-
|
|
3
|
-
import { F as FIELD_TYPE, T as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { h as useSpreadSheet, u as useModelFields, F as FormItem } from "./index-DJdI2Xy_.js";
|
|
3
|
+
import { F as FIELD_TYPE, T as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
package/package.json
CHANGED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createVNode, createCommentVNode, createElementVNode, toDisplayString, unref, createTextVNode } from "vue";
|
|
2
|
-
import { u as useModelFields, h as useSpreadSheet, i as useReverseModeling, F as FormItem } from "./index-CsLZerBY.js";
|
|
3
|
-
import { D as DateFormatEditor, a as DateRangeEditor } from "./date-range-editor-CGCLkDFp.js";
|
|
4
|
-
import { D as DisplayFieldsEditor, g as getIsSearchableField, Q as QuickSearchEditor, R as RefAutofillEditor } from "./ref-autofill-editor-DdUMjliQ.js";
|
|
5
|
-
import { N as NumberRange, R as RegexEditor } from "./regex-editor-CswiNY9l.js";
|
|
6
|
-
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js";
|
|
7
|
-
import "lodash-es";
|
|
8
|
-
import "dayjs";
|
|
9
|
-
import "ant-design-vue";
|
|
10
|
-
import { A as AddRuleBtn } from "./index-BYFfjfXo.js";
|
|
11
|
-
const _hoisted_1 = { class: "mt-4px" };
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "trace-props",
|
|
14
|
-
props: {
|
|
15
|
-
fieldMeta: {},
|
|
16
|
-
widget: {},
|
|
17
|
-
fieldType: {},
|
|
18
|
-
readonly: { type: Boolean },
|
|
19
|
-
disabled: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const refRecordNoOptions = [
|
|
23
|
-
{
|
|
24
|
-
label: $t("sys.onlineForm.uniqueIdentifier"),
|
|
25
|
-
value: 0
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: $t("sys.onlineForm.linkIdentifier"),
|
|
29
|
-
value: 1
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
const { getFieldMeta } = useModelFields();
|
|
33
|
-
const { isEasyEdition } = useSpreadSheet();
|
|
34
|
-
const { setFieldRefRecordNo, isStashedField } = useReverseModeling();
|
|
35
|
-
const props = __props;
|
|
36
|
-
const options = computed(() => {
|
|
37
|
-
const isSubModel = props.fieldMeta.subModelKey && props.fieldMeta.subFieldKey;
|
|
38
|
-
return refRecordNoOptions?.map((item) => {
|
|
39
|
-
return {
|
|
40
|
-
...item,
|
|
41
|
-
disabled: isSubModel && item.value === 0 ? true : false
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
const formState = computed({
|
|
46
|
-
get() {
|
|
47
|
-
return props.widget;
|
|
48
|
-
},
|
|
49
|
-
set(v) {
|
|
50
|
-
Object.assign(props.widget, v);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const autofillRules = computed({
|
|
54
|
-
get() {
|
|
55
|
-
return formState.value.autofillRules ?? [];
|
|
56
|
-
},
|
|
57
|
-
set(v) {
|
|
58
|
-
formState.value.autofillRules = v;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
const enableAutofill = computed({
|
|
62
|
-
get() {
|
|
63
|
-
return formState.value.enableAutofill;
|
|
64
|
-
},
|
|
65
|
-
set(v) {
|
|
66
|
-
formState.value.enableAutofill = v;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const isTraceDate = computed(() => props.fieldType === FIELD_TYPE.TRACE_DATE);
|
|
70
|
-
const isRecordNo = computed(() => props.fieldType === FIELD_TYPE.RECORD_NO);
|
|
71
|
-
const isMaterialNo = computed(() => props.fieldType === FIELD_TYPE.MATERIAL_NO);
|
|
72
|
-
const fixedFieldType = computed(() => FIELD_TYPE.DATE);
|
|
73
|
-
const isRefType = computed(() => {
|
|
74
|
-
const bizType = props.fieldMeta.bizType;
|
|
75
|
-
if (bizType && [FIELD_TYPE.E_SOP].includes(bizType)) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
return [FIELD_TYPE.PRODUCT, FIELD_TYPE.DEVICE, FIELD_TYPE.MFG_ORDER].includes(props.fieldType);
|
|
79
|
-
});
|
|
80
|
-
const showParseRule = computed(
|
|
81
|
-
() => [FIELD_TYPE.PRODUCT, FIELD_TYPE.DEVICE].includes(props.fieldType)
|
|
82
|
-
);
|
|
83
|
-
const canEditDigits = computed(() => {
|
|
84
|
-
return isEasyEdition.value && isStashedField({ key: props.fieldMeta.field, modelKey: props.fieldMeta.model });
|
|
85
|
-
});
|
|
86
|
-
const _refRecordNo = ref(void 0);
|
|
87
|
-
const getInitialRefRecordNo = () => {
|
|
88
|
-
const fieldInfo = getFieldMeta(props.fieldMeta);
|
|
89
|
-
const isSubModel = props.fieldMeta.subModelKey && props.fieldMeta.subFieldKey;
|
|
90
|
-
const initRefRecordNo = isSubModel ? 1 : 0;
|
|
91
|
-
return fieldInfo?.specificConfig?.refRecordNo ?? initRefRecordNo;
|
|
92
|
-
};
|
|
93
|
-
watch(
|
|
94
|
-
() => props.fieldMeta,
|
|
95
|
-
() => {
|
|
96
|
-
_refRecordNo.value = void 0;
|
|
97
|
-
},
|
|
98
|
-
{ immediate: true }
|
|
99
|
-
);
|
|
100
|
-
const refRecordNo = computed({
|
|
101
|
-
get() {
|
|
102
|
-
const initialValue = getInitialRefRecordNo();
|
|
103
|
-
return canEditDigits.value ? _refRecordNo.value ?? initialValue : initialValue;
|
|
104
|
-
},
|
|
105
|
-
set(val) {
|
|
106
|
-
_refRecordNo.value = val;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
const onChange = () => {
|
|
110
|
-
setFieldRefRecordNo({
|
|
111
|
-
modelKey: props.fieldMeta.model,
|
|
112
|
-
fieldKey: props.fieldMeta.field,
|
|
113
|
-
refRecordNo: _refRecordNo.value
|
|
114
|
-
});
|
|
115
|
-
console.log("onChange", _refRecordNo.value);
|
|
116
|
-
};
|
|
117
|
-
const fillDefaultSearchField = (oldArr = []) => {
|
|
118
|
-
const set = new Set(["code_.like", "name_.like"].concat(oldArr));
|
|
119
|
-
return Array.from(set);
|
|
120
|
-
};
|
|
121
|
-
onMounted(() => {
|
|
122
|
-
if (props.fieldType === FIELD_TYPE.DEVICE) {
|
|
123
|
-
formState.value.searchField = fillDefaultSearchField(formState.value.searchField);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const onSearchFieldChange = (arr = []) => {
|
|
127
|
-
formState.value.searchField = fillDefaultSearchField(arr);
|
|
128
|
-
};
|
|
129
|
-
return (_ctx, _cache) => {
|
|
130
|
-
const _component_a_input = resolveComponent("a-input");
|
|
131
|
-
const _component_a_radio_group = resolveComponent("a-radio-group");
|
|
132
|
-
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
133
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
134
|
-
!__props.readonly ? (openBlock(), createBlock(FormItem, {
|
|
135
|
-
key: 0,
|
|
136
|
-
label: `${_ctx.$t("sys.pageDesigner.fieldPlaceholder")}`,
|
|
137
|
-
inline: false
|
|
138
|
-
}, {
|
|
139
|
-
default: withCtx(() => [
|
|
140
|
-
createVNode(_component_a_input, {
|
|
141
|
-
size: "small",
|
|
142
|
-
value: formState.value.placeholder,
|
|
143
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.placeholder = $event),
|
|
144
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
145
|
-
disabled: __props.disabled,
|
|
146
|
-
"show-count": "",
|
|
147
|
-
maxlength: 32
|
|
148
|
-
}, null, 8, ["value", "placeholder", "disabled"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["label"])) : createCommentVNode("", true),
|
|
152
|
-
!__props.readonly && isMaterialNo.value ? (openBlock(), createBlock(FormItem, {
|
|
153
|
-
key: 1,
|
|
154
|
-
label: `${_ctx.$t("sys.fieldTypeProps.lengthLimit")}`,
|
|
155
|
-
inline: false
|
|
156
|
-
}, {
|
|
157
|
-
default: withCtx(() => [
|
|
158
|
-
createVNode(NumberRange, {
|
|
159
|
-
min: formState.value.minlength,
|
|
160
|
-
"onUpdate:min": _cache[1] || (_cache[1] = ($event) => formState.value.minlength = $event),
|
|
161
|
-
max: formState.value.maxlength,
|
|
162
|
-
"onUpdate:max": _cache[2] || (_cache[2] = ($event) => formState.value.maxlength = $event),
|
|
163
|
-
precision: 0,
|
|
164
|
-
disabled: __props.disabled,
|
|
165
|
-
"min-placeholder": _ctx.$t("sys.fieldTypeProps.minLength"),
|
|
166
|
-
"max-placeholder": _ctx.$t("sys.fieldTypeProps.maxLength")
|
|
167
|
-
}, null, 8, ["min", "max", "disabled", "min-placeholder", "max-placeholder"])
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
}, 8, ["label"])) : createCommentVNode("", true),
|
|
171
|
-
!__props.readonly && isMaterialNo.value ? (openBlock(), createBlock(RegexEditor, {
|
|
172
|
-
key: 2,
|
|
173
|
-
regex: formState.value.regex,
|
|
174
|
-
"onUpdate:regex": _cache[3] || (_cache[3] = ($event) => formState.value.regex = $event),
|
|
175
|
-
"regex-hint": formState.value.regexHint,
|
|
176
|
-
"onUpdate:regexHint": _cache[4] || (_cache[4] = ($event) => formState.value.regexHint = $event),
|
|
177
|
-
disabled: __props.disabled
|
|
178
|
-
}, null, 8, ["regex", "regex-hint", "disabled"])) : createCommentVNode("", true),
|
|
179
|
-
!__props.readonly && isRecordNo.value ? (openBlock(), createBlock(FormItem, {
|
|
180
|
-
key: 3,
|
|
181
|
-
label: _ctx.$t("sys.model.fieldAttr"),
|
|
182
|
-
inline: false
|
|
183
|
-
}, {
|
|
184
|
-
default: withCtx(() => [
|
|
185
|
-
createVNode(_component_a_radio_group, {
|
|
186
|
-
value: refRecordNo.value,
|
|
187
|
-
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => refRecordNo.value = $event),
|
|
188
|
-
options: options.value,
|
|
189
|
-
disabled: __props.disabled || !canEditDigits.value,
|
|
190
|
-
onChange
|
|
191
|
-
}, null, 8, ["value", "options", "disabled"]),
|
|
192
|
-
createElementVNode("div", _hoisted_1, toDisplayString(refRecordNo.value === 0 ? _ctx.$t("sys.onlineForm.traceFieldErrorTip1") : _ctx.$t("sys.onlineForm.traceFieldErrorTip2")), 1)
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 8, ["label"])) : createCommentVNode("", true),
|
|
196
|
-
showParseRule.value ? (openBlock(), createBlock(FormItem, {
|
|
197
|
-
key: 4,
|
|
198
|
-
inline: false,
|
|
199
|
-
label: _ctx.$t("sys.edhr.mcTable.parseRule"),
|
|
200
|
-
class: "justify-between"
|
|
201
|
-
}, {
|
|
202
|
-
default: withCtx(() => [
|
|
203
|
-
createVNode(unref(AddRuleBtn), {
|
|
204
|
-
modelValue: formState.value.parseRuleProps,
|
|
205
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => formState.value.parseRuleProps = $event),
|
|
206
|
-
subModelKey: __props.fieldMeta.subModelKey
|
|
207
|
-
}, null, 8, ["modelValue", "subModelKey"])
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["label"])) : createCommentVNode("", true),
|
|
211
|
-
!__props.readonly ? (openBlock(), createBlock(unref(DisplayFieldsEditor), {
|
|
212
|
-
key: 5,
|
|
213
|
-
displayFields: formState.value.displayFields,
|
|
214
|
-
"onUpdate:displayFields": _cache[7] || (_cache[7] = ($event) => formState.value.displayFields = $event),
|
|
215
|
-
fieldMeta: __props.fieldMeta,
|
|
216
|
-
disabled: __props.disabled
|
|
217
|
-
}, null, 8, ["displayFields", "fieldMeta", "disabled"])) : createCommentVNode("", true),
|
|
218
|
-
unref(getIsSearchableField)(__props.fieldMeta) ? (openBlock(), createBlock(unref(QuickSearchEditor), {
|
|
219
|
-
key: 6,
|
|
220
|
-
fieldMeta: __props.fieldMeta,
|
|
221
|
-
disabled: __props.disabled,
|
|
222
|
-
searchable: formState.value.searchable,
|
|
223
|
-
"onUpdate:searchable": _cache[8] || (_cache[8] = ($event) => formState.value.searchable = $event),
|
|
224
|
-
"search-field": formState.value.searchField,
|
|
225
|
-
"onUpdate:searchField": onSearchFieldChange
|
|
226
|
-
}, null, 8, ["fieldMeta", "disabled", "searchable", "search-field"])) : createCommentVNode("", true),
|
|
227
|
-
isTraceDate.value ? (openBlock(), createBlock(DateFormatEditor, {
|
|
228
|
-
key: 7,
|
|
229
|
-
widget: props.widget,
|
|
230
|
-
"field-type": fixedFieldType.value,
|
|
231
|
-
disabled: __props.disabled
|
|
232
|
-
}, null, 8, ["widget", "field-type", "disabled"])) : createCommentVNode("", true),
|
|
233
|
-
isTraceDate.value && !__props.readonly ? (openBlock(), createBlock(FormItem, {
|
|
234
|
-
key: 8,
|
|
235
|
-
label: `${_ctx.$t("sys.defaultValue")}`,
|
|
236
|
-
inline: false
|
|
237
|
-
}, {
|
|
238
|
-
default: withCtx(() => [
|
|
239
|
-
createVNode(_component_a_checkbox, {
|
|
240
|
-
checked: formState.value.defaultSystemDate,
|
|
241
|
-
"onUpdate:checked": _cache[9] || (_cache[9] = ($event) => formState.value.defaultSystemDate = $event),
|
|
242
|
-
disabled: __props.disabled
|
|
243
|
-
}, {
|
|
244
|
-
default: withCtx(() => [
|
|
245
|
-
createTextVNode(toDisplayString(`${_ctx.$t("sys.component.fieldTypeProps.defaultSysDate")}`), 1)
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}, 8, ["checked", "disabled"])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}, 8, ["label"])) : createCommentVNode("", true),
|
|
252
|
-
isTraceDate.value ? (openBlock(), createBlock(DateRangeEditor, {
|
|
253
|
-
key: 9,
|
|
254
|
-
"field-meta": __props.fieldMeta,
|
|
255
|
-
widget: props.widget,
|
|
256
|
-
"field-type": fixedFieldType.value,
|
|
257
|
-
readonly: __props.readonly,
|
|
258
|
-
disabled: __props.disabled
|
|
259
|
-
}, null, 8, ["field-meta", "widget", "field-type", "readonly", "disabled"])) : createCommentVNode("", true),
|
|
260
|
-
isRefType.value ? (openBlock(), createBlock(RefAutofillEditor, {
|
|
261
|
-
key: 10,
|
|
262
|
-
fieldMeta: __props.fieldMeta,
|
|
263
|
-
disabled: __props.disabled,
|
|
264
|
-
"autofill-rules": autofillRules.value,
|
|
265
|
-
"onUpdate:autofillRules": _cache[10] || (_cache[10] = ($event) => autofillRules.value = $event),
|
|
266
|
-
"enable-autofill": enableAutofill.value,
|
|
267
|
-
"onUpdate:enableAutofill": _cache[11] || (_cache[11] = ($event) => enableAutofill.value = $event)
|
|
268
|
-
}, null, 8, ["fieldMeta", "disabled", "autofill-rules", "enable-autofill"])) : createCommentVNode("", true)
|
|
269
|
-
], 64);
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
export {
|
|
274
|
-
_sfc_main as default
|
|
275
|
-
};
|