xframelib 0.7.3 → 0.7.6
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/README.md +23 -18
- package/dist/api/Token.d.ts +15 -15
- package/dist/api/User.d.ts +49 -49
- package/dist/api/index.d.ts +2 -2
- package/dist/assets/output-ad5f5cbf.css +307 -0
- package/dist/controls/collapsepanel/VCollapsiblePanel.vue.d.ts +27 -27
- package/dist/controls/collapsepanel/VCollapsiblePanelGroup.vue.d.ts +33 -33
- package/dist/controls/collapsepanel/color.util.d.ts +1 -1
- package/dist/controls/collapsepanel/composables/store.d.ts +7 -7
- package/dist/controls/collapsepanel/constant.d.ts +1 -1
- package/dist/controls/collapsepanel/index.d.ts +3 -3
- package/dist/controls/layoutcontainer/LayoutManager.d.ts +133 -112
- package/dist/controls/layoutcontainer/index.d.ts +3 -3
- package/dist/controls/layoutcontainer/layout.vue.d.ts +61 -60
- package/dist/controls/splitpanes/index.d.ts +3 -3
- package/dist/controls/vuewindow/SinglePointerEvent.d.ts +23 -23
- package/dist/controls/vuewindow/dom.d.ts +16 -16
- package/dist/controls/vuewindow/draggable_helper.d.ts +20 -20
- package/dist/controls/vuewindow/index.d.ts +6 -6
- package/dist/controls/vuewindow/resizable_helper.d.ts +16 -16
- package/dist/controls/vuewindow/style.d.ts +110 -110
- package/dist/controls/vuewindow/window/Button.vue.d.ts +29 -29
- package/dist/controls/vuewindow/window/index.vue.d.ts +211 -211
- package/dist/controls/vuewindow/window/utils.d.ts +17 -17
- package/dist/controls/vuewindow/z_element.d.ts +11 -11
- package/dist/core/Global.d.ts +2 -2
- package/dist/core/IModel.d.ts +46 -46
- package/dist/core/Init.d.ts +20 -20
- package/dist/core/MsgHelper.d.ts +13 -13
- package/dist/core/SysEvents.d.ts +24 -24
- package/dist/core/index.d.ts +4 -4
- package/dist/hprose/HproseClient.d.ts +20 -20
- package/dist/hprose/ProxyClient.d.ts +39 -39
- package/dist/hprose/index.d.ts +11 -11
- package/dist/index.cjs +10 -5
- package/dist/index.css +96 -81
- package/dist/index.d.ts +11 -11
- package/dist/index.js +10 -5
- package/dist/mitt/index.d.ts +25 -25
- package/dist/model/Config.d.ts +151 -151
- package/dist/model/Constants.d.ts +19 -19
- package/dist/model/IRole.d.ts +89 -89
- package/dist/model/IUserModel.d.ts +67 -67
- package/dist/model/Layout.d.ts +83 -83
- package/dist/model/index.d.ts +5 -5
- package/dist/permission/RoleSysRightHelper.d.ts +27 -27
- package/dist/permission/filter.d.ts +45 -45
- package/dist/permission/index.d.ts +4 -4
- package/dist/permission/register.d.ts +24 -24
- package/dist/permission/right.d.ts +15 -15
- package/dist/utils/AxiosHelper.d.ts +58 -58
- package/dist/utils/BigFileDownload.d.ts +117 -117
- package/dist/utils/CodeHelper.d.ts +14 -14
- package/dist/utils/Color.d.ts +74 -74
- package/dist/utils/FileDownload.d.ts +36 -36
- package/dist/utils/FileUpload.d.ts +90 -90
- package/dist/utils/H5Tool.d.ts +158 -150
- package/dist/utils/IsTool.d.ts +101 -101
- package/dist/utils/JQuery.d.ts +41 -41
- package/dist/utils/LockHelper.d.ts +17 -17
- package/dist/utils/SignalRClient.d.ts +8 -8
- package/dist/utils/Storage.d.ts +66 -66
- package/dist/utils/StringUtils.d.ts +15 -15
- package/dist/utils/Time.d.ts +11 -11
- package/dist/utils/TokenHelper.d.ts +18 -18
- package/dist/utils/URLTool.d.ts +18 -18
- package/dist/utils/ValidateTool.d.ts +149 -149
- package/dist/utils/WaterMark.d.ts +10 -10
- package/dist/utils/XXTEA.d.ts +15 -15
- package/dist/utils/index.d.ts +21 -21
- package/dist/utils/uuid.d.ts +3 -3
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
基于 VUE3+Hprose+Typescript 的前端框架
|
|
4
4
|
|
|
5
|
+
- v0.7.6 为LayoutManager增加卸载全部组件unloadAllWidgets、批量卸载组件unloadWidgets、获得已经加载组件ID列表getWidgetLoadedIDList;解决H5Tool的windowResizeHandler和offWindowResizeHandler内部调用错误方法的问题。
|
|
6
|
+
- ~~v0.7.5 解决上一版LayoutContainer存在问题:CSS样式对应上,调整层级顺序;加入组件引用,changeWidgetVisible能控制Widget组件可见性;修改getWidgetComponent方法,实现对Widget组件的defineExpose方法调用;增加isWidgetVisible判断组件是否可见。~~
|
|
7
|
+
- ~~ v0.7.4 完善Axios异常捕捉(对接后端Furion包装异常);更新完善LayoutContainer;H5Tool增加removeHandler和offWindowResizeHandler方法;升级依赖基础库。~~
|
|
5
8
|
- v0.7.3 升级依赖库;loadWidget失败输出日志和事件SysEvents.WidgetLoadedErrorEvent;优化系统权限相关模型;增加GetSignalRClient、ValidateTool、WaterMark等工具。
|
|
6
9
|
- v0.7.2 解决v0.7.0的deepMerge方法存在复制对象的BUG。
|
|
7
10
|
- v0.7.0 修改requestPost无法使用FormData参数;修改deepMerge方法;修改isObjectX方法;更新rollup-plugin-scss应用版本。
|
|
8
|
-
- v0.6.9 默认引入loglevel,为Global增加Logger()方法,使用例如:Global.Logger().warn('123')
|
|
11
|
+
- ~~v0.6.9 默认引入loglevel,为Global增加Logger()方法,使用例如:Global.Logger().warn('123')。~~
|
|
9
12
|
- v0.6.8 解决Axios 0.x升级为1.x后,序列化时带来的AxiosError: options must be an object错误
|
|
10
13
|
- v0.6.7 解决ExitLogin时报415错误;SysEvents.AxiosRequestErrorEvent、SysEvents.WebAPIErrorEvent、SysEvents.HproseServiceErrorEvent改为默认为后台记录,不主动弹框提示,需要提示使用Global.EventBus自主监听事件;升级依赖库版本;
|
|
11
14
|
- v0.6.6 解决requestGet里params参数为数组解析错误问题;更改Layout布局层次为100;解决提示XXTEA未导出的问题;copyText默认改用Clipboard方式,支持根据元素ID复制内容;
|
|
@@ -85,16 +88,21 @@ import { createApp } from 'vue';
|
|
|
85
88
|
import App from './App.vue';
|
|
86
89
|
//模板添加的
|
|
87
90
|
import { setupRouter } from './router/index';
|
|
88
|
-
import {
|
|
91
|
+
import {setupGlobDirectives} from './directives/index';
|
|
92
|
+
import { init, Global } from 'xframelib';
|
|
89
93
|
import 'xframelib/dist/index.css';
|
|
94
|
+
import { getSystemPKG, getSystemID } from '@/utils/sysTool';
|
|
95
|
+
import { createPinia } from 'pinia';
|
|
90
96
|
import { message } from 'ant-design-vue';
|
|
91
|
-
import '
|
|
92
|
-
import 'ant-design-vue/es/modal/style/index.css';
|
|
93
|
-
import { setupI18n } from '@/locales/setupI18n';
|
|
97
|
+
import {Icon} from '@iconify/vue';
|
|
94
98
|
//dev阶段打开,build注销
|
|
95
99
|
import 'ant-design-vue/dist/antd.css';
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
if(window.global===undefined)
|
|
103
|
+
{
|
|
104
|
+
window.global=globalThis;
|
|
105
|
+
}
|
|
98
106
|
message.config({
|
|
99
107
|
top: `100px`,
|
|
100
108
|
duration: 1,
|
|
@@ -105,24 +113,21 @@ message.config({
|
|
|
105
113
|
const sysID = getSystemID();
|
|
106
114
|
//分组名,工程名
|
|
107
115
|
const sysGroup = getSystemPKG().name;
|
|
108
|
-
//初始化
|
|
109
116
|
init(message, sysID, sysGroup);
|
|
117
|
+
|
|
110
118
|
// 创建pinia 实例
|
|
111
119
|
const pinia = createPinia();
|
|
112
120
|
const app = createApp(App);
|
|
113
121
|
// 挂载到 Vue 根实例上
|
|
114
122
|
app.use(pinia);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
//定义v-drag命令
|
|
124
|
+
setupGlobDirectives(app);
|
|
125
|
+
setupRouter(app);
|
|
126
|
+
//注册全局组件
|
|
127
|
+
app.component('Icon',Icon);
|
|
128
|
+
|
|
129
|
+
app.mount('#app');
|
|
121
130
|
|
|
122
|
-
setupI18n(app).then(() => {
|
|
123
|
-
setupRouter(app);
|
|
124
|
-
app.mount('#app');
|
|
125
|
-
});
|
|
126
131
|
```
|
|
127
132
|
|
|
128
133
|
### Working with hprose
|
package/dist/api/Token.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IDoubleToken } from '../model/IUserModel';
|
|
2
|
-
/**
|
|
3
|
-
* 刷新Token
|
|
4
|
-
*/
|
|
5
|
-
export declare function doRefreshToken(): void;
|
|
6
|
-
/**
|
|
7
|
-
* 检查和刷新Token
|
|
8
|
-
* @param userToken
|
|
9
|
-
*/
|
|
10
|
-
export declare function checkDoRefreshToken(): void;
|
|
11
|
-
/**
|
|
12
|
-
* 存储Token对象
|
|
13
|
-
* @param userToken
|
|
14
|
-
*/
|
|
15
|
-
export declare function setLocalToken(userToken: IDoubleToken): void;
|
|
1
|
+
import { IDoubleToken } from '../model/IUserModel';
|
|
2
|
+
/**
|
|
3
|
+
* 刷新Token
|
|
4
|
+
*/
|
|
5
|
+
export declare function doRefreshToken(): void;
|
|
6
|
+
/**
|
|
7
|
+
* 检查和刷新Token
|
|
8
|
+
* @param userToken
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkDoRefreshToken(): void;
|
|
11
|
+
/**
|
|
12
|
+
* 存储Token对象
|
|
13
|
+
* @param userToken
|
|
14
|
+
*/
|
|
15
|
+
export declare function setLocalToken(userToken: IDoubleToken): void;
|
package/dist/api/User.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
interface IChangPwdInfo {
|
|
2
|
-
/**
|
|
3
|
-
* 用户名
|
|
4
|
-
*/
|
|
5
|
-
oldpwd: string;
|
|
6
|
-
newpwd: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IUser {
|
|
9
|
-
username: string;
|
|
10
|
-
pwd: string;
|
|
11
|
-
/**
|
|
12
|
-
* 所属系统
|
|
13
|
-
*/
|
|
14
|
-
system?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 用户登录
|
|
18
|
-
* @param data 用户信息
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
export declare function login(data: IUser): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* 检查某一系统的用户
|
|
24
|
-
* @param data 用户对象
|
|
25
|
-
* @returns
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* 修改自己的密码
|
|
29
|
-
* @param data 用户数据
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export declare function changeMyPWD(data: IChangPwdInfo): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* 获取加密后的密码
|
|
35
|
-
* @param data
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export declare function getEncryptPWD(data: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* 退出登录
|
|
41
|
-
*/
|
|
42
|
-
export declare function logout(): void;
|
|
43
|
-
/**
|
|
44
|
-
* 验证 已有的token
|
|
45
|
-
* @param token 需要验证的token
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare function checkToken(token: string): Promise<any>;
|
|
49
|
-
export {};
|
|
1
|
+
interface IChangPwdInfo {
|
|
2
|
+
/**
|
|
3
|
+
* 用户名
|
|
4
|
+
*/
|
|
5
|
+
oldpwd: string;
|
|
6
|
+
newpwd: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IUser {
|
|
9
|
+
username: string;
|
|
10
|
+
pwd: string;
|
|
11
|
+
/**
|
|
12
|
+
* 所属系统
|
|
13
|
+
*/
|
|
14
|
+
system?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 用户登录
|
|
18
|
+
* @param data 用户信息
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare function login(data: IUser): Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* 检查某一系统的用户
|
|
24
|
+
* @param data 用户对象
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* 修改自己的密码
|
|
29
|
+
* @param data 用户数据
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function changeMyPWD(data: IChangPwdInfo): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* 获取加密后的密码
|
|
35
|
+
* @param data
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare function getEncryptPWD(data: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* 退出登录
|
|
41
|
+
*/
|
|
42
|
+
export declare function logout(): void;
|
|
43
|
+
/**
|
|
44
|
+
* 验证 已有的token
|
|
45
|
+
* @param token 需要验证的token
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
export declare function checkToken(token: string): Promise<any>;
|
|
49
|
+
export {};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Token';
|
|
2
|
-
export * from './User';
|
|
1
|
+
export * from './Token';
|
|
2
|
+
export * from './User';
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
.splitpanes {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.splitpanes--vertical {
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
}
|
|
9
|
+
.splitpanes--horizontal {
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
.splitpanes--dragging * {
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
.splitpanes__pane {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
.splitpanes--vertical .splitpanes__pane {
|
|
21
|
+
transition: width 0.2s ease-out;
|
|
22
|
+
}
|
|
23
|
+
.splitpanes--horizontal .splitpanes__pane {
|
|
24
|
+
transition: height 0.2s ease-out;
|
|
25
|
+
}
|
|
26
|
+
.splitpanes--dragging .splitpanes__pane {
|
|
27
|
+
transition: none;
|
|
28
|
+
}
|
|
29
|
+
.splitpanes__splitter {
|
|
30
|
+
touch-action: none;
|
|
31
|
+
}
|
|
32
|
+
.splitpanes--vertical > .splitpanes__splitter {
|
|
33
|
+
min-width: 1px;
|
|
34
|
+
cursor: col-resize;
|
|
35
|
+
}
|
|
36
|
+
.splitpanes--horizontal > .splitpanes__splitter {
|
|
37
|
+
min-height: 1px;
|
|
38
|
+
cursor: row-resize;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.splitpanes.default-theme .splitpanes__pane {
|
|
42
|
+
background-color: #f2f2f2;
|
|
43
|
+
}
|
|
44
|
+
.splitpanes.default-theme .splitpanes__splitter {
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
position: relative;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
.splitpanes.default-theme .splitpanes__splitter:before, .splitpanes.default-theme .splitpanes__splitter:after {
|
|
51
|
+
content: "";
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 50%;
|
|
54
|
+
left: 50%;
|
|
55
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
56
|
+
transition: background-color 0.3s;
|
|
57
|
+
}
|
|
58
|
+
.splitpanes.default-theme .splitpanes__splitter:hover:before, .splitpanes.default-theme .splitpanes__splitter:hover:after {
|
|
59
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
60
|
+
}
|
|
61
|
+
.splitpanes.default-theme .splitpanes__splitter:first-child {
|
|
62
|
+
cursor: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.default-theme.splitpanes .splitpanes .splitpanes__splitter {
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
.default-theme.splitpanes--vertical > .splitpanes__splitter,
|
|
69
|
+
.default-theme .splitpanes--vertical > .splitpanes__splitter {
|
|
70
|
+
width: 7px;
|
|
71
|
+
border-left: 1px solid #eee;
|
|
72
|
+
margin-left: -1px;
|
|
73
|
+
}
|
|
74
|
+
.default-theme.splitpanes--vertical > .splitpanes__splitter:before, .default-theme.splitpanes--vertical > .splitpanes__splitter:after,
|
|
75
|
+
.default-theme .splitpanes--vertical > .splitpanes__splitter:before,
|
|
76
|
+
.default-theme .splitpanes--vertical > .splitpanes__splitter:after {
|
|
77
|
+
transform: translateY(-50%);
|
|
78
|
+
width: 1px;
|
|
79
|
+
height: 30px;
|
|
80
|
+
}
|
|
81
|
+
.default-theme.splitpanes--vertical > .splitpanes__splitter:before,
|
|
82
|
+
.default-theme .splitpanes--vertical > .splitpanes__splitter:before {
|
|
83
|
+
margin-left: -2px;
|
|
84
|
+
}
|
|
85
|
+
.default-theme.splitpanes--vertical > .splitpanes__splitter:after,
|
|
86
|
+
.default-theme .splitpanes--vertical > .splitpanes__splitter:after {
|
|
87
|
+
margin-left: 1px;
|
|
88
|
+
}
|
|
89
|
+
.default-theme.splitpanes--horizontal > .splitpanes__splitter,
|
|
90
|
+
.default-theme .splitpanes--horizontal > .splitpanes__splitter {
|
|
91
|
+
height: 7px;
|
|
92
|
+
border-top: 1px solid #eee;
|
|
93
|
+
margin-top: -1px;
|
|
94
|
+
}
|
|
95
|
+
.default-theme.splitpanes--horizontal > .splitpanes__splitter:before, .default-theme.splitpanes--horizontal > .splitpanes__splitter:after,
|
|
96
|
+
.default-theme .splitpanes--horizontal > .splitpanes__splitter:before,
|
|
97
|
+
.default-theme .splitpanes--horizontal > .splitpanes__splitter:after {
|
|
98
|
+
transform: translateX(-50%);
|
|
99
|
+
width: 30px;
|
|
100
|
+
height: 1px;
|
|
101
|
+
}
|
|
102
|
+
.default-theme.splitpanes--horizontal > .splitpanes__splitter:before,
|
|
103
|
+
.default-theme .splitpanes--horizontal > .splitpanes__splitter:before {
|
|
104
|
+
margin-top: -2px;
|
|
105
|
+
}
|
|
106
|
+
.default-theme.splitpanes--horizontal > .splitpanes__splitter:after,
|
|
107
|
+
.default-theme .splitpanes--horizontal > .splitpanes__splitter:after {
|
|
108
|
+
margin-top: 1px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vcpg {
|
|
112
|
+
border: 1px solid var(--border-color);
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
width: 100%;
|
|
115
|
+
}
|
|
116
|
+
.vcpg ::v-deep(.vcp) * {
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
}
|
|
119
|
+
.vcpg ::v-deep(.vcp) .vcp__header {
|
|
120
|
+
background-color: var(--bg-color-header);
|
|
121
|
+
height: 30px;
|
|
122
|
+
border-bottom: 2px solid #c6bebd;
|
|
123
|
+
transition: background-color 0.3s ease;
|
|
124
|
+
}
|
|
125
|
+
.vcpg ::v-deep(.vcp) .vcp__header .vcp__header:hover {
|
|
126
|
+
background-color: var(--bg-color-header-hover);
|
|
127
|
+
}
|
|
128
|
+
.vcpg ::v-deep(.vcp) .vcp__header .vcp__header:active {
|
|
129
|
+
background-color: var(--bg-color-header-active);
|
|
130
|
+
}
|
|
131
|
+
.vcpg ::v-deep(.vcp) .vcp:not(:first-of-type) .vcp__header {
|
|
132
|
+
border-top: 2px solid var(--border-color);
|
|
133
|
+
}
|
|
134
|
+
.vcpg ::v-deep(.vcp) .vcp__header-title {
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
}
|
|
137
|
+
.vcpg ::v-deep(.vcp) .vcp__body {
|
|
138
|
+
border-top: 1px solid var(--border-color);
|
|
139
|
+
background-color: var(--bg-color-body);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.vcp__header {
|
|
143
|
+
display: flex;
|
|
144
|
+
padding: 12px;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
.vcp--expandable .vcp__header {
|
|
148
|
+
pointer-events: auto;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
.vcp__header-title {
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
flex: 1;
|
|
155
|
+
}
|
|
156
|
+
.vcp__header-icon {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
transition: transform 0.3s cubic-bezier(0.5, 0.25, 0, 1);
|
|
160
|
+
}
|
|
161
|
+
.vcp--expanded .vcp__header-icon {
|
|
162
|
+
transform-origin: center;
|
|
163
|
+
transform: rotate(180deg);
|
|
164
|
+
}
|
|
165
|
+
.vcp__header-icon > span {
|
|
166
|
+
display: flex;
|
|
167
|
+
height: 24px;
|
|
168
|
+
width: 24px;
|
|
169
|
+
}
|
|
170
|
+
.vcp__header-icon ::v-deep(svg) {
|
|
171
|
+
height: 100%;
|
|
172
|
+
width: 100%;
|
|
173
|
+
}
|
|
174
|
+
.vcp__body {
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
transition: all 0.3s cubic-bezier(0.5, 0.25, 0, 1);
|
|
177
|
+
}
|
|
178
|
+
.vcp__body-content {
|
|
179
|
+
padding: 12px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.slide-enter-from,
|
|
183
|
+
.slide-leave-to {
|
|
184
|
+
opacity: 0.25;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.window {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-flow: column;
|
|
190
|
+
position: absolute;
|
|
191
|
+
border-radius: 4pt 4pt 0 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.titlebar {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-flow: row nowrap;
|
|
197
|
+
border-radius: 4pt 4pt 0 0;
|
|
198
|
+
font-family: sans-serif;
|
|
199
|
+
padding: 0.5em;
|
|
200
|
+
flex: 0 0 auto;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.title {
|
|
204
|
+
flex-grow: 1;
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.content {
|
|
211
|
+
flex-grow: 1;
|
|
212
|
+
padding: 0.5em;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.draggable-handle {
|
|
216
|
+
cursor: move;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.fade-enter,
|
|
220
|
+
.fade-leave-to {
|
|
221
|
+
opacity: 0;
|
|
222
|
+
transform: scale(0.9);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.fade-enter-active,
|
|
226
|
+
.fade-leave-active {
|
|
227
|
+
transition: 0.2s;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.layoutContainer {
|
|
231
|
+
position: relative;
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 100%;
|
|
234
|
+
padding: 0;
|
|
235
|
+
margin: 0;
|
|
236
|
+
--layout-top-zindex: 100;
|
|
237
|
+
--layout-bottom-zindex: 100;
|
|
238
|
+
--layout-centermain-zindex:70;
|
|
239
|
+
--layout-centerback-zindex: 80;
|
|
240
|
+
--layout-centerfront-zindex: 90;
|
|
241
|
+
--layout-left-zindex: 100;
|
|
242
|
+
--layout-right-zindex: 100;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.topContainer {
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 0px;
|
|
248
|
+
left: 0px;
|
|
249
|
+
width: 100%;
|
|
250
|
+
z-index: var(--layout-top-zindex);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.bottomContainer {
|
|
254
|
+
position: absolute;
|
|
255
|
+
bottom: 0px;
|
|
256
|
+
left: 0px;
|
|
257
|
+
width: 100%;
|
|
258
|
+
z-index: var(--layout-bottom-zindex);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.leftContainer {
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: 0px;
|
|
264
|
+
left: 0px;
|
|
265
|
+
z-index: var(--layout-left-zindex);
|
|
266
|
+
height: 100%;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.rightContainer {
|
|
270
|
+
position: absolute;
|
|
271
|
+
top: 0px;
|
|
272
|
+
right: 0px;
|
|
273
|
+
z-index: var(--layout-right-zindex);
|
|
274
|
+
height: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.centerdiv {
|
|
278
|
+
position: absolute;
|
|
279
|
+
top: 0;
|
|
280
|
+
left: 0;
|
|
281
|
+
width: 0;
|
|
282
|
+
background-color: transparent;
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.mainContainer {
|
|
287
|
+
bottom: 0;
|
|
288
|
+
width: 100%;
|
|
289
|
+
z-index: var(--layout-centermain-zindex);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.backContainer {
|
|
293
|
+
z-index: var(--layout-centerback-zindex);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.centerFrontContainer {
|
|
297
|
+
z-index: var(--layout-centerfront-zindex);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.btn {
|
|
301
|
+
background-color: transparent;
|
|
302
|
+
border: none;
|
|
303
|
+
font-size: medium;
|
|
304
|
+
margin: 0;
|
|
305
|
+
padding: 0 0.25em;
|
|
306
|
+
border-radius: 4pt;
|
|
307
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
expanded: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
body: import("vue").ComputedRef<{
|
|
8
|
-
hasContent: boolean | undefined;
|
|
9
|
-
dataKey: string;
|
|
10
|
-
}>;
|
|
11
|
-
panelRef: import("vue").Ref<HTMLElement | undefined>;
|
|
12
|
-
bodyRef: import("vue").Ref<HTMLElement | undefined>;
|
|
13
|
-
bodyContentRef: import("vue").Ref<HTMLElement | undefined>;
|
|
14
|
-
isExpanded: import("vue").ComputedRef<boolean | undefined>;
|
|
15
|
-
collapse: (element: HTMLElement) => void;
|
|
16
|
-
expand: (element: HTMLElement) => void;
|
|
17
|
-
toggle: () => void;
|
|
18
|
-
toggleIcon: string;
|
|
19
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
-
expanded: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
}>>, {
|
|
25
|
-
expanded: boolean;
|
|
26
|
-
}>;
|
|
27
|
-
export default _default;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
expanded: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
body: import("vue").ComputedRef<{
|
|
8
|
+
hasContent: boolean | undefined;
|
|
9
|
+
dataKey: string;
|
|
10
|
+
}>;
|
|
11
|
+
panelRef: import("vue").Ref<HTMLElement | undefined>;
|
|
12
|
+
bodyRef: import("vue").Ref<HTMLElement | undefined>;
|
|
13
|
+
bodyContentRef: import("vue").Ref<HTMLElement | undefined>;
|
|
14
|
+
isExpanded: import("vue").ComputedRef<boolean | undefined>;
|
|
15
|
+
collapse: (element: HTMLElement) => void;
|
|
16
|
+
expand: (element: HTMLElement) => void;
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
toggleIcon: string;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
expanded: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>>, {
|
|
25
|
+
expanded: boolean;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export default _default;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
accordion: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
baseColor: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
idGroup: import("vue").Ref<string>;
|
|
12
|
-
cssColorVars: {
|
|
13
|
-
'--base-color': string;
|
|
14
|
-
'--border-color': string;
|
|
15
|
-
'--bg-color-header': string;
|
|
16
|
-
'--bg-color-header-hover': string;
|
|
17
|
-
'--bg-color-header-active': string;
|
|
18
|
-
'--bg-color-body': string;
|
|
19
|
-
};
|
|
20
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
accordion: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
baseColor: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
}>>, {
|
|
30
|
-
accordion: boolean;
|
|
31
|
-
baseColor: string;
|
|
32
|
-
}>;
|
|
33
|
-
export default _default;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
accordion: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
baseColor: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
idGroup: import("vue").Ref<string>;
|
|
12
|
+
cssColorVars: {
|
|
13
|
+
'--base-color': string;
|
|
14
|
+
'--border-color': string;
|
|
15
|
+
'--bg-color-header': string;
|
|
16
|
+
'--bg-color-header-hover': string;
|
|
17
|
+
'--bg-color-header-active': string;
|
|
18
|
+
'--bg-color-body': string;
|
|
19
|
+
};
|
|
20
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
accordion: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
baseColor: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
accordion: boolean;
|
|
31
|
+
baseColor: string;
|
|
32
|
+
}, {}>;
|
|
33
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const lightenDarkenColor: (hexColor: string, amount: number) => string;
|
|
1
|
+
export declare const lightenDarkenColor: (hexColor: string, amount: number) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const useCollapsiblePanelStore: () => {
|
|
2
|
-
useGroupAccordion: (idGroup: string) => import("vue").ComputedRef<boolean>;
|
|
3
|
-
setGroupAccordionStatus: (idGroup: string, status: boolean) => void;
|
|
4
|
-
panelExpanded: (idGroup: string, idPanel: string) => import("vue").ComputedRef<boolean>;
|
|
5
|
-
setPanelExpandedStatus: (idGroup: string, idPanel: string, status: boolean) => void;
|
|
6
|
-
togglePanelExpandedStatus: (idGroup: string, idPanel: string) => void;
|
|
7
|
-
};
|
|
1
|
+
export declare const useCollapsiblePanelStore: () => {
|
|
2
|
+
useGroupAccordion: (idGroup: string) => import("vue").ComputedRef<boolean>;
|
|
3
|
+
setGroupAccordionStatus: (idGroup: string, status: boolean) => void;
|
|
4
|
+
panelExpanded: (idGroup: string, idPanel: string) => import("vue").ComputedRef<boolean>;
|
|
5
|
+
setPanelExpandedStatus: (idGroup: string, idPanel: string, status: boolean) => void;
|
|
6
|
+
togglePanelExpandedStatus: (idGroup: string, idPanel: string) => void;
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const toggleIcon = "\n <svg\n width=\"24px\"\n height=\"24px\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M6.34292 7.75734L4.92871 9.17155L11.9998 16.2426L19.0708 9.17158L17.6566 7.75737L11.9998 13.4142L6.34292 7.75734Z\"/>\n </svg>\n";
|
|
1
|
+
export declare const toggleIcon = "\n <svg\n width=\"24px\"\n height=\"24px\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M6.34292 7.75734L4.92871 9.17155L11.9998 16.2426L19.0708 9.17158L17.6566 7.75737L11.9998 13.4142L6.34292 7.75734Z\"/>\n </svg>\n";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import VCollapsiblePanelGroup from './VCollapsiblePanelGroup.vue';
|
|
2
|
-
import VCollapsiblePanel from './VCollapsiblePanel.vue';
|
|
3
|
-
export { VCollapsiblePanel, VCollapsiblePanelGroup };
|
|
1
|
+
import VCollapsiblePanelGroup from './VCollapsiblePanelGroup.vue';
|
|
2
|
+
import VCollapsiblePanel from './VCollapsiblePanel.vue';
|
|
3
|
+
export { VCollapsiblePanel, VCollapsiblePanelGroup };
|