@gct-paas/core-web 0.1.4-dev.15 → 0.1.4-dev.17

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 (129) hide show
  1. package/dist/BpmnApproval.vue-BQUAB11v.js +1 -0
  2. package/dist/BpmnBusiness.vue-C5duJF50.js +1 -0
  3. package/dist/BpmnEnd.vue-BjEcQnG0.js +1 -0
  4. package/dist/BpmnExclusive.vue-Cx276gAF.js +1 -0
  5. package/dist/BpmnForm.vue-CF07AB3T.js +1 -0
  6. package/dist/BpmnJoin.vue-DZgck71H.js +1 -0
  7. package/dist/BpmnJs.vue-BdKux96j.js +1 -0
  8. package/dist/BpmnMessage.vue-DABYKBdz.js +1 -0
  9. package/dist/BpmnParallel.vue-CUi6RogD.js +1 -0
  10. package/dist/BpmnStart.vue-lvEOgVJW.js +1 -0
  11. package/dist/NodeFlow.vue-DsiKwCpI.js +1 -0
  12. package/dist/NodeTools.vue-CKtwcfn2.js +1 -0
  13. package/dist/NodeTooltips.vue-BuKpNXoA.js +1 -0
  14. package/dist/enums-DefcbOFc.js +1 -0
  15. package/dist/index.min.css +1 -1
  16. package/dist/loader.esm.min.js +1 -1
  17. package/dist/{monaco-editor-DKwtDu2R.js → monaco-editor-BhuLUOmL.js} +1 -1
  18. package/dist/node-popover.vue-CnA0OEQf.js +1 -0
  19. package/dist/useGctBpmn-wMjCfvFc.js +1 -0
  20. package/dist/useMonacoEditor-no1c2RQN.js +1 -0
  21. package/es/assets/svg/image-error.svg.mjs +4 -0
  22. package/es/components/BpmnRuntime/index.d.ts +2 -0
  23. package/es/components/BpmnRuntime/index.mjs +1 -0
  24. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.d.ts +5 -0
  25. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs +5 -0
  26. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue_vue_type_script_setup_true_lang.mjs +83 -0
  27. package/es/components/I18nSelect/index.d.ts +7 -0
  28. package/es/components/I18nSelect/index.mjs +7 -0
  29. package/es/components/I18nSelect/src/i18n-modal.vue.d.ts +21 -0
  30. package/es/components/I18nSelect/src/i18n-modal.vue.mjs +5 -0
  31. package/es/components/I18nSelect/src/i18n-modal.vue_vue_type_script_setup_true_lang.mjs +128 -0
  32. package/es/components/I18nSelect/src/i18n-select-btn.vue.d.ts +17 -0
  33. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +7 -0
  34. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +116 -0
  35. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_style_index_0_scoped_dc8ffb2c_lang.css +58 -0
  36. package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +10 -0
  37. package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +7 -0
  38. package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +218 -0
  39. package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_820112ce_lang.css +6 -0
  40. package/es/components/I18nSelect/src/i18n-select-input-form.vue.d.ts +15 -0
  41. package/es/components/I18nSelect/src/i18n-select-input-form.vue.mjs +5 -0
  42. package/es/components/I18nSelect/src/i18n-select-input-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  43. package/es/components/I18nSelect/src/i18n-select-input.vue.d.ts +51 -0
  44. package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +7 -0
  45. package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +125 -0
  46. package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_64c5221c_lang.css +3 -0
  47. package/es/components/I18nSelect/src/i18n-select-modal.vue.d.ts +4 -0
  48. package/es/components/I18nSelect/src/i18n-select-modal.vue.mjs +5 -0
  49. package/es/components/I18nSelect/src/i18n-select-modal.vue_vue_type_script_setup_true_lang.mjs +20 -0
  50. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.d.ts +15 -0
  51. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.mjs +5 -0
  52. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  53. package/es/components/I18nSelect/src/i18n-select-textarea.vue.d.ts +26 -0
  54. package/es/components/I18nSelect/src/i18n-select-textarea.vue.mjs +7 -0
  55. package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +86 -0
  56. package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_style_index_0_scoped_cd95c416_lang.css +17 -0
  57. package/es/components/I18nSelect/src/useI18nSelect.d.ts +13 -0
  58. package/es/components/I18nSelect/src/useI18nSelect.mjs +47 -0
  59. package/es/components/UserPick/index.d.ts +2 -6
  60. package/es/components/UserPick/index.mjs +2 -7
  61. package/es/components/UserPick/src/constants/index.d.ts +5 -0
  62. package/es/components/UserPick/src/constants/index.mjs +9 -0
  63. package/es/components/UserPick/src/user-pick.vue.d.ts +1 -1
  64. package/es/components/UserPick/src/user-pick.vue.mjs +2 -2
  65. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +5 -5
  66. package/es/components/UserPick/src/{user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css → user-pick.vue_vue_type_style_index_0_scoped_a49a84da_lang.css} +11 -11
  67. package/es/components/app-modal/app-modal-component.mjs +4 -2
  68. package/es/components/base-button/base-button.vue.mjs +2 -2
  69. package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +5 -5
  70. package/es/components/base-button/{base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css → base-button.vue_vue_type_style_index_0_scoped_5b7fe5af_lang.css} +18 -18
  71. package/es/components/basic-button/basic-button.vue.mjs +2 -2
  72. package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +3 -3
  73. package/es/components/basic-button/{basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css → basic-button.vue_vue_type_style_index_0_scoped_22131025_lang.css} +5 -5
  74. package/es/components/image-upload/src/components/base-upload.vue.mjs +2 -2
  75. package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +4 -4
  76. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_17a11419_lang.css +76 -0
  77. package/es/components/index.d.ts +4 -1
  78. package/es/components/index.mjs +12 -0
  79. package/es/components/paas-bpmn-log/components/approval-node.vue.d.ts +12 -0
  80. package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +7 -0
  81. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +170 -0
  82. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css +51 -0
  83. package/es/components/paas-bpmn-log/components/user-list.vue.d.ts +6 -0
  84. package/es/components/paas-bpmn-log/components/user-list.vue.mjs +7 -0
  85. package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_script_setup_true_lang.mjs +55 -0
  86. package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_style_index_0_scoped_27aa2bf0_lang.css +10 -0
  87. package/es/components/paas-bpmn-log/hooks/useObserver.d.ts +13 -0
  88. package/es/components/paas-bpmn-log/hooks/useObserver.mjs +46 -0
  89. package/es/components/paas-bpmn-log/hooks/uselog.d.ts +5 -0
  90. package/es/components/paas-bpmn-log/hooks/uselog.mjs +17 -0
  91. package/es/components/paas-bpmn-log/imgs/avatar-default.png.mjs +4 -0
  92. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.d.ts +23 -0
  93. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +7 -0
  94. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +245 -0
  95. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css +54 -0
  96. package/es/hooks/index.d.ts +0 -1
  97. package/es/hooks/index.mjs +0 -1
  98. package/es/index.mjs +21 -12
  99. package/es/modules/Cropper/src/CopperFreeModal.vue.mjs +2 -2
  100. package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +4 -6
  101. package/es/modules/Cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_d24895d3_lang.css} +10 -10
  102. package/es/modules/Cropper/src/CopperModal.vue.mjs +2 -2
  103. package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +5 -7
  104. package/es/modules/Cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_f42f8311_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_a65b9ff7_lang.css} +14 -14
  105. package/es/modules/Cropper/src/Cropper.vue_vue_type_script_lang.mjs +4 -5
  106. package/es/modules/Cropper/src/CropperAvatar.vue.mjs +2 -2
  107. package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +6 -7
  108. package/es/modules/Cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_66052c52_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_683cf5bb_lang.css} +7 -7
  109. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  110. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  111. package/es/modules/global-modal/src/BasicModal.vue.d.ts +2 -2
  112. package/package.json +13 -5
  113. package/dist/useMonacoEditor-DrIqFqr0.js +0 -1
  114. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +0 -73
  115. package/es/hooks/useDesign.d.ts +0 -4
  116. package/es/hooks/useDesign.mjs +0 -10
  117. package/es/loader.mjs +0 -92
  118. /package/dist/{de_DE-CYotlhMS.js → de_DE-WZ3EB5Ei.js} +0 -0
  119. /package/dist/{en_US-DjLwq3RF.js → en_US-CsMalKr8.js} +0 -0
  120. /package/dist/{es_ES-0UhVFVHw.js → es_ES-B9hxIQ3B.js} +0 -0
  121. /package/dist/{fr_FR-Xgsbf3iG.js → fr_FR-C6_kWsnc.js} +0 -0
  122. /package/dist/{ja_JP-3aUbzjBv.js → ja_JP-Bh5yjd5R.js} +0 -0
  123. /package/dist/{pt_PT-BzMPT58e.js → pt_PT-BWSTPDc8.js} +0 -0
  124. /package/dist/{ru_RU-BRHq1RXx.js → ru_RU-BhsOXNnH.js} +0 -0
  125. /package/dist/{tr_TR-CPqM558w.js → tr_TR-DFflgWBG.js} +0 -0
  126. /package/dist/{vi_VN-BOKGrWoY.js → vi_VN-pWDyqq2t.js} +0 -0
  127. /package/dist/{zh_CN-upOsz50m.js → zh_CN-TmE4LVWm.js} +0 -0
  128. /package/dist/{zh_TW-jlmatmAz.js → zh_TW-CkLTTF7p.js} +0 -0
  129. /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
