@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.
Files changed (167) hide show
  1. package/dist/chart-0UV2FAN6.js +1 -0
  2. package/dist/index-YQyitjSg.js +1 -0
  3. package/dist/index-maJGu4b8.js +4 -0
  4. package/dist/index-trS6uS3E.js +1 -0
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/wang-editor-AcjI1Mdj.js +1 -0
  8. package/dist/{xlsx-util-cTIccUxx.js → xlsx-util-OUxT4A8O.js} +1 -1
  9. package/es/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
  10. package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +10 -0
  11. package/es/common/index.mjs +2 -0
  12. package/es/common/pql-editor/components/index.d.ts +1 -0
  13. package/es/common/pql-editor/components/index.mjs +3 -0
  14. package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
  15. package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +28 -0
  16. package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +49 -0
  17. package/es/common/pql-editor/pql-editor.css +1 -0
  18. package/es/common/pql-editor/pql-editor.d.ts +68 -0
  19. package/es/common/pql-editor/pql-editor.mjs +606 -0
  20. package/es/common/pql-editor/pql-editor.module.d.ts +47 -0
  21. package/es/common/pql-editor/pql-editor.module.mjs +176 -0
  22. package/es/common/pql-editor/utils/index.d.ts +15 -0
  23. package/es/common/pql-editor/utils/index.mjs +270 -0
  24. package/es/control/chart/chart.css +1 -1
  25. package/es/control/chart/chart.d.ts +5 -5
  26. package/es/control/chart/chart.mjs +60 -36
  27. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +16 -13
  28. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  29. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +8 -0
  30. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +12 -2
  31. package/es/control/dashboard/portlet/report-portlet/index.d.ts +1 -0
  32. package/es/control/dashboard/portlet/report-portlet/report-portlet.d.ts +1 -0
  33. package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
  34. package/es/control/dashboard/portlet/report-portlet/report-portlet.provider.d.ts +2 -2
  35. package/es/control/drtab/drtab-control.util.mjs +1 -1
  36. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +15 -12
  37. package/es/control/grid/grid/grid.mjs +2 -2
  38. package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -2
  39. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +32 -2
  40. package/es/control/grid/grid-column/grid-field-column/index.d.ts +4 -0
  41. package/es/control/list/list.mjs +13 -1
  42. package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
  43. package/es/control/search-bar/filter-tree/filter-tree.d.ts +30 -3
  44. package/es/control/search-bar/filter-tree/filter-tree.mjs +83 -9
  45. package/es/control/search-bar/search-bar.mjs +10 -1
  46. package/es/control/tree-grid/index.d.ts +1 -0
  47. package/es/control/tree-grid/tree-grid.d.ts +1 -0
  48. package/es/control/tree-grid/tree-grid.mjs +4 -1
  49. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +1 -1
  50. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +1 -1
  51. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +4 -9
  52. package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -1
  53. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -1
  54. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +1 -1
  55. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
  56. package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
  57. package/es/editor/check-box-list/checkbox-list-editor.controller.d.ts +7 -0
  58. package/es/editor/check-box-list/checkbox-list-editor.controller.mjs +11 -0
  59. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
  60. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
  61. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +2 -1
  62. package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
  63. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
  64. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
  65. package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
  66. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -1
  67. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +2 -2
  68. package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +1 -1
  69. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
  70. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
  71. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
  72. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
  73. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
  74. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
  75. package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
  76. package/es/editor/html/wang-editor/wang-editor.mjs +3 -0
  77. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -1
  78. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
  79. package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +1 -1
  80. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
  81. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
  82. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +2 -1
  83. package/es/editor/radio-button-list/radio-button-list.controller.d.ts +8 -0
  84. package/es/editor/radio-button-list/radio-button-list.controller.mjs +23 -0
  85. package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
  86. package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +1 -1
  87. package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
  88. package/es/editor/span/span/span.css +1 -1
  89. package/es/editor/span/span/span.d.ts +1 -1
  90. package/es/editor/span/span/span.mjs +2 -1
  91. package/es/editor/span/span-link/span-link.d.ts +1 -1
  92. package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
  93. package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
  94. package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -1
  95. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
  96. package/es/editor/text-box/input/input.d.ts +1 -1
  97. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
  98. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +1 -1
  99. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
  100. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +1 -1
  101. package/es/interface/i-pql-item.d.ts +52 -0
  102. package/es/interface/i-pql-item.mjs +1 -0
  103. package/es/interface/i-pql-node.d.ts +37 -0
  104. package/es/interface/i-pql-node.mjs +1 -0
  105. package/es/interface/i-schema-field.d.ts +51 -0
  106. package/es/interface/i-schema-field.mjs +1 -0
  107. package/es/interface/index.d.ts +3 -0
  108. package/es/interface/index.mjs +5 -0
  109. package/es/locale/en/index.d.ts +9 -4
  110. package/es/locale/en/index.mjs +6 -6
  111. package/es/locale/zh-CN/index.d.ts +9 -4
  112. package/es/locale/zh-CN/index.mjs +6 -6
  113. package/es/panel-component/short-cut/index.d.ts +1 -1
  114. package/es/panel-component/short-cut/short-cut.d.ts +1 -1
  115. package/es/util/fullscreen/fullscreen-util.d.ts +8 -2
  116. package/es/util/fullscreen/fullscreen-util.mjs +22 -2
  117. package/es/view-engine/edit-view.engine.mjs +28 -32
  118. package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +10 -0
  119. package/lib/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
  120. package/lib/common/index.cjs +2 -0
  121. package/lib/common/pql-editor/components/index.cjs +7 -0
  122. package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.cjs +51 -0
  123. package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
  124. package/lib/common/pql-editor/pql-editor.cjs +608 -0
  125. package/lib/common/pql-editor/pql-editor.css +1 -0
  126. package/lib/common/pql-editor/pql-editor.module.cjs +182 -0
  127. package/lib/common/pql-editor/utils/index.cjs +280 -0
  128. package/lib/control/chart/chart.cjs +59 -35
  129. package/lib/control/chart/chart.css +1 -1
  130. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +12 -2
  131. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  132. package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
  133. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  134. package/lib/control/grid/grid/grid.cjs +2 -2
  135. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +32 -2
  136. package/lib/control/list/list.cjs +13 -1
  137. package/lib/control/search-bar/filter-tree/filter-tree.cjs +82 -8
  138. package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
  139. package/lib/control/search-bar/search-bar.cjs +10 -1
  140. package/lib/control/tree-grid/tree-grid.cjs +4 -1
  141. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -8
  142. package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -0
  143. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -1
  144. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
  145. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
  146. package/lib/editor/html/wang-editor/wang-editor.cjs +3 -0
  147. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -1
  148. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
  149. package/lib/editor/radio-button-list/radio-button-list.controller.cjs +23 -0
  150. package/lib/editor/span/span/span.cjs +2 -1
  151. package/lib/editor/span/span/span.css +1 -1
  152. package/lib/interface/i-pql-item.cjs +3 -0
  153. package/lib/interface/i-pql-node.cjs +3 -0
  154. package/lib/interface/i-schema-field.cjs +3 -0
  155. package/lib/interface/index.cjs +7 -0
  156. package/lib/locale/en/index.cjs +6 -6
  157. package/lib/locale/zh-CN/index.cjs +6 -6
  158. package/lib/util/fullscreen/fullscreen-util.cjs +22 -2
  159. package/lib/view-engine/edit-view.engine.cjs +28 -32
  160. package/package.json +10 -9
  161. package/dist/chart-JFzIz6Oa.js +0 -1
  162. package/dist/index-Nw4GzACH.js +0 -1
  163. package/dist/index-Va9AxP7w.js +0 -4
  164. package/dist/index-qjfHTzTv.js +0 -1
  165. package/dist/wang-editor-YqnK5uQU.js +0 -1
  166. /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
  167. /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 };
