super-page-runtime 2.3.47-sit1 → 2.3.47-sit2

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 (173) hide show
  1. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
  2. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
  3. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
  4. package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime.vue2.js → buttongroup-runtime2.vue.js} +4 -4
  5. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
  6. package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime.vue2.js → dropdown-runtime2.vue.js} +4 -4
  7. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
  9. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
  11. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime.vue2.js → column-line-runtime2.vue.js} +2 -2
  13. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +2 -2
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search.vue2.js → common-homepage-search2.vue.js} +2 -2
  18. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime.vue2.js → gauge-runtime2.vue.js} +2 -2
  21. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime.vue2.js → pie-runtime2.vue.js} +2 -2
  23. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime.vue2.js → radar-runtime2.vue.js} +2 -2
  25. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime.vue2.js → scatter-runtime2.vue.js} +2 -2
  27. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  28. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime.vue2.js → table-runtime2.vue.js} +12 -11
  33. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +2 -2
  34. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
  40. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  42. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime.vue2.js → card-runtime2.vue.js} +4 -4
  44. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime.vue2.js → collapse-runtime2.vue.js} +4 -4
  46. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
  48. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox.vue2.js → FixedBox2.vue.js} +2 -2
  50. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix.vue2.js → YxAffix2.vue.js} +2 -2
  52. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime.vue2.js → flex-runtime2.vue.js} +4 -4
  54. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime.vue2.js → form-runtime2.vue.js} +4 -4
  56. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime.vue2.js → iframe-runtime2.vue.js} +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
  60. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime.vue2.js → tools-runtime2.vue.js} +2 -2
  62. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
  63. package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime.vue2.js → barcode-runtime2.vue.js} +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime.vue2.js → table-runtime2.vue.js} +2 -2
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
  72. package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime.vue2.js → checkbox-runtime2.vue.js} +4 -4
  73. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -4
  74. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
  75. package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime.vue2.js → custom-runtime2.vue.js} +4 -4
  76. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
  77. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
  78. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
  79. package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime.vue2.js → depttree-runtime2.vue.js} +4 -4
  80. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
  81. package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime.vue2.js → divider-runtime2.vue.js} +4 -4
  82. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime.vue2.js → fileupload-runtime2.vue.js} +4 -4
  84. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
  85. package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime.vue2.js → imageupload-runtime2.vue.js} +4 -4
  86. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
  87. package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime.vue2.js → input-number-runtime2.vue.js} +4 -4
  88. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
  89. package/dist/es/components/runtime/views/assemblys/form/input-text/{inputtext-runtime.vue2.js → inputtext-runtime2.vue.js} +6 -6
  90. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  91. package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime.vue2.js → label-runtime2.vue.js} +4 -4
  92. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
  93. package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime.vue2.js → link-runtime2.vue.js} +4 -4
  94. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  95. package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime.vue2.js → placeholder-runtime2.vue.js} +2 -2
  96. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
  97. package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime.vue2.js → radio-runtime2.vue.js} +4 -4
  98. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
  100. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime.vue2.js → select-runtime2.vue.js} +5 -5
  102. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
  103. package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime.vue2.js → separatelabel-runtime2.vue.js} +2 -2
  104. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
  105. package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime.vue2.js → switch-runtime2.vue.js} +4 -4
  106. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
  107. package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime.vue2.js → tag-runtime2.vue.js} +12 -12
  108. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
  110. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +4 -4
  111. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +3 -3
  113. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +3 -3
  114. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
  115. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
  117. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
  119. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
  120. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime.vue2.js → pictureflow-runtime2.vue.js} +2 -2
  121. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
  122. package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime.vue2.js → textflow-runtime2.vue.js} +2 -2
  123. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  124. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime.vue2.js → workflowbutton-runtime2.vue.js} +2 -2
  125. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
  126. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime.vue2.js → workflownode-runtime2.vue.js} +2 -2
  127. package/dist/es/components/runtime/views/home-chart.vue.js +2 -2
  128. package/dist/es/components/runtime/views/super-page-dialog.vue.js +16 -15
  129. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  130. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  131. package/dist/es/components/runtime/views/{super-page.vue2.js → super-page2.vue.js} +3 -3
  132. package/dist/es/i18n/langs/cn.js +1 -1
  133. package/dist/es/i18n/langs/en.js +1 -1
  134. package/dist/es/style.css +85 -85
  135. package/package.json +1 -1
  136. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -29
  137. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +0 -6
  138. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -21
  139. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -27
  140. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
  141. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
  142. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
  143. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
  144. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -28
  145. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
  146. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
  147. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
  148. /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb.vue2.js → common-chart-header-breadcrumb2.vue.js} +0 -0
  149. /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group.vue2.js → common-chart-header-group2.vue.js} +0 -0
  150. /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header.vue2.js → common-chart-header2.vue.js} +0 -0
  151. /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render.vue2.js → home-chart-condition-render2.vue.js} +0 -0
  152. /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item.vue2.js → group-column-item2.vue.js} +0 -0
  153. /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column.vue2.js → group-column2.vue.js} +0 -0
  154. /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column.vue2.js → normal-column2.vue.js} +0 -0
  155. /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination.vue2.js → table-pageination2.vue.js} +0 -0
  156. /package/dist/es/components/runtime/views/assemblys/common/{event-call-component.vue2.js → event-call-component2.vue.js} +0 -0
  157. /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog.vue2.js → export-form-report-dialog2.vue.js} +0 -0
  158. /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice.vue2.js → file-task-notice2.vue.js} +0 -0
  159. /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message.vue2.js → format-file-task-notice-message2.vue.js} +0 -0
  160. /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog.vue2.js → remove-signer-dialog2.vue.js} +0 -0
  161. /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table.vue2.js → remove-signer-table2.vue.js} +0 -0
  162. /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog.vue2.js → remove-transactor-dialog2.vue.js} +0 -0
  163. /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog.vue2.js → save-chart-condition-dialog2.vue.js} +0 -0
  164. /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog.vue2.js → task-informition-dialog2.vue.js} +0 -0
  165. /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime.vue2.js → main-table-runtime2.vue.js} +0 -0
  166. /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime.vue2.js → sub-table-runtime2.vue.js} +0 -0
  167. /package/dist/es/components/runtime/views/assemblys/{error-render.vue2.js → error-render2.vue.js} +0 -0
  168. /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element.vue2.js → title-suffix-element2.vue.js} +0 -0
  169. /package/dist/es/components/runtime/views/assemblys/{home-chart-render.vue2.js → home-chart-render2.vue.js} +0 -0
  170. /package/dist/es/components/runtime/views/assemblys/{object-render.vue2.js → object-render2.vue.js} +0 -0
  171. /package/dist/es/components/runtime/views/assemblys/{page-bottom.vue2.js → page-bottom2.vue.js} +0 -0
  172. /package/dist/es/components/runtime/views/{home-chart.vue2.js → home-chart2.vue.js} +0 -0
  173. /package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog3.vue.js} +0 -0
