@ibiz-template/vue3-components 0.7.14 → 0.7.16-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-dATrePJW.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-PQvDXaA9.js → wang-editor-XpJH4SXt.js} +1 -1
- package/dist/{xlsx-util-OfvrEAre.js → xlsx-util-MJWwC396.js} +1 -1
- package/es/common/carousel/carousel.d.ts +5 -5
- package/es/common/carousel/carousel.mjs +2 -2
- package/es/common/carousel-card/carousel-card.css +1 -1
- package/es/control/context-menu/context-menu.d.ts +0 -1
- package/es/control/context-menu/context-menu.mjs +26 -15
- package/es/control/context-menu/index.d.ts +0 -1
- package/es/control/drbar/drbar.controller.d.ts +24 -0
- package/es/control/drbar/drbar.controller.mjs +107 -13
- package/es/control/drbar/drbar.mjs +3 -2
- package/es/control/drtab/drtab.controller.d.ts +39 -0
- package/es/control/drtab/drtab.controller.mjs +112 -5
- package/es/control/drtab/drtab.mjs +3 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +0 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +4 -8
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +0 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -2
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +2 -2
- package/es/editor/text-box/input/input.css +1 -1
- package/es/locale/index.d.ts +72 -1
- package/es/locale/index.mjs +64 -1
- package/es/panel-component/panel-static-carousel/index.d.ts +1 -1
- package/es/panel-component/panel-static-carousel/panel-static-carousel.css +1 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.d.ts +1 -1
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +8 -8
- package/es/panel-component/short-cut/index.d.ts +2 -2
- package/es/panel-component/short-cut/short-cut.css +1 -1
- package/es/panel-component/short-cut/short-cut.d.ts +2 -2
- package/es/panel-component/short-cut/short-cut.mjs +26 -23
- package/es/view-engine/edit-view.engine.mjs +5 -1
- package/es/view-engine/opt-view.engine.mjs +5 -1
- package/lib/common/carousel/carousel.cjs +2 -2
- package/lib/common/carousel-card/carousel-card.css +1 -1
- package/lib/control/context-menu/context-menu.cjs +25 -14
- package/lib/control/drbar/drbar.cjs +3 -2
- package/lib/control/drbar/drbar.controller.cjs +106 -12
- package/lib/control/drtab/drtab.cjs +3 -2
- package/lib/control/drtab/drtab.controller.cjs +111 -4
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +4 -8
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -2
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +2 -2
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/locale/index.cjs +64 -1
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +8 -8
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.css +1 -0
- package/lib/panel-component/short-cut/short-cut.cjs +26 -23
- package/lib/panel-component/short-cut/short-cut.css +1 -1
- package/lib/view-engine/edit-view.engine.cjs +5 -1
- package/lib/view-engine/opt-view.engine.cjs +5 -1
- package/package.json +7 -7
- package/dist/index-8tvyarHw.js +0 -4
|
@@ -91,7 +91,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
91
91
|
const renderDraggable = (isVertical) => {
|
|
92
92
|
return vue.createVNode(draggable, {
|
|
93
93
|
"itemKey": "key",
|
|
94
|
-
"class": [ns.e("draggable"), ns.is("
|
|
94
|
+
"class": [ns.e("draggable"), ns.is("horizontal", !isVertical), ns.is("vertical", isVertical)],
|
|
95
95
|
"modelValue": data,
|
|
96
96
|
"group": props.controller.model.id,
|
|
97
97
|
"onChange": (evt) => onChange(evt)
|
|
@@ -102,7 +102,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
102
102
|
}) => {
|
|
103
103
|
if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
|
|
104
104
|
return vue.createVNode("div", {
|
|
105
|
-
"class": ns.e("item"),
|
|
105
|
+
"class": [ns.e("item"), ns.e("draggable-item")],
|
|
106
106
|
"title": element.caption,
|
|
107
107
|
"onClick": () => onClick(element)
|
|
108
108
|
}, [vue.createVNode("svg", {
|
|
@@ -140,9 +140,9 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
const
|
|
143
|
+
const renderAction = () => {
|
|
144
144
|
return vue.createVNode("div", {
|
|
145
|
-
"class": [ns.e("action"), ns.is("hidden", isShowToolbar.value)],
|
|
145
|
+
"class": [ns.e("item"), ns.e("action-item"), ns.is("hidden", isShowToolbar.value)],
|
|
146
146
|
"onClick": onShowChange
|
|
147
147
|
}, [vue.createVNode("ion-icon", {
|
|
148
148
|
"class": ["expand-icon", "icon"],
|
|
@@ -151,7 +151,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
151
|
"class": ns.em("item", "caption")
|
|
152
152
|
}, [ibiz.i18n.t("panelComponent.shortCut.expandToolbar")])]);
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const renderMore = () => {
|
|
155
155
|
return vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
156
156
|
"visible": isShowMore.value,
|
|
157
157
|
"onUpdate:visible": ($event) => isShowMore.value = $event,
|
|
@@ -162,7 +162,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
162
162
|
}, {
|
|
163
163
|
reference: () => {
|
|
164
164
|
return vue.createVNode("div", {
|
|
165
|
-
"class": ns.e("more")
|
|
165
|
+
"class": [ns.e("more"), ns.e("operate")]
|
|
166
166
|
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
167
167
|
"content": ibiz.i18n.t("app.more"),
|
|
168
168
|
"placement": "top"
|
|
@@ -170,42 +170,45 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
170
170
|
default: () => [vue.createVNode("div", null, [vue.createVNode("span", {
|
|
171
171
|
"class": ns.em("more", "caption")
|
|
172
172
|
}, [isShowToolbar.value ? "6/".concat(data.length) : data.length]), vue.createVNode("i", {
|
|
173
|
-
"class": ["fa",
|
|
173
|
+
"class": ["fa", "icon", "more-icon", isShowMore.value ? "fa-angle-double-down" : "fa-angle-double-up"],
|
|
174
174
|
"aria-hidden": "true"
|
|
175
175
|
}, null)])]
|
|
176
176
|
})]);
|
|
177
177
|
},
|
|
178
178
|
default: () => {
|
|
179
|
-
return [renderDraggable(true),
|
|
179
|
+
return [renderDraggable(true), renderAction()];
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
+
const renderRecover = () => {
|
|
184
|
+
return vue.createVNode("div", {
|
|
185
|
+
"class": [ns.e("recover"), ns.e("operate")],
|
|
186
|
+
"onClick": onShowChange
|
|
187
|
+
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
188
|
+
"effect": "dark",
|
|
189
|
+
"content": ibiz.i18n.t("app.retract"),
|
|
190
|
+
"placement": "top"
|
|
191
|
+
}, {
|
|
192
|
+
default: () => [vue.createVNode("ion-icon", {
|
|
193
|
+
"class": ["recover-icon", "icon"],
|
|
194
|
+
"name": "chevron-forward-outline"
|
|
195
|
+
}, null)]
|
|
196
|
+
})]);
|
|
197
|
+
};
|
|
183
198
|
return {
|
|
184
199
|
ns,
|
|
185
200
|
data,
|
|
186
201
|
isShowToolbar,
|
|
187
202
|
onChange,
|
|
188
|
-
onShowChange,
|
|
189
203
|
renderDraggable,
|
|
190
|
-
|
|
204
|
+
renderMore,
|
|
205
|
+
renderRecover
|
|
191
206
|
};
|
|
192
207
|
},
|
|
193
208
|
render() {
|
|
194
209
|
return vue.createVNode("div", {
|
|
195
210
|
"class": [this.ns.b(), ...this.controller.containerClass, this.ns.is("conceal", this.data.length === 0)]
|
|
196
|
-
}, [this.isShowToolbar && this.renderDraggable(false), (!this.isShowToolbar || this.data.length > 6) && this.
|
|
197
|
-
"class": this.ns.e("recover"),
|
|
198
|
-
"onClick": this.onShowChange
|
|
199
|
-
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
200
|
-
"effect": "dark",
|
|
201
|
-
"content": ibiz.i18n.t("app.retract"),
|
|
202
|
-
"placement": "top"
|
|
203
|
-
}, {
|
|
204
|
-
default: () => [vue.createVNode("ion-icon", {
|
|
205
|
-
"class": ["recover-icon", "icon"],
|
|
206
|
-
"name": "chevron-forward-outline"
|
|
207
|
-
}, null)]
|
|
208
|
-
})])]);
|
|
211
|
+
}, [this.isShowToolbar && this.renderDraggable(false), (!this.isShowToolbar || this.data.length > 6) && this.renderMore(), this.isShowToolbar && this.renderRecover()]);
|
|
209
212
|
}
|
|
210
213
|
});
|
|
211
214
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-short-cut{z-index:2;
|
|
1
|
+
.ibiz-short-cut{z-index:2;display:flex;position:fixed;box-shadow:0 0 var(--ibiz-spacing-base) rgba(0,0,0,.0784313725);background:var(--ibiz-color-bg-1);right:var(--ibiz-spacing-base-loose);bottom:var(--ibiz-spacing-base-loose);padding:var(--ibiz-spacing-extra-tight);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-short-cut.is-conceal{visibility:hidden}.ibiz-short-cut .icon{flex-shrink:0;font-size:var(--ibiz-width-icon-medium)}.ibiz-short-cut__operate{cursor:pointer}.ibiz-short-cut__operate .el-tooltip__trigger{padding:var(--ibiz-spacing-tight);line-height:20px}.ibiz-short-cut__operate .el-tooltip__trigger:hover{color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-extra-small);background-color:var(--ibiz-color-primary-light-default)}.ibiz-short-cut__more .more-icon{margin-left:var(--ibiz-spacing-tight)}.ibiz-short-cut__recover{margin-left:var(--ibiz-spacing-extra-tight)}.ibiz-short-cut__recover .recover-icon{transform:translate(0,3px)}.ibiz-short-cut__item{display:flex;cursor:pointer;position:relative;align-items:center;flex-flow:row nowrap;place-content:center flex-start}.ibiz-short-cut__item .drag-icon{display:none}.ibiz-short-cut__item .caption-icon,.ibiz-short-cut__item .drag-icon,.ibiz-short-cut__item .expand-icon{margin-right:var(--ibiz-spacing-tight)}.ibiz-short-cut__item .close-icon{visibility:hidden}.ibiz-short-cut__item .close-icon:hover{color:var(--ibiz-color-danger-hover)}.ibiz-short-cut__item--caption{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ibiz-short-cut__item:hover .drag-icon{display:block}.ibiz-short-cut__item:hover .caption-icon{display:none}.ibiz-short-cut__item:hover .close-icon{visibility:visible}.ibiz-short-cut__item.is-hidden{display:none}.ibiz-short-cut__draggable.is-horizontal{display:flex}.ibiz-short-cut__draggable.is-horizontal .ibiz-short-cut__item{max-width:150px;min-width:90px;padding:0 var(--ibiz-spacing-base-tight);border-right:1px solid var(--ibiz-color-border)}.ibiz-short-cut__draggable.is-horizontal .ibiz-short-cut__item .close-icon{right:0;position:absolute;padding-right:var(--ibiz-spacing-tight);background-color:var(--ibiz-color-white);box-shadow:-10px 0 20px 8px var(--ibiz-color-white)}.ibiz-short-cut__draggable.is-vertical{max-height:400px;overflow-y:auto}.ibiz-short-cut__draggable.is-vertical .ibiz-short-cut__item{width:225px;height:44px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose)}.ibiz-short-cut__draggable.is-vertical .ibiz-short-cut__item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-short-cut__draggable+.ibiz-short-cut__more{margin-left:var(--ibiz-spacing-extra-tight)}.ibiz-short-cut__popover .icon{flex-shrink:0;font-size:var(--ibiz-width-icon-medium)}.ibiz-short-cut__popover.el-popover.el-popper{padding:var(--ibiz-spacing-base-tight) 0}.ibiz-short-cut__action-item{width:225px;height:44px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose)}
|
|
@@ -99,7 +99,11 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
99
99
|
};
|
|
100
100
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
101
101
|
formDataStateChange(event);
|
|
102
|
-
|
|
102
|
+
const data = event.data[0];
|
|
103
|
+
this.view.state.srfactiveviewdata = data;
|
|
104
|
+
if (data.srfreadonly) {
|
|
105
|
+
this.view.context.srfreadonly = true;
|
|
106
|
+
}
|
|
103
107
|
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
104
108
|
});
|
|
105
109
|
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
|
@@ -66,7 +66,11 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
69
|
-
|
|
69
|
+
const data = event.data[0];
|
|
70
|
+
this.view.state.srfactiveviewdata = data;
|
|
71
|
+
if (data.srfreadonly) {
|
|
72
|
+
this.view.context.srfreadonly = true;
|
|
73
|
+
}
|
|
70
74
|
formDataStateChange(event);
|
|
71
75
|
});
|
|
72
76
|
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
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.16-alpha.0",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
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.4",
|
|
33
|
-
"@ibiz-template/core": "0.7.
|
|
33
|
+
"@ibiz-template/core": "0.7.16-alpha.0",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.7.
|
|
36
|
-
"@ibiz-template/runtime": "0.7.
|
|
35
|
+
"@ibiz-template/model-helper": "0.7.16-alpha.0",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.16-alpha.0",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.16-alpha.0",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.17",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.27",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@ibiz-template/runtime": "^0.7.0",
|
|
102
102
|
"@ibiz-template/theme": "^0.7.0",
|
|
103
103
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
104
|
-
"@ibiz/model-core": "^0.1.
|
|
104
|
+
"@ibiz/model-core": "^0.1.27",
|
|
105
105
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
106
106
|
"@monaco-editor/loader": "^1.3.3",
|
|
107
107
|
"@wangeditor/editor": "^5.1.23",
|