@ibiz-template/vue3-components 0.5.4 → 0.5.7-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-JryyIvVw.js → index-13Oh42A8.js} +1 -1
- package/dist/{index-_-rmev8_.js → index-ZIuDbCjc.js} +1 -1
- package/dist/index-dfn6FnHv.js +2 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-x5tP6Fdl.js → xlsx-util-ohTMZYHr.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +2 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +18 -14
- package/es/editor/code/monaco-editor/monaco-editor.mjs +3 -3
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +50 -5
- package/es/locale/en/index.d.ts +3 -0
- package/es/locale/en/index.mjs +4 -1
- package/es/locale/zh-CN/index.d.ts +3 -0
- package/es/locale/zh-CN/index.mjs +4 -1
- package/es/panel-component/user-message/async-action/{async-action.mjs → async-action/async-action.mjs} +2 -3
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.d.ts +92 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.mjs +91 -0
- package/es/panel-component/user-message/async-action/index.d.ts +3 -0
- package/es/panel-component/user-message/async-action/index.mjs +5 -0
- package/es/panel-component/user-message/index.d.ts +1 -73
- package/es/panel-component/user-message/index.mjs +12 -3
- package/es/panel-component/user-message/internal-message/index.d.ts +3 -0
- package/es/panel-component/user-message/internal-message/index.mjs +5 -0
- package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.css +1 -0
- package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.d.ts +17 -0
- package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.mjs +82 -0
- package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.provider.d.ts +6 -0
- package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.provider.mjs +17 -0
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.css +1 -0
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.d.ts +42 -0
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +101 -0
- package/es/panel-component/user-message/user-message.css +1 -1
- package/es/panel-component/user-message/user-message.d.ts +1 -73
- package/es/panel-component/user-message/user-message.mjs +33 -61
- package/es/util/open-view-util/open-view-util.d.ts +2 -1
- package/es/util/open-view-util/open-view-util.mjs +11 -1
- package/es/view/404-view/404-view.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +2 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +18 -14
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +3 -3
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +48 -3
- package/lib/locale/en/index.cjs +4 -1
- package/lib/locale/zh-CN/index.cjs +4 -1
- package/lib/panel-component/user-message/async-action/{async-action.cjs → async-action/async-action.cjs} +2 -3
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.cjs +93 -0
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -0
- package/lib/panel-component/user-message/async-action/index.cjs +11 -0
- package/lib/panel-component/user-message/index.cjs +11 -2
- package/lib/panel-component/user-message/internal-message/index.cjs +11 -0
- package/lib/panel-component/user-message/internal-message/internal-message-default/internal-message-default.cjs +84 -0
- package/lib/panel-component/user-message/internal-message/internal-message-default/internal-message-default.css +1 -0
- package/lib/panel-component/user-message/internal-message/internal-message-default/internal-message-default.provider.cjs +19 -0
- package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.cjs +103 -0
- package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.css +1 -0
- package/lib/panel-component/user-message/user-message.cjs +30 -58
- package/lib/panel-component/user-message/user-message.css +1 -1
- package/lib/util/open-view-util/open-view-util.cjs +10 -0
- package/lib/view/404-view/404-view.cjs +1 -1
- package/package.json +16 -15
- package/dist/index-0_g5Hsac.js +0 -2
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -0
- /package/es/panel-component/user-message/async-action/{async-action.css → async-action/async-action.css} +0 -0
- /package/es/panel-component/user-message/async-action/{async-action.d.ts → async-action/async-action.d.ts} +0 -0
- /package/es/panel-component/user-message/async-action/{async-action.provider.d.ts → async-action/async-action.provider.d.ts} +0 -0
- /package/es/panel-component/user-message/async-action/{async-action.provider.mjs → async-action/async-action.provider.mjs} +0 -0
- /package/es/panel-component/user-message/{async-action-preview → async-action/async-action-preview}/async-action-preview.css +0 -0
- /package/es/panel-component/user-message/{async-action-preview → async-action/async-action-preview}/async-action-preview.d.ts +0 -0
- /package/es/panel-component/user-message/{async-action-preview → async-action/async-action-preview}/async-action-preview.mjs +0 -0
- /package/es/panel-component/user-message/{async-action-result → async-action/async-action-result}/async-action-result.d.ts +0 -0
- /package/es/panel-component/user-message/{async-action-result → async-action/async-action-result}/async-action-result.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/config/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/loader/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/compose.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/curry.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/isObject.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.44.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.45.0}/node_modules/@monaco-editor/loader/lib/es/validators/index.cjs +0 -0
- /package/lib/panel-component/user-message/async-action/{async-action.css → async-action/async-action.css} +0 -0
- /package/lib/panel-component/user-message/async-action/{async-action.provider.cjs → async-action/async-action.provider.cjs} +0 -0
- /package/lib/panel-component/user-message/{async-action-preview → async-action/async-action-preview}/async-action-preview.cjs +0 -0
- /package/lib/panel-component/user-message/{async-action-preview → async-action/async-action-preview}/async-action-preview.css +0 -0
- /package/lib/panel-component/user-message/{async-action-result → async-action/async-action-result}/async-action-result.cjs +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { computed, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './internal-message-default.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const stateTexts = {
|
|
7
|
+
READ: "\u5DF2\u9605\u8BFB",
|
|
8
|
+
SENT: "\u5DF2\u53D1\u9001",
|
|
9
|
+
RECEIVED: "\u5DF2\u63A5\u6536",
|
|
10
|
+
REPLIED: "\u5DF2\u56DE\u590D",
|
|
11
|
+
SEND_FAILED: "\u53D1\u9001\u5931\u8D25",
|
|
12
|
+
NOT_SENT: "\u672A\u53D1\u9001",
|
|
13
|
+
DELETED: "\u5DF2\u5220\u9664"
|
|
14
|
+
};
|
|
15
|
+
const stateType = {
|
|
16
|
+
READ: "",
|
|
17
|
+
SENT: "success",
|
|
18
|
+
RECEIVED: "success",
|
|
19
|
+
REPLIED: "warning",
|
|
20
|
+
SEND_FAILED: "danger",
|
|
21
|
+
NOT_SENT: "info",
|
|
22
|
+
DELETED: "info"
|
|
23
|
+
};
|
|
24
|
+
const InternalMessageDefault = /* @__PURE__ */ defineComponent({
|
|
25
|
+
name: "IBizInternalMessageDefault",
|
|
26
|
+
props: {
|
|
27
|
+
message: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(props) {
|
|
33
|
+
const ns = useNamespace("internal-message");
|
|
34
|
+
const clickable = computed(() => {
|
|
35
|
+
return props.message.short_content !== props.message.content;
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
ns,
|
|
39
|
+
clickable
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
render() {
|
|
43
|
+
const {
|
|
44
|
+
title,
|
|
45
|
+
create_time,
|
|
46
|
+
short_content,
|
|
47
|
+
status
|
|
48
|
+
} = this.message;
|
|
49
|
+
return createVNode("div", {
|
|
50
|
+
"class": [this.ns.b(), this.clickable ? this.ns.m("clickable") : ""]
|
|
51
|
+
}, [createVNode("div", {
|
|
52
|
+
"class": this.ns.b("left")
|
|
53
|
+
}, [createVNode("ion-icon", {
|
|
54
|
+
"name": "list-outline"
|
|
55
|
+
}, null)]), createVNode("div", {
|
|
56
|
+
"class": this.ns.b("center")
|
|
57
|
+
}, [createVNode("div", {
|
|
58
|
+
"class": this.ns.e("caption")
|
|
59
|
+
}, [createVNode(resolveComponent("el-tag"), {
|
|
60
|
+
"class": this.ns.e("status"),
|
|
61
|
+
"type": stateType[status]
|
|
62
|
+
}, {
|
|
63
|
+
default: () => [stateTexts[status]]
|
|
64
|
+
}), title]), createVNode("div", {
|
|
65
|
+
"class": this.ns.e("short-content")
|
|
66
|
+
}, [short_content]), createVNode("div", {
|
|
67
|
+
"class": this.ns.e("create-time")
|
|
68
|
+
}, [create_time])]), createVNode("div", {
|
|
69
|
+
"class": this.ns.b("toolbar")
|
|
70
|
+
}, [createVNode("ion-icon", {
|
|
71
|
+
"class": this.ns.be("toolbar", "button"),
|
|
72
|
+
"name": "timer-outline",
|
|
73
|
+
"title": "\u7A0D\u540E\u5904\u7406"
|
|
74
|
+
}, null), createVNode("ion-icon", {
|
|
75
|
+
"class": this.ns.be("toolbar", "button"),
|
|
76
|
+
"name": "checkmark-done-outline",
|
|
77
|
+
"title": "\u5DF2\u8BFB"
|
|
78
|
+
}, null)])]);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export { InternalMessageDefault };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IInternalMessage } from '@ibiz-template/core/src/interface';
|
|
2
|
+
import { IInternalMessageProvider } from '@ibiz-template/runtime';
|
|
3
|
+
export declare class InternalMessageDefaultProvider implements IInternalMessageProvider {
|
|
4
|
+
component: string;
|
|
5
|
+
onClick(_msg: IInternalMessage, _event: MouseEvent): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
class InternalMessageDefaultProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "component", "IBizInternalMessageDefault");
|
|
11
|
+
}
|
|
12
|
+
onClick(_msg, _event) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { InternalMessageDefaultProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-internal-message-tab{--ibiz-internal-message-tab-load-more-height:30px;width:100%;height:100%}.ibiz-internal-message-tab__item{min-height:60px;padding:6px 0}.ibiz-internal-message-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-internal-message-tab-load-more-height))}.ibiz-internal-message-tab__load-more{height:var(--ibiz-internal-message-tab-load-more-height);line-height:var(--ibiz-internal-message-tab-load-more-height);text-align:center}.ibiz-internal-message-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import './internal-message-tab.scss';
|
|
2
|
+
export declare const InternalMessageTab: import("vue").DefineComponent<{
|
|
3
|
+
showPopover: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
9
|
+
allItems: import("vue").Ref<{
|
|
10
|
+
update_man: string;
|
|
11
|
+
update_time: string;
|
|
12
|
+
create_man: string;
|
|
13
|
+
create_time: string;
|
|
14
|
+
id: string;
|
|
15
|
+
status: import("@ibiz-template/core").InternalMessageStatus;
|
|
16
|
+
content_type: import("@ibiz-template/core").InternalMessageContentType;
|
|
17
|
+
content: string;
|
|
18
|
+
system_tag: string;
|
|
19
|
+
owner_id: string;
|
|
20
|
+
owner_type: "SYSTEM" | "PERSONAL";
|
|
21
|
+
message_type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
receiver: string;
|
|
24
|
+
short_content?: string | undefined;
|
|
25
|
+
}[]>;
|
|
26
|
+
state: {
|
|
27
|
+
total: number;
|
|
28
|
+
curPage: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
};
|
|
31
|
+
hiddenPopover: () => void;
|
|
32
|
+
showMore: () => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
hiddenPopover: () => true;
|
|
35
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
showPopover: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
onHiddenPopover?: (() => any) | undefined;
|
|
42
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ref, reactive, resolveComponent, h, createVNode, createTextVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { getInternalMessageProvider } from '@ibiz-template/runtime';
|
|
4
|
+
import './internal-message-tab.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const InternalMessageTab = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizInternalMessageTab",
|
|
9
|
+
props: {
|
|
10
|
+
showPopover: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: {
|
|
16
|
+
hiddenPopover: () => true
|
|
17
|
+
},
|
|
18
|
+
setup(props, {
|
|
19
|
+
emit
|
|
20
|
+
}) {
|
|
21
|
+
const ns = useNamespace("internal-message-tab");
|
|
22
|
+
const hiddenPopover = () => {
|
|
23
|
+
emit("hiddenPopover");
|
|
24
|
+
};
|
|
25
|
+
const allItems = ref([]);
|
|
26
|
+
const state = reactive({
|
|
27
|
+
total: 0,
|
|
28
|
+
curPage: 0,
|
|
29
|
+
pageSize: 20
|
|
30
|
+
});
|
|
31
|
+
const load = async (params) => {
|
|
32
|
+
const res = await ibiz.internalMessage.fetch({
|
|
33
|
+
page: 0,
|
|
34
|
+
size: state.pageSize,
|
|
35
|
+
...params
|
|
36
|
+
});
|
|
37
|
+
console.log(res);
|
|
38
|
+
if (res.ok) {
|
|
39
|
+
if (typeof res.total === "number") {
|
|
40
|
+
state.total = res.total;
|
|
41
|
+
}
|
|
42
|
+
if (typeof res.page === "number") {
|
|
43
|
+
state.curPage = res.page;
|
|
44
|
+
}
|
|
45
|
+
if (state.curPage === 0) {
|
|
46
|
+
allItems.value = res.data;
|
|
47
|
+
} else {
|
|
48
|
+
allItems.value.push(...res.data);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const showMore = () => {
|
|
53
|
+
load({
|
|
54
|
+
page: state.curPage + 1
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
load();
|
|
58
|
+
return {
|
|
59
|
+
ns,
|
|
60
|
+
allItems,
|
|
61
|
+
state,
|
|
62
|
+
hiddenPopover,
|
|
63
|
+
showMore
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
render() {
|
|
67
|
+
const restLength = this.state.total - this.allItems.length;
|
|
68
|
+
return createVNode("div", {
|
|
69
|
+
"class": [this.ns.b()]
|
|
70
|
+
}, [this.allItems.length > 0 && this.allItems.map((msg) => {
|
|
71
|
+
let provider;
|
|
72
|
+
try {
|
|
73
|
+
provider = getInternalMessageProvider(msg);
|
|
74
|
+
} catch (error) {
|
|
75
|
+
ibiz.log.error(error);
|
|
76
|
+
}
|
|
77
|
+
if (provider) {
|
|
78
|
+
return h(resolveComponent(provider.component), {
|
|
79
|
+
class: this.ns.e("item"),
|
|
80
|
+
onClick: (event) => {
|
|
81
|
+
const isClose = provider.onClick(msg, event);
|
|
82
|
+
if (isClose) {
|
|
83
|
+
this.hiddenPopover();
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
message: msg
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return createVNode("div", {
|
|
90
|
+
"class": this.ns.e("item")
|
|
91
|
+
}, ["\u7AD9\u5185\u6D88\u606F\u7C7B\u578B".concat(msg.message_type, "\u6682\u672A\u652F\u6301")]);
|
|
92
|
+
}), this.allItems.length === 0 && createVNode("div", {
|
|
93
|
+
"class": this.ns.e("nodata")
|
|
94
|
+
}, [createTextVNode("\u6682\u65E0\u901A\u77E5")]), restLength > 0 && createVNode("div", {
|
|
95
|
+
"class": this.ns.e("load-more"),
|
|
96
|
+
"onClick": this.showMore
|
|
97
|
+
}, [createTextVNode("\u52A0\u8F7D\u66F4\u591A("), restLength, createTextVNode(")")])]);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export { InternalMessageTab };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-user-message{
|
|
1
|
+
.ibiz-user-message{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ibiz-user-message__image{width:28px;height:28px;cursor:pointer}.ibiz-user-message__badge .el-badge__content{top:4px;right:calc(2px + var(--el-badge-size)/ 2);border-width:0}.ibiz-user-message-popover{width:500px!important;height:500px!important}.ibiz-user-message-popover.el-popover{padding-top:2px}.ibiz-user-message-popover-content{height:100%}.ibiz-user-message-popover-content>.el-tabs__content{height:calc(100% - 55px)}.ibiz-user-message-popover-content>.el-tabs__content>.el-tab-pane{height:100%;overflow:auto}
|
|
@@ -14,86 +14,14 @@ export declare const UserMessage: import("vue").DefineComponent<{
|
|
|
14
14
|
}, {
|
|
15
15
|
ns: import("@ibiz-template/core").Namespace;
|
|
16
16
|
c: PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
17
|
+
noticeNum: import("vue").Ref<number>;
|
|
17
18
|
popoverRef: import("vue").Ref<any>;
|
|
18
19
|
showPopover: import("vue").Ref<boolean>;
|
|
19
20
|
sysImage: import("@ibiz/model-core").ISysImage | {
|
|
20
21
|
imagePath: string;
|
|
21
22
|
};
|
|
22
23
|
currentTab: import("vue").Ref<string>;
|
|
23
|
-
appStore: {
|
|
24
|
-
allAsyncActions: {
|
|
25
|
-
asyncacitonid: string;
|
|
26
|
-
asyncacitonname: string;
|
|
27
|
-
fulltopictag: string;
|
|
28
|
-
srfdcid: string;
|
|
29
|
-
dcsystemid: string;
|
|
30
|
-
actiontype: string;
|
|
31
|
-
actionstate: 10 | 20 | 30 | 40;
|
|
32
|
-
actionresult?: unknown;
|
|
33
|
-
stepinfo?: string | undefined;
|
|
34
|
-
completionrate?: number | undefined;
|
|
35
|
-
asyncresultdownloadurl?: string | undefined;
|
|
36
|
-
actionparam?: unknown;
|
|
37
|
-
actionparam2?: unknown;
|
|
38
|
-
actionparam3?: unknown;
|
|
39
|
-
actionparam4?: unknown;
|
|
40
|
-
begintime: string;
|
|
41
|
-
endtime: string;
|
|
42
|
-
createman: string;
|
|
43
|
-
createdate: string;
|
|
44
|
-
updateman: string;
|
|
45
|
-
updatedate: string;
|
|
46
|
-
}[];
|
|
47
|
-
recentAsyncActions: {
|
|
48
|
-
asyncacitonid: string;
|
|
49
|
-
asyncacitonname: string;
|
|
50
|
-
fulltopictag: string;
|
|
51
|
-
srfdcid: string;
|
|
52
|
-
dcsystemid: string;
|
|
53
|
-
actiontype: string;
|
|
54
|
-
actionstate: 10 | 20 | 30 | 40;
|
|
55
|
-
actionresult?: unknown;
|
|
56
|
-
stepinfo?: string | undefined;
|
|
57
|
-
completionrate?: number | undefined;
|
|
58
|
-
asyncresultdownloadurl?: string | undefined;
|
|
59
|
-
actionparam?: unknown;
|
|
60
|
-
actionparam2?: unknown;
|
|
61
|
-
actionparam3?: unknown;
|
|
62
|
-
actionparam4?: unknown;
|
|
63
|
-
begintime: string;
|
|
64
|
-
endtime: string;
|
|
65
|
-
createman: string;
|
|
66
|
-
createdate: string;
|
|
67
|
-
updateman: string;
|
|
68
|
-
updatedate: string;
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
actualMsgs: import("vue").ComputedRef<{
|
|
72
|
-
asyncacitonid: string;
|
|
73
|
-
asyncacitonname: string;
|
|
74
|
-
fulltopictag: string;
|
|
75
|
-
srfdcid: string;
|
|
76
|
-
dcsystemid: string;
|
|
77
|
-
actiontype: string;
|
|
78
|
-
actionstate: 10 | 20 | 30 | 40;
|
|
79
|
-
actionresult?: unknown;
|
|
80
|
-
stepinfo?: string | undefined;
|
|
81
|
-
completionrate?: number | undefined;
|
|
82
|
-
asyncresultdownloadurl?: string | undefined;
|
|
83
|
-
actionparam?: unknown;
|
|
84
|
-
actionparam2?: unknown;
|
|
85
|
-
actionparam3?: unknown;
|
|
86
|
-
actionparam4?: unknown;
|
|
87
|
-
begintime: string;
|
|
88
|
-
endtime: string;
|
|
89
|
-
createman: string;
|
|
90
|
-
createdate: string;
|
|
91
|
-
updateman: string;
|
|
92
|
-
updatedate: string;
|
|
93
|
-
}[]>;
|
|
94
24
|
hiddenPopover: () => void;
|
|
95
|
-
hiddenHistory: () => void;
|
|
96
|
-
showMoreHistory: () => void;
|
|
97
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
26
|
modelData: {
|
|
99
27
|
type: PropType<IPanelRawItem>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { ref,
|
|
2
|
-
import { useNamespace
|
|
3
|
-
import { PanelItemController
|
|
1
|
+
import { ref, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
4
4
|
import './user-message.css';
|
|
5
|
+
import { AsyncActionTab } from './async-action/async-action-tab/async-action-tab.mjs';
|
|
6
|
+
import './internal-message/index.mjs';
|
|
7
|
+
import { InternalMessageTab } from './internal-message/internal-message-tab/internal-message-tab.mjs';
|
|
5
8
|
|
|
6
9
|
"use strict";
|
|
7
10
|
const UserMessage = /* @__PURE__ */ defineComponent({
|
|
@@ -24,43 +27,23 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
24
27
|
const sysImage = props.modelData.sysImage || {
|
|
25
28
|
imagePath: "svg/message.svg"
|
|
26
29
|
};
|
|
27
|
-
const {
|
|
28
|
-
appStore
|
|
29
|
-
} = useAppStore();
|
|
30
|
-
const showHistoryLength = ref(0);
|
|
31
|
-
const actualMsgs = computed(() => {
|
|
32
|
-
const showLength = appStore.recentAsyncActions.length + showHistoryLength.value;
|
|
33
|
-
return appStore.allAsyncActions.filter((_, index) => {
|
|
34
|
-
return index < showLength;
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
const hiddenHistory = () => {
|
|
38
|
-
showHistoryLength.value = 0;
|
|
39
|
-
};
|
|
40
|
-
const showMoreHistory = () => {
|
|
41
|
-
showHistoryLength.value += 10;
|
|
42
|
-
};
|
|
43
30
|
const popoverRef = ref();
|
|
44
31
|
const hiddenPopover = () => {
|
|
45
32
|
popoverRef.value.hide();
|
|
46
33
|
};
|
|
34
|
+
const noticeNum = ref(12);
|
|
47
35
|
return {
|
|
48
36
|
ns,
|
|
49
37
|
c,
|
|
38
|
+
noticeNum,
|
|
50
39
|
popoverRef,
|
|
51
40
|
showPopover,
|
|
52
41
|
sysImage,
|
|
53
42
|
currentTab,
|
|
54
|
-
|
|
55
|
-
actualMsgs,
|
|
56
|
-
hiddenPopover,
|
|
57
|
-
hiddenHistory,
|
|
58
|
-
showMoreHistory
|
|
43
|
+
hiddenPopover
|
|
59
44
|
};
|
|
60
45
|
},
|
|
61
46
|
render() {
|
|
62
|
-
const restLength = this.appStore.allAsyncActions.length - this.actualMsgs.length;
|
|
63
|
-
const loadMoreText = this.actualMsgs.length === 0 ? "\u67E5\u770B\u5386\u53F2\uFF08".concat(restLength, "\uFF09") : "\u52A0\u8F7D\u66F4\u591A\uFF08".concat(restLength, "\uFF09");
|
|
64
47
|
return createVNode("div", {
|
|
65
48
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
66
49
|
}, [createVNode(resolveComponent("el-popover"), {
|
|
@@ -68,15 +51,20 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
68
51
|
"popper-class": this.ns.b("popover"),
|
|
69
52
|
"placement": "bottom",
|
|
70
53
|
"trigger": "click",
|
|
71
|
-
"
|
|
72
|
-
"onUpdate:
|
|
73
|
-
"onHide": this.hiddenHistory
|
|
54
|
+
"visible": this.showPopover,
|
|
55
|
+
"onUpdate:visible": ($event) => this.showPopover = $event
|
|
74
56
|
}, {
|
|
75
57
|
reference: () => {
|
|
76
|
-
return createVNode(resolveComponent("
|
|
77
|
-
"class":
|
|
78
|
-
"
|
|
79
|
-
|
|
58
|
+
return createVNode(resolveComponent("el-badge"), {
|
|
59
|
+
"class": this.ns.e("badge"),
|
|
60
|
+
"value": this.noticeNum,
|
|
61
|
+
"hidden": this.noticeNum === 0
|
|
62
|
+
}, {
|
|
63
|
+
default: () => [createVNode(resolveComponent("i-biz-icon"), {
|
|
64
|
+
"class": [this.ns.e("image")],
|
|
65
|
+
"icon": this.sysImage
|
|
66
|
+
}, null)]
|
|
67
|
+
});
|
|
80
68
|
},
|
|
81
69
|
default: () => {
|
|
82
70
|
return createVNode(resolveComponent("el-tabs"), {
|
|
@@ -88,34 +76,18 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
88
76
|
"label": "\u901A\u77E5",
|
|
89
77
|
"name": "notification"
|
|
90
78
|
}, {
|
|
91
|
-
default: () => [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (isClose) {
|
|
104
|
-
this.hiddenPopover();
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
message: msg
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
return createVNode("div", {
|
|
111
|
-
"class": this.ns.e("notification-item")
|
|
112
|
-
}, ["\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B".concat(msg.actiontype, "\u6682\u672A\u652F\u6301")]);
|
|
113
|
-
}), this.actualMsgs.length === 0 && createVNode("div", {
|
|
114
|
-
"class": this.ns.e("nodata")
|
|
115
|
-
}, [createTextVNode("\u6682\u65E0\u901A\u77E5")]), restLength > 0 && createVNode("div", {
|
|
116
|
-
"class": this.ns.e("load-more"),
|
|
117
|
-
"onClick": this.showMoreHistory
|
|
118
|
-
}, [loadMoreText])]
|
|
79
|
+
default: () => [createVNode(InternalMessageTab, {
|
|
80
|
+
"showPopover": this.showPopover,
|
|
81
|
+
"onHiddenPopover": this.hiddenPopover
|
|
82
|
+
}, null)]
|
|
83
|
+
}), createVNode(resolveComponent("el-tab-pane"), {
|
|
84
|
+
"label": "\u540E\u53F0\u4F5C\u4E1A",
|
|
85
|
+
"name": "async-action"
|
|
86
|
+
}, {
|
|
87
|
+
default: () => [createVNode(AsyncActionTab, {
|
|
88
|
+
"showPopover": this.showPopover,
|
|
89
|
+
"onHiddenPopover": this.hiddenPopover
|
|
90
|
+
}, null)]
|
|
119
91
|
})]
|
|
120
92
|
});
|
|
121
93
|
}
|
|
@@ -14,7 +14,8 @@ export declare class OpenViewUtil implements IOpenViewUtil {
|
|
|
14
14
|
protected router: Router;
|
|
15
15
|
constructor(router: Router);
|
|
16
16
|
push(path: string): Promise<IModalData>;
|
|
17
|
-
root(appViewId: string, context: IContext, params?: IParams
|
|
17
|
+
root(appViewId: string, context: IContext, params?: IParams): Promise<IModalData>;
|
|
18
|
+
rootByModal(appViewId: string, context: IContext, params?: IParams): Promise<IModalData>;
|
|
18
19
|
/**
|
|
19
20
|
* 模态打开视图
|
|
20
21
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { routerCallback, generateRoutePath, openViewModal, openViewPopover, getDrawerPlacement, openViewDrawer } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { routerCallback, generateRoutePath, generateRoutePathByModal, openViewModal, openViewPopover, getDrawerPlacement, openViewDrawer } from '@ibiz-template/vue3-util';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
class OpenViewUtil {
|
|
@@ -19,6 +19,16 @@ class OpenViewUtil {
|
|
|
19
19
|
);
|
|
20
20
|
return routerCallback.open(this.router, path);
|
|
21
21
|
}
|
|
22
|
+
async rootByModal(appViewId, context, params) {
|
|
23
|
+
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
24
|
+
const { path } = await generateRoutePathByModal(
|
|
25
|
+
appView,
|
|
26
|
+
this.router.currentRoute.value,
|
|
27
|
+
context,
|
|
28
|
+
params
|
|
29
|
+
);
|
|
30
|
+
return routerCallback.open(this.router, path);
|
|
31
|
+
}
|
|
22
32
|
/**
|
|
23
33
|
* 模态打开视图
|
|
24
34
|
*
|
|
@@ -117,7 +117,8 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
117
117
|
}, {
|
|
118
118
|
icon: () => vue.createVNode("ion-icon", {
|
|
119
119
|
"class": this.ns.e("icon"),
|
|
120
|
-
"name": "ellipsis-vertical-outline"
|
|
120
|
+
"name": "ellipsis-vertical-outline",
|
|
121
|
+
"title": ibiz.i18n.t("component.actionToolbar.more")
|
|
121
122
|
}, null)
|
|
122
123
|
}), vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
123
124
|
"placement": "bottom-start",
|
|
@@ -21,6 +21,7 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
const isShowAll = vue.ref(true);
|
|
22
22
|
const isEditable = vue.ref(false);
|
|
23
23
|
const editorRef = vue.ref();
|
|
24
|
+
const isSearched = vue.ref(false);
|
|
24
25
|
const showFormDefaultContent = vue.computed(() => {
|
|
25
26
|
if (props.controlParams && props.controlParams.editmode === "hover") {
|
|
26
27
|
return true;
|
|
@@ -44,8 +45,24 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
45
|
}, 100);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
|
-
|
|
48
|
+
const onSearch = async (query, cb) => {
|
|
49
|
+
if (c.model.appDataEntityId) {
|
|
50
|
+
const trimQuery = query.trim();
|
|
51
|
+
const res = await c.getServiceData(trimQuery, props.data);
|
|
52
|
+
if (res) {
|
|
53
|
+
items.value = res.data;
|
|
54
|
+
isSearched.value = true;
|
|
55
|
+
if (cb && cb instanceof Function) {
|
|
56
|
+
cb(items.value);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
vue.watch(() => props.value, async (newVal, oldVal) => {
|
|
48
62
|
if (newVal || newVal === null) {
|
|
63
|
+
if (!isSearched.value && oldVal === void 0) {
|
|
64
|
+
await onSearch("");
|
|
65
|
+
}
|
|
49
66
|
if (newVal === null) {
|
|
50
67
|
curValue.value = "";
|
|
51
68
|
}
|
|
@@ -73,19 +90,6 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
90
|
isShowAll.value = true;
|
|
74
91
|
setEditable(false);
|
|
75
92
|
};
|
|
76
|
-
const onSearch = async (query, cb) => {
|
|
77
|
-
if (c.model.appDataEntityId) {
|
|
78
|
-
const trimQuery = query.trim();
|
|
79
|
-
const res = await c.getServiceData(trimQuery, props.data);
|
|
80
|
-
if (res) {
|
|
81
|
-
items.value = res.data;
|
|
82
|
-
if (cb && cb instanceof Function) {
|
|
83
|
-
cb(items.value);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
onSearch("");
|
|
89
93
|
const onClear = () => {
|
|
90
94
|
const dataItems = c.dataItems;
|
|
91
95
|
if (dataItems.length > 0) {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
require('./monaco-editor.css');
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
-
require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.
|
|
7
|
-
var index = require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.
|
|
6
|
+
require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/index.cjs');
|
|
7
|
+
var index = require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/loader/index.cjs');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -40,7 +40,7 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
vue.nextTick(() => {
|
|
41
41
|
index.default.config({
|
|
42
42
|
paths: {
|
|
43
|
-
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.
|
|
43
|
+
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.45.0/min/vs")
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
index.default.init().then((loaderMonaco) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-picker-link{height:100%;line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-color-link);cursor:pointer}.ibiz-picker-link:hover{color:var(--ibiz-color-link-hover)}.ibiz-picker-link--disabled{cursor:not-allowed}.ibiz-picker-link--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-picker-link a{display:inline-block;height:100%}
|
|
1
|
+
.ibiz-picker-link{height:100%;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-color-link);cursor:pointer}.ibiz-picker-link:hover{color:var(--ibiz-color-link-hover)}.ibiz-picker-link--disabled{cursor:not-allowed}.ibiz-picker-link--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-picker-link a{display:inline-block;height:100%}
|