super-page-runtime 2.2.32 → 2.2.36

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.
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as e } from "vue";
2
2
  import { usePageContextStore as t } from "./page-store.js";
3
- const m = [{ name: "container", label: "容器", icon: "assets/images/group-container.png", items: [{ name: "form", label: "表单", runtimeComponent: e(() => import("../views/assemblys/container/form/form-runtime.vue.js")) }, { name: "card", label: "卡片", runtimeComponent: e(() => import("../views/assemblys/container/card/card-runtime.vue.js")) }, { name: "collapse", label: "折叠面板", runtimeComponent: e(() => import("../views/assemblys/container/collapse/collapse-runtime.vue.js")) }, { name: "layout", label: "Flex", runtimeComponent: e(() => import("../views/assemblys/container/flex/flex-runtime.vue.js")) }, { name: "tabs", label: "Tabs", runtimeComponent: e(() => import("../views/assemblys/container/tabs/tabs-runtime.vue.js")) }, { name: "tools", label: "工具栏", runtimeComponent: e(() => import("../views/assemblys/container/tools/tools-runtime.vue.js")) }, { name: "iframe", label: "Iframe", runtimeComponent: e(() => import("../views/assemblys/container/iframe/iframe-runtime.vue.js")) }, { name: "container", label: "布局", runtimeComponent: e(() => import("../views/assemblys/container/container/container-runtime.vue.js")) }] }, { name: "form", label: "表单", items: [{ name: "input-text", label: "文本框", runtimeComponent: e(() => import("../views/assemblys/form/input-text/inputtext-runtime.vue.js")) }, { name: "select", label: "下拉框", runtimeComponent: e(() => import("../views/assemblys/form/select/select-runtime.vue.js")) }, { name: "radio", label: "单选框", runtimeComponent: e(() => import("../views/assemblys/form/radio/radio-runtime.vue.js")) }, { name: "checkbox", label: "复选框", runtimeComponent: e(() => import("../views/assemblys/form/checkbox/checkbox-runtime.vue.js")) }, { name: "textarea", label: "文本域", runtimeComponent: e(() => import("../views/assemblys/form/textarea/textarea-runtime.vue.js")) }, { name: "datePicker", label: "日期/时间", runtimeComponent: e(() => import("../views/assemblys/form/date-picker/datepicker-runtime.vue.js")) }, { name: "switch", label: "开关", runtimeComponent: e(() => import("../views/assemblys/form/switch/switch-runtime.vue.js")) }, { name: "inputNumber", label: "计数器", runtimeComponent: e(() => import("../views/assemblys/form/input-number/input-number-runtime.vue.js")) }, { name: "tag", label: "标签", runtimeComponent: e(() => import("../views/assemblys/form/tag/tag-runtime.vue.js")) }, { name: "richText", label: "富文本", runtimeComponent: e(() => import("../views/assemblys/form/rich-text/richtext-runtime.vue.js")) }, { name: "divider", label: "分割线", runtimeComponent: e(() => import("../views/assemblys/form/divider/divider-runtime.vue.js")) }, { name: "separatelabel", label: "分割标签", runtimeComponent: e(() => import("../views/assemblys/form/separatelabel/separatelabel-runtime.vue.js")) }, { name: "placeholder", label: "占位符", runtimeComponent: e(() => import("../views/assemblys/form/placeholder/placeholder-runtime.vue.js")) }, { name: "link", label: "链接", runtimeComponent: e(() => import("../views/assemblys/form/link/link-runtime.vue.js")) }, { name: "label", label: "Label组件", runtimeComponent: e(() => import("../views/assemblys/form/label/label-runtime.vue.js")) }, { name: "dept-tree", label: "组织树", runtimeComponent: e(() => import("../views/assemblys/form/dept-tree/depttree-runtime.vue.js")) }, { name: "file-upload", label: "文件上传", runtimeComponent: e(() => import("../views/assemblys/form/file-upload/fileupload-runtime.vue.js")) }] }, { name: "button", label: "按钮", items: [{ name: "button-detail", label: "按钮", runtimeComponent: e(() => import("../views/assemblys/button/button/button-runtime.vue.js")) }, { name: "button-group", label: "按钮组", runtimeComponent: e(() => import("../views/assemblys/button/button-group/buttongroup-runtime.vue.js")) }, { name: "dropdown", label: "下拉菜单", runtimeComponent: e(() => import("../views/assemblys/button/dropdown/dropdown-runtime.vue.js")) }, { name: "print-label", label: "打印标签", runtimeComponent: e(() => import("../views/assemblys/button/print-label/printlabel-runtime.vue.js")) }, { name: "export-pdf", label: "打印标签", runtimeComponent: e(() => import("../views/assemblys/button/export-pdf/exportpdf-runtime.vue.js")) }] }, { name: "workflow", label: "工作流", items: [{ name: "workflow-button", label: "工作流按钮", runtimeComponent: e(() => import("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js")) }, { name: "picture-flow", label: "图形历史", runtimeComponent: e(() => import("../views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js")) }, { name: "text-flow", label: "文本历史", runtimeComponent: e(() => import("../views/assemblys/workflow/text-history/textflow-runtime.vue.js")) }, { name: "workflow-node", label: "流程环节", runtimeComponent: e(() => import("../views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js")) }] }, { name: "chart", label: "统计图", items: [{ name: "chart-column-line", label: "柱/折图", runtimeComponent: e(() => import("../views/assemblys/chart/column-line/column-line-runtime.vue.js")) }, { name: "chart-pie", label: "饼图", runtimeComponent: e(() => import("../views/assemblys/chart/pie/pie-runtime.vue.js")) }, { name: "chart-gauge", label: "仪表盘", runtimeComponent: e(() => import("../views/assemblys/chart/gauge/gauge-runtime.vue.js")) }, { name: "chart-radar", label: "雷达图", runtimeComponent: e(() => import("../views/assemblys/chart/radar/radar-runtime.vue.js")) }, { name: "chart-scatter", label: "散点图", runtimeComponent: e(() => import("../views/assemblys/chart/scatter/scatter-runtime.vue.js")) }, { name: "statistical-table", label: "统计表格", runtimeComponent: e(() => import("../views/assemblys/chart/table/table-runtime.vue.js")) }] }, { name: "data", label: "数据", items: [{ name: "table", label: "表格", runtimeComponent: e(() => import("../views/assemblys/data/table/table-runtime.vue.js")) }, { name: "tree", label: "树控件", runtimeComponent: e(() => import("../views/assemblys/data/tree/tree-runtime.vue.js")) }, { name: "bar-code", label: "条码", runtimeComponent: e(() => import("../views/assemblys/data/bar-code/barcode-runtime.vue.js")) }] }, { name: "other", label: "其他", items: [{ name: "custom", label: "自定义", runtimeComponent: e(() => import("../views/assemblys/form/custom/custom-runtime.vue.js")) }] }];
3
+ const m = [{ name: "container", label: "容器", icon: "assets/images/group-container.png", items: [{ name: "form", label: "表单", runtimeComponent: e(() => import("../views/assemblys/container/form/form-runtime.vue.js")) }, { name: "card", label: "卡片", runtimeComponent: e(() => import("../views/assemblys/container/card/card-runtime.vue.js")) }, { name: "collapse", label: "折叠面板", runtimeComponent: e(() => import("../views/assemblys/container/collapse/collapse-runtime.vue.js")) }, { name: "layout", label: "Flex", runtimeComponent: e(() => import("../views/assemblys/container/flex/flex-runtime.vue.js")) }, { name: "tabs", label: "Tabs", runtimeComponent: e(() => import("../views/assemblys/container/tabs/tabs-runtime.vue.js")) }, { name: "tools", label: "工具栏", runtimeComponent: e(() => import("../views/assemblys/container/tools/tools-runtime.js")) }, { name: "iframe", label: "Iframe", runtimeComponent: e(() => import("../views/assemblys/container/iframe/iframe-runtime.vue.js")) }, { name: "container", label: "布局", runtimeComponent: e(() => import("../views/assemblys/container/container/container-runtime.vue.js")) }] }, { name: "form", label: "表单", items: [{ name: "input-text", label: "文本框", runtimeComponent: e(() => import("../views/assemblys/form/input-text/inputtext-runtime.vue.js")) }, { name: "select", label: "下拉框", runtimeComponent: e(() => import("../views/assemblys/form/select/select-runtime.vue.js")) }, { name: "radio", label: "单选框", runtimeComponent: e(() => import("../views/assemblys/form/radio/radio-runtime.vue.js")) }, { name: "checkbox", label: "复选框", runtimeComponent: e(() => import("../views/assemblys/form/checkbox/checkbox-runtime.vue.js")) }, { name: "textarea", label: "文本域", runtimeComponent: e(() => import("../views/assemblys/form/textarea/textarea-runtime.vue.js")) }, { name: "datePicker", label: "日期/时间", runtimeComponent: e(() => import("../views/assemblys/form/date-picker/datepicker-runtime.vue.js")) }, { name: "switch", label: "开关", runtimeComponent: e(() => import("../views/assemblys/form/switch/switch-runtime.vue.js")) }, { name: "inputNumber", label: "计数器", runtimeComponent: e(() => import("../views/assemblys/form/input-number/input-number-runtime.vue.js")) }, { name: "tag", label: "标签", runtimeComponent: e(() => import("../views/assemblys/form/tag/tag-runtime.vue.js")) }, { name: "richText", label: "富文本", runtimeComponent: e(() => import("../views/assemblys/form/rich-text/richtext-runtime.vue.js")) }, { name: "divider", label: "分割线", runtimeComponent: e(() => import("../views/assemblys/form/divider/divider-runtime.vue.js")) }, { name: "separatelabel", label: "分割标签", runtimeComponent: e(() => import("../views/assemblys/form/separatelabel/separatelabel-runtime.vue.js")) }, { name: "placeholder", label: "占位符", runtimeComponent: e(() => import("../views/assemblys/form/placeholder/placeholder-runtime.vue.js")) }, { name: "link", label: "链接", runtimeComponent: e(() => import("../views/assemblys/form/link/link-runtime.vue.js")) }, { name: "label", label: "Label组件", runtimeComponent: e(() => import("../views/assemblys/form/label/label-runtime.vue.js")) }, { name: "dept-tree", label: "组织树", runtimeComponent: e(() => import("../views/assemblys/form/dept-tree/depttree-runtime.vue.js")) }, { name: "file-upload", label: "文件上传", runtimeComponent: e(() => import("../views/assemblys/form/file-upload/fileupload-runtime.vue.js")) }] }, { name: "button", label: "按钮", items: [{ name: "button-detail", label: "按钮", runtimeComponent: e(() => import("../views/assemblys/button/button/button-runtime.vue.js")) }, { name: "button-group", label: "按钮组", runtimeComponent: e(() => import("../views/assemblys/button/button-group/buttongroup-runtime.vue.js")) }, { name: "dropdown", label: "下拉菜单", runtimeComponent: e(() => import("../views/assemblys/button/dropdown/dropdown-runtime.vue.js")) }, { name: "print-label", label: "打印标签", runtimeComponent: e(() => import("../views/assemblys/button/print-label/printlabel-runtime.vue.js")) }, { name: "export-pdf", label: "打印标签", runtimeComponent: e(() => import("../views/assemblys/button/export-pdf/exportpdf-runtime.vue.js")) }] }, { name: "workflow", label: "工作流", items: [{ name: "workflow-button", label: "工作流按钮", runtimeComponent: e(() => import("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js")) }, { name: "picture-flow", label: "图形历史", runtimeComponent: e(() => import("../views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js")) }, { name: "text-flow", label: "文本历史", runtimeComponent: e(() => import("../views/assemblys/workflow/text-history/textflow-runtime.vue.js")) }, { name: "workflow-node", label: "流程环节", runtimeComponent: e(() => import("../views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js")) }] }, { name: "chart", label: "统计图", items: [{ name: "chart-column-line", label: "柱/折图", runtimeComponent: e(() => import("../views/assemblys/chart/column-line/column-line-runtime.vue.js")) }, { name: "chart-pie", label: "饼图", runtimeComponent: e(() => import("../views/assemblys/chart/pie/pie-runtime.vue.js")) }, { name: "chart-gauge", label: "仪表盘", runtimeComponent: e(() => import("../views/assemblys/chart/gauge/gauge-runtime.vue.js")) }, { name: "chart-radar", label: "雷达图", runtimeComponent: e(() => import("../views/assemblys/chart/radar/radar-runtime.vue.js")) }, { name: "chart-scatter", label: "散点图", runtimeComponent: e(() => import("../views/assemblys/chart/scatter/scatter-runtime.vue.js")) }, { name: "statistical-table", label: "统计表格", runtimeComponent: e(() => import("../views/assemblys/chart/table/table-runtime.vue.js")) }] }, { name: "data", label: "数据", items: [{ name: "table", label: "表格", runtimeComponent: e(() => import("../views/assemblys/data/table/table-runtime.vue.js")) }, { name: "tree", label: "树控件", runtimeComponent: e(() => import("../views/assemblys/data/tree/tree-runtime.vue.js")) }, { name: "bar-code", label: "条码", runtimeComponent: e(() => import("../views/assemblys/data/bar-code/barcode-runtime.vue.js")) }] }, { name: "other", label: "其他", items: [{ name: "custom", label: "自定义", runtimeComponent: e(() => import("../views/assemblys/form/custom/custom-runtime.vue.js")) }] }];
4
4
  function n(e2) {
5
5
  if (!e2) return null;
6
6
  for (let n2 = 0; n2 < m.length; n2++) {
@@ -13,6 +13,17 @@ export declare enum PageDimensions {
13
13
  IPAD = "ipad",
14
14
  PHONE = "phone"
15
15
  }
16
+ /**
17
+ * 组件配置的属性
18
+ */
19
+ export interface ComponentProps {
20
+ align?: 'left' | 'center' | 'flex-end';
21
+ isAffix?: boolean;
22
+ isFixed?: boolean;
23
+ position?: 'default' | 'top' | 'bottom';
24
+ offset?: number;
25
+ [key: string]: any;
26
+ }
16
27
  /**
17
28
  * 组件对象
18
29
  */
@@ -30,7 +41,7 @@ export interface Component extends Object {
30
41
  docHref?: string;
31
42
  parent?: Component;
32
43
  items?: Component[];
33
- props?: any;
44
+ props?: ComponentProps;
34
45
  style?: any;
35
46
  events?: ComponentEvent[];
36
47
  methods?: ComponentMethod[];
@@ -0,0 +1,33 @@
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as s, onUnmounted as o, watch as n, createVNode as d } from "vue";
2
+ const l = e({ name: "FixedBox", props: { isFixed: { type: Boolean, default: true }, position: { type: String, default: "top" }, offset: { type: Number, default: 0 } }, setup(e2, { slots: l2 }) {
3
+ const a = t(), u = t({}), r = t({}), p = [], v = () => {
4
+ (() => {
5
+ if (a.value) {
6
+ const t2 = a.value.getBoundingClientRect();
7
+ u.value = { width: `${t2.width}px`, height: `${t2.height}px` }, r.value = { width: `${t2.width}px`, position: e2.isFixed ? "fixed" : "static", [e2.position]: `${e2.offset}px`, left: `${t2.left}px`, zIndex: 100, pointerEvents: "auto" };
8
+ } else u.value = {}, r.value = {};
9
+ })();
10
+ }, f = (e3) => {
11
+ e3 ? ((() => {
12
+ if (p.forEach((e4) => e4.disconnect()), p.length = 0, a.value) {
13
+ const e4 = new ResizeObserver(v);
14
+ e4.observe(a.value), p.push(e4);
15
+ }
16
+ })(), window.addEventListener("resize", v)) : (window.removeEventListener("resize", v), p.forEach((e4) => e4.disconnect())), v();
17
+ };
18
+ i(() => {
19
+ s(() => {
20
+ f(e2.isFixed);
21
+ });
22
+ }), o(() => {
23
+ f(false);
24
+ }), n(() => e2.isFixed, f);
25
+ const x = () => {
26
+ var _a;
27
+ return d("div", { ref: a, style: r.value }, [(_a = l2.default) == null ? void 0 : _a.call(l2)]);
28
+ };
29
+ return e2.isFixed ? () => d("div", { style: u.value }, [x()]) : x;
30
+ } });
31
+ export {
32
+ l as default
33
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as e, ref as t, computed as o, watch as l, onMounted as n, onUnmounted as r, createVNode as s, resolveComponent as a, nextTick as i } from "vue";
2
+ const u = e({ name: "SmartAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top" }, dynamicOffset: { type: Boolean, default: true }, identifier: { type: String, default: () => `affix-${Math.random().toString(36).substr(2, 9)}` } }, setup(e2, { slots: u2 }) {
3
+ const f = t(), v = t(null), d = t(0), p = [], c = o(() => ["top", "bottom"].includes(e2.position)), m = (e3, t2 = 0) => {
4
+ if (!e3 || t2 > 20) return null;
5
+ const o2 = getComputedStyle(e3);
6
+ return /(auto|scroll|overlay)/.test(o2.overflow + o2.overflowY + o2.overflowX) ? e3 : m(e3.parentElement, t2 + 1);
7
+ }, w = () => {
8
+ var _a, _b;
9
+ if (!v.value || v.value === document.documentElement) return void (d.value = 0);
10
+ const { top: t2 = 0, bottom: o2 = 0 } = ((_b = (_a = v.value) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a)) ?? {};
11
+ d.value = "top" === e2.position ? t2 : window.innerHeight - o2;
12
+ }, g = o(() => e2.dynamicOffset ? e2.offset + d.value : e2.offset), y = () => {
13
+ var _a, _b;
14
+ f.value && (v.value || (v.value = m(f.value), (_b = (_a = v.value) == null ? void 0 : _a.addEventListener) == null ? void 0 : _b.call(_a, "scroll", w, { passive: true })), w());
15
+ }, E = (e3) => {
16
+ var _a, _b, _c;
17
+ if (p.forEach((e4) => e4.disconnect()), p.length = 0, e3) {
18
+ const e4 = new ResizeObserver(y);
19
+ f.value && (e4.observe(f.value), p.push(e4));
20
+ let t2 = (_a = f.value) == null ? void 0 : _a.parentElement;
21
+ for (; t2; ) {
22
+ const e5 = new ResizeObserver(y);
23
+ e5.observe(t2), p.push(e5), t2 = t2.parentElement;
24
+ }
25
+ window.addEventListener("scroll", w, { passive: true }), i(y), setTimeout(y, 1e3);
26
+ } else window.removeEventListener("scroll", w), (_c = (_b = v.value) == null ? void 0 : _b.removeEventListener) == null ? void 0 : _c.call(_b, "scroll", w);
27
+ };
28
+ return l(c, E), n(() => {
29
+ E(c.value);
30
+ }), r(() => {
31
+ E(false);
32
+ }), () => {
33
+ var _a;
34
+ return c.value ? s("div", { ref: f }, [s(a("el-affix"), { target: v.value, offset: g.value, position: e2.position, key: e2.identifier }, { default: () => {
35
+ var _a2;
36
+ return [(_a2 = u2.default) == null ? void 0 : _a2.call(u2)];
37
+ } })]) : (_a = u2.default) == null ? void 0 : _a.call(u2);
38
+ };
39
+ } });
40
+ export {
41
+ u as default
42
+ };
@@ -1,25 +1,20 @@
1
- import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as m, withCtx as p, createCommentVNode as c, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
2
- import b from "../../object-render.vue.js";
3
- import "../../../../utils/global-refs.js";
4
- import "agilebuilder-ui/src/utils/common-util";
5
- import "agilebuilder-ui/src/utils/util";
6
- import "agilebuilder-ui/src/utils/request";
7
- import "dayjs";
8
- import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
- import { handleFormEvent as v } from "../../../../utils/events/event-util.js";
10
- const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
11
- const x2 = e2;
12
- x2.configure.items || (x2.configure.items = []);
13
- const C = x2.configure.runtime ? x2.configure.runtime : {}, j = C.props ? C.props : {}, h = t(C.style ? C.style : {}), _ = C.class, k = t(C.titleStyle ? C.titleStyle : {}), w = t(null);
14
- return i(() => {
15
- l(() => {
16
- v(null, x2.pageContext, x2.configure, "afterFormLoad", { componentRef: w.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as i, resolveComponent as n, createElementBlock as l, openBlock as s, createVNode as a, normalizeClass as r, normalizeStyle as u, unref as p, withCtx as f, createCommentVNode as m, toDisplayString as g, Fragment as c, renderList as d, createBlock as y } from "vue";
2
+ import v from "../../object-render.vue.js";
3
+ import { PageDimensions as x } from "../../../../utils/interfaces/page-design-types.js";
4
+ import { handleFormEvent as C } from "../../../../utils/events/event-util.js";
5
+ const b = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
+ const b2 = e2;
7
+ b2.configure.items || (b2.configure.items = []);
8
+ const h = b2.configure.runtime ? b2.configure.runtime : {}, j = h.props ? h.props : {}, _ = t(h.style ? h.style : {}), k = h.class, w = t(h.titleStyle ? h.titleStyle : {}), z = t(j.labelPosition), P = t(null), S = b2.pageContext && b2.pageContext.dimensions ? b2.pageContext.dimensions : x.PC;
9
+ return S && S === x.PHONE && (z.value = "top"), o(() => {
10
+ i(() => {
11
+ C(null, b2.pageContext, b2.configure, "afterFormLoad", { componentRef: P.value, entity: b2.pageContext.entity.data, pageData: b2.pageContext.entity.page });
17
12
  });
18
13
  }), (e3, t2) => {
19
- const i2 = o("el-form");
20
- return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": m(j).labelWidth, "label-position": m(j).labelPosition, size: m(j).componentSize, style: a(h.value), class: n(m(_)) }, { default: p(() => [m(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(m(j).formTitle), 5)) : c("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
14
+ const o2 = n("el-form");
15
+ return s(), l("div", null, [a(o2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e3.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
21
16
  };
22
17
  } });
23
18
  export {
24
- x as default
19
+ b as default
25
20
  };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createVNode as u, isVNode as r } from "vue";
2
+ import l from "../../object-render.vue.js";
3
+ import { handleAfterInitEvent as s } from "../../../../utils/events/event-util.js";
4
+ import f from "../fixed/SmartAffix.js";
5
+ import p from "../fixed/FixedBox.js";
6
+ function c(e2) {
7
+ return "function" == typeof e2 || "[object Object]" === Object.prototype.toString.call(e2) && !r(e2);
8
+ }
9
+ const v = e({ name: "AmbWidgetTools", props: { pageContext: { type: Object, required: true }, configure: { type: Object, required: true } }, setup(e2) {
10
+ var _a;
11
+ const r2 = t(null), v2 = e2.configure.runtime ?? {}, d = v2.class, g = o(() => e2.configure.props), m = o(() => {
12
+ const { gap: e3 } = g.value ?? {};
13
+ return { ...e3 ? { gap: `${e3}px` } : {}, ...v2.style ?? {} };
14
+ }), x = o(() => {
15
+ var _a2, _b, _c;
16
+ return !![(_a2 = g.value) == null ? void 0 : _a2.isAffix, (_b = g.value) == null ? void 0 : _b.isFixed].every((e3) => void 0 === e3) || ((_c = g.value) == null ? void 0 : _c.isAffix);
17
+ }), y = o(() => {
18
+ var _a2;
19
+ return (_a2 = g.value) == null ? void 0 : _a2.isFixed;
20
+ }), b = o(() => {
21
+ var _a2;
22
+ return (_a2 = g.value) == null ? void 0 : _a2.position;
23
+ }), j = o(() => {
24
+ var _a2;
25
+ return ((_a2 = g.value) == null ? void 0 : _a2.offset) ?? 0;
26
+ });
27
+ i(() => {
28
+ a(() => {
29
+ s(null, e2.pageContext, e2.configure, { componentRef: r2.value, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page });
30
+ });
31
+ }), n(() => {
32
+ });
33
+ const C = u("div", { class: "amb-widget-tools-parent" }, [u("div", { class: ["amb-widget-container-tool amb-widget-tools", d], style: m.value, ref: r2 }, [(_a = e2.configure.items) == null ? void 0 : _a.map((t2) => u(l, { pageContext: e2.pageContext, configure: t2, key: t2.uuid }, null))])]);
34
+ return y.value ? () => u(p, { isFixed: true, offset: j.value, position: b.value }, c(C) ? C : { default: () => [C] }) : x.value ? () => u(f, { offset: j.value, position: b.value }, c(C) ? C : { default: () => [C] }) : () => C;
35
+ } });
36
+ export {
37
+ v as default
38
+ };
@@ -1,63 +1,63 @@
1
- import { defineComponent as e, ref as t, markRaw as o, onMounted as n, resolveDirective as i, withDirectives as u, createCommentVNode as s, unref as r, createBlock as l, openBlock as c, resolveDynamicComponent as p, normalizeClass as a, normalizeStyle as f, vShow as g, nextTick as v } from "vue";
2
- import m from "./error-render.vue.js";
1
+ import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as u, unref as s, createBlock as l, openBlock as c, resolveDynamicComponent as f, normalizeClass as g, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
2
+ import v from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
4
- import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as h, addComponentRefByCode as C } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as y, controlObjectRenderState as b } from "../../utils/page-init-util.js";
7
- import { getFormPropName as w, getSizeConfig as j } from "../../utils/page-helper-util.js";
8
- import { getPropClassName as _, isNumber as B } from "../../utils/common-util.js";
9
- import { isShowComponent as R } from "../../utils/events/event-util.js";
10
- const O = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
11
- const O2 = e2;
12
- null == O2.configure.style && (O2.configure.style = {});
13
- const $ = y(O2.configure, O2.pageContext);
14
- O2.configure && O2.configure.props && O2.configure.props.base && (O2.configure.props.base.functionCode = $);
15
- let H = t(true), N = t(true);
16
- const k = t({});
17
- k.value = o(d(O2.configure.name));
18
- const P = t(true);
19
- null == k.value && (k.value = m, P.value = false);
20
- const S = t(null), W = t({}), q = t(""), z = _(O2.configure);
4
+ import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as C, addComponentRefByCode as x } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as h, controlObjectRenderState as b } from "../../utils/page-init-util.js";
7
+ import { getFormPropName as j, getSizeConfig as w } from "../../utils/page-helper-util.js";
8
+ import { getPropClassName as _, isNumber as O } from "../../utils/common-util.js";
9
+ import { isShowComponent as $ } from "../../utils/events/event-util.js";
10
+ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
11
+ const H2 = e2;
12
+ null == H2.configure.style && (H2.configure.style = {});
13
+ const N = h(H2.configure, H2.pageContext);
14
+ H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = N);
15
+ let k = o(true), B = o(true);
16
+ const P = o({});
17
+ P.value = t(d(H2.configure.name));
18
+ const R = o(true);
19
+ null == P.value && (P.value = v, R.value = false);
20
+ const S = o(null), W = o({}), q = o(""), z = _(H2.configure);
21
21
  z && (q.value = z);
