super-page-runtime 2.3.19-sit1 → 2.3.19-sit3

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.
Files changed (38) hide show
  1. package/dist/es/assets/chart-themes/bar-theme.d.ts +6 -0
  2. package/dist/es/assets/chart-themes/bar-theme.js +4 -0
  3. package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
  4. package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
  5. package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
  6. package/dist/es/assets/chart-themes/pie-theme.js +4 -0
  7. package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
  8. package/dist/es/assets/chart-themes/radar-theme.js +4 -0
  9. package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
  10. package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +118 -117
  13. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  14. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  15. package/dist/es/components/runtime/utils/events/standard-event.js +397 -369
  16. package/dist/es/components/runtime/utils/page-helper-util.js +4 -3
  17. package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
  18. package/dist/es/components/runtime/utils/page-init-util.js +86 -65
  19. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -9
  22. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +47 -46
  23. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +45 -28
  24. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  25. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +13 -13
  26. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  27. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  28. package/dist/es/components/runtime/views/super-page.vue2.js +128 -120
  29. package/dist/es/i18n/langs/cn.js +1 -1
  30. package/dist/es/i18n/langs/en.js +1 -1
  31. package/dist/es/style.css +88 -88
  32. package/package.json +2 -2
  33. package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
  34. package/dist/es/assets/chart-themes/theme1.js +0 -4
  35. package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
  36. package/dist/es/assets/chart-themes/theme2.js +0 -4
  37. package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
  38. package/dist/es/assets/chart-themes/theme3.js +0 -4
@@ -154,7 +154,8 @@ function autoSetAfterSelect(t, e, n, o, a = []) {
154
154
  let n2 = t2.target;
155
155
  if (!n2 || !n2.startsWith("${")) continue;
156
156
  n2 = n2.substring(2, n2.length - 1);
157
- setVariableValue(r, n2.split("."), e2.join(","));
157
+ const s = n2.split(".");
158
+ setVariableValue(r, s, null == e2 ? null : e2.join(","));
158
159
  }
159
160
  }
160
161
  function getValuesByField(t, e) {
@@ -166,7 +167,7 @@ function getValuesByField(t, e) {
166
167
  }
167
168
  return n;
168
169
  }
169
- return [""];
170
+ return null;
170
171
  }