@@ -0,0 +1,55 @@
1
+ import avatar_default_default from "../imgs/avatar-default.png.mjs";
2
+ import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, resolveComponent, toDisplayString, unref } from "vue";
3
+ //#region src/components/paas-bpmn-log/components/user-list.vue?vue&type=script&setup=true&lang.ts
4
+ var _hoisted_1 = ["src"];
5
+ var _hoisted_2 = ["title"];
6
+ var _hoisted_3 = { class: "rounded-50% border w28px h28px ks-row-center-middle text-[var(--ant-primary-color)]" };
7
+ var _hoisted_4 = {
8
+ key: 1,
9
+ class: "text-[#3168EC] text-[12px] px4px rounded-4px",
10
+ style: { backgroundColor: "hsl(from #3168EC h s 92%)" }
11
+ };
12
+ var _hoisted_5 = {
13
+ key: 0,
14
+ class: "mt8px primary-gct ks-row"
15
+ };
16
+ var user_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
17
+ __name: "user-list",
18
+ props: {
19
+ data: {},
20
+ tagName: {}
21
+ },
22
+ setup(__props) {
23
+ const expand = ref(false);
24
+ return (_ctx, _cache) => {
25
+ const _component_up_outlined = resolveComponent("up-outlined");
26
+ return openBlock(), createElementBlock("div", null, [createElementVNode("div", {
27
+ class: "user-list ks-row-middle cursor-pointer flex-wrap",
28
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.data.length > 3 && (expand.value = true))
29
+ }, [
30
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data?.filter((_e, i) => expand.value || i < 3), (user, u) => {
31
+ return openBlock(), createElementBlock("div", {
32
+ key: u,
33
+ class: "user-list-item border w76px p4px ks-row-middle"
34
+ }, [createElementVNode("img", {
35
+ src: user.avatar ? "/minio/" + user.avatar : unref(avatar_default_default),
36
+ width: "20",
37
+ height: "20",
38
+ style: { "border-radius": "50%" }
39
+ }, null, 8, _hoisted_1), createElementVNode("div", {
40
+ class: "ml8px ell",
41
+ title: user.username,
42
+ style: { "line-height": "20px" }
43
+ }, toDisplayString(user.username), 9, _hoisted_2)]);
44
+ }), 128)),
45
+ __props.data?.length > 3 && !expand.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_3, " +" + toDisplayString(__props.data.length - 3), 1), _cache[2] || (_cache[2] = createElementVNode("div", { class: "text-[#8F8F8F] ml4px mr12px" }, "...", -1))], 64)) : createCommentVNode("", true),
46
+ __props.tagName ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.tagName), 1)) : createCommentVNode("", true)
47
+ ]), expand.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("span", {
48
+ class: "cursor-pointer",
49
+ onClick: _cache[1] || (_cache[1] = ($event) => expand.value = !expand.value)
50
+ }, [createTextVNode(toDisplayString(_ctx.$t("sys.collapse")) + " ", 1), createVNode(_component_up_outlined)])])) : createCommentVNode("", true)]);
51
+ };
52
+ }
53
+ });
54
+ //#endregion
55
+ export { user_list_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,10 @@
1
+ .border[data-v-27aa2bf0] {
2
+ border: 1px solid #f0f0f0;
3
+ }
4
+ .user-list[data-v-27aa2bf0] {
5
+ row-gap: 8px;
6
+ }
7
+ .user-list-item[data-v-27aa2bf0] {
8
+ border-radius: 28px;
9
+ margin-right: 16px;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * 监听最近一个出现滚动条的父盒子高度
4
+ * html HTMLDivElement
5
+ * callback 获取到高度后的回调
6
+ */
7
+ export declare function parentObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
8
+ /**
9
+ * 监听审批节点的高度
10
+ * html HTMLDivElement
11
+ * callback 获取到高度后的回调
12
+ */
13
+ export declare function approvalObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
@@ -0,0 +1,46 @@
1
+ import { onBeforeUnmount, ref } from "vue";
2
+ import { useResizeObserver } from "@vueuse/core";
3
+ //#region src/components/paas-bpmn-log/hooks/useObserver.ts
4
+ var parentHeight = ref();
5
+ var observeMap = ref({});
6
+ function getParentHeight(ele) {
7
+ const p1 = ele?.parentElement;
8
+ const sH = p1?.scrollHeight;
9
+ const pH = p1?.clientHeight;
10
+ if (sH && pH && sH > pH) return p1.clientHeight;
11
+ if (p1) return getParentHeight(p1);
12
+ return 0;
13
+ }
14
+ onBeforeUnmount(() => {
15
+ for (const k in observeMap.value) {
16
+ observeMap.value[k]?.unobserve(k);
17
+ observeMap.value[k]?.disconnect();
18
+ }
19
+ });
20
+ /**
21
+ * 监听最近一个出现滚动条的父盒子高度
22
+ * html HTMLDivElement
23
+ * callback 获取到高度后的回调
24
+ */
25
+ function parentObserver(html, callback) {
26
+ observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
27
+ const height = entries[0].target.clientHeight;
28
+ if (!height) return;
29
+ parentHeight.value = getParentHeight(html.value);
30
+ if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
31
+ });
32
+ }
33
+ /**
34
+ * 监听审批节点的高度
35
+ * html HTMLDivElement
36
+ * callback 获取到高度后的回调
37
+ */
38
+ function approvalObserver(html, callback) {
39
+ observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
40
+ const height = entries[0].target.clientHeight;
41
+ if (!height) return;
42
+ if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
43
+ });
44
+ }
45
+ //#endregion
46
+ export { approvalObserver, parentObserver };
@@ -0,0 +1,5 @@
1
+ import { ProcessHistoryResult } from '@gct-paas/api/apaas';
2
+ export declare function useLog(): {
3
+ logDetail: import('vue').Ref<ProcessHistoryResult | undefined, ProcessHistoryResult | undefined>;
4
+ init: (id: string) => void;
5
+ };
@@ -0,0 +1,17 @@
1
+ import { ref } from "vue";
2
+ //#region src/components/paas-bpmn-log/hooks/uselog.ts
3
+ function useLog() {
4
+ const logDetail = ref();
5
+ function init(id) {
6
+ getProcessLog(id);
7
+ }
8
+ async function getProcessLog(id) {
9
+ logDetail.value = await _api.apaas.processApprovalLog.getApproveHistory({ id }) || {};
10
+ }
11
+ return {
12
+ logDetail,
13
+ init
14
+ };
15
+ }
16
+ //#endregion
17
+ export { useLog };
@@ -0,0 +1,4 @@
1
+ //#region src/components/paas-bpmn-log/imgs/avatar-default.png
2
+ var avatar_default_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADeJJREFUeF7lXAl0lNUV/t4/k8m+T8IWspCETSkCWkFtIbVVKSCIFClgjQgFLVawrdBTrfboOQWXAkpZSohpCQpVEMoieMBEBYsixQUDmgkz2dhmsg9kkvnnfz3vTybOTCYz/2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S7gsK6mugEwsBcUlhUHHHp0uVQY+ZtSYvLly0t1hH6lGtPGx6CcbVET4EYmGtfWPcbh0NcCEJUPUXs2WvQRgoU2MX2zcVb16jSW0ZVEJ2K5efnR5DIAfcRic6Rr8ARqH30wHLdhwiwo6Wuee8bb2zofVMyBaYaEhBd5cjPX5agi4ueLrY7Jmm12h+LosjlsjoAE6X0GCHkkGSzHSgqWhuycCDkIHp+sU+vfjntUq1lnOQQh4OS4ZRKmSAkDRQJIDRBkmhHcSOFDaBWjUZjESXHJZ1OV9Pebj8HSs+0O+ip7QXPd/XuUmA8XEn+CzYbSUiSvfM/AAAAAElFTkSuQmCC";
3
+ //#endregion
4
+ export { avatar_default_default as default };
@@ -0,0 +1,23 @@
1
+ import { ProcessHistoryResult } from '@gct-paas/api/apaas';
2
+ type __VLS_Props = {
3
+ /**流程实例id */
4
+ instanceId?: string;
5
+ /**是否显示标题区域 */
6
+ showTitle?: boolean;
7
+ /**标题 */
8
+ title?: string;
9
+ /**是否开启表格样式 */
10
+ isTable?: boolean;
11
+ /**是否隐藏审批意见 */
12
+ hiddenOpinion?: boolean;
13
+ /**是否隐藏签名 */
14
+ hiddenSignature?: boolean;
15
+ /**是否是设计模式 */
16
+ isDesign?: boolean;
17
+ /**设计模式,假数据 */
18
+ info?: ProcessHistoryResult;
19
+ };
20
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ histortyRef: HTMLDivElement;
22
+ }, HTMLDivElement>;
23
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import paas_bpmn_log_vue_vue_type_script_setup_true_lang_default from "./paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs";
3
+ import './paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css';/* empty css */
4
+ //#region src/components/paas-bpmn-log/paas-bpmn-log.vue
5
+ var paas_bpmn_log_default = /* @__PURE__ */ _plugin_vue_export_helper_default(paas_bpmn_log_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c85122b0"]]);
6
+ //#endregion
7
+ export { paas_bpmn_log_default as default };
@@ -0,0 +1,245 @@
1
+ import avatar_default_default from "./imgs/avatar-default.png.mjs";
2
+ import { parentObserver } from "./hooks/useObserver.mjs";
3
+ import image_error_default from "../../assets/svg/image-error.svg.mjs";
4
+ import approval_node_default from "./components/approval-node.vue.mjs";
5
+ import { useLog } from "./hooks/uselog.mjs";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vShow, watch, withCtx, withDirectives } from "vue";
7
+ import { BpmnNodeTypeEnum, ProcessStatusEnum, ch_ProcessStatusMap } from "@gct-paas/core";
8
+ import { Empty } from "ant-design-vue";
9
+ //#region src/components/paas-bpmn-log/paas-bpmn-log.vue?vue&type=script&setup=true&lang.ts
10
+ var _hoisted_1 = ["title"];
11
+ var _hoisted_2 = {
12
+ key: 1,
13
+ class: "py8px ks-row-middle"
14
+ };
15
+ var _hoisted_3 = ["title"];
16
+ var _hoisted_4 = { class: "text-[12px] text-[#474747]" };
17
+ var _hoisted_5 = {
18
+ key: 0,
19
+ class: "bg-[#FFFFFF] rounded-4px p16px text-[12px]"
20
+ };
21
+ var _hoisted_6 = {
22
+ key: 0,
23
+ class: "py8px"
24
+ };
25
+ var _hoisted_7 = {
26
+ key: 1,
27
+ class: "process-node-wrap pl16px"
28
+ };
29
+ var _hoisted_8 = ["title"];
30
+ var _hoisted_9 = {
31
+ key: 0,
32
+ class: "text-[#666666] text-[12px] font-400"
33
+ };
34
+ var _hoisted_10 = {
35
+ key: 2,
36
+ class: "process-node-content bg-[#FBFBFC] rounded-4px ks-row p8px"
37
+ };
38
+ var _hoisted_11 = { class: "process-node-content-left mr12px" };
39
+ var _hoisted_12 = { class: "avatar-wrap w42px" };
40
+ var _hoisted_13 = { class: "ks-row-center" };
41
+ var _hoisted_14 = ["src"];
42
+ var _hoisted_15 = ["title"];
43
+ var _hoisted_16 = { class: "process-node-content-main ks-col" };
44
+ var _hoisted_17 = {
45
+ key: 1,
46
+ class: "node-type-msg"
47
+ };
48
+ var _hoisted_18 = { class: "process-node-content-right w148px text-right text-[#8F8F8F] ks-column" };
49
+ var _hoisted_19 = {
50
+ key: 0,
51
+ class: "ks-col ks-row-end justify-end"
52
+ };
53
+ var _hoisted_20 = { key: 1 };
54
+ var _hoisted_21 = { key: 0 };
55
+ var _hoisted_22 = { key: 1 };
56
+ var _hoisted_23 = { key: 2 };
57
+ var paas_bpmn_log_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
58
+ __name: "paas-bpmn-log",
59
+ props: {
60
+ instanceId: {},
61
+ showTitle: { type: Boolean },
62
+ title: {},
63
+ isTable: { type: Boolean },
64
+ hiddenOpinion: { type: Boolean },
65
+ hiddenSignature: { type: Boolean },
66
+ isDesign: { type: Boolean },
67
+ info: {}
68
+ },
69
+ setup(__props) {
70
+ const props = __props;
71
+ const histortyRef = ref();
72
+ const needSticky = ref(false);
73
+ const simpleImage = Empty.PRESENTED_IMAGE_SIMPLE;
74
+ const { logDetail, init } = useLog();
75
+ const titleHeight = computed(() => {
76
+ let height = 0;
77
+ if (props.showTitle && props.title) height += 40;
78
+ if (!props.isTable) height += 40;
79
+ return height;
80
+ });
81
+ const tableData = computed(() => {
82
+ return (logDetail.value?.processHistoryList ?? []).reduce((data, item) => {
83
+ if (item.type === BpmnNodeTypeEnum.BpmnEnd) return data;
84
+ if (item.type === BpmnNodeTypeEnum.BpmnApproval) data.push(...(item.approvalList.filter((e) => e.approval) || []).map((e) => {
85
+ try {
86
+ const signature = e.signature ? JSON.parse(e.signature).url : "";
87
+ return {
88
+ ...e,
89
+ signature,
90
+ name: item.name
91
+ };
92
+ } catch (error) {
93
+ return {
94
+ ...e,
95
+ name: item.name
96
+ };
97
+ }
98
+ }));
99
+ else data.push(item);
100
+ return data;
101
+ }, []);
102
+ });
103
+ watch(() => props.instanceId, (id) => {
104
+ if (id) init(id);
105
+ }, { immediate: true });
106
+ onMounted(async () => {
107
+ if (!props.isDesign) parentObserver(histortyRef, (isNeed) => {
108
+ needSticky.value = isNeed;
109
+ });
110
+ else logDetail.value = props.info;
111
+ });
112
+ return (_ctx, _cache) => {
113
+ const _component_a_empty = resolveComponent("a-empty");
114
+ const _component_vxe_column = resolveComponent("vxe-column");
115
+ const _component_a_image = resolveComponent("a-image");
116
+ const _component_vxe_table = resolveComponent("vxe-table");
117
+ return openBlock(), createElementBlock("div", {
118
+ ref_key: "histortyRef",
119
+ ref: histortyRef,
120
+ class: "approval-history relative"
121
+ }, [createElementVNode("div", { class: normalizeClass(["approval-history-title w100% text-[16px] text-[#242424]", [needSticky.value && "sticky-node"]]) }, [__props.showTitle ? (openBlock(), createElementBlock("div", {
122
+ key: 0,
123
+ class: "pt6px pb8px font-500 ell break-all",
124
+ title: __props.title
125
+ }, toDisplayString(__props.title), 9, _hoisted_1)) : createCommentVNode("", true), !__props.isTable && unref(logDetail)?.duration ? (openBlock(), createElementBlock("div", _hoisted_2, [unref(logDetail)?.status ? (openBlock(), createElementBlock("div", {
126
+ key: 0,
127
+ class: "ell ks-col break-all",
128
+ title: _ctx.$t("sys.process.processStatus", { status: _ctx.$t(unref(ch_ProcessStatusMap)[unref(logDetail)?.status] || "") })
129
+ }, toDisplayString(_ctx.$t("sys.process.processStatus", { status: _ctx.$t(unref(ch_ProcessStatusMap)[unref(logDetail)?.status] || "") })), 9, _hoisted_3)) : createCommentVNode("", true), createElementVNode("div", _hoisted_4, toDisplayString(_ctx.$t("sys.pageDesigner.totalTimeSpent")) + ":" + toDisplayString(unref(logDetail)?.duration), 1)])) : createCommentVNode("", true)], 2), !__props.isTable ? (openBlock(), createElementBlock("div", _hoisted_5, [!unref(logDetail)?.processHistoryList?.length ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_a_empty, { image: unref(simpleImage) }, null, 8, ["image"])])) : (openBlock(), createElementBlock("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(logDetail)?.processHistoryList ?? [], (item, i) => {
130
+ return openBlock(), createElementBlock("div", {
131
+ key: i,
132
+ class: "process-node"
133
+ }, [item.type === unref(BpmnNodeTypeEnum).BpmnApproval ? (openBlock(), createBlock(approval_node_default, {
134
+ key: i,
135
+ data: item,
136
+ "title-height": titleHeight.value,
137
+ "is-design": __props.isDesign,
138
+ "hidden-opinion": __props.hiddenOpinion,
139
+ "hidden-signature": __props.hiddenSignature,
140
+ "is-last-node": i === (unref(logDetail)?.processHistoryList?.length ?? 0) - 1,
141
+ "is-compeleted": unref(logDetail)?.status !== unref(ProcessStatusEnum).COMPLETED && i === (unref(logDetail)?.processHistoryList?.length ?? 0) - 1
142
+ }, null, 8, [
143
+ "data",
144
+ "title-height",
145
+ "is-design",
146
+ "hidden-opinion",
147
+ "hidden-signature",
148
+ "is-last-node",
149
+ "is-compeleted"
150
+ ])) : (openBlock(), createElementBlock("div", {
151
+ key: 1,
152
+ class: "process-node-title text-[14px] font-500 mb8px ks-row-middle",
153
+ style: normalizeStyle({
154
+ "--type-color": "#309C41",
155
+ "--status-color": unref(logDetail)?.status !== unref(ProcessStatusEnum).COMPLETED && i === (unref(logDetail)?.processHistoryList?.length ?? 0) - 1 ? "#3168EC" : "#309C41"
156
+ })
157
+ }, [createElementVNode("div", {
158
+ class: "ell ks-col break-all",
159
+ title: item.name
160
+ }, toDisplayString(item.name), 9, _hoisted_8), item.startTime ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(item.startTime), 1)) : createCommentVNode("", true)], 4)), item.type !== unref(BpmnNodeTypeEnum).BpmnEnd && item.type !== unref(BpmnNodeTypeEnum).BpmnApproval ? (openBlock(), createElementBlock("div", _hoisted_10, [
161
+ createElementVNode("div", _hoisted_11, [createElementVNode("div", _hoisted_12, [createElementVNode("div", _hoisted_13, [createElementVNode("img", {
162
+ src: item.avatar ? "/minio/" + item.avatar : unref(avatar_default_default),
163
+ width: "32",
164
+ height: "32",
165
+ style: { "border-radius": "50%" }
166
+ }, null, 8, _hoisted_14)]), createElementVNode("div", {
167
+ class: "ell text-[12px] text-[#666666] mt4px text-center break-all",
168
+ title: item.username
169
+ }, toDisplayString(item.username), 9, _hoisted_15)])]),
170
+ createElementVNode("div", _hoisted_16, [item.type === unref(BpmnNodeTypeEnum).BpmnSubmit || item.type === unref(BpmnNodeTypeEnum).BpmnJs ? (openBlock(), createElementBlock("div", {
171
+ key: 0,
172
+ class: "node-type-msg circle",
173
+ style: normalizeStyle({ "--type-color": item.type === unref(BpmnNodeTypeEnum).BpmnSubmit ? "#3168EC" : "#309C41" })
174
+ }, toDisplayString(item.message), 5)) : item.type === unref(BpmnNodeTypeEnum).BpmnMessage ? (openBlock(), createElementBlock("div", _hoisted_17, [withDirectives(createElementVNode("span", { class: "text-[#309C41] mr14px" }, toDisplayString(_ctx.$t("sys.pageDesigner.numOfSuccesses", { num: ` ${item.success} ` })), 513), [[vShow, item.success]]), withDirectives(createElementVNode("span", { class: "text-[#F54547]" }, toDisplayString(_ctx.$t("sys.pageDesigner.numOfError", { num: ` ${item.error} ` })), 513), [[vShow, item.error]])])) : createCommentVNode("", true)]),
175
+ createElementVNode("div", _hoisted_18, [createElementVNode("div", null, toDisplayString(item.endTime), 1), item.duration ? (openBlock(), createElementBlock("div", _hoisted_19, toDisplayString(_ctx.$t("sys.integration.timeConsuming")) + ": " + toDisplayString(item.duration), 1)) : createCommentVNode("", true)])
176
+ ])) : createCommentVNode("", true)]);
177
+ }), 128))]))])) : (openBlock(), createElementBlock("div", _hoisted_20, [createVNode(_component_vxe_table, {
178
+ data: tableData.value,
179
+ height: 264,
180
+ "show-overflow": "title",
181
+ "column-config": { resizable: true },
182
+ class: normalizeClass({ default: true })
183
+ }, {
184
+ empty: withCtx(() => [createVNode(_component_a_empty, { image: unref(simpleImage) }, null, 8, ["image"])]),
185
+ default: withCtx(() => [
186
+ createVNode(_component_vxe_column, {
187
+ type: "seq",
188
+ title: _ctx.$t("sys.pageDesigner.index"),
189
+ width: "60"
190
+ }, null, 8, ["title"]),
191
+ createVNode(_component_vxe_column, {
192
+ field: "name",
193
+ title: _ctx.$t("sys.appDesigner.approval.nodeName"),
194
+ "min-width": "100px"
195
+ }, null, 8, ["title"]),
196
+ createVNode(_component_vxe_column, {
197
+ field: "username",
198
+ title: _ctx.$t("sys.pageDesigner.handler"),
199
+ "min-width": "100px"
200
+ }, null, 8, ["title"]),
201
+ createVNode(_component_vxe_column, {
202
+ field: "message",
203
+ title: _ctx.$t("sys.pageDesigner.handleOperation"),
204
+ "min-width": "160px"
205
+ }, {
206
+ default: withCtx(({ row }) => [row.type === unref(BpmnNodeTypeEnum).BpmnApproval ? (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString(_ctx.$t(`sys.process.paasBpmnButtonEvent.${row.approval}`)), 1)) : row.type === unref(BpmnNodeTypeEnum).BpmnMessage ? (openBlock(), createElementBlock("div", _hoisted_22, [withDirectives(createElementVNode("span", null, [createTextVNode(toDisplayString(_ctx.$t("sys.pageDesigner.numOfSuccesses", { num: row.success })) + " ", 1), withDirectives(createElementVNode("span", null, ",", 512), [[vShow, row.error]])], 512), [[vShow, row.success]]), withDirectives(createElementVNode("span", null, toDisplayString(_ctx.$t("sys.pageDesigner.numOfError", { num: row.error })), 513), [[vShow, row.error]])])) : (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(row.message), 1))]),
207
+ _: 1
208
+ }, 8, ["title"]),
209
+ createVNode(_component_vxe_column, {
210
+ field: "endTime",
211
+ title: _ctx.$t("sys.pageDesigner.handleTime"),
212
+ "min-width": "180px"
213
+ }, null, 8, ["title"]),
214
+ !__props.hiddenOpinion ? (openBlock(), createBlock(_component_vxe_column, {
215
+ key: 0,
216
+ field: "approvalMsg",
217
+ title: _ctx.$t("sys.appDesigner.approval.opinion"),
218
+ "min-width": "90px"
219
+ }, null, 8, ["title"])) : createCommentVNode("", true),
220
+ !__props.hiddenSignature ? (openBlock(), createBlock(_component_vxe_column, {
221
+ key: 1,
222
+ field: "signature",
223
+ title: _ctx.$t("sys.model.sign"),
224
+ "min-width": "80px"
225
+ }, {
226
+ default: withCtx(({ row }) => [row.signature ? (openBlock(), createBlock(_component_a_image, {
227
+ key: 0,
228
+ width: 38,
229
+ height: 22,
230
+ src: __props.isDesign ? row.signature : `/minio/${row.signature}`,
231
+ fallback: unref(image_error_default)
232
+ }, {
233
+ previewMask: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "iconfont icon-chakan1" }, null, -1)])]),
234
+ _: 1
235
+ }, 8, ["src", "fallback"])) : createCommentVNode("", true)]),
236
+ _: 1
237
+ }, 8, ["title"])) : createCommentVNode("", true)
238
+ ]),
239
+ _: 1
240
+ }, 8, ["data"])]))], 512);
241
+ };
242
+ }
243
+ });
244
+ //#endregion
245
+ export { paas_bpmn_log_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,54 @@
1
+ .process-node-wrap[data-v-c85122b0] {
2
+ border-left: 1px dashed #e0e3ea;
3
+ }
4
+ .process-node-wrap .process-node + .process-node[data-v-c85122b0] {
5
+ margin-top: 28px;
6
+ }
7
+ .process-node-wrap .process-node-title[data-v-c85122b0] {
8
+ position: relative;
9
+ }
10
+ .process-node-wrap .process-node-title[data-v-c85122b0]::before {
11
+ content: ' ';
12
+ display: block;
13
+ width: 6px;
14
+ height: 6px;
15
+ position: absolute;
16
+ top: 7px;
17
+ left: -19px;
18
+ background-color: var(--status-color);
19
+ border-radius: 50%;
20
+ box-shadow: 0 0 0 2px hsl(from var(--status-color) h s 93%);
21
+ }
22
+ .node-type-msg[data-v-c85122b0] {
23
+ color: var(--type-color);
24
+ height: 100%;
25
+ display: flex;
26
+ align-items: flex-end;
27
+ position: relative;
28
+ padding-left: 9px;
29
+ }
30
+ .node-type-msg.circle[data-v-c85122b0]::before {
31
+ content: ' ';
32
+ display: inline-block;
33
+ width: 4px;
34
+ height: 4px;
35
+ border-radius: 50%;
36
+ background-color: var(--type-color);
37
+ position: absolute;
38
+ left: 0;
39
+ bottom: 8px;
40
+ }
41
+ [data-v-c85122b0] .ant-image-img {
42
+ width: 100%;
43
+ height: 100%;
44
+ vertical-align: top;
45
+ }
46
+ .sticky-node[data-v-c85122b0] {
47
+ background-color: #ffffff;
48
+ position: sticky;
49
+ top: 0;
50
+ z-index: 9;
51
+ }
52
+ [data-v-c85122b0] .vxe-table--render-default .vxe-body--column.col--ellipsis {
53
+ height: 44px;
54
+ }
@@ -1,5 +1,4 @@
1
1
  export { useLocale } from './useLocale';
2
2
  export { useTheme } from './useTheme';
3
3
  export { UseDragByLine } from './useDragLine';
4
- export { useDesign } from './useDesign';
5
4
  export * from './useFile';
@@ -1,5 +1,4 @@
1
1
  import "./useLocale.mjs";
2
2
  import "./useTheme.mjs";
3
3
  import "./useDragLine.mjs";
4
- import "./useDesign.mjs";
5
4
  import "./useFile.mjs";
package/es/index.mjs CHANGED
@@ -40,15 +40,34 @@ import copy_module_key_default from "./components/copy-module-key/copy-module-ke
40
40
  import IconNext_default from "./components/icon-next/src/IconNext.vue.mjs";
41
41
  import { MessageUtil } from "./utils/message-util/message-util.mjs";
42
42
  import { monacoLoader } from "./utils/monaco-loader/monaco-loader.mjs";
43
+ import { useLocale } from "./hooks/useLocale.mjs";
44
+ import { useTheme } from "./hooks/useTheme.mjs";
45
+ import { UseDragByLine } from "./hooks/useDragLine.mjs";
46
+ import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
47
+ import "./hooks/index.mjs";
43
48
  import { OverlayController, overlay } from "./utils/overlay-controller/overlay-controller.mjs";
44
49
  import { withInstall } from "./utils/with-install.mjs";
45
50
  import "./utils/index.mjs";
46
51
  import { ImageUpload } from "./components/image-upload/index.mjs";
47
52
  import { FieldUpload } from "./components/field-upload/index.mjs";
53
+ import paas_bpmn_log_default from "./components/paas-bpmn-log/paas-bpmn-log.vue.mjs";
48
54
  import { CodeEditor } from "./components/code-editor/code-editor.mjs";
49
55
  import { ViewContainer } from "./components/layout/view-container/view-container.mjs";
50
56
  import { Vue3GridDndItem } from "./components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
51
- import { PickType, useModalPicker } from "./components/UserPick/index.mjs";
57
+ import { useModalDragMove } from "./modules/global-modal/src/hooks/useModalDrag.mjs";
58
+ import { useModalContext } from "./modules/global-modal/src/hooks/useModalContext.mjs";
59
+ import { useModal, useModalInner } from "./modules/global-modal/src/hooks/useModal.mjs";
60
+ import { BasicModal } from "./modules/global-modal/index.mjs";
61
+ import { PickType } from "./components/UserPick/src/constants/index.mjs";
62
+ import { useModalPicker } from "./components/UserPick/index.mjs";
63
+ import paas_bpmn_runtime_default from "./components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs";
64
+ import i18n_modal_default from "./components/I18nSelect/src/i18n-modal.vue.mjs";
65
+ import { useI18nSelect } from "./components/I18nSelect/src/useI18nSelect.mjs";
66
+ import i18n_select_btn_default from "./components/I18nSelect/src/i18n-select-btn.vue.mjs";
67
+ import i18n_select_input_default from "./components/I18nSelect/src/i18n-select-input.vue.mjs";
68
+ import i18n_select_input_form_default from "./components/I18nSelect/src/i18n-select-input-form.vue.mjs";
69
+ import i18n_select_textarea_default from "./components/I18nSelect/src/i18n-select-textarea.vue.mjs";
70
+ import i18n_select_textarea_form_default from "./components/I18nSelect/src/i18n-select-textarea-form.vue.mjs";
52
71
  import "./components/index.mjs";
53
72
  import { openFormulaEditor } from "./modules/formula-editor/formula-editor.mjs";
54
73
  import "./modules/formula-editor/index.mjs";
@@ -65,12 +84,6 @@ import { GctTableController, useTableController } from "./modules/gct-table/cont
65
84
  import { useAntTableScrollHeight } from "./modules/gct-table/hooks/use-ant-table/use-ant-table.mjs";
66
85
  import { TableEditorRegister } from "./modules/gct-table/register/table-editor-register/table-editor-register.mjs";
67
86
  import "./modules/gct-table/index.mjs";
68
- import { useLocale } from "./hooks/useLocale.mjs";
69
- import { useTheme } from "./hooks/useTheme.mjs";
70
- import { UseDragByLine } from "./hooks/useDragLine.mjs";
71
- import { useDesign } from "./hooks/useDesign.mjs";
72
- import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
73
- import "./hooks/index.mjs";
74
87
  import { useEditorConsole, useEditorConsoleInner } from "./modules/code-editor/useEditorConsole.mjs";
75
88
  import { Lang, Prop, Theme } from "./modules/code-editor/useMonacoEditor.mjs";
76
89
  import { MonacoEditor } from "./modules/code-editor/index.mjs";
@@ -81,10 +94,6 @@ import GctDndItem from "./modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.m
81
94
  import { GctDndDropLine } from "./modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs";
82
95
  import GctDndContainer from "./modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs";
83
96
  import "./modules/gct-dnd/index.mjs";
84
- import { useModalDragMove } from "./modules/global-modal/src/hooks/useModalDrag.mjs";
85
- import { useModalContext } from "./modules/global-modal/src/hooks/useModalContext.mjs";
86
- import { useModal, useModalInner } from "./modules/global-modal/src/hooks/useModal.mjs";
87
- import { BasicModal } from "./modules/global-modal/index.mjs";
88
97
  import { CropperAvatar, CropperFree, CropperImage } from "./modules/Cropper/index.mjs";
89
98
  import { coreWebCreateAppVue } from "./create-app-vue.mjs";
90
99
  import { coreWebSetupApp } from "./setup-app.mjs";
@@ -98,4 +107,4 @@ function onInit() {
98
107
  }
99
108
  onInit();
100
109
  //#endregion
101
- export { AssetsSvgIcon, base_button_default as BaseButton, basic_button_default as BasicButton, BasicModal, CodeEditor, ColorPicker_default as ColorPicker, copy_module_key_default as CopyModuleKey, CropperAvatar, CropperFree, CropperImage, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, FORM_CONTROLLER_INJECT_TAG, FieldUpload, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormController, GctTableController, IconNext_default as IconNext, ImageUpload, Lang, MessageUtil, MonacoEditor, OverlayController, PickType, Prop, svg_icon_default as SvgIcon, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, UseDragByLine, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, WuJieContainer, coreWebCreateAppVue, coreWebSetupApp, fileUrlParser, gctFormItemEditorProps, monacoLoader, openFormulaEditor, overlay, transformUrl, useAntTableScrollHeight, useDesign, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useGctFormValue, useGctFormValueByText, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker, useTableController, useTheme, withInstall };
110
+ export { AssetsSvgIcon, base_button_default as BaseButton, basic_button_default as BasicButton, BasicModal, CodeEditor, ColorPicker_default as ColorPicker, copy_module_key_default as CopyModuleKey, CropperAvatar, CropperFree, CropperImage, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, FORM_CONTROLLER_INJECT_TAG, FieldUpload, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormController, GctTableController, i18n_modal_default as I18Modal, i18n_select_btn_default as I18nSelectBtn, i18n_select_input_default as I18nSelectInput, i18n_select_input_form_default as I18nSelectInputForm, i18n_select_textarea_default as I18nSelectTextarea, i18n_select_textarea_form_default as I18nSelectTextareaForm, IconNext_default as IconNext, ImageUpload, Lang, MessageUtil, MonacoEditor, OverlayController, paas_bpmn_log_default as PaasBpmnLog, paas_bpmn_runtime_default as PaasBpmnRuntime, Prop, svg_icon_default as SvgIcon, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, UseDragByLine, PickType as UserPickType, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, WuJieContainer, coreWebCreateAppVue, coreWebSetupApp, fileUrlParser, gctFormItemEditorProps, monacoLoader, openFormulaEditor, overlay, transformUrl, useAntTableScrollHeight, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useGctFormValue, useGctFormValueByText, useI18nSelect, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker, useTableController, useTheme, withInstall };
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default from "./CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs";
3
- import './CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css';/* empty css */
3
+ import './CopperFreeModal.vue_vue_type_style_index_0_scoped_d24895d3_lang.css';/* empty css */
4
4
  //#region src/modules/Cropper/src/CopperFreeModal.vue
5
- var CopperFreeModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default, [["__scopeId", "data-v-28afc2ab"]]);
5
+ var CopperFreeModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default, [["__scopeId", "data-v-d24895d3"]]);
6
6
  //#endregion