22
- const A = O2.configure.runtime && O2.configure.runtime.common ? O2.configure.runtime.common : {};
22
+ const A = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
23
23
  if (A.class && (q.value += " " + A.class), A.style) {
24
24
  Object.assign(W.value, A.style);
25
- const e3 = O2.pageContext && O2.pageContext.dimensions ? O2.pageContext.dimensions : x.PC, t2 = A.style[e3 + "_style"];
26
- t2 && Object.assign(W.value, t2);
27
- const o2 = A.style[e3 + "_class"];
28
- o2 && (q.value += " " + o2);
25
+ const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : y.PC, o2 = A.style[e3 + "_style"];
26
+ o2 && Object.assign(W.value, o2);
27
+ const t2 = A.style[e3 + "_class"];
28
+ t2 && (q.value += " " + t2);
29
29
  }
30
30
  function D(e3) {
31
31
  if (S.value = e3, e3 && !e3.show && (e3.show = function() {
32
- H.value = true;
32
+ k.value = true;
33
33
  }), e3 && !e3.hide && (e3.hide = function() {
34
- H.value = false;
34
+ k.value = false;
35
35
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
36
- return O2.configure;
37
- }), O2.configure.uuid && h(O2.pageContext, O2.configure.uuid, S), O2.configure.code) C(O2.pageContext, O2.configure.code, S);
38
- else if (O2.configure.props && O2.configure.props.base) {
39
- const e4 = O2.configure.props.base;
36
+ return H2.configure;
37
+ }), H2.configure.uuid && C(H2.pageContext, H2.configure.uuid, S), H2.configure.code) x(H2.pageContext, H2.configure.code, S);
38
+ else if (H2.configure.props && H2.configure.props.base) {
39
+ const e4 = H2.configure.props.base;
40
40
  if (e4.prop) {
41
- let t3 = e4.prop;
42
- t3.startsWith("${") && (t3 = t3.substring(2, t3.length - 1)), t3.includes(".") && (t3 = t3.substring(t3.indexOf(".") + 1)), C(O2.pageContext, t3, S);
41
+ let o3 = e4.prop;
42
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), x(H2.pageContext, o3, S);
43
43
  }
