@ibiz-template/vue3-components 0.7.41-alpha.24 → 0.7.41-alpha.25
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/{chart-q7pMKjYo.js → chart-WWURfMT4.js} +1 -1
- package/dist/index-8V2VOkJ3.js +11 -0
- package/dist/{index-pz3nYBld.js → index-8Yjd-joJ.js} +1 -1
- package/dist/{index-mjpFeLkH.js → index-EN5i9Gyq.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-I3j_b1zm.js → wang-editor-8Ebtgl0o.js} +1 -1
- package/dist/{xlsx-util-K2jHv3GW.js → xlsx-util-_DMqcSDQ.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +10 -1
- package/es/common/action-toolbar/action-toolbar.mjs +21 -13
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.mjs +82 -39
- package/es/common/control-navigation/control-navigation.d.ts +1 -1
- package/es/common/control-navigation/provider/chart-navigation.provider.d.ts +59 -0
- package/es/common/control-navigation/provider/chart-navigation.provider.mjs +148 -0
- package/es/common/control-navigation/provider/index.mjs +3 -0
- package/es/common/custom-theme/custom-theme.mjs +3 -3
- package/es/common/data-import2/data-import2.mjs +10 -5
- package/es/common/data-import2-select/data-import2-select.d.ts +8 -0
- package/es/common/data-import2-select/data-import2-select.mjs +7 -2
- package/es/control/app-menu/app-menu.d.ts +1 -1
- package/es/control/app-menu/app-menu.mjs +2 -5
- package/es/control/app-menu/index.d.ts +1 -1
- package/es/control/chart/chart.mjs +43 -39
- package/es/control/dashboard/dashboard.css +1 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +0 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +3 -21
- package/es/control/form/form-detail/form-item/index.d.ts +0 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +44 -14
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +2 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +54 -6
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +2 -0
- package/es/control/gantt/gantt.mjs +3 -1
- package/es/control/grid/grid/grid.mjs +1 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +1 -0
- package/es/control/list/index.d.ts +7 -6
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +3 -2
- package/es/control/list/list.mjs +77 -64
- package/es/control/tree/tree.d.ts +6 -6
- package/es/control/tree/tree.mjs +13 -0
- package/es/control/tree-grid/tree-grid.mjs +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +3 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
- package/es/editor/span/span/span.d.ts +1 -0
- package/es/editor/span/span-link/span-link.d.ts +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
- package/es/editor/switch/ibiz-switch-tristate/ibiz-switch-tristate.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/input/input.d.ts +2 -1
- package/es/editor/text-box/signature/signature.d.ts +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +1 -1
- package/es/locale/en/index.d.ts +3 -0
- package/es/locale/en/index.mjs +3 -0
- package/es/locale/zh-CN/index.d.ts +3 -0
- package/es/locale/zh-CN/index.mjs +3 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.d.ts +1 -1
- package/es/panel-component/index-actions/index-actions.mjs +1 -3
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.mjs +1 -3
- package/es/panel-component/nav-tabs/index.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +2 -0
- package/es/panel-component/panel-app-login-view/panel-app-login-view.mjs +1 -3
- package/es/panel-component/panel-app-title/index.d.ts +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +2 -2
- package/es/panel-component/panel-button/panel-button.controller.mjs +1 -2
- package/es/panel-component/panel-button/panel-button.css +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +19 -18
- package/es/panel-component/panel-button-list/panel-button-list.mjs +1 -2
- package/es/view-engine/mpickup-view-engine.d.ts +6 -0
- package/es/view-engine/mpickup-view-engine.mjs +32 -4
- package/es/view-engine/portal-view-engine.mjs +5 -1
- package/es/view-engine/tree-view.engine.mjs +2 -0
- package/lib/common/action-toolbar/action-toolbar.cjs +21 -13
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/button-list/button-list.cjs +80 -37
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/control-navigation/provider/chart-navigation.provider.cjs +150 -0
- package/lib/common/control-navigation/provider/index.cjs +3 -0
- package/lib/common/custom-theme/custom-theme.cjs +3 -3
- package/lib/common/data-import2/data-import2.cjs +10 -5
- package/lib/common/data-import2-select/data-import2-select.cjs +7 -2
- package/lib/control/app-menu/app-menu.cjs +2 -5
- package/lib/control/chart/chart.cjs +43 -39
- package/lib/control/dashboard/dashboard.css +1 -1
- package/lib/control/data-view/data-view.cjs +1 -1
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +2 -20
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +43 -13
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +53 -5
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +3 -1
- package/lib/control/grid/grid/grid.cjs +1 -1
- package/lib/control/kanban/kanban.cjs +1 -0
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +75 -62
- package/lib/control/list/list.css +1 -1
- package/lib/control/tree/tree.cjs +13 -0
- package/lib/control/tree-grid/tree-grid.cjs +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +3 -3
- package/lib/locale/en/index.cjs +3 -0
- package/lib/locale/zh-CN/index.cjs +3 -0
- package/lib/panel-component/index-actions/index-actions.cjs +1 -3
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.cjs +1 -3
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +2 -0
- package/lib/panel-component/panel-app-login-view/panel-app-login-view.cjs +1 -3
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +2 -2
- package/lib/panel-component/panel-button/panel-button.controller.cjs +1 -2
- package/lib/panel-component/panel-button/panel-button.css +1 -1
- package/lib/panel-component/panel-button-list/panel-button-list.cjs +1 -2
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +18 -17
- package/lib/view-engine/mpickup-view-engine.cjs +32 -4
- package/lib/view-engine/portal-view-engine.cjs +4 -0
- package/lib/view-engine/tree-view.engine.cjs +2 -0
- package/package.json +9 -9
- package/dist/index-YM3srtwD.js +0 -11
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -0
- /package/es/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/config/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/loader/index.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/compose.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/curry.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/isObject.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@monaco-editor_loader@1.4.0_monaco-editor@0.45.0 → @monaco-editor_loader@1.4.0_monaco-editor@0.52.2}/node_modules/@monaco-editor/loader/lib/es/validators/index.cjs +0 -0
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var lodashEs = require('lodash-es');
|
|
6
|
-
var qxUtil = require('qx-util');
|
|
7
6
|
var runtime = require('@ibiz-template/runtime');
|
|
8
7
|
var draggable = require('vuedraggable');
|
|
9
8
|
var core = require('@ibiz-template/core');
|
|
@@ -95,32 +94,19 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
94
|
onPageRefresh,
|
|
96
95
|
onPageSizeChange
|
|
97
96
|
} = usePagination.usePagination(c);
|
|
98
|
-
const
|
|
99
|
-
|
|
97
|
+
const infiniteScroll = vue.ref();
|
|
98
|
+
const reverseScroll = c.model.controlStyle === "EXTVIEW3";
|
|
99
|
+
const disabledLodeMore = vue.computed(() => {
|
|
100
|
+
if (c.model.enablePagingBar === true)
|
|
100
101
|
return true;
|
|
101
|
-
|
|
102
|
-
if (c.model.pagingMode !== 2) {
|
|
102
|
+
if (c.model.pagingMode !== 2)
|
|
103
103
|
return true;
|
|
104
|
-
}
|
|
105
104
|
return c.state.items.length >= c.state.total || c.state.isLoading || c.state.total <= c.state.size;
|
|
106
105
|
});
|
|
107
106
|
const isCollapse = vue.ref(false);
|
|
108
107
|
const showCollapseOrExpandIcon = vue.computed(() => {
|
|
109
108
|
return !c.state.enableGroup && (c.model.pagingMode === 2 || c.model.pagingMode === 3);
|
|
110
109
|
});
|
|
111
|
-
const infiniteScroll = vue.ref();
|
|
112
|
-
const infiniteScrollKey = vue.ref(qxUtil.createUUID());
|
|
113
|
-
vue.watch(() => c.state.curPage, () => {
|
|
114
|
-
var _a, _b;
|
|
115
|
-
if (c.state.curPage === 1 && (c.model.pagingMode === 2 || c.model.pagingMode === 3)) {
|
|
116
|
-
infiniteScrollKey.value = qxUtil.createUUID();
|
|
117
|
-
const containerEl = (_b = (_a = infiniteScroll.value) == null ? void 0 : _a.ElInfiniteScroll) == null ? void 0 : _b.containerEl;
|
|
118
|
-
if (containerEl) {
|
|
119
|
-
containerEl.lastScrollTop = 0;
|
|
120
|
-
containerEl.scrollTop = 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
110
|
let cacheInfo = null;
|
|
125
111
|
const onDraggableChange = (evt, groupKey) => {
|
|
126
112
|
if (evt.moved) {
|
|
@@ -167,6 +153,31 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
167
153
|
behavior: "smooth"
|
|
168
154
|
});
|
|
169
155
|
};
|
|
156
|
+
const handleScrollLoad = async () => {
|
|
157
|
+
if (!infiniteScroll.value || disabledLodeMore.value)
|
|
158
|
+
return;
|
|
159
|
+
const scrollTop = infiniteScroll.value.scrollTop;
|
|
160
|
+
const scrollHeight = infiniteScroll.value.scrollHeight;
|
|
161
|
+
const clientHeight = infiniteScroll.value.clientHeight;
|
|
162
|
+
if (!reverseScroll && scrollHeight - scrollTop - clientHeight < 10) {
|
|
163
|
+
await c.loadMore();
|
|
164
|
+
} else if (reverseScroll && scrollTop < 10) {
|
|
165
|
+
await c.loadMore();
|
|
166
|
+
const newScrollHeight = infiniteScroll.value.scrollHeight;
|
|
167
|
+
infiniteScroll.value.scrollTop = scrollTop + (newScrollHeight - scrollHeight);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
c.evt.on("onLoadSuccess", (evt) => {
|
|
171
|
+
if (evt.isInitialLoad && reverseScroll) {
|
|
172
|
+
setTimeout(() => {
|
|
173
|
+
if (!infiniteScroll.value)
|
|
174
|
+
return;
|
|
175
|
+
const scrollHeight = infiniteScroll.value.scrollHeight;
|
|
176
|
+
const clientHeight = infiniteScroll.value.clientHeight;
|
|
177
|
+
infiniteScroll.value.scrollTop = scrollHeight + clientHeight;
|
|
178
|
+
}, 100);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
170
181
|
c.evt.on("onScrollToTop", () => {
|
|
171
182
|
scrollToTop();
|
|
172
183
|
});
|
|
@@ -194,9 +205,8 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
194
205
|
c.setSelection(selected);
|
|
195
206
|
};
|
|
196
207
|
vue.watch(() => props.data, () => {
|
|
197
|
-
if (props.isSimple)
|
|
208
|
+
if (props.isSimple)
|
|
198
209
|
initSimpleData();
|
|
199
|
-
}
|
|
200
210
|
}, {
|
|
201
211
|
deep: true
|
|
202
212
|
});
|
|
@@ -368,7 +378,9 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
368
378
|
};
|
|
369
379
|
const renderGroupStyle2 = () => {
|
|
370
380
|
var _a;
|
|
371
|
-
return
|
|
381
|
+
return vue.createVNode("div", {
|
|
382
|
+
"class": [ns.e("layout-flex"), ns.em("layout-flex", "group-style2")]
|
|
383
|
+
}, [(_a = c.state.groups) == null ? void 0 : _a.map((group) => {
|
|
372
384
|
return vue.createVNode("div", {
|
|
373
385
|
"class": [ns.b("group-style2")]
|
|
374
386
|
}, [vue.createVNode("div", {
|
|
@@ -380,15 +392,10 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
380
392
|
}, [group.children.length > 0 ? renderListItems(group.children) : vue.createVNode("div", {
|
|
381
393
|
"class": ns.bem("group-style2", "content", "empty")
|
|
382
394
|
}, [ibiz.i18n.t("app.noData")])])]);
|
|
383
|
-
});
|
|
395
|
+
})]);
|
|
384
396
|
};
|
|
385
397
|
const renderListContent = () => {
|
|
386
|
-
if (c.state.enableGroup && !c.state.isSimple) {
|
|
387
|
-
if (c.model.groupStyle === "STYLE2") {
|
|
388
|
-
return vue.createVNode("div", {
|
|
389
|
-
"class": [ns.b("content"), ns.b("scroll"), ns.b("group-style2-content")]
|
|
390
|
-
}, [renderGroupStyle2()]);
|
|
391
|
-
}
|
|
398
|
+
if (c.state.enableGroup && !c.state.isSimple && c.model.groupStyle !== "STYLE2") {
|
|
392
399
|
return vue.createVNode(vue.resolveComponent("el-collapse"), {
|
|
393
400
|
"modelValue": c.state.expandedKeys,
|
|
394
401
|
"onUpdate:modelValue": ($event) => c.state.expandedKeys = $event,
|
|
@@ -404,13 +411,11 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
404
411
|
}
|
|
405
412
|
});
|
|
406
413
|
}
|
|
407
|
-
return vue.
|
|
408
|
-
"class": [ns.b("scroll"), ns.b("content"), ns.is("show-underLine", c.model.controlStyle !== "EXTVIEW1")],
|
|
409
|
-
"infinite-scroll-distance": 10,
|
|
410
|
-
"infinite-scroll-disabled": isLodeMoreDisabled.value,
|
|
414
|
+
return vue.createVNode("div", {
|
|
411
415
|
"ref": "infiniteScroll",
|
|
412
|
-
"
|
|
413
|
-
|
|
416
|
+
"class": [ns.b("scroll"), ns.b("content"), ns.is("reverse-scroll", reverseScroll), ns.is("show-underLine", c.model.controlStyle !== "EXTVIEW1" && c.model.groupStyle !== "STYLE2")],
|
|
417
|
+
"onScroll": lodashEs.debounce(handleScrollLoad, 300)
|
|
418
|
+
}, [c.state.enableGroup && c.model.groupStyle === "STYLE2" ? renderGroupStyle2() : renderListItems(isCollapse.value ? c.state.items.slice(0, c.state.size) : c.state.items, void 0, !c.enableEditOrder)]);
|
|
414
419
|
};
|
|
415
420
|
const upIcon = () => {
|
|
416
421
|
return vue.createVNode("div", {
|
|
@@ -450,7 +455,7 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
450
455
|
if (!ctrlModel)
|
|
451
456
|
return;
|
|
452
457
|
return vue.createVNode("div", {
|
|
453
|
-
"class": ns.e("batchtoolbar")
|
|
458
|
+
"class": [ns.e("batchtoolbar"), ns.is("show", c.showBatchToolbar)]
|
|
454
459
|
}, [vue.createVNode(vue.resolveComponent("iBizToolbarControl"), {
|
|
455
460
|
"modelData": ctrlModel,
|
|
456
461
|
"context": c.context,
|
|
@@ -493,38 +498,46 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
493
498
|
});
|
|
494
499
|
};
|
|
495
500
|
const renderCollapseExpandIcon = () => {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
501
|
+
if (!showCollapseOrExpandIcon.value)
|
|
502
|
+
return null;
|
|
503
|
+
const {
|
|
504
|
+
pagingMode
|
|
505
|
+
} = c.model;
|
|
506
|
+
const {
|
|
507
|
+
items,
|
|
508
|
+
total,
|
|
509
|
+
size,
|
|
510
|
+
isCreated
|
|
511
|
+
} = c.state;
|
|
512
|
+
const hasMoreItems = items.length < total && total > size;
|
|
513
|
+
const exceedsInitialSize = items.length > size;
|
|
514
|
+
if (pagingMode === 2) {
|
|
515
|
+
if (isCollapse.value)
|
|
516
|
+
return reverseScroll ? upIcon() : downIcon();
|
|
517
|
+
if (exceedsInitialSize)
|
|
518
|
+
return reverseScroll ? downIcon() : upIcon();
|
|
519
|
+
}
|
|
520
|
+
if (pagingMode === 3) {
|
|
521
|
+
if (isCollapse.value)
|
|
522
|
+
return reverseScroll ? upIcon() : downIcon();
|
|
523
|
+
if (hasMoreItems)
|
|
524
|
+
return loadMoreIcon();
|
|
525
|
+
if (isCreated && exceedsInitialSize)
|
|
526
|
+
return reverseScroll ? downIcon() : upIcon();
|
|
515
527
|
}
|
|
516
|
-
return
|
|
528
|
+
return null;
|
|
517
529
|
};
|
|
518
530
|
return {
|
|
519
531
|
c,
|
|
520
532
|
ns,
|
|
533
|
+
reverseScroll,
|
|
521
534
|
infiniteScroll,
|
|
522
|
-
renderListContent,
|
|
523
535
|
renderNoData,
|
|
524
|
-
renderBatchToolBar,
|
|
525
536
|
onPageChange,
|
|
526
537
|
onPageRefresh,
|
|
527
538
|
onPageSizeChange,
|
|
539
|
+
renderListContent,
|
|
540
|
+
renderBatchToolBar,
|
|
528
541
|
renderCollapseExpandIcon
|
|
529
542
|
};
|
|
530
543
|
},
|
|
@@ -546,10 +559,10 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
546
559
|
"controller": this.c
|
|
547
560
|
}, {
|
|
548
561
|
default: () => [vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
549
|
-
"
|
|
550
|
-
"
|
|
562
|
+
"controller": this.c,
|
|
563
|
+
"class": [this.ns.is("enable-page", !!this.c.state.enablePagingBar)]
|
|
551
564
|
}, {
|
|
552
|
-
default: () => [content, this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? vue.createVNode("ion-icon", {
|
|
565
|
+
default: () => [this.reverseScroll && this.renderCollapseExpandIcon(), content, this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? vue.createVNode("ion-icon", {
|
|
553
566
|
"class": this.ns.e("nav-icon"),
|
|
554
567
|
"title": ibiz.i18n.t("component.controlNavigation.showNav"),
|
|
555
568
|
"name": "eye-outline",
|
|
@@ -559,7 +572,7 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
559
572
|
"title": ibiz.i18n.t("component.controlNavigation.hiddenNav"),
|
|
560
573
|
"name": "eye-off-outline",
|
|
561
574
|
"onClick": () => this.c.onShowNavViewChange()
|
|
562
|
-
}, null) : null, this.renderCollapseExpandIcon()]
|
|
575
|
+
}, null) : null, !this.reverseScroll && this.renderCollapseExpandIcon()]
|
|
563
576
|
})]
|
|
564
577
|
});
|
|
565
578
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-list-item{flex-grow:1;min-height:var(--ibiz-control-list-item-height);padding:var(--ibiz-control-list-padding);font-weight:var(--ibiz-control-list-font-weight);color:var(--ibiz-control-list-text-color);cursor:pointer;background-color:var(--ibiz-control-list-item-bg-color)}.ibiz-control-list-item__right{padding:0 var(--ibiz-spacing-extra-tight)}.ibiz-control-list-item__right--actions{display:flex;justify-content:center}.ibiz-control-list-item__right--actions .ibiz-action-toolbar__item{margin:0}.ibiz-control-list-item__right--actions .ibiz-action-toolbar__item--label.is-has-caption{margin:0}.ibiz-control-list-item:has(.ibiz-control-list-item__right){display:flex;justify-content:space-between}.ibiz-control-list-item:has(.ibiz-control-list-item__right) .ibiz-control-list-item__caption{flex:1}.ibiz-control-list-item__new{display:flex;align-items:center;justify-content:center;margin-top:var(--ibiz-spacing-tight);color:var(--ibiz-color-text-3);border:2px dashed var(--ibiz-color-border)}.ibiz-control-list{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);--ibiz-control-list-item-bg-color:unset;display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;position:relative;height:100%}.ibiz-control-list__drag-icon{cursor:move;visibility:hidden}.ibiz-control-list__nav-icon{position:absolute;top:18px;right:10px;color:var(--ibiz-color-primary);cursor:pointer}.ibiz-control-list__load-more{text-align:center}.ibiz-control-list__load-more i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-control-list-load-more-color);cursor:pointer}.ibiz-control-list__load-more i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__collapse-expand-icon{width:calc(100% - var(--ibiz-spacing-base-tight));text-align:center}.ibiz-control-list__collapse-expand-icon i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-color-text-2);cursor:pointer}.ibiz-control-list__collapse-expand-icon i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__load-more-button{padding:var(--ibiz-control-list-padding);text-align:center}.ibiz-control-list__quicktoolbar{display:flex;justify-content:center;width:100%}.ibiz-control-
|
|
1
|
+
.ibiz-control-list-item{flex-grow:1;min-height:var(--ibiz-control-list-item-height);padding:var(--ibiz-control-list-padding);font-weight:var(--ibiz-control-list-font-weight);color:var(--ibiz-control-list-text-color);cursor:pointer;background-color:var(--ibiz-control-list-item-bg-color)}.ibiz-control-list-item__right{padding:0 var(--ibiz-spacing-extra-tight)}.ibiz-control-list-item__right--actions{display:flex;justify-content:center}.ibiz-control-list-item__right--actions .ibiz-action-toolbar__item{margin:0}.ibiz-control-list-item__right--actions .ibiz-action-toolbar__item--label.is-has-caption{margin:0}.ibiz-control-list-item:has(.ibiz-control-list-item__right){display:flex;justify-content:space-between}.ibiz-control-list-item:has(.ibiz-control-list-item__right) .ibiz-control-list-item__caption{flex:1}.ibiz-control-list-item__new{display:flex;align-items:center;justify-content:center;margin-top:var(--ibiz-spacing-tight);color:var(--ibiz-color-text-3);border:2px dashed var(--ibiz-color-border)}.ibiz-control-list{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);--ibiz-control-list-item-bg-color:unset;display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;position:relative;height:100%}.ibiz-control-list__drag-icon{cursor:move;visibility:hidden}.ibiz-control-list__nav-icon{position:absolute;top:18px;right:10px;color:var(--ibiz-color-primary);cursor:pointer}.ibiz-control-list__load-more{text-align:center}.ibiz-control-list__load-more i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-control-list-load-more-color);cursor:pointer}.ibiz-control-list__load-more i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__collapse-expand-icon{width:calc(100% - var(--ibiz-spacing-base-tight));text-align:center}.ibiz-control-list__collapse-expand-icon i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-color-text-2);cursor:pointer}.ibiz-control-list__collapse-expand-icon i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__load-more-button{padding:var(--ibiz-control-list-padding);text-align:center}.ibiz-control-list__quicktoolbar{display:flex;justify-content:center;width:100%}.ibiz-control-list__batchtoolbar{display:none;margin:var(--ibiz-spacing-tight) 0}.ibiz-control-list__batchtoolbar.is-show{display:block}.ibiz-control-list .ibiz-control-list-content{flex-grow:1}.ibiz-control-list-content.is-show-underLine .ibiz-control-list-scroll-item{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-list-content .ibiz-row-detail:last-of-type .ibiz-control-list-scroll-item{border-bottom:none}.ibiz-control-list-scroll{height:100%;overflow:auto}.ibiz-control-list-scroll.is-reverse-scroll .ibiz-control-list__layout-flex{display:flex;flex-direction:column-reverse}.ibiz-control-list-group-content__item-header{display:flex;align-items:center;justify-content:space-between;width:100%}.ibiz-control-list-scroll-item{display:flex;align-items:center}.ibiz-control-list-scroll-item__checkbox{flex-shrink:0;margin-left:var(--ibiz-spacing-tight)}.ibiz-control-list-scroll-item__icon{flex-shrink:0;margin-left:var(--ibiz-spacing-tight);color:var(--ibiz-color-text-2);cursor:pointer}.ibiz-control-list-scroll-item:hover{background-color:var(--ibiz-control-list-hover-bg-color)}.ibiz-control-list-scroll-item:hover .ibiz-control-list__drag-icon{visibility:visible}.ibiz-control-list-scroll-item.is-active{background-color:var(--ibiz-control-list-active-bg-color)}.ibiz-control-list-group-style2{--ibiz-control-list-group-style2-color:var(--ibiz-color-disabled-text)}.ibiz-control-list-group-style2__header{display:flex;align-items:center;justify-content:center;width:100%}.ibiz-control-list-group-style2__header--title{padding:0 var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-control-list-group-style2-color)}.ibiz-control-list-group-style2__header::after,.ibiz-control-list-group-style2__header::before{display:block;flex:1;height:1px;margin-top:1px;content:"";border-top:1px var(--ibiz-color-border) solid;transform:translateY(-50%)}
|
|
@@ -184,6 +184,16 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
184
184
|
newVal.$el.getElementsByTagName("input")[0].focus();
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
+
c.evt.on("onSelectionChange", async () => {
|
|
188
|
+
var _a;
|
|
189
|
+
if (!treeRef.value)
|
|
190
|
+
return;
|
|
191
|
+
if (c.state.singleSelect) {
|
|
192
|
+
treeRef.value.setCurrentKey((_a = c.state.selectedData[0]) == null ? void 0 : _a._id);
|
|
193
|
+
} else {
|
|
194
|
+
treeRef.value.setCheckedKeys(c.state.selectedData.map((item) => item._id));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
187
197
|
const editCurrentNodeText = () => {
|
|
188
198
|
var _a;
|
|
189
199
|
const currentkey = (_a = treeRef.value) == null ? void 0 : _a.getCurrentKey();
|
|
@@ -338,6 +348,9 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
338
348
|
treeRefreshKey.value = qxUtil.createUUID();
|
|
339
349
|
}
|
|
340
350
|
});
|
|
351
|
+
c.evt.on("onUpdateUI", () => {
|
|
352
|
+
updateUI();
|
|
353
|
+
});
|
|
341
354
|
const treeData = vue.computed(() => {
|
|
342
355
|
if (!c.state.isLoaded) {
|
|
343
356
|
return [];
|
|
@@ -214,7 +214,7 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
return vue.createVNode("div", {
|
|
217
|
-
"class": [ns.b("batch-toolbar"), ns.is("show", c.
|
|
217
|
+
"class": [ns.b("batch-toolbar"), ns.is("show", c.showBatchToolbar)]
|
|
218
218
|
}, [vue.createVNode("div", {
|
|
219
219
|
"class": ns.b("batch-toolbar-content")
|
|
220
220
|
}, [vue.createVNode("div", {
|
|
@@ -4,13 +4,13 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var qxUtil = require('qx-util');
|
|
6
6
|
var ElementPlus = require('element-plus');
|
|
7
|
-
require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.
|
|
7
|
+
require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.52.2/node_modules/@monaco-editor/loader/lib/es/index.cjs');
|
|
8
8
|
var runtime = require('@ibiz-template/runtime');
|
|
9
9
|
var core = require('@ibiz-template/core');
|
|
10
10
|
require('../../../util/index.cjs');
|
|
11
11
|
require('./monaco-editor.css');
|
|
12
12
|
var aiUtil = require('../../../util/ai-util/ai-util.cjs');
|
|
13
|
-
var index = require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.
|
|
13
|
+
var index = require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.52.2/node_modules/@monaco-editor/loader/lib/es/loader/index.cjs');
|
|
14
14
|
|
|
15
15
|
"use strict";
|
|
16
16
|
const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -316,7 +316,7 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
316
316
|
isLoading.value = true;
|
|
317
317
|
index.default.config({
|
|
318
318
|
paths: {
|
|
319
|
-
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.
|
|
319
|
+
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.52.2/min/vs")
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
322
|
index.default.init().then((loaderMonaco) => {
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -68,9 +68,7 @@ const IndexActions = /* @__PURE__ */ vue.defineComponent({
|
|
|
68
68
|
});
|
|
69
69
|
return vue.createVNode("div", {
|
|
70
70
|
"class": this.classArr,
|
|
71
|
-
"onClick": () =>
|
|
72
|
-
this.controller.onClick();
|
|
73
|
-
}
|
|
71
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
74
72
|
}, [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
75
73
|
"type": "text/css"
|
|
76
74
|
}, [this.controller.model.cssStyle]) : null, content]);
|
|
@@ -70,9 +70,7 @@ const IndexBlankPlaceholder = /* @__PURE__ */ vue.defineComponent({
|
|
|
70
70
|
});
|
|
71
71
|
return vue.createVNode("div", {
|
|
72
72
|
"class": this.classArr,
|
|
73
|
-
"onClick": () =>
|
|
74
|
-
this.controller.onClick();
|
|
75
|
-
}
|
|
73
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
76
74
|
}, [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
77
75
|
"type": "text/css"
|
|
78
76
|
}, [this.controller.model.cssStyle]) : null, content]);
|
|
@@ -77,6 +77,8 @@ const NavTabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
77
77
|
const {
|
|
78
78
|
state
|
|
79
79
|
} = this.controller;
|
|
80
|
+
if (ibiz.config.view.disableHomeTabs)
|
|
81
|
+
return;
|
|
80
82
|
return vue.createVNode("div", {
|
|
81
83
|
"class": [this.ns.b(), ...this.controller.containerClass]
|
|
82
84
|
}, [vue.createVNode("div", {
|
|
@@ -82,9 +82,7 @@ const PanelAppLoginView = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
82
|
return vue.createVNode("div", {
|
|
83
83
|
"class": this.classArr,
|
|
84
84
|
"style": this.cssVars,
|
|
85
|
-
"onClick": () =>
|
|
86
|
-
this.controller.onClick();
|
|
87
|
-
}
|
|
85
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
88
86
|
}, [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
89
87
|
"type": "text/css"
|
|
90
88
|
}, [this.controller.model.cssStyle]) : null, content]);
|
|
@@ -39,7 +39,7 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
39
|
}
|
|
40
40
|
return "LEFT";
|
|
41
41
|
});
|
|
42
|
-
const handleClick = async () => {
|
|
42
|
+
const handleClick = async (event) => {
|
|
43
43
|
if (c.panel.view.model.viewType === "APPLOGINVIEW")
|
|
44
44
|
return;
|
|
45
45
|
if (ctx == null ? void 0 : ctx.view) {
|
|
@@ -53,7 +53,7 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
53
|
window.location.reload();
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
props.controller.onClick();
|
|
56
|
+
props.controller.onClick(event);
|
|
57
57
|
};
|
|
58
58
|
const showImgOnly = vue.computed(() => {
|
|
59
59
|
if (menuAlign.value === "LEFT") {
|
|
@@ -95,9 +95,8 @@ class PanelButtonController extends runtime.PanelItemController {
|
|
|
95
95
|
*/
|
|
96
96
|
async onActionClick(event) {
|
|
97
97
|
const { uiactionId, actionType } = this.model;
|
|
98
|
-
if (actionType === "NONE")
|
|
98
|
+
if (actionType === "NONE")
|
|
99
99
|
return;
|
|
100
|
-
}
|
|
101
100
|
event.stopPropagation();
|
|
102
101
|
event.preventDefault();
|
|
103
102
|
await runtime.UIActionUtil.execAndResolved(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-button{--ibiz-panel-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-panel-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-panel-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;padding:var(--ibiz-spacing-tight);overflow:hidden}.ibiz-panel-button .el-button{width:100%}.ibiz-panel-button .el-button .ibiz-panel-button-content{display:flex;align-items:center;justify-content:flex-start}.ibiz-panel-button .el-button .ibiz-panel-button-content i,.ibiz-panel-button .el-button .ibiz-panel-button-content img{display:inline-block;max-width:var(--ibiz-panel-button-icon-max-width);max-height:var(--ibiz-panel-button-icon-max-height)}.ibiz-panel-button .el-button .ibiz-panel-button-content .ibiz-icon+.ibiz-panel-button-content--caption{margin-left:var(--ibiz-panel-button-icon-margin)}.ibiz-panel-button.is-loading .el-button .ibiz-icon{display:none}
|
|
1
|
+
.ibiz-panel-button{--ibiz-panel-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-panel-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-panel-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;padding:var(--ibiz-spacing-tight);overflow:hidden}.ibiz-panel-button .el-button{width:100%}.ibiz-panel-button .el-button>span{pointer-events:none}.ibiz-panel-button .el-button .ibiz-panel-button-content{display:flex;align-items:center;justify-content:flex-start}.ibiz-panel-button .el-button .ibiz-panel-button-content i,.ibiz-panel-button .el-button .ibiz-panel-button-content img{display:inline-block;max-width:var(--ibiz-panel-button-icon-max-width);max-height:var(--ibiz-panel-button-icon-max-height)}.ibiz-panel-button .el-button .ibiz-panel-button-content .ibiz-icon+.ibiz-panel-button-content--caption{margin-left:var(--ibiz-panel-button-icon-margin)}.ibiz-panel-button.is-loading .el-button .ibiz-icon{display:none}
|
|
@@ -42,7 +42,7 @@ const PanelButtonList = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
const {
|
|
43
43
|
state
|
|
44
44
|
} = this.controller;
|
|
45
|
-
if (state.visible)
|
|
45
|
+
if (state.visible)
|
|
46
46
|
return vue.createVNode(vue.resolveComponent("iBizButtonList"), {
|
|
47
47
|
"class": [this.ns.b(), ...this.controller.containerClass],
|
|
48
48
|
"model": this.modelData,
|
|
@@ -50,7 +50,6 @@ const PanelButtonList = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
50
|
"buttonsState": state.buttonsState,
|
|
51
51
|
"onClick": this.handleClick
|
|
52
52
|
}, null);
|
|
53
|
-
}
|
|
54
53
|
return null;
|
|
55
54
|
}
|
|
56
55
|
});
|
|
@@ -47,20 +47,22 @@ class PanelButtonListController extends runtime.PanelItemController {
|
|
|
47
47
|
* @memberof PanelButtonListController
|
|
48
48
|
*/
|
|
49
49
|
async initButtonsState() {
|
|
50
|
-
var _a;
|
|
51
50
|
const { buttonListType, uiactionGroup, panelButtons } = this.model;
|
|
52
51
|
if (buttonListType === "UIACTIONGROUP") {
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
if (uiactionGroup == null ? void 0 : uiactionGroup.uiactionGroupDetails) {
|
|
53
|
+
const actions = runtime.getAllUIActionItems(uiactionGroup.uiactionGroupDetails);
|
|
54
|
+
actions.forEach((detail) => {
|
|
55
|
+
if (detail.uiactionId) {
|
|
56
|
+
const buttonState = new runtime.UIActionButtonState(
|
|
57
|
+
detail.id,
|
|
58
|
+
detail.appId,
|
|
59
|
+
detail.uiactionId,
|
|
60
|
+
detail
|
|
61
|
+
);
|
|
62
|
+
this.state.buttonsState.addState(detail.id, buttonState);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
64
66
|
} else {
|
|
65
67
|
panelButtons == null ? void 0 : panelButtons.forEach((button) => {
|
|
66
68
|
if (button.uiactionId) {
|
|
@@ -112,12 +114,11 @@ class PanelButtonListController extends runtime.PanelItemController {
|
|
|
112
114
|
* @memberof PanelButtonListController
|
|
113
115
|
*/
|
|
114
116
|
getModelById(id) {
|
|
115
|
-
var _a;
|
|
116
117
|
const { buttonListType, uiactionGroup, panelButtons } = this.model;
|
|
117
|
-
if (buttonListType === "UIACTIONGROUP")
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
if (buttonListType === "UIACTIONGROUP") {
|
|
119
|
+
const actions = runtime.getAllUIActionItems(uiactionGroup == null ? void 0 : uiactionGroup.uiactionGroupDetails);
|
|
120
|
+
return actions.find((detail) => detail.id === id);
|
|
121
|
+
}
|
|
121
122
|
return panelButtons == null ? void 0 : panelButtons.find((button) => button.id === id);
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
@@ -5,7 +5,22 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
5
5
|
var pickupView_engine = require('./pickup-view.engine.cjs');
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __publicField = (obj, key, value) => {
|
|
11
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
8
14
|
class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* @description 是否严格的遵循穿梭空左右互相关联
|
|
19
|
+
* @type {boolean}
|
|
20
|
+
* @memberof MPickupViewEngine
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "checkStrictly", true);
|
|
23
|
+
}
|
|
9
24
|
/**
|
|
10
25
|
* 简单列表控制器
|
|
11
26
|
*
|
|
@@ -45,6 +60,10 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
45
60
|
this.view.slotProps.simplelist.isSimple = true;
|
|
46
61
|
this.view.slotProps.simplelist.singleSelect = false;
|
|
47
62
|
this.view.slotProps.pickupviewpanel.singleSelect = false;
|
|
63
|
+
if (this.view.params.checkstrictly) {
|
|
64
|
+
this.checkStrictly = this.view.params.checkstrictly === "true" || this.view.params.checkstrictly === true;
|
|
65
|
+
delete this.view.params.checkstrictly;
|
|
66
|
+
}
|
|
48
67
|
}
|
|
49
68
|
/**
|
|
50
69
|
* 视图mounted生命周期执行逻辑
|
|
@@ -135,9 +154,17 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
135
154
|
* @memberof MPickupViewEngine
|
|
136
155
|
*/
|
|
137
156
|
async handlePushSimpleListItems(data) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
157
|
+
let selectItems = [];
|
|
158
|
+
if (this.checkStrictly) {
|
|
159
|
+
const items = await this.pickupViewPanel.getAllData();
|
|
160
|
+
selectItems = this.simpleList.getAllData().filter(
|
|
161
|
+
(selected) => !items.some((item) => item.srfkey === selected.srfkey)
|
|
162
|
+
);
|
|
163
|
+
selectItems.push(...data);
|
|
164
|
+
} else {
|
|
165
|
+
const allData = this.simpleList.getAllData();
|
|
166
|
+
selectItems = [...allData, ...data];
|
|
167
|
+
}
|
|
141
168
|
const uniqueItems = this.handleUniqueItems(selectItems);
|
|
142
169
|
this.setSelectedData(uniqueItems);
|
|
143
170
|
}
|
|
@@ -203,7 +230,8 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
203
230
|
* @memberof MPickupViewEngine
|
|
204
231
|
*/
|
|
205
232
|
setSelectedData(items) {
|
|
206
|
-
|
|
233
|
+
if (this.checkStrictly)
|
|
234
|
+
super.setSelectedData(items);
|
|
207
235
|
this.simpleList.setData(items);
|
|
208
236
|
}
|
|
209
237
|
/**
|
|
@@ -57,6 +57,10 @@ class PortalViewEngine extends runtime.DEMainViewEngine {
|
|
|
57
57
|
async onMounted() {
|
|
58
58
|
await super.onMounted();
|
|
59
59
|
if (this.view.model.appDataEntityId) {
|
|
60
|
+
const deName = runtime.calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
61
|
+
if (!this.view.context[deName]) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
60
64
|
await this.loadEntityData();
|
|
61
65
|
}
|
|
62
66
|
}
|
|
@@ -7,9 +7,11 @@ var core = require('@ibiz-template/core');
|
|
|
7
7
|
class TreeViewEngine extends runtime.MDViewEngine {
|
|
8
8
|
async onCreated() {
|
|
9
9
|
await super.onCreated();
|
|
10
|
+
const { model } = this.view;
|
|
10
11
|
if (!this.view.slotProps.tree) {
|
|
11
12
|
this.view.slotProps.tree = {};
|
|
12
13
|
}
|
|
14
|
+
this.view.slotProps.tree.mdctrlActiveMode = model.mdctrlActiveMode;
|
|
13
15
|
}
|
|
14
16
|
get tree() {
|
|
15
17
|
return this.view.getController("tree");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.25",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
32
32
|
"@floating-ui/dom": "^1.5.3",
|
|
33
33
|
"@ibiz-template-plugin/ai-chat": "^0.0.29",
|
|
34
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
35
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
36
|
-
"@ibiz-template-plugin/data-view": "0.0.
|
|
34
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.316",
|
|
35
|
+
"@ibiz-template-plugin/bi-report": "0.0.27",
|
|
36
|
+
"@ibiz-template-plugin/data-view": "0.0.5",
|
|
37
37
|
"@ibiz-template/core": "0.7.41-alpha.23",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.11",
|
|
39
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
40
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.24",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.24",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.24",
|
|
43
43
|
"@ibiz-template/web-theme": "3.8.0",
|
|
44
44
|
"@ibiz/model-core": "^0.1.81",
|
|
45
45
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"file-saver": "^2.0.5",
|
|
55
55
|
"interactjs": "^1.10.20",
|
|
56
56
|
"lodash-es": "^4.17.21",
|
|
57
|
-
"monaco-editor": "^0.
|
|
57
|
+
"monaco-editor": "^0.52.2",
|
|
58
58
|
"nprogress": "^0.2.0",
|
|
59
59
|
"pinia": "^2.1.7",
|
|
60
60
|
"pluralize": "^8.0.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"echarts": "^5.4.3",
|
|
120
120
|
"element-plus": "2.4.4",
|
|
121
121
|
"lodash-es": "^4.17.21",
|
|
122
|
-
"monaco-editor": "^0.
|
|
122
|
+
"monaco-editor": "^0.52.2",
|
|
123
123
|
"pinia": "^2.1.6",
|
|
124
124
|
"qs": "^6.11.2",
|
|
125
125
|
"qx-util": "^0.4.8",
|