super-page-runtime 2.0.9 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/es/_virtual/AttributeMap.js +4 -0
  2. package/dist/es/_virtual/Delta.js +4 -0
  3. package/dist/es/_virtual/Op.js +4 -0
  4. package/dist/es/_virtual/OpIterator.js +4 -0
  5. package/dist/es/_virtual/__vite-browser-external.js +4 -0
  6. package/dist/es/_virtual/_commonjsHelpers.js +8 -0
  7. package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
  8. package/dist/es/_virtual/dayjs.min.js +4 -0
  9. package/dist/es/_virtual/index.js +4 -0
  10. package/dist/es/_virtual/index2.js +4 -0
  11. package/dist/es/_virtual/index3.js +4 -0
  12. package/dist/es/components/runtime/index.d.ts +3 -3
  13. package/dist/es/components/runtime/utils/api/api-util.js +3 -3
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
  15. package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
  16. package/dist/es/components/runtime/utils/common-util.js +2 -15
  17. package/dist/es/components/runtime/utils/eventBus.js +1 -1
  18. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  19. package/dist/es/components/runtime/utils/events/standard-event.js +7 -6
  20. package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
  21. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
  23. package/dist/es/components/runtime/utils/page-helper-util.js +3 -122
  24. package/dist/es/components/runtime/utils/page-init-util.js +2 -2
  25. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  27. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
  28. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +25 -392
  29. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -12
  30. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +17 -13
  31. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -13
  32. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -14
  33. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
  34. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +5 -5
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -4
  39. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -3
  40. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
  41. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
  43. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
  44. package/dist/es/components/runtime/views/super-page.vue.js +7 -20
  45. package/dist/es/index.d.ts +2 -7
  46. package/dist/es/index.js +2 -11
  47. package/dist/lib/components/runtime/index.d.ts +3 -3
  48. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -13
  49. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -5
  50. package/dist/lib/components/runtime/utils/common-util.js +0 -13
  51. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
  52. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -19
  53. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -119
  54. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -376
  55. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +4 -4
  56. package/dist/lib/components/runtime/views/super-page.vue.js +0 -14
  57. package/dist/lib/index.d.ts +2 -7
  58. package/dist/lib/index.js +2 -11
  59. package/package.json +69 -70
  60. package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
  61. package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
  62. package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
  63. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
  64. package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
  65. package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
  66. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -44
  67. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
  68. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
  69. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
  70. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
  71. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
  72. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  73. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  74. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  75. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  76. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  77. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  78. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  79. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  80. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  81. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  82. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  83. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
- import { ElMessage } from "element-plus";
3
- import { useI18n } from "vue-i18n";
2
+ import { useI18n } from "../../../../../node_modules/.pnpm/vue-i18n@9.10.2_vue@3.4.21/node_modules/vue-i18n/dist/vue-i18n.js";
3
+ import { ElMessage } from "../../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
4
4
  const _hoisted_1 = { class: "dialog-footer" };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "task-informition-dialog",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, unref, normalizeStyle, normalizeClass, createSlots, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