@@ -68,6 +68,6 @@ export declare const IBizRate: import("vue").DefineComponent<{
68
68
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
69
69
  }, {
70
70
  disabled: boolean;
71
- autoFocus: boolean;
72
71
  readonly: boolean;
72
+ autoFocus: boolean;
73
73
  }, {}>;
@@ -65,6 +65,6 @@ export declare const IBizRaw: import("vue").DefineComponent<{
65
65
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
66
66
  }, {
67
67
  disabled: boolean;
68
- autoFocus: boolean;
69
68
  readonly: boolean;
69
+ autoFocus: boolean;
70
70
  }, {}>;
@@ -74,6 +74,6 @@ export declare const IBizSlider: import("vue").DefineComponent<{
74
74
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
75
75
  }, {
76
76
  disabled: boolean;
77
- autoFocus: boolean;
78
77
  readonly: boolean;
78
+ autoFocus: boolean;
79
79
  }, {}>;
@@ -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)}
@@ -90,6 +90,6 @@ export declare const IBizSpan: import("vue").DefineComponent<{
90
90
  };
91
91
  }>>, {
92
92
  disabled: boolean;
93
- autoFocus: boolean;
94
93
  readonly: boolean;
94
+ autoFocus: boolean;
95
95
  }, {}>;
@@ -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
  }
