@ibiz-template/mob-vue3-components 0.0.3 → 0.0.4
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.min.css +1 -1
- package/dist/index.system.min.js +5 -5
- package/dist/index.system.min.js.map +1 -1
- package/es/common/carousel/carousel.css +1 -0
- package/es/common/carousel/carousel.d.ts +52 -0
- package/es/common/carousel/carousel.mjs +61 -0
- package/es/common/index.mjs +2 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +4 -3
- package/es/control/calendar/calendar.mjs +94 -12
- package/es/control/calendar/index.d.ts +2 -1
- package/es/control/dashboard/dashboard.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +5 -1
- package/es/control/list/md-ctrl/md-ctrl.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +2 -1
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.d.ts +2 -0
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.mjs +17 -4
- package/es/editor/index.mjs +10 -0
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.css +1 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.d.ts +65 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.mjs +71 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.d.ts +1 -2
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.mjs +12 -5
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -4
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +13 -13
- package/es/editor/upload/index.d.ts +1 -0
- package/es/editor/upload/index.mjs +1 -0
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/index.mjs +8 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +29 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +66 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +15 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.mjs +21 -0
- package/es/panel-component/auth-userinfo/index.d.ts +26 -0
- package/es/panel-component/auth-userinfo/index.mjs +15 -0
- package/es/panel-component/index.mjs +6 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -1
- package/es/panel-component/panel-carousel/index.d.ts +20 -0
- package/es/panel-component/panel-carousel/index.mjs +16 -0
- package/es/panel-component/panel-carousel/panel-carousel.controller.d.ts +50 -0
- package/es/panel-component/panel-carousel/panel-carousel.controller.mjs +76 -0
- package/es/panel-component/panel-carousel/panel-carousel.css +1 -0
- package/es/panel-component/panel-carousel/panel-carousel.d.ts +20 -0
- package/es/panel-component/panel-carousel/panel-carousel.mjs +42 -0
- package/es/panel-component/panel-carousel/panel-carousel.provider.d.ts +14 -0
- package/es/panel-component/panel-carousel/panel-carousel.provider.mjs +21 -0
- package/es/panel-component/panel-video-player/index.d.ts +22 -0
- package/es/panel-component/panel-video-player/index.mjs +19 -0
- package/es/panel-component/panel-video-player/panel-video-player.controller.d.ts +50 -0
- package/es/panel-component/panel-video-player/panel-video-player.controller.mjs +81 -0
- package/es/panel-component/panel-video-player/panel-video-player.css +1 -0
- package/es/panel-component/panel-video-player/panel-video-player.d.ts +22 -0
- package/es/panel-component/panel-video-player/panel-video-player.mjs +59 -0
- package/es/panel-component/panel-video-player/panel-video-player.provider.d.ts +14 -0
- package/es/panel-component/panel-video-player/panel-video-player.provider.mjs +21 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/es/platform/index.d.ts +1 -0
- package/es/platform/index.mjs +3 -0
- package/es/platform/vue-browser-platform-provider.d.ts +20 -0
- package/es/platform/vue-browser-platform-provider.mjs +20 -0
- package/lib/common/carousel/carousel.cjs +63 -0
- package/lib/common/carousel/carousel.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/calendar/calendar.cjs +94 -12
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/dashboard.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -1
- package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +2 -1
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.cjs +17 -4
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
- package/lib/editor/index.cjs +10 -0
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/upload/ibiz-carousel/ibiz-carousel.cjs +73 -0
- package/lib/editor/upload/ibiz-carousel/ibiz-carousel.css +1 -0
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
- package/lib/editor/upload/ibiz-image-select/ibiz-image-select.cjs +12 -5
- package/lib/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +12 -12
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/lib/editor/upload/index.cjs +2 -0
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/index.cjs +8 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +68 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.provider.cjs +23 -0
- package/lib/panel-component/auth-userinfo/index.cjs +20 -0
- package/lib/panel-component/index.cjs +6 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +1 -1
- package/lib/panel-component/panel-carousel/index.cjs +23 -0
- package/lib/panel-component/panel-carousel/panel-carousel.cjs +47 -0
- package/lib/panel-component/panel-carousel/panel-carousel.controller.cjs +78 -0
- package/lib/panel-component/panel-carousel/panel-carousel.css +1 -0
- package/lib/panel-component/panel-carousel/panel-carousel.provider.cjs +23 -0
- package/lib/panel-component/panel-video-player/index.cjs +26 -0
- package/lib/panel-component/panel-video-player/panel-video-player.cjs +64 -0
- package/lib/panel-component/panel-video-player/panel-video-player.controller.cjs +83 -0
- package/lib/panel-component/panel-video-player/panel-video-player.css +1 -0
- package/lib/panel-component/panel-video-player/panel-video-player.provider.cjs +23 -0
- package/lib/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/lib/platform/index.cjs +7 -0
- package/lib/platform/vue-browser-platform-provider.cjs +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelCarouselController extends PanelItemController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 图片集
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 01:12:38
|
|
18
|
+
* @memberof PanelCarouselController
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "images", []);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 初始化
|
|
24
|
+
*
|
|
25
|
+
* @author zk
|
|
26
|
+
* @date 2023-12-08 11:12:23
|
|
27
|
+
* @protected
|
|
28
|
+
* @return {*} {Promise<void>}
|
|
29
|
+
* @memberof PanelCarouselController
|
|
30
|
+
*/
|
|
31
|
+
async onInit() {
|
|
32
|
+
super.onInit();
|
|
33
|
+
this.initCarouselImages();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 初始化轮播图资源
|
|
37
|
+
*
|
|
38
|
+
* @author zk
|
|
39
|
+
* @date 2023-12-08 02:12:03
|
|
40
|
+
* @return {*} {void}
|
|
41
|
+
* @memberof PanelCarouselController
|
|
42
|
+
*/
|
|
43
|
+
initCarouselImages() {
|
|
44
|
+
const params = this.model.rawItem.rawItemParams;
|
|
45
|
+
if (!params) {
|
|
46
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u8D44\u6E90");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.images = params.filter((item) => item.key === "img").map((item) => item.sysImage);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 获取直接内容参数
|
|
53
|
+
*
|
|
54
|
+
* @author zk
|
|
55
|
+
* @date 2023-12-08 02:12:51
|
|
56
|
+
* @param {string} key
|
|
57
|
+
* @return {*} {(string | undefined)}
|
|
58
|
+
* @memberof PanelCarouselController
|
|
59
|
+
*/
|
|
60
|
+
getParamsValue(key) {
|
|
61
|
+
let value;
|
|
62
|
+
const params = this.model.rawItem.rawItemParams;
|
|
63
|
+
if (!params) {
|
|
64
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u53C2\u6570:${key}}`);
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
67
|
+
params.forEach((item) => {
|
|
68
|
+
if (item.key === key) {
|
|
69
|
+
value = item.value;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { PanelCarouselController };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-carousel{height:100%}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PanelCarouselController } from './panel-carousel.controller';
|
|
2
|
+
import './panel-carousel.scss';
|
|
3
|
+
export declare const PanelCarousel: import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof PanelCarouselController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
autoplay: string | undefined;
|
|
11
|
+
duration: string | undefined;
|
|
12
|
+
showIndicators: string | undefined;
|
|
13
|
+
touchable: string | undefined;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
controller: {
|
|
16
|
+
type: typeof PanelCarouselController;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, {}>;
|
|
20
|
+
export default PanelCarousel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelCarouselController } from './panel-carousel.controller.mjs';
|
|
4
|
+
import './panel-carousel.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const PanelCarousel = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizPanelCarousel",
|
|
9
|
+
props: {
|
|
10
|
+
controller: {
|
|
11
|
+
type: PanelCarouselController,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(_props) {
|
|
16
|
+
const ns = useNamespace("panel-carousel");
|
|
17
|
+
const autoplay = _props.controller.getParamsValue("autoplay") === "1" ? _props.controller.getParamsValue("timespan") : void 0;
|
|
18
|
+
const duration = _props.controller.getParamsValue("duration");
|
|
19
|
+
const showIndicators = _props.controller.getParamsValue("showIndicators");
|
|
20
|
+
const touchable = _props.controller.getParamsValue("touchable");
|
|
21
|
+
return {
|
|
22
|
+
ns,
|
|
23
|
+
autoplay,
|
|
24
|
+
duration,
|
|
25
|
+
showIndicators,
|
|
26
|
+
touchable
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
render() {
|
|
30
|
+
return createVNode("div", {
|
|
31
|
+
"class": this.ns.b()
|
|
32
|
+
}, [createVNode(resolveComponent("iBizCarousel"), {
|
|
33
|
+
"images": this.controller.images,
|
|
34
|
+
"autoplay": this.autoplay,
|
|
35
|
+
"duration": this.duration,
|
|
36
|
+
"showIndicators": this.showIndicators,
|
|
37
|
+
"touchable": this.touchable
|
|
38
|
+
}, null)]);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { PanelCarousel, PanelCarousel as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelCarouselController } from './panel-carousel.controller';
|
|
4
|
+
/**
|
|
5
|
+
* 流程跟踪组件适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class WFStepTraceProvider
|
|
9
|
+
* @implements {IPanelItemProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class PanelCarouselProvider implements IPanelItemProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelCarouselController>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelCarouselController } from './panel-carousel.controller.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelCarouselProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizPanelCarousel");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelCarouselController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { PanelCarouselProvider };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './panel-video-player.provider';
|
|
2
|
+
export * from './panel-video-player.controller';
|
|
3
|
+
export declare const IBizPanelVideoPlayer: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof import("./panel-video-player.controller").PanelVideoPlayerController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
id: string;
|
|
11
|
+
path: string | undefined;
|
|
12
|
+
autoplay: boolean;
|
|
13
|
+
showcontrols: boolean;
|
|
14
|
+
replay: boolean;
|
|
15
|
+
mute: boolean;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
controller: {
|
|
18
|
+
type: typeof import("./panel-video-player.controller").PanelVideoPlayerController;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>>, {}, {}>>;
|
|
22
|
+
export default IBizPanelVideoPlayer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelVideoPlayer } from './panel-video-player.mjs';
|
|
4
|
+
import { PanelVideoPlayerProvider } from './panel-video-player.provider.mjs';
|
|
5
|
+
export { PanelVideoPlayerController } from './panel-video-player.controller.mjs';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const IBizPanelVideoPlayer = withInstall(
|
|
9
|
+
PanelVideoPlayer,
|
|
10
|
+
function(v) {
|
|
11
|
+
v.component(PanelVideoPlayer.name, PanelVideoPlayer);
|
|
12
|
+
registerPanelItemProvider(
|
|
13
|
+
"RAWITEM_STATIC_VIDEOPLAYER",
|
|
14
|
+
() => new PanelVideoPlayerProvider()
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export { IBizPanelVideoPlayer, PanelVideoPlayerProvider, IBizPanelVideoPlayer as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 面板视频播放器控制器
|
|
5
|
+
*
|
|
6
|
+
* @author zk
|
|
7
|
+
* @date 2023-12-08 02:12:07
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelCarouselController
|
|
10
|
+
* @extends {PanelItemController<IPanelRawItem>}
|
|
11
|
+
*/
|
|
12
|
+
export declare class PanelVideoPlayerController extends PanelItemController<IPanelRawItem> {
|
|
13
|
+
/**
|
|
14
|
+
* 视频播放器额外参数
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 03:12:09
|
|
18
|
+
* @memberof PanelVideoPlayerController
|
|
19
|
+
*/
|
|
20
|
+
rawItemParams: {};
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* @author zk
|
|
25
|
+
* @date 2023-12-08 03:12:26
|
|
26
|
+
* @protected
|
|
27
|
+
* @return {*} {Promise<void>}
|
|
28
|
+
* @memberof PanelVideoPlayerController
|
|
29
|
+
*/
|
|
30
|
+
protected onInit(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 获取直接内容参数
|
|
33
|
+
*
|
|
34
|
+
* @author zk
|
|
35
|
+
* @date 2023-12-08 02:12:51
|
|
36
|
+
* @param {string} key
|
|
37
|
+
* @return {*} {(string | undefined)}
|
|
38
|
+
* @memberof PanelCarouselController
|
|
39
|
+
*/
|
|
40
|
+
getParamsValue(key: string): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* 初始化额外参数
|
|
43
|
+
*
|
|
44
|
+
* @author zk
|
|
45
|
+
* @date 2023-12-08 03:12:27
|
|
46
|
+
* @return {*} {void}
|
|
47
|
+
* @memberof PanelVideoPlayerController
|
|
48
|
+
*/
|
|
49
|
+
initRawItemParams(): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelVideoPlayerController extends PanelItemController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 视频播放器额外参数
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 03:12:09
|
|
18
|
+
* @memberof PanelVideoPlayerController
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "rawItemParams", {});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* @author zk
|
|
26
|
+
* @date 2023-12-08 03:12:26
|
|
27
|
+
* @protected
|
|
28
|
+
* @return {*} {Promise<void>}
|
|
29
|
+
* @memberof PanelVideoPlayerController
|
|
30
|
+
*/
|
|
31
|
+
async onInit() {
|
|
32
|
+
super.onInit();
|
|
33
|
+
this.initRawItemParams();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 获取直接内容参数
|
|
37
|
+
*
|
|
38
|
+
* @author zk
|
|
39
|
+
* @date 2023-12-08 02:12:51
|
|
40
|
+
* @param {string} key
|
|
41
|
+
* @return {*} {(string | undefined)}
|
|
42
|
+
* @memberof PanelCarouselController
|
|
43
|
+
*/
|
|
44
|
+
getParamsValue(key) {
|
|
45
|
+
let value;
|
|
46
|
+
const params = this.model.rawItem.rawItemParams;
|
|
47
|
+
if (!params) {
|
|
48
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570:${key}}`);
|
|
49
|
+
return void 0;
|
|
50
|
+
}
|
|
51
|
+
params.forEach((item) => {
|
|
52
|
+
if (item.key === key) {
|
|
53
|
+
value = item.value;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 初始化额外参数
|
|
60
|
+
*
|
|
61
|
+
* @author zk
|
|
62
|
+
* @date 2023-12-08 03:12:27
|
|
63
|
+
* @return {*} {void}
|
|
64
|
+
* @memberof PanelVideoPlayerController
|
|
65
|
+
*/
|
|
66
|
+
initRawItemParams() {
|
|
67
|
+
const arrayParams = this.model.rawItem.rawItemParams;
|
|
68
|
+
if (!arrayParams) {
|
|
69
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570`);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const rawItemParams = {};
|
|
73
|
+
for (let i = 0; i < arrayParams.length; i++) {
|
|
74
|
+
const item = arrayParams[i];
|
|
75
|
+
rawItemParams[item.key] = item.value;
|
|
76
|
+
}
|
|
77
|
+
this.rawItemParams = rawItemParams;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { PanelVideoPlayerController };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-video-player{width:100%;height:100%}.ibiz-panel-video-player__video{width:100%;height:100%}.ibiz-panel-video-player__video video{width:100%;height:100%}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PanelVideoPlayerController } from './panel-video-player.controller';
|
|
2
|
+
import './panel-video-player.scss';
|
|
3
|
+
export declare const PanelVideoPlayer: import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof PanelVideoPlayerController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
id: string;
|
|
11
|
+
path: string | undefined;
|
|
12
|
+
autoplay: boolean;
|
|
13
|
+
showcontrols: boolean;
|
|
14
|
+
replay: boolean;
|
|
15
|
+
mute: boolean;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
controller: {
|
|
18
|
+
type: typeof PanelVideoPlayerController;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>>, {}, {}>;
|
|
22
|
+
export default PanelVideoPlayer;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { mergeProps, createVNode, createTextVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { createUUID } from 'qx-util';
|
|
4
|
+
import { PanelVideoPlayerController } from './panel-video-player.controller.mjs';
|
|
5
|
+
import './panel-video-player.css';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const PanelVideoPlayer = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "IBizPanelVideoPlayer",
|
|
10
|
+
props: {
|
|
11
|
+
controller: {
|
|
12
|
+
type: PanelVideoPlayerController,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(props) {
|
|
17
|
+
const ns = useNamespace("panel-video-player");
|
|
18
|
+
const id = createUUID();
|
|
19
|
+
const path = props.controller.getParamsValue("path");
|
|
20
|
+
const autoplay = props.controller.getParamsValue("autoplay") === "1";
|
|
21
|
+
const showcontrols = props.controller.getParamsValue("showcontrols") === "1";
|
|
22
|
+
const replay = props.controller.getParamsValue("replay") === "1";
|
|
23
|
+
const mute = props.controller.getParamsValue("mute") === "1";
|
|
24
|
+
return {
|
|
25
|
+
ns,
|
|
26
|
+
id,
|
|
27
|
+
path,
|
|
28
|
+
autoplay,
|
|
29
|
+
showcontrols,
|
|
30
|
+
replay,
|
|
31
|
+
mute
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
render() {
|
|
35
|
+
return createVNode("div", {
|
|
36
|
+
"class": this.ns.b()
|
|
37
|
+
}, [createVNode("div", {
|
|
38
|
+
"class": this.ns.e("video")
|
|
39
|
+
}, [createVNode("video", mergeProps(this.controller.rawItemParams, {
|
|
40
|
+
"id": this.id,
|
|
41
|
+
"src": this.path,
|
|
42
|
+
"autoplay": this.autoplay,
|
|
43
|
+
"controls": this.showcontrols,
|
|
44
|
+
"loop": this.replay,
|
|
45
|
+
"muted": this.mute
|
|
46
|
+
}), [createVNode("source", {
|
|
47
|
+
"src": this.path,
|
|
48
|
+
"type": "video/mp4"
|
|
49
|
+
}, null), createVNode("source", {
|
|
50
|
+
"src": this.path,
|
|
51
|
+
"type": "video/ogg"
|
|
52
|
+
}, null), createVNode("source", {
|
|
53
|
+
"src": this.path,
|
|
54
|
+
"type": "video/webm"
|
|
55
|
+
}, null), createTextVNode("\u60A8\u7684\u8BBE\u5907\u4E0D\u652F\u6301video\u6807\u7B7E")])])]);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export { PanelVideoPlayer, PanelVideoPlayer as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelVideoPlayerController } from './panel-video-player.controller';
|
|
4
|
+
/**
|
|
5
|
+
* 流程跟踪组件适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class WFStepTraceProvider
|
|
9
|
+
* @implements {IPanelItemProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class PanelVideoPlayerProvider implements IPanelItemProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelVideoPlayerController>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelVideoPlayerController } from './panel-video-player.controller.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelVideoPlayerProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizPanelVideoPlayer");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelVideoPlayerController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { PanelVideoPlayerProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-view-header{--ibiz-panel-component-view-header-bg-color:var(--ibiz-color-bg-1);--ibiz-panel-component-view-header-back-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-component-view-header-back-padding:0 var(--ibiz-spacing-tight);--ibiz-panel-component-view-header-back-width:2.5rem;--ibiz-panel-component-view-header-back-height:100%;--ibiz-panel-component-view-header-color:var(--ibiz-color-text-0);position:relative;color:var(--ibiz-panel-component-view-header-color);background-color:var(--ibiz-panel-component-view-header-bg-color)}.ibiz-view-header .ibiz-view-header-back-button{position:absolute;display:flex;align-items:center;width:var(--ibiz-panel-component-view-header-back-width);height:var(--ibiz-panel-component-view-header-back-height);padding:var(--ibiz-panel-component-view-header-back-padding);font-size:var(--ibiz-panel-component-view-header-back-font-size)}.ibiz-view-header .ibiz-view-header-precut-back{padding-left:var(--ibiz-panel-component-view-header-back-width)}
|
|
1
|
+
.ibiz-view-header{--ibiz-panel-component-view-header-bg-color:var(--ibiz-color-bg-1);--ibiz-panel-component-view-header-back-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-component-view-header-back-padding:0 var(--ibiz-spacing-tight);--ibiz-panel-component-view-header-back-width:2.5rem;--ibiz-panel-component-view-header-back-height:100%;--ibiz-panel-component-view-header-color:var(--ibiz-color-text-0);position:relative;color:var(--ibiz-panel-component-view-header-color);background-color:var(--ibiz-panel-component-view-header-bg-color)}.ibiz-view-header .ibiz-view-header-back-button{position:absolute;display:flex;align-items:center;width:var(--ibiz-panel-component-view-header-back-width);height:var(--ibiz-panel-component-view-header-back-height);padding:var(--ibiz-panel-component-view-header-back-padding);font-size:var(--ibiz-panel-component-view-header-back-font-size)}.ibiz-view-header .ibiz-view-header-precut-back .ibiz-control-toolbar-left{padding-left:var(--ibiz-panel-component-view-header-back-width)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VueBrowserPlatformProvider } from './vue-browser-platform-provider';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BrowserPlatformProvider } from '@ibiz-template/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* vue浏览器搭载平台适配器
|
|
4
|
+
*
|
|
5
|
+
* @author zk
|
|
6
|
+
* @date 2023-11-20 03:11:25
|
|
7
|
+
* @export
|
|
8
|
+
* @class BrowserPlatformProvider
|
|
9
|
+
* @extends {PlatformProviderBase}
|
|
10
|
+
*/
|
|
11
|
+
export declare class VueBrowserPlatformProvider extends BrowserPlatformProvider {
|
|
12
|
+
/**
|
|
13
|
+
* 返回事件
|
|
14
|
+
*
|
|
15
|
+
* @author zk
|
|
16
|
+
* @date 2023-12-12 01:12:56
|
|
17
|
+
* @memberof VueBrowserPlatformProvider
|
|
18
|
+
*/
|
|
19
|
+
back(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BrowserPlatformProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import '../util/index.mjs';
|
|
3
|
+
import { useViewStack } from '../util/store/view-stack/view-stack.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class VueBrowserPlatformProvider extends BrowserPlatformProvider {
|
|
7
|
+
/**
|
|
8
|
+
* 返回事件
|
|
9
|
+
*
|
|
10
|
+
* @author zk
|
|
11
|
+
* @date 2023-12-12 01:12:56
|
|
12
|
+
* @memberof VueBrowserPlatformProvider
|
|
13
|
+
*/
|
|
14
|
+
back() {
|
|
15
|
+
const { goBack } = useViewStack();
|
|
16
|
+
goBack();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { VueBrowserPlatformProvider };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./carousel.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const IBizCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
name: "IBizCarousel",
|
|
10
|
+
props: {
|
|
11
|
+
autoplay: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 3e3
|
|
14
|
+
},
|
|
15
|
+
duration: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 500
|
|
18
|
+
},
|
|
19
|
+
showIndicators: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
23
|
+
touchable: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
images: {
|
|
28
|
+
type: Object
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup() {
|
|
32
|
+
const ns = vue3Util.useNamespace("carousel");
|
|
33
|
+
return {
|
|
34
|
+
ns
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
render() {
|
|
38
|
+
if (this.images && this.images.length === 0) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return vue.createVNode("div", {
|
|
42
|
+
"class": [this.ns.b()]
|
|
43
|
+
}, [vue.createVNode(vue.resolveComponent("van-swipe"), {
|
|
44
|
+
"autoplay": this.autoplay,
|
|
45
|
+
"duration": this.duration,
|
|
46
|
+
"lazy-render": true,
|
|
47
|
+
"show-indicators": this.showIndicators,
|
|
48
|
+
"touchable": this.touchable
|
|
49
|
+
}, {
|
|
50
|
+
default: () => [this.images && this.images.map((image) => {
|
|
51
|
+
return vue.createVNode(vue.resolveComponent("van-swipe-item"), {
|
|
52
|
+
"key": image
|
|
53
|
+
}, {
|
|
54
|
+
default: () => [vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
55
|
+
"icon": image
|
|
56
|
+
}, null)]
|
|
57
|
+
});
|
|
58
|
+
})]
|
|
59
|
+
})]);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
exports.IBizCarousel = IBizCarousel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-carousel{height:100%}.ibiz-carousel .van-swipe{height:100%}.ibiz-carousel .van-swipe-item img{box-sizing:border-box;display:block;width:100%;height:100%;padding:1.875rem 3.75rem;pointer-events:none;background-color:var(--van-white)}
|
package/lib/common/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
6
|
var actionToolbar = require('./action-toolbar/action-toolbar.cjs');
|
|
7
|
+
var carousel = require('./carousel/carousel.cjs');
|
|
7
8
|
var col = require('./col/col.cjs');
|
|
8
9
|
var keepAlive = require('./keep-alive/keep-alive.cjs');
|
|
9
10
|
var noData = require('./no-data/no-data.cjs');
|
|
@@ -24,6 +25,7 @@ const IBizCommonComponents = {
|
|
|
24
25
|
v.component(noData.IBizNoData.name, noData.IBizNoData);
|
|
25
26
|
v.component(vue3Util.IBizControlShell.name, vue3Util.IBizControlShell);
|
|
26
27
|
v.component(rawitem.IBizRawItem.name, rawitem.IBizRawItem);
|
|
28
|
+
v.component(carousel.IBizCarousel.name, carousel.IBizCarousel);
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
|