@@ -1,21 +0,0 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u, createBlock as o, openBlock as a, normalizeStyle as i, normalizeClass as p, unref as r, withCtx as s, createElementBlock as g, Fragment as c, createTextVNode as m, toDisplayString as f, createVNode as v, renderList as d } from "vue";
2
- import "agilebuilder-ui";
3
- import { handleAfterInitEvent as y, handleEvent as b } from "../../../../utils/events/event-util.js";
4
- import k from "../button/button-runtime.vue2.js";
5
- import { $t as C } from "../../../../utils/i18n-util.js";
6
- const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
- const _2 = e2, w = _2.configure.runtime ? _2.configure.runtime : {}, z = t(w.props ? w.props : {}), j = t(false);
8
- z.value.template && z.value.template.length > 1 && (j.value = true);
9
- const B = w.style, D = w.class, R = t(null);
10
- return l(() => {
11
- n(() => {
12
- j.value && y(null, _2.pageContext, _2.configure, { componentRef: R.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
13
- });
14
- }), (e3, t2) => {
15
- const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
16
- return j.value ? (a(), o(h, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(T, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(w2, { key: t3, onClick: (l4) => r(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => r(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(_3, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(y2, null, { default: s(() => [v(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
17
- };
18
- } });
19
- export {
20
- _ as default
21
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as l, resolveComponent as o, createBlock as u, openBlock as i, withCtx as s, withDirectives as a, createCommentVNode as r, createElementBlock as f, createVNode as p, normalizeStyle as c, unref as g, Fragment as d, renderList as y, vShow as m, normalizeClass as v } from "vue";
2
- import { ArrowLeft as C, ArrowRight as x } from "@element-plus/icons-vue";
3
- import k from "../../object-render.vue.js";
4
- import "../../../../utils/global-refs.js";
5
- import { handleAfterInitEvent as A } from "../../../../utils/events/event-util.js";
6
- const _ = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
7
- const h = e2, L = t(null), R = h.configure.runtime ? h.configure.runtime : {}, b = R.leftStyle, j = R.rightStyle, D = R.style, S = R.class, w = t(true), I = t(true);
8
- return true === h.configure.props.leftAsideDefaultClose && (w.value = false), n(() => {
9
- l(() => {
10
- A(null, h.pageContext, h.configure, { componentRef: L.value, entity: h.pageContext.entity.data, pageData: h.pageContext.entity.page });
11
- });
12
- }), _2({ closeLeftAside: function() {
13
- w.value = false;
14
- }, openLeftAside: function() {
15
- w.value = true;
16
- }, closeRightAside: function() {
17
- I.value = false;
18
- }, openRightAside: function() {
19
- I.value = true;
20
- } }), (e3, t2) => {
21
- const n2 = o("el-aside"), l2 = o("el-icon"), A2 = o("el-main"), _3 = o("el-container");
22
- return i(), u(_3, { ref_key: "thisRef", ref: L }, { default: s(() => [e3.configure.props.useLeft ? a((i(), u(n2, { key: 0, style: c(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, w.value]]) : r("", true), e3.configure.props.useLeft && e3.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: t2[0] || (t2[0] = (e4) => w.value = !w.value) }, [p(l2, null, { default: s(() => [w.value ? (i(), u(g(C), { key: 0 })) : (i(), u(g(x), { key: 1 }))]), _: 1 })])) : r("", true), p(A2, { style: c(g(D)), class: v(g(S)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? a((i(), u(n2, { key: 2, style: c(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
23
- };
24
- } });
25
- export {
26
- _ as default
27
- };
@@ -1,96 +0,0 @@
1
- import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
2
- import { ElTabs as x, ElTabPane as C } from "element-plus";
3
- import T from "../../object-render.vue.js";
4
- import { SuperIcon as k } from "agilebuilder-ui";
5
- import { handleAfterInitEvent as w, handleEvent as E } from "../../../../utils/events/event-util.js";
6
- import { $t as O } from "../../../../utils/i18n-util.js";
7
- import { isPromise as N } from "../../../../utils/page-helper-util.js";
8
- const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
9
- const _ = e2, A = n(""), I = n([]);
10
- _.configure.items.forEach((e3) => {
11
- e3.code || (e3.code = e3.index);
12
- }), A.value = _.configure.props.defaultOpen ? _.configure.props.defaultOpen : 1;
13
- const P = n(null), j = _.configure.runtime ? _.configure.runtime : {}, R = j.style, B = j.class, z = j.headerStyle;
14
- function S(e3, n2) {
15
- return E(e3, _.pageContext, _.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
16
- }
17
- function D(e3, n2) {
18
- const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
19
- return _.pageContext.activeTab = o2, _.pageContext.activeLabel = t2.label, _.pageContext.workflowOpinion && _.pageContext.workflowOpinion.boxInstance && (o2 === _.configure.items[0].code ? _.pageContext.workflowOpinion.boxInstance.show() : _.pageContext.workflowOpinion.boxInstance.hide()), E(o2, _.pageContext, _.configure, "tab-click", t2);
20
- }
21
- function F(e3) {
22
- const n2 = { paneName: e3 };
23
- return _.pageContext.activeTab = e3, E(e3, _.pageContext, _.configure, "tab-change", n2);
24
- }
25
- function L(e3) {
26
- const n2 = { paneName: e3 }, t2 = E(e3, _.pageContext, _.configure, "tab-remove", n2);
27
- N(t2) ? t2.then((n3) => {
28
- false !== n3 && U(e3);
29
- }) : false !== t2 && U(e3);
30
- }
31
- function U(e3) {
32
- A.value === e3 && _.configure.items.forEach((n2, t2) => {
33
- if (n2.code === e3) {
34
- const e4 = _.configure.items[t2 + 1] || _.configure.items[t2 - 1];
35
- e4 && void 0 !== e4.code && (A.value = e4.code);
36
- }
37
- }), I.value.includes(e3) || I.value.push(e3);
38
- }
39
- function q() {
40
- return E(null, _.pageContext, _.configure, "tab-add");
41
- }
42
- function G(e3, n2) {
43
- const t2 = { paneName: e3, action: n2 };
44
- return E(e3, _.pageContext, _.configure, "edit", t2);
45
- }
46
- function H() {
47
- const e3 = E(_.configure.items, _.pageContext, _.configure, "tab-reset");
48
- N(e3) ? e3.then((e4) => {
49
- I.value = [];
50
- }) : false !== e3 && (I.value = []);
51
- }
52
- return t(I, (e3) => {
53
- e3 && e3.length > 0 ? e3.forEach((e4) => {
54
- const n2 = document.getElementById("tab-" + e4);
55
- n2 && (n2.style.display = "none");
56
- }) : _.configure.items.forEach((e4) => {
57
- const n2 = document.getElementById("tab-" + e4.code);
58
- n2 && (n2.style.display = "");
59
- });
60
- }, { deep: true }), o(() => {
61
- a(() => {
62
- let e3 = [];
63
- _.configure.items.forEach((n2) => {
64
- n2.code && e3.push(document.getElementById("tab-" + n2.code));
65
- }), w(null, _.pageContext, _.configure, { componentRef: P.value, tabsDom: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
66
- });
67
- }), V2({ thisRef: P, activeName: A, hiddenPanes: I, resetTab: H, hiddenTabPanes: function(e3) {
68
- if (Array.isArray(e3)) {
69
- const n2 = [];
70
- e3.forEach((e4) => {
71
- I.value.includes(e4) || n2.push(e4);
72
- }), n2.length > 0 && I.value.push(...n2);
73
- }
74
- }, showTabPanes: function(e3) {
75
- Array.isArray(e3) && e3.forEach((e4) => {
76
- const n2 = I.value.indexOf(e4);
77
- n2 > -1 && I.value.splice(n2, 1);
78
- });
79
- }, showTabPanesOnly: function(e3) {
80
- const n2 = [];
81
- _.configure.items.forEach((t2) => {
82
- e3.includes(t2.code) || n2.push(t2.code);
83
- }), I.value = [...new Set(n2)];
84
- }, hiddenTabPanesOnly: function(e3) {
85
- const n2 = [];
86
- _.configure.items.forEach((t2) => {
87
- e3.includes(t2.code) && n2.push(t2.code);
88
- }), I.value = [...new Set(n2)];
89
- } }), (e3, n2) => {
90
- const t2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => A.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
- };
93
- } });
94
- export {
95
- V as default
96
- };
@@ -1,134 +0,0 @@
1
- import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
2
- import T from "../../../../../../assets/folder.png.js";
3
- import I from "../../../../../../assets/file.png.js";
4
- import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
5
- import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
6
- import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
7
- import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
8
- import { ElMessageBox as S, ElMessage as z } from "element-plus";
9
- import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
10
- const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
11
- var _a, _b, _c;
12
- const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
13
- ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
14
- if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
15
- const a2 = e3.functionCodes[t2];
16
- if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
17
- }
18
- else q.value.push(e3);
19
- }) : q.value = X.configure.props.contextMenus);
20
- let F = V(X.pageContext, X.configure);
21
- const G = a({ get: () => L(Y, F), set(e3) {
22
- b(Y, F, e3);
23
- } }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
24
- n(() => {
25
- l(() => {
26
- const e3 = G.value;
27
- _(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
28
- });
29
- }), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
30
- oe.value = e3, le.value = true;
31
- }), o(ue, (e3) => {
32
- ie.value = true, te.value.filter(e3);
33
- });
34
- const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
- function ve(e3, t2, a2) {
36
- de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
37
- }
38
- function fe(e3, t2) {
39
- let a2 = "0";
40
- a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
41
- const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
42
- M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
43
- if (ie.value = false, a3(n3), "0" === e4) {
44
- !function(e5, t4) {
45
- const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
- M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
47
- ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
48
- });
49
- }(n3[0].nodeId, t3);
50
- }
51
- });
52
- }(a2, e3, t2);
53
- }
54
- const ge = t({}), me = (e3, t2, a2, n2) => {
55
- if (se.value) return void z.warning("请先保存当前编辑节点!");
56
- document.removeEventListener("click", he), ge.value = a2, A.value = true;
57
- const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
58
- if (d2) {
59
- const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
60
- d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
61
- }
62
- document.addEventListener("click", he);
63
- }, he = () => {
64
- A.value = false, document.removeEventListener("click", he);
65
- }, ye = (e3, t2) => {
66
- if (e3.parent && e3.parent.level > 0) {
67
- const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
- e3.parent.data.children[a2] = t2, e3.data = t2;
69
- } else {
70
- const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
- e3.parent.data[a2] = t2, e3.data = t2;
72
- }
73
- }, Ce = () => {
74
- se.value = "", ce.value = "", re.value = "";
75
- }, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
76
- function ke(e3) {
77
- e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
78
- K(ge.value, X.configure, X.pageContext).then(() => {
79
- z.success("删除成功!"), Ne(), ge.value = null;
80
- });
81
- }).catch(() => {
82
- ge.value = null;
83
- }) : K(ge.value, X.configure, X.pageContext).then(() => {
84
- z.success("删除成功!"), Ne(), ge.value = null;
85
- });
86
- }
87
- const Ne = () => {
88
- const e3 = ge.value.parent;
89
- te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
90
- };
91
- return U2({ getSelectNode: function() {
92
- return de.value;
93
- }, expandNode: function(e3) {
94
- e3.loaded = false, e3.expand();
95
- }, loadTreeNodes: function() {
96
- M(X.pageContext, X.configure).then((e3) => {
97
- ie.value = false, oe.value = e3;
98
- });
99
- }, getNode: function(e3) {
100
- te.value.getNode(e3);
101
- }, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
102
- te.value.setCheckedNodes(e3);
103
- }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
104
- te.value.setCheckedKeys(e3, t2);
105
- }, setChecked: (e3, t2, a2) => {
106
- te.value.setChecked(e3, t2, a2);
107
- }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
108
- var _a2;
109
- const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
110
- return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
111
- "" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
112
- ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
113
- }) : E(e5, X.configure, X.pageContext).then((t3) => {
114
- ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
115
- })) : z.warning("请输入节点名称");
116
- })(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
117
- re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
118
- })(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
119
- if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
- else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
- ke(e5);
122
- }).catch(() => {
123
- ge.value = null;
124
- })) : ke(e5);
125
- else {
126
- const t5 = xe();
127
- se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e5.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e5.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
128
- }
129
- })(e4) }, [h("span", null, x(e4.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
130
- };
131
- } });
132
- export {
133
- U as default
134
- };
@@ -1,102 +0,0 @@
1
- import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, createBlock as r, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
4
- import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
6
- import j from "../common/title-suffix-element.vue.js";
7
- import R from "dayjs";
8
- import { $t as Y } from "../../../../utils/i18n-util.js";
9
- import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
10
- import { DatePickerRange as D, DateQuarterPicker as S } from "agilebuilder-ui";
11
- const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
12
- var _a;
13
- const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, M = w.configure.runtime ? w.configure.runtime : {}, U = M.style, I = M.class, N = M.headerStyle, W = M.titleExceedStyle, $ = a(M.props ? M.props : {});
14
- let E = y(w.pageContext, w.configure, $.value.prop);
15
- if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
16
- const e3 = x(E, w.pageContext);
17
- e3 && function(e4) {
18
- const a2 = e4.dataType;
19
- k(a2) && ("year" === $.value.dateType && "YYYY" === $.value.valueFormat || "month" === $.value.dateType && "YYYY-MM" === $.value.valueFormat) && ($.value.valueFormat = "x");
20
- }(e3);
21
- }
22
- let O = null, G = false;
23
- if ($.value.dateType && $.value.dateType.includes("range")) {
24
- G = true;
25
- let e3 = $.value.prop2;
26
- e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
27
- const a2 = b(B, e3, null);
28
- if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && $.value.defaultValue2) {
29
- const e4 = b(B, $.value.defaultValue2);
30
- if (null != e4 && "" !== e4) F(B, O, e4);
31
- else if (((_a = $.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
32
- const e5 = $.value.moreDefaultValue2;
33
- for (let a3 = 0; a3 < e5.length; a3++) {
34
- const l2 = b(B, e5[a3]);
35
- if (null != l2 && "" !== l2) {
36
- F(B, O, l2);
37
- break;
38
- }
39
- }
40
- }
41
- }
42
- }
43
- const H = a(null), J = a(null), K = a(null);
44
- function L(e3, a2) {
45
- if (!e3) return e3;
46
- if (a2) {
47
- "number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
48
- try {
49
- const l2 = R(e3);
50
- let t2 = null;
51
- return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), t2;
52
- } catch (a3) {
53
- return e3;
54
- }
55
- }
56
- return e3;
57
- }
58
- if (l(() => {
59
- t(() => {
60
- const e3 = Q.value;
61
- T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
62
- });
63
- }), E) {
64
- const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
65
- e3 !== a2 && F(B, E, a2);
66
- }
67
- if (O) {
68
- const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
69
- e3 !== a2 && F(B, O, a2);
70
- }
71
- const Q = o({ get() {
72
- if (G) {
73
- const e3 = [];
74
- let a2 = V(B, E);
75
- e3.push(L(a2, $.value.valueFormat));
76
- let l2 = V(B, O);
77
- return e3.push(L(l2, $.value.valueFormat)), e3;
78
- }
79
- return L(V(B, E), $.value.valueFormat);
80
- }, set(e3) {
81
- G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
82
- } }), X = a(C($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
83
- if ($.value.shortcutsFunc) {
84
- const e3 = z(w.pageContext, $.value.shortcutsFunc);
85
- if (e3) {
86
- let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
87
- if (a2) {
88
- Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
89
- for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
90
- }
91
- }
92
- }
93
- return q2({ addRequiredClass: function() {
94
- A.value = _();
95
- } }), (e3, a2) => {
96
- const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
97
- return n(), r(o2, { ref_key: "formItemRef", ref: H, required: $.value.required, class: d(c(I) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(c(U)) }, p({ default: s(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, "unlink-panels": true, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => Q.value = e4), shortcuts: X.value, type: $.value.dateType, onChange: a2[1] || (a2[1] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== $.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes($.value.dateType) ? (n(), r(c(D), { key: 1, modelValue: Q.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, size: $.value.size, shortcuts: X.value, onChange: a2[8] || (a2[8] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === $.value.dateType ? (n(), r(c(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, size: $.value.size, onChange: a2[15] || (a2[15] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onClear: a2[18] || (a2[18] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), r(t2, { key: 3, ref_key: "componentRef", ref: J, clearable: $.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[19] || (a2[19] = (e4) => Q.value = e4), shortcuts: X.value, type: $.value.dateType, onChange: a2[20] || (a2[20] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[21] || (a2[21] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[22] || (a2[22] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[23] || (a2[23] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[24] || (a2[24] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[25] || (a2[25] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [$.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...c(N), ...c(W) }) }, [$.value.prefixType ? (n(), r(j, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(c(Y)($.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
98
- };
99
- } });
100
- export {
101
- q as default
102
- };
@@ -1,218 +0,0 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as r, resolveComponent as i, createElementBlock as a, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as f, normalizeStyle as p, normalizeClass as m, unref as g, createSlots as v, withCtx as h, createElementVNode as b, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as k, formatVariableValue as q, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as S, handleFormEvent as A } from "../../../../utils/events/event-util.js";
5
- import E from "agilebuilder-ui/src/utils/request";
6
- import { $t as T } from "../../../../utils/i18n-util.js";
7
- import { getBaseUrl as L, addRequiredClassUtil as H } from "../../../../utils/common-util.js";
8
- import M from "quill";
9
- import "quill/dist/quill.snow.css";
10
- import { ElMessage as N } from "element-plus";
11
- const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext-statusbar" }, F = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, W = ["innerHTML"], z = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
- const B = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], D = M.import("attributors/style/size");
13
- D.whitelist = B, M.register(D, true);
14
- const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], $ = M.import("attributors/style/font");
15
- $.whitelist = U, M.register($, true);
16
- const P = e2, O = t(""), G = P.pageContext.entity ? P.pageContext.entity : {}, I = x(P.pageContext, P.configure), K = P.configure.runtime ? P.configure.runtime : {}, Y = K.style, J = K.class, Q = K.headerStyle, X = K.titleExceedStyle, Z = t(K.props ? K.props : {});
17
- let ee = k(P.pageContext, P.configure);
18
- ee && ee.fixHeight && (Y.height || (Y.height = ee.fixHeight + "px"));
19
- let te = Z.value.value;
20
- const le = q(P.pageContext, te), ne = t(null);
21
- let oe = null;
22
- const re = t(false), ie = t(0), ae = t(false), ue = t(false), se = t("");
23
- let ce = null, de = Z.value.state;
24
- function fe(e3) {
25
- return "readonly" == e3 || "disabled" == e3;
26
- }
27
- const pe = fe(de), me = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: B }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: U }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: pe ? "" : Z.value.placeholder, readOnly: pe });
28
- function ge() {
29
- if (!(oe == null ? void 0 : oe.container)) return;
30
- const e3 = oe.container.parentNode;
31
- if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), l2 = oe.container.getBoundingClientRect();
33
- let n2 = t2.height - (l2.top - t2.top);
34
- n2 -= 24, oe.container.style.height = Math.max(n2, 100) + "px";
35
- }
36
- l(Z.value, () => {
37
- const e3 = Z.value.state;
38
- if (null != e3 && e3 !== de) {
39
- de = e3;
40
- const t2 = fe(de);
41
- oe && (oe.enable(!t2), oe.root.dataset.placeholder = t2 ? "" : Z.value.placeholder);
42
- }
43
- });
44
- const ve = t([]), he = t(false), be = t(null), ye = t(null), xe = t(null);
45
- let ke = null;
46
- function qe(e3) {
47
- const t2 = e3.match(/serverPath=([^&"]+)/);
48
- return t2 ? t2[1] : "";
49
- }
50
- function we(e3) {
51
- if (!oe) return;
52
- const t2 = function(e4) {
53
- if (!e4) return e4;
54
- const t3 = new DOMParser().parseFromString(e4, "text/html"), l3 = P.pageContext.backendUrl, n2 = L(l3, P.pageContext.isTest);
55
- t3.querySelectorAll("th").forEach((e5) => {
56
- const l4 = t3.createElement("td");
57
- for (const t4 of Array.from(e5.attributes)) l4.setAttribute(t4.name, t4.value);
58
- l4.style.fontWeight = "bold", l4.innerHTML = e5.innerHTML, e5.replaceWith(l4);
59
- }), t3.querySelectorAll("img[data-uuid]").forEach((e5) => {
60
- const t4 = e5, l4 = t4.getAttribute("data-uuid");
61
- l4 && t4.setAttribute("src", `${n2}/common/fs-upload/download?serverPath=${l4}&isShowWatermark=false`);
62
- });
63
- let o2 = t3.body.innerHTML;
64
- return o2 = o2.replace(/\t/g, "    "), o2 = o2.replace(/ {2}/g, "  "), o2;
65
- }(e3), l2 = oe.clipboard.convertHTML(t2);
66
- oe.setContents(l2.ops), o(() => {
67
- if (!oe) return;
68
- oe.root.querySelectorAll("img").forEach((e4) => {
69
- if (!e4.getAttribute("data-uuid")) {
70
- const t3 = qe(e4.src);
71
- t3 && e4.setAttribute("data-uuid", t3);
72
- }
73
- }), oe && oe.root.querySelectorAll("table").forEach((e4) => {
74
- const t3 = e4.querySelector("tr");
75
- t3 && t3.querySelectorAll("td").forEach((e5) => {
76
- e5.querySelector("strong, b") && (e5.style.backgroundColor = "#f5f7fa");
77
- });
78
- });
79
- });
80
- }
81
- const Ce = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
82
- function Se() {
83
- re.value = !re.value, o(() => {
84
- !re.value && (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ge();
85
- });
86
- }
87
- function Ae() {
88
- oe && (se.value = oe.root.innerHTML, ue.value = true);
89
- }
90
- function Ee() {
91
- if (!oe) return void (ie.value = 0);
92
- const e3 = oe.getText().trim();
93
- ie.value = e3.length;
94
- }
95
- function Te() {
96
- if (!oe) return "";
97
- const e3 = oe.root.cloneNode(true);
98
- return e3.querySelectorAll("img[data-uuid]").forEach((e4) => {
99
- e4.getAttribute("data-uuid") && e4.removeAttribute("src");
100
- }), e3.innerHTML;
101
- }
102
- function Le() {
103
- N.error({ message: "图片上传失败,请重试", duration: 3e3 });
104
- }
105
- function He(e3) {
106
- "Escape" === e3.key && re.value && (re.value = false, o(() => {
107
- (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ge();
108
- }));
109
- }
110
- function Me(e3) {
111
- var _a;
112
- oe && (null !== e3.relatedTarget && ((_a = ne.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || A(Te(), P.pageContext, P.configure, "change", { entity: G }));
113
- }
114
- function Ne(e3) {
115
- if ("img" === e3.target.localName) {
116
- ve.value = [];
117
- let t2 = e3.target.src;
118
- ve.value.push(t2), he.value = true;
119
- }
120
- }
121
- function Re(e3) {
122
- const t2 = new FormData();
123
- t2.append("file", e3);
124
- const l2 = P.pageContext.backendUrl, n2 = L(l2, P.pageContext.isTest);
125
- return E.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
126
- }
127
- function _e(e3, t2) {
128
- const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", r2 = atob(l2[1]);
129
- let i2 = r2.length;
130
- const a2 = new Uint8Array(i2);
131
- for (; i2--; ) a2[i2] = r2.charCodeAt(i2);
132
- return new File([a2], t2, { type: o2 });
133
- }
134
- return n(() => {
135
- var _a;
136
- ne.value && (oe = new M(ne.value, me.value), oe.root.style.fontSize = "16px", function() {
137
- var _a2, _b;
138
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
139
- if (!e3) return;
140
- e3.querySelectorAll("button").forEach((e4) => {
141
- const t2 = e4.className.match(/ql-([\w-]+)/);
142
- if (t2) {
143
- const l2 = t2[1], n2 = `${l2}[value="${e4.value}"]`;
144
- Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[l2] && e4.setAttribute("data-tooltip", Ce[l2]);
145
- }
146
- }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
147
- const t2 = e4.className.match(/ql-(\w+)/);
148
- if (t2) {
149
- const l2 = t2[1];
150
- if (Ce[l2]) {
151
- const t3 = e4.querySelector(".ql-picker-label");
152
- t3 && t3.setAttribute("data-tooltip", Ce[l2]);
153
- }
154
- }
155
- });
156
- }(), function() {
157
- var _a2, _b;
158
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
159
- e3 && e3.addEventListener("mousedown", (e4) => {
160
- e4.preventDefault();
161
- });
162
- }(), we(le), (_a = ne.value) == null ? void 0 : _a.addEventListener("focusout", Me), oe.on("text-change", async function(e3) {
163
- if (!oe) return;
164
- const t2 = oe.root.getElementsByTagName("img");
165
- for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
166
- const t3 = qe(e4.src);
167
- e4.setAttribute("data-uuid", t3);
168
- }
169
- if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
170
- const e4 = t3.insert;
171
- if (e4 == null ? void 0 : e4.image) {
172
- const t4 = e4.image;
173
- if (!t4.startsWith("data:image")) continue;
174
- try {
175
- ae.value = true;
176
- const e5 = _e(t4, "image.png"), l2 = await Re(e5);
177
- if (!oe) return;
178
- const n2 = oe.root.getElementsByTagName("img");
179
- for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
180
- } catch (e5) {
181
- Le();
182
- } finally {
183
- ae.value = false;
184
- }
185
- }
186
- }
187
- !function() {
188
- ce && clearTimeout(ce);
189
- ce = setTimeout(() => {
190
- if (!oe) return;
191
- const e4 = Te();
192
- C(G, I, e4), e4 && (O.value = "");
193
- }, 300);
194
- }(), Ee();
195
- }), Ee(), ke = oe.container, ke.addEventListener("click", Ne), ge(), o(() => {
196
- const e3 = w(G, I);
197
- S(e3, P.pageContext, P.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: xe.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
198
- }));
199
- }), n(() => {
200
- document.addEventListener("keydown", He);
201
- }), r(() => {
202
- document.removeEventListener("keydown", He), ce && clearTimeout(ce), ne.value && ne.value.removeEventListener("focusout", Me), ke && ke.removeEventListener("click", Ne);
203
- }), z2({ addRequiredClass: function() {
204
- O.value = H();
205
- }, setContent: function(e3) {
206
- we(e3), Ee();
207
- }, getContent: function() {
208
- return oe ? oe.root.innerHTML : "";
209
- } }), (e3, t2) => {
210
- const l2 = i("View"), n2 = i("el-icon"), o2 = i("FullScreen"), r2 = i("Close"), x2 = i("el-form-item"), k2 = i("el-image-viewer"), q2 = i("el-dialog");
211
- return u(), a(s, null, [c(x2, { required: Z.value.required, class: m(g(J) + (O.value ? " " + O.value : "")), "label-width": Z.value.labelWidth, style: p(g(Y)) }, v({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": re.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Ae, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: re.value ? "退出全屏" : "全屏编辑" }, [re.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(r2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", F, "字数:" + y(ie.value), 1)]), ae.value ? (u(), a("div", V, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : f("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: p({ ...g(Q), ...g(X) }), class: "amb-form-item-label" }, y(g(T)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
212
- he.value = false;
213
- }), "url-list": ve.value }, null, 8, ["url-list"])) : f("", true), c(q2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, W)]), _: 1 }, 8, ["modelValue"])], 64);
214
- };
215
- } });
216
- export {
217
- z as default
218
- };