@gct-paas/core-web 0.1.6-dev.33 → 0.1.6-dev.35
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/{JsBarcode-DN9Hmqvv.js → JsBarcode-x0b6xjCC.js} +2 -2
- package/dist/{chunk-BI2UzupT.js → chunk-nt_PRFwJ.js} +1 -1
- package/dist/{cropper-DhyUJc6S.js → cropper-CbVgtXaS.js} +2 -2
- package/dist/{de_DE-COtOAzgc.js → de_DE-C0MfJIyG.js} +2 -2
- package/dist/{defineProperty-D_UUAkKL.js → defineProperty-B2_KFvUm.js} +1 -1
- package/dist/{diagram-config-item-RJ-pDnld.js → diagram-config-item-DKJMFV1s.js} +2 -2
- package/dist/{diagram-config-item-reverse-CNMSgJrG.js → diagram-config-item-reverse-DLRGrBzP.js} +2 -2
- package/dist/{diagram-config-item-virtual-CtnksHdm.js → diagram-config-item-virtual-CxUdqzyX.js} +2 -2
- package/dist/{en_US-IUkUx99Y.js → en_US-BCOfO3oc.js} +2 -2
- package/dist/{es_ES-CAvTaG9-.js → es_ES-DqzRZyPc.js} +2 -2
- package/dist/{fr_FR-F3Em0SRe.js → fr_FR-CiqDQLfH.js} +2 -2
- package/dist/{hooks-CZJCebdF.js → hooks-BiNP7jWZ.js} +2 -2
- package/dist/{icon-next-picker-Cd6qVHJ6.js → icon-next-picker-C7-jUlk-.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-DvzUxXp-.js → ja_JP-DAZyTFAU.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-CC18dJiZ.js → monaco-editor-DjGJmfhk.js} +2 -2
- package/dist/{objectSpread2-B657Is4A.js → objectSpread2-CDxui_En.js} +1 -1
- package/dist/{overlayscrollbars-vue-K2eZD2x8.js → overlayscrollbars-vue-H1vOHLfv.js} +1 -1
- package/dist/{pt_PT-CIaHF4Gz.js → pt_PT-DUH_BMGP.js} +2 -2
- package/dist/{relationship-diagram-config-DoC-lW9d.js → relationship-diagram-config-DHA7I9cv.js} +2 -2
- package/dist/{rich-editor-tVTNUg3G.js → rich-editor-BN9iA_Ih.js} +2 -2
- package/dist/{ru_RU-C8uH2eUI.js → ru_RU-CtXpUwjM.js} +2 -2
- package/dist/{tr_TR-CNlRhKBl.js → tr_TR-DhOip0By.js} +2 -2
- package/dist/{useMonacoEditor-CKOo7V91.js → useMonacoEditor-B3ODotDs.js} +2 -2
- package/dist/{vi_VN-DOSaW1mq.js → vi_VN-qJ-IMTNk.js} +2 -2
- package/dist/{zh_CN-CsZkJQaY.js → zh_CN-CCPLX3rq.js} +2 -2
- package/dist/{zh_TW-Crg8XMz5.js → zh_TW-IYjpR1fh.js} +2 -2
- package/es/components/design-view-layout/design-view-layout.mjs +14 -4
- package/es/components/label-design/panels/widget/controls/ExpressionContent.vue_vue_type_script_lang.mjs +2 -1
- package/es/components/modal-name-editor/modal-name-editor.mjs +13 -1
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +23 -2
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue.d.ts +23 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue.mjs +7 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue_vue_type_script_setup_true_name_online-form-model-modal_lang.mjs +213 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue_vue_type_style_index_0_scoped_7aa34739_lang.css +100 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue.d.ts +16 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang.mjs +106 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +9 -9
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import online_form_model_modal_default from "./online-form-model-modal.vue.mjs";
|
|
2
|
+
import { computed, createBlock, defineComponent, normalizeClass, openBlock, ref, resolveComponent, toRaw, unref, watch, withModifiers } from "vue";
|
|
3
|
+
import { FormDesignEnum, t } from "@gct-paas/core";
|
|
4
|
+
//#region src/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue?vue&type=script&setup=true&name=online-form-model-select&lang.ts
|
|
5
|
+
var online_form_model_select_vue_vue_type_script_setup_true_name_online_form_model_select_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "online-form-model-select",
|
|
7
|
+
props: {
|
|
8
|
+
border: { type: Boolean },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
joinFormRefId: {},
|
|
11
|
+
joinModelKey: {}
|
|
12
|
+
},
|
|
13
|
+
emits: [
|
|
14
|
+
"change",
|
|
15
|
+
"update:joinFormRefId",
|
|
16
|
+
"update:joinModelKey"
|
|
17
|
+
],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const moduleType = FormDesignEnum.ONLINE_FORM;
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emit = __emit;
|
|
22
|
+
const _options = ref([]);
|
|
23
|
+
const localVal = computed({
|
|
24
|
+
get() {
|
|
25
|
+
return props.joinFormRefId;
|
|
26
|
+
},
|
|
27
|
+
set(v) {
|
|
28
|
+
emit("update:joinFormRefId", v);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
watch(() => localVal.value, async (v) => {
|
|
32
|
+
if (v) {
|
|
33
|
+
let data = _options.value.find((e) => e.refId === v);
|
|
34
|
+
if (!data) data = await getTmplInfo(v ? v.split(":")[1] || v.split(":")[0] : "");
|
|
35
|
+
}
|
|
36
|
+
}, { immediate: true });
|
|
37
|
+
const optionsData = computed(() => {
|
|
38
|
+
return _options.value.map((e) => {
|
|
39
|
+
return {
|
|
40
|
+
...e,
|
|
41
|
+
fieldLabel: `${e.name}${e.version ? " : " + e.version : ""}`
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
async function getTmplInfo(id) {
|
|
46
|
+
const res = await _api.apaas.formRelate.getInfo({
|
|
47
|
+
id,
|
|
48
|
+
moduleType
|
|
49
|
+
});
|
|
50
|
+
res && _options.value.push({
|
|
51
|
+
...res,
|
|
52
|
+
refId: res.baseId ? res.baseId + ":" + res.id : res.id
|
|
53
|
+
});
|
|
54
|
+
return res;
|
|
55
|
+
}
|
|
56
|
+
function getOptionValue(v = localVal.value) {
|
|
57
|
+
return toRaw(optionsData.value.find((i) => i.refId === v));
|
|
58
|
+
}
|
|
59
|
+
const openModal = async () => {
|
|
60
|
+
const res = await _gct.openUtil.modal(online_form_model_modal_default, {
|
|
61
|
+
formSelected: getOptionValue(),
|
|
62
|
+
modelSelected: props.joinModelKey,
|
|
63
|
+
moduleType
|
|
64
|
+
}, {
|
|
65
|
+
title: "表单模型选择",
|
|
66
|
+
width: 800,
|
|
67
|
+
okText: t("sys.okText"),
|
|
68
|
+
okButtonProps: { disabled: true }
|
|
69
|
+
});
|
|
70
|
+
if (res.ok && res.params) {
|
|
71
|
+
emit("update:joinModelKey", res.params.modelKey);
|
|
72
|
+
localVal.value = res.params.formId;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
const _component_a_select = resolveComponent("a-select");
|
|
77
|
+
return openBlock(), createBlock(_component_a_select, {
|
|
78
|
+
value: localVal.value,
|
|
79
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => localVal.value = $event),
|
|
80
|
+
class: normalizeClass([!__props.border && "custom-select-no-arrow"]),
|
|
81
|
+
placeholder: unref(t)("sys.chooseText"),
|
|
82
|
+
bordered: __props.border,
|
|
83
|
+
disabled: __props.disabled,
|
|
84
|
+
"show-search": false,
|
|
85
|
+
"show-arrow": false,
|
|
86
|
+
"allow-clear": false,
|
|
87
|
+
open: false,
|
|
88
|
+
"field-names": {
|
|
89
|
+
label: "fieldLabel",
|
|
90
|
+
value: "refId"
|
|
91
|
+
},
|
|
92
|
+
options: optionsData.value,
|
|
93
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => openModal(), ["stop"]))
|
|
94
|
+
}, null, 8, [
|
|
95
|
+
"value",
|
|
96
|
+
"class",
|
|
97
|
+
"placeholder",
|
|
98
|
+
"bordered",
|
|
99
|
+
"disabled",
|
|
100
|
+
"options"
|
|
101
|
+
]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
//#endregion
|
|
106
|
+
export { online_form_model_select_vue_vue_type_script_setup_true_name_online_form_model_select_lang_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-date/gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
"vxe-table": "npm:@gct-paas/vxe-table@4.6.19",
|
|
66
66
|
"wujie": "^1.0.29",
|
|
67
67
|
"wujie-vue3": "^1.0.29",
|
|
68
|
-
"@gct-paas/
|
|
69
|
-
"@gct-paas/
|
|
70
|
-
"@gct-paas/
|
|
71
|
-
"@gct-paas/
|
|
68
|
+
"@gct-paas/core": "0.1.6-dev.35",
|
|
69
|
+
"@gct-paas/v-ben": "0.1.6-dev.35",
|
|
70
|
+
"@gct-paas/scss": "0.1.6-dev.35",
|
|
71
|
+
"@gct-paas/core-components": "0.1.6-dev.35"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@gct-paas/api": "^0.1.6-dev.15",
|
|
75
75
|
"@types/sortablejs": "^1.15.1",
|
|
76
76
|
"vant": ">=4",
|
|
77
77
|
"vue": ">=3",
|
|
78
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
79
|
-
"@gct-paas/
|
|
80
|
-
"@gct-paas/core-components": "0.1.6-dev.
|
|
81
|
-
"@gct-paas/
|
|
78
|
+
"@gct-paas/core": "0.1.6-dev.35",
|
|
79
|
+
"@gct-paas/scss": "0.1.6-dev.35",
|
|
80
|
+
"@gct-paas/core-components": "0.1.6-dev.35",
|
|
81
|
+
"@gct-paas/v-ben": "0.1.6-dev.35"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/bwip-js": "^3.2.3",
|
|
File without changes
|