44
44
  }
45
- const t2 = O2.configure.props ? O2.configure.props.base : null;
46
- if (t2 && t2.prop) {
47
- let e4 = t2.prop;
48
- e4 = w(e4), b(O2.pageContext, e4);
45
+ const o2 = H2.configure.props ? H2.configure.props.base : null;
46
+ if (o2 && o2.prop) {
47
+ let e4 = o2.prop;
48
+ e4 = j(e4), b(H2.pageContext, e4);
49
49
  }
50
50
  !function() {
51
51
  if (!S.value) return;
52
- const e4 = j(O2.pageContext, O2.configure);
53
- "table" !== O2.configure.name && e4 && e4.isCalcHeight && v(() => {
52
+ const e4 = w(H2.pageContext, H2.configure);
53
+ "table" !== H2.configure.name && e4 && e4.isCalcHeight && m(() => {
54
54
  let e5 = S.value.$el;
55
55
  e5 || (e5 = S.value);
56
- const t3 = e5.parentNode;
57
- if (!e5 || !t3) return;
58
- const o2 = e5.getBoundingClientRect();
59
- let n2 = window.innerHeight - o2.y - 80, i2 = n2 + "";
60
- B(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", O2.configure.sytle || (O2.configure.sytle = {}), O2.configure.sytle._heightStyle = i2;
56
+ const o3 = e5.parentNode;
57
+ if (!e5 || !o3) return;
58
+ const t2 = e5.getBoundingClientRect();
59
+ let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
60
+ O(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", H2.configure.sytle || (H2.configure.sytle = {}), H2.configure.sytle._heightStyle = i2;
61
61
  });
62
62
  }();
63
63
  }
@@ -68,30 +68,16 @@ const O = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
68
68
  if (!S.value) return;
69
69
  let e3 = S.value.$el;
70
70
  e3 || (e3 = S.value);
71
- const t2 = e3.parentNode;
72
- if (!e3 || !t2) return;
73
- const o2 = O2.configure.props ? O2.configure.props : {}, n2 = O2.configure.style ? O2.configure.style : {}, i2 = o2.position;
74
- if ("top" == i2 || "bottom" == i2) {
75
- const o3 = [t2];
76
- if (o3 && o3.length > 0) {
77
- const e4 = o3[0].getBoundingClientRect();
78
- "top" == i2 && (W.value.top = e4.top + "px"), "bottom" == i2 && (W.value.bottom = "10px");
79
- }
80
- const n3 = e3.getBoundingClientRect();
81
- W.value.width = n3.width + "px";
82
- } else if (n2.position && (W.value.position = n2.position, "relative" != W.value.position)) {
83
- if (!W.value.width) {
84
- const t3 = e3.getBoundingClientRect();
85
- W.value.width = t3.width + "px";
86
- }
87
- n2.left && (W.value.left = n2.left + "px"), n2.top && (W.value.top = n2.top + "px");
88
- }
71
+ const o2 = e3.parentNode;
72
+ if (!e3 || !o2) return;
73
+ const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
74
+ "top" == i2 || "bottom" == i2 || n2.position;
89
75
  };
90
- return (e3, t2) => {
91
- const o2 = i("permission");
92
- return r(R)(e3.configure) ? u((c(), l(p(k.value), { key: 0, ref: D, style: f(W.value), class: a(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[g, r(N)], [o2, r($) ? r($) : "true"]]) : s("", true);
76
+ return (e3, o2) => {
77
+ const t2 = i("permission");
78
+ return s($)(e3.configure) ? r((c(), l(f(P.value), { key: 0, ref: D, style: a(W.value), class: g(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, s(B)], [t2, s(N) ? s(N) : "true"]]) : u("", true);
93
79
  };
94
80
  } });
95
81
  export {
96
- O as default
82
+ H as default
97
83
  };
@@ -1,105 +1,105 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as p, createBlock as a, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as v } from "vue";
2
- import C from "./error-render.vue.js";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
2
+ import v from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
5
  import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as B } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as L, getPropClassName as O, isNumber as R } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as S, isShowComponent as M } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as T } from "../../utils/page-store.js";
11
- const $ = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
6
+ import { getPermissionCodes as j, packageFormRules as w, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
7
+ import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
9
+ import { isShowMobileEvent as T, isShowComponent as $ } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as E } from "../../utils/page-store.js";
11
+ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
12
12
  var _a, _b;
13
- const $2 = e2;
14
- null == $2.configure.style && ($2.configure.style = {});
15
- const E = w($2.configure, $2.pageContext);
16
- $2.configure && $2.configure.props && $2.configure.props.base && ($2.configure.props.base.functionCode = E), j($2.pageContext, $2.configure);
17
- let H = o(true), k = o(true), F = o("");
18
- if ($2.configure && $2.configure.props) {
13
+ const H2 = e2;
14
+ null == H2.configure.style && (H2.configure.style = {});
15
+ const k = j(H2.configure, H2.pageContext);
16
+ H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k), w(H2.pageContext, H2.configure);
17
+ let B = o(true), F = o(true), J = o("");
18
+ if (H2.configure && H2.configure.props) {
19
19
  let e3 = [];
20
- ((_a = $2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof $2.configure.props.base.showConditions ? JSON.parse($2.configure.props.base.showConditions) : $2.configure.props.base.showConditions), k = t(() => {
20
+ ((_a = H2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof H2.configure.props.base.showConditions ? JSON.parse(H2.configure.props.base.showConditions) : H2.configure.props.base.showConditions), F = t(() => {
21
21
  var _a2;
22
22
  let o2 = true;
23
- if (H.value) if (S($2.pageContext, $2.configure)) if (e3 && e3.length > 0) o2 = N($2.pageContext, e3);
23
+ if (B.value) if (T(H2.pageContext, H2.configure)) if (e3 && e3.length > 0) o2 = N(H2.pageContext, e3);
24
24
  else {
25
- const e4 = (_a2 = $2.configure.props.base) == null ? void 0 : _a2.state;
25
+ const e4 = (_a2 = H2.configure.props.base) == null ? void 0 : _a2.state;
26
26
  e4 && "hidden" === e4 && (o2 = false);
27
27
  }
28
28
  else o2 = false;
29
29
  else o2 = false;
30
30
  return o2;
31
31
  });
32
- if ($2.configure._dynamicShowFlag = k, (_b = $2.configure.props.base) == null ? void 0 : _b.editConditions) {
33
- const e4 = $2.configure.props.base.editConditions;
32
+ if (H2.configure._dynamicShowFlag = F, (_b = H2.configure.props.base) == null ? void 0 : _b.editConditions) {
33
+ const e4 = H2.configure.props.base.editConditions;
34
34
  if (e4.length > 0) {
35
- const o2 = $2.configure.runtime ? $2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
36
- if (n2.rawSate = n2.state, L($2.pageContext) && $2.pageContext.fieldPermissionMap) {
37
- const e5 = $2.pageContext.fieldPermissionMap.get("all_fields");
38
- if (false === (e5 == null ? void 0 : e5.canEdit)) F.value = "disabled";
35
+ const o2 = H2.configure.runtime ? H2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
36
+ if (n2.rawSate = n2.state, O(H2.pageContext) && H2.pageContext.fieldPermissionMap) {
37
+ const e5 = H2.pageContext.fieldPermissionMap.get("all_fields");
38
+ if (false === (e5 == null ? void 0 : e5.canEdit)) J.value = "disabled";
39
39
  else {
40
- const e6 = $2.configure.props.base;
40
+ const e6 = H2.configure.props.base;
41
41
  if (e6 && e6.prop) {
42
42
  let o3 = e6.prop;
43
43
  o3 = P(o3);
44
- const t2 = $2.pageContext.fieldPermissionMap.get(o3);
45
- t2 && false === t2.canEdit && (F.value = "disabled");
44
+ const t2 = H2.pageContext.fieldPermissionMap.get(o3);
45
+ t2 && false === t2.canEdit && (J.value = "disabled");
46
46
  }
47
47
  }
48
48
  }
49
49
  n2.state = t({ get() {
50
- if ("disabled" === F.value) return F.value;
51
- return N($2.pageContext, e4) ? "" : "disabled";
50
+ if ("disabled" === J.value) return J.value;
51
+ return N(H2.pageContext, e4) ? "" : "disabled";
52
52
  }, set() {
53
53
  } });
54
54
  }
55
55
  }
56
56
  }
57
- const J = o({});
58
- J.value = n(b($2.configure.name));
57
+ const R = o({});
58
+ R.value = n(b(H2.configure.name));
59
59
  const W = o(true);
60
- null == J.value && (J.value = C, W.value = false);
61
- const q = o(null), z = o({}), A = o(""), D = O($2.configure);
60
+ null == R.value && (R.value = v, W.value = false);
61
+ const q = o(null), z = o({}), A = o(""), D = S(H2.configure);
62
62
  D && (A.value = D);
63
- const G = $2.configure.runtime && $2.configure.runtime.common ? $2.configure.runtime.common : {};
63
+ const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
64
64
  if (G.class && (A.value += " " + G.class), G.style) {
65
65
  Object.assign(z.value, G.style);
66
- const e3 = $2.pageContext && $2.pageContext.dimensions ? $2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
66
+ const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
67
67
  o2 && Object.assign(z.value, o2);
68
68
  const t2 = G.style[e3 + "_class"];
69
69
  t2 && (A.value += " " + t2);
70
70
  }
71
- const I = T();
71
+ const I = E();
72
72
  function K(e3) {
73
73
  if (q.value = e3, e3 && !e3.show && (e3.show = function() {
74
- H.value = true;
74
+ B.value = true;
75
75
  }), e3 && !e3.hide && (e3.hide = function() {
76
- H.value = false;
76
+ B.value = false;
77
77
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
78
- return $2.configure;
79
- }), $2.configure.uuid && h($2.pageContext, $2.configure.uuid, q), $2.configure.code) y($2.pageContext, $2.configure.code, q);
80
- else if ($2.configure.props && $2.configure.props.base) {
81
- const e4 = $2.configure.props.base;
78
+ return H2.configure;
79
+ }), H2.configure.uuid && h(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
80
+ else if (H2.configure.props && H2.configure.props.base) {
81
+ const e4 = H2.configure.props.base;
82
82
  if (e4.prop) {
83
83
  let o3 = e4.prop;
84
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y($2.pageContext, o3, q);
84
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(H2.pageContext, o3, q);
85
85
  }
86
86
  }
87
- const o2 = $2.configure.props ? $2.configure.props.base : null;
87
+ const o2 = H2.configure.props ? H2.configure.props.base : null;
88
88
  if (o2 && o2.prop) {
89
89
  let e4 = o2.prop;
90
- e4 = P(e4), _($2.pageContext, e4);
90
+ e4 = P(e4), _(H2.pageContext, e4);
91
91
  }
92
92
  !function() {
93
93
  if (!q.value) return;
94
- const e4 = B($2.pageContext, $2.configure);
95
- "table" !== $2.configure.name && e4 && e4.isCalcHeight && v(() => {
94
+ const e4 = L(H2.pageContext, H2.configure);
95
+ "table" !== H2.configure.name && e4 && e4.isCalcHeight && C(() => {
96
96
  let e5 = q.value.$el;
97
97
  e5 || (e5 = q.value);
98
98
  const o3 = e5.parentNode;
99
99
  if (!e5 || !o3) return;
100
100
  const t2 = e5.getBoundingClientRect();
101
101
  let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
102
- R(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", $2.configure.sytle || ($2.configure.sytle = {}), $2.configure.sytle._heightStyle = i2;
102
+ M(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", H2.configure.sytle || (H2.configure.sytle = {}), H2.configure.sytle._heightStyle = i2;
103
103
  });
104
104
  }();
105
105
  }
@@ -117,28 +117,14 @@ const $ = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
117
117
  e3 || (e3 = q.value);
118
118
  const o2 = e3.parentNode;
119
119
  if (!e3 || !o2) return;
120
- const t2 = $2.configure.props ? $2.configure.props : {}, n2 = $2.configure.style ? $2.configure.style : {}, i2 = t2.position;
121
- if ("top" == i2 || "bottom" == i2) {
122
- const t3 = [o2];
123
- if (t3 && t3.length > 0) {
124
- const e4 = t3[0].getBoundingClientRect();
125
- "top" == i2 && (z.value.top = e4.top + "px"), "bottom" == i2 && (z.value.bottom = "10px");
126
- }
127
- const n3 = e3.getBoundingClientRect();
128
- z.value.width = n3.width + "px";
129
- } else if (n2.position && (z.value.position = n2.position, "relative" != z.value.position)) {
130
- if (!z.value.width) {
131
- const o3 = e3.getBoundingClientRect();
132
- z.value.width = o3.width + "px";
133
- }
134
- n2.left && (z.value.left = n2.left + "px"), n2.top && (z.value.top = n2.top + "px");
135
- }
120
+ const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
121
+ "top" == i2 || "bottom" == i2 || n2.position;
136
122
  };
137
123
  return (e3, o2) => {
138
124
  const t2 = r("permission");
139
- return p(M)(e3.configure) ? u((c(), a(g(J.value), { key: 0, ref: K, style: d(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, p(k)], [t2, p(E) ? p(E) : "true"]]) : l("", true);
125
+ return a($)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: d(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(F)], [t2, a(k) ? a(k) : "true"]]) : l("", true);
140
126
  };
141
127
  } });
142
128
  export {
143
- $ as default
129
+ H as default
144
130
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n, createElementBlock as o, openBlock as i, createCommentVNode as s, normalizeStyle as r, normalizeClass as v, createBlock as p, createElementVNode as m, Fragment as g, renderList as f, unref as c, watch as d } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n, createElementBlock as o, openBlock as i, createCommentVNode as s, normalizeStyle as r, normalizeClass as v, createBlock as p, createElementVNode as m, Fragment as g, renderList as c, unref as f, watch as d } from "vue";
2
2
  import y from "./assemblys/object-render.vue.js";
3
3
  import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
4
4
  import { queryPageSuperGrids as b, queryPageDesignByCode as P, convertToPageContext as j, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
@@ -8,7 +8,7 @@ import _ from "./assemblys/common/export-form-report-dialog.vue.js";
8
8
  import R from "./assemblys/common/task-informition-dialog.vue.js";
9
9
  import O from "./assemblys/common/remove-signer-dialog.vue.js";
10
10
  import F from "../utils/eventBus.js";
11
- import { getTaskInformitions as M, getRemoveSigner as V, getFormData as E, exportFormReport as W, doImportFinally as B, doAddSigner as H, doCreateCopyTask as J, doAssign as U, doReturnTaskTo as G, doRemoveSigners as L, updateValuesWhenCloseDialog as z, refreshFormOrListPage as A, getAdditionalParamMap as K } from "../utils/events/standard-event.js";
11
+ import { getTaskInformitions as M, getRemoveSigner as V, getFormData as E, exportFormReport as B, doImportFinally as H, doAddSigner as W, doCreateCopyTask as J, doAssign as U, doReturnTaskTo as G, doRemoveSigners as L, updateValuesWhenCloseDialog as z, refreshFormOrListPage as A, getAdditionalParamMap as K } from "../utils/events/standard-event.js";
12
12
  import "../utils/api/api-util.js";
13
13
  import { ElMessage as Q } from "element-plus";
14
14
  import { useI18n as X } from "vue-i18n";
@@ -22,34 +22,34 @@ import { deepCopy as oe, isNumber as ie, refreshMobileDialogType as se } from ".
22
22
  import { isMobileBrowser as re } from "agilebuilder-ui/src/utils/common-util";
23
23
  import { usePageContextStore as ve } from "../utils/page-store.js";
24
24
  import pe from "agilebuilder-ui/src/store";
25
- const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ge2, emit: fe }) {
26
- const ce = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null), Se = l(false), Te = l([]), Ie = l([]), _e = l(false), Re = l(null), Oe = l(false), Fe = l(false), Me = l(null), Ve = l(null), Ee = l(null), We = l(null);
27
- let Be = l(null);
28
- const He = l(null), Je = l(null), Ue = le(), Ge = l(0), Le = re();
25
+ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ge2, emit: ce }) {
26
+ const fe = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null), Se = l(false), Te = l([]), Ie = l([]), _e = l(false), Re = l(null), Oe = l(false), Fe = l(false), Me = l(null), Ve = l(null), Ee = l(null), Be = l(null);
27
+ let He = l(null);
28
+ const We = l(null), Je = l(null), Ue = le(), Ge = l(0), Le = re();
29
29
  let ze, Ae, Ke;
30
30
  function Qe(e3) {
31
31
  var _a;
32
32
  const l2 = j(e3);
33
- if (l2.isTest = ye.isTest, l2.isTest && ye.dimensions && (l2.dimensions = ye.dimensions), ye.isDialog || (k(l2.entity.request), $(Ue, l2.entity.request)), x(ye.pageRequest, l2.entity.request), Be.value = l2, null == Be.value) return;
33
+ if (l2.isTest = ye.isTest, l2.isTest && ye.dimensions && (l2.dimensions = ye.dimensions), ye.isDialog || (k(l2.entity.request), $(Ue, l2.entity.request)), x(ye.pageRequest, l2.entity.request), He.value = l2, null == He.value) return;
34
34
  ze = setTimeout(() => {
35
35
  !function(e4, l3) {
36
36
  if (!l3 || 0 == l3.length) return;
37
37
  const a3 = l3.filter((e5) => "remote" != e5.filterType);
38
38
  a3 && a3.length > 0 && h(e4, a3, void 0);
39
- }(Be.value, e3.initOptionConfigs);
39
+ }(He.value, e3.initOptionConfigs);
40
40
  }, 0), Ae = setTimeout(() => {
41
41
  !function(e4, l3) {
42
42
  if (!l3 || 0 == l3.length) return;
43
43
  e4.initChartData = {}, e4.initChartData.data = oe(e4.entity.data), e4.initChartData.page = oe(e4.entity.page), l3 && l3.length > 0 && C(e4, l3, null, true);
44
- }(Be.value, e3.initChartServiceConfigs);
45
- }, 200), Be.value.initDataSources = [], N(Be.value), Ce.value = Be.value.items ? Be.value.items : [];
46
- const a2 = Be.value.runtime ? Be.value.runtime : {};
47
- be.value = a2.class, Pe.value = a2.style, T(e3, Be.value), Z(Be.value.rules), S(null, Be.value, e3, "beforeload");
48
- const t2 = Be.value.code;
49
- return ce.setPageContext(Be.value), qe.value = t2 + "_", F.$on(qe.value + "export-form-report", (e4) => {
50
- ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
44
+ }(He.value, e3.initChartServiceConfigs);
45
+ }, 200), He.value.initDataSources = [], N(He.value), Ce.value = He.value.items ? He.value.items : [];
46
+ const a2 = He.value.runtime ? He.value.runtime : {};
47
+ be.value = a2.class, Pe.value = a2.style, T(e3, He.value), Z(He.value.rules), S(null, He.value, e3, "beforeload");
48
+ const t2 = He.value.code;
49
+ return fe.setPageContext(He.value), qe.value = t2 + "_", F.$on(qe.value + "export-form-report", (e4) => {
50
+ ke.value = e4, We.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
51
51
  }), F.$on(qe.value + "export-pdf-report", (e4) => {
52
- ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
52
+ ke.value = e4, We.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
53
53
  }), F.$on(qe.value + "import-file", (e4) => {
54
54
  ke.value = e4, ll.value.click();
55
55
  }), F.$on(qe.value + "assign-task", (e4) => {
@@ -73,7 +73,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
73
73
  }), F.$on(qe.value + "prohibit-edit", (e4) => {
74
74
  }), F.$on(qe.value + "open-dialog", (e4) => {
75
75
  var l3, a3, t3;
76
- Ve.value = e4.pageContext, Ee.value = e4.configureObj, We.value = e4.eventParams, l3 = Ee.value, a3 = We.value, t3 = e4.jumpPageSetting, function(e5, l4, a4) {
76
+ Ve.value = e4.pageContext, Ee.value = e4.configureObj, Be.value = e4.eventParams, l3 = Ee.value, a3 = Be.value, t3 = e4.jumpPageSetting, function(e5, l4, a4) {
77
77
  return new Promise((t4, u2) => {
78
78
  var _a2;
79
79
  if (a4) t4(a4);
@@ -81,7 +81,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
81
81
  const a5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
82
82
  if (a5 && a5.jumpPageUrl) {
83
83
  false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
84
- const e6 = K(Be), u3 = !!((_a2 = Ee.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
84
+ const e6 = K(He), u3 = !!((_a2 = Ee.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
85
85
  let n2 = u3 && l4 ? l4.id : null, o2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
86
86
  if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
87
87
  else {
@@ -100,7 +100,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
100
100
  const a4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
101
101
  a4 && Object.assign(e5, oe(a4)), se(e5, Le);
102
102
  const t4 = e5.jumpMode, u2 = e5;
103
- if (We.value || (We.value = {}), We.value.paramStoreId = e5.paramStoreId, u2.parentPageCode = Ve.value.code, u2.parentPageVersion = Ve.value.version, u2.isNewPage = true, "popup" === t4 || "refresh" === t4) {
103
+ if (Be.value || (Be.value = {}), Be.value.paramStoreId = e5.paramStoreId, u2.parentPageCode = Ve.value.code, u2.parentPageVersion = Ve.value.version, u2.isNewPage = true, "popup" === t4 || "refresh" === t4) {
104
104
  const e6 = u2.linkType;
105
105
  (function(e7, l4) {
106
106
  const a5 = ne();
@@ -117,7 +117,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
117
117
  else t5(true);
118
118
  });
119
119
  })(u2, t4).then(() => {
120
- Le && (Ve.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === t4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : (u2._isIframe = false, "popup" === t4 || Le && "refresh" === t4 ? ("refresh" === t4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : "refresh" === t4 && nl.push({ path: "/dsc/page", query: u2 }));
120
+ Le && (Ve.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === t4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : (u2._isIframe = false, "popup" === t4 ? (Me.value = u2, Fe.value = true) : "refresh" === t4 && nl.push({ path: "/dsc/page", query: u2 }));
121
121
  }), F.$on(qe.value + "close-dialog", (e7) => {
122
122
  !function(e8) {
123
123
  const l4 = e8.jumpMode;
@@ -128,11 +128,11 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
128
128
  }
129
129
  });
130
130
  }), F.$on("pageLoaded", () => {
131
- const e4 = { runtime: { events: Be.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
132
- S(null, Be.value, e4, "load");
133
- }), d(() => Be.value.isRefresh, (e4) => {
134
- e4 && (Ge.value++, Be.value.isRefresh = false);
135
- }), E(Be.value, null, (_a = ye.pageRequest) == null ? void 0 : _a.isNeedId);
131
+ const e4 = { runtime: { events: He.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
132
+ S(null, He.value, e4, "load");
133
+ }), d(() => He.value.isRefresh, (e4) => {
134
+ e4 && (Ge.value++, He.value.isRefresh = false);
135
+ }), E(He.value, null, (_a = ye.pageRequest) == null ? void 0 : _a.isNeedId);
136
136
  }
137
137
  function Xe() {
138
138
  u(() => {
@@ -143,11 +143,11 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
143
143
  l2 = Le ? window.innerHeight - a3.y - 28 : window.innerHeight - a3.y - 40;
144
144
  }
145
145
  let a2 = l2;
146
- ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto", Be.value && (Be.value.pageRuntimeStyle || (Be.value.pageRuntimeStyle = {}), Be.value.pageRuntimeStyle.height = l2);
146
+ ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto", He.value && (He.value.pageRuntimeStyle || (He.value.pageRuntimeStyle = {}), He.value.pageRuntimeStyle.height = l2);
147
147
  });
148
148
  }
149
149
  function Ye() {
150
- const e3 = Be.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
150
+ const e3 = He.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
151
151
  Ue.query && Ue.query._t_ && l2 && ue(Ue.query._t_ + "_id", l2);
152
152
  }
153
153
  function Ze() {
@@ -155,13 +155,13 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
155
155
  }
156
156
  function el(e3, l2) {
157
157
  let a2 = false;
158
- "export-pdf" === e3.name && (a2 = true), W(ke.value.pageContext, ke.value.configureObj, l2, a2);
158
+ "export-pdf" === e3.name && (a2 = true), B(ke.value.pageContext, ke.value.configureObj, l2, a2);
159
159
  }
160
160
  a(() => {
161
161
  null != ye.pageDesign ? (je.value = ye.pageDesign, Ke = setTimeout(() => {
162
162
  Qe(ye.pageDesign).then(() => {
163
- ye.pageDesign.tableRuntimes && Object.keys(ye.pageDesign.tableRuntimes).length > 0 ? b(ye.pageDesign, Be.value, ye.publishVersion).then((e3) => {
164
- Be.value.isWorkflowEntity = e3.isWorkflowEntity, Be.value.dataTypeMaps = e3.dataTypeMaps, Be.value.superGridItems = e3.superGrids;
163
+ ye.pageDesign.tableRuntimes && Object.keys(ye.pageDesign.tableRuntimes).length > 0 ? b(ye.pageDesign, He.value, ye.publishVersion).then((e3) => {
164
+ He.value.isWorkflowEntity = e3.isWorkflowEntity, He.value.dataTypeMaps = e3.dataTypeMaps, He.value.superGridItems = e3.superGrids;
165
165
  }).catch((e3) => {
166
166
  }).finally(() => {
167
167
  Oe.value = true, Xe();
@@ -177,14 +177,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
177
177
  });
178
178
  }), t(() => {
179
179
  u(() => {
180
- Be.value && he.value && D(Be.value, "-1", he);
180
+ He.value && he.value && D(He.value, "-1", he);
181
181
  });
182
182
  }), n(() => {
183
- w(Be.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), Be.value && S(null, Be.value, Be.value, "onUnmounted"), ze && clearTimeout(ze), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke);
183
+ w(He.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), He.value && S(null, He.value, He.value, "onUnmounted"), ze && clearTimeout(ze), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke);
184
184
  });
185
185
  const ll = l(null);
186
186
  function al(e3) {
187
- true === xe.value && (xe.value = false, H(ke.value, e3)), true === De.value && (De.value = false, J(ke.value, e3)), true === we.value && (we.value = false, U(ke.value, e3));
187
+ true === xe.value && (xe.value = false, W(ke.value, e3)), true === De.value && (De.value = false, J(ke.value, e3)), true === we.value && (we.value = false, U(ke.value, e3));
188
188
  }
189
189
  function tl(e3) {
190
190
  Te.value = [], Se.value = false, G(ke.value, e3);
@@ -199,7 +199,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
199
199
  let t2, u2;
200
200
  const n2 = Ve.value.tableName;
201
201
  let o2;
202
- const i2 = We.value.columnProp ? We.value.columnProp : null;
202
+ const i2 = Be.value.columnProp ? Be.value.columnProp : null;
203
203
  if (i2) {
204
204
  const e4 = (_b = (_a = Ee.value) == null ? void 0 : _a.items) == null ? void 0 : _b.filter((e5) => {
205
205
  var _a2, _b2, _c, _d;
@@ -211,12 +211,12 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
211
211
  const l3 = e3.isNeedValueMapping;
212
212
  t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ve.value, o2, t2, u2, Me.value ? Me.value.valueMappings : null);
213
213
  }
214
- S(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
214
+ S(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: He.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
215
215
  if (e4) {
216
216
  const t3 = I(Ve.value, e4);
217
- t3 && t3.apply(t3, [{ pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: a3, jumpPageSetting: Me.value, columnProp: l3 }]);
217
+ t3 && t3.apply(t3, [{ pageContext: He.value, parentPageContext: Ve.value, parentConfigureObj: a3, jumpPageSetting: Me.value, columnProp: l3 }]);
218
218
  }
219
- }(l2, i2, o2), A(Ve.value, Ee.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ve.value = null, Ee.value = null, We.value = null, F.$off(qe.value + "close-dialog"), Fe.value = false;
219
+ }(l2, i2, o2), A(Ve.value, Ee.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ve.value = null, Ee.value = null, Be.value = null, F.$off(qe.value + "close-dialog"), Fe.value = false;
220
220
  }
221
221
  return ge2({ pickFileDone: function(e3) {
222
222
  let l2 = e3.componentId, a2 = e3.listCode;
@@ -227,14 +227,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
227
227
  }, scanDone: function(e3) {
228
228
  let l2 = e3.componentId, a2 = e3.listCode;
229
229
  (l2 || a2) && (a2 ? F.$emit(a2 + "-scanDone", e3) : F.$emit(l2 + "-scanDone", e3));
230
- } }), (e3, l2) => (i(), o("div", me, [Oe.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
230
+ } }), (e3, l2) => (i(), o("div", me, [Oe.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, c(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: f(He) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: We.value, pageContext: Je.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
231
231
  if (ke.value) {
232
232
  if (!ll.value) return;
233
233
  if ("" === ll.value.value || null === ll.value.value) return;
234
234
  const e5 = ll.value.files[0];
235
- e5 ? (ll.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
235
+ e5 ? (ll.value.value = null, H(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
236
236
  }
237
- }()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true), Se.value ? (i(), p(R, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Se.value = false), onResult: tl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(O, { key: 3, "task-id": Re.value, "active-tasks": Ie.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ul }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ol()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
237
+ }()) }, null, 544), xe.value || De.value || we.value ? (i(), p(f(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true), Se.value ? (i(), p(R, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Se.value = false), onResult: tl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(O, { key: 3, "task-id": Re.value, "active-tasks": Ie.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ul }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: Be.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ol()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
238
238
  } });
239
239
  export {
240
240
  ge as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.32",
3
+ "version": "2.2.36",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -1,4 +0,0 @@
1
- import o from "./tools-runtime.vue2.js";
2
- export {
3
- o as default
4
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, createElementBlock as a, openBlock as r, createElementVNode as s, normalizeStyle as u, normalizeClass as l, unref as p, Fragment as g, renderList as c, createBlock as f } from "vue";
2
- import d from "../../object-render.vue.js";
3
- import "../../../../utils/global-refs.js";
4
- import { handleAfterInitEvent as m } from "../../../../utils/events/event-util.js";
5
- const v = { class: "amb-widget-tools-parent" }, x = e({ __name: "tools-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
- const x2 = e2, b = t(null), C = x2.configure.runtime ? x2.configure.runtime : {}, y = t(C.style ? C.style : {}), w = C.class;
7
- return o(() => {
8
- if (b.value && b.value.parentNode) {
9
- new ResizeObserver((e3) => {
10
- !function() {
11
- if (b.value && b.value.parentNode) {
12
- const e4 = x2.configure.props.position;
13
- if ("top1" == e4 || "bottom1" == e4) {
14
- const t2 = { position: "fixed !important", "z-index": "1" }, o2 = [b.value.parentNode];
15
- if (o2 && o2.length > 0) {
16
- const n3 = o2[0].getBoundingClientRect();
17
- "top" == e4 && (t2.top = n3.top + "px"), "bottom" == e4 && (t2.bottom = "10px");
18
- }
19
- const n2 = b.value.parentNode.getBoundingClientRect();
20
- t2.width = n2.width - 25 + "px", Object.assign(y.value, t2);
21
- }
22
- }
23
- }();
24
- }).observe(b.value.parentNode);
25
- }
26
- n(() => {
27
- m(null, x2.pageContext, x2.configure, { componentRef: b.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
28
- });
29
- }), i(() => {
30
- }), (e3, t2) => (r(), a("div", v, [s("div", { class: l(["amb-widget-container-tool amb-widget-tools", p(w)]), style: u(y.value), ref_key: "thisRef", ref: b }, [(r(true), a(g, null, c(e3.configure.items, (t3, o2) => (r(), f(d, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
31
- } });
32
- export {
33
- x as default
34
- };