super-page-runtime 2.0.15 → 2.0.19

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.
@@ -123,6 +123,12 @@ const assemblyGroups = [
123
123
  runtimeComponent: defineAsyncComponent(() => {
124
124
  return import("../views/assemblys/form/divider/divider-runtime.vue.js");
125
125
  })
126
+ }, {
127
+ name: "separatelabel",
128
+ label: "分割标签",
129
+ runtimeComponent: defineAsyncComponent(() => {
130
+ return import("../views/assemblys/form/separatelabel/separatelabel-runtime.vue.js");
131
+ })
126
132
  }, {
127
133
  name: "placeholder",
128
134
  label: "占位符",
@@ -181,13 +187,29 @@ const assemblyGroups = [
181
187
  {
182
188
  name: "workflow",
183
189
  label: "工作流",
184
- items: [{
185
- name: "workflow-button",
186
- label: "工作流按钮",
187
- runtimeComponent: defineAsyncComponent(() => {
188
- return import("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js");
189
- })
190
- }]
190
+ items: [
191
+ {
192
+ name: "workflow-button",
193
+ label: "工作流按钮",
194
+ runtimeComponent: defineAsyncComponent(() => {
195
+ return import("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js");
196
+ })
197
+ },
198
+ {
199
+ name: "picture-flow",
200
+ label: "图形历史",
201
+ runtimeComponent: defineAsyncComponent(() => {
202
+ return import("../views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js");
203
+ })
204
+ },
205
+ {
206
+ name: "text-flow",
207
+ label: "文本历史",
208
+ runtimeComponent: defineAsyncComponent(() => {
209
+ return import("../views/assemblys/workflow/text-history/textflow-runtime.vue.js");
210
+ })
211
+ }
212
+ ]
191
213
  },
192
214
  {
193
215
  name: "chart",
@@ -14,3 +14,4 @@ export declare function getListCode(pageCode: any, pageVersion: any, tableUuid:
14
14
  * @returns
15
15
  */
16
16
  export declare function deepCopy(srcObj: any): any;
17
+ export declare function getWorkflowId(pageContext: any): any;
@@ -83,11 +83,25 @@ function deepCopy(srcObj) {
83
83
  }
84
84
  return copyObj;
85
85
  }
86
+ function getWorkflowId(pageContext) {
87
+ let workflowId;
88
+ if (pageContext.entity && pageContext.entity.data) {
89
+ workflowId = pageContext.entity.data["WORKFLOW_ID"];
90
+ if (!workflowId) {
91
+ workflowId = pageContext.entity.data["workflow_id"];
92
+ }
93
+ if (!workflowId) {
94
+ workflowId = pageContext.entity.data["workflowId"];
95
+ }
96
+ }
97
+ return workflowId;
98
+ }
86
99
  export {
87
100
  deepCopy,
88
101
  getBaseUrl,
89
102
  getListCode,
90
103
  getRealRestApiPath,
104
+ getWorkflowId,
91
105
  isArrayFn,
92
106
  packageTemplateFiles,
93
107
  upperFirstCase
@@ -1072,6 +1072,10 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
1072
1072
  pageContext.workflowButtonComponent = completeTaskParam.buttonComponent;
1073
1073
  pageContext.completeTaskParam = completeTaskParam;
1074
1074
  }
1075
+ if (!pageContext.entity) {
1076
+ pageContext.entity = {};
1077
+ }
1078
+ pageContext.entity.task = formParam.taskParamMap;
1075
1079
  setStoreInfo(pageCode, pageVersion, "_currentActivityName", formParam.taskName);
1076
1080
  }
1077
1081
  if (params) {
@@ -126,7 +126,7 @@ export interface PageContext extends Component {
126
126
  actionPermissionMap?: Map<string, any>;
127
127
  workflowButtonComponent?: object;
128
128
  completeTaskParam?: object;
129
- customRules?: object;
129
+ customRules?: Record<string, any>;
130
130
  initFormNo?: string;
131
131
  definitionId?: number;
132
132
  dataTypeMaps?: Object;
@@ -16,6 +16,7 @@ function convertToPageContext(pageDesign, pageRequest) {
16
16
  code: pageDesign.code,
17
17
  version: pageDesign.version,
18
18
  dimensions: pageDesign.dimensions,
19
+ rules: [],
19
20
  // rules: pageDesign.rules, // 表单验证规则。在runtime object-render中实时获得
20
21
  tableUuids: pageDesign.tableUuids,
21
22
  // 表格uuid集合
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, openBlock, createBlock, unref, isRef, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, openBlock, createBlock, unref, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
2
  import { ElTabs, ElTabPane } from "element-plus";
3
3
  import _sfc_main$1 from "../../object-render.vue.js";
4
4
  import { SuperIcon } from "agilebuilder-ui";
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  },
13
13
  setup(__props) {
14
14
  const props = __props;
15
- const activeName = props.configure.props.defaultOpen ? props.configure.props.defaultOpen : 1;
15
+ const activeName = ref(null);
16
+ activeName.value = props.configure.props.defaultOpen ? props.configure.props.defaultOpen : 1;
16
17
  const thisRef = ref(null);
17
18
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
18
19
  const runtimeStyle = runtimeInfo.style;
@@ -23,19 +24,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
24
  pane,
24
25
  ev
25
26
  };
26
- return handleEvent(null, props.pageContext, props.configure, "tab-click", params);
27
+ const activeTab = pane.paneName;
28
+ props.pageContext.activeTab = activeTab;
29
+ props.pageContext.activeLabel = params.label;
30
+ return handleEvent(activeTab, props.pageContext, props.configure, "tab-click", params);
27
31
  }
28
32
  function tabChange(paneName) {
29
33
  const params = {
30
34
  paneName
31
35
  };
32
- return handleEvent(null, props.pageContext, props.configure, "tab-change", params);
36
+ props.pageContext.activeTab = paneName;
37
+ return handleEvent(paneName, props.pageContext, props.configure, "tab-change", params);
33
38
  }
34
39
  function tabRemove(paneName) {
35
40
  const params = {
36
41
  paneName
37
42
  };
38
- return handleEvent(null, props.pageContext, props.configure, "tab-remove", params);
43
+ return handleEvent(paneName, props.pageContext, props.configure, "tab-remove", params);
39
44
  }
40
45
  function tabAdd() {
41
46
  return handleEvent(null, props.pageContext, props.configure, "tab-add");
@@ -45,14 +50,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
50
  paneName,
46
51
  action
47
52
  };
48
- return handleEvent(null, props.pageContext, props.configure, "edit", params);
53
+ return handleEvent(paneName, props.pageContext, props.configure, "edit", params);
49
54
  }
50
55
  return (_ctx, _cache) => {
51
56
  return openBlock(), createBlock(unref(ElTabs), {
52
57
  ref_key: "thisRef",
53
58
  ref: thisRef,
54
- modelValue: unref(activeName),
55
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
59
+ modelValue: activeName.value,
60
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
56
61
  type: _ctx.configure.props.cardType,
57
62
  "tab-position": _ctx.configure.props.tabPosition,
58
63
  style: normalizeStyle(unref(runtimeStyle)),
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
1
+ import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
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";
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  }
23
23
  });
24
24
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
25
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
25
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
26
26
  const runtimeStyle = runtimeInfo.style;
27
27
  const runtimeClass = runtimeInfo.class;
28
28
  const headerStyle = runtimeInfo.headerStyle;
@@ -40,26 +40,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  const _component_el_input = resolveComponent("el-input");
41
41
  const _component_el_form_item = resolveComponent("el-form-item");
42
42
  return openBlock(), createBlock(_component_el_form_item, {
43
- required: unref(designProperty).required ? true : false,
43
+ required: designProperty.value.required ? true : false,
44
44
  class: normalizeClass(unref(runtimeClass)),
45
- "label-width": unref(designProperty).labelWidth,
45
+ "label-width": designProperty.value.labelWidth,
46
46
  style: normalizeStyle(unref(runtimeStyle))
47
47
  }, {
48
48
  label: withCtx(() => [
49
- unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
49
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
50
50
  key: 0,
51
51
  style: normalizeStyle({ ...unref(headerStyle) })
52
- }, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
52
+ }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
53
53
  ]),
54
54
  default: withCtx(() => [
55
55
  createVNode(_component_el_input, {
56
- disabled: unref(designProperty).state === "disabled",
57
- readonly: unref(designProperty).state === "readonly",
58
- size: unref(designProperty).size,
59
- clearable: unref(designProperty).clearable,
60
- placeholder: unref(designProperty).placeholder,
61
- maxlength: unref(designProperty).maxLength,
62
- "show-word-limit": unref(designProperty).showInputNum,
56
+ disabled: designProperty.value.state === "disabled",
57
+ readonly: designProperty.value.state === "readonly",
58
+ size: designProperty.value.size,
59
+ clearable: designProperty.value.clearable,
60
+ placeholder: designProperty.value.placeholder,
61
+ maxlength: designProperty.value.maxLength,
62
+ "show-word-limit": designProperty.value.showInputNum,
63
63
  modelValue: dynamicModelMethod.value,
64
64
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
65
65
  onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
@@ -68,51 +68,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
69
69
  onClick: _cache[5] || (_cache[5] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
70
70
  }, createSlots({ _: 2 }, [
71
- unref(designProperty).iconPosition != "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
71
+ designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
72
72
  name: "prefix",
73
73
  fn: withCtx(() => [
74
- unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
74
+ designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
75
75
  key: 0,
76
- iconType: unref(designProperty).preIconType,
77
- iconValue: unref(designProperty).preIconValue
76
+ iconType: designProperty.value.preIconType,
77
+ iconValue: designProperty.value.preIconValue
78
78
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
79
- createTextVNode(" " + toDisplayString(unref(designProperty).preText), 1)
79
+ createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
80
80
  ]),
81
81
  key: "0"
82
82
  } : void 0,
83
- unref(designProperty).iconPosition == "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
83
+ designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
84
84
  name: "prepend",
85
85
  fn: withCtx(() => [
86
- unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
86
+ designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
87
87
  key: 0,
88
- iconType: unref(designProperty).preIconType,
89
- iconValue: unref(designProperty).preIconValue
88
+ iconType: designProperty.value.preIconType,
89
+ iconValue: designProperty.value.preIconValue
90
90
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
91
- createTextVNode(" " + toDisplayString(unref(designProperty).preText), 1)
91
+ createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
92
92
  ]),
93
93
  key: "1"
94
94
  } : void 0,
95
- unref(designProperty).iconPosition != "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
95
+ designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
96
96
  name: "suffix",
97
97
  fn: withCtx(() => [
98
- unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
98
+ designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
99
99
  key: 0,
100
- iconType: unref(designProperty).sufIconType,
101
- iconValue: unref(designProperty).sufIconValue
100
+ iconType: designProperty.value.sufIconType,
101
+ iconValue: designProperty.value.sufIconValue
102
102
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
103
- createTextVNode(" " + toDisplayString(unref(designProperty).sufText), 1)
103
+ createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
104
104
  ]),
105
105
  key: "2"
106
106
  } : void 0,
107
- unref(designProperty).iconPosition == "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
107
+ designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
108
108
  name: "append",
109
109
  fn: withCtx(() => [
110
- unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
110
+ designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
111
111
  key: 0,
112
- iconType: unref(designProperty).sufIconType,
113
- iconValue: unref(designProperty).sufIconValue
112
+ iconType: designProperty.value.sufIconType,
113
+ iconValue: designProperty.value.sufIconValue
114
114
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
115
- createTextVNode(" " + toDisplayString(unref(designProperty).sufText), 1)
115
+ createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
116
116
  ]),
117
117
  key: "3"
118
118
  } : void 0
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createElementVNode } from "vue";
1
+ import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, 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
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  const runtimeStyle = runtimeInfo.style;
27
27
  const runtimeClass = runtimeInfo.class;
28
28
  const headerStyle = runtimeInfo.headerStyle;
29
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
29
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
30
30
  const listOptions = ref(designProperty.options ? designProperty.options : []);
31
31
  const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
32
32
  if (cacheOptions.length > 0) {
@@ -144,33 +144,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
144
  const _component_el_select = resolveComponent("el-select");
145
145
  const _component_el_form_item = resolveComponent("el-form-item");
146
146
  return openBlock(), createBlock(_component_el_form_item, {
147
- required: unref(designProperty).required ? true : false,
147
+ required: designProperty.value.required ? true : false,
148
148
  class: normalizeClass(unref(runtimeClass)),
149
- "label-width": unref(designProperty).labelWidth,
149
+ "label-width": designProperty.value.labelWidth,
150
150
  style: normalizeStyle(unref(runtimeStyle))
151
151
  }, {
152
152
  label: withCtx(() => [
153
- unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
153
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
154
154
  key: 0,
155
155
  style: normalizeStyle({ ...unref(headerStyle) })
156
- }, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
156
+ }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
157
157
  ]),
158
158
  default: withCtx(() => [
159
159
  createVNode(_component_el_select, {
160
- disabled: unref(designProperty).state === "disabled",
161
- size: unref(designProperty).size,
162
- clearable: unref(designProperty).clearable,
163
- multiple: unref(designProperty).multiple,
164
- "collapse-tags": unref(designProperty).collapseTags,
165
- "collapse-tags-tooltip": unref(designProperty).collapseTagsTooltip,
166
- filterable: unref(designProperty).filterable,
167
- "allow-create": unref(designProperty).allowCreate,
168
- placeholder: unref(designProperty).placeholder,
169
- "remote-show-suffix": unref(designProperty).remoteShowSuffix,
170
- remote: unref(designProperty).remote,
171
- "remote-method": unref(designProperty).remoteMethod,
160
+ disabled: designProperty.value.state === "disabled",
161
+ size: designProperty.value.size,
162
+ clearable: designProperty.value.clearable,
163
+ multiple: designProperty.value.multiple,
164
+ "collapse-tags": designProperty.value.collapseTags,
165
+ "collapse-tags-tooltip": designProperty.value.collapseTagsTooltip,
166
+ filterable: designProperty.value.filterable,
167
+ "allow-create": designProperty.value.allowCreate,
168
+ placeholder: designProperty.value.placeholder,
169
+ "remote-show-suffix": designProperty.value.remoteShowSuffix,
170
+ remote: designProperty.value.remote,
171
+ "remote-method": designProperty.value.remoteMethod,
172
172
  loading: queryLoadingFlag.value,
173
- onChange: unref(designProperty).changeMethod,
173
+ onChange: designProperty.value.changeMethod,
174
174
  modelValue: dynamicModelMethod.value,
175
175
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
176
176
  }, {
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./separatelabel-runtime.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { SuperIcon } from "agilebuilder-ui";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "separatelabel-runtime",
5
+ props: {
6
+ pageContext: {},
7
+ configure: {}
8
+ },
9
+ setup(__props, { expose: __expose }) {
10
+ const props = __props;
11
+ const thisRef = ref(null);
12
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
+ const runtimeStyle = runtimeInfo.style;
14
+ const runtimeClass = runtimeInfo.class;
15
+ const headerStyle = runtimeInfo.headerStyle;
16
+ __expose({});
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", {
19
+ style: normalizeStyle(unref(runtimeStyle)),
20
+ class: normalizeClass([unref(runtimeClass), "amb-widget-separatelabel"]),
21
+ ref_key: "thisRef",
22
+ ref: thisRef
23
+ }, [
24
+ createElementVNode("div", {
25
+ class: "label",
26
+ style: normalizeStyle(unref(headerStyle))
27
+ }, [
28
+ _ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
29
+ key: 0,
30
+ iconType: _ctx.configure.props.iconType,
31
+ iconValue: _ctx.configure.props.iconValue,
32
+ style: { "margin-right": "2px" }
33
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
34
+ createTextVNode(" " + toDisplayString(_ctx.configure.props.base.title), 1)
35
+ ], 4)
36
+ ], 6);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ _sfc_main as default
42
+ };
@@ -69,6 +69,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  handleShowFlag.value = false;
70
70
  };
71
71
  }
72
+ if (el && !el.getConfigure) {
73
+ el.getConfigure = function() {
74
+ return props.configure;
75
+ };
76
+ }
72
77
  if (props.configure.uuid) {
73
78
  addComponentRef(props.pageContext, props.configure.uuid, thisRef);
74
79
  }
@@ -110,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
115
  runtimeStyle.value["width"] = thisRec.width + "px";
111
116
  } else if (thisStyle.position) {
112
117
  runtimeStyle.value["position"] = thisStyle.position;
113
- if (runtimeStyle.position != "relative") {
118
+ if (runtimeStyle.value.position != "relative") {
114
119
  if (!runtimeStyle.value["width"]) {
115
120
  const thisRec = thisRef.value.getBoundingClientRect();
116
121
  runtimeStyle.value["width"] = thisRec.width + "px";
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./pictureflow-runtime.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, unref, normalizeStyle } from "vue";
2
+ import "../../../../utils/eventBus.js";
3
+ import { getWorkflowId } from "../../../../utils/common-util.js";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "pictureflow-runtime",
6
+ props: {
7
+ pageContext: {},
8
+ configure: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ const maxHeight = ref(null);
13
+ maxHeight.value = window.innerHeight - 120;
14
+ const historyGraphRef = ref(null);
15
+ const workflowId = getWorkflowId(props.pageContext);
16
+ if (props.pageContext.entity && props.pageContext.entity.task) {
17
+ watch(
18
+ props.pageContext.entity.task.id,
19
+ () => {
20
+ if (workflowId && historyGraphRef.value) {
21
+ historyGraphRef.value.refresh();
22
+ }
23
+ },
24
+ { immediate: true }
25
+ );
26
+ }
27
+ return (_ctx, _cache) => {
28
+ const _component_workflow_history = resolveComponent("workflow-history");
29
+ return openBlock(), createBlock(_component_workflow_history, {
30
+ id: unref(workflowId),
31
+ ref_key: "historyGraphRef",
32
+ ref: historyGraphRef,
33
+ style: normalizeStyle({ maxHeight: maxHeight.value + "px" })
34
+ }, null, 8, ["id", "style"]);
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ _sfc_main as default
40
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./textflow-runtime.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, unref, normalizeStyle } from "vue";
2
+ import "../../../../utils/eventBus.js";
3
+ import { getWorkflowId } from "../../../../utils/common-util.js";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "textflow-runtime",
6
+ props: {
7
+ pageContext: {},
8
+ configure: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ const maxHeight = ref(null);
13
+ maxHeight.value = window.innerHeight - 120;
14
+ const historyList = ref(null);
15
+ const workflowId = getWorkflowId(props.pageContext);
16
+ if (props.pageContext.entity && props.pageContext.entity.task) {
17
+ watch(
18
+ () => props.pageContext.entity.task.id,
19
+ () => {
20
+ if (workflowId && historyList.value) {
21
+ historyList.value.refresh();
22
+ }
23
+ },
24
+ { immediate: true }
25
+ );
26
+ }
27
+ return (_ctx, _cache) => {
28
+ const _component_workflow_history_list = resolveComponent("workflow-history-list");
29
+ return openBlock(), createBlock(_component_workflow_history_list, {
30
+ ref_key: "historyList",
31
+ ref: historyList,
32
+ "workflow-id": unref(workflowId),
33
+ style: normalizeStyle({ maxHeight: maxHeight.value + "px" })
34
+ }, null, 8, ["workflow-id", "style"]);
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ _sfc_main as default
40
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.0.15",
3
+ "version": "2.0.19",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -46,7 +46,7 @@
46
46
  "@vitejs/plugin-vue-jsx": "^3.1.0",
47
47
  "@vue/eslint-config-prettier": "^8.0.0",
48
48
  "@vue/test-utils": "^2.4.4",
49
- "agilebuilder-ui": "1.0.14",
49
+ "agilebuilder-ui": "1.0.16",
50
50
  "axios": "^1.6.8",
51
51
  "cypress": "^13.6.6",
52
52
  "element-plus": "^2.6.1",