@ibiz-template/vue3-components 0.7.41-alpha.10 → 0.7.41-alpha.11

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 (76) hide show
  1. package/dist/ibiz-markdown-editor-KyK5mBTS.js +1 -0
  2. package/dist/index-F_Yq1N9t.js +4 -0
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/wang-editor-kUY8Nlib.js +1 -0
  6. package/dist/{xlsx-util-oX2OlM-T.js → xlsx-util-s4akItw_.js} +1 -1
  7. package/es/common/rawitem/rawitem.mjs +4 -1
  8. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +4 -1
  9. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +4 -0
  10. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +17 -4
  11. package/es/control/grid/grid/grid.css +1 -1
  12. package/es/control/list/list.css +1 -1
  13. package/es/control/list/list.mjs +21 -0
  14. package/es/editor/array/ibiz-array/ibiz-array.d.ts +8 -8
  15. package/es/editor/array/ibiz-array/ibiz-array.mjs +9 -0
  16. package/es/editor/code/monaco-editor/monaco-editor.d.ts +5 -6
  17. package/es/editor/code/monaco-editor/monaco-editor.mjs +11 -0
  18. package/es/editor/color-picker/color-picker-editor.controller.mjs +4 -1
  19. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +6 -6
  20. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +8 -8
  21. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +5 -1
  22. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +1 -1
  23. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -0
  24. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +5 -1
  25. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  26. package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +5 -1
  27. package/es/editor/html/html-editor.controller.mjs +23 -1
  28. package/es/editor/html/wang-editor/wang-editor.d.ts +6 -5
  29. package/es/editor/html/wang-editor/wang-editor.mjs +18 -1
  30. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +2 -2
  31. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +2 -2
  32. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +6 -5
  33. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +6 -0
  34. package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
  35. package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +3 -0
  36. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +5 -5
  37. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +8 -7
  38. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +12 -2
  39. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -2
  40. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +5 -2
  41. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +6 -5
  42. package/es/editor/upload/upload-editor.controller.mjs +31 -1
  43. package/es/editor/upload/use/use-iview-upload.mjs +8 -1
  44. package/es/locale/en/index.d.ts +1 -0
  45. package/es/locale/zh-CN/index.d.ts +1 -0
  46. package/es/panel-component/split-container/split-container.controller.mjs +2 -1
  47. package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.mjs +1 -0
  48. package/es/web-app/create-vue-app.mjs +2 -2
  49. package/lib/common/rawitem/rawitem.cjs +4 -1
  50. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +4 -1
  51. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +17 -4
  52. package/lib/control/grid/grid/grid.css +1 -1
  53. package/lib/control/list/list.cjs +21 -0
  54. package/lib/control/list/list.css +1 -1
  55. package/lib/editor/array/ibiz-array/ibiz-array.cjs +9 -0
  56. package/lib/editor/code/monaco-editor/monaco-editor.cjs +11 -0
  57. package/lib/editor/color-picker/color-picker-editor.controller.cjs +4 -1
  58. package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +8 -8
  59. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +1 -1
  60. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  61. package/lib/editor/html/html-editor.controller.cjs +23 -1
  62. package/lib/editor/html/wang-editor/wang-editor.cjs +18 -1
  63. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +2 -2
  64. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +6 -0
  65. package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +3 -0
  66. package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +12 -2
  67. package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +5 -2
  68. package/lib/editor/upload/upload-editor.controller.cjs +31 -1
  69. package/lib/editor/upload/use/use-iview-upload.cjs +8 -1
  70. package/lib/panel-component/split-container/split-container.controller.cjs +2 -1
  71. package/lib/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.cjs +1 -0
  72. package/lib/web-app/create-vue-app.cjs +2 -2
  73. package/package.json +7 -7
  74. package/dist/ibiz-markdown-editor-V31Pwvs_.js +0 -1
  75. package/dist/index-s6VfCazO.js +0 -4
  76. package/dist/wang-editor-EqGztmuv.js +0 -1
