super-page-runtime 2.0.43-beta1 → 2.0.43-beta3
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/es/components/runtime/utils/common-util.js +5 -5
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +8 -4
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +12 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +16 -22
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +6 -6
- package/package.json +1 -1
|
@@ -37,11 +37,11 @@ function packageTemplateFiles(templateFiles) {
|
|
|
37
37
|
}
|
|
38
38
|
const currentLocale = getLanguageWithLocale();
|
|
39
39
|
if (Array.isArray(templateFiles)) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const templateFilesResult = [];
|
|
41
|
+
const fileCodes = [];
|
|
42
42
|
const fileSeperate = "~-~-";
|
|
43
43
|
templateFiles.forEach((template) => {
|
|
44
|
-
|
|
44
|
+
const showName = template.templateName;
|
|
45
45
|
if (showName.indexOf(fileSeperate) > 0) {
|
|
46
46
|
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
47
47
|
const fileLanguage = showName.substring(
|
|
@@ -53,8 +53,8 @@ function packageTemplateFiles(templateFiles) {
|
|
|
53
53
|
);
|
|
54
54
|
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
55
55
|
templateFilesResult.push({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
templateUuid: template.templateUuid,
|
|
57
|
+
templateName: fileName
|
|
58
58
|
});
|
|
59
59
|
fileCodes.push(fileCode);
|
|
60
60
|
}
|
|
@@ -18,6 +18,7 @@ export declare function getCustomFunc(pageContext: PageContext, funcName: any):
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
|
|
20
20
|
export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
21
|
+
export declare function handleFormEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
21
22
|
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
22
23
|
export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
|
|
23
24
|
export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
|
|
@@ -80,17 +80,20 @@ function removeCustomFuncFromWindow(pageDesign) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
function handleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
83
|
-
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams);
|
|
83
|
+
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams, false);
|
|
84
|
+
}
|
|
85
|
+
function handleFormEvent($event, pageContext, configure, eventType, otherParams) {
|
|
86
|
+
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams, true);
|
|
84
87
|
}
|
|
85
88
|
function getHandleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
86
|
-
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams);
|
|
89
|
+
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams, false);
|
|
87
90
|
}
|
|
88
|
-
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams) {
|
|
91
|
+
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams, skipValidate) {
|
|
89
92
|
const pageCode = pageContext.code;
|
|
90
93
|
const pageVersion = pageContext.version;
|
|
91
94
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
92
95
|
let eventFun;
|
|
93
|
-
if (eventType && eventType === "click") {
|
|
96
|
+
if (!skipValidate && eventType && eventType === "click") {
|
|
94
97
|
const tableUuid = getTableUuid(pageContext, configure);
|
|
95
98
|
if (tableUuid) {
|
|
96
99
|
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
@@ -607,6 +610,7 @@ export {
|
|
|
607
610
|
gridSelectRecord,
|
|
608
611
|
gridSelectionChange,
|
|
609
612
|
handleEvent,
|
|
613
|
+
handleFormEvent,
|
|
610
614
|
headerClick,
|
|
611
615
|
initPageEvents,
|
|
612
616
|
removeCustomFuncFromWindow,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
1
3
|
export declare const standardEvents: {
|
|
2
4
|
save: (params: any) => Promise<unknown>;
|
|
3
5
|
saveList: (params: any) => Promise<unknown>;
|
|
@@ -40,7 +42,7 @@ export declare const standardEvents: {
|
|
|
40
42
|
queryCharts: (params: any) => void;
|
|
41
43
|
};
|
|
42
44
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
43
|
-
export declare function getSaveFormRequestWithRow(pageContext:
|
|
45
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
|
|
44
46
|
export declare function getSaveFormRequest(pageContext: any, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
45
47
|
/**
|
|
46
48
|
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
@@ -240,8 +240,8 @@ const standardEvents = {
|
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
|
|
243
|
-
const templateUUID = templateFile.
|
|
244
|
-
const fileName = templateFile.
|
|
243
|
+
const templateUUID = templateFile.templateUuid;
|
|
244
|
+
const fileName = templateFile.templateName;
|
|
245
245
|
const systemCode = pageContext.systemCode;
|
|
246
246
|
const logSetting = configureObj.props.logSetting;
|
|
247
247
|
const isWorkflowForm = pageContext.workflowCode ? true : false;
|
|
@@ -290,9 +290,9 @@ function exportFormReportSuccess(fileName, backendUrl, param) {
|
|
|
290
290
|
const path = baseUrl + "/dsc/commons/export-reports";
|
|
291
291
|
axios.defaults.headers.common.Authorization = getToken();
|
|
292
292
|
const request = axios.post(path, param, {
|
|
293
|
-
headers: {
|
|
294
|
-
|
|
295
|
-
},
|
|
293
|
+
// headers: {
|
|
294
|
+
// 'content-type': 'application/x-www-form-urlencoded'
|
|
295
|
+
// },
|
|
296
296
|
responseType: "blob"
|
|
297
297
|
});
|
|
298
298
|
request.then((response) => {
|
|
@@ -415,7 +415,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
|
|
|
415
415
|
}
|
|
416
416
|
return param;
|
|
417
417
|
}
|
|
418
|
-
function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row) {
|
|
418
|
+
function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row, otherParams) {
|
|
419
419
|
const systemCode = pageContext.systemCode;
|
|
420
420
|
const backendUrl = pageContext.backendUrl;
|
|
421
421
|
const param = getCommonFormRequestParam(
|
|
@@ -427,6 +427,11 @@ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVe
|
|
|
427
427
|
null,
|
|
428
428
|
row
|
|
429
429
|
);
|
|
430
|
+
if (otherParams) {
|
|
431
|
+
if (otherParams.tableName) {
|
|
432
|
+
param.tableName = otherParams.tableName;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
430
435
|
return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
|
|
431
436
|
}
|
|
432
437
|
function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
|
|
@@ -437,6 +442,7 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
|
|
|
437
442
|
isUnControlVersion,
|
|
438
443
|
mainDefaultValueColumns,
|
|
439
444
|
dynamicColumnInfo,
|
|
445
|
+
null,
|
|
440
446
|
null
|
|
441
447
|
);
|
|
442
448
|
}
|
|
@@ -290,11 +290,11 @@ function packageCustomRules(orgCustomRules, orgRules) {
|
|
|
290
290
|
}
|
|
291
291
|
function validateSubTables(pageContext) {
|
|
292
292
|
if (!pageContext) {
|
|
293
|
-
return;
|
|
293
|
+
return true;
|
|
294
294
|
}
|
|
295
295
|
const tableUuidArr = pageContext.tableUuids;
|
|
296
296
|
if (!tableUuidArr) {
|
|
297
|
-
return;
|
|
297
|
+
return true;
|
|
298
298
|
}
|
|
299
299
|
for (let i = 0; i < tableUuidArr.length; i++) {
|
|
300
300
|
const tableUuid = tableUuidArr[i];
|
|
@@ -24,23 +24,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
onMounted(() => {
|
|
25
25
|
if (configureBase.templateFiles && configureBase.templateFiles.length > 0) {
|
|
26
26
|
templateFiles.value = packageTemplateFiles(configureBase.templateFiles);
|
|
27
|
-
} else if (configureBase.
|
|
27
|
+
} else if (configureBase.templateUuid && configureBase.templateName) {
|
|
28
28
|
templateFiles.value.push({
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
templateUuid: configureBase.templateUuid,
|
|
30
|
+
templateName: configureBase.templateName
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
templateFiles.value.forEach((item) => {
|
|
34
|
-
if (item && item.
|
|
35
|
-
item.
|
|
34
|
+
if (item && item.templateName) {
|
|
35
|
+
item.templateName = formatTemplateShowName(item.templateName);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
function getFileds(
|
|
40
|
-
console.log("
|
|
39
|
+
function getFileds(templateShowName) {
|
|
40
|
+
console.log("templateShowName", templateShowName);
|
|
41
41
|
let field;
|
|
42
42
|
let formatStr;
|
|
43
|
-
let newValue =
|
|
43
|
+
let newValue = templateShowName;
|
|
44
44
|
const prefixIndex = newValue.indexOf(prefix);
|
|
45
45
|
const suffixIndex = newValue.indexOf(suffix);
|
|
46
46
|
console.log("prefixIndex", prefixIndex);
|
|
@@ -50,14 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
newValue = newValue.substring(0, suffixIndex) + newValue.substring(suffixIndex + suffix.length);
|
|
51
51
|
console.log("non replacement value === newValue", newValue);
|
|
52
52
|
} else {
|
|
53
|
-
field = newValue.substring(
|
|
54
|
-
|
|
55
|
-
suffixIndex
|
|
56
|
-
);
|
|
57
|
-
formatStr = newValue.substring(
|
|
58
|
-
prefixIndex,
|
|
59
|
-
suffixIndex + suffix.length
|
|
60
|
-
);
|
|
53
|
+
field = newValue.substring(prefixIndex + prefix.length, suffixIndex);
|
|
54
|
+
formatStr = newValue.substring(prefixIndex, suffixIndex + suffix.length);
|
|
61
55
|
console.log("field", field);
|
|
62
56
|
console.log("formatStr", formatStr);
|
|
63
57
|
fields.value.push(field);
|
|
@@ -69,18 +63,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
63
|
}
|
|
70
64
|
return fields.value;
|
|
71
65
|
}
|
|
72
|
-
function
|
|
73
|
-
const fields2 = getFileds(
|
|
66
|
+
function formatTemplateShowName(templateShowName) {
|
|
67
|
+
const fields2 = getFileds(templateShowName);
|
|
74
68
|
console.log("fields", fields2);
|
|
75
69
|
fields2.forEach((field) => {
|
|
76
70
|
const formatStr = prefix + field + suffix;
|
|
77
71
|
let formatValue;
|
|
78
|
-
if (
|
|
72
|
+
if (templateShowName.indexOf(formatStr) !== -1 && dataModel.hasOwnProperty(field)) {
|
|
79
73
|
formatValue = dataModel[field] ? dataModel[field] : "";
|
|
80
|
-
|
|
74
|
+
templateShowName = templateShowName.replace(formatStr, formatValue);
|
|
81
75
|
}
|
|
82
76
|
});
|
|
83
|
-
return
|
|
77
|
+
return templateShowName;
|
|
84
78
|
}
|
|
85
79
|
function exportForm(row) {
|
|
86
80
|
emits("export", row);
|
|
@@ -111,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
105
|
prop: "templateShowPath"
|
|
112
106
|
}, {
|
|
113
107
|
default: withCtx((scope) => [
|
|
114
|
-
createTextVNode(toDisplayString(scope.row.
|
|
108
|
+
createTextVNode(toDisplayString(scope.row.templateName), 1)
|
|
115
109
|
]),
|
|
116
110
|
_: 1
|
|
117
111
|
}, 8, ["label"]),
|
|
@@ -315,6 +315,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
315
315
|
const tableConfigure = configure;
|
|
316
316
|
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
317
317
|
return new Promise((resolve, reject) => {
|
|
318
|
+
const otherParams = { tableName: tableConfigure.props.dataOrigin.tableName };
|
|
318
319
|
getSaveFormRequestWithRow(
|
|
319
320
|
pageContext,
|
|
320
321
|
buttonConfigure,
|
|
@@ -322,7 +323,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
322
323
|
false,
|
|
323
324
|
mainDefaultValueColumns,
|
|
324
325
|
dynamicColumnInfo,
|
|
325
|
-
row
|
|
326
|
+
row,
|
|
327
|
+
otherParams
|
|
326
328
|
).then((commonEntity) => {
|
|
327
329
|
if (commonEntity) {
|
|
328
330
|
resolve(commonEntity.entity);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, monitorFieldChange, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "checkbox-runtime",
|
|
7
7
|
props: {
|
|
@@ -104,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
key: item.value,
|
|
105
105
|
value: item.value,
|
|
106
106
|
label: item.label,
|
|
107
|
-
onClick: ($event) => unref(
|
|
107
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
108
108
|
}, null, 8, ["value", "label", "onClick"]);
|
|
109
109
|
}), 128))
|
|
110
110
|
]),
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts } from "../../../../utils/form/date-shortcuts.js";
|
|
4
4
|
import { getValueFromVariable, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { getCustomFunc,
|
|
5
|
+
import { getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "datepicker-runtime",
|
|
@@ -131,12 +131,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
131
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
132
132
|
shortcuts: shortcuts.value,
|
|
133
133
|
type: designProperty.value.dateType,
|
|
134
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
135
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(
|
|
136
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(
|
|
137
|
-
onCalendarChange: _cache[4] || (_cache[4] = ($event) => unref(
|
|
138
|
-
onVisibleChange: _cache[5] || (_cache[5] = ($event) =>
|
|
139
|
-
onPanelChange: _cache[6] || (_cache[6] = ($event) => unref(
|
|
134
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
135
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
136
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
137
|
+
onCalendarChange: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "calendar-change")),
|
|
138
|
+
onVisibleChange: _cache[5] || (_cache[5] = ($event) => _ctx.handleEhandleFormEventvent($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
139
|
+
onPanelChange: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
140
140
|
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
141
141
|
key: 1,
|
|
142
142
|
clearable: designProperty.value.clearable,
|
|
@@ -151,12 +151,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
151
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => dynamicModelMethod.value = $event),
|
|
152
152
|
shortcuts: shortcuts.value,
|
|
153
153
|
type: designProperty.value.dateType,
|
|
154
|
-
onChange: _cache[8] || (_cache[8] = ($event) => unref(
|
|
155
|
-
onBlur: _cache[9] || (_cache[9] = ($event) => unref(
|
|
156
|
-
onFocus: _cache[10] || (_cache[10] = ($event) => unref(
|
|
157
|
-
onCalendarChange: _cache[11] || (_cache[11] = ($event) => unref(
|
|
158
|
-
onVisibleChange: _cache[12] || (_cache[12] = ($event) => unref(
|
|
159
|
-
onPanelChange: _cache[13] || (_cache[13] = ($event) => unref(
|
|
154
|
+
onChange: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
155
|
+
onBlur: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
156
|
+
onFocus: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
157
|
+
onCalendarChange: _cache[11] || (_cache[11] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "calendar-change")),
|
|
158
|
+
onVisibleChange: _cache[12] || (_cache[12] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
159
|
+
onPanelChange: _cache[13] || (_cache[13] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
160
160
|
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
@@ -4,7 +4,7 @@ import "agilebuilder-ui/src/utils/request";
|
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
6
6
|
import "../../../../utils/global-refs.js";
|
|
7
|
-
import {
|
|
7
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
8
8
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "depttree-runtime",
|
|
@@ -28,10 +28,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
29
29
|
const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
|
|
30
30
|
function changeValue(value) {
|
|
31
|
-
|
|
31
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
32
32
|
}
|
|
33
33
|
function showTree() {
|
|
34
|
-
|
|
34
|
+
handleFormEvent(null, props.pageContext, props.configure, "click");
|
|
35
35
|
}
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
37
|
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import {
|
|
3
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "divider-runtime",
|
|
6
6
|
props: {
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
direction: designProperty.value.direction,
|
|
27
27
|
"border-style": designProperty.value.borderType,
|
|
28
28
|
"content-position": designProperty.value.titlePosition,
|
|
29
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(() => [
|
|
32
32
|
createElementVNode("div", {
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "input-number-runtime",
|
|
@@ -62,9 +62,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
step: designProperty.value.step,
|
|
63
63
|
min: designProperty.value.min,
|
|
64
64
|
max: designProperty.value.max,
|
|
65
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
66
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(
|
|
67
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(
|
|
65
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
66
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
67
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
68
68
|
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
69
69
|
]),
|
|
70
70
|
_: 1
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, watch, resolveComponent, openBlock, cre
|
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import {
|
|
5
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -94,11 +94,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
"show-word-limit": designProperty.value.showInputNum,
|
|
95
95
|
modelValue: dynamicModelMethod.value,
|
|
96
96
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
97
|
-
onInput: _cache[1] || (_cache[1] = ($event) => unref(
|
|
98
|
-
onChange: _cache[2] || (_cache[2] = ($event) => unref(
|
|
99
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => unref(
|
|
100
|
-
onFocus: _cache[4] || (_cache[4] = ($event) => unref(
|
|
101
|
-
onClick: _cache[5] || (_cache[5] = ($event) => unref(
|
|
97
|
+
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
98
|
+
onChange: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
99
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
100
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
101
|
+
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
102
102
|
}, createSlots({ _: 2 }, [
|
|
103
103
|
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
104
104
|
name: "prefix",
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { queryOptions, formatVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
import {
|
|
5
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
const _hoisted_1 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
7
7
|
const _hoisted_2 = ["title"];
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
default: withCtx(() => [
|
|
77
77
|
createElementVNode("div", {
|
|
78
78
|
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
79
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
79
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
80
80
|
}, [
|
|
81
81
|
createElementVNode("span", _hoisted_1, [
|
|
82
82
|
designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
|
|
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
|
|
112
112
|
key: 1,
|
|
113
113
|
style: { "display": "flex", "justify-content": "space-between" },
|
|
114
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(
|
|
114
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
115
115
|
}, [
|
|
116
116
|
createElementVNode("span", {
|
|
117
117
|
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "link-runtime",
|
|
7
7
|
props: {
|
|
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
disabled: designProperty.value.state === "disabled",
|
|
59
59
|
type: designProperty.value.type,
|
|
60
60
|
underline: designProperty.value.underline,
|
|
61
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
62
62
|
}, {
|
|
63
63
|
default: withCtx(() => [
|
|
64
64
|
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "radio-runtime",
|
|
7
7
|
props: {
|
|
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
}
|
|
107
107
|
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
110
110
|
}
|
|
111
111
|
function updateOptions(newOptions) {
|
|
112
112
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
key: item.value,
|
|
145
145
|
value: item.value,
|
|
146
146
|
label: item.label,
|
|
147
|
-
onClick: ($event) => unref(
|
|
147
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
148
148
|
}, null, 8, ["value", "label", "onClick"]);
|
|
149
149
|
}), 128))
|
|
150
150
|
]),
|
|
@@ -3,7 +3,7 @@ import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
|
3
3
|
import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import Quill from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
|
-
import {
|
|
6
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
9
9
|
const _hoisted_2 = {
|
|
@@ -161,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
161
|
function handleFocusOut(event) {
|
|
162
162
|
var _a;
|
|
163
163
|
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
164
|
-
|
|
164
|
+
handleFormEvent(quill.value.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
165
165
|
entity
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
6
|
const _hoisted_1 = { style: { "float": "left" } };
|
|
7
7
|
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
131
|
}
|
|
132
132
|
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
135
135
|
}
|
|
136
136
|
function updateOptions(newOptions) {
|
|
137
137
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
189
|
key: item.value,
|
|
190
190
|
label: item.label,
|
|
191
191
|
value: item.value,
|
|
192
|
-
onClick: ($event) => unref(
|
|
192
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
193
193
|
}, {
|
|
194
194
|
default: withCtx(() => [
|
|
195
195
|
item._description_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "switch-runtime",
|
|
7
7
|
props: {
|
|
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
style: normalizeStyle(unref(switchStyle)),
|
|
54
54
|
modelValue: dynamicModelMethod.value,
|
|
55
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
56
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
56
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
|
|
57
57
|
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
58
58
|
]),
|
|
59
59
|
_: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "tag-runtime",
|
|
7
7
|
props: {
|
|
@@ -48,8 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
size: designProperty.value.size,
|
|
49
49
|
closable: designProperty.value.closable,
|
|
50
50
|
type: designProperty.value.type,
|
|
51
|
-
onClose: _cache[0] || (_cache[0] = ($event) => unref(
|
|
52
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(
|
|
51
|
+
onClose: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "remove")),
|
|
52
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
53
53
|
}, {
|
|
54
54
|
default: withCtx(() => [
|
|
55
55
|
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "textarea-runtime",
|
|
@@ -63,11 +63,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
maxlength: designProperty.value.maxLength,
|
|
64
64
|
"show-word-limit": designProperty.value.showInputNum,
|
|
65
65
|
type: "textarea",
|
|
66
|
-
onInput: _cache[1] || (_cache[1] = ($event) => unref(
|
|
67
|
-
onChange: _cache[2] || (_cache[2] = ($event) => unref(
|
|
68
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => unref(
|
|
69
|
-
onFocus: _cache[4] || (_cache[4] = ($event) => unref(
|
|
70
|
-
onClick: _cache[5] || (_cache[5] = ($event) => unref(
|
|
66
|
+
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
67
|
+
onChange: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
68
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
69
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
70
|
+
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
71
71
|
}, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|