@@ -65,6 +65,6 @@ export declare const IBizSpanLink: import("vue").DefineComponent<{
65
65
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
66
66
  }, {
67
67
  disabled: boolean;
68
- autoFocus: boolean;
69
68
  readonly: boolean;
69
+ autoFocus: boolean;
70
70
  }, {}>;
@@ -71,6 +71,6 @@ export declare const IBizStepper: import("vue").DefineComponent<{
71
71
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
72
72
  }, {
73
73
  disabled: boolean;
74
- autoFocus: boolean;
75
74
  readonly: boolean;
75
+ autoFocus: boolean;
76
76
  }, {}>;
@@ -68,6 +68,6 @@ export declare const IBizSwitch: import("vue").DefineComponent<{
68
68
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
69
69
  }, {
70
70
  disabled: boolean;
71
- autoFocus: boolean;
72
71
  readonly: boolean;
72
+ autoFocus: boolean;
73
73
  }, {}>;
@@ -72,6 +72,6 @@ export declare const IBizInputIP: import("vue").DefineComponent<{
72
72
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
73
73
  }, {
74
74
  disabled: boolean;
75
- autoFocus: boolean;
76
75
  readonly: boolean;
76
+ autoFocus: boolean;
77
77
  }, {}>;
@@ -75,6 +75,6 @@ export declare const IBizInputNumber: import("vue").DefineComponent<{
75
75
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
76
76
  }, {
77
77
  disabled: boolean;
78
- autoFocus: boolean;
79
78
  readonly: boolean;
79
+ autoFocus: boolean;
80
80
  }, {}>;
@@ -114,6 +114,6 @@ export declare const IBizInput: import("vue").DefineComponent<{
114
114
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
115
115
  }, {
116
116
  disabled: boolean;
117
- autoFocus: boolean;
118
117
  readonly: boolean;
118
+ autoFocus: boolean;
119
119
  }, {}>;
@@ -78,6 +78,6 @@ export declare const IBizFileUpload: import("vue").DefineComponent<{
78
78
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
79
79
  }, {
80
80
  disabled: boolean;
81
- autoFocus: boolean;
82
81
  readonly: boolean;
82
+ autoFocus: boolean;
83
83
  }, {}>;
@@ -62,6 +62,6 @@ export declare const IBizImagePreview: import("vue").DefineComponent<{
62
62
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
63
63
  }, {
64
64
  disabled: boolean;
65
- autoFocus: boolean;
66
65
  readonly: boolean;
66
+ autoFocus: boolean;
67
67
  }, {}>;
@@ -82,6 +82,6 @@ export declare const IBizImageUpload: import("vue").DefineComponent<{
82
82
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
83
83
  }, {
84
84
  disabled: boolean;
85
- autoFocus: boolean;
86
85
  readonly: boolean;
86
+ autoFocus: boolean;
87
87
  }, {}>;
@@ -76,6 +76,6 @@ export declare const IBizSearchCondEdit: import("vue").DefineComponent<{
76
76
  onEnter?: ((_event?: IData | undefined) => any) | undefined;
77
77
  }, {
78
78
  disabled: boolean;
79
- autoFocus: boolean;
80
79
  readonly: boolean;
80
+ autoFocus: boolean;
81
81
  }, {}>;
@@ -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";
@@ -0,0 +1,3 @@
1
+ export * from './i-schema-field';
2
+ export * from './i-pql-node';
3
+ export * from './i-pql-item';
@@ -0,0 +1,5 @@
1
+ import './i-schema-field.mjs';
2
+ import './i-pql-node.mjs';
3
+ import './i-pql-item.mjs';
4
+
5
+ "use strict";
@@ -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
- drillDown: string;
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;
@@ -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 srfpaginationviewid",
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
- drillDown: "DrillDown"
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
- drillDown: string;
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: "context\u7F3A\u5C11srfpaginationviewid",
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
- drillDown: "\u68C0\u67E5\u660E\u7EC6"
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
- srfpaginationviewid?: string | undefined;
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
- srfpaginationviewid?: string | undefined;
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
- closeFullscreen(): void;
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
- closeFullscreen() {
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
- const viewId = this.view.context.srfpaginationviewid;
428
- if (!viewId) {
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 view = ibiz.util.viewStack.getView(viewId);
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
- if (index === 0) {
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
- if (index === items.length - 1) {
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
- if (index === 0) {
459
- ibiz.message.info(ibiz.i18n.t("viewEngine.firstPieceOfData"));
460
- return;
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
- if (index === items.length - 1) {
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();