@ibiz-template/vue3-components 0.7.30-alpha.3 → 0.7.31-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-0UV2FAN6.js +1 -0
- package/dist/index-YQyitjSg.js +1 -0
- package/dist/index-maJGu4b8.js +4 -0
- package/dist/index-trS6uS3E.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-AcjI1Mdj.js +1 -0
- package/dist/{xlsx-util-cTIccUxx.js → xlsx-util-OUxT4A8O.js} +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +10 -0
- package/es/common/index.mjs +2 -0
- package/es/common/pql-editor/components/index.d.ts +1 -0
- package/es/common/pql-editor/components/index.mjs +3 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +28 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +49 -0
- package/es/common/pql-editor/pql-editor.css +1 -0
- package/es/common/pql-editor/pql-editor.d.ts +68 -0
- package/es/common/pql-editor/pql-editor.mjs +606 -0
- package/es/common/pql-editor/pql-editor.module.d.ts +47 -0
- package/es/common/pql-editor/pql-editor.module.mjs +176 -0
- package/es/common/pql-editor/utils/index.d.ts +15 -0
- package/es/common/pql-editor/utils/index.mjs +270 -0
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +5 -5
- package/es/control/chart/chart.mjs +60 -36
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +16 -13
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +8 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +12 -2
- package/es/control/dashboard/portlet/report-portlet/index.d.ts +1 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.d.ts +1 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/report-portlet/report-portlet.provider.d.ts +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +15 -12
- package/es/control/grid/grid/grid.mjs +2 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +32 -2
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +4 -0
- package/es/control/list/list.mjs +13 -1
- package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +30 -3
- package/es/control/search-bar/filter-tree/filter-tree.mjs +83 -9
- package/es/control/search-bar/search-bar.mjs +10 -1
- package/es/control/tree-grid/index.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.mjs +4 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +4 -9
- 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/carousel/ibiz-carousel/ibiz-carousel.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/checkbox-list-editor.controller.d.ts +7 -0
- package/es/editor/check-box-list/checkbox-list-editor.controller.mjs +11 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +2 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
- 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 +2 -2
- 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/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/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +3 -0
- 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.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +2 -1
- package/es/editor/radio-button-list/radio-button-list.controller.d.ts +8 -0
- package/es/editor/radio-button-list/radio-button-list.controller.mjs +23 -0
- 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.css +1 -1
- package/es/editor/span/span/span.d.ts +1 -1
- package/es/editor/span/span/span.mjs +2 -1
- 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/text-box/ibiz-input-ip/ibiz-input-ip.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 +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.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/interface/i-pql-item.d.ts +52 -0
- package/es/interface/i-pql-item.mjs +1 -0
- package/es/interface/i-pql-node.d.ts +37 -0
- package/es/interface/i-pql-node.mjs +1 -0
- package/es/interface/i-schema-field.d.ts +51 -0
- package/es/interface/i-schema-field.mjs +1 -0
- package/es/interface/index.d.ts +3 -0
- package/es/interface/index.mjs +5 -0
- package/es/locale/en/index.d.ts +9 -4
- package/es/locale/en/index.mjs +6 -6
- package/es/locale/zh-CN/index.d.ts +9 -4
- package/es/locale/zh-CN/index.mjs +6 -6
- package/es/panel-component/short-cut/index.d.ts +1 -1
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +8 -2
- package/es/util/fullscreen/fullscreen-util.mjs +22 -2
- package/es/view-engine/edit-view.engine.mjs +28 -32
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +10 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pql-editor/components/index.cjs +7 -0
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.cjs +51 -0
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
- package/lib/common/pql-editor/pql-editor.cjs +608 -0
- package/lib/common/pql-editor/pql-editor.css +1 -0
- package/lib/common/pql-editor/pql-editor.module.cjs +182 -0
- package/lib/common/pql-editor/utils/index.cjs +280 -0
- package/lib/control/chart/chart.cjs +59 -35
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +12 -2
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +2 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +32 -2
- package/lib/control/list/list.cjs +13 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +82 -8
- package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +10 -1
- package/lib/control/tree-grid/tree-grid.cjs +4 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -8
- package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -0
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +3 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/radio-button-list/radio-button-list.controller.cjs +23 -0
- package/lib/editor/span/span/span.cjs +2 -1
- package/lib/editor/span/span/span.css +1 -1
- package/lib/interface/i-pql-item.cjs +3 -0
- package/lib/interface/i-pql-node.cjs +3 -0
- package/lib/interface/i-schema-field.cjs +3 -0
- package/lib/interface/index.cjs +7 -0
- package/lib/locale/en/index.cjs +6 -6
- package/lib/locale/zh-CN/index.cjs +6 -6
- package/lib/util/fullscreen/fullscreen-util.cjs +22 -2
- package/lib/view-engine/edit-view.engine.cjs +28 -32
- package/package.json +10 -9
- package/dist/chart-JFzIz6Oa.js +0 -1
- package/dist/index-Nw4GzACH.js +0 -1
- package/dist/index-Va9AxP7w.js +0 -4
- package/dist/index-qjfHTzTv.js +0 -1
- package/dist/wang-editor-YqnK5uQU.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
import { CodeListEditorController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
4
10
|
class RadioButtonListEditorController extends CodeListEditorController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 单选一行展示几个
|
|
15
|
+
* @author fangZhiHao
|
|
16
|
+
* @date 2024-07-17 10:07:40
|
|
17
|
+
* @type {(number | undefined)}
|
|
18
|
+
*/
|
|
19
|
+
__publicField(this, "rowNumber");
|
|
20
|
+
}
|
|
21
|
+
async onInit() {
|
|
22
|
+
var _a;
|
|
23
|
+
super.onInit();
|
|
24
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
|
|
25
|
+
this.rowNumber = Number(this.editorParams.rowNumber);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
5
28
|
}
|
|
6
29
|
|
|
7
30
|
export { RadioButtonListEditorController };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-span{display:inline-block;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color);white-space:pre-line}.ibiz-span--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-span__code-list{height:100%}.ibiz-form-item .ibiz-span.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-span{display:inline-block;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color);white-space:pre-line}.ibiz-span--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-span__code-list{height:100%}.ibiz-span.is-is-ellipsis{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-form-item .ibiz-span.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
@@ -149,8 +149,9 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
} else {
|
|
150
150
|
content = "- - -";
|
|
151
151
|
}
|
|
152
|
+
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
152
153
|
return createVNode("span", {
|
|
153
|
-
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
154
|
+
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("is-ellipsis", isEllipsis)],
|
|
154
155
|
"ref": "editorRef"
|
|
155
156
|
}, [content]);
|
|
156
157
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface IPqlItem {
|
|
2
|
+
/**
|
|
3
|
+
* 类型
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghengfeng
|
|
6
|
+
* @date 2024-07-12 22:07:04
|
|
7
|
+
* @type {('condition' | 'connection')}
|
|
8
|
+
*/
|
|
9
|
+
type?: 'condition' | 'connection';
|
|
10
|
+
/**
|
|
11
|
+
* 键
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghengfeng
|
|
14
|
+
* @date 2024-07-12 22:07:12
|
|
15
|
+
* @type {{
|
|
16
|
+
* value?: string;
|
|
17
|
+
* label?: string;
|
|
18
|
+
* }}
|
|
19
|
+
*/
|
|
20
|
+
key?: {
|
|
21
|
+
value?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 操作符
|
|
26
|
+
*
|
|
27
|
+
* @author zhanghengfeng
|
|
28
|
+
* @date 2024-07-12 22:07:24
|
|
29
|
+
* @type {{
|
|
30
|
+
* value?: string;
|
|
31
|
+
* label?: string;
|
|
32
|
+
* }}
|
|
33
|
+
*/
|
|
34
|
+
operator?: {
|
|
35
|
+
value?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 值
|
|
40
|
+
*
|
|
41
|
+
* @author zhanghengfeng
|
|
42
|
+
* @date 2024-07-12 22:07:31
|
|
43
|
+
* @type {{
|
|
44
|
+
* value?: string;
|
|
45
|
+
* label?: string;
|
|
46
|
+
* }}
|
|
47
|
+
*/
|
|
48
|
+
value?: {
|
|
49
|
+
value?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface IPqlNode {
|
|
2
|
+
/**
|
|
3
|
+
* 类型
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghengfeng
|
|
6
|
+
* @date 2024-07-12 22:07:25
|
|
7
|
+
* @type {('pql-field'
|
|
8
|
+
* | 'pql-field-operator'
|
|
9
|
+
* | 'pql-field-value'
|
|
10
|
+
* | 'pql-field-connection')}
|
|
11
|
+
*/
|
|
12
|
+
type?: 'pql-field' | 'pql-field-operator' | 'pql-field-value' | 'pql-field-connection';
|
|
13
|
+
/**
|
|
14
|
+
* 标签
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghengfeng
|
|
17
|
+
* @date 2024-07-12 22:07:36
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 值
|
|
23
|
+
*
|
|
24
|
+
* @author zhanghengfeng
|
|
25
|
+
* @date 2024-07-12 22:07:47
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
value?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 文本
|
|
31
|
+
*
|
|
32
|
+
* @author zhanghengfeng
|
|
33
|
+
* @date 2024-07-12 22:07:54
|
|
34
|
+
* @type {string}
|
|
35
|
+
*/
|
|
36
|
+
text?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ValueOP } from '@ibiz-template/runtime';
|
|
2
|
+
export interface ISchemaField {
|
|
3
|
+
/**
|
|
4
|
+
* 属性标识
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghengfeng
|
|
7
|
+
* @date 2024-07-19 12:07:21
|
|
8
|
+
* @type {string}
|
|
9
|
+
*/
|
|
10
|
+
appDEFieldId: string;
|
|
11
|
+
/**
|
|
12
|
+
* 标题
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghengfeng
|
|
15
|
+
* @date 2024-07-19 12:07:31
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
caption: string;
|
|
19
|
+
/**
|
|
20
|
+
* 预置操作符
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghengfeng
|
|
23
|
+
* @date 2024-07-19 12:07:58
|
|
24
|
+
* @type {ValueOP[]}
|
|
25
|
+
*/
|
|
26
|
+
valueOPs: ValueOP[];
|
|
27
|
+
/**
|
|
28
|
+
* 代码表标识
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghengfeng
|
|
31
|
+
* @date 2024-07-19 12:07:46
|
|
32
|
+
* @type {string}
|
|
33
|
+
*/
|
|
34
|
+
appCodeListId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 应用实体标识
|
|
37
|
+
*
|
|
38
|
+
* @author zhanghengfeng
|
|
39
|
+
* @date 2024-07-19 12:07:10
|
|
40
|
+
* @type {string}
|
|
41
|
+
*/
|
|
42
|
+
appDataEntityId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 应用实体完全标识
|
|
45
|
+
*
|
|
46
|
+
* @author zhanghengfeng
|
|
47
|
+
* @date 2024-07-19 12:07:22
|
|
48
|
+
* @type {string}
|
|
49
|
+
*/
|
|
50
|
+
appDataEntityFullTag?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -669,6 +669,11 @@ declare const _default: {
|
|
|
669
669
|
conditionalValues: string;
|
|
670
670
|
};
|
|
671
671
|
firstregister: string;
|
|
672
|
+
recordNav: {
|
|
673
|
+
noFoundCtrl: string;
|
|
674
|
+
firstRecord: string;
|
|
675
|
+
lastRecord: string;
|
|
676
|
+
};
|
|
672
677
|
};
|
|
673
678
|
deAction: {
|
|
674
679
|
responseDataError: string;
|
|
@@ -741,9 +746,6 @@ declare const _default: {
|
|
|
741
746
|
refreshRemind: string;
|
|
742
747
|
confirmRefreshPrompt: string;
|
|
743
748
|
missingErr: string;
|
|
744
|
-
noFoundViewId: string;
|
|
745
|
-
firstPieceOfData: string;
|
|
746
|
-
lastPieceOfData: string;
|
|
747
749
|
subclassAchieve: string;
|
|
748
750
|
missingConfigErr: string;
|
|
749
751
|
noFoundLayoutOccupied: string;
|
|
@@ -969,7 +971,7 @@ declare const _default: {
|
|
|
969
971
|
};
|
|
970
972
|
chart: {
|
|
971
973
|
chartPlaceholder: string;
|
|
972
|
-
|
|
974
|
+
drillDetail: string;
|
|
973
975
|
};
|
|
974
976
|
dashboard: {
|
|
975
977
|
customDashboardContainer: {
|
|
@@ -1170,6 +1172,9 @@ declare const _default: {
|
|
|
1170
1172
|
customTips: string;
|
|
1171
1173
|
emoji: string;
|
|
1172
1174
|
};
|
|
1175
|
+
enableedit: string;
|
|
1176
|
+
expand: string;
|
|
1177
|
+
reduce: string;
|
|
1173
1178
|
};
|
|
1174
1179
|
markdown: {
|
|
1175
1180
|
uploadJsonFormatErr: string;
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -73,10 +73,7 @@ var index = {
|
|
|
73
73
|
refreshPagePrompt: "The data has been modified. Do you want to refresh the page?",
|
|
74
74
|
refreshRemind: "Refresh reminder",
|
|
75
75
|
confirmRefreshPrompt: "The form data has been modified. Are you sure you want to refresh it?",
|
|
76
|
-
missingErr: "context missing
|
|
77
|
-
noFoundViewId: "Cannot find the view whose id is {id}",
|
|
78
|
-
firstPieceOfData: "This is already the first piece of data",
|
|
79
|
-
lastPieceOfData: "This is already the last piece of data",
|
|
76
|
+
missingErr: "context missing srfnavctrlid",
|
|
80
77
|
subclassAchieve: "Subclass implementation",
|
|
81
78
|
missingConfigErr: "Missing configuration for a list component called simplelist",
|
|
82
79
|
noFoundLayoutOccupied: "No tabexppanel layout placeholders found",
|
|
@@ -303,7 +300,7 @@ var index = {
|
|
|
303
300
|
},
|
|
304
301
|
chart: {
|
|
305
302
|
chartPlaceholder: "Chart",
|
|
306
|
-
|
|
303
|
+
drillDetail: "drillDetail"
|
|
307
304
|
},
|
|
308
305
|
dashboard: {
|
|
309
306
|
customDashboardContainer: {
|
|
@@ -505,7 +502,10 @@ var index = {
|
|
|
505
502
|
wangEditor: {
|
|
506
503
|
customTips: "Custom tip",
|
|
507
504
|
emoji: "Emoji"
|
|
508
|
-
}
|
|
505
|
+
},
|
|
506
|
+
enableedit: "Enable edit",
|
|
507
|
+
expand: "Expand",
|
|
508
|
+
reduce: "Reduce"
|
|
509
509
|
},
|
|
510
510
|
markdown: {
|
|
511
511
|
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|
|
@@ -667,6 +667,11 @@ declare const _default: {
|
|
|
667
667
|
conditionalValues: string;
|
|
668
668
|
};
|
|
669
669
|
firstregister: string;
|
|
670
|
+
recordNav: {
|
|
671
|
+
noFoundCtrl: string;
|
|
672
|
+
firstRecord: string;
|
|
673
|
+
lastRecord: string;
|
|
674
|
+
};
|
|
670
675
|
};
|
|
671
676
|
deAction: {
|
|
672
677
|
responseDataError: string;
|
|
@@ -739,9 +744,6 @@ declare const _default: {
|
|
|
739
744
|
refreshRemind: string;
|
|
740
745
|
confirmRefreshPrompt: string;
|
|
741
746
|
missingErr: string;
|
|
742
|
-
noFoundViewId: string;
|
|
743
|
-
firstPieceOfData: string;
|
|
744
|
-
lastPieceOfData: string;
|
|
745
747
|
subclassAchieve: string;
|
|
746
748
|
missingConfigErr: string;
|
|
747
749
|
noFoundLayoutOccupied: string;
|
|
@@ -963,7 +965,7 @@ declare const _default: {
|
|
|
963
965
|
};
|
|
964
966
|
chart: {
|
|
965
967
|
chartPlaceholder: string;
|
|
966
|
-
|
|
968
|
+
drillDetail: string;
|
|
967
969
|
};
|
|
968
970
|
dashboard: {
|
|
969
971
|
customDashboardContainer: {
|
|
@@ -1164,6 +1166,9 @@ declare const _default: {
|
|
|
1164
1166
|
customTips: string;
|
|
1165
1167
|
emoji: string;
|
|
1166
1168
|
};
|
|
1169
|
+
enableedit: string;
|
|
1170
|
+
expand: string;
|
|
1171
|
+
reduce: string;
|
|
1167
1172
|
};
|
|
1168
1173
|
markdown: {
|
|
1169
1174
|
uploadJsonFormatErr: string;
|
|
@@ -73,10 +73,7 @@ var index = {
|
|
|
73
73
|
refreshPagePrompt: "\u6570\u636E\u5DF2\u88AB\u4FEE\u6539\u662F\u5426\u5237\u65B0\u9875\u9762\uFF1F",
|
|
74
74
|
refreshRemind: "\u5237\u65B0\u63D0\u9192",
|
|
75
75
|
confirmRefreshPrompt: "\u8868\u5355\u6570\u636E\u5DF2\u7ECF\u4FEE\u6539\uFF0C\u786E\u5B9A\u8981\u5237\u65B0\uFF1F",
|
|
76
|
-
missingErr: "
|
|
77
|
-
noFoundViewId: "\u627E\u4E0D\u5230id\u662F{id}\u7684\u89C6\u56FE",
|
|
78
|
-
firstPieceOfData: "\u5DF2\u7ECF\u662F\u7B2C\u4E00\u6761\u6570\u636E\u4E86",
|
|
79
|
-
lastPieceOfData: "\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u6761\u6570\u636E\u4E86",
|
|
76
|
+
missingErr: "\u5E94\u7528\u4E0A\u4E0B\u6587\u7F3A\u5C11srfnavctrlid",
|
|
80
77
|
subclassAchieve: "\u5B50\u7C7B\u5B9E\u73B0",
|
|
81
78
|
missingConfigErr: "\u7F3A\u5C11\u914D\u7F6E\u53EBsimplelist\u7684\u5217\u8868\u90E8\u4EF6",
|
|
82
79
|
noFoundLayoutOccupied: "\u672A\u627E\u5230tabexppanel\u5E03\u5C40\u5360\u4F4D",
|
|
@@ -299,7 +296,7 @@ var index = {
|
|
|
299
296
|
},
|
|
300
297
|
chart: {
|
|
301
298
|
chartPlaceholder: "\u56FE\u8868",
|
|
302
|
-
|
|
299
|
+
drillDetail: "\u68C0\u67E5\u660E\u7EC6"
|
|
303
300
|
},
|
|
304
301
|
dashboard: {
|
|
305
302
|
customDashboardContainer: {
|
|
@@ -501,7 +498,10 @@ var index = {
|
|
|
501
498
|
wangEditor: {
|
|
502
499
|
customTips: "\u81EA\u5B9A\u4E49\u63D0\u793A",
|
|
503
500
|
emoji: "\u8868\u60C5"
|
|
504
|
-
}
|
|
501
|
+
},
|
|
502
|
+
enableedit: "\u7F16\u8F91",
|
|
503
|
+
expand: "\u653E\u5927",
|
|
504
|
+
reduce: "\u7F29\u5C0F"
|
|
505
505
|
},
|
|
506
506
|
markdown: {
|
|
507
507
|
uploadJsonFormatErr: "\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
@@ -19,7 +19,7 @@ export declare const IBizShortCut: import("@ibiz-template/vue3-util").TypeWithIn
|
|
|
19
19
|
srfsessionid: string;
|
|
20
20
|
srfappid: string;
|
|
21
21
|
srfsimple?: boolean | undefined;
|
|
22
|
-
|
|
22
|
+
srfnavctrlid?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
params: IParams;
|
|
25
25
|
openMode: string;
|
|
@@ -23,7 +23,7 @@ export declare const ShortCut: import("vue").DefineComponent<{
|
|
|
23
23
|
srfsessionid: string;
|
|
24
24
|
srfappid: string;
|
|
25
25
|
srfsimple?: boolean | undefined;
|
|
26
|
-
|
|
26
|
+
srfnavctrlid?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
params: IParams;
|
|
29
29
|
openMode: string;
|
|
@@ -10,16 +10,22 @@ export declare class FullscreenUtil {
|
|
|
10
10
|
* @memberof FullscreenUtil
|
|
11
11
|
*/
|
|
12
12
|
constructor();
|
|
13
|
+
/**
|
|
14
|
+
* 全屏样式
|
|
15
|
+
* @author fzh
|
|
16
|
+
* @date 2024-07-15 19:39:40
|
|
17
|
+
*/
|
|
18
|
+
FullscreenClass: string;
|
|
13
19
|
/**
|
|
14
20
|
* 指定元素全屏
|
|
15
21
|
* @author fzh
|
|
16
22
|
* @date 2024-07-09 19:39:40
|
|
17
23
|
*/
|
|
18
|
-
openElementFullscreen(div: HTMLDivElement): void;
|
|
24
|
+
openElementFullscreen(div: HTMLDivElement, data?: IData): void;
|
|
19
25
|
/**
|
|
20
26
|
* 页面退出全屏
|
|
21
27
|
* @author fzh
|
|
22
28
|
* @date 2024-07-09 19:39:40
|
|
23
29
|
*/
|
|
24
|
-
|
|
30
|
+
closeElementFullscreen(): void;
|
|
25
31
|
}
|
|
@@ -3,21 +3,41 @@ import ElementPlus from 'element-plus';
|
|
|
3
3
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
6
12
|
class FullscreenUtil {
|
|
7
13
|
/**
|
|
8
14
|
* Creates an instance of FullscreenUtil.
|
|
9
15
|
* @memberof FullscreenUtil
|
|
10
16
|
*/
|
|
11
17
|
constructor() {
|
|
18
|
+
/**
|
|
19
|
+
* 全屏样式
|
|
20
|
+
* @author fzh
|
|
21
|
+
* @date 2024-07-15 19:39:40
|
|
22
|
+
*/
|
|
23
|
+
__publicField(this, "FullscreenClass", "");
|
|
12
24
|
}
|
|
13
25
|
/**
|
|
14
26
|
* 指定元素全屏
|
|
15
27
|
* @author fzh
|
|
16
28
|
* @date 2024-07-09 19:39:40
|
|
17
29
|
*/
|
|
18
|
-
openElementFullscreen(div) {
|
|
30
|
+
openElementFullscreen(div, data) {
|
|
31
|
+
if (!this.FullscreenClass && data) {
|
|
32
|
+
if (data.class) {
|
|
33
|
+
this.FullscreenClass = data.class;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
19
36
|
if (!document.fullscreenElement && div) {
|
|
20
37
|
div.requestFullscreen();
|
|
38
|
+
if (this.FullscreenClass) {
|
|
39
|
+
div.classList.toggle(this.FullscreenClass);
|
|
40
|
+
}
|
|
21
41
|
div.style.background = "white";
|
|
22
42
|
const content = document.createElement("div");
|
|
23
43
|
content.id = "fullscreen";
|
|
@@ -35,7 +55,7 @@ class FullscreenUtil {
|
|
|
35
55
|
* @author fzh
|
|
36
56
|
* @date 2024-07-09 19:39:40
|
|
37
57
|
*/
|
|
38
|
-
|
|
58
|
+
closeElementFullscreen() {
|
|
39
59
|
document.exitFullscreen();
|
|
40
60
|
}
|
|
41
61
|
}
|
|
@@ -424,54 +424,50 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
424
424
|
* @param {string} type
|
|
425
425
|
*/
|
|
426
426
|
async changeRecord(type) {
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
var _a;
|
|
428
|
+
const controlId = "".concat(this.view.context.srfnavctrlid);
|
|
429
|
+
if (!controlId) {
|
|
429
430
|
throw new RuntimeError(ibiz.i18n.t("viewEngine.missingErr"));
|
|
430
431
|
}
|
|
431
|
-
const
|
|
432
|
-
if (!view) {
|
|
433
|
-
throw new RuntimeError(
|
|
434
|
-
ibiz.i18n.t("viewEngine.noFoundViewId", { id: viewId })
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
const items = await view.call(ViewCallTag.GET_ALL_DATA);
|
|
438
|
-
const index = items.findIndex(
|
|
439
|
-
(item) => item.srfkey === this.form.state.data.srfkey
|
|
440
|
-
);
|
|
432
|
+
const dataKey = this.form.state.data.srfkey;
|
|
441
433
|
let targetItem;
|
|
442
434
|
switch (type) {
|
|
443
435
|
case SysUIActionTag.FIRST_RECORD:
|
|
444
|
-
|
|
445
|
-
ibiz.message.info(ibiz.i18n.t("viewEngine.firstPieceOfData"));
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
targetItem = items[0];
|
|
436
|
+
targetItem = await ibiz.util.record.getFirstRecord(controlId, dataKey);
|
|
449
437
|
break;
|
|
450
438
|
case SysUIActionTag.LAST_RECORD:
|
|
451
|
-
|
|
452
|
-
ibiz.message.info(ibiz.i18n.t("viewEngine.lastPieceOfData"));
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
targetItem = items[items.length - 1];
|
|
439
|
+
targetItem = await ibiz.util.record.getLastRecord(controlId, dataKey);
|
|
456
440
|
break;
|
|
457
441
|
case SysUIActionTag.PREV_RECORD:
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
targetItem = items[index - 1];
|
|
442
|
+
targetItem = await ibiz.util.record.getPreviousRecord(
|
|
443
|
+
controlId,
|
|
444
|
+
dataKey
|
|
445
|
+
);
|
|
463
446
|
break;
|
|
464
447
|
case SysUIActionTag.NEXT_RECORD:
|
|
465
|
-
|
|
466
|
-
ibiz.message.info(ibiz.i18n.t("viewEngine.lastPieceOfData"));
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
targetItem = items[index + 1];
|
|
448
|
+
targetItem = await ibiz.util.record.getNextRecord(controlId, dataKey);
|
|
470
449
|
break;
|
|
471
450
|
default:
|
|
472
451
|
break;
|
|
473
452
|
}
|
|
474
453
|
if (targetItem) {
|
|
454
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
455
|
+
this.form.model.appDataEntityId,
|
|
456
|
+
this.form.context.srfappid
|
|
457
|
+
);
|
|
458
|
+
if (appDataEntity && appDataEntity.minorAppDERSs && appDataEntity.minorAppDERSs.length > 0) {
|
|
459
|
+
(_a = appDataEntity.minorAppDERSs) == null ? void 0 : _a.forEach((minorAppDERS) => {
|
|
460
|
+
if (minorAppDERS.majorAppDataEntityId && minorAppDERS.parentAppDEFieldId) {
|
|
461
|
+
const majorAppDataEntityCodeName = calcDeCodeNameById(
|
|
462
|
+
minorAppDERS.majorAppDataEntityId
|
|
463
|
+
);
|
|
464
|
+
if (majorAppDataEntityCodeName && targetItem[minorAppDERS.parentAppDEFieldId]) {
|
|
465
|
+
this.view.context[majorAppDataEntityCodeName] = targetItem[minorAppDERS.parentAppDEFieldId];
|
|
466
|
+
this.form.context[majorAppDataEntityCodeName] = targetItem[minorAppDERS.parentAppDEFieldId];
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}
|
|
475
471
|
this.view.context[this.deName] = targetItem.srfkey;
|
|
476
472
|
this.form.context[this.deName] = targetItem.srfkey;
|
|
477
473
|
this.load();
|