super-page-runtime 2.3.37-sit5 → 2.3.38-cdn1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +10 -10
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +639 -651
- package/dist/es/components/runtime/utils/events/validator-util.js +53 -54
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +117 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts +36 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +45 -45
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +21 -23
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -46
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +45 -45
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +91 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -55
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +40 -40
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +19 -19
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +6 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +38 -30
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +196 -187
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +8 -6
- package/dist/es/style.css +94 -94
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as SuperPageNew } from './views/super-page.vue';
|
|
2
2
|
import { default as SuperPageDialogNew } from './views/super-page-dialog.vue';
|
|
3
3
|
import { default as HomeChart } from './views/home-chart.vue';
|
|
4
|
+
import { default as HomeChartConditionRender } from './views/assemblys/chart/common/home-chart-condition-render.vue';
|
|
4
5
|
|
|
5
|
-
export { SuperPageNew, SuperPageDialogNew, HomeChart };
|
|
6
|
+
export { SuperPageNew, SuperPageDialogNew, HomeChart, HomeChartConditionRender };
|
|
@@ -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: "extract-workflow", label: "抽单", runtimeComponent: e(() => import("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js")) }, { name: "extract-workflow-dialog", label: "抽单Dialog", runtimeComponent: e(() => import("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.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.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: "image-upload", label: "图片上传", runtimeComponent: e(() => import("../views/assemblys/form/image-upload/imageupload-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: "extract-workflow", label: "抽单", runtimeComponent: e(() => import("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js")) }, { name: "extract-workflow-dialog", label: "抽单Dialog", runtimeComponent: e(() => import("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.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++) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function e(e2,
|
|
2
|
-
let
|
|
1
|
+
function e(e2, t) {
|
|
2
|
+
let n = true, r = "";
|
|
3
3
|
return e2.forEach((e3) => {
|
|
4
4
|
if ("-1" !== e3.propDbName && -1 !== e3.propDbName) {
|
|
5
|
-
const a =
|
|
6
|
-
e3.supplementaryCharacters && e3.length ? a ? a.length > e3.length ? r += a.substring(0, e3.length) : r += a.padEnd(e3.length, e3.supplementaryCharacters) : r += "".padEnd(e3.length, e3.supplementaryCharacters) : a ? r += a :
|
|
5
|
+
const a = t[e3.propDbName];
|
|
6
|
+
e3.supplementaryCharacters && e3.length ? a ? a.length > e3.length ? r += a.substring(0, e3.length) : r += a.padEnd(e3.length, e3.supplementaryCharacters) : r += "".padEnd(e3.length, e3.supplementaryCharacters) : a ? r += a : n = false;
|
|
7
7
|
} else r += e3.fixedValue;
|
|
8
|
-
}),
|
|
8
|
+
}), n ? r : null;
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
11
|
e as generateCodeByRule
|
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
import { getValueFromSource as o, setValueForVariableName as
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import { setDefaultGrid as r, CommonName as s, caculateFormulaValue as l, executeChartFormula as n, sortDatas as p, limitDatas as i, formatToolboxI18n as
|
|
4
|
-
import { handleChartEvent as
|
|
1
|
+
import { getValueFromSource as o, setValueForVariableName as t } from "../page-helper-util.js";
|
|
2
|
+
import { deepCopy as e } from "../common-util.js";
|
|
3
|
+
import { setDefaultGrid as r, CommonName as s, caculateFormulaValue as l, executeChartFormula as n, sortDatas as p, limitDatas as i, formatToolboxI18n as a } from "./chart-util.js";
|
|
4
|
+
import { handleChartEvent as u } from "../events/event-util.js";
|
|
5
5
|
function c(c2, f, g, m) {
|
|
6
6
|
if (!m || !m.result) return;
|
|
7
|
-
|
|
7
|
+
u(c2, f, "beforeUpdateChart", g, { resultData: m }), r(g);
|
|
8
8
|
const h = m && m.result ? m.result : {};
|
|
9
9
|
let d = m && m.groupValue ? m.groupValue : void 0;
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
10
|
+
const y = f.serviceDataField;
|
|
11
|
+
let v = null;
|
|
12
|
+
y ? v = h[y] : h && (v = Array.isArray(h) ? h : [h]), v || (v = []);
|
|
13
13
|
let x = f.props ? f.props.groups : null;
|
|
14
14
|
if (x || (x = []), !d || 0 === d.length) {
|
|
15
15
|
d = [];
|
|
16
16
|
for (const o2 of x) d.push(o2.group);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
for (const o2 of x)
|
|
18
|
+
const D = {}, E = [], F = [];
|
|
19
|
+
for (const o2 of x) D[o2.group] = o2.target, o2.target && !E.includes(o2.target) && (E.push(o2.target), d.includes(o2.group) && F.push(o2.target));
|
|
20
20
|
let S = f.props ? f.props.mulGroupShow : "";
|
|
21
|
-
S = "break" == S ? "\r\n" : " "
|
|
22
|
-
for (const
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
21
|
+
S = "break" == S ? "\r\n" : " ";
|
|
22
|
+
for (const t2 of v) {
|
|
23
|
+
if (!t2) continue;
|
|
24
|
+
const e2 = [];
|
|
25
25
|
for (const r3 of d) {
|
|
26
|
-
const s2 =
|
|
27
|
-
l2 &&
|
|
26
|
+
const s2 = D[r3], l2 = o(t2, s2, void 0);
|
|
27
|
+
l2 && e2.push(l2);
|
|
28
28
|
}
|
|
29
|
-
const r2 =
|
|
30
|
-
|
|
29
|
+
const r2 = e2.join(S);
|
|
30
|
+
t2[s.X_FIELD_NAME] = r2;
|
|
31
31
|
}
|
|
32
32
|
const _ = f.items ? f.items : [];
|
|
33
|
-
if (0 == _.length) return
|
|
33
|
+
if (0 == _.length) return;
|
|
34
34
|
const j = f.props ? f.props : {};
|
|
35
35
|
let A = j.yaxisField;
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
36
|
+
if (_[0].props.yaxisField = A, _[0].props.yaxisSource = j.yaxisSource, _[0].props.formula = j.formula, "formula" === j.yaxisSource) {
|
|
37
|
+
const t2 = [], e2 = l(_, v, t2);
|
|
38
38
|
let r2 = j.formula ? j.formula : "";
|
|
39
|
-
for (const o2 in
|
|
39
|
+
for (const o2 in e2) r2 = r2.replace(new RegExp(o2.replace("$", "\\$"), "g"), e2[o2]);
|
|
40
40
|
A = s.Y_TEMP_NAME;
|
|
41
41
|
const p2 = {};
|
|
42
|
-
for (const
|
|
43
|
-
if (!
|
|
44
|
-
for (const r3 of
|
|
45
|
-
const
|
|
42
|
+
for (const e3 of v) {
|
|
43
|
+
if (!e3) continue;
|
|
44
|
+
for (const r3 of t2) {
|
|
45
|
+
const t3 = o(e3, r3, void 0);
|
|
46
46
|
let s3 = p2[r3];
|
|
47
|
-
void 0 ===
|
|
47
|
+
void 0 === t3 || isNaN(t3) || (void 0 === s3 ? s3 = t3 : s3 += t3), p2[r3] = s3;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
console.log("formula-result", s2), t3[A] = s2;
|
|
49
|
+
const s2 = n(r2, p2, e3, c2);
|
|
50
|
+
e3[A] = s2;
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
_[0].props.yaxisField = A, _[0].props.yaxisSource = "", p(c2, f,
|
|
53
|
+
_[0].props.yaxisField = A, _[0].props.yaxisSource = "", p(c2, f, v), v = i(c2, f, v, E, [A]);
|
|
55
54
|
const M = [], N = [];
|
|
56
|
-
for (const
|
|
57
|
-
if (!
|
|
58
|
-
M.push(
|
|
59
|
-
const
|
|
60
|
-
N.push(
|
|
55
|
+
for (const t2 of v) {
|
|
56
|
+
if (!t2) continue;
|
|
57
|
+
M.push(t2[s.X_FIELD_NAME]);
|
|
58
|
+
const e2 = o(t2, A, void 0);
|
|
59
|
+
N.push(e2);
|
|
61
60
|
}
|
|
62
61
|
const b = f.defaultSeries;
|
|
63
62
|
let C = b[0].pieColors;
|
|
64
63
|
C = C || [];
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
-
const
|
|
64
|
+
let w = b[0].pieColorMap;
|
|
65
|
+
w = w || {};
|
|
66
|
+
const I = [];
|
|
68
67
|
for (let o2 = 0; o2 < M.length && o2 < N.length; o2++) {
|
|
69
|
-
const
|
|
70
|
-
if (o2 < C.length ||
|
|
71
|
-
let
|
|
72
|
-
|
|
68
|
+
const t2 = { value: N[o2], name: M[o2] };
|
|
69
|
+
if (o2 < C.length || w[t2.name]) {
|
|
70
|
+
let e2 = w[t2.name];
|
|
71
|
+
e2 || (e2 = C[o2]), e2 && (t2.itemStyle = { color: e2 });
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
I.push(t2);
|
|
75
74
|
}
|
|
76
|
-
const
|
|
77
|
-
|
|
75
|
+
const V = e(b);
|
|
76
|
+
V[0].data = I, g.series = [V[0]], a(g);
|
|
78
77
|
const G = f.props ? f.props.selGroupVariable : null;
|
|
79
|
-
!(f.props ? f.props.enableDrill : null) && G && (f.highlightInfos = [],
|
|
78
|
+
!(f.props ? f.props.enableDrill : null) && G && (f.highlightInfos = [], t(c2.entity, G, null)), u(c2, f, "afterUpdateChart", g, { resultData: m }), f.groupFields = F, f.cacheDatas = v, f.rawResult = m;
|
|
80
79
|
}
|
|
81
80
|
export {
|
|
82
81
|
c as updateChartOption
|
|
@@ -35,9 +35,7 @@ function l(l2, u, f, c) {
|
|
|
35
35
|
e2.sizeField ? r2.push(o(s2, e2.xaxisField, void 0)) : r2.push(e2.symbolSize), i2.push(r2);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
const S = u.defaultSeries;
|
|
39
|
-
console.log("defaultSeries", S);
|
|
40
|
-
const z = s(S);
|
|
38
|
+
const S = u.defaultSeries, z = s(S);
|
|
41
39
|
for (const o2 of z) {
|
|
42
40
|
const s2 = y[o2.uuid];
|
|
43
41
|
o2.data = s2.data;
|
|
@@ -3,31 +3,31 @@ import e from "../../../../assets/chart-themes/gauge-theme.js";
|
|
|
3
3
|
import i from "../../../../assets/chart-themes/pie-theme.js";
|
|
4
4
|
import n from "../../../../assets/chart-themes/radar-theme.js";
|
|
5
5
|
import s from "../../../../assets/chart-themes/scatter-theme.js";
|
|
6
|
-
import { getDefaultValue as
|
|
7
|
-
import { getValueFromSource as
|
|
6
|
+
import { getDefaultValue as r } from "../page-init-util.js";
|
|
7
|
+
import { getValueFromSource as o, setValueForVariableName as a, getParamNames as l, getValueFromVariable as c, formatVariableValue as f, setVariableValue as u } from "../page-helper-util.js";
|
|
8
8
|
import { getI18n as d } from "agilebuilder-ui/src/utils/util";
|
|
9
9
|
import { appendDefaultMethods as p } from "../events/event-util.js";
|
|
10
10
|
var h = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(h || {});
|
|
11
|
-
function g(
|
|
12
|
-
return "bar" ===
|
|
11
|
+
function g(r2, o2 = "bar") {
|
|
12
|
+
return "bar" === o2 ? t[r2] : "gauge" === o2 ? e[r2] : "pie" === o2 ? i[r2] : "radar" === o2 ? n[r2] : "scatter" === o2 ? s[r2] : t[r2];
|
|
13
13
|
}
|
|
14
14
|
function m() {
|
|
15
15
|
return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
|
|
16
16
|
}
|
|
17
17
|
function x(t2, e2, i2, n2, s2) {
|
|
18
|
-
return function(
|
|
19
|
-
let
|
|
20
|
-
if (s2 && (
|
|
21
|
-
if (Array.isArray(
|
|
22
|
-
if (isNaN(
|
|
18
|
+
return function(r2) {
|
|
19
|
+
let o2 = r2 == null ? void 0 : r2.value;
|
|
20
|
+
if (s2 && (o2 = r2), null == o2 || null == o2) return o2;
|
|
21
|
+
if (Array.isArray(o2)) return o2;
|
|
22
|
+
if (isNaN(o2) || !t2 || !t2.indexOf) return o2;
|
|
23
23
|
if (t2.indexOf("precision") > -1) {
|
|
24
24
|
let t3 = parseInt(e2);
|
|
25
|
-
(null == t3 || isNaN(t3)) && (t3 = 2),
|
|
25
|
+
(null == t3 || isNaN(t3)) && (t3 = 2), o2 = parseFloat(parseFloat(o2).toFixed(t3));
|
|
26
26
|
}
|
|
27
27
|
let a2 = "";
|
|
28
28
|
t2.indexOf("prefix") > -1 && i2 && (a2 = i2);
|
|
29
29
|
let l2 = "";
|
|
30
|
-
return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 +
|
|
30
|
+
return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 + o2.toLocaleString() + l2;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
function b(t2, e2) {
|
|
@@ -53,39 +53,37 @@ function I(t2, e2, i2) {
|
|
|
53
53
|
if (!(i2 && e2 && e2.clickSet && t2)) return;
|
|
54
54
|
const n2 = e2.clickSet;
|
|
55
55
|
i2.on("click", function(s2) {
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
let r2 = -1;
|
|
59
|
-
if (o2) {
|
|
56
|
+
let r2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = -1;
|
|
57
|
+
if (r2) {
|
|
60
58
|
const t3 = [];
|
|
61
|
-
for (let a2 = 0; a2 <
|
|
62
|
-
const l2 =
|
|
59
|
+
for (let a2 = 0; a2 < r2.length; a2++) {
|
|
60
|
+
const l2 = r2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
|
|
63
61
|
if (c2 || !n2.multiple) {
|
|
64
62
|
if (n2.selected) {
|
|
65
63
|
const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
66
64
|
i2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
|
|
67
65
|
}
|
|
68
66
|
} else t3.push(l2);
|
|
69
|
-
c2 && (
|
|
67
|
+
c2 && (o2 = a2);
|
|
70
68
|
}
|
|
71
|
-
|
|
69
|
+
r2 = t3;
|
|
72
70
|
}
|
|
73
|
-
if (-1 ===
|
|
71
|
+
if (-1 === o2) {
|
|
74
72
|
if (n2.selected) {
|
|
75
73
|
const t3 = "chart-pie" === e2.name ? "select" : "highlight";
|
|
76
74
|
i2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
77
75
|
}
|
|
78
|
-
|
|
76
|
+
r2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
79
77
|
}
|
|
80
|
-
e2.highlightInfos =
|
|
78
|
+
e2.highlightInfos = r2, N(t2, e2);
|
|
81
79
|
});
|
|
82
80
|
}
|
|
83
81
|
function v(t2, e2, i2) {
|
|
84
82
|
if (!i2 || !e2 || !t2) return;
|
|
85
83
|
const n2 = e2.highlightInfos ? e2.highlightInfos : [];
|
|
86
84
|
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
87
|
-
const s2 = n2[t3],
|
|
88
|
-
i2.dispatchAction({ type:
|
|
85
|
+
const s2 = n2[t3], r2 = "chart-pie" === e2.name ? "unselect" : "downplay";
|
|
86
|
+
i2.dispatchAction({ type: r2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
89
87
|
}
|
|
90
88
|
e2.highlightInfos = [], N(t2, e2);
|
|
91
89
|
}
|
|
@@ -93,13 +91,13 @@ function N(t2, e2) {
|
|
|
93
91
|
if (!e2.clickSet) return;
|
|
94
92
|
const i2 = e2.clickSet, n2 = i2.variables;
|
|
95
93
|
if (!n2 || 0 == n2.length) return;
|
|
96
|
-
const s2 = e2.highlightInfos ? e2.highlightInfos : [],
|
|
97
|
-
for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex <
|
|
94
|
+
const s2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
|
|
95
|
+
for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < r2.length && l2.push(r2[t3.dataIndex]));
|
|
98
96
|
for (const e3 of n2) {
|
|
99
97
|
if (!e3.fieldName || !e3.variable) continue;
|
|
100
98
|
const n3 = [];
|
|
101
99
|
for (const t3 of l2) {
|
|
102
|
-
const i3 =
|
|
100
|
+
const i3 = o(t3, e3.fieldName, void 0);
|
|
103
101
|
null != i3 && n3.push(i3);
|
|
104
102
|
}
|
|
105
103
|
i2.multiple ? a(t2.entity, e3.variable, n3) : a(t2.entity, e3.variable, n3.length > 0 ? n3[0] : void 0);
|
|
@@ -107,22 +105,22 @@ function N(t2, e2) {
|
|
|
107
105
|
}
|
|
108
106
|
function y(t2, e2, i2) {
|
|
109
107
|
const n2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
|
|
110
|
-
let
|
|
111
|
-
if ("x" == s2 || "X" == s2)
|
|
108
|
+
let r2 = null;
|
|
109
|
+
if ("x" == s2 || "X" == s2) r2 = "__x";
|
|
112
110
|
else if (s2) {
|
|
113
111
|
for (const t3 of n2) if (t3.uuid == s2) {
|
|
114
112
|
const e3 = t3.props ? t3.props : {}, i3 = e3.yaxisSource, n3 = e3.yaxisField;
|
|
115
113
|
if (n3 && (!i3 || "variable" == i3)) {
|
|
116
|
-
|
|
114
|
+
r2 = n3;
|
|
117
115
|
break;
|
|
118
116
|
}
|
|
119
117
|
if ("formula" == i3 && e3.formula) {
|
|
120
|
-
|
|
118
|
+
r2 = t3.uuid + "_field";
|
|
121
119
|
break;
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
|
-
if (!
|
|
123
|
+
if (!r2) return;
|
|
126
124
|
const a2 = e2.props ? e2.props.orderSource : "";
|
|
127
125
|
let l2 = e2.props ? e2.props.orderFix : "";
|
|
128
126
|
if ("variable" == a2) {
|
|
@@ -130,18 +128,18 @@ function y(t2, e2, i2) {
|
|
|
130
128
|
l2 = f(t2, i3);
|
|
131
129
|
}
|
|
132
130
|
l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", i2.sort((t3, e3) => {
|
|
133
|
-
const i3 =
|
|
131
|
+
const i3 = o(t3, r2, void 0), n3 = o(e3, r2, void 0);
|
|
134
132
|
return "desc" === l2 ? n3 - i3 : i3 - n3;
|
|
135
133
|
});
|
|
136
134
|
}
|
|
137
135
|
function S(t2, e2, i2, n2, s2) {
|
|
138
136
|
if (!i2) return i2;
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
137
|
+
const r2 = e2.props ? e2.props : {};
|
|
138
|
+
if (!r2.limitQuantity) return i2;
|
|
141
139
|
let a2 = null;
|
|
142
|
-
if (
|
|
140
|
+
if (r2.itemNumVariable ? (a2 = f(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return i2;
|
|
143
141
|
if (i2.length < a2) return i2;
|
|
144
|
-
const l2 =
|
|
142
|
+
const l2 = r2.overItemAlias, c2 = [], u2 = {};
|
|
145
143
|
n2 = n2 || [], s2 = s2 || [];
|
|
146
144
|
for (let t3 = 0; t3 < i2.length; t3++) {
|
|
147
145
|
const e3 = i2[t3];
|
|
@@ -150,14 +148,14 @@ function S(t2, e2, i2, n2, s2) {
|
|
|
150
148
|
if (!l2) break;
|
|
151
149
|
for (const t4 of n2) {
|
|
152
150
|
if (!t4) continue;
|
|
153
|
-
let i3 =
|
|
151
|
+
let i3 = o(e3, t4, void 0);
|
|
154
152
|
i3 = null == i3 || null == i3 ? "" : i3, u2[t4] || (u2[t4] = []);
|
|
155
153
|
const n3 = u2[t4];
|
|
156
154
|
n3.includes(i3) || n3.push(i3);
|
|
157
155
|
}
|
|
158
156
|
for (const t4 of s2) {
|
|
159
157
|
if (!t4) continue;
|
|
160
|
-
const i3 =
|
|
158
|
+
const i3 = o(e3, t4, void 0);
|
|
161
159
|
if (isNaN(i3)) continue;
|
|
162
160
|
const n3 = u2[t4];
|
|
163
161
|
isNaN(n3) ? u2[t4] = i3 : u2[t4] = i3 + n3;
|
|
@@ -189,7 +187,7 @@ function F(t2, e2, i2) {
|
|
|
189
187
|
function _(t2, e2) {
|
|
190
188
|
let i2;
|
|
191
189
|
for (const n2 of t2) {
|
|
192
|
-
const t3 = parseFloat(
|
|
190
|
+
const t3 = parseFloat(o(n2, e2, null));
|
|
193
191
|
(void 0 === i2 || !isNaN(t3) && t3 < i2) && (i2 = t3);
|
|
194
192
|
}
|
|
195
193
|
return i2;
|
|
@@ -197,7 +195,7 @@ function _(t2, e2) {
|
|
|
197
195
|
function A(t2, e2) {
|
|
198
196
|
let i2;
|
|
199
197
|
for (const n2 of t2) {
|
|
200
|
-
const t3 = parseFloat(
|
|
198
|
+
const t3 = parseFloat(o(n2, e2, null));
|
|
201
199
|
(void 0 === i2 || !isNaN(t3) && t3 > i2) && (i2 = t3);
|
|
202
200
|
}
|
|
203
201
|
return i2;
|
|
@@ -205,7 +203,7 @@ function A(t2, e2) {
|
|
|
205
203
|
function M(t2, e2) {
|
|
206
204
|
let i2;
|
|
207
205
|
for (const n2 of t2) {
|
|
208
|
-
const t3 = parseFloat(
|
|
206
|
+
const t3 = parseFloat(o(n2, e2, null));
|
|
209
207
|
void 0 === i2 ? i2 = t3 : isNaN(t3) || (i2 += t3);
|
|
210
208
|
}
|
|
211
209
|
return i2;
|
|
@@ -220,11 +218,11 @@ function w(t2, e2, i2, n2) {
|
|
|
220
218
|
const s2 = l(t2);
|
|
221
219
|
for (const e3 of s2) {
|
|
222
220
|
let s3 = null;
|
|
223
|
-
s3 = e3.startsWith("${row.") ?
|
|
221
|
+
s3 = e3.startsWith("${row.") ? o(i2, e3.substring(6, e3.length - 1), null) : c(n2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
|
|
224
222
|
}
|
|
225
223
|
t2.includes("return ") || (t2 = "return " + t2);
|
|
226
|
-
const
|
|
227
|
-
return p(
|
|
224
|
+
const r2 = new Function("params", t2);
|
|
225
|
+
return p(r2, n2), r2({ pageContext: n2, row: i2 });
|
|
228
226
|
}
|
|
229
227
|
function $(t2, e2) {
|
|
230
228
|
if (!t2 || !t2.$el) return;
|
|
@@ -248,7 +246,7 @@ function j(t2, e2, i2) {
|
|
|
248
246
|
}
|
|
249
247
|
if (s2 && t2) {
|
|
250
248
|
for (const i3 of t2) if (i3.prop && i3.value) {
|
|
251
|
-
const t3 =
|
|
249
|
+
const t3 = r(e2, i3.value, "input-text", false), n3 = i3.prop.substring(2, i3.prop.length - 1).split(".");
|
|
252
250
|
null != t3 && u(e2.entity, n3, t3);
|
|
253
251
|
}
|
|
254
252
|
}
|
|
@@ -43,7 +43,7 @@ function x(e2, n2) {
|
|
|
43
43
|
for (const t3 in n3) {
|
|
44
44
|
j(n3[t3], e3);
|
|
45
45
|
}
|
|
46
|
-
}(n2, t2),
|
|
46
|
+
}(n2, t2), n2.customEvents = t2;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
function k(e2, n2) {
|
|
@@ -105,7 +105,7 @@ function w(e2, t2, o2, r2, u2, c2, l2) {
|
|
|
105
105
|
const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
|
|
106
106
|
let s2;
|
|
107
107
|
if (l2 || !function(e3) {
|
|
108
|
-
return e3 &&
|
|
108
|
+
return e3 && S.indexOf(e3) >= 0;
|
|
109
109
|
}(r2)) {
|
|
110
110
|
if (s2 = $(t2, a2, r2), u2) {
|
|
111
111
|
return z(t2, o2, s2, R(t2, o2, e2, c2));
|
|
@@ -115,7 +115,7 @@ function w(e2, t2, o2, r2, u2, c2, l2) {
|
|
|
115
115
|
!function(e3, t3, o3) {
|
|
116
116
|
const r3 = i(t3, o3.ids);
|
|
117
117
|
if (!r3) return;
|
|
118
|
-
if (void 0 !== e3.canClick && false === e3.canClick) return
|
|
118
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
119
|
Q(o3).then((i2) => {
|
|
120
120
|
if (true === i2.canExecute) {
|
|
121
121
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
@@ -125,14 +125,14 @@ function w(e2, t2, o2, r2, u2, c2, l2) {
|
|
|
125
125
|
n(u3) ? u3.then((n2) => {
|
|
126
126
|
n2 && true === n2 ? T(e3, t3, o3) : e3.canClick = true;
|
|
127
127
|
}).catch((n2) => {
|
|
128
|
-
|
|
128
|
+
e3.canClick = true;
|
|
129
129
|
}) : T(e3, t3, o3);
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
}(t2, o2, U(e2, t2, o2, c2));
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
134
|
+
const S = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
135
|
+
function P(e2, n2) {
|
|
136
136
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
137
137
|
}
|
|
138
138
|
function R(e2, n2, t2, o2) {
|
|
@@ -143,7 +143,7 @@ function R(e2, n2, t2, o2) {
|
|
|
143
143
|
function T(e2, t2, o2) {
|
|
144
144
|
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
145
145
|
let r2 = true;
|
|
146
|
-
|
|
146
|
+
(o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
|
|
147
147
|
const c2 = H(e2, i2, "click");
|
|
148
148
|
if (c2) {
|
|
149
149
|
const e3 = function(e4, n2) {
|
|
@@ -168,7 +168,7 @@ function F(e2, n2, t2, o2, i2) {
|
|
|
168
168
|
A(n2, t2, H(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
|
|
169
169
|
}
|
|
170
170
|
function U(e2, n2, t2, o2) {
|
|
171
|
-
const i2 = n2.code, r2 = n2.version, u2 =
|
|
171
|
+
const i2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
|
|
172
172
|
if (u2) {
|
|
173
173
|
const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
|
|
174
174
|
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
|
|
@@ -353,7 +353,7 @@ function ne(e2, n2, t2) {
|
|
|
353
353
|
return h(null, e2, n2, "header-click", t2);
|
|
354
354
|
}
|
|
355
355
|
function te(e2) {
|
|
356
|
-
return
|
|
356
|
+
return h(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
357
357
|
}
|
|
358
358
|
function oe(e2, n2, t2) {
|
|
359
359
|
return h(null, e2, n2, "uploaded", t2);
|
|
@@ -408,7 +408,7 @@ export {
|
|
|
408
408
|
$ as getEventFuncByType,
|
|
409
409
|
B as getEventNameByType,
|
|
410
410
|
N as getHandleEvent,
|
|
411
|
-
|
|
411
|
+
P as getTableUuid,
|
|
412
412
|
K as gridSelectAllRecords,
|
|
413
413
|
J as gridSelectRecord,
|
|
414
414
|
M as gridSelectionChange,
|
|
@@ -10,7 +10,6 @@ function a(n2, a2) {
|
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
|
|
13
|
-
console.log("浏览器打印窗口已打开");
|
|
14
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
15
14
|
a3.panels[0].printElements.forEach((e3) => {
|
|
16
15
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|
|
@@ -54,7 +54,7 @@ export declare const standardEvents: {
|
|
|
54
54
|
removeTransactor: (params: any) => void;
|
|
55
55
|
};
|
|
56
56
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
57
|
-
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
|
|
57
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
|
|
58
58
|
export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
59
59
|
/**
|
|
60
60
|
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|