@ibiz-template/vue3-components 0.6.2-dev.0 → 0.6.3
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/chart-IsmrW_d0.js +1 -0
- package/dist/index-9YFoUwI0.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-HHwgsM7j.js → xlsx-util-c9vmypX3.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -2
- package/es/common/carousel/carousel.css +1 -0
- package/es/common/carousel/carousel.d.ts +133 -0
- package/es/common/carousel/carousel.mjs +78 -0
- package/es/common/index.mjs +2 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.mjs +22 -19
- package/es/control/caption-bar/caption-bar.d.ts +1 -1
- package/es/control/caption-bar/caption-bar.mjs +3 -8
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.mjs +5 -2
- package/es/control/dashboard/dashboard.mjs +3 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +7 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +1 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +51 -12
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +1 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.mjs +2 -1
- package/es/control/search-bar/index.d.ts +1 -0
- package/es/control/search-bar/search-bar.d.ts +1 -0
- package/es/control/search-bar/search-bar.mjs +10 -0
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +16 -9
- package/es/editor/carousel/carousel-editor.controller.d.ts +10 -0
- package/es/editor/carousel/carousel-editor.controller.mjs +7 -0
- package/es/editor/carousel/carousel-editor.provider.d.ts +17 -0
- package/es/editor/carousel/carousel-editor.provider.mjs +22 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.css +0 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +76 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +64 -0
- package/es/editor/carousel/index.d.ts +3 -0
- package/es/editor/carousel/index.mjs +5 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +20 -6
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -0
- package/es/editor/index.mjs +8 -0
- package/es/panel-component/index.mjs +2 -0
- package/es/panel-component/panel-static-carousel/index.d.ts +31 -0
- package/es/panel-component/panel-static-carousel/index.mjs +18 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.css +0 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.d.ts +34 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +80 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.provider.d.ts +15 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.provider.mjs +21 -0
- package/es/panel-component/user-message/index.d.ts +2 -2
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.css +1 -1
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +9 -3
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.d.ts +1 -0
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.mjs +8 -1
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +20 -1
- package/es/panel-component/user-message/user-message.d.ts +2 -2
- package/es/panel-component/user-message/user-message.mjs +32 -5
- package/es/util/app-modal/app-modal-component.d.ts +1 -0
- package/es/util/app-modal/app-modal-component.mjs +1 -1
- package/es/util/notification-util/notification-util.d.ts +1 -0
- package/es/util/notification-util/notification-util.mjs +4 -0
- package/es/view-engine/calendar-view.engine.d.ts +3 -1
- package/es/view-engine/calendar-view.engine.mjs +11 -0
- package/es/view-engine/gantt-view.engine.d.ts +2 -1
- package/es/view-engine/gantt-view.engine.mjs +3 -0
- package/es/view-engine/opt-view.engine.mjs +1 -1
- package/es/view-engine/tree-grid-view.engine.d.ts +1 -0
- package/es/view-engine/tree-grid-view.engine.mjs +8 -0
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +2 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -2
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/carousel/carousel.cjs +80 -0
- package/lib/common/carousel/carousel.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/calendar/calendar.cjs +22 -19
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/caption-bar/caption-bar.cjs +3 -8
- package/lib/control/chart/chart.cjs +5 -2
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +2 -0
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +50 -11
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +2 -1
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +10 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +15 -8
- package/lib/editor/carousel/carousel-editor.controller.cjs +9 -0
- package/lib/editor/carousel/carousel-editor.provider.cjs +24 -0
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +66 -0
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.css +0 -0
- package/lib/editor/carousel/index.cjs +11 -0
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +20 -6
- package/lib/editor/index.cjs +8 -0
- package/lib/panel-component/index.cjs +2 -0
- package/lib/panel-component/panel-static-carousel/index.cjs +23 -0
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +82 -0
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.css +0 -0
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.provider.cjs +23 -0
- package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +8 -2
- package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.css +1 -1
- package/lib/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.cjs +8 -1
- package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.cjs +19 -0
- package/lib/panel-component/user-message/user-message.cjs +30 -3
- package/lib/util/app-modal/app-modal-component.cjs +1 -1
- package/lib/util/notification-util/notification-util.cjs +4 -0
- package/lib/view-engine/calendar-view.engine.cjs +11 -0
- package/lib/view-engine/gantt-view.engine.cjs +3 -0
- package/lib/view-engine/opt-view.engine.cjs +1 -1
- package/lib/view-engine/tree-grid-view.engine.cjs +8 -0
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +2 -1
- package/package.json +8 -8
- package/dist/chart-fWcrZRts.js +0 -1
- package/dist/index-NdPkOMvL.js +0 -4
|
@@ -17,7 +17,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
required: true
|
|
18
18
|
},
|
|
19
19
|
controller: {
|
|
20
|
-
type:
|
|
20
|
+
type: Object,
|
|
21
21
|
required: true
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -26,6 +26,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const c = props.controller;
|
|
27
27
|
const noticeController = ibiz.hub.notice;
|
|
28
28
|
const showPopover = vue.ref(false);
|
|
29
|
+
let hiddenTime = 0;
|
|
29
30
|
const currentTab = vue.ref("notification");
|
|
30
31
|
const sysImage = props.modelData.sysImage || {
|
|
31
32
|
imagePath: "svg/message.svg"
|
|
@@ -45,6 +46,29 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
46
|
const onBatchReadClick = () => {
|
|
46
47
|
noticeController.internalMessage.batchMarkRead();
|
|
47
48
|
};
|
|
49
|
+
const verifyAuthentication = async () => {
|
|
50
|
+
const res = await ibiz.net.get("/appdata");
|
|
51
|
+
if (res.ok) {
|
|
52
|
+
ibiz.appData = res.data;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const handleVisibleChange = () => {
|
|
56
|
+
if (document.visibilityState === "hidden") {
|
|
57
|
+
hiddenTime = (/* @__PURE__ */ new Date()).getTime();
|
|
58
|
+
} else {
|
|
59
|
+
const currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
60
|
+
const elapsedTime = (currentTime - hiddenTime) / 1e3;
|
|
61
|
+
if (elapsedTime > 5 * 60) {
|
|
62
|
+
verifyAuthentication();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
vue.onMounted(() => {
|
|
67
|
+
document.addEventListener("visibilitychange", handleVisibleChange);
|
|
68
|
+
});
|
|
69
|
+
vue.onUnmounted(() => {
|
|
70
|
+
document.removeEventListener("visibilitychange", handleVisibleChange);
|
|
71
|
+
});
|
|
48
72
|
return {
|
|
49
73
|
ns,
|
|
50
74
|
c,
|
|
@@ -112,9 +136,12 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
136
|
})]
|
|
113
137
|
}), vue.createVNode("div", {
|
|
114
138
|
"class": this.ns.b("popover-icons")
|
|
115
|
-
}, [vue.createVNode("
|
|
139
|
+
}, [vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
116
140
|
"class": this.ns.b("popover-icons-read"),
|
|
117
|
-
"
|
|
141
|
+
"icon": {
|
|
142
|
+
imagePath: "svg/read.svg"
|
|
143
|
+
},
|
|
144
|
+
"baseDir": "iconfont",
|
|
118
145
|
"title": "\u5168\u90E8\u5DF2\u8BFB",
|
|
119
146
|
"onClick": this.onBatchReadClick
|
|
120
147
|
}, null)])]);
|
|
@@ -49,7 +49,7 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
Object.assign(options.value, props.opts);
|
|
50
50
|
}
|
|
51
51
|
const modal = new runtime.Modal({
|
|
52
|
-
mode: runtime.ViewMode.MODAL,
|
|
52
|
+
mode: options.value.isRouteModal ? runtime.ViewMode.ROUTE_MODAL : runtime.ViewMode.MODAL,
|
|
53
53
|
viewUsage: 2,
|
|
54
54
|
dismiss: (data) => {
|
|
55
55
|
zIndex.decrement();
|
|
@@ -73,6 +73,10 @@ class NotificationUtil {
|
|
|
73
73
|
}, 50);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
default(params) {
|
|
77
|
+
this.callStack.push(() => this.handleNotice(params, ""));
|
|
78
|
+
this.setTimer();
|
|
79
|
+
}
|
|
76
80
|
info(params) {
|
|
77
81
|
this.callStack.push(() => this.handleNotice(params, "info"));
|
|
78
82
|
this.setTimer();
|
|
@@ -4,6 +4,17 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
6
|
class CalendarViewEngine extends runtime.MDViewEngine {
|
|
7
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
8
|
+
async onXDataActive(event) {
|
|
9
|
+
}
|
|
10
|
+
async onCreated() {
|
|
11
|
+
super.onCreated();
|
|
12
|
+
const { model } = this.view;
|
|
13
|
+
if (!this.view.slotProps.calendar) {
|
|
14
|
+
this.view.slotProps.calendar = {};
|
|
15
|
+
}
|
|
16
|
+
this.view.slotProps.calendar.mdctrlActiveMode = model.mdctrlActiveMode;
|
|
17
|
+
}
|
|
7
18
|
}
|
|
8
19
|
|
|
9
20
|
exports.CalendarViewEngine = CalendarViewEngine;
|
|
@@ -27,6 +27,9 @@ class GanttViewEngine extends runtime.MDViewEngine {
|
|
|
27
27
|
}
|
|
28
28
|
return super.call(key, args);
|
|
29
29
|
}
|
|
30
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
31
|
+
async onXDataActive(event) {
|
|
32
|
+
}
|
|
30
33
|
async onCreated() {
|
|
31
34
|
super.onCreated();
|
|
32
35
|
const { model } = this.view;
|
|
@@ -32,7 +32,7 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
32
32
|
}
|
|
33
33
|
this.view.slotProps.toolbar.manualCalcButtonState = true;
|
|
34
34
|
modal.hooks.shouldDismiss.tapPromise(async (context) => {
|
|
35
|
-
if (this.form.state.modified) {
|
|
35
|
+
if (this.form.state.modified && this.view.model.enableDirtyChecking === true) {
|
|
36
36
|
const isAllow = await ibiz.confirm.error({
|
|
37
37
|
title: "\u5173\u95ED\u63D0\u9192",
|
|
38
38
|
desc: "\u8868\u5355\u6570\u636E\u5DF2\u7ECF\u4FEE\u6539\uFF0C\u786E\u5B9A\u8981\u5173\u95ED\uFF1F"
|
|
@@ -16,6 +16,14 @@ class TreeGridViewEngine extends gridView_engine.GridViewEngine {
|
|
|
16
16
|
get xdataControlName() {
|
|
17
17
|
return "treegrid";
|
|
18
18
|
}
|
|
19
|
+
async onCreated() {
|
|
20
|
+
await super.onCreated();
|
|
21
|
+
if (!this.view.slotProps.treegrid) {
|
|
22
|
+
this.view.slotProps.treegrid = this.view.slotProps.grid;
|
|
23
|
+
} else {
|
|
24
|
+
Object.assign(this.view.slotProps.treegrid, this.view.slotProps.grid);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
exports.TreeGridViewEngine = TreeGridViewEngine;
|
|
@@ -94,7 +94,8 @@ const ModalRouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
94
|
const opts = {
|
|
95
95
|
width: (appView == null ? void 0 : appView.width) || "80%",
|
|
96
96
|
height: (appView == null ? void 0 : appView.height) || "80%",
|
|
97
|
-
footerHide: true
|
|
97
|
+
footerHide: true,
|
|
98
|
+
isRouteModal: true
|
|
98
99
|
};
|
|
99
100
|
overlay = ibiz.overlay.createModal(component, void 0, opts);
|
|
100
101
|
overlay.present();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
|
-
"@ibiz-template-plugin/gantt": "0.1.3-alpha.
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
34
|
-
"@ibiz-template/devtool": "0.0.1-dev.
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
32
|
+
"@ibiz-template-plugin/gantt": "0.1.3-alpha.41",
|
|
33
|
+
"@ibiz-template/core": "0.6.3",
|
|
34
|
+
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.3",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.3",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.3",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.11",
|
|
40
40
|
"@ibiz/model-core": "^0.1.14",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
package/dist/chart-fWcrZRts.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","echarts","@ibiz-template/runtime"],(function(e){"use strict";var t,r,o,n,c,a,i,l,u;return{setters:[function(e){t=e.defineComponent,r=e.ref,o=e.onMounted,n=e.createVNode,c=e.resolveComponent},function(e){a=e.useControlController,i=e.useNamespace},function(e){l=e.init},function(e){u=e.ChartController}],execute:function(){e("default",t({name:"IBizChartControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=a(((...e)=>new u(...e))),t=i("control-".concat(e.model.controlType.toLowerCase())),n=r();return o((()=>{const t=l(n.value);e.initChart(t)})),{c:e,ns:t,chartRef:n}},render(){return n(c("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{ref:"chartRef",class:this.ns.e("chart")},[ibiz.i18n.t("control.chart.chartPlaceholder")])]})}}))}}}));
|