171
172
  function getVariableValue(t, e) {
172
173
  if (!t || !e || 0 == e.length) return;
@@ -186,7 +187,7 @@ function setVariableValue(t, e, n) {
186
187
  let o = t;
187
188
  for (let t2 = 0; t2 < e.length; t2++) {
188
189
  const a = e[t2];
189
- t2 + 1 === e.length ? o[a] = n : (void 0 === o[a] && (o[a] = {}), o = o[a]);
190
+ t2 + 1 === e.length ? o[a] = void 0 === n ? null : n : (void 0 === o[a] && (o[a] = {}), o = o[a]);
190
191
  }
191
192
  }
192
193
  function setVariableValueWithProp(t, e, n) {
@@ -12,6 +12,7 @@ export declare function queryPageDesign(pageId: number): Promise<any>;
12
12
  * @returns
13
13
  */
14
14
  export declare function queryPageDesignByCode(pageCode: string): Promise<any>;
15
+ export declare function queryPageDesignWhenPreview(pageDesignInfo: any, tempContext: any): Promise<any>;
15
16
  /**
16
17
  * 转换页面设计对象为运行时对象
17
18
  * @param pageDesign 页面设计对象
@@ -43,6 +44,6 @@ export declare function getPermissionCodes(configure: Component, pageContext: Pa
43
44
  * @param pageCode
44
45
  * @returns
45
46
  */
46
- export declare function queryPageSuperGrids(pageDesign: any, pageContext: any, publishVersion: any): Promise<any>;
47
+ export declare function queryPageSuperGrids(pageDesign: any, tempContext: any, publishVersion: any): Promise<any>;
47
48
  export declare function packageFormRules(pageContext: PageContext, configure: any, isHasPermission: boolean): void;
48
49
  export declare function controlObjectRenderState(pageContext: PageContext, propName: string): void;
@@ -2,8 +2,8 @@ import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as i } from "./interfaces/page-design-types.js";
4
4
  import { getFormPropName as n, getVariableValue as s, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
5
- import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
6
- import { functions as a } from "./api/page-expose-util.js";
5
+ import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
6
+ import { functions as l } from "./api/page-expose-util.js";
7
7
  import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
8
8
  import { packageCustomValidator as d } from "./events/validator-util.js";
9
9
  import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
@@ -11,23 +11,43 @@ function f(t2) {
11
11
  return new Promise((i2, n2) => {
12
12
  (function(t3) {
13
13
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
14
- })(t2).then((t3) => {
15
- t3 ? e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param").then((n3) => {
16
- n3 && (t3.systemParam = g(n3)), function(t4, i3) {
17
- let n4 = "";
18
- t4 && i3 && (n4 = "?listViewTableName=" + t4 + "&listViewTablePublishVersion=" + i3);
19
- return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + n4);
20
- }(t3.listViewTableName, t3.listViewTablePublishVersion).then((e2) => {
21
- e2 ? (t3.contextParam = g(e2.contextParam), t3.branchFieldAuth = e2.branchFieldAuth, t3.isWorkflowEntity = e2.isWorkflowEntity, t3.dataTypeMaps = e2.dataTypeMaps, i2(t3)) : i2(null);
14
+ })(t2).then((e2) => {
15
+ e2 ? b().then((t3) => {
16
+ t3 && (e2.systemParam = y(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
17
+ t4 ? (e2.contextParam = y(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, i2(e2)) : i2(null);
22
18
  });
19
+ }).catch(() => {
20
+ i2(e2);
23
21
  }) : i2(null);
24
22
  });
25
23
  });
26
24
  }
27
- function m(e2) {
25
+ function m(e2, t2) {
26
+ return new Promise((i2, n2) => {
27
+ e2 ? b().then((s2) => {
28
+ s2 && (e2.systemParam = y(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? j(e2, t2, e2.systemVersion).then((t3) => {
29
+ e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, i2(e2);
30
+ }).catch((e3) => {
31
+ n2(e3);
32
+ }) : g("", "").then((t3) => {
33
+ t3 ? (e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, i2(e2)) : i2(null);
34
+ }).catch((e3) => {
35
+ n2(e3);
36
+ });
37
+ }) : i2(null);
38
+ });
39
+ }
40
+ function g(t2, i2) {
41
+ let n2 = "";
42
+ return t2 && i2 && (n2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + n2);
43
+ }
44
+ function b() {
45
+ return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
46
+ }
47
+ function h(e2) {
28
48
  var _a, _b, _c;
29
49
  if (null == e2) return null;
30
- const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: b(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
50
+ const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: w(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
31
51
  if (e2.props && e2.props.notIdInitializationList) {
32
52
  let i2 = e2.props.notIdInitializationList;
33
53
  "string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
@@ -48,7 +68,7 @@ function m(e2) {
48
68
  return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
49
69
  }(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
50
70
  }
51
- function g(e2) {
71
+ function y(e2) {
52
72
  try {
53
73
  const t2 = function(e3) {
54
74
  if (!e3) return e3;
@@ -65,7 +85,7 @@ function g(e2) {
65
85
  return e2;
66
86
  }
67
87
  }
68
- function b(e2) {
88
+ function w(e2) {
69
89
  try {
70
90
  return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
71
91
  e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
@@ -73,7 +93,7 @@ function b(e2) {
73
93
  } catch (e3) {
74
94
  }
75
95
  }
76
- function w(e2) {
96
+ function P(e2) {
77
97
  let t2 = decodeURI(window.location.href);
78
98
  try {
79
99
  window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
@@ -93,49 +113,49 @@ function w(e2) {
93
113
  }
94
114
  e2._t_;
95
115
  }
96
- function y(e2, t2) {
116
+ function E(e2, t2) {
97
117
  if (e2) {
98
118
  Object.assign(t2, e2);
99
- P(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
119
+ C(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
100
120
  }
101
121
  }
102
- function h(e2, t2) {
122
+ function v(e2, t2) {
103
123
  if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
104
124
  Object.assign(t2, e2.query);
105
- P(e2.query.paramStoreId, t2);
125
+ C(e2.query.paramStoreId, t2);
106
126
  }
107
127
  }
108
- function P(e2, t2) {
128
+ function C(e2, t2) {
109
129
  if (e2) {
110
- const i2 = l(e2);
130
+ const i2 = a(e2);
111
131
  if (i2) {
112
132
  const e3 = JSON.parse(i2);
113
133
  Object.assign(t2, e3);
114
134
  }
115
135
  }
116
136
  }
117
- function E(e2, t2) {
137
+ function k(e2, t2) {
118
138
  let i2, n2 = t2;
119
139
  t2 || (i2 = e2.props.base ? e2.props.base : {}, n2 = i2.prop);
120
140
  let s2 = null;
121
141
  return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || n2 && n2.startsWith("${") ? n2.startsWith("${") ? (n2 = n2.substring(2, n2.length - 1), s2 = n2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
122
142
  }
123
- function v(e2, t2, i2) {
143
+ function M(e2, t2, i2) {
124
144
  var _a;
125
- const n2 = E(t2, i2), r2 = e2.entity;
145
+ const n2 = k(t2, i2), r2 = e2.entity;
126
146
  if (null == r2.data.ID && null == r2.data.id) {
127
- let i3, l2, a2 = false;
128
- t2 && (i3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = i3.multiple);
147
+ let i3, a2, l2 = false;
148
+ t2 && (i3 = t2.props.base ? t2.props.base : {}, a2 = t2.name, l2 = i3.multiple);
129
149
  const p2 = s(r2, n2);
130
150
  if (null == p2) {
131
151
  const t3 = i3 ? i3.defaultValue : null;
132
152
  if (t3) try {
133
- const s2 = C(e2, t3, l2, a2);
153
+ const s2 = A(e2, t3, a2, l2);
134
154
  if (null != s2 && "" !== s2) o(r2, n2, s2);
135
155
  else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
136
156
  const t4 = i3.moreDefaultValue;
137
157
  for (let i4 = 0; i4 < t4.length; i4++) {
138
- const s3 = C(e2, t4[i4], l2, a2);
158
+ const s3 = A(e2, t4[i4], a2, l2);
139
159
  if (null != s3 && "" !== s3) {
140
160
  o(r2, n2, s3);
141
161
  break;
@@ -148,7 +168,7 @@ function v(e2, t2, i2) {
148
168
  }
149
169
  return n2;
150
170
  }
151
- function C(e2, t2, i2, n2) {
171
+ function A(e2, t2, i2, n2) {
152
172
  let s2;
153
173
  if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && i2)) {
154
174
  let e3 = false;
@@ -156,7 +176,7 @@ function C(e2, t2, i2, n2) {
156
176
  }
157
177
  return s2;
158
178
  }
159
- function M(e2, t2) {
179
+ function I(e2, t2) {
160
180
  var _a, _b;
161
181
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
162
182
  const i2 = [];
@@ -165,48 +185,48 @@ function M(e2, t2) {
165
185
  const n2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
166
186
  for (let e3 = 0; e3 < s2.length; e3++) {
167
187
  const o2 = s2[e3], r2 = e3 < n2.length ? n2[e3] : "";
168
- let l2 = "";
169
- if ("service" == r2) l2 = o2;
170
- else if ("standard" === r2) l2 = t2.code + "." + o2;
188
+ let a2 = "";
189
+ if ("service" == r2) a2 = o2;
190
+ else if ("standard" === r2) a2 = t2.code + "." + o2;
171
191
  else {
172
- l2 = "custom" === k(o2, t2).type ? o2 : t2.code + "." + o2;
192
+ a2 = "custom" === T(o2, t2).type ? o2 : t2.code + "." + o2;
173
193
  }
174
- i2.includes(l2) || i2.push(l2);
194
+ i2.includes(a2) || i2.push(a2);
175
195
  }
176
196
  }
177
197
  return i2.join(",");
178
198
  }
179
- function k(e2, t2) {
199
+ function T(e2, t2) {
180
200
  const i2 = t2.pagePermissions;
181
201
  if (i2 && i2.length > 0) {
182
202
  for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
183
203
  }
184
204
  return null;
185
205
  }
186
- function I(i2, n2, s2) {
206
+ function j(i2, n2, s2) {
187
207
  const o2 = i2.tableRuntimes, r2 = t(n2);
188
- let l2;
189
- const a2 = n2.code;
190
- return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: s2, pageType: i2.pageType });
208
+ let a2;
209
+ const l2 = i2.code;
210
+ return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: i2.pageType });
191
211
  }
192
- const A = ["button-detail", "print-label"];
193
- function j(e2, t2, i2) {
212
+ const O = ["button-detail", "print-label"];
213
+ function x(e2, t2, i2) {
194
214
  var _a, _b;
195
215
  const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
196
216
  let r2 = false;
197
- if (o2 && A.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
217
+ if (o2 && O.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
198
218
  const i3 = e2.fieldPermissionMap.get("all_fields");
199
219
  false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
200
220
  }
201
221
  if (s2) {
202
- const l2 = n(s2);
203
- if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
222
+ const a2 = n(s2);
223
+ if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
204
224
  d(e3), !i2 && e3 && e3.required && (e3.required = false);
205
- }), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
206
- const n2 = e2.fieldPermissionMap.get(l2);
207
- if (!i2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
208
- let t3 = e2.workflowRules[l2];
209
- if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[l2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
225
+ }), e2.rules[a2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
226
+ const n2 = e2.fieldPermissionMap.get(a2);
227
+ if (!i2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
228
+ let t3 = e2.workflowRules[a2];
229
+ if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[a2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
210
230
  const i3 = t3[e3];
211
231
  if (i3 && i3.required) {
212
232
  i3.required = false;
@@ -217,10 +237,10 @@ function j(e2, t2, i2) {
217
237
  }
218
238
  t2.runtime.props || (t2.runtime.props = {}), n2 ? (!i2 && n2.canEdit && (n2.canEdit = false), false === n2.canEdit ? t2.runtime.props.state = "disabled" : n2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
219
239
  }
220
- ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
240
+ ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
221
241
  }
222
242
  }
223
- function O(e2, t2) {
243
+ function R(e2, t2) {
224
244
  if (e2.initInfo) {
225
245
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
226
246
  const n2 = e2.initInfo[i2];
@@ -230,22 +250,23 @@ function O(e2, t2) {
230
250
  const e3 = u(i3[0]);
231
251
  e3.name = t2, i3 = [e3];
232
252
  }
233
- a.dynamicControlFormEdit(e2, i3, false);
234
- } else "disableElement" === i2 ? n2.indexOf(t2) >= 0 && a.disableElement(e2, [t2], false) : "enableElement" === i2 ? n2.indexOf(t2) >= 0 && a.enableElement(e2, [t2], false) : "hideElement" === i2 ? n2.indexOf(t2) >= 0 && a.hideElement(e2, [t2], false) : "showElement" === i2 && n2.indexOf(t2) >= 0 && a.showElement(e2, [t2], false);
253
+ l.dynamicControlFormEdit(e2, i3, false);
254
+ } else "disableElement" === i2 ? n2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === i2 ? n2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === i2 ? n2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === i2 && n2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
235
255
  });
236
256
  }
237
257
  }
238
258
  export {
239
- O as controlObjectRenderState,
240
- m as convertToPageContext,
241
- C as getDefaultValue,
242
- v as getFormModelFields,
243
- E as getModelFields,
244
- M as getPermissionCodes,
245
- w as packageAdditionalMapWithLocationSearch,
246
- y as packageAdditionalMapWithPageRequest,
247
- h as packageAdditionalMapWithRoute,
248
- j as packageFormRules,
259
+ R as controlObjectRenderState,
260
+ h as convertToPageContext,
261
+ A as getDefaultValue,
262
+ M as getFormModelFields,
263
+ k as getModelFields,
264
+ I as getPermissionCodes,
265
+ P as packageAdditionalMapWithLocationSearch,
266
+ E as packageAdditionalMapWithPageRequest,
267
+ v as packageAdditionalMapWithRoute,
268
+ x as packageFormRules,
249
269
  f as queryPageDesignByCode,
250
- I as queryPageSuperGrids
270
+ m as queryPageDesignWhenPreview,
271
+ j as queryPageSuperGrids
251
272
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as o, openBlock as a, createVNode as n, withCtx as s, createTextVNode as d, toDisplayString as u, createElementVNode as i } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as a, openBlock as o, createVNode as n, withCtx as s, createTextVNode as u, toDisplayString as d, createElementVNode as i } from "vue";
2
2
  import { ElMessage as r } from "element-plus";
3
3
  import { useI18n as p } from "vue-i18n";
4
4
  const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
@@ -6,12 +6,12 @@ const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog",
6
6
  function y() {
7
7
  v.value ? b("result", v.value) : r({ showClose: true, type: "warning", message: f("superPageRuntimeMessage.pleaseSelectNode") });
8
8
  }
9
- function _(e3) {
9
+ function $(e3) {
10
10
  v.value = g.taskInformitions[e3];
11
11
  }
12
12
  return (l2, r2) => {
13
13
  const p2 = t("el-radio"), c3 = t("el-table-column"), f2 = t("el-table"), g2 = t("el-button"), v2 = t("el-dialog");
14
- return a(), o("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [i("div", m, [n(g2, { type: "primary", onClick: y }, { default: s(() => [d(u(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [d(u(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(p2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: _ }, { default: s(() => [d(u(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "nodeId", label: l2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
14
+ return o(), a("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [i("div", m, [n(g2, { type: "primary", onClick: y }, { default: s(() => [u(d(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [u(d(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(p2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: $ }, { default: s(() => [u(d(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "transactorNames", label: l2.$t("superPageRuntimeMessage.transactorNames") }, null, 8, ["label"]), n(c3, { prop: "nodeId", label: l2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
15
15
  };
16
16
  } });
17
17
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./tools-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(o, [["__scopeId", "data-v-c1b7539a"]]);
4
+ const e = t(o, [["__scopeId", "data-v-a9801c3f"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -23,18 +23,18 @@ const k = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, w = { ref: "a
23
23
  return ["top"].includes((_a = z.value) == null ? void 0 : _a.position) ? "top" : ["bottom"].includes((_b = z.value) == null ? void 0 : _b.position) ? "bottom" : void 0;
24
24
  });
25
25
  return i(() => {
26
- n(() => {
27
- if (b(null, _2.pageContext, _2.configure, { componentRef: h.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page }), D = new ResizeObserver(() => {
28
- if (B.value) {
29
- const e3 = B.value.getBoundingClientRect();
30
- F.value = e3.top;
31
- }
32
- }), B.value) {
33
- D.observe(B.value);
26
+ if (n(() => {
27
+ b(null, _2.pageContext, _2.configure, { componentRef: h.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
28
+ }), D = new ResizeObserver(() => {
29
+ if (B.value) {
34
30
  const e3 = B.value.getBoundingClientRect();
35
31
  F.value = e3.top;
36
32
  }
37
- });
33
+ }), B.value) {
34
+ D.observe(B.value);
35
+ const e3 = B.value.getBoundingClientRect();
36
+ F.value = e3.top;
37
+ }
38
38
  }), l(() => {
39
39
  D && B.value && (D.unobserve(B.value), D.disconnect());
40
40
  }), (e3, t2) => {
@@ -1,53 +1,54 @@
1
1
  import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, createBlock as r, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
- import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as k, isDateDataType as F } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
5
5
  import { handleAfterInitEvent as T, getCustomFunc as V, handleFormEvent as j } from "../../../../utils/events/event-util.js";
6
- import R from "../common/title-suffix-element.vue.js";
7
- import Y from "dayjs";
8
- import { $t as _ } from "../../../../utils/i18n-util.js";
9
- import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
6
+ import z from "../common/title-suffix-element.vue.js";
7
+ import P from "dayjs";
8
+ import { $t as R } from "../../../../utils/i18n-util.js";
9
+ import { addRequiredClassUtil as Y } from "../../../../utils/common-util.js";
10
+ import { DatePickerRange as _ } from "agilebuilder-ui";
10
11
  const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
11
12
  var _a;
12
- const P = e2, S = a(null), w = P.pageContext.entity ? P.pageContext.entity : {}, q = P.configure.runtime ? P.configure.runtime : {}, A = q.style, I = q.class, M = q.headerStyle, B = q.titleExceedStyle, N = a(q.props ? q.props : {});
13
- let U = h(P.pageContext, P.configure, N.value.prop);
14
- if (P.pageContext.modelFieldsMap && U && U.length > 0 && "data" === U[0]) {
15
- const e3 = C(U, P.pageContext);
13
+ const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, I = A.class, M = A.headerStyle, U = A.titleExceedStyle, N = a(A.props ? A.props : {});
14
+ let W = h(S.pageContext, S.configure, N.value.prop);
15
+ if (S.pageContext.modelFieldsMap && W && W.length > 0 && "data" === W[0]) {
16
+ const e3 = C(W, S.pageContext);
16
17
  e3 && function(e4) {
17
18
  const a2 = e4.dataType;
18
- F(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
19
+ k(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
19
20
  }(e3);
20
21
  }
21
- let W = null, $ = false;
22
+ let $ = null, E = false;
22
23
  if (N.value.dateType && N.value.dateType.includes("range")) {
23
- $ = true;
24
+ E = true;
24
25
  let e3 = N.value.prop2;
25
- e3 && e3.startsWith("${") || (e3 = "${page." + P.configure.uuid + "-2}");
26
- const a2 = x(w, e3, null);
27
- if (e3 = e3.substring(2, e3.length - 1), W = e3.split("."), !(a2 || w.data && (w.data.id || w.data.ID)) && N.value.defaultValue2) {
28
- const e4 = x(w, N.value.defaultValue2);
29
- if (null != e4 && "" !== e4) b(w, W, e4);
26
+ e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
27
+ const a2 = x(q, e3, null);
28
+ if (e3 = e3.substring(2, e3.length - 1), $ = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && N.value.defaultValue2) {
29
+ const e4 = x(q, N.value.defaultValue2);
30
+ if (null != e4 && "" !== e4) b(q, $, e4);
30
31
  else if (((_a = N.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
31
32
  const e5 = N.value.moreDefaultValue2;
32
33
  for (let a3 = 0; a3 < e5.length; a3++) {
33
- const l2 = x(w, e5[a3]);
34
+ const l2 = x(q, e5[a3]);
34
35
  if (null != l2 && "" !== l2) {
35
- b(w, W, l2);
36
+ b(q, $, l2);
36
37
  break;
37
38
  }
38
39
  }
39
40
  }
40
41
  }
41
42
  }
42
- const E = a(null), O = a(null), G = a(null);
43
- function H(e3, a2) {
43
+ const O = a(null), G = a(null), H = a(null);
44
+ function J(e3, a2) {
44
45
  if (!e3) return e3;
45
46
  if (a2) {
46
47
  "number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
47
48
  try {
48
- const l2 = Y(e3);
49
+ const l2 = P(e3);
49
50
  let t2 = null;
50
- return t2 = "x" === a2 ? l2.toDate().getTime() : Y(e3).format(a2), t2;
51
+ return t2 = "x" === a2 ? l2.toDate().getTime() : P(e3).format(a2), t2;
51
52
  } catch (a3) {
52
53
  return e3;
53
54
  }
@@ -56,44 +57,44 @@ const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
56
57
  }
57
58
  if (l(() => {
58
59
  t(() => {
59
- const e3 = J.value;
60
- T(e3, P.pageContext, P.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
60
+ const e3 = K.value;
61
+ T(e3, S.pageContext, S.configure, { formItemRef: O.value, componentRef: G.value, titleRef: H.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
61
62
  });
62
- }), U) {
63
- const e3 = k(w, U), a2 = H(e3, N.value.valueFormat);
64
- e3 !== a2 && b(w, U, a2);
63
+ }), W) {
64
+ const e3 = F(q, W), a2 = J(e3, N.value.valueFormat);
65
+ e3 !== a2 && b(q, W, a2);
65
66
  }
66
- if (W) {
67
- const e3 = k(w, W), a2 = H(e3, N.value.valueFormat);
68
- e3 !== a2 && b(w, W, a2);
67
+ if ($) {
68
+ const e3 = F(q, $), a2 = J(e3, N.value.valueFormat);
69
+ e3 !== a2 && b(q, $, a2);
69
70
  }
70
- const J = o({ get() {
71
- if ($) {
71
+ const K = o({ get() {
72
+ if (E) {
72
73
  const e3 = [];
73
- let a2 = k(w, U);
74
- e3.push(H(a2, N.value.valueFormat));
75
- let l2 = k(w, W);
76
- return e3.push(H(l2, N.value.valueFormat)), e3;
74
+ let a2 = F(q, W);
75
+ e3.push(J(a2, N.value.valueFormat));
76
+ let l2 = F(q, $);
77
+ return e3.push(J(l2, N.value.valueFormat)), e3;
77
78
  }
78
- return H(k(w, U), N.value.valueFormat);
79
+ return J(F(q, W), N.value.valueFormat);
79
80
  }, set(e3) {
80
- $ ? Array.isArray(e3) ? (b(w, U, e3[0]), b(w, W, e3[1]), S.value = "") : null === e3 && (b(w, U, null), b(w, W, null)) : (b(w, U, e3), null != e3 && (S.value = ""));
81
- } }), K = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
81
+ E ? Array.isArray(e3) ? (b(q, W, e3[0]), b(q, $, e3[1]), w.value = "") : null === e3 && (b(q, W, null), b(q, $, null)) : (b(q, W, e3), null != e3 && (w.value = ""));
82
+ } }), L = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
82
83
  if (N.value.shortcutsFunc) {
83
- const e3 = V(P.pageContext, N.value.shortcutsFunc);
84
+ const e3 = V(S.pageContext, N.value.shortcutsFunc);
84
85
  if (e3) {
85
- let a2 = e3.apply(e3, [{ pageContext: P.pageContext, configureObj: P.configure }]);
86
+ let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
86
87
  if (a2) {
87
- Array.isArray(a2) || (a2 = [a2]), K.value || (K.value = []);
88
- for (let e4 of a2) e4.text && e4.value && K.value.push(e4);
88
+ Array.isArray(a2) || (a2 = [a2]), L.value || (L.value = []);
89
+ for (let e4 of a2) e4.text && e4.value && L.value.push(e4);
89
90
  }
90
91
  }
91
92
  }
92
93
  return D2({ addRequiredClass: function() {
93
- S.value = z();
94
+ w.value = Y();
94
95
  } }), (e3, a2) => {
95
96
  const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
96
- return n(), r(o2, { ref_key: "formItemRef", ref: E, required: N.value.required, class: p(s(I) + (S.value ? " " + S.value : "")), "label-width": N.value.labelWidth, style: i(s(A)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(M), ...s(B) }) }, [N.value.prefixType ? (n(), r(R, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), r(t2, { key: 1, ref_key: "componentRef", ref: O, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
97
+ return n(), r(o2, { ref_key: "formItemRef", ref: O, required: N.value.required, class: p(s(I) + (w.value ? " " + w.value : "")), "label-width": N.value.labelWidth, style: i(s(B)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: H, style: i({ ...s(M), ...s(U) }) }, [N.value.prefixType ? (n(), r(z, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: G, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => K.value = e4), shortcuts: L.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : ["daterange", "datetimerange", "monthrange", "yearrange"].includes(N.value.dateType) ? (n(), r(s(_), { key: 1, modelValue: K.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => K.value = e4), type: N.value.dateType, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, clearable: N.value.clearable, format: N.value.format, "value-format": N.value.valueFormat, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, size: N.value.size, shortcuts: L.value, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : (n(), r(t2, { key: 2, ref_key: "componentRef", ref: G, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: K.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => K.value = e4), shortcuts: L.value, type: N.value.dateType, onChange: a2[15] || (a2[15] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[18] || (a2[18] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[19] || (a2[19] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[20] || (a2[20] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
97
98
  };
98
99
  } });
99
100
  export {