@ibiz-template/vue3-components 0.7.13 → 0.7.15
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-WP6TUdg-.js → index-8Lu2Ax-_.js} +1 -1
- package/dist/{index-kgWpXafW.js → index-Hg_8xCYx.js} +1 -1
- package/dist/index-vUHyK4p8.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-8i01yifN.js → xlsx-util-5nNxB32e.js} +1 -1
- package/es/common/carousel/carousel.d.ts +9 -1
- package/es/common/carousel/carousel.mjs +9 -1
- package/es/common/carousel-card/carousel-card.css +1 -0
- package/es/common/carousel-card/carousel-card.d.ts +41 -0
- package/es/common/carousel-card/carousel-card.mjs +218 -0
- package/es/common/index.mjs +2 -0
- package/es/control/context-menu/context-menu.mjs +25 -6
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +76 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +74 -0
- package/es/control/search-bar/filter-tree/filter-tree.mjs +19 -20
- package/es/control/toolbar/toolbar.mjs +27 -2
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.mjs +2 -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 +11 -12
- 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/en/index.d.ts +1 -0
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/panel-component/auth-captcha/auth-captcha.controller.d.ts +13 -0
- package/es/panel-component/auth-captcha/auth-captcha.controller.mjs +15 -11
- package/es/panel-component/panel-button/panel-button.controller.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.controller.mjs +6 -9
- package/es/panel-component/panel-static-carousel/index.d.ts +1 -0
- 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 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +13 -2
- 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 +42 -36
- package/es/view-engine/login-view.engine.d.ts +31 -3
- package/es/view-engine/login-view.engine.mjs +32 -12
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +19 -5
- package/lib/common/carousel/carousel.cjs +9 -1
- package/lib/common/carousel-card/carousel-card.cjs +220 -0
- package/lib/common/carousel-card/carousel-card.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/context-menu/context-menu.cjs +25 -6
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +19 -20
- package/lib/control/toolbar/toolbar.cjs +26 -1
- package/lib/control/tree/tree.cjs +2 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +11 -12
- 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/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/auth-captcha/auth-captcha.controller.cjs +15 -11
- package/lib/panel-component/panel-button/panel-button.controller.cjs +6 -9
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +13 -2
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.css +1 -0
- package/lib/panel-component/short-cut/short-cut.cjs +42 -36
- package/lib/panel-component/short-cut/short-cut.css +1 -1
- package/lib/view-engine/login-view.engine.cjs +32 -12
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +17 -3
- package/package.json +7 -7
- package/dist/index-5IjaPupj.js +0 -4
|
@@ -56,7 +56,7 @@ const FilterModes = [{
|
|
|
56
56
|
valueOP: runtime.ValueOP.NOT_EXISTS,
|
|
57
57
|
label: "\u4E0D\u5B58\u5728(NOTEXISTS)"
|
|
58
58
|
}];
|
|
59
|
-
const ExcludeOPs = [runtime.ValueOP.IS_NULL, runtime.ValueOP.IS_NOT_NULL];
|
|
59
|
+
const ExcludeOPs = [runtime.ValueOP.IS_NULL, runtime.ValueOP.IS_NOT_NULL, runtime.ValueOP.EXISTS, runtime.ValueOP.NOT_EXISTS];
|
|
60
60
|
const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
61
61
|
name: "IBizFilterTreeControl",
|
|
62
62
|
props: {
|
|
@@ -242,7 +242,6 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
242
242
|
}, [editor]);
|
|
243
243
|
};
|
|
244
244
|
const renderFilterItem = (node, itemsC) => {
|
|
245
|
-
let _slot;
|
|
246
245
|
if (node.hidden) {
|
|
247
246
|
return;
|
|
248
247
|
}
|
|
@@ -273,14 +272,14 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
273
272
|
"onChange": (field) => {
|
|
274
273
|
onFieldSelect(node, field, fieldInfos);
|
|
275
274
|
}
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
}, {
|
|
276
|
+
default: () => [fieldInfos == null ? void 0 : fieldInfos.map((field) => {
|
|
277
|
+
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
278
|
+
"key": field.name,
|
|
279
|
+
"value": field.name,
|
|
280
|
+
"label": field.label
|
|
281
|
+
}, null);
|
|
282
|
+
})]
|
|
284
283
|
}), availableModes && availableModes.length > 0 && vue.createVNode(vue.resolveComponent("iBizFilterModeSelect"), {
|
|
285
284
|
"disabled": node.disabled,
|
|
286
285
|
"class": ns.e("mode-select"),
|
|
@@ -358,10 +357,10 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
358
357
|
})])]);
|
|
359
358
|
};
|
|
360
359
|
renderFilterItems = (node) => {
|
|
361
|
-
let
|
|
360
|
+
let _slot2;
|
|
362
361
|
const itemsC = findFilterController(node);
|
|
363
362
|
if (node.simple) {
|
|
364
|
-
let
|
|
363
|
+
let _slot;
|
|
365
364
|
const child = node.children[0];
|
|
366
365
|
if (!child) {
|
|
367
366
|
return;
|
|
@@ -373,14 +372,14 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
373
372
|
"onChange": (field) => {
|
|
374
373
|
onFieldSelect(node, field);
|
|
375
374
|
}
|
|
376
|
-
}, _isSlot(
|
|
375
|
+
}, _isSlot(_slot = allFields.map((field) => {
|
|
377
376
|
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
378
377
|
"key": field.name,
|
|
379
378
|
"value": field.name,
|
|
380
379
|
"label": field.label
|
|
381
380
|
}, null);
|
|
382
|
-
})) ?
|
|
383
|
-
default: () => [
|
|
381
|
+
})) ? _slot : {
|
|
382
|
+
default: () => [_slot]
|
|
384
383
|
}), vue.createVNode(vue.resolveComponent("iBizFilterModeSelect"), {
|
|
385
384
|
"disabled": true,
|
|
386
385
|
"class": ns.e("mode-select"),
|
|
@@ -397,8 +396,8 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
397
396
|
"onClick": () => {
|
|
398
397
|
addItem(node);
|
|
399
398
|
}
|
|
400
|
-
}, _isSlot(
|
|
401
|
-
default: () => [
|
|
399
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("control.searchBar.filterTree.addItem")) ? _slot2 : {
|
|
400
|
+
default: () => [_slot2]
|
|
402
401
|
})]), vue.createVNode("div", {
|
|
403
402
|
"class": ns.be("group", "list")
|
|
404
403
|
}, [node.children.length > 0 && node.children.map((child, index) => {
|
|
@@ -435,7 +434,7 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
435
434
|
};
|
|
436
435
|
},
|
|
437
436
|
render() {
|
|
438
|
-
let
|
|
437
|
+
let _slot3;
|
|
439
438
|
return vue.createVNode("div", {
|
|
440
439
|
"class": [this.ns.b()]
|
|
441
440
|
}, [this.UiFilterNodes.length > 0 && this.UiFilterNodes.map((node) => {
|
|
@@ -455,8 +454,8 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
455
454
|
"onClick": () => {
|
|
456
455
|
this.onCancel();
|
|
457
456
|
}
|
|
458
|
-
}, _isSlot(
|
|
459
|
-
default: () => [
|
|
457
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("app.reset")) ? _slot3 : {
|
|
458
|
+
default: () => [_slot3]
|
|
460
459
|
})])]);
|
|
461
460
|
}
|
|
462
461
|
});
|
|
@@ -82,6 +82,11 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
82
|
};
|
|
83
83
|
const renderSubmenu = (item) => {
|
|
84
84
|
const detoolbarItems = item.detoolbarItems || [];
|
|
85
|
+
const curVisible = c.state.buttonsState[item.id].visible;
|
|
86
|
+
const curDisabled = c.state.buttonsState[item.id].disabled;
|
|
87
|
+
if (!curVisible) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
85
90
|
const ploading = detoolbarItems.findIndex((item2) => c.state.buttonsState[item2.id].loading) !== -1;
|
|
86
91
|
const pvisible = detoolbarItems.findIndex((item2) => {
|
|
87
92
|
return c.state.buttonsState[item2.id].visible === true;
|
|
@@ -89,7 +94,7 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
94
|
if (!pvisible) {
|
|
90
95
|
return null;
|
|
91
96
|
}
|
|
92
|
-
const pdisabled = detoolbarItems.findIndex((item2) => {
|
|
97
|
+
const pdisabled = curDisabled || detoolbarItems.findIndex((item2) => {
|
|
93
98
|
return c.state.buttonsState[item2.id].disabled === false;
|
|
94
99
|
}) === -1;
|
|
95
100
|
const groupButtonStyle = item.buttonStyle || "";
|
|
@@ -104,9 +109,19 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
109
|
var _a2, _b;
|
|
105
110
|
const actionId = item2.uiactionId;
|
|
106
111
|
const visible = (_a2 = c.state.buttonsState[item2.id]) == null ? void 0 : _a2.visible;
|
|
112
|
+
const provider = c.itemProviders[item2.id];
|
|
107
113
|
if (!visible) {
|
|
108
114
|
return null;
|
|
109
115
|
}
|
|
116
|
+
if (provider) {
|
|
117
|
+
const component = vue.resolveComponent(provider.component);
|
|
118
|
+
return vue.h(component, {
|
|
119
|
+
key: item2.id,
|
|
120
|
+
class: [ns.e("item")],
|
|
121
|
+
item,
|
|
122
|
+
controller: c
|
|
123
|
+
});
|
|
124
|
+
}
|
|
110
125
|
if (item2.itemType === "SEPERATOR") {
|
|
111
126
|
return;
|
|
112
127
|
}
|
|
@@ -172,9 +187,19 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
172
187
|
var _a2, _b;
|
|
173
188
|
const itemId = item.id;
|
|
174
189
|
const visible = (_a2 = c.state.buttonsState[itemId]) == null ? void 0 : _a2.visible;
|
|
190
|
+
const provider = c.itemProviders[itemId];
|
|
175
191
|
if (!visible) {
|
|
176
192
|
return null;
|
|
177
193
|
}
|
|
194
|
+
if (provider) {
|
|
195
|
+
const component = vue.resolveComponent(provider.component);
|
|
196
|
+
return vue.h(component, {
|
|
197
|
+
key: itemId,
|
|
198
|
+
class: [ns.e("item")],
|
|
199
|
+
item,
|
|
200
|
+
controller: c
|
|
201
|
+
});
|
|
202
|
+
}
|
|
178
203
|
if (item.itemType === "SEPERATOR") {
|
|
179
204
|
return vue.createVNode("div", {
|
|
180
205
|
"key": itemId,
|
|
@@ -443,7 +443,7 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
443
443
|
}
|
|
444
444
|
return vue.createVNode(vue.resolveComponent("el-input"), {
|
|
445
445
|
"model-value": this.c.state.query,
|
|
446
|
-
"class":
|
|
446
|
+
"class": this.ns.b("quick-search"),
|
|
447
447
|
"placeholder": this.c.state.placeHolder,
|
|
448
448
|
"onInput": this.onInput
|
|
449
449
|
}, {
|
|
@@ -461,6 +461,7 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
461
461
|
if (this.c.state.isLoaded && this.treeRefreshKey) {
|
|
462
462
|
return vue.createVNode(vue.resolveComponent("el-tree"), {
|
|
463
463
|
"ref": "treeRef",
|
|
464
|
+
"class": this.ns.b("tree"),
|
|
464
465
|
"key": this.treeRefreshKey,
|
|
465
466
|
"node-key": "_id",
|
|
466
467
|
"highlight-current": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-treeview{--ibiz-control-treeview-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);--ibiz-control-treeview-icon-height:var(--ibiz-spacing-base);--ibiz-control-treeview-icon-width:var(--ibiz-spacing-base);height:100%;padding:var(--ibiz-
|
|
1
|
+
.ibiz-control-treeview{--ibiz-control-treeview-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);--ibiz-control-treeview-icon-height:var(--ibiz-spacing-base);--ibiz-control-treeview-icon-width:var(--ibiz-spacing-base);height:100%;padding:var(--ibiz-spacing-tight) 0}.ibiz-control-treeview-node{display:flex;flex-grow:1;flex-shrink:1;align-items:center;min-width:1px;height:100%}.ibiz-control-treeview-node__icon{display:inline-block;width:var(--ibiz-control-treeview-icon-width);height:var(--ibiz-control-treeview-icon-height);margin-right:var(--ibiz-spacing-tight)}.ibiz-control-treeview-node__icon>svg{width:100%;height:100%}.ibiz-control-treeview-node__label{flex-grow:1;flex-shrink:1;min-width:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-control-treeview-node:hover .ibiz-control-treeview-context-menu-trigger{display:inline-block}.ibiz-control-treeview-node--disabled{color:var(--ibiz-color-disabled-text);cursor:not-allowed}.ibiz-control-treeview-context-menu-trigger{display:none;flex-shrink:0;width:30px;text-align:center;cursor:pointer}.ibiz-control-treeview-context-menu-trigger__caption-icon{vertical-align:middle}.ibiz-control-treeview-context-menu.mx-context-menu{padding:var(--ibiz-spacing-extra-tight) 0}.ibiz-control-treeview-context-menu.mx-context-menu .mx-context-menu-item{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-control-treeview-quick-search{padding:0 var(--ibiz-spacing-base) var(--ibiz-spacing-tight)}.ibiz-control-treeview-tree{padding:0 var(--ibiz-spacing-base)}
|
|
@@ -150,7 +150,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
150
150
|
});
|
|
151
151
|
vue.onMounted(() => {
|
|
152
152
|
if (editorRef.value) {
|
|
153
|
-
pickViewWidth.value = "".concat(editorRef.value.offsetWidth, "px");
|
|
153
|
+
pickViewWidth.value = "".concat(editorRef.value.$parent.$el.offsetWidth, "px");
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
const onClear = () => {
|
|
@@ -249,6 +249,16 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
249
249
|
keySet.value = items.value.map((item) => item.srfkey);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
if (!singleSelect.value) {
|
|
253
|
+
if (c.model.valueType === "OBJECTS") {
|
|
254
|
+
emit("change", multipleObjs.value);
|
|
255
|
+
} else {
|
|
256
|
+
if (c.valueItem) {
|
|
257
|
+
emit("change", multipleTempValue.value, c.valueItem);
|
|
258
|
+
}
|
|
259
|
+
emit("change", multipleTempText.value);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
252
262
|
};
|
|
253
263
|
const openLinkView = async (e) => {
|
|
254
264
|
e.stopPropagation();
|
|
@@ -337,16 +347,6 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
337
347
|
});
|
|
338
348
|
const onVisibleChange = (e) => {
|
|
339
349
|
showView.value = e;
|
|
340
|
-
if (!e && !singleSelect.value) {
|
|
341
|
-
if (c.model.valueType === "OBJECTS") {
|
|
342
|
-
emit("change", multipleObjs.value);
|
|
343
|
-
} else {
|
|
344
|
-
if (c.valueItem) {
|
|
345
|
-
emit("change", multipleTempValue.value, c.valueItem);
|
|
346
|
-
}
|
|
347
|
-
emit("change", multipleTempText.value);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
350
|
if (e === false) {
|
|
351
351
|
onBlur({});
|
|
352
352
|
}
|
|
@@ -407,7 +407,6 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
407
407
|
const editContent = vue.createVNode(vue.resolveComponent("el-dropdown"), {
|
|
408
408
|
"ref": "editorRef",
|
|
409
409
|
"trigger": "click",
|
|
410
|
-
"teleported": false,
|
|
411
410
|
"class": this.ns.b("select"),
|
|
412
411
|
"popper-class": this.ns.b("popper"),
|
|
413
412
|
"onVisibleChange": this.onVisibleChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-picker-select-view{width:100%}.ibiz-picker-select-view .el-dropdown{width:100%}.ibiz-picker-select-view .el-select{width:100%}.ibiz-picker-select-view__arrow{display:flex;transition:transform .3s;transform:rotateZ(0);transform-origin:center center}.ibiz-picker-select-view__arrow>svg{width:14px;height:14px}.ibiz-picker-select-view__arrow.overturn{transform:rotateZ(-180deg)}.ibiz-picker-select-view--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-picker-select-view-popper.el-popper.el-dropdown__popper{
|
|
1
|
+
.ibiz-picker-select-view{width:100%}.ibiz-picker-select-view .el-dropdown{width:100%}.ibiz-picker-select-view .el-select{width:100%}.ibiz-picker-select-view__arrow{display:flex;transition:transform .3s;transform:rotateZ(0);transform-origin:center center}.ibiz-picker-select-view__arrow>svg{width:14px;height:14px}.ibiz-picker-select-view__arrow.overturn{transform:rotateZ(-180deg)}.ibiz-picker-select-view--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-picker-select-view-popper.el-popper.el-dropdown__popper{min-height:100px;max-height:500px;overflow:auto}.ibiz-picker-select-view-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list{background:var(--ibiz-color-primary-text)}.ibiz-picker-select-view-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .el-dropdown-menu{background:var(--ibiz-color-primary-text)}.ibiz-picker-select-view-form-default-content{display:none}.ibiz-form-item .ibiz-picker-select-view.is-show-default:hover .ibiz-picker-select-view-form-default-content{display:none}.ibiz-form-item .ibiz-picker-select-view.is-show-default:hover .ibiz-picker-select-view-select{display:block}.ibiz-form-item .ibiz-picker-select-view.is-show-default .ibiz-picker-select-view-form-default-content{display:flex;align-items:center;width:100%;height:var(--ibiz-editor-default-line-height);padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-picker-select-view.is-show-default .ibiz-picker-select-view-form-default-content .ibiz-picker-select-view-content-item{height:22px;padding:0 9px;margin:2px 6px 2px 0;font-size:var(--ibiz-font-size-small);line-height:22px;color:var(--ibiz-editor-default-text-color);background-color:var(--ibiz-color-fill-0);border:1px solid transparent;border-radius:var(--ibiz-border-radius-small)}.ibiz-form-item .ibiz-picker-select-view.is-show-default .ibiz-picker-select-view-select{display:none}.ibiz-form-item .ibiz-picker-select-view.is-show-default.is-editable .ibiz-picker-select-view-form-default-content{display:none}.ibiz-form-item .ibiz-picker-select-view.is-show-default.is-editable .ibiz-picker-select-view-select{display:block}.ibiz-picker-select-view-select-popover{display:none}
|
|
@@ -321,7 +321,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
321
321
|
const height = entries[0].contentRect.height;
|
|
322
322
|
if (height !== lastToolbarHeight) {
|
|
323
323
|
const tempCssVars = {
|
|
324
|
-
height: "".concat(htmlContentHeight - entries[0].contentRect.height, "px")
|
|
324
|
+
height: "".concat(htmlContentHeight - entries[0].contentRect.height + (height !== 0 ? 300 : 0), "px")
|
|
325
325
|
};
|
|
326
326
|
cssVars.value = ns.cssVarBlock(tempCssVars);
|
|
327
327
|
lastToolbarHeight = height;
|
|
@@ -458,7 +458,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
458
458
|
"mode": "default",
|
|
459
459
|
"class": ns.b("toolbar")
|
|
460
460
|
}, null), vue.createVNode(editorForVue.Editor, {
|
|
461
|
-
"class": ns.b("editor"),
|
|
461
|
+
"class": [ns.b("editor"), ns.is("readonly", readonlyState.value)],
|
|
462
462
|
"modelValue": valueHtml.value,
|
|
463
463
|
"onUpdate:modelValue": ($event) => valueHtml.value = $event,
|
|
464
464
|
"default-config": editorConfig,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-1);--w-e-textarea-slight-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-selected-border-color:var(--ibiz-color-border);--w-e-textarea-handler-bg-color:var(--ibiz-color-primary);--w-e-toolbar-color:var(--ibiz-color-text-0);--w-e-toolbar-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-active-color:var(--ibiz-color-text-0);--w-e-toolbar-active-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-disabled-color:var(--ibiz-color-disabled-text);--w-e-toolbar-border-color:var(--ibiz-color-border);--w-e-modal-button-bg-color:var(--ibiz-color-bg-1);--w-e-modal-button-border-color:var(--ibiz-color-border)}.ibiz-html .ibiz-html-content{display:flex;flex-direction:column;height:100%;background-color:var(--ibiz-color-bg-0)}.ibiz-html .ibiz-html-editor{height:var(--ibiz-html-height)!important;padding:0;overflow-y:scroll;border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor table{width:100%!important;border-collapse:collapse}.ibiz-html .ibiz-html-editor table th{height:49px;min-height:49px;padding:8px;background-color:#f3f3f3;border:1px solid #d3d3d3}.ibiz-html .ibiz-html-editor table td{height:49px;min-height:49px;padding:8px;empty-cells:show;border:1px solid #d3d3d3}.ibiz-html .w-e-menu-tooltip-v5::before{color:var(--ibiz-color-text-0);background-color:var(--w-e-toolbar-bg-color)}.ibiz-html .w-e-full-screen-container{z-index:9999}.ibiz-html .w-e-scroll>div{background-color:var(--ibiz-color-bg-0)}.ibiz-html .table-container table{width:100%}.ibiz-html-editor-readonly .ibiz-html-toolbar{display:none}.ibiz-html-editor-readonly .ibiz-html-editor{border:none}.ibiz-html-footer{display:flex;align-items:center;justify-content:end;margin-top:12px;margin-right:8px}.ibiz-html-footer>*+*{margin-left:16px}.ibiz-html-footer__cancel{height:36px;line-height:36px;color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-html-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-html-footer__save{width:96px;height:36px;line-height:36px;color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:5px}.ibiz-html-footer__save:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-primary)}.ibiz-html-custom-toolbar{display:flex;align-items:center;justify-content:end;width:100%;height:32px;padding-right:16px;font-size:16px}.ibiz-html-custom-toolbar>*+*{margin-left:20px}.ibiz-html-custom-toolbar i{cursor:pointer}.ibiz-html-custom-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-html-message{width:500px;max-width:unset}.ibiz-html-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-html-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-html-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-html-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-html-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-html-dialog-full-screen{height:80%}.ibiz-html-dialog-full-screen .ibiz-html{padding:0 32px;--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-html-dialog-full-screen .ibiz-html-custom-toolbar{height:56px}.ibiz-html-dialog-full-screen .ibiz-html-content{height:calc(100% - 124px)}.ibiz-html-dialog-full-screen .ibiz-html-content .ibiz-html-editor{height:100%!important}.ibiz-html-footer-dialog{height:68px;margin-top:0}
|
|
1
|
+
.ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-1);--w-e-textarea-slight-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-selected-border-color:var(--ibiz-color-border);--w-e-textarea-handler-bg-color:var(--ibiz-color-primary);--w-e-toolbar-color:var(--ibiz-color-text-0);--w-e-toolbar-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-active-color:var(--ibiz-color-text-0);--w-e-toolbar-active-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-disabled-color:var(--ibiz-color-disabled-text);--w-e-toolbar-border-color:var(--ibiz-color-border);--w-e-modal-button-bg-color:var(--ibiz-color-bg-1);--w-e-modal-button-border-color:var(--ibiz-color-border)}.ibiz-html .ibiz-html-content{display:flex;flex-direction:column;height:100%;background-color:var(--ibiz-color-bg-0)}.ibiz-html .ibiz-html-editor{height:var(--ibiz-html-height)!important;padding:0;overflow-y:scroll;border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor.is-readonly{height:auto!important}.ibiz-html .ibiz-html-editor table{width:100%!important;border-collapse:collapse}.ibiz-html .ibiz-html-editor table th{height:49px;min-height:49px;padding:8px;background-color:#f3f3f3;border:1px solid #d3d3d3}.ibiz-html .ibiz-html-editor table td{height:49px;min-height:49px;padding:8px;empty-cells:show;border:1px solid #d3d3d3}.ibiz-html .w-e-menu-tooltip-v5::before{color:var(--ibiz-color-text-0);background-color:var(--w-e-toolbar-bg-color)}.ibiz-html .w-e-full-screen-container{z-index:9999}.ibiz-html .w-e-scroll>div{background-color:var(--ibiz-color-bg-0)}.ibiz-html .table-container table{width:100%}.ibiz-html-editor-readonly .ibiz-html-toolbar{display:none}.ibiz-html-editor-readonly .ibiz-html-editor{border:none}.ibiz-html-footer{display:flex;align-items:center;justify-content:end;margin-top:12px;margin-right:8px}.ibiz-html-footer>*+*{margin-left:16px}.ibiz-html-footer__cancel{height:36px;line-height:36px;color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-html-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-html-footer__save{width:96px;height:36px;line-height:36px;color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:5px}.ibiz-html-footer__save:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-primary)}.ibiz-html-custom-toolbar{display:flex;align-items:center;justify-content:end;width:100%;height:32px;padding-right:16px;font-size:16px}.ibiz-html-custom-toolbar>*+*{margin-left:20px}.ibiz-html-custom-toolbar i{cursor:pointer}.ibiz-html-custom-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-html-message{width:500px;max-width:unset}.ibiz-html-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-html-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-html-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-html-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-html-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-html-dialog-full-screen{height:80%}.ibiz-html-dialog-full-screen .ibiz-html{padding:0 32px;--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-html-dialog-full-screen .ibiz-html-custom-toolbar{height:56px}.ibiz-html-dialog-full-screen .ibiz-html-content{height:calc(100% - 124px)}.ibiz-html-dialog-full-screen .ibiz-html-content .ibiz-html-editor{height:100%!important}.ibiz-html-footer-dialog{height:68px;margin-top:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{position:absolute;right:10px;bottom:10px;width:36px;height:36px;padding:8px;font-size:18px;color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:15px}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding);overflow:hidden}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
|
1
|
+
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{position:absolute;right:10px;bottom:10px;width:36px;height:36px;padding:8px;font-size:18px;color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:15px}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;overflow:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding);overflow:hidden}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -741,7 +741,8 @@ var index = {
|
|
|
741
741
|
interfaceBehaviorMode: "Find the adapter that does not correspond to the interface behavior mode {uiactionMode}.",
|
|
742
742
|
frontEndPluginNode: "Cannot find interface logic front-end plugin node, plugin {pluginKey} corresponding adapter",
|
|
743
743
|
viewPlugin: "Cannot find the adapter corresponding to the view plugin {pluginKey}.",
|
|
744
|
-
correspondViewTypeStyle: "Cannot find an adapter for view type: [{viewType}] corresponding to view style: [{viewStyle}]."
|
|
744
|
+
correspondViewTypeStyle: "Cannot find an adapter for view type: [{viewType}] corresponding to view style: [{viewStyle}].",
|
|
745
|
+
toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}."
|
|
745
746
|
}
|
|
746
747
|
},
|
|
747
748
|
service: {
|
|
@@ -739,7 +739,8 @@ var index = {
|
|
|
739
739
|
interfaceBehaviorMode: "\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F{uiactionMode}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
740
740
|
frontEndPluginNode: "\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
741
741
|
viewPlugin: "\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
742
|
-
correspondViewTypeStyle: "\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[{viewType}]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[{viewStyle}]\u5BF9\u5E94\u7684\u9002\u914D\u5668"
|
|
742
|
+
correspondViewTypeStyle: "\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[{viewType}]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[{viewStyle}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
743
|
+
toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
|
|
743
744
|
}
|
|
744
745
|
},
|
|
745
746
|
service: {
|
|
@@ -26,6 +26,13 @@ class AuthCaptchaController extends runtime.PanelItemController {
|
|
|
26
26
|
"Captcha-Code": ""
|
|
27
27
|
}));
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* 创建人机识别状态对象
|
|
31
|
+
*
|
|
32
|
+
* @protected
|
|
33
|
+
* @return {*} {AuthCaptchaState}
|
|
34
|
+
* @memberof AuthCaptchaController
|
|
35
|
+
*/
|
|
29
36
|
createState() {
|
|
30
37
|
var _a;
|
|
31
38
|
return new authCaptcha_state.AuthCaptchaState((_a = this.parent) == null ? void 0 : _a.state);
|
|
@@ -51,18 +58,15 @@ class AuthCaptchaController extends runtime.PanelItemController {
|
|
|
51
58
|
async onInit() {
|
|
52
59
|
super.onInit();
|
|
53
60
|
await this.loadCaptcha();
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (!context.ok) {
|
|
62
|
-
this.loadCaptcha();
|
|
63
|
-
this.state.code = "";
|
|
61
|
+
this.panel.view.evt.on(
|
|
62
|
+
"onAfterLogin",
|
|
63
|
+
(evt) => {
|
|
64
|
+
if (!evt.ok && (!evt.panelDataParent || evt.panelDataParent === this.dataParent.model.id)) {
|
|
65
|
+
this.loadCaptcha();
|
|
66
|
+
this.state.code = "";
|
|
67
|
+
}
|
|
64
68
|
}
|
|
65
|
-
|
|
69
|
+
);
|
|
66
70
|
}
|
|
67
71
|
/**
|
|
68
72
|
* 值校验
|
|
@@ -89,7 +89,7 @@ class PanelButtonController extends runtime.PanelItemController {
|
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* 行为点击
|
|
92
|
-
*
|
|
92
|
+
* - 在行为参数中传递panelDataParent(面板项数据父容器标识)
|
|
93
93
|
* @param {MouseEvent} event
|
|
94
94
|
* @return {*} {Promise<void>}
|
|
95
95
|
* @memberof PanelButtonController
|
|
@@ -101,19 +101,16 @@ class PanelButtonController extends runtime.PanelItemController {
|
|
|
101
101
|
}
|
|
102
102
|
event.stopPropagation();
|
|
103
103
|
event.preventDefault();
|
|
104
|
-
const view = this.panel.view;
|
|
105
|
-
if (actionType === "UIACTION" && uiactionId === "login" && view.model.viewType === "APPLOGINVIEW" && !await view.validate(
|
|
106
|
-
this.dataParent.model.id
|
|
107
|
-
)) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
104
|
await runtime.UIActionUtil.execAndResolved(
|
|
111
105
|
uiactionId,
|
|
112
106
|
{
|
|
113
107
|
context: this.panel.context,
|
|
114
|
-
params:
|
|
108
|
+
params: {
|
|
109
|
+
panelDataParent: this.dataParent.model.id,
|
|
110
|
+
...this.panel.params
|
|
111
|
+
},
|
|
115
112
|
data: [this.data],
|
|
116
|
-
view,
|
|
113
|
+
view: this.panel.view,
|
|
117
114
|
event,
|
|
118
115
|
noWaitRoute: true
|
|
119
116
|
},
|
|
@@ -25,6 +25,7 @@ const PanelStaticCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
25
|
const carouselData = vue.ref([]);
|
|
26
26
|
const isAuto = vue.ref(true);
|
|
27
27
|
const timeSpan = vue.ref(3e3);
|
|
28
|
+
const showMode = vue.ref("DEFAULT");
|
|
28
29
|
const getSwipeConfig = (swipeData) => {
|
|
29
30
|
const autoPlay = swipeData.find((item) => Object.is(item.key, "autoplay"));
|
|
30
31
|
if (autoPlay) {
|
|
@@ -34,12 +35,17 @@ const PanelStaticCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
35
|
if (span) {
|
|
35
36
|
timeSpan.value = Number(span.value) || 0;
|
|
36
37
|
}
|
|
38
|
+
const showModeItem = swipeData.find((item) => Object.is(item.key, "showMode"));
|
|
39
|
+
if (showModeItem && showModeItem.value) {
|
|
40
|
+
showMode.value = showModeItem.value;
|
|
41
|
+
}
|
|
37
42
|
};
|
|
38
43
|
if ((_a = model.rawItem) == null ? void 0 : _a.rawItemParams) {
|
|
39
44
|
let swipeData = [];
|
|
40
45
|
const imgData = model.rawItem.rawItemParams;
|
|
41
46
|
const autoplayIndex = imgData.findIndex((item) => Object.is(item.key, "autoplay"));
|
|
42
47
|
const timespanIndex = imgData.findIndex((item) => Object.is(item.key, "timespan"));
|
|
48
|
+
const showModeIndex = imgData.findIndex((item) => Object.is(item.key, "showMode"));
|
|
43
49
|
let number = 0;
|
|
44
50
|
if (autoplayIndex >= 0) {
|
|
45
51
|
number += 1;
|
|
@@ -47,6 +53,9 @@ const PanelStaticCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
53
|
if (timespanIndex >= 0) {
|
|
48
54
|
number += 1;
|
|
49
55
|
}
|
|
56
|
+
if (showModeIndex >= 0) {
|
|
57
|
+
number += 1;
|
|
58
|
+
}
|
|
50
59
|
if (number > 0) {
|
|
51
60
|
swipeData = imgData.slice(0, -number);
|
|
52
61
|
getSwipeConfig(imgData.slice(-number));
|
|
@@ -73,7 +82,8 @@ const PanelStaticCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
82
|
ns,
|
|
74
83
|
carouselData,
|
|
75
84
|
isAuto,
|
|
76
|
-
timeSpan
|
|
85
|
+
timeSpan,
|
|
86
|
+
showMode
|
|
77
87
|
};
|
|
78
88
|
},
|
|
79
89
|
render() {
|
|
@@ -82,7 +92,8 @@ const PanelStaticCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
92
|
}, [vue.createVNode(vue.resolveComponent("iBizCarouselComponent"), {
|
|
83
93
|
"carouselData": this.carouselData,
|
|
84
94
|
"isAuto": this.isAuto,
|
|
85
|
-
"timeSpan": this.timeSpan
|
|
95
|
+
"timeSpan": this.timeSpan,
|
|
96
|
+
"showMode": this.showMode
|
|
86
97
|
}, null)]);
|
|
87
98
|
}
|
|
88
99
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-static-carousel{width:100%;height:100%}
|
|
@@ -28,9 +28,10 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
28
|
const ns = vue3Util.useNamespace("short-cut");
|
|
29
29
|
const vue$1 = vue.getCurrentInstance().proxy;
|
|
30
30
|
const router = vueRouter.useRouter();
|
|
31
|
-
const
|
|
31
|
+
const shortCutUtil = ibiz.util.shortCut;
|
|
32
|
+
const isShowToolbar = vue.ref(true);
|
|
32
33
|
const isShowMore = vue.ref(false);
|
|
33
|
-
const data = vue.reactive(
|
|
34
|
+
const data = vue.reactive(shortCutUtil.data);
|
|
34
35
|
const dragCache = {
|
|
35
36
|
newIndex: 0,
|
|
36
37
|
oldIndex: 0
|
|
@@ -43,6 +44,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
44
|
vue$1.$forceUpdate();
|
|
44
45
|
};
|
|
45
46
|
vue.onMounted(() => {
|
|
47
|
+
isShowToolbar.value = shortCutUtil.mode !== "vertical";
|
|
46
48
|
ibiz.util.shortCut.onChange(onShortCutChange);
|
|
47
49
|
});
|
|
48
50
|
vue.onUnmounted(() => {
|
|
@@ -52,6 +54,9 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
54
|
isShowToolbar.value = !isShowToolbar.value;
|
|
53
55
|
if (isShowToolbar.value) {
|
|
54
56
|
isShowMore.value = false;
|
|
57
|
+
shortCutUtil.setShortCutMode("horizontal");
|
|
58
|
+
} else {
|
|
59
|
+
shortCutUtil.setShortCutMode("vertical");
|
|
55
60
|
}
|
|
56
61
|
};
|
|
57
62
|
const onClick = (item) => {
|
|
@@ -86,7 +91,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
91
|
const renderDraggable = (isVertical) => {
|
|
87
92
|
return vue.createVNode(draggable, {
|
|
88
93
|
"itemKey": "key",
|
|
89
|
-
"class": [ns.e("draggable"), ns.is("
|
|
94
|
+
"class": [ns.e("draggable"), ns.is("horizontal", !isVertical), ns.is("vertical", isVertical)],
|
|
90
95
|
"modelValue": data,
|
|
91
96
|
"group": props.controller.model.id,
|
|
92
97
|
"onChange": (evt) => onChange(evt)
|
|
@@ -97,7 +102,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
102
|
}) => {
|
|
98
103
|
if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
|
|
99
104
|
return vue.createVNode("div", {
|
|
100
|
-
"class": ns.e("item"),
|
|
105
|
+
"class": [ns.e("item"), ns.e("draggable-item")],
|
|
101
106
|
"title": element.caption,
|
|
102
107
|
"onClick": () => onClick(element)
|
|
103
108
|
}, [vue.createVNode("svg", {
|
|
@@ -132,23 +137,21 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
132
137
|
"onClick": (event) => onDelete(event, element.key)
|
|
133
138
|
}, null)]);
|
|
134
139
|
}
|
|
135
|
-
},
|
|
136
|
-
footer: () => {
|
|
137
|
-
if (isVertical && !isShowToolbar.value) {
|
|
138
|
-
return vue.createVNode("div", {
|
|
139
|
-
"class": [ns.e("item"), ns.e("action")],
|
|
140
|
-
"onClick": onShowChange
|
|
141
|
-
}, [vue.createVNode("ion-icon", {
|
|
142
|
-
"class": ["expand-icon", "icon"],
|
|
143
|
-
"name": "chevron-back-outline"
|
|
144
|
-
}, null), vue.createVNode("div", {
|
|
145
|
-
"class": ns.em("item", "caption")
|
|
146
|
-
}, [ibiz.i18n.t("panelComponent.shortCut.expandToolbar")])]);
|
|
147
|
-
}
|
|
148
140
|
}
|
|
149
141
|
});
|
|
150
142
|
};
|
|
151
|
-
const
|
|
143
|
+
const renderAction = () => {
|
|
144
|
+
return vue.createVNode("div", {
|
|
145
|
+
"class": [ns.e("item"), ns.e("action-item"), ns.is("hidden", isShowToolbar.value)],
|
|
146
|
+
"onClick": onShowChange
|
|
147
|
+
}, [vue.createVNode("ion-icon", {
|
|
148
|
+
"class": ["expand-icon", "icon"],
|
|
149
|
+
"name": "chevron-back-outline"
|
|
150
|
+
}, null), vue.createVNode("div", {
|
|
151
|
+
"class": ns.em("item", "caption")
|
|
152
|
+
}, [ibiz.i18n.t("panelComponent.shortCut.expandToolbar")])]);
|
|
153
|
+
};
|
|
154
|
+
const renderMore = () => {
|
|
152
155
|
return vue.createVNode(vue.resolveComponent("el-popover"), {
|
|
153
156
|
"visible": isShowMore.value,
|
|
154
157
|
"onUpdate:visible": ($event) => isShowMore.value = $event,
|
|
@@ -159,7 +162,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
159
162
|
}, {
|
|
160
163
|
reference: () => {
|
|
161
164
|
return vue.createVNode("div", {
|
|
162
|
-
"class": ns.e("more")
|
|
165
|
+
"class": [ns.e("more"), ns.e("operate")]
|
|
163
166
|
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
164
167
|
"content": ibiz.i18n.t("app.more"),
|
|
165
168
|
"placement": "top"
|
|
@@ -167,42 +170,45 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
|
|
|
167
170
|
default: () => [vue.createVNode("div", null, [vue.createVNode("span", {
|
|
168
171
|
"class": ns.em("more", "caption")
|
|
169
172
|
}, [isShowToolbar.value ? "6/".concat(data.length) : data.length]), vue.createVNode("i", {
|
|
170
|
-
"class": ["fa",
|
|
173
|
+
"class": ["fa", "icon", "more-icon", isShowMore.value ? "fa-angle-double-down" : "fa-angle-double-up"],
|
|
171
174
|
"aria-hidden": "true"
|
|
172
175
|
}, null)])]
|
|
173
176
|
})]);
|
|
174
177
|
},
|
|
175
178
|
default: () => {
|
|
176
|
-
return renderDraggable(true);
|
|
179
|
+
return [renderDraggable(true), renderAction()];
|
|
177
180
|
}
|
|
178
181
|
});
|
|
179
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
|
+
};
|
|
180
198
|
return {
|
|
181
199
|
ns,
|
|
182
200
|
data,
|
|
183
201
|
isShowToolbar,
|
|
184
202
|
onChange,
|
|
185
|
-
onShowChange,
|
|
186
203
|
renderDraggable,
|
|
187
|
-
|
|
204
|
+
renderMore,
|
|
205
|
+
renderRecover
|
|
188
206
|
};
|
|
189
207
|
},
|
|
190
208
|
render() {
|
|
191
209
|
return vue.createVNode("div", {
|
|
192
210
|
"class": [this.ns.b(), ...this.controller.containerClass, this.ns.is("conceal", this.data.length === 0)]
|
|
193
|
-
}, [this.isShowToolbar && this.renderDraggable(false), (!this.isShowToolbar || this.data.length > 6) && this.
|
|
194
|
-
"class": this.ns.e("recover"),
|
|
195
|
-
"onClick": this.onShowChange
|
|
196
|
-
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
197
|
-
"effect": "dark",
|
|
198
|
-
"content": ibiz.i18n.t("app.retract"),
|
|
199
|
-
"placement": "top"
|
|
200
|
-
}, {
|
|
201
|
-
default: () => [vue.createVNode("ion-icon", {
|
|
202
|
-
"class": ["recover-icon", "icon"],
|
|
203
|
-
"name": "chevron-forward-outline"
|
|
204
|
-
}, null)]
|
|
205
|
-
})])]);
|
|
211
|
+
}, [this.isShowToolbar && this.renderDraggable(false), (!this.isShowToolbar || this.data.length > 6) && this.renderMore(), this.isShowToolbar && this.renderRecover()]);
|
|
206
212
|
}
|
|
207
213
|
});
|
|
208
214
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-short-cut{
|
|
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)}
|