@ibiz-template/vue3-components 0.7.41-alpha.10 → 0.7.41-alpha.12
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/ibiz-markdown-editor-KyK5mBTS.js +1 -0
- package/dist/{index-tjsobxd3.js → index-EYFbyMUF.js} +1 -1
- package/dist/{index-CsiyXR27.js → index-kNUznzXY.js} +1 -1
- package/dist/index-pyv7Wdpx.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-TYKjfyR5.js +1 -0
- package/dist/{xlsx-util-oX2OlM-T.js → xlsx-util-Q9msA8ef.js} +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +2 -37
- package/es/common/grid-setting/grid-setting.mjs +8 -4
- package/es/common/rawitem/rawitem.mjs +4 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +4 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +4 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +17 -4
- package/es/control/gantt/gantt.mjs +1 -0
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +21 -0
- package/es/control/toolbar/toolbar.mjs +7 -7
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +9 -8
- package/es/editor/array/ibiz-array/ibiz-array.mjs +9 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -0
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +6 -6
- package/es/editor/code/monaco-editor/monaco-editor.mjs +11 -0
- package/es/editor/color-picker/color-picker-editor.controller.mjs +4 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +7 -6
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +8 -8
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +6 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +5 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +2 -0
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +6 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +5 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -0
- package/es/editor/html/html-editor.controller.mjs +23 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +7 -5
- package/es/editor/html/wang-editor/wang-editor.mjs +18 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +3 -2
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +2 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +7 -5
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +6 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +3 -0
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -0
- package/es/editor/span/span/span.d.ts +2 -0
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +2 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +3 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
- package/es/editor/text-box/input/input.d.ts +3 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +6 -5
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +8 -7
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +12 -2
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -2
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +5 -2
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +6 -5
- package/es/editor/upload/upload-editor.controller.mjs +31 -1
- package/es/editor/upload/use/use-iview-upload.mjs +8 -1
- package/es/locale/en/index.d.ts +7 -0
- package/es/locale/en/index.mjs +6 -0
- package/es/locale/zh-CN/index.d.ts +7 -0
- package/es/locale/zh-CN/index.mjs +6 -0
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +41 -0
- package/es/panel-component/split-container/split-container.controller.mjs +2 -1
- package/es/panel-component/user-message/async-action/async-action/async-action.provider.mjs +14 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +34 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +88 -0
- package/es/panel-component/user-message/index.d.ts +2 -32
- package/es/panel-component/user-message/index.mjs +21 -11
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.mjs +1 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +8 -2
- package/es/view-engine/md-custom-view.engine.mjs +14 -2
- package/es/web-app/create-vue-app.mjs +2 -2
- package/lib/common/grid-setting/grid-setting.cjs +8 -4
- package/lib/common/rawitem/rawitem.cjs +4 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +4 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +17 -4
- package/lib/control/gantt/gantt.cjs +1 -0
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/list/list.cjs +21 -0
- package/lib/control/list/list.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +7 -7
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +9 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +11 -0
- package/lib/editor/color-picker/color-picker-editor.controller.cjs +4 -1
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +8 -8
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
- package/lib/editor/html/html-editor.controller.cjs +23 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +18 -1
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +2 -2
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +6 -0
- package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +3 -0
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +12 -2
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +5 -2
- package/lib/editor/upload/upload-editor.controller.cjs +31 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +8 -1
- package/lib/locale/en/index.cjs +6 -0
- package/lib/locale/zh-CN/index.cjs +6 -0
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +45 -0
- package/lib/panel-component/split-container/split-container.controller.cjs +2 -1
- package/lib/panel-component/user-message/async-action/async-action/async-action.provider.cjs +14 -0
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +90 -0
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/lib/panel-component/user-message/index.cjs +21 -11
- package/lib/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.cjs +1 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +14 -2
- package/lib/web-app/create-vue-app.cjs +2 -2
- package/package.json +13 -8
- package/dist/ibiz-markdown-editor-V31Pwvs_.js +0 -1
- package/dist/index-s6VfCazO.js +0 -4
- package/dist/wang-editor-EqGztmuv.js +0 -1
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +0 -23
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +0 -27
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.9_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.41-alpha.12_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.41-alpha.9_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.41-alpha.12_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
|
@@ -70,14 +70,24 @@ class UploadEditorController extends EditorController {
|
|
|
70
70
|
size,
|
|
71
71
|
uploadParams,
|
|
72
72
|
exportParams,
|
|
73
|
-
autoPreview
|
|
73
|
+
autoPreview,
|
|
74
|
+
isdrag,
|
|
75
|
+
uploadparams,
|
|
76
|
+
exportparams,
|
|
77
|
+
autopreview
|
|
74
78
|
} = this.editorParams;
|
|
75
79
|
if (isDrag) {
|
|
76
80
|
this.isDrag = Boolean(isDrag);
|
|
77
81
|
}
|
|
82
|
+
if (isdrag) {
|
|
83
|
+
this.isDrag = Boolean(isdrag);
|
|
84
|
+
}
|
|
78
85
|
if (autoPreview) {
|
|
79
86
|
this.autoPreview = autoPreview;
|
|
80
87
|
}
|
|
88
|
+
if (autopreview) {
|
|
89
|
+
this.autoPreview = autopreview;
|
|
90
|
+
}
|
|
81
91
|
if (multiple) {
|
|
82
92
|
this.multiple = Boolean(multiple);
|
|
83
93
|
}
|
|
@@ -97,6 +107,16 @@ class UploadEditorController extends EditorController {
|
|
|
97
107
|
);
|
|
98
108
|
}
|
|
99
109
|
}
|
|
110
|
+
if (uploadparams) {
|
|
111
|
+
try {
|
|
112
|
+
this.uploadParams = JSON.parse(uploadparams);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
throw new RuntimeModelError(
|
|
115
|
+
uploadparams,
|
|
116
|
+
ibiz.i18n.t("editor.upload.uploadJsonFormatErr")
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
100
120
|
if (exportParams) {
|
|
101
121
|
try {
|
|
102
122
|
this.exportParams = JSON.parse(exportParams);
|
|
@@ -107,6 +127,16 @@ class UploadEditorController extends EditorController {
|
|
|
107
127
|
);
|
|
108
128
|
}
|
|
109
129
|
}
|
|
130
|
+
if (exportparams) {
|
|
131
|
+
try {
|
|
132
|
+
this.exportParams = JSON.parse(exportparams);
|
|
133
|
+
} catch (error) {
|
|
134
|
+
throw new RuntimeModelError(
|
|
135
|
+
exportparams,
|
|
136
|
+
ibiz.i18n.t("editor.upload.exportJsonFormatErr")
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
110
140
|
}
|
|
111
141
|
}
|
|
112
142
|
}
|
|
@@ -25,11 +25,18 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
25
25
|
() => props.data,
|
|
26
26
|
(newVal) => {
|
|
27
27
|
if (newVal) {
|
|
28
|
+
const editorParams = { ...c.editorParams };
|
|
29
|
+
if (editorParams.uploadparams) {
|
|
30
|
+
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
31
|
+
}
|
|
32
|
+
if (editorParams.exportparams) {
|
|
33
|
+
editorParams.exportParams = JSON.parse(editorParams.exportparams);
|
|
34
|
+
}
|
|
28
35
|
const urls = ibiz.util.file.calcFileUpDownUrl(
|
|
29
36
|
c.context,
|
|
30
37
|
c.params,
|
|
31
38
|
newVal,
|
|
32
|
-
|
|
39
|
+
editorParams
|
|
33
40
|
);
|
|
34
41
|
uploadUrl.value = urls.uploadUrl;
|
|
35
42
|
downloadUrl.value = urls.downloadUrl;
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ declare const _default: {
|
|
|
136
136
|
changeGroupError: string;
|
|
137
137
|
computeMoveMetaError: string;
|
|
138
138
|
unclassified: string;
|
|
139
|
+
today: string;
|
|
139
140
|
};
|
|
140
141
|
editor: {
|
|
141
142
|
editorNoConfigured: string;
|
|
@@ -1476,6 +1477,12 @@ declare const _default: {
|
|
|
1476
1477
|
successImport: string;
|
|
1477
1478
|
ImportFailed: string;
|
|
1478
1479
|
};
|
|
1480
|
+
asyncDataExport: {
|
|
1481
|
+
exportDetailPrompt: string;
|
|
1482
|
+
excuteTime: string;
|
|
1483
|
+
downloadFile: string;
|
|
1484
|
+
executing: string;
|
|
1485
|
+
};
|
|
1479
1486
|
asyncActionTab: {
|
|
1480
1487
|
noSupportType: string;
|
|
1481
1488
|
noAsyncAction: string;
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -743,6 +743,12 @@ var index = {
|
|
|
743
743
|
successImport: "Number of successful imports: ",
|
|
744
744
|
ImportFailed: "Number of import failures: "
|
|
745
745
|
},
|
|
746
|
+
asyncDataExport: {
|
|
747
|
+
exportDetailPrompt: "Export data details-{name}",
|
|
748
|
+
excuteTime: "Execution time",
|
|
749
|
+
downloadFile: "DownLoad File",
|
|
750
|
+
executing: "Executing......"
|
|
751
|
+
},
|
|
746
752
|
asyncActionTab: {
|
|
747
753
|
noSupportType: "Asynchronous operation type {type} is not supported currently",
|
|
748
754
|
noAsyncAction: "There are currently no asynchronous operations available"
|
|
@@ -136,6 +136,7 @@ declare const _default: {
|
|
|
136
136
|
changeGroupError: string;
|
|
137
137
|
computeMoveMetaError: string;
|
|
138
138
|
unclassified: string;
|
|
139
|
+
today: string;
|
|
139
140
|
};
|
|
140
141
|
editor: {
|
|
141
142
|
editorNoConfigured: string;
|
|
@@ -1471,6 +1472,12 @@ declare const _default: {
|
|
|
1471
1472
|
successImport: string;
|
|
1472
1473
|
ImportFailed: string;
|
|
1473
1474
|
};
|
|
1475
|
+
asyncDataExport: {
|
|
1476
|
+
exportDetailPrompt: string;
|
|
1477
|
+
excuteTime: string;
|
|
1478
|
+
downloadFile: string;
|
|
1479
|
+
executing: string;
|
|
1480
|
+
};
|
|
1474
1481
|
asyncActionTab: {
|
|
1475
1482
|
noSupportType: string;
|
|
1476
1483
|
noAsyncAction: string;
|
|
@@ -739,6 +739,12 @@ var index = {
|
|
|
739
739
|
successImport: "\u6210\u529F\u5BFC\u5165\u6570: ",
|
|
740
740
|
ImportFailed: "\u5BFC\u5165\u5931\u8D25\u6570: "
|
|
741
741
|
},
|
|
742
|
+
asyncDataExport: {
|
|
743
|
+
exportDetailPrompt: "\u5BFC\u51FA\u6570\u636E\u8BE6\u60C5-{name}",
|
|
744
|
+
excuteTime: "\u6267\u884C\u65F6\u95F4",
|
|
745
|
+
downloadFile: "\u4E0B\u8F7D\u6587\u4EF6",
|
|
746
|
+
executing: "\u6267\u884C\u4E2D......"
|
|
747
|
+
},
|
|
742
748
|
asyncActionTab: {
|
|
743
749
|
noSupportType: "\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{type}\u6682\u672A\u652F\u6301",
|
|
744
750
|
noAsyncAction: "\u6682\u65E0\u5F02\u6B65\u64CD\u4F5C"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
+
import { __module as dist$1 } from '../../../../../../../_virtual/index.mjs';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
*****************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
*****************************************************************************/
|
|
19
|
+
var dist = dist$1.exports;
|
|
20
|
+
|
|
21
|
+
(function (module, exports) {
|
|
22
|
+
'use strict';(function(q,r){"object"==='object'&&"undefined"!=='object'?module.exports=r():"function"===typeof undefined&&undefined.amd?undefined(r):(q=q||self,q.AMapLoader=r());})(commonjsGlobal,function(){function q(a,e,h,c){function b(a){return a instanceof h?a:new h(function(b){b(a);})}return new (h||(h=Promise))(function(h,g){function f(a){try{d(c.next(a));}catch(u){g(u);}}function k(a){try{d(c["throw"](a));}catch(u){g(u);}}function d(a){a.done?h(a.value):b(a.value).then(f,k);}d((c=c.apply(a,e||[])).next());})}
|
|
23
|
+
function r(a,g){function e(a){return function(f){return c([a,f])}}function c(d){if(m)throw new TypeError("Generator is already executing.");for(;b;)try{if(m=1,k&&(f=d[0]&2?k["return"]:d[0]?k["throw"]||((f=k["return"])&&f.call(k),0):k.next)&&!(f=f.call(k,d[1])).done)return f;if(k=0,f)d=[d[0]&2,f.value];switch(d[0]){case 0:case 1:f=d;break;case 4:return b.label++,{value:d[1],done:!1};case 5:b.label++;k=d[1];d=[0];continue;case 7:d=b.ops.pop();b.trys.pop();continue;default:if(!(f=b.trys,f=0<f.length&&
|
|
24
|
+
f[f.length-1])&&(6===d[0]||2===d[0])){b=0;continue}if(3===d[0]&&(!f||d[1]>f[0]&&d[1]<f[3]))b.label=d[1];else if(6===d[0]&&b.label<f[1])b.label=f[1],f=d;else if(f&&b.label<f[2])b.label=f[2],b.ops.push(d);else {f[2]&&b.ops.pop();b.trys.pop();continue}}d=g.call(a,b);}catch(w){d=[6,w],k=0;}finally{m=f=0;}if(d[0]&5)throw d[1];return {value:d[0]?d[1]:void 0,done:!0}}var b={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},m,k,f,l;return l={next:e(0),"throw":e(1),"return":e(2)},"function"===
|
|
25
|
+
typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l}function t(a){var e=[];a.AMapUI&&e.push(x(a.AMapUI));a.Loca&&e.push(y(a.Loca));return Promise.all(e)}function x(a){return new Promise(function(p,h){var c=[];if(a.plugins)for(var b=0;b<a.plugins.length;b+=1)-1==g.AMapUI.plugins.indexOf(a.plugins[b])&&c.push(a.plugins[b]);if(l.AMapUI===e.failed)h("\u524d\u6b21\u8bf7\u6c42 AMapUI \u5931\u8d25");else if(l.AMapUI===e.notload){l.AMapUI=e.loading;g.AMapUI.version=a.version||g.AMapUI.version;b=
|
|
26
|
+
g.AMapUI.version;var m=document.body||document.head,k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/ui/"+b+"/main.js";k.onerror=function(a){l.AMapUI=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.AMapUI=e.loaded;if(c.length)window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}for(p();n.AMapUI.length;)n.AMapUI.splice(0,1)[0]();});else for(p();n.AMapUI.length;)n.AMapUI.splice(0,
|
|
27
|
+
1)[0]();};m.appendChild(k);}else l.AMapUI===e.loaded?a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):c.length?window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}p();}):p():a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):n.AMapUI.push(function(a){a?h(a):c.length?window.AMapUI.loadUI(c,function(){for(var a=
|
|
28
|
+
0,b=c.length;a<b;a++){var f=c[a].split("/").slice(-1)[0];window.AMapUI[f]=arguments[a];}p();}):p();});})}function y(a){return new Promise(function(p,h){if(l.Loca===e.failed)h("\u524d\u6b21\u8bf7\u6c42 Loca \u5931\u8d25");else if(l.Loca===e.notload){l.Loca=e.loading;g.Loca.version=a.version||g.Loca.version;var c=g.Loca.version,b=g.AMap.version.startsWith("2"),m=c.startsWith("2");if(b&&!m||!b&&m)h("JSAPI \u4e0e Loca \u7248\u672c\u4e0d\u5bf9\u5e94\uff01\uff01");else {b=g.key;m=document.body||document.head;
|
|
29
|
+
var k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/loca?v="+c+"&key="+b;k.onerror=function(a){l.Loca=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.Loca=e.loaded;for(p();n.Loca.length;)n.Loca.splice(0,1)[0]();};m.appendChild(k);}}else l.Loca===e.loaded?a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):p():a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):
|
|
30
|
+
n.Loca.push(function(a){a?h(a):h();});})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var e;(function(a){a.notload="notload";a.loading="loading";a.loaded="loaded";a.failed="failed";})(e||(e={}));var g={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload},n={AMap:[],AMapUI:[],Loca:[]},v=[],z=function(a){"function"==typeof a&&(l.AMap===e.loaded?a(window.AMap):v.push(a));};return {load:function(a){var p=
|
|
31
|
+
this;return new Promise(function(h,c){if(l.AMap==e.failed)c("");else if(l.AMap==e.notload){var b=a.key,m=a.version,k=a.plugins;if(b){window.AMap&&"lbs.amap.com"!==location.host&&c("\u7981\u6b62\u591a\u79cdAPI\u52a0\u8f7d\u65b9\u5f0f\u6df7\u7528");g.key=b;g.AMap.version=m||g.AMap.version;g.AMap.plugins=k||g.AMap.plugins;l.AMap=e.loading;var f=document.body||document.head;window.___onAPILoaded=function(b){delete window.___onAPILoaded;if(b)l.AMap=e.failed,c(b);else for(l.AMap=e.loaded,t(a).then(function(){h(window.AMap);})["catch"](c);v.length;)v.splice(0,
|
|
32
|
+
1)[0]();};var n=document.createElement("script");n.type="text/javascript";b="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+g.AMap.version+"&key="+b+"&plugin="+g.AMap.plugins.join(",");fetch(b).then(function(a){return q(p,void 0,void 0,function(){var b;return r(this,function(c){switch(c.label){case 0:return [4,a.text()];case 1:return b=c.sent(),n.textContent=b.replace("define.amd","undefined"),f.appendChild(n),[2]}})})})["catch"](function(a){l.AMap=e.failed;c(a);});}else c("\u8bf7\u586b\u5199key");}else if(l.AMap==
|
|
33
|
+
e.loaded)if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {b=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&b.push(a.plugins[m]);if(b.length)window.AMap.plugin(b,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);}else if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");
|
|
34
|
+
else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {var d=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&d.push(a.plugins[m]);z(function(){if(d.length)window.AMap.plugin(d,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);});}})},reset:function(){delete window.AMap;delete window.AMapUI;delete window.Loca;g={key:"",AMap:{version:"1.4.15",
|
|
35
|
+
plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}};l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload};n={AMap:[],AMapUI:[],Loca:[]};}}});
|
|
36
|
+
} (dist$1, dist$1.exports));
|
|
37
|
+
|
|
38
|
+
var distExports = dist$1.exports;
|
|
39
|
+
var AMapLoader = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
40
|
+
|
|
41
|
+
export { AMapLoader as default };
|
|
@@ -82,7 +82,8 @@ class SplitContainerController extends PanelItemController {
|
|
|
82
82
|
* @param {('left' | 'right' | 'top' | 'bottom')} position
|
|
83
83
|
*/
|
|
84
84
|
hiddenPanel(position) {
|
|
85
|
-
|
|
85
|
+
if (!this.state.isHiddenTrigger)
|
|
86
|
+
this.lastSplitValue = this.state.splitValue;
|
|
86
87
|
if (position === "left" || position === "top") {
|
|
87
88
|
this.state.splitValue = 0;
|
|
88
89
|
}
|
|
@@ -2,6 +2,7 @@ import { h } from 'vue';
|
|
|
2
2
|
import { isNil, isObject } from 'lodash-es';
|
|
3
3
|
import { AsyncActionPreview } from '../async-action-preview/async-action-preview.mjs';
|
|
4
4
|
import { AsyncActionResult } from '../async-action-result/async-action-result.mjs';
|
|
5
|
+
import { AsyncDataExport } from '../async-data-export/async-data-export.mjs';
|
|
5
6
|
import { AsyncAction } from './async-action.mjs';
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -35,6 +36,19 @@ class AsyncActionProvider {
|
|
|
35
36
|
);
|
|
36
37
|
return true;
|
|
37
38
|
}
|
|
39
|
+
if (asyncAction.actiontype === "DEEXPORTDATA") {
|
|
40
|
+
ibiz.overlay.modal(
|
|
41
|
+
(modal) => {
|
|
42
|
+
return h(AsyncDataExport, {
|
|
43
|
+
asyncAction,
|
|
44
|
+
modal
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
{},
|
|
48
|
+
{ width: "80%", height: "80%" }
|
|
49
|
+
);
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
38
52
|
if (isObject(asyncAction.actionresult)) {
|
|
39
53
|
ibiz.overlay.modal(
|
|
40
54
|
(modal) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
1
|
+
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0;cursor:pointer}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-async-data-export{height:100%;display:flex;flex-flow:column nowrap;padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export__title{font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export .el-form-item{margin:0}.ibiz-async-data-export .el-form-item__content,.ibiz-async-data-export .el-form-item__label{font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export-header{display:flex;align-items:center;justify-content:space-between;height:48px;padding:var(--ibiz-spacing-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-async-data-export-time{padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export-time__executing{font-weight:var(--ibiz-font-weight-bold)}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IPortalAsyncAction } from '@ibiz-template/core';
|
|
3
|
+
import { IModal } from '@ibiz-template/runtime';
|
|
4
|
+
import './async-data-export.scss';
|
|
5
|
+
export declare const AsyncDataExport: import("vue").DefineComponent<{
|
|
6
|
+
asyncAction: {
|
|
7
|
+
type: PropType<IPortalAsyncAction>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
modal: {
|
|
11
|
+
type: PropType<IModal>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
info: {
|
|
17
|
+
title: string;
|
|
18
|
+
beginTime: string;
|
|
19
|
+
endTime: string;
|
|
20
|
+
fileUrl: string;
|
|
21
|
+
isFinish: boolean;
|
|
22
|
+
};
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
onDownLoad: () => void;
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
asyncAction: {
|
|
27
|
+
type: PropType<IPortalAsyncAction>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
modal: {
|
|
31
|
+
type: PropType<IModal>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { isVNode, reactive, createVNode, resolveComponent, createTextVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './async-data-export.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
function _isSlot(s) {
|
|
7
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
+
}
|
|
9
|
+
const AsyncDataExport = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "IBizAsyncDataExport",
|
|
11
|
+
props: {
|
|
12
|
+
asyncAction: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
modal: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
const ns = useNamespace("async-data-export");
|
|
23
|
+
const finishedStates = [30, 40];
|
|
24
|
+
const onClose = () => {
|
|
25
|
+
props.modal.dismiss();
|
|
26
|
+
};
|
|
27
|
+
const info = reactive({
|
|
28
|
+
title: "",
|
|
29
|
+
beginTime: "",
|
|
30
|
+
endTime: "",
|
|
31
|
+
fileUrl: "",
|
|
32
|
+
isFinish: false
|
|
33
|
+
});
|
|
34
|
+
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
|
|
35
|
+
name: props.asyncAction.asyncacitonname
|
|
36
|
+
});
|
|
37
|
+
info.beginTime = props.asyncAction.begintime;
|
|
38
|
+
info.endTime = props.asyncAction.endtime;
|
|
39
|
+
if (props.asyncAction.asyncresultdownloadurl) {
|
|
40
|
+
const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
|
|
41
|
+
info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
|
|
42
|
+
}
|
|
43
|
+
if (!finishedStates.includes(props.asyncAction.actionstate)) {
|
|
44
|
+
info.isFinish = false;
|
|
45
|
+
} else {
|
|
46
|
+
info.isFinish = true;
|
|
47
|
+
}
|
|
48
|
+
const onDownLoad = () => {
|
|
49
|
+
ibiz.util.file.fileDownload(info.fileUrl);
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
ns,
|
|
53
|
+
info,
|
|
54
|
+
onClose,
|
|
55
|
+
onDownLoad
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
render() {
|
|
59
|
+
let _slot, _slot2;
|
|
60
|
+
return createVNode("div", {
|
|
61
|
+
"class": [this.ns.b()]
|
|
62
|
+
}, [createVNode("div", {
|
|
63
|
+
"class": this.ns.b("header")
|
|
64
|
+
}, [createVNode("div", {
|
|
65
|
+
"class": this.ns.e("title")
|
|
66
|
+
}, [this.info.title]), createVNode("div", {
|
|
67
|
+
"class": this.ns.b("toolbar")
|
|
68
|
+
}, [this.info.fileUrl && createVNode(resolveComponent("el-button"), {
|
|
69
|
+
"onClick": this.onDownLoad
|
|
70
|
+
}, _isSlot(_slot = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.downloadFile")) ? _slot : {
|
|
71
|
+
default: () => [_slot]
|
|
72
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
73
|
+
"onClick": this.onClose
|
|
74
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.close")) ? _slot2 : {
|
|
75
|
+
default: () => [_slot2]
|
|
76
|
+
})])]), createVNode("div", {
|
|
77
|
+
"class": this.ns.b("time")
|
|
78
|
+
}, [this.info.isFinish ? createVNode(resolveComponent("el-form-item"), {
|
|
79
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.excuteTime")
|
|
80
|
+
}, {
|
|
81
|
+
default: () => [this.info.beginTime, createTextVNode(" ~ "), this.info.endTime]
|
|
82
|
+
}) : createVNode("span", {
|
|
83
|
+
"class": this.ns.be("time", "executing")
|
|
84
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.executing")])])]);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export { AsyncDataExport };
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
controller: {
|
|
7
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
-
c: import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
13
|
-
noticeController: import("@ibiz-template/runtime").INoticeController;
|
|
14
|
-
noticeNum: import("vue").Ref<number>;
|
|
15
|
-
popoverRef: import("vue").Ref<any>;
|
|
16
|
-
showPopover: import("vue").Ref<boolean>;
|
|
17
|
-
sysImage: import("@ibiz/model-core").ISysImage | {
|
|
18
|
-
imagePath: string;
|
|
19
|
-
};
|
|
20
|
-
currentTab: import("vue").Ref<string>;
|
|
21
|
-
hiddenPopover: () => void;
|
|
22
|
-
onBatchReadClick: () => void;
|
|
23
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
modelData: {
|
|
25
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
controller: {
|
|
29
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
}>>, {}, {}>>;
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
+
export declare const IBizUserMessage: ReturnType<typeof withInstall>;
|
|
33
3
|
export default IBizUserMessage;
|
|
@@ -8,16 +8,26 @@ import { AsyncAction } from './async-action/async-action/async-action.mjs';
|
|
|
8
8
|
import { AsyncActionProvider } from './async-action/async-action/async-action.provider.mjs';
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
-
const IBizUserMessage = withInstall(
|
|
12
|
-
|
|
13
|
-
v
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const IBizUserMessage = withInstall(
|
|
12
|
+
UserMessage,
|
|
13
|
+
function(v) {
|
|
14
|
+
v.component(UserMessage.name, UserMessage);
|
|
15
|
+
v.component(AsyncAction.name, AsyncAction);
|
|
16
|
+
registerAsyncActionProvider(
|
|
17
|
+
"DEIMPORTDATA2",
|
|
18
|
+
() => new AsyncActionProvider()
|
|
19
|
+
);
|
|
20
|
+
registerAsyncActionProvider(
|
|
21
|
+
"DEEXPORTDATA",
|
|
22
|
+
() => new AsyncActionProvider()
|
|
23
|
+
);
|
|
24
|
+
registerAsyncActionProvider("DEFAULT", () => new AsyncActionProvider());
|
|
25
|
+
installInternalMessage(v);
|
|
26
|
+
registerPanelItemProvider(
|
|
27
|
+
"RAWITEM_USERMESSAGE",
|
|
28
|
+
() => new UserMessageProvider()
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
22
32
|
|
|
23
33
|
export { IBizUserMessage, IBizUserMessage as default };
|
|
@@ -50,6 +50,7 @@ class InternalMessageDefaultProvider {
|
|
|
50
50
|
if (redirectUrl) {
|
|
51
51
|
if (redirectUrl.startsWith("view://")) {
|
|
52
52
|
const { viewId, context, params } = parseViewProtocol(redirectUrl);
|
|
53
|
+
context.srfkeepnull = true;
|
|
53
54
|
ibiz.commands.execute(
|
|
54
55
|
OpenAppViewCommand.TAG,
|
|
55
56
|
viewId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.12_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';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IViewEvent,
|
|
1
|
+
import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState } from '@ibiz-template/runtime';
|
|
2
2
|
import { IControl, IMDControl, IAppDECustomView } from '@ibiz/model-core';
|
|
3
3
|
export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
4
|
-
protected view: ViewController<IAppDECustomView,
|
|
4
|
+
protected view: ViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>;
|
|
5
5
|
/**
|
|
6
6
|
* 部件集合
|
|
7
7
|
*
|
|
@@ -37,6 +37,12 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
37
37
|
*/
|
|
38
38
|
calcToolbarButtonState(control: IMDControl, data: IData | undefined): void;
|
|
39
39
|
call(key: keyof IApiMDCustomViewCall, args: any): Promise<IData | null | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* @description 刷新数据
|
|
42
|
+
* @returns {*} {Promise<void>}
|
|
43
|
+
* @memberof MDCustomViewEngine
|
|
44
|
+
*/
|
|
45
|
+
refresh(): Promise<void>;
|
|
40
46
|
/**
|
|
41
47
|
* @description 打开编辑数据视图
|
|
42
48
|
* @protected
|
|
@@ -94,9 +94,8 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
async call(key, args) {
|
|
97
|
-
var _a;
|
|
98
97
|
if (key === SysUIActionTag.REFRESH) {
|
|
99
|
-
await
|
|
98
|
+
await this.refresh();
|
|
100
99
|
return null;
|
|
101
100
|
}
|
|
102
101
|
if (key === SysUIActionTag.EDIT || key === SysUIActionTag.VIEW) {
|
|
@@ -107,6 +106,19 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
107
106
|
}
|
|
108
107
|
return super.call(key, args);
|
|
109
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @description 刷新数据
|
|
111
|
+
* @returns {*} {Promise<void>}
|
|
112
|
+
* @memberof MDCustomViewEngine
|
|
113
|
+
*/
|
|
114
|
+
async refresh() {
|
|
115
|
+
if (this.view.state.xdatacontrolname) {
|
|
116
|
+
const xDataCtrl = this.view.getController(
|
|
117
|
+
this.view.state.xdatacontrolname
|
|
118
|
+
);
|
|
119
|
+
await (xDataCtrl == null ? void 0 : xDataCtrl.refresh());
|
|
120
|
+
}
|
|
121
|
+
}
|
|
110
122
|
/**
|
|
111
123
|
* @description 打开编辑数据视图
|
|
112
124
|
* @protected
|
|
@@ -12,8 +12,8 @@ function createVueApp(rootComponent, rootProps) {
|
|
|
12
12
|
app.config.errorHandler = function(err) {
|
|
13
13
|
ibiz.util.error.handle(err);
|
|
14
14
|
};
|
|
15
|
-
const installPlugin = (_, plugin) => {
|
|
16
|
-
app.use(plugin);
|
|
15
|
+
const installPlugin = (_, plugin, extraParams) => {
|
|
16
|
+
app.use(plugin, extraParams);
|
|
17
17
|
};
|
|
18
18
|
AppHooks.useComponent.tap(installPlugin);
|
|
19
19
|
const importBIReport = () => import('@ibiz-template-plugin/bi-report');
|
|
@@ -26,11 +26,15 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const ns = vue3Util.useNamespace("grid-setting");
|
|
27
27
|
const c = props.controller;
|
|
28
28
|
const dragColumnStates = vue.computed(() => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
const result = [];
|
|
30
|
+
props.columnStates.forEach((item) => {
|
|
31
|
+
if (!item.uaColumn) {
|
|
32
|
+
result.push({
|
|
33
|
+
...item
|
|
34
|
+
});
|
|
35
|
+
}
|
|
33
36
|
});
|
|
37
|
+
return result;
|
|
34
38
|
});
|
|
35
39
|
const isDraggable = vue.computed(() => {
|
|
36
40
|
return false;
|
|
@@ -24,6 +24,7 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(props) {
|
|
27
|
+
var _a, _b;
|
|
27
28
|
const ns = vue3Util.useNamespace("rawitem");
|
|
28
29
|
let rawItem = null;
|
|
29
30
|
let contentType = "";
|
|
@@ -142,7 +143,9 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
|
-
|
|
146
|
+
if (!((_b = (_a = props.rawItem) == null ? void 0 : _a.rawItem) == null ? void 0 : _b.templateMode)) {
|
|
147
|
+
convertValue();
|
|
148
|
+
}
|
|
146
149
|
vue.watch(() => props.content, (newVal, oldVal) => {
|
|
147
150
|
if (newVal && newVal !== oldVal) {
|
|
148
151
|
rawItemContent.value = newVal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.12_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');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -49,7 +49,10 @@ const RepeaterMultiForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
"enableDelete": this.controller.enableDelete,
|
|
50
50
|
"enableSort": this.controller.enableSort,
|
|
51
51
|
"onAddClick": () => this.controller.create(),
|
|
52
|
-
"onRemoveClick": (_item, index) => this.controller.remove(index)
|
|
52
|
+
"onRemoveClick": (_item, index) => this.controller.remove(index),
|
|
53
|
+
"onDragChange": (draggedIndex, targetIndex) => {
|
|
54
|
+
this.controller.dragChange(draggedIndex, targetIndex);
|
|
55
|
+
}
|
|
53
56
|
}, {
|
|
54
57
|
item: ({
|
|
55
58
|
data,
|