hldesigner 0.0.1
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/FileSaver.min-b57403e6.js +103 -0
- package/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-94198099.js +38 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-77003871.js +57 -0
- package/auto-complete-widget-8d76ea70.js +74 -0
- package/avatar-widget-3cd63f01.js +38 -0
- package/backtop-widget-6fc3db98.js +38 -0
- package/badge-widget-f36a769c.js +44 -0
- package/baseImp-8c4be88e.js +11050 -0
- package/breadcrumb-widget-422a9d28.js +79 -0
- package/button-widget-918dde3f.js +48 -0
- package/cache-widget-a1637f5f.js +53 -0
- package/card-widget-2db8e9d4.js +112 -0
- package/carousel-widget-838cc8c9.js +75 -0
- package/cascader-widget-42482528.js +97 -0
- package/chart-widget-ac07a466.js +44285 -0
- package/checkbox-widget-ee1fcb0c.js +79 -0
- package/clipboard-fc4d858d.js +497 -0
- package/code-cf4fbc89.js +82 -0
- package/collapse-widget-1a93bdb5.js +89 -0
- package/color-picker-widget-e893711a.js +56 -0
- package/common-editor-76ac2e32.js +24 -0
- package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
- package/configItem-6bfa74e0.js +113 -0
- package/cont-cell-widget-42f96421.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
- package/cont-widget-9dda9135.js +42 -0
- package/content-wrapper-20c559ac.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
- package/customClass-editor-9088a8cf.js +43 -0
- package/date-picker-range-widget-b9287f93.js +72 -0
- package/date-picker-widget-21595fd5.js +78 -0
- package/default-slot-widget-fc87ed0a.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
- package/descriptions-widget-33a02f1a.js +83 -0
- package/designer.es.js +42 -0
- package/designer.style.css +11 -0
- package/designer.umd.js +161882 -0
- package/dialog-5e196819.js +124 -0
- package/dialog-widget-22714c34.js +33 -0
- package/divider-widget-adf656f2.js +38 -0
- package/drag-wrapper-f9fb1533.js +259 -0
- package/drawer-widget-404cb6db.js +33 -0
- package/dropdown-widget-a4a1e2f7.js +92 -0
- package/editor-wrapper-e6b30023.js +779 -0
- package/emitter-2b9b9409.js +53 -0
- package/empty-widget-c53b07dd.js +64 -0
- package/enum-type-255ade69.js +543 -0
- package/enum-type-287a50b6.js +2054 -0
- package/expression-ea95606e.js +2181 -0
- package/feedback-widget-c041b474.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/field-editor-3e1ce4f3.js +69 -0
- package/file-upload-widget-941b9493.js +98 -0
- package/form-item-wrapper-8039c512.js +113 -0
- package/form-widget-98a02c28.js +184 -0
- package/grid-col-widget-3ea371ea.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
- package/grid-widget-f0635d43.js +43 -0
- package/html-text-widget-c440e86d.js +50 -0
- package/icon-2bb9fa65.js +129 -0
- package/iframe-widget-37ef665f.js +77 -0
- package/image-widget-871d5987.js +64 -0
- package/import-config-1eb9a66b.js +13156 -0
- package/index-0a2f2997.js +225 -0
- package/index-12505eec.js +42 -0
- package/index-18720c06.js +138 -0
- package/index-188b745d.js +132 -0
- package/index-28f32a55.js +216 -0
- package/index-2936e7cf.js +3265 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-3d5d5fac.js +23 -0
- package/index-50c3e002.js +227 -0
- package/index-6a276ef7.js +131 -0
- package/index-6d56f058.js +45 -0
- package/index-7b38fd82.js +330 -0
- package/index-7c2a8e33.js +17993 -0
- package/index-7fa591e3.js +4817 -0
- package/index-82f2c56a.js +135 -0
- package/index-8713c192.js +344 -0
- package/index-8d537d38.js +2393 -0
- package/index-9fd4a537.js +99 -0
- package/index-ad538d7e.js +832 -0
- package/index-c1b1f59f.js +88 -0
- package/index-d6fa09d6.js +39 -0
- package/index-db2305dc.js +117 -0
- package/index-ddd23411.js +4884 -0
- package/index-e795786b.js +119 -0
- package/index-f146282d.js +1356 -0
- package/index-f849ef29.js +216 -0
- package/index-ffbcbc43.js +65 -0
- package/input-number-widget-64f89b9d.js +66 -0
- package/input-widget-0fe7c3d7.js +71 -0
- package/install-designer-bed2e18a.js +4752 -0
- package/item-4be3cb5b.js +34 -0
- package/item-ddbdee11.js +24 -0
- package/itemDetail-b31192a5.js +43 -0
- package/label-wrapper-91b95fb0.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
- package/link-widget-0f2bb61c.js +56 -0
- package/ltable-col-widget-9f26b93d.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
- package/ltable-widget-b78a72ee.js +69 -0
- package/menu-widget-15fdd710.js +96 -0
- package/model-widget-3f2b1368.js +122 -0
- package/multirow-e1e1205c.js +292 -0
- package/multirow-widget copy-671ebd9c.js +858 -0
- package/multirow-widget-d256cac6.js +694 -0
- package/name-editor-05685151.js +104 -0
- package/optionItem-0ac4a3ae.js +4667 -0
- package/package.json +13 -0
- package/pagination-widget-31a7301d.js +81 -0
- package/picture-upload-widget-46ea42a0.js +102 -0
- package/postcss-2c4d92ea.js +2285 -0
- package/progress-widget-fc1f9557.js +52 -0
- package/property-base-e63e2f28.js +78 -0
- package/propresult-8fdf23e2.js +22 -0
- package/radio-widget-fbc63c11.js +79 -0
- package/range-widget-b0882319.js +74 -0
- package/rate-widget-9719ca7d.js +56 -0
- package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
- package/result-widget-925a5426.js +67 -0
- package/rich-editor-widget-426f0b19.js +77 -0
- package/router-widget-209f0eb1.js +54 -0
- package/schemaData-ab87bd49.js +333 -0
- package/select-widget-0b560a2f.js +288 -0
- package/setView-de8aaf40.js +84 -0
- package/sfc-10e3d29c.js +2570 -0
- package/share-editor-27d43940.js +448 -0
- package/share-event-dd8ff2ba.js +26 -0
- package/share-field-451430de.js +690 -0
- package/share-file-124a4d83.js +121 -0
- package/size-editor-ea05760c.js +92 -0
- package/slider-widget-fb4efa96.js +62 -0
- package/slot-04a83a27.js +17 -0
- package/static-text-widget-2efdd909.js +51 -0
- package/steps-widget-6f283f21.js +91 -0
- package/subMenu-widget-77e295cb.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
- package/switch-widget-f1120b6c.js +56 -0
- package/tab-pane-widget-99c21615.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
- package/table-col-widget-d6d5d21f.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
- package/table-widget-9b8d9798.js +163 -0
- package/tabs-widget-88393072.js +68 -0
- package/tag-widget-33c17c06.js +38 -0
- package/target-code-48e9d055.js +33 -0
- package/target-datasource-35dfcb1d.js +221 -0
- package/target-link-3ffd0149.js +126 -0
- package/target-saveForm-012b7de1.js +136 -0
- package/target-widget-3d7f6104.js +59 -0
- package/target-window-7556d301.js +54 -0
- package/template-c30585f4.js +251740 -0
- package/text-widget-8b5ece83.js +38 -0
- package/textarea-widget-e7c1d9ed.js +56 -0
- package/time-picker-range-widget-b8dfcc3b.js +58 -0
- package/time-picker-widget-73bde0a3.js +57 -0
- package/time-select-widget-08008b76.js +57 -0
- package/tmpl-widget-7d245d41.js +92 -0
- package/tooltip-wrapper-2922e49e.js +31 -0
- package/tree-select-widget-67231123.js +94 -0
- package/tree-widget-ab91165f.js +90 -0
- package/uuid-39f0308a.js +196 -0
- package/value-editor-27783d6c.js +89 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
- package/wrapper-widget-5702502d.js +78 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { ag as f, d as be } from "./enum-type-255ade69.js";
|
|
2
|
+
import { P as i, Q as xe } from "./baseImp-8c4be88e.js";
|
|
3
|
+
import { t as U, h as Fe, p as E, a as P, H as _, C as K, k as ye, j as ge, f as Ee } from "./enum-type-287a50b6.js";
|
|
4
|
+
import { computed as s, isRef as Pe } from "vue";
|
|
5
|
+
import { g as o, A as Ve, e as O, p as z } from "./template-c30585f4.js";
|
|
6
|
+
import { c as v, t as Se } from "./uuid-39f0308a.js";
|
|
7
|
+
function _e(n) {
|
|
8
|
+
return `<template>
|
|
9
|
+
<!--normal dataType:Object,String,Number-->
|
|
10
|
+
<!-- sample code --> <span class="example">{{ msg }}</span>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
export default {
|
|
14
|
+
props:{
|
|
15
|
+
${n == null ? void 0 : n.join(", ")}
|
|
16
|
+
},
|
|
17
|
+
data () {
|
|
18
|
+
return {
|
|
19
|
+
msg: 'sample code',
|
|
20
|
+
color: 'blue'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
<\/script>
|
|
25
|
+
<style scoped>
|
|
26
|
+
.example {
|
|
27
|
+
color: v-bind('color')
|
|
28
|
+
}
|
|
29
|
+
</style>`;
|
|
30
|
+
}
|
|
31
|
+
function Te() {
|
|
32
|
+
return `/* sample code */
|
|
33
|
+
/*
|
|
34
|
+
if ((value > 100) || (value < 0))
|
|
35
|
+
{
|
|
36
|
+
callback(new Error('error message')) //fail
|
|
37
|
+
}
|
|
38
|
+
else
|
|
39
|
+
{
|
|
40
|
+
callback(); //pass
|
|
41
|
+
}
|
|
42
|
+
*/`;
|
|
43
|
+
}
|
|
44
|
+
function we() {
|
|
45
|
+
return `//sample popper
|
|
46
|
+
{
|
|
47
|
+
"placement": "left", // 'auto'| 'auto-start'| 'auto-end'| 'top'| 'top-start' | 'top-end'| 'bottom'| 'bottom-start'| 'bottom-end'| 'right'| 'right-start'| 'right-end'| 'left'| 'left-start'| 'left-end'
|
|
48
|
+
"modifiers": Array<$Shape<Modifier<any>>>, // []
|
|
49
|
+
"strategy": "absolute", //'absolute' | 'fixed'
|
|
50
|
+
"onFirstUpdate": ($Shape<State>) => void // undefined
|
|
51
|
+
}`;
|
|
52
|
+
}
|
|
53
|
+
function De() {
|
|
54
|
+
return `return [{
|
|
55
|
+
text: 'Today',
|
|
56
|
+
value: new Date(),
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
text: 'Yesterday',
|
|
60
|
+
value: () => {
|
|
61
|
+
const date = new Date()
|
|
62
|
+
date.setTime(date.getTime() - 3600 * 1000 * 24)
|
|
63
|
+
return date
|
|
64
|
+
},
|
|
65
|
+
}]`;
|
|
66
|
+
}
|
|
67
|
+
function je() {
|
|
68
|
+
return `/** 通过 vars.data 可以更改查询参数
|
|
69
|
+
*通过 config.header 可以更改 header
|
|
70
|
+
*通过 config.url 可以更改 url
|
|
71
|
+
*可以console.log查看还有哪些参数可以修改。*/
|
|
72
|
+
const jsonData = ctx.util.json.fromJson(config.data);
|
|
73
|
+
const compParams= vars?.data?.compParams;
|
|
74
|
+
const secData = ctx.util.security.SM.SMWithTraceKey.encodeSM4(jsonData, compParams?.digestKey, compParams?.keyNum, compParams?.ivNum);
|
|
75
|
+
const smEncode = {
|
|
76
|
+
"secData": secData
|
|
77
|
+
};
|
|
78
|
+
config.data = smEncode;
|
|
79
|
+
return config;`;
|
|
80
|
+
}
|
|
81
|
+
function $e() {
|
|
82
|
+
return `const content = (response.content !== undefined) ? response.content : response;
|
|
83
|
+
const error = {
|
|
84
|
+
message: response.errorMsg ||
|
|
85
|
+
(response.errors && response.errors[0] && response.errors[0].msg) ||
|
|
86
|
+
response.content || '远程数据源请求出错,success is false',
|
|
87
|
+
};
|
|
88
|
+
let success = true;
|
|
89
|
+
if (response.success !== undefined) {
|
|
90
|
+
success = response.success;
|
|
91
|
+
} else if (response.hasError !== undefined) {
|
|
92
|
+
success = !response.hasError;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
content,
|
|
96
|
+
success,
|
|
97
|
+
error,
|
|
98
|
+
};`;
|
|
99
|
+
}
|
|
100
|
+
function Me() {
|
|
101
|
+
return `
|
|
102
|
+
const compParams=vars?.data?.compParams;
|
|
103
|
+
const newContent = ctx.util.security.SM.SMWithTraceKey.decodeSM4(content?.data?.secData, compParams?.keyNum, compParams?.ivNum);
|
|
104
|
+
return newContent?.result?.data; /*重要,需返回 content*/`;
|
|
105
|
+
}
|
|
106
|
+
function Ne() {
|
|
107
|
+
return `
|
|
108
|
+
return {
|
|
109
|
+
title: {
|
|
110
|
+
text: 'ECharts'
|
|
111
|
+
},
|
|
112
|
+
tooltip: {},
|
|
113
|
+
xAxis: {
|
|
114
|
+
data: ['x1', 'x2', 'x3', 'x4']
|
|
115
|
+
},
|
|
116
|
+
yAxis: {},
|
|
117
|
+
series: [
|
|
118
|
+
{
|
|
119
|
+
name: 'sale',
|
|
120
|
+
type: 'bar',
|
|
121
|
+
data: [5, 20, 36, 10]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}`;
|
|
125
|
+
}
|
|
126
|
+
function Ae() {
|
|
127
|
+
return `const {data} = node;
|
|
128
|
+
/*远程加载,传入当前节点参数*/
|
|
129
|
+
ctx.instance.exposed.getOneSchemaData("getAreaNumber", {parent_uuid: data.uuid}).then(res => {
|
|
130
|
+
/*重构树结构*/
|
|
131
|
+
var newData = res?.map(item => {
|
|
132
|
+
return {
|
|
133
|
+
label: item.text,
|
|
134
|
+
value: item.value,
|
|
135
|
+
leaf: item.has_child != "1",
|
|
136
|
+
uuid: item.uuid
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
resolve(newData);
|
|
140
|
+
});
|
|
141
|
+
`;
|
|
142
|
+
}
|
|
143
|
+
function Le() {
|
|
144
|
+
return `console.log(error);
|
|
145
|
+
// 可以在这里做弹框提示等操作`;
|
|
146
|
+
}
|
|
147
|
+
function ke() {
|
|
148
|
+
var n = {
|
|
149
|
+
type: "ProductService",
|
|
150
|
+
content: {
|
|
151
|
+
subMapperParam: {
|
|
152
|
+
patient_idcard: "${urlParams.req.patient_idcard}",
|
|
153
|
+
patient_id: "${urlParams.req.patient_id}"
|
|
154
|
+
},
|
|
155
|
+
action: "Query",
|
|
156
|
+
rootMapperParam: {
|
|
157
|
+
isExtend: !0,
|
|
158
|
+
prodCode: "${urlParams.prodCode}",
|
|
159
|
+
insCode: "${urlParams.insCode}"
|
|
160
|
+
},
|
|
161
|
+
subMapperName: "queryPatient"
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
return U(n);
|
|
165
|
+
}
|
|
166
|
+
function Re() {
|
|
167
|
+
return `/*构造查询参数*/
|
|
168
|
+
return {a:data.urlQuery.test}`;
|
|
169
|
+
}
|
|
170
|
+
function Je() {
|
|
171
|
+
return `/*获取远程数据后,可对界面组件进行赋值操作*/
|
|
172
|
+
exp.ctx.instance.exposed.findRefById(widgetId)?.exposed?.setValue(respValue);`;
|
|
173
|
+
}
|
|
174
|
+
function Qe() {
|
|
175
|
+
return `/*在远程请求前,设置请求json,返回的key需与请求数据源schemaParams的key一致*/
|
|
176
|
+
formData.test = "addParam";
|
|
177
|
+
return {
|
|
178
|
+
data: formData
|
|
179
|
+
};`;
|
|
180
|
+
}
|
|
181
|
+
function B(n) {
|
|
182
|
+
if (!n)
|
|
183
|
+
return "";
|
|
184
|
+
switch (n) {
|
|
185
|
+
case o.onValidate:
|
|
186
|
+
return Te();
|
|
187
|
+
case o.popperOptions:
|
|
188
|
+
return we();
|
|
189
|
+
case o.shortcuts:
|
|
190
|
+
return De();
|
|
191
|
+
case o.fitFetch:
|
|
192
|
+
return $e();
|
|
193
|
+
case o.didFetch:
|
|
194
|
+
return Me();
|
|
195
|
+
case o.willFetch:
|
|
196
|
+
return je();
|
|
197
|
+
case o.errorFetch:
|
|
198
|
+
return Le();
|
|
199
|
+
case o.chartOption:
|
|
200
|
+
return Ne();
|
|
201
|
+
case o.lazyLoad:
|
|
202
|
+
return Ae();
|
|
203
|
+
case o.data:
|
|
204
|
+
return ke();
|
|
205
|
+
case o.setQueryFn:
|
|
206
|
+
return Re();
|
|
207
|
+
case o.afterFetch:
|
|
208
|
+
return Je();
|
|
209
|
+
case o.beforeFetch:
|
|
210
|
+
return Qe();
|
|
211
|
+
default:
|
|
212
|
+
return "";
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function We(n, t, h) {
|
|
216
|
+
return `function ${n}(${t == null ? void 0 : t.join(", ")}){
|
|
217
|
+
${h}
|
|
218
|
+
}`;
|
|
219
|
+
}
|
|
220
|
+
const w = (n, t) => !n || !t ? "" : n != null && n.startsWith("@") ? P.i18nt("designer.setting." + (n == null ? void 0 : n.substring(1))) : n === "#" ? P.i18nt("designer.setting." + t) : n === "eq" ? t : n;
|
|
221
|
+
function et(n) {
|
|
222
|
+
var R, J, Q, W, q;
|
|
223
|
+
const t = s(() => n == null ? void 0 : n.propConfig), h = s(() => n == null ? void 0 : n.optionModel), D = s({
|
|
224
|
+
get: () => {
|
|
225
|
+
var e, a;
|
|
226
|
+
if ((e = u.value) != null && e.getPropValueFn)
|
|
227
|
+
return (a = u.value) == null ? void 0 : a.getPropValueFn(n);
|
|
228
|
+
},
|
|
229
|
+
set: (e) => {
|
|
230
|
+
var a, r, l, d;
|
|
231
|
+
if ((r = (a = n == null ? void 0 : n.propConfig) == null ? void 0 : a.options) != null && r.setPropValueFn) {
|
|
232
|
+
(d = (l = n == null ? void 0 : n.propConfig) == null ? void 0 : l.options) == null || d.setPropValueFn(n, e);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}), p = s({
|
|
237
|
+
get: () => {
|
|
238
|
+
var r;
|
|
239
|
+
if ((r = u.value) != null && r.getPropValueFn)
|
|
240
|
+
return D.value || null;
|
|
241
|
+
var e = i.get(h.value, c.value), a = i.getValue(e);
|
|
242
|
+
if (b.value && [f.inputNumber, f.number].includes(b.value)) {
|
|
243
|
+
const l = Se(a);
|
|
244
|
+
return l ?? null;
|
|
245
|
+
}
|
|
246
|
+
return a || null;
|
|
247
|
+
},
|
|
248
|
+
set: (e) => {
|
|
249
|
+
var a, r;
|
|
250
|
+
if ((r = (a = n == null ? void 0 : n.propConfig) == null ? void 0 : a.options) != null && r.setPropValueFn) {
|
|
251
|
+
D.value = e;
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
i.setValue(h.value, c.value, e);
|
|
255
|
+
}
|
|
256
|
+
}), m = s({
|
|
257
|
+
get: () => i.get(h.value, c.value),
|
|
258
|
+
set: (e) => {
|
|
259
|
+
i.set(h.value, c.value, e);
|
|
260
|
+
}
|
|
261
|
+
}), Y = s({
|
|
262
|
+
get: () => !!c && i.getEnable(m.value),
|
|
263
|
+
set: (e) => {
|
|
264
|
+
c.value && i.setEnable(h.value, c.value, e);
|
|
265
|
+
}
|
|
266
|
+
}), G = s(() => {
|
|
267
|
+
var e, a;
|
|
268
|
+
return Fe((e = u.value) == null ? void 0 : e.showOptionEnable) || ((a = u.value) == null ? void 0 : a.showOptionEnable) === !0;
|
|
269
|
+
}), X = s(() => {
|
|
270
|
+
var e;
|
|
271
|
+
return (e = u.value) == null ? void 0 : e.editTip;
|
|
272
|
+
}), Z = s({
|
|
273
|
+
get: () => v(p.value) || [],
|
|
274
|
+
set: (e) => {
|
|
275
|
+
p.value = e;
|
|
276
|
+
}
|
|
277
|
+
}), C = s({
|
|
278
|
+
get: () => {
|
|
279
|
+
var e = L();
|
|
280
|
+
return v(p.value) || ($.value ? "" : e == null ? void 0 : e.exampleCode);
|
|
281
|
+
},
|
|
282
|
+
set: (e) => {
|
|
283
|
+
p.value = e;
|
|
284
|
+
}
|
|
285
|
+
}), ee = s(() => {
|
|
286
|
+
var e;
|
|
287
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.path;
|
|
288
|
+
}), c = s(() => {
|
|
289
|
+
var e;
|
|
290
|
+
return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.name) || "";
|
|
291
|
+
}), V = E((R = t == null ? void 0 : t.value) == null ? void 0 : R.data) ? (Q = v((J = t == null ? void 0 : t.value) == null ? void 0 : J.data)) == null ? void 0 : Q(n) : Pe((W = t == null ? void 0 : t.value) == null ? void 0 : W.data) ? (q = t == null ? void 0 : t.value) == null ? void 0 : q.data : s(() => {
|
|
292
|
+
var e;
|
|
293
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.data;
|
|
294
|
+
}), te = s(() => {
|
|
295
|
+
var e;
|
|
296
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.title;
|
|
297
|
+
}), b = s(() => {
|
|
298
|
+
var e, a, r, l;
|
|
299
|
+
return E((e = t == null ? void 0 : t.value) == null ? void 0 : e.type) ? (r = v((a = t == null ? void 0 : t.value) == null ? void 0 : a.type)) == null ? void 0 : r(n) : (l = t == null ? void 0 : t.value) == null ? void 0 : l.type;
|
|
300
|
+
}), ae = s(() => w(te.value, c.value)), ne = s(() => {
|
|
301
|
+
var e, a, r, l, d;
|
|
302
|
+
return ((e = t.value) == null ? void 0 : e.visibleFn) === void 0 ? !0 : E((a = t == null ? void 0 : t.value) == null ? void 0 : a.visibleFn) ? (l = v((r = t == null ? void 0 : t.value) == null ? void 0 : r.visibleFn)) == null ? void 0 : l(n) : v((d = t == null ? void 0 : t.value) == null ? void 0 : d.visibleFn);
|
|
303
|
+
}), j = s(() => {
|
|
304
|
+
var e;
|
|
305
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.widgetType;
|
|
306
|
+
}), re = s(() => {
|
|
307
|
+
var e;
|
|
308
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.rules;
|
|
309
|
+
}), se = s(() => {
|
|
310
|
+
var e;
|
|
311
|
+
return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.formula) !== !1;
|
|
312
|
+
}), ue = s(() => {
|
|
313
|
+
var e;
|
|
314
|
+
return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.variable) !== !1;
|
|
315
|
+
}), le = s(() => !!i.getVariable(m.value)), ce = s(() => {
|
|
316
|
+
var r;
|
|
317
|
+
var e = (r = t == null ? void 0 : t.value) == null ? void 0 : r.attrs, a = E(e) ? e(n) : e;
|
|
318
|
+
return a;
|
|
319
|
+
}), u = s(() => {
|
|
320
|
+
var e;
|
|
321
|
+
return (e = t == null ? void 0 : t.value) == null ? void 0 : e.options;
|
|
322
|
+
}), oe = s(() => {
|
|
323
|
+
var r;
|
|
324
|
+
var e = P.i18nt(`designer.setting.${c.value}Hint`, !1), a = w(((r = u.value) == null ? void 0 : r.tipContent) || e, c.value);
|
|
325
|
+
return a = Ve(a), [
|
|
326
|
+
O(P.i18nt("designer.hint.propName"), c.value),
|
|
327
|
+
O(P.i18nt("designer.hint.description"), a)
|
|
328
|
+
];
|
|
329
|
+
}), ie = s(() => {
|
|
330
|
+
var e, a, r, l, d;
|
|
331
|
+
return ((e = u.value) == null ? void 0 : e.multipleFn) === void 0 ? null : E((a = u == null ? void 0 : u.value) == null ? void 0 : a.multipleFn) ? (l = v((r = u == null ? void 0 : u.value) == null ? void 0 : r.multipleFn)) == null ? void 0 : l(n) : v((d = u == null ? void 0 : u.value) == null ? void 0 : d.multipleFn);
|
|
332
|
+
}), de = s(() => {
|
|
333
|
+
var e;
|
|
334
|
+
return w((e = u.value) == null ? void 0 : e.dividerTitle, c.value);
|
|
335
|
+
}), $ = s(() => {
|
|
336
|
+
var e;
|
|
337
|
+
return (e = u.value) == null ? void 0 : e.codeEdit;
|
|
338
|
+
}), ve = s(() => {
|
|
339
|
+
var e;
|
|
340
|
+
return (e = u.value) == null ? void 0 : e.addFormItem;
|
|
341
|
+
}), me = s(() => {
|
|
342
|
+
var e;
|
|
343
|
+
return (e = u.value) == null ? void 0 : e.newRowLabel;
|
|
344
|
+
}), fe = s(() => {
|
|
345
|
+
var e;
|
|
346
|
+
return (e = u.value) == null ? void 0 : e.noRowLabel;
|
|
347
|
+
}), M = () => {
|
|
348
|
+
var l;
|
|
349
|
+
const e = V == null ? void 0 : V.value, a = (l = u.value) == null ? void 0 : l.passExternalArgs;
|
|
350
|
+
var r = ye(e);
|
|
351
|
+
return a !== !1 && F && (r || (r = []), r.push(o.externalArgs + ":Object")), r;
|
|
352
|
+
}, N = !!b.value && [f.javascript, f.targetEvent].includes(b.value), A = !!b.value && [f.json].includes(b.value);
|
|
353
|
+
//!!dataType.value && [BaseDataType.array, BaseDataType.object].includes(dataType.value);
|
|
354
|
+
const F = N && c.value !== z.functions, L = (e) => {
|
|
355
|
+
var I;
|
|
356
|
+
var a = M();
|
|
357
|
+
const r = c.value, l = h.value;
|
|
358
|
+
if (!r)
|
|
359
|
+
return;
|
|
360
|
+
const d = (I = u.value) == null ? void 0 : I.sfc;
|
|
361
|
+
let S = "";
|
|
362
|
+
var y = "", g = "";
|
|
363
|
+
const T = {
|
|
364
|
+
[f.css]: _.css,
|
|
365
|
+
[f.javascript]: _.javascript,
|
|
366
|
+
[f.json]: _.json,
|
|
367
|
+
[f.html]: _.html
|
|
368
|
+
};
|
|
369
|
+
let he = j.value === be.page ? z.page : `${(l == null ? void 0 : l.name) || ""}`;
|
|
370
|
+
a && (a == null ? void 0 : a.length) > 0 && (S = `( ${a.join(", ")} )`, F && (S = S + "{"));
|
|
371
|
+
var H = l == null ? void 0 : l[r], x = e ? e(H) : i.getValue(H, !0);
|
|
372
|
+
if (d)
|
|
373
|
+
y = _e(v(a));
|
|
374
|
+
else if (N) {
|
|
375
|
+
var pe = B(r);
|
|
376
|
+
y = pe;
|
|
377
|
+
} else
|
|
378
|
+
y = B(r);
|
|
379
|
+
return x ? (F && (x = k(v(x))), A && K(x) ? g = U(x, void 0, " ") : x ? g = String(x) : g = "") : F && (g = y), {
|
|
380
|
+
alertTitle: `${[he || "component", r].join(".")}${S}`,
|
|
381
|
+
mode: T == null ? void 0 : T[b.value],
|
|
382
|
+
exampleCode: y,
|
|
383
|
+
curValue: g
|
|
384
|
+
};
|
|
385
|
+
}, k = (e) => {
|
|
386
|
+
var a = xe(e);
|
|
387
|
+
return a == null ? void 0 : a.body;
|
|
388
|
+
};
|
|
389
|
+
return {
|
|
390
|
+
propOptions: u,
|
|
391
|
+
propData: V,
|
|
392
|
+
propModel: m,
|
|
393
|
+
propLabel: ae,
|
|
394
|
+
propValue: p,
|
|
395
|
+
propDataType: b,
|
|
396
|
+
propName: c,
|
|
397
|
+
// propKey,
|
|
398
|
+
propVisible: ne,
|
|
399
|
+
propTipContent: oe,
|
|
400
|
+
propPath: ee,
|
|
401
|
+
propFormula: se,
|
|
402
|
+
propVariable: ue,
|
|
403
|
+
variableState: le,
|
|
404
|
+
widgetType: j,
|
|
405
|
+
multiple: ie,
|
|
406
|
+
optionEnable: Y,
|
|
407
|
+
optionEnableShow: G,
|
|
408
|
+
editTip: X,
|
|
409
|
+
localDividerTitle: de,
|
|
410
|
+
addFormItem: ve,
|
|
411
|
+
newRowLabel: me,
|
|
412
|
+
noRowLabel: fe,
|
|
413
|
+
rules: re,
|
|
414
|
+
attrs: ce,
|
|
415
|
+
arrayPropValue: Z,
|
|
416
|
+
codePropValue: C,
|
|
417
|
+
codeEdit: $,
|
|
418
|
+
getCode: k,
|
|
419
|
+
saveCode: (e) => {
|
|
420
|
+
const a = M();
|
|
421
|
+
return F && !ge(e) ? We(c.value || "func", a, e) : A && K(e) ? Ee(e) : e;
|
|
422
|
+
},
|
|
423
|
+
initCode: L,
|
|
424
|
+
changeFn: (e) => {
|
|
425
|
+
var a, r;
|
|
426
|
+
(r = (a = t == null ? void 0 : t.value) == null ? void 0 : a.changeFn) == null || r.call(a, n, e);
|
|
427
|
+
},
|
|
428
|
+
propChanged: (e) => {
|
|
429
|
+
p.value = e;
|
|
430
|
+
},
|
|
431
|
+
propFormulaChanged: (e) => {
|
|
432
|
+
p.value = i.setFormula(m.value, e);
|
|
433
|
+
},
|
|
434
|
+
propSchemaDataChanged: (e) => {
|
|
435
|
+
p.value = i.setSchemaData(m.value, e);
|
|
436
|
+
},
|
|
437
|
+
propVariableChanged: (e) => {
|
|
438
|
+
m.value = i.setVariable(m.value, e);
|
|
439
|
+
},
|
|
440
|
+
propClearVariable: () => {
|
|
441
|
+
m.value = i.clearVariable(m.value);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
export {
|
|
446
|
+
B as g,
|
|
447
|
+
et as u
|
|
448
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { w as t, f as a } from "./template-c30585f4.js";
|
|
2
|
+
import { u as d } from "./emitter-2b9b9409.js";
|
|
3
|
+
import { u as i } from "./icon-2bb9fa65.js";
|
|
4
|
+
function f(o) {
|
|
5
|
+
const { instance: n } = i(o.instance), { dispatch: r } = d();
|
|
6
|
+
return {
|
|
7
|
+
editHandler: (e) => {
|
|
8
|
+
r(t.SettingPanel, a.editHandler, e, n);
|
|
9
|
+
},
|
|
10
|
+
toolTipHandler: (e) => {
|
|
11
|
+
r(t.SettingPanel, a.tooltipHandler, e, n);
|
|
12
|
+
},
|
|
13
|
+
popOverHandler: (e) => {
|
|
14
|
+
r(t.SettingPanel, a.popOverHandler, e, n);
|
|
15
|
+
},
|
|
16
|
+
drawerHandler: (e) => {
|
|
17
|
+
r(t.SettingPanel, a.drawerHandler, e, n);
|
|
18
|
+
},
|
|
19
|
+
designFormHandler: (e) => {
|
|
20
|
+
r(t.SettingPanel, a.designFormHandler, e, n);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as u
|
|
26
|
+
};
|