7
7
  export { CopperFreeModal_default as default };
@@ -1,11 +1,9 @@
1
- import { useDesign } from "../../../hooks/useDesign.mjs";
2
- import "../../../hooks/index.mjs";
3
1
  import { useModalInner } from "../../global-modal/src/hooks/useModal.mjs";
4
2
  import { BasicModal } from "../../global-modal/index.mjs";
5
3
  import Cropper_default from "./Cropper.vue.mjs";
6
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, watch, withCtx, withModifiers } from "vue";
7
5
  import { isFunction } from "lodash-es";
8
- import { dataURLtoBlob, t } from "@gct-paas/core";
6
+ import { dataURLtoBlob, t, useNamespace } from "@gct-paas/core";
9
7
  import { Space, Tooltip, Upload, message } from "ant-design-vue";
10
8
  import { ReloadOutlined } from "@ant-design/icons-vue";
11
9
  //#region src/modules/Cropper/src/CopperFreeModal.vue?vue&type=script&setup=true&name=CropperModal&lang.ts
@@ -55,7 +53,7 @@ var CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_defaul
55
53
  const fileAccept = computed(() => {
56
54
  return props.accept.map((e) => `image/${e}`).join(",");
57
55
  });
58
- const { prefixCls } = useDesign("cropper-free");
56
+ const ns = useNamespace("cropper-free");
59
57
  const [register, { closeModal, setModalProps }] = useModalInner((data) => {
60
58
  if (data?.file) handleBeforeUpload(data.file);
61
59
  });
@@ -134,7 +132,7 @@ var CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_defaul
134
132
  onOk: handleOk,
135
133
  onCancel: handleCancel
136
134
  }), {
137
- default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(prefixCls)) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-left`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-cropper`) }, [src.value ? (openBlock(), createBlock(Cropper_default, {
135
+ default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(ns).b()) }, [createElementVNode("div", { class: normalizeClass(unref(ns).b("left")) }, [createElementVNode("div", { class: normalizeClass(unref(ns).b("cropper")) }, [src.value ? (openBlock(), createBlock(Cropper_default, {
138
136
  key: 0,
139
137
  src: src.value,
140
138
  height: "304px",
@@ -156,7 +154,7 @@ var CopperFreeModal_vue_vue_type_script_setup_true_name_CropperModal_lang_defaul
156
154
  _: 1
157
155
  })]))], 2), src.value ? (openBlock(), createElementBlock("div", {
158
156
  key: 0,
159
- class: normalizeClass(`${unref(prefixCls)}-toolbar`)
157
+ class: normalizeClass(unref(ns).b("toolbar"))
160
158
  }, [createVNode(unref(Upload), {
161
159
  "file-list": [],
162
160
  accept: fileAccept.value,