- import { ElCard } from "element-plus";
3
- import { SuperIcon } from "agilebuilder-ui";
2
+ import { SuperIcon as _sfc_main$2 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
4
3
  import _sfc_main$1 from "../../object-render.vue.js";
4
+ import { ElCard } from "../../../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/card/index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "card-runtime",
7
7
  props: {
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  createElementVNode("div", {
54
54
  style: normalizeStyle(unref(headerStyle))
55
55
  }, [
56
- _ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
56
+ _ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(_sfc_main$2), {
57
57
  key: 0,
58
58
  iconType: _ctx.configure.props.iconType,
59
59
  iconValue: _ctx.configure.props.iconValue,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, unref, isRef, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
- import { ElTabs, ElTabPane } from "element-plus";
3
- import _sfc_main$1 from "../../object-render.vue.js";
4
- import { SuperIcon } from "agilebuilder-ui";
2
+ import _sfc_main$2 from "../../object-render.vue.js";
3
+ import { SuperIcon as _sfc_main$1 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
5
4
  import "../../../../utils/global-refs.js";
5
+ import { ElTabs, ElTabPane } from "../../../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/tabs/index.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "tabs-runtime",
8
8
  props: {
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  name: item.index
36
36
  }, {
37
37
  label: withCtx(() => [
38
- item.iconType && item.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
38
+ item.iconType && item.iconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
39
39
  key: 0,
40
40
  iconType: item.iconType,
41
41
  iconValue: item.iconValue,
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  default: withCtx(() => [
49
49
  createElementVNode("div", null, [
50
50
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (element, itemIndex) => {
51
- return openBlock(), createBlock(_sfc_main$1, {
51
+ return openBlock(), createBlock(_sfc_main$2, {
52
52
  key: element.uuid,
53
53
  pageContext: _ctx.pageContext,
54
54
  configure: element
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, onMounted, watch, onUnmounted, resolveComponent, openBlock, createElementBlock, createVNode, unref } from "vue";
2
- import "agilebuilder-ui";
2
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
3
3
  import { setTableEvents, getEventFuncByType, canExecuteButton, doAfterClickEvent, doBeforeClickEvent, getHandleEvent, gridSelectRecord, gridSelectAllRecords, gridSelectionChange, cellClick, cellDblClick, rowClick, rowDblClick, headerClick } from "../../../../utils/events/event-util.js";
4
4
  import { getListCode, getRealRestApiPath } from "../../../../utils/common-util.js";
5
5
  import { getSaveFormRequest, standardEvents } from "../../../../utils/events/standard-event.js";
6
- import { isPromise } from "agilebuilder-ui/src/utils/common-util";
6
+ import { isPromise } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js";
7
7
  import { getDataTypeMap, popupToPage } from "../../../../utils/table-utils.js";
8
8
  import eventBus from "../../../../utils/eventBus.js";
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,8 +1,9 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, unref, createBlock } from "vue";
2
- import "agilebuilder-ui";
3
- import "agilebuilder-ui/src/utils/request";
4
- import "dayjs";
5
- import "agilebuilder-ui/src/utils/calculator/calculator-util";
2
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
3
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
4
+ import "../../../../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js";
5
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/i18n/i18n.js";
6
+ import "../../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
6
7
  import "../../../../utils/global-refs.js";
7
8
  import _sfc_main$1 from "./sub-table-runtime.vue.js";
8
9
  import _sfc_main$2 from "./main-table-runtime.vue.js";
@@ -1,8 +1,9 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import "agilebuilder-ui/src/utils/request";
4
- import "dayjs";
5
- import "agilebuilder-ui/src/utils/calculator/calculator-util";
3
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
4
+ import "../../../../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js";
5
+ import "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/i18n/i18n.js";
6
+ import "../../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
6
7
  import "../../../../utils/global-refs.js";
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "depttree-runtime",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
2
- import { SuperIcon } from "agilebuilder-ui";
2
+ import { SuperIcon as _sfc_main$1 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
4
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
5
5
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
71
  unref(designProperty).iconPosition != "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
72
72
  name: "prefix",
73
73
  fn: withCtx(() => [
74
- unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
74
+ unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
75
75
  key: 0,
76
76
  iconType: unref(designProperty).preIconType,
77
77
  iconValue: unref(designProperty).preIconValue
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
83
  unref(designProperty).iconPosition == "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
84
84
  name: "prepend",
85
85
  fn: withCtx(() => [
86
- unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
86
+ unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
87
87
  key: 0,
88
88
  iconType: unref(designProperty).preIconType,
89
89
  iconValue: unref(designProperty).preIconValue
@@ -95,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  unref(designProperty).iconPosition != "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
96
96
  name: "suffix",
97
97
  fn: withCtx(() => [
98
- unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
98
+ unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
99
99
  key: 0,
100
100
  iconType: unref(designProperty).sufIconType,
101
101
  iconValue: unref(designProperty).sufIconValue
@@ -107,7 +107,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
107
  unref(designProperty).iconPosition == "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
108
108
  name: "append",
109
109
  fn: withCtx(() => [
110
- unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
110
+ unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
111
111
  key: 0,
112
112
  iconType: unref(designProperty).sufIconType,
113
113
  iconValue: unref(designProperty).sufIconValue
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, unref, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, createTextVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { queryOptions, formatVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon } from "agilebuilder-ui";
4
+ import { SuperIcon as _sfc_main$1 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
5
5
  const _hoisted_1 = { style: { "display": "flex", "width": "100%", "justify-content": "space-between" } };
6
6
  const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
7
7
  const _hoisted_3 = {
@@ -85,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
85
  class: normalizeClass({ "el-input__suffix": unref(designProperty).iconPosition != "outer", "el-input-group__append": unref(designProperty).iconPosition == "outer" }),
86
86
  style: normalizeStyle(unref(appendStyle))
87
87
  }, [
88
- unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
88
+ unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
89
89
  key: 0,
90
90
  iconType: unref(designProperty).preIconType,
91
91
  iconValue: unref(designProperty).preIconValue
@@ -98,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
98
  key: 0,
99
99
  class: normalizeClass({ "el-input__suffix": unref(designProperty).iconPosition != "outer", "el-input-group__append": unref(designProperty).iconPosition == "outer" })
100
100
  }, [
101
- unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
101
+ unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
102
102
  key: 0,
103
103
  style: {},
104
104
  iconType: unref(designProperty).sufIconType,
@@ -1,8 +1,10 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, unref, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import Quill from "quill";
5
- import "quill/dist/quill.snow.css";
4
+ import "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/quill.js";
5
+ /* empty css */
6
+ import "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core.js";
7
+ import Quill from "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core/quill.js";
6
8
  const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
7
9
  const _hoisted_2 = {
8
10
  key: 1,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode } from "vue";
2
- import "element-plus";
3
2
  import _sfc_main$1 from "./super-page.vue.js";
3
+ const showContent = true;
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "super-page-dialog",
6
6
  props: {
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props, { emit: __emit }) {
14
14
  const props = __props;
15
15
  const emits = __emit;
16
- const showContent = ref(true);
17
16
  const myJumpPageSetting = props.jumpPageSetting ? props.jumpPageSetting : null;
18
17
  const width = ref(null);
19
18
  const title = ref(null);
@@ -47,8 +46,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
46
  return (_ctx, _cache) => {
48
47
  const _component_el_drawer = resolveComponent("el-drawer");
49
48
  return openBlock(), createBlock(_component_el_drawer, {
50
- modelValue: showContent.value,
51
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showContent.value = $event),
49
+ modelValue: showContent,
50
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showContent = $event),
52
51
  "with-header": !title.value,
53
52
  title: title.value,
54
53
  direction: "btt",
@@ -66,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
65
  }, null, 8, ["pageCode", "pageRequest"])) : createCommentVNode("", true)
67
66
  ]),
68
67
  _: 1
69
- }, 8, ["modelValue", "with-header", "title", "size"]);
68
+ }, 8, ["with-header", "title", "size"]);
70
69
  };
71
70
  }
72
71
  });
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, onMounted, onUpdated, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, Fragment, renderList, createBlock, unref, createCommentVNode, createElementVNode, reactive } from "vue";
2
2
  import _sfc_main$1 from "./assemblys/object-render.vue.js";
3
- import { updateOptionDatasources, updateChartDatasources } from "../utils/page-helper-util.js";
3
+ import { updateOptionDatasources } from "../utils/page-helper-util.js";
4
4
  import { queryPageSuperGrids, queryPageDesignByCode, convertToPageContext } from "../utils/page-init-util.js";
5
5
  import { removePageAllRef, initComponentRefState, addComponentRef } from "../utils/global-refs.js";
6
6
  import { removeCustomFuncFromWindow, initPageEvents, handleEvent } from "../utils/events/event-util.js";
@@ -10,13 +10,14 @@ import _sfc_main$4 from "./assemblys/common/remove-signer-dialog.vue.js";
10
10
  import eventBus from "../utils/eventBus.js";
11
11
  import { getData } from "../utils/api/api-util.js";
12
12
  import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners } from "../utils/events/standard-event.js";
13
- import { ElMessage } from "element-plus";
14
- import { useI18n } from "vue-i18n";
15
- import { DepartmentUserTree } from "agilebuilder-ui";
13
+ import { useI18n } from "../../../node_modules/.pnpm/vue-i18n@9.10.2_vue@3.4.21/node_modules/vue-i18n/dist/vue-i18n.js";
14
+ import { DepartmentUserTree } from "../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
16
15
  import { i18nValidateRulesMessage } from "../utils/events/validator-util.js";
17
16
  import _sfc_main$5 from "./super-page-dialog.vue.js";
18
- import { useRouter } from "vue-router";
19
- import "agilebuilder-ui/src/utils/jump-page-utils";
17
+ import { useRouter } from "../../../node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.js";
18
+ import "../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/i18n/i18n.js";
19
+ import "../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
20
+ import { ElMessage } from "../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
20
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  __name: "super-page",
22
23
  props: {
@@ -106,10 +107,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
107
  setTimeout(() => {
107
108
  initOptionDatas(pageContext, pageDesign.initOptionConfigs);
108
109
  }, 0);
109
- setTimeout(() => {
110
- console.log("pageDesign.initChartServiceConfigs", pageDesign.initChartServiceConfigs);
111
- initChartDatas(pageContext, pageDesign.initChartServiceConfigs);
112
- }, 0);
113
110
  pageContext.initDataSources = [];
114
111
  initComponentRefState(pageContext);
115
112
  pageItems.value = pageContext.items ? pageContext.items : [];
@@ -202,16 +199,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
202
199
  updateOptionDatasources(pageContext2, initOptionConfigs, void 0);
203
200
  }
204
201
  }
205
- function initChartDatas(pageContext2, chartConfigs) {
206
- if (!chartConfigs || chartConfigs.length == 0) {
207
- console.log("无需要初始化的选项组数据");
208
- return;
209
- }
210
- console.log("pageContext.chartConfigs:", chartConfigs);
211
- if (chartConfigs && chartConfigs.length > 0) {
212
- updateChartDatasources(pageContext2, chartConfigs);
213
- }
214
- }
215
202
  onMounted(() => {
216
203
  if (props.pageDesign != null) {
217
204
  pageDesignResult.value = props.pageDesign;
@@ -1,8 +1,3 @@
1
- import { SuperPageNew, SuperPageDialogNew } from './components/runtime';
2
- import { getComponentOptionConfigs } from './components/runtime/utils/page-helper-util';
3
- import { getStandPermissionInfo, getFunctionInfo, FuncType } from './components/runtime/utils/page-permission-util';
4
- import { getCustomTheme, getCustomThemeOptions } from './components/runtime/utils/charts/chart-util';
1
+ import { SuperPage, SuperPageDialog } from './components/runtime';
5
2
 
6
- export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs };
7
- export { getStandPermissionInfo, getFunctionInfo, FuncType };
8
- export { getCustomTheme, getCustomThemeOptions };
3
+ export { SuperPage, SuperPageDialog };
package/dist/es/index.js CHANGED
@@ -1,15 +1,6 @@
1
1
  import { default as default2 } from "./components/runtime/views/super-page.vue.js";
2
2
  import { default as default3 } from "./components/runtime/views/super-page-dialog.vue.js";
3
- import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
4
- import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
5
- import { getCustomTheme, getCustomThemeOptions } from "./components/runtime/utils/charts/chart-util.js";
6
3
  export {
7
- FuncType,
8
- default3 as SuperPageDialogNew,
9
- default2 as SuperPageNew,
10
- getComponentOptionConfigs,
11
- getCustomTheme,
12
- getCustomThemeOptions,
13
- getFunctionInfo,
14
- getStandPermissionInfo
4
+ default2 as SuperPage,
5
+ default3 as SuperPageDialog
15
6
  };
@@ -1,4 +1,4 @@
1
- import { default as SuperPageNew } from './views/super-page.vue';
2
- import { default as SuperPageDialogNew } from './views/super-page-dialog.vue';
1
+ import { default as SuperPage } from './views/super-page.vue';
2
+ import { default as SuperPageDialog } from './views/super-page-dialog.vue';
3
3
 
4
- export { SuperPageNew, SuperPageDialogNew };
4
+ export { SuperPage, SuperPageDialog };
@@ -12,17 +12,4 @@ function getCustomTheme(themeName) {
12
12
  console.log("getdd", themeName);
13
13
  return themeMap[themeName];
14
14
  }
15
- function getCustomThemeOptions() {
16
- return [{
17
- value: "theme1",
18
- label: "主题1"
19
- }, {
20
- value: "theme2",
21
- label: "主题2"
22
- }, {
23
- value: "theme3",
24
- label: "主题3"
25
- }];
26
- }
27
15
  exports.getCustomTheme = getCustomTheme;
28
- exports.getCustomThemeOptions = getCustomThemeOptions;
@@ -9,8 +9,3 @@ export declare function getRealRestApiPath(orgRestApiPath: any, system: any): an
9
9
  export declare function packageTemplateFiles(templateFiles: any): any;
10
10
  export declare function upperFirstCase(str: any): any;
11
11
  export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
12
- /**
13
- * 深度复制
14
- * @returns
15
- */
16
- export declare function deepCopy(srcObj: any): any;
@@ -73,19 +73,6 @@ function upperFirstCase(str) {
73
73
  function getListCode(pageCode, pageVersion, tableUuid) {
74
74
  return pageCode + ":V" + pageVersion + ":" + tableUuid;
75
75
  }
76
- function deepCopy(srcObj) {
77
- if (typeof srcObj !== "object" || srcObj === null) {
78
- return srcObj;
79
- }
80
- const copyObj = Array.isArray(srcObj) ? [] : {};
81
- for (const key in srcObj) {
82
- if (srcObj.hasOwnProperty(key)) {
83
- copyObj[key] = deepCopy(srcObj[key]);
84
- }
85
- }
86
- return copyObj;
87
- }
88
- exports.deepCopy = deepCopy;
89
76
  exports.getBaseUrl = getBaseUrl;
90
77
  exports.getListCode = getListCode;
91
78
  exports.getRealRestApiPath = getRealRestApiPath;
@@ -54,7 +54,6 @@ export interface PageDesign extends Component {
54
54
  variables?: CustomVariable[];
55
55
  logicDesigns?: object[];
56
56
  modelFields?: ModelField[];
57
- initChartServiceConfigs?: Array<any>;
58
57
  rules?: object;
59
58
  tableUuids?: Array<any>;
60
59
  tableNames?: Array<any>;
@@ -134,7 +133,6 @@ export interface PageContext extends Component {
134
133
  editData?: object;
135
134
  searchFormData?: Array<object>;
136
135
  selectOptions?: object;
137
- chartDataSourceMap?: any;
138
136
  [otherProp: string]: any;
139
137
  }
140
138
  /**
@@ -14,12 +14,6 @@ export declare function getComponentOptionConfigs(component: Component, pageCont
14
14
  * @returns
15
15
  */
16
16
  export declare function initComponentDataSources(component: Component, pageContext: PageContext): void;
17
- /**
18
- * 初始化统计图的数据源
19
- * @param pageContext 页面上下文
20
- * @param dataSourceConfs 初始化数据配置参数
21
- */
22
- export declare function updateChartDatasources(pageContext: PageContext, dataSourceConfs: Array<any>, appendParams: any): Promise<any>;
23
17
  /**
24
18
  * 初始化数据源
25
19
  * @param pageContext 页面上下文
@@ -32,12 +26,6 @@ export declare function updateOptionDatasources(pageContext: PageContext, dataSo
32
26
  * @param configure
33
27
  */
34
28
  export declare function getOptionDatasFromPage(pageContext: PageContext, configure: Component): any;
35
- /**
36
- * 从页面缓存中获取查询到的统计图数据
37
- * @param pageContext
38
- * @param configure
39
- */
40
- export declare function getChartDatasFromPage(pageContext: PageContext, configure: Component): any;
41
29
  /**
42
30
  * 初始化数据源
43
31
  * @param pageContext 页面上下文
@@ -84,13 +72,6 @@ export declare function formatVariableValue(pageContext: PageContext, variable:
84
72
  * @returns
85
73
  */
86
74
  export declare function formatValueByType(value: any, formatType: string, formatInfo: any): any;
87
- /**
88
- * 从对象中获取值
89
- * @param valueSource 源对象
90
- * @param paramName 变量值
91
- * @param paramType 类型
92
- */
93
- export declare function getValueFromSource(valueSource: any, paramName: string, paramType: any): any;
94
75
  /**
95
76
  * 打开链接
96
77
  * @param component
@@ -4,40 +4,6 @@ const request = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@
4
4
  const dayjs_min = require("../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js");
5
5
  const calculatorUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/calculator/calculator-util.js");
6
6
  const globalRefs = require("./global-refs.js");
7
- function getComponentOptionConfigs(component, pageContext2) {
8
- if (!component.props || !component.props.dataOrigin) {
9
- return;
10
- }
11
- const dataOriginInfo = component.props.dataOrigin;
12
- const infoObj = {
13
- uuid: component.uuid
14
- };
15
- if (dataOriginInfo.optionValueSetType == "optionGroup") {
16
- infoObj.type = "optionGroup";
17
- infoObj.props = {
18
- code: dataOriginInfo.optionGroup
19
- };
20
- } else if (dataOriginInfo.optionValueSetType == "dynamicData") {
21
- infoObj.type = "dynamicData";
22
- infoObj.filterType = dataOriginInfo.filterType;
23
- infoObj.props = {
24
- code: dataOriginInfo.dynamicDataSourceCode
25
- };
26
- } else if (dataOriginInfo.optionValueSetType == "dataTable") {
27
- infoObj.filterType = dataOriginInfo.filterType;
28
- const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
29
- Object.assign(infoObj, tempObj);
30
- } else if (dataOriginInfo.optionValueSetType == "service") {
31
- infoObj.filterType = dataOriginInfo.filterType;
32
- const tempObj = getServiceQueryInfo(dataOriginInfo, pageContext2);
33
- Object.assign(infoObj, tempObj);
34
- }
35
- if (infoObj.type) {
36
- return infoObj;
37
- } else {
38
- return void 0;
39
- }
40
- }
41
7
  function getTableQueryInfo(dataOriginInfo, pageContext2) {
42
8
  const infoObj = {};
43
9
  infoObj.type = "dataTable";
@@ -103,80 +69,6 @@ function getTableQueryInfo(dataOriginInfo, pageContext2) {
103
69
  infoObj.props.pageSize = dataOriginInfo.displayQuantity;
104
70
  return infoObj;
105
71
  }
106
- function getServiceQueryInfo(dataOriginInfo, pageContext2) {
107
- const infoObj = {};
108
- infoObj.type = "service";
109
- infoObj.props = {
110
- serivceCode: dataOriginInfo.serviceCode,
111
- systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
112
- systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode
113
- };
114
- if (dataOriginInfo.serviceInputs) {
115
- const searchForm = [];
116
- for (const f of dataOriginInfo.serviceInputs) {
117
- if (!f.name || f.value) {
118
- continue;
119
- }
120
- const tempObj = {};
121
- Object.assign(tempObj, f);
122
- searchForm.push(tempObj);
123
- }
124
- infoObj.props.inputs = searchForm;
125
- }
126
- infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
127
- infoObj.props.valueField = dataOriginInfo.serviceValueField;
128
- infoObj.props.labelField = dataOriginInfo.serviceLabelField;
129
- return infoObj;
130
- }
131
- function updateChartDatasources(pageContext2, dataSourceConfs, appendParams) {
132
- return new Promise((resolve, reject) => {
133
- if (!dataSourceConfs || dataSourceConfs.length == 0) {
134
- reject(new Error("无需查询的统计图配置!"));
135
- return;
136
- }
137
- const entityData2 = pageContext2.entity ? pageContext2.entity : {};
138
- const additionalParamMap = {};
139
- if (entityData2.request) {
140
- Object.assign(additionalParamMap, entityData2.request);
141
- }
142
- if (entityData2.page) {
143
- Object.assign(additionalParamMap, entityData2.page);
144
- }
145
- if (appendParams) {
146
- Object.assign(additionalParamMap, appendParams);
147
- }
148
- const taskMap = {};
149
- if (entityData2.task) {
150
- Object.assign(taskMap, entityData2.task);
151
- }
152
- const param = {
153
- entityMap: entityData2.data,
154
- additionalParamMap,
155
- taskMap,
156
- dataSourceList: dataSourceConfs,
157
- systemCode: pageContext2.systemCode,
158
- pageCode: pageContext2.code
159
- };
160
- const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-chart-datas";
161
- request.post(url, param).then((result) => {
162
- if (!pageContext2.chartDataSourceMap) {
163
- pageContext2.chartDataSourceMap = {};
164
- }
165
- for (const uuid in result) {
166
- pageContext2.chartDataSourceMap[uuid] = result[uuid];
167
- const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
168
- if (componentObj && componentObj.updateChartDatas) {
169
- componentObj.updateChartDatas(result[uuid]);
170
- }
171
- }
172
- console.log("查询统计图数据完成", result);
173
- resolve(result);
174
- }).catch((error) => {
175
- console.log("查询统计图数据失败", error);
176
- reject(error);
177
- });
178
- });
179
- }
180
72
  function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
181
73
  return new Promise((resolve, reject) => {
182
74
  if (!dataSourceConfs || dataSourceConfs.length == 0) {
@@ -226,13 +118,6 @@ function getOptionDatasFromPage(pageContext2, configure2) {
226
118
  const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
227
119
  return cacheOptions ? cacheOptions : [];
228
120
  }
229
- function getChartDatasFromPage(pageContext2, configure2) {
230
- if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
231
- return null;
232
- }
233
- const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
234
- return cacheDatas;
235
- }
236
121
  function queryOptionDatasources(pageContext2, dataSourceConf, query) {
237
122
  return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
238
123
  }
@@ -609,14 +494,10 @@ exports.autoSetAfterSelect = autoSetAfterSelect;
609
494
  exports.caculateShowCondition = caculateShowCondition;
610
495
  exports.formatValueByType = formatValueByType;
611
496
  exports.formatVariableValue = formatVariableValue;
612
- exports.getChartDatasFromPage = getChartDatasFromPage;
613
- exports.getComponentOptionConfigs = getComponentOptionConfigs;
614
497
  exports.getOptionDatasFromPage = getOptionDatasFromPage;
615
- exports.getValueFromSource = getValueFromSource;
616
498
  exports.getVariableValue = getVariableValue;
617
499
  exports.openLink = openLink;
618
500
  exports.queryOptionDatasources = queryOptionDatasources;
619
501
  exports.queryOptions = queryOptions;
620
502
  exports.setVariableValue = setVariableValue;
621
- exports.updateChartDatasources = updateChartDatasources;
622
503
  exports.updateOptionDatasources = updateOptionDatasources;