@@ -14,15 +14,15 @@ const IBizColorPicker = /* @__PURE__ */ vue.defineComponent({
14
14
  setup(props, {
15
15
  emit
16
16
  }) {
17
- var _a, _b, _c, _d;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h;
18
18
  const ns = vue3Util.useNamespace("color-picker");
19
19
  const c = props.controller;
20
20
  const currentVal = vue.ref("");
21
21
  const colorPicker = vue.ref(null);
22
- const multiple = ((_a = c.editorParams) == null ? void 0 : _a.MULTIPLE) === "true";
23
- const isCustom = ((_b = c.editorParams) == null ? void 0 : _b.CUSTOM) === "true";
24
- const type = (_c = c.editorParams) == null ? void 0 : _c.TYPE;
25
- const customColorList = ((_d = c.editorParams) == null ? void 0 : _d.CUSTOMCOLORLIST) || "";
22
+ const multiple = ((_a = c.editorParams) == null ? void 0 : _a.MULTIPLE) === "true" || ((_b = c.editorParams) == null ? void 0 : _b.multiple) === "true";
23
+ const isCustom = ((_c = c.editorParams) == null ? void 0 : _c.CUSTOM) === "true" || ((_d = c.editorParams) == null ? void 0 : _d.custom) === "true";
24
+ const type = ((_e = c.editorParams) == null ? void 0 : _e.TYPE) || ((_f = c.editorParams) == null ? void 0 : _f.type);
25
+ const customColorList = ((_g = c.editorParams) == null ? void 0 : _g.CUSTOMCOLORLIST) || ((_h = c.editorParams) == null ? void 0 : _h.customcolorlist) || "";
26
26
  const predefineColors = vue.ref(["#000000", "#2C2C2C", "#50555C", "#ACB3BF", "#D0D3D9", "#C4C4C4", "#DADADA", "#E5E5E5", "#F0F0F0", "#F24E1E", "#E99C58", "#FFC700", "#FF4D00", "#FF00D6", "#D82E57", "#8E1DE8", "#0ACF83", "#18A0FB", "#A259FF", "#907CFF"]);
27
27
  const showFormDefaultContent = vue.computed(() => {
28
28
  if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
@@ -54,7 +54,7 @@ const IBizColorPicker = /* @__PURE__ */ vue.defineComponent({
54
54
  const handleChange = (e) => {
55
55
  emit("change", e);
56
56
  };
57
- const showPicker = (_e) => {
57
+ const showPicker = (_e2) => {
58
58
  setTimeout(() => {
59
59
  if (colorPicker.value) {
60
60
  colorPicker.value.show();
@@ -96,7 +96,7 @@ const IBizColorPicker = /* @__PURE__ */ vue.defineComponent({
96
96
  };
97
97
  },
98
98
  render() {
99
- var _a, _b;
99
+ var _a, _b, _c;
100
100
  if (this.multiple) {
101
101
  if (this.isCustom) {
102
102
  return vue.createVNode(ibizColorMpickerCustom.IBizColorMPickerCustom, {
@@ -135,7 +135,7 @@ const IBizColorPicker = /* @__PURE__ */ vue.defineComponent({
135
135
  "size": "small",
136
136
  "predefine": this.predefineColors,
137
137
  "show-alpha": true
138
- }, this.$attrs), null), ((_b = this.c.editorParams) == null ? void 0 : _b.isHiddenText) === "true" ? null : vue.createVNode("span", {
138
+ }, this.$attrs), null), ((_b = this.c.editorParams) == null ? void 0 : _b.isHiddenText) === "true" || ((_c = this.c.editorParams) == null ? void 0 : _c.ishiddentext) === "true" ? null : vue.createVNode("span", {
139
139
  "class": this.ns.b("text")
140
140
  }, [this.currentVal])]);
141
141
  }
@@ -302,7 +302,7 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
302
302
  };
303
303
  },
304
304
  render() {
305
- const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
305
+ const overflowMode = this.c.editorParams.overflowMode || this.c.editorParams.overflowmode || ibiz.config.pickerEditor.overflowMode;
306
306
  const isEllipsis = overflowMode === "ellipsis";
307
307
  const editContent = [!this.readonly && vue.createVNode(vue.resolveComponent("el-select"), vue.mergeProps({
308
308
  "ref": "editorRef",
@@ -476,7 +476,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
476
476
  });
477
477
  },
478
478
  dropdown: () => {
479
- var _a;
479
+ var _a, _b;
480
480
  if (!this.showView) {
481
481
  return;
482
482
  }
@@ -486,7 +486,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
486
486
  params: this.params,
487
487
  viewId: this.c.pickupView.id,
488
488
  style: {
489
- height: "".concat(((_a = this.c.editorParams) == null ? void 0 : _a.pickupViewHeight) || 500, "px"),
489
+ height: "".concat(((_a = this.c.editorParams) == null ? void 0 : _a.pickupViewHeight) || ((_b = this.c.editorParams) == null ? void 0 : _b.pickupviewheight) || 500, "px"),
490
490
  width: this.pickViewWidth
491
491
  },
492
492
  state: {
@@ -102,7 +102,7 @@ class HtmlEditorController extends runtime.EditorController {
102
102
  await super.onInit();
103
103
  this.customRegister();
104
104
  if (this.editorParams) {
105
- const { uploadParams, exportParams } = this.editorParams;
105
+ const { uploadParams, exportParams, uploadparams, exportparams } = this.editorParams;
106
106
  if (uploadParams) {
107
107
  try {
108
108
  this.uploadParams = JSON.parse(uploadParams);
@@ -114,6 +114,17 @@ class HtmlEditorController extends runtime.EditorController {
114
114
  );
115
115
  }
116
116
  }
117
+ if (uploadparams) {
118
+ try {
119
+ this.uploadParams = JSON.parse(uploadparams);
120
+ } catch (error) {
121
+ ibiz.log.error(
122
+ "\u7F16\u8F91\u5668[".concat(ibiz.log.error(
123
+ error
124
+ ), "]\u7F16\u8F91\u5668\u53C2\u6570 uploadparams \u975E json \u683C\u5F0F")
125
+ );
126
+ }
127
+ }
117
128
  if (exportParams) {
118
129
  try {
119
130
  this.exportParams = JSON.parse(exportParams);
@@ -125,6 +136,17 @@ class HtmlEditorController extends runtime.EditorController {
125
136
  );
126
137
  }
127
138
  }
139
+ if (exportparams) {
140
+ try {
141
+ this.exportParams = JSON.parse(exportparams);
142
+ } catch (error) {
143
+ ibiz.log.error(
144
+ "\u7F16\u8F91\u5668[".concat(ibiz.log.error(
145
+ error
146
+ ), "]\u7F16\u8F91\u5668\u53C2\u6570 exportparams \u975E json \u683C\u5F0F")
147
+ );
148
+ }
149
+ }
128
150
  }
129
151
  const model = this.model;
130
152
  if (model.appDEACModeId) {
@@ -49,9 +49,17 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
49
49
  readonlyState.value = true;
50
50
  enableEdit.value = c.toBoolean(editorModel.editorParams.enableEdit) && !props.readonly && !props.disabled;
51
51
  }
52
+ if (editorModel.editorParams.enableedit) {
53
+ hasEnableEdit.value = true;
54
+ readonlyState.value = true;
55
+ enableEdit.value = c.toBoolean(editorModel.editorParams.enableedit) && !props.readonly && !props.disabled;
56
+ }
52
57
  if (editorModel.editorParams.enableFullScreen) {
53
58
  enableFullScreen.value = c.toBoolean(editorModel.editorParams.enableFullScreen);
54
59
  }
60
+ if (editorModel.editorParams.enablefullscreen) {
61
+ enableFullScreen.value = c.toBoolean(editorModel.editorParams.enablefullscreen);
62
+ }
55
63
  }
56
64
  if (props.readonly) {
57
65
  hasEnableEdit.value = false;
@@ -59,7 +67,16 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
59
67
  }
60
68
  vue.watch(() => props.data, (newVal) => {
61
69
  if (newVal) {
62
- const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, c.editorParams);
70
+ const editorParams = {
71
+ ...c.editorParams
72
+ };
73
+ if (editorParams.uploadparams) {
74
+ editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
75
+ }
76
+ if (editorParams.exportparams) {
77
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
78
+ }
79
+ const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
63
80
  uploadUrl.value = urls.uploadUrl;
64
81
  downloadUrl.value = urls.downloadUrl;
65
82
  }
@@ -16,7 +16,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
16
16
  setup(props, {
17
17
  emit
18
18
  }) {
19
- var _a;
19
+ var _a, _b;
20
20
  const ns = vue3Util.useNamespace("markdown");
21
21
  const c = props.controller;
22
22
  const currentVal = vue.ref("");
@@ -28,7 +28,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
28
28
  });
29
29
  const uploadUrl = vue.ref("");
30
30
  const downloadUrl = vue.ref("");
31
- const customTheme = (_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme;
31
+ const customTheme = ((_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme) || ((_b = c == null ? void 0 : c.editorParams) == null ? void 0 : _b.customtheme);
32
32
  const {
33
33
  UIStore
34
34
  } = vue3Util.useUIStore();
@@ -40,9 +40,15 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
40
40
  if (editorModel.editorParams.valueSeparator) {
41
41
  valueSeparator = editorModel.editorParams.valueSeparator;
42
42
  }
43
+ if (editorModel.editorParams.valueseparator) {
44
+ valueSeparator = editorModel.editorParams.valueseparator;
45
+ }
43
46
  if (editorModel.editorParams.rangeSeparator) {
44
47
  rangeSeparator = editorModel.editorParams.rangeSeparator;
45
48
  }
49
+ if (editorModel.editorParams.rangeseparator) {
50
+ rangeSeparator = editorModel.editorParams.rangeseparator;
51
+ }
46
52
  }
47
53
  const refFormItem = vue.ref([]);
48
54
  const editorItems = editorModel.editorItems;
@@ -29,6 +29,9 @@ const IBizSwitch = /* @__PURE__ */ vue.defineComponent({
29
29
  if (editorModel.editorParams.dicData) {
30
30
  dicData = c.toObj(editorModel.editorParams.dicData);
31
31
  }
32
+ if (editorModel.editorParams.dicdata) {
33
+ dicData = c.toObj(editorModel.editorParams.dicdata);
34
+ }
32
35
  }
33
36
  if (dicData && Array.isArray(dicData)) {
34
37
  const inactiveResult = dicData.find((item) => {
@@ -13,7 +13,7 @@ const IBizImageCropping = /* @__PURE__ */ vue.defineComponent({
13
13
  setup(props, {
14
14
  emit
15
15
  }) {
16
- var _a, _b;
16
+ var _a, _b, _c, _d;
17
17
  const ns = vue3Util.useNamespace("image-cropping-upload");
18
18
  const c = props.controller;
19
19
  const {
@@ -45,11 +45,21 @@ const IBizImageCropping = /* @__PURE__ */ vue.defineComponent({
45
45
  cropareaWidth: Number(c.editorParams.cropWidth)
46
46
  });
47
47
  }
48
- if ((_b = c.editorParams) == null ? void 0 : _b.cropHeight) {
48
+ if ((_b = c.editorParams) == null ? void 0 : _b.cropwidth) {
49
+ Object.assign(cropRect, {
50
+ cropareaWidth: Number(c.editorParams.cropwidth)
51
+ });
52
+ }
53
+ if ((_c = c.editorParams) == null ? void 0 : _c.cropHeight) {
49
54
  Object.assign(cropRect, {
50
55
  cropareaHeight: Number(c.editorParams.cropHeight)
51
56
  });
52
57
  }
58
+ if ((_d = c.editorParams) == null ? void 0 : _d.cropheight) {
59
+ Object.assign(cropRect, {
60
+ cropareaHeight: Number(c.editorParams.cropheight)
61
+ });
62
+ }
53
63
  const tempFileList = vue.ref();
54
64
  const cropVisible = vue.ref(false);
55
65
  const onDialogVisibleChange = (value) => {
@@ -10,10 +10,13 @@ const IBizImagePreview = /* @__PURE__ */ vue.defineComponent({
10
10
  props: vue3Util.getUploadProps(),
11
11
  emits: vue3Util.getEditorEmits(),
12
12
  setup(props) {
13
- var _a;
13
+ var _a, _b;
14
14
  const ns = vue3Util.useNamespace("image-preview");
15
15
  const c = props.controller;
16
- const result = ((_a = c.editorParams) == null ? void 0 : _a.STOPPROPAGATION) !== "false";
16
+ let result = ((_a = c.editorParams) == null ? void 0 : _a.STOPPROPAGATION) !== "false";
17
+ if ((_b = c.editorParams) == null ? void 0 : _b.stoppropagation) {
18
+ result = c.editorParams.stoppropagation !== "false";
19
+ }
17
20
  const showFormDefaultContent = vue.computed(() => {
18
21
  if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
19
22
  return true;
@@ -72,14 +72,24 @@ class UploadEditorController extends runtime.EditorController {
72
72
  size,
73
73
  uploadParams,
74
74
  exportParams,
75
- autoPreview
75
+ autoPreview,
76
+ isdrag,
77
+ uploadparams,
78
+ exportparams,
79
+ autopreview
76
80
  } = this.editorParams;
77
81
  if (isDrag) {
78
82
  this.isDrag = Boolean(isDrag);
79
83
  }
84
+ if (isdrag) {
85
+ this.isDrag = Boolean(isdrag);
86
+ }
80
87
  if (autoPreview) {
81
88
  this.autoPreview = autoPreview;
82
89
  }
90
+ if (autopreview) {
91
+ this.autoPreview = autopreview;
92
+ }
83
93
  if (multiple) {
84
94
  this.multiple = Boolean(multiple);
85
95
  }
@@ -99,6 +109,16 @@ class UploadEditorController extends runtime.EditorController {
99
109
  );
100
110
  }
101
111
  }
112
+ if (uploadparams) {
113
+ try {
114
+ this.uploadParams = JSON.parse(uploadparams);
115
+ } catch (error) {
116
+ throw new core.RuntimeModelError(
117
+ uploadparams,
118
+ ibiz.i18n.t("editor.upload.uploadJsonFormatErr")
119
+ );
120
+ }
121
+ }
102
122
  if (exportParams) {
103
123
  try {
104
124
  this.exportParams = JSON.parse(exportParams);
@@ -109,6 +129,16 @@ class UploadEditorController extends runtime.EditorController {
109
129
  );
110
130
  }
111
131
  }
132
+ if (exportparams) {
133
+ try {
134
+ this.exportParams = JSON.parse(exportparams);
135
+ } catch (error) {
136
+ throw new core.RuntimeModelError(
137
+ exportparams,
138
+ ibiz.i18n.t("editor.upload.exportJsonFormatErr")
139
+ );
140
+ }
141
+ }
112
142
  }
113
143
  }
114
144
  }
@@ -27,11 +27,18 @@ function useIViewUpload(props, valueChange, c) {
27
27
  () => props.data,
28
28
  (newVal) => {
29
29
  if (newVal) {
30
+ const editorParams = { ...c.editorParams };
31
+ if (editorParams.uploadparams) {
32
+ editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
33
+ }
34
+ if (editorParams.exportparams) {
35
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
36
+ }
30
37
  const urls = ibiz.util.file.calcFileUpDownUrl(
31
38
  c.context,
32
39
  c.params,
33
40
  newVal,
34
- c.editorParams
41
+ editorParams
35
42
  );
36
43
  uploadUrl.value = urls.uploadUrl;
37
44
  downloadUrl.value = urls.downloadUrl;
@@ -84,7 +84,8 @@ class SplitContainerController extends runtime.PanelItemController {
84
84
  * @param {('left' | 'right' | 'top' | 'bottom')} position
85
85
  */
86
86
  hiddenPanel(position) {
87
- this.lastSplitValue = this.state.splitValue;
87
+ if (!this.state.isHiddenTrigger)
88
+ this.lastSplitValue = this.state.splitValue;
88
89
  if (position === "left" || position === "top") {
89
90
  this.state.splitValue = 0;
90
91
  }
@@ -52,6 +52,7 @@ class InternalMessageDefaultProvider {
52
52
  if (redirectUrl) {
53
53
  if (redirectUrl.startsWith("view://")) {
54
54
  const { viewId, context, params } = runtime.parseViewProtocol(redirectUrl);
55
+ context.srfkeepnull = true;
55
56
  ibiz.commands.execute(
56
57
  runtime.OpenAppViewCommand.TAG,
57
58
  viewId,
@@ -14,8 +14,8 @@ function createVueApp(rootComponent, rootProps) {
14
14
  app.config.errorHandler = function(err) {
15
15
  ibiz.util.error.handle(err);
16
16
  };
17
- const installPlugin = (_, plugin) => {
18
- app.use(plugin);
17
+ const installPlugin = (_, plugin, extraParams) => {
18
+ app.use(plugin, extraParams);
19
19
  };
20
20
  vue3Util.AppHooks.useComponent.tap(installPlugin);
21
21
  const importBIReport = () => import('@ibiz-template-plugin/bi-report');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.10",
3
+ "version": "0.7.41-alpha.11",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -31,17 +31,17 @@
31
31
  "@amap/amap-jsapi-loader": "^1.0.1",
32
32
  "@floating-ui/dom": "^1.5.3",
33
33
  "@ibiz-template-plugin/ai-chat": "^0.0.28",
34
- "@ibiz-template-plugin/gantt": "0.1.8-alpha.198",
34
+ "@ibiz-template-plugin/gantt": "0.1.8-alpha.266",
35
35
  "@ibiz-template-plugin/bi-report": "0.0.26",
36
36
  "@ibiz-template-plugin/data-view": "0.0.4",
37
37
  "@ibiz-template/core": "0.7.41-alpha.9",
38
38
  "@ibiz-template/devtool": "0.0.11",
39
- "@ibiz-template/model-helper": "0.7.41-alpha.10",
40
- "@ibiz-template/runtime": "0.7.41-alpha.10",
39
+ "@ibiz-template/model-helper": "0.7.41-alpha.11",
40
+ "@ibiz-template/runtime": "0.7.41-alpha.11",
41
41
  "@ibiz-template/theme": "0.7.39",
42
- "@ibiz-template/vue3-util": "0.7.41-alpha.10",
42
+ "@ibiz-template/vue3-util": "0.7.41-alpha.11",
43
43
  "@ibiz-template/web-theme": "3.5.0",
44
- "@ibiz/model-core": "^0.1.78",
44
+ "@ibiz/model-core": "^0.1.79",
45
45
  "@imengyu/vue3-context-menu": "^1.3.5",
46
46
  "@monaco-editor/loader": "^1.4.0",
47
47
  "@wangeditor/editor": "^5.1.23",
@@ -106,7 +106,7 @@
106
106
  "@ibiz-template/runtime": "^0.7.0",
107
107
  "@ibiz-template/theme": "^0.7.0",
108
108
  "@ibiz-template/vue3-util": "^0.7.0",
109
- "@ibiz/model-core": "^0.1.78",
109
+ "@ibiz/model-core": "^0.1.79",
110
110
  "@imengyu/vue3-context-menu": "^1.3.3",
111
111
  "@monaco-editor/loader": "^1.3.3",
112
112
  "@wangeditor/editor": "^5.1.23",
@@ -1 +0,0 @@
1
- System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown"],(function(e){"use strict";var t,l,n,o,r,i,a,s,c,d,u,h,m,v;return{setters:[function(e){t=e.defineComponent,l=e.ref,n=e.watch,o=e.onMounted,r=e.onBeforeUnmount,i=e.onUnmounted,a=e.createVNode,s=e.nextTick},function(e){c=e.getMarkDownProps,d=e.getEditorEmits,u=e.useNamespace,h=e.useUIStore},function(e){m=e.createUUID},function(e){v=e.default}],execute:function(){e("default",t({name:"IBizMarkDown",props:c(),emits:d(),setup(e,{emit:t}){var a;const c=u("markdown"),d=e.controller,b=l("");let f=null;const p=m(),g=ibiz.util.file.getUploadHeaders(),w=l({...g}),y=l(""),k=l(""),C=null==(a=null==d?void 0:d.editorParams)?void 0:a.customTheme,{UIStore:x}=h(),U=l(C||x.theme),z=l("editOnly");let E=null,B=0;const T=l({});let D=!1;n((()=>e.data),(e=>{if(e&&d){const t=ibiz.util.file.calcFileUpDownUrl(d.context,d.params,e,d.editorParams);y.value=t.uploadUrl,k.value=t.downloadUrl}}),{immediate:!0,deep:!0});const M=l(),S=async(e,t)=>{const l=await ibiz.util.file.fileUpload(y.value,e,w.value);t(k.value.replace("%fileId%",l.fileid))},I=()=>null==f?void 0:f.getMarkdown(),N=e=>{D=!0,null==f||f.setMarkdown(e,!1)};n((()=>e.value),((e,t)=>{e!==t&&(b.value=e||"")}),{immediate:!0}),n(b,((e,t)=>{const l=I();e!==t&&l!==e&&N(e)}));const O=e=>{t("change",I(),null==d?void 0:d.model.id,D),D=!1},P=(e,t)=>({[e]:t}),V=(e,t="")=>{const l=document.createElement(e);return l.className=t,l},q=e=>V("i","ch-icon ch-icon-".concat(e)),R=c.e("fullscreen"),j=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},H=()=>{if(f&&M.value){const e=f.editor.options.editorDom.parentElement;if(!e)return{};const t=e.classList,l=M.value.querySelector(".".concat(R));return l?{parentElement:e,cherryClass:t,fullscreenNode:l}:{}}return{}},L=()=>{const{parentElement:e,cherryClass:t,fullscreenNode:l}=H();e&&t&&l&&(j(l),l.appendChild(q("fullscreen")),l.title=ibiz.i18n.t("editor.common.fullscreen"),t.remove("fullscreen"),null==e||e.blur(),e.setAttribute("tabindex","-1"))},A=()=>{const{cherryClass:e}=H();return null==e?void 0:e.contains("fullscreen")},W=()=>{f&&M.value&&(A()?L():(()=>{const{parentElement:e,cherryClass:t,fullscreenNode:l}=H();e&&t&&l&&(j(l),l.appendChild(q("minscreen")),t.add("fullscreen"),l.title=ibiz.i18n.t("editor.common.minimize"),e.setAttribute("tabindex","-1"),s((()=>null==e?void 0:e.focus())))})())},F=e=>{e.stopPropagation(),"Escape"===e.key&&A()&&L()};n((()=>x.theme),(e=>{U.value=C||e,null==f||f.setTheme(U.value),null==f||f.setCodeBlockTheme(U.value)}));return o((()=>{var t;e.disabled&&(z.value="previewOnly"),s((()=>{var t;f=new v({id:p,value:b.value,previewer:{enablePreviewerBubble:!(e.disabled||e.readonly)},themeSettings:{mainTheme:U.value,codeBlockTheme:U.value},fileUpload:S,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:z.value,codemirror:{autofocus:!1}},toolbars:{toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:O,beforeImageMounted:P},engine:{syntax:{table:{enableChart:!1,externals:["echarts"]}}}}),f.setTheme(U.value),C&&(f.setTheme(C),f.setCodeBlockTheme(C));const l=V("span","".concat(R," cherry-toolbar-button"));l.title=ibiz.i18n.t("editor.common.fullscreen"),l.onclick=W,l.appendChild(q("fullscreen"));const n=e.disabled?f.editor.options.editorDom.parentElement:null==(t=f.editor.options.editorDom.parentElement)?void 0:t.querySelector(".cherry-toolbar>.toolbar-right");null==n||n.appendChild(l)})),(()=>{if(window.ResizeObserver&&M.value){const e={width:M.value.offsetWidth?"".concat(M.value.offsetWidth,"px"):"100%"};d&&"number"==typeof d.parent.model.height&&Object.assign(e,{height:"".concat(d.parent.model.height,"px")}),T.value=c.cssVarBlock(e),E=new ResizeObserver((e=>{const t=e[0].contentRect.width;if(t!==B){const l={width:"".concat(e[0].contentRect.width,"px")};d&&"number"==typeof d.parent.model.height&&Object.assign(l,{height:"".concat(d.parent.model.height,"px")}),T.value=c.cssVarBlock(l),B=t}})),E.observe(M.value)}})(),null==(t=M.value)||t.addEventListener("keydown",F.bind(this))})),r((()=>{var e;null==(e=M.value)||e.removeEventListener("keydown",F.bind(this))})),i((()=>{f=null,E&&E.disconnect()})),{ns:c,currentVal:b,id:p,editor:f,markDownBox:M,headers:w,theme:U,defaultModel:z,cssVars:T,getCherryHtml:()=>null==f?void 0:f.getHtml(),getCherryContent:I,setCherryContent:N}},render(){return a("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[a("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}}));