@ibiz-template/vue3-components 0.7.29-alpha.0 → 0.7.30-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-RYTwEwp1.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-jxc7ylyH.js → xlsx-util-RK7YFZYE.js} +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.css +1 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.d.ts +9 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.mjs +87 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.d.ts +13 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +244 -0
- package/es/common/index.mjs +2 -0
- package/es/common/pagination/pagination.mjs +1 -1
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +1 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +6 -0
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +3 -2
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/editor/span/span/span.mjs +18 -9
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +2 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +14 -5
- package/es/index.mjs +1 -0
- package/es/panel-component/auth-captcha/auth-captcha.mjs +1 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +25 -0
- package/es/util/fullscreen/fullscreen-util.mjs +43 -0
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/web-app/main.mjs +2 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.cjs +89 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.css +1 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +246 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/common/pagination/pagination.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +1 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +6 -0
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +1 -1
- package/lib/editor/span/span/span.cjs +18 -9
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +14 -5
- package/lib/index.cjs +2 -0
- package/lib/panel-component/auth-captcha/auth-captcha.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +45 -0
- package/lib/util/index.cjs +2 -0
- package/lib/web-app/main.cjs +2 -0
- package/package.json +5 -5
- package/dist/index-5QrDXG59.js +0 -4
|
@@ -128,15 +128,24 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
128
|
render() {
|
|
129
129
|
let content = null;
|
|
130
130
|
if (this.c.codeList) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
131
|
+
if (this.c.codeList.thresholdGroup) {
|
|
132
|
+
content = this.items.length > 0 && vue.createVNode(vue.resolveComponent("iBizCodeList"), {
|
|
133
|
+
"class": this.ns.e("code-list"),
|
|
134
|
+
"codeListItems": this.items,
|
|
135
|
+
"codeList": this.c.codeList,
|
|
136
|
+
"value": this.value,
|
|
137
|
+
"valueFormat": this.valueFormat,
|
|
138
|
+
"unitName": this.unitName,
|
|
139
|
+
"convertToCodeItemText": this.c.convertToCodeItemText
|
|
140
|
+
}, null);
|
|
141
|
+
} else {
|
|
142
|
+
content = this.items.length > 0 && vue.createVNode(vue.resolveComponent("iBizCodeList"), {
|
|
143
|
+
"class": this.ns.e("code-list"),
|
|
144
|
+
"codeListItems": this.items,
|
|
145
|
+
"codeList": this.c.codeList,
|
|
146
|
+
"value": this.text
|
|
147
|
+
}, null);
|
|
148
|
+
}
|
|
140
149
|
} else if (this.text) {
|
|
141
150
|
content = this.text;
|
|
142
151
|
} else {
|
|
@@ -33,13 +33,20 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
emit("change", value);
|
|
34
34
|
useInValueChange();
|
|
35
35
|
}, c);
|
|
36
|
-
const dialogImageUrl = vue.ref(
|
|
36
|
+
const dialogImageUrl = vue.ref([]);
|
|
37
|
+
const dialogImageUrlIndex = vue.ref(0);
|
|
37
38
|
const dialogVisible = vue.ref(false);
|
|
38
39
|
const onDialogVisibleChange = (value) => {
|
|
39
40
|
dialogVisible.value = value;
|
|
40
41
|
};
|
|
41
42
|
const onPreview = (file) => {
|
|
42
|
-
dialogImageUrl.value =
|
|
43
|
+
dialogImageUrl.value = [];
|
|
44
|
+
files.value.forEach((i) => {
|
|
45
|
+
if (i.url) {
|
|
46
|
+
dialogImageUrl.value.push(i.url);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
dialogImageUrlIndex.value = files.value.findIndex((item) => item.url === file.url);
|
|
43
50
|
dialogVisible.value = true;
|
|
44
51
|
};
|
|
45
52
|
const noUploadIcon = vue.computed(() => {
|
|
@@ -72,7 +79,8 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
79
|
onDialogVisibleChange,
|
|
73
80
|
onPreview,
|
|
74
81
|
componentRef,
|
|
75
|
-
showFormDefaultContent
|
|
82
|
+
showFormDefaultContent,
|
|
83
|
+
dialogImageUrlIndex
|
|
76
84
|
};
|
|
77
85
|
},
|
|
78
86
|
render() {
|
|
@@ -124,11 +132,12 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
124
132
|
}, null)]
|
|
125
133
|
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), vue.mergeProps({
|
|
126
134
|
"onClose": () => this.onDialogVisibleChange(false),
|
|
127
|
-
"url-list":
|
|
135
|
+
"url-list": this.dialogImageUrl,
|
|
128
136
|
"hide-on-click-modal": true,
|
|
129
137
|
"close-on-press-escape": true,
|
|
130
138
|
"teleported": true,
|
|
131
|
-
"z-index": 9999
|
|
139
|
+
"z-index": 9999,
|
|
140
|
+
"initial-index": this.dialogImageUrlIndex
|
|
132
141
|
}, this.$attrs), null) : null]);
|
|
133
142
|
}
|
|
134
143
|
});
|
package/lib/index.cjs
CHANGED
|
@@ -126,6 +126,7 @@ var usePagination = require('./util/pagination/use-pagination.cjs');
|
|
|
126
126
|
var noticeUtil = require('./util/notice-util/notice-util.cjs');
|
|
127
127
|
var renderUtil = require('./util/render-util/render-util.cjs');
|
|
128
128
|
var appUtil = require('./util/app-util/app-util.cjs');
|
|
129
|
+
var fullscreenUtil = require('./util/fullscreen/fullscreen-util.cjs');
|
|
129
130
|
var wangEditorUtil = require('./util/wang-editor-util/wang-editor-util.cjs');
|
|
130
131
|
var authGuard = require('./web-app/guard/auth-guard/auth-guard.cjs');
|
|
131
132
|
var main = require('./web-app/main.cjs');
|
|
@@ -259,6 +260,7 @@ exports.usePagination = usePagination.usePagination;
|
|
|
259
260
|
exports.NoticeUtil = noticeUtil.NoticeUtil;
|
|
260
261
|
exports.RenderUtil = renderUtil.RenderUtil;
|
|
261
262
|
exports.AppUtil = appUtil.AppUtil;
|
|
263
|
+
exports.FullscreenUtil = fullscreenUtil.FullscreenUtil;
|
|
262
264
|
exports.parseHtml = wangEditorUtil.parseHtml;
|
|
263
265
|
exports.AuthGuard = authGuard.AuthGuard;
|
|
264
266
|
exports.runApp = main.runApp;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
5
6
|
var authCaptcha_controller = require('./auth-captcha.controller.cjs');
|
|
6
7
|
require('./auth-captcha.css');
|
|
7
|
-
var core = require('@ibiz-template/core');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
var panelButton_controller = require('./panel-button.controller.cjs');
|
|
8
9
|
require('./panel-button.css');
|
|
9
|
-
var core = require('@ibiz-template/core');
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
const PanelButton = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var ElementPlus = require('element-plus');
|
|
5
|
+
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
class FullscreenUtil {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instance of FullscreenUtil.
|
|
11
|
+
* @memberof FullscreenUtil
|
|
12
|
+
*/
|
|
13
|
+
constructor() {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 指定元素全屏
|
|
17
|
+
* @author fzh
|
|
18
|
+
* @date 2024-07-09 19:39:40
|
|
19
|
+
*/
|
|
20
|
+
openElementFullscreen(div) {
|
|
21
|
+
if (!document.fullscreenElement && div) {
|
|
22
|
+
div.requestFullscreen();
|
|
23
|
+
div.style.background = "white";
|
|
24
|
+
const content = document.createElement("div");
|
|
25
|
+
content.id = "fullscreen";
|
|
26
|
+
content.style.position = "absolute";
|
|
27
|
+
content.style.bottom = "20px";
|
|
28
|
+
content.style.left = "45%";
|
|
29
|
+
div.appendChild(content);
|
|
30
|
+
const app = vue.createApp(fullscreenToolbar.IBizFullscreenToolbar);
|
|
31
|
+
app.use(ElementPlus);
|
|
32
|
+
app.mount(content);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 页面退出全屏
|
|
37
|
+
* @author fzh
|
|
38
|
+
* @date 2024-07-09 19:39:40
|
|
39
|
+
*/
|
|
40
|
+
closeFullscreen() {
|
|
41
|
+
document.exitFullscreen();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.FullscreenUtil = FullscreenUtil;
|
package/lib/util/index.cjs
CHANGED
|
@@ -11,6 +11,7 @@ var usePagination = require('./pagination/use-pagination.cjs');
|
|
|
11
11
|
var noticeUtil = require('./notice-util/notice-util.cjs');
|
|
12
12
|
var renderUtil = require('./render-util/render-util.cjs');
|
|
13
13
|
var appUtil = require('./app-util/app-util.cjs');
|
|
14
|
+
var fullscreenUtil = require('./fullscreen/fullscreen-util.cjs');
|
|
14
15
|
var wangEditorUtil = require('./wang-editor-util/wang-editor-util.cjs');
|
|
15
16
|
|
|
16
17
|
"use strict";
|
|
@@ -26,4 +27,5 @@ exports.usePagination = usePagination.usePagination;
|
|
|
26
27
|
exports.NoticeUtil = noticeUtil.NoticeUtil;
|
|
27
28
|
exports.RenderUtil = renderUtil.RenderUtil;
|
|
28
29
|
exports.AppUtil = appUtil.AppUtil;
|
|
30
|
+
exports.FullscreenUtil = fullscreenUtil.FullscreenUtil;
|
|
29
31
|
exports.parseHtml = wangEditorUtil.parseHtml;
|
package/lib/web-app/main.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var notificationUtil = require('../util/notification-util/notification-util.cjs'
|
|
|
22
22
|
var loadingUtil = require('../util/loading-util/loading-util.cjs');
|
|
23
23
|
var noticeUtil = require('../util/notice-util/notice-util.cjs');
|
|
24
24
|
var overlayController = require('../util/overlay-controller/overlay-controller.cjs');
|
|
25
|
+
var fullscreenUtil = require('../util/fullscreen/fullscreen-util.cjs');
|
|
25
26
|
|
|
26
27
|
"use strict";
|
|
27
28
|
async function runApp(plugins, opts) {
|
|
@@ -78,6 +79,7 @@ async function runApp(plugins, opts) {
|
|
|
78
79
|
ibiz.util.text.format = (value, code) => {
|
|
79
80
|
return app.config.globalProperties.$textFormat(value, code);
|
|
80
81
|
};
|
|
82
|
+
ibiz.fullscreenUtil = new fullscreenUtil.FullscreenUtil();
|
|
81
83
|
await ibiz.i18n.init();
|
|
82
84
|
app.mount("#app");
|
|
83
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.30-alpha.0",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
|
|
33
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
33
|
+
"@ibiz-template-plugin/bi-report": "0.0.9",
|
|
34
34
|
"@ibiz-template/core": "0.7.28",
|
|
35
35
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
36
|
-
"@ibiz-template/model-helper": "0.7.29
|
|
37
|
-
"@ibiz-template/runtime": "0.7.29
|
|
36
|
+
"@ibiz-template/model-helper": "0.7.29",
|
|
37
|
+
"@ibiz-template/runtime": "0.7.29",
|
|
38
38
|
"@ibiz-template/theme": "^0.7.0",
|
|
39
|
-
"@ibiz-template/vue3-util": "0.7.29
|
|
39
|
+
"@ibiz-template/vue3-util": "0.7.29",
|
|
40
40
|
"@ibiz-template/web-theme": "^1.1.18",
|
|
41
41
|
"@ibiz/model-core": "^0.1.43",
|
|
42
42
|
"@imengyu/vue3-context-menu": "^1.3.5",
|