@ibiz-template/vue3-util 0.7.16 → 0.7.17
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/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/common/code-list/code-list.mjs +1 -1
- package/es/common/control-shell/control-shell.d.ts.map +1 -1
- package/es/common/control-shell/control-shell.mjs +1 -1
- package/es/common/view-shell/view-shell.d.ts +1 -0
- package/es/common/view-shell/view-shell.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.mjs +55 -4
- package/es/control/panel/panel/panel.d.ts.map +1 -1
- package/es/control/panel/panel/panel.mjs +5 -2
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +5 -2
- package/es/index.d.ts +1 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.mjs +3 -0
- package/es/locale/en/index.d.ts +62 -0
- package/es/locale/en/index.d.ts.map +1 -0
- package/es/locale/en/index.mjs +64 -0
- package/es/locale/index.d.ts +3 -0
- package/es/locale/index.d.ts.map +1 -0
- package/es/locale/index.mjs +4 -0
- package/es/locale/zh-CN/index.d.ts +62 -0
- package/es/locale/zh-CN/index.d.ts.map +1 -0
- package/es/locale/zh-CN/index.mjs +64 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +45 -12
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +3 -1
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.controller.mjs +3 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +3 -1
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +44 -11
- package/es/panel-component/teleport-placeholder/teleport-placeholder.controller.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.controller.mjs +4 -1
- package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
- package/es/plugin/plugin-factory/plugin-factory.mjs +12 -5
- package/es/use/control/use-control-controller/use-control-controller.d.ts.map +1 -1
- package/es/use/control/use-control-controller/use-control-controller.mjs +12 -2
- package/es/use/focus-blur/focus-blur.mjs +1 -1
- package/es/use/view/use-view-controller/use-view-controller.d.ts.map +1 -1
- package/es/use/view/use-view-controller/use-view-controller.mjs +12 -2
- package/es/util/overlay-container/overlay-container.mjs +1 -1
- package/es/util/render/render.mjs +1 -1
- package/es/util/route/route.d.ts.map +1 -1
- package/es/util/route/route.mjs +7 -3
- package/es/view/app-redirect-view/app-redirect-view.mjs +2 -2
- package/es/view/common/view.d.ts.map +1 -1
- package/es/view/common/view.mjs +7 -3
- package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
- package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
- package/es/view/todo-redirect/todo-redirect.mjs +3 -3
- package/lib/common/code-list/code-list.cjs +1 -1
- package/lib/common/control-shell/control-shell.cjs +1 -1
- package/lib/common/view-shell/view-shell.cjs +54 -3
- package/lib/control/panel/panel/panel.cjs +4 -1
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +4 -1
- package/lib/index.cjs +5 -0
- package/lib/locale/en/index.cjs +66 -0
- package/lib/locale/index.cjs +9 -0
- package/lib/locale/zh-CN/index.cjs +66 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +45 -12
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +3 -1
- package/lib/panel-component/panel-field/panel-field.controller.cjs +3 -1
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +3 -1
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +44 -11
- package/lib/panel-component/teleport-placeholder/teleport-placeholder.controller.cjs +4 -1
- package/lib/plugin/plugin-factory/plugin-factory.cjs +12 -5
- package/lib/use/control/use-control-controller/use-control-controller.cjs +12 -2
- package/lib/use/focus-blur/focus-blur.cjs +1 -1
- package/lib/use/view/use-view-controller/use-view-controller.cjs +12 -2
- package/lib/util/overlay-container/overlay-container.cjs +1 -1
- package/lib/util/render/render.cjs +1 -1
- package/lib/util/route/route.cjs +7 -3
- package/lib/view/app-redirect-view/app-redirect-view.cjs +1 -1
- package/lib/view/common/view.cjs +6 -2
- package/lib/view/de-redirect-view/de-redirect-view.cjs +1 -1
- package/lib/view/todo-redirect/todo-redirect.cjs +2 -2
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAElB,eAAe,EAEf,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,6BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,wBAAwB,CAAC;IAExC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAM;IAEzD;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAEtD;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,SAAS,CAAC,WAAW,IAAI,wBAAwB;cAIjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,wBAAwB,CACtC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,EAC5D,KAAK,GAAE,gBAA6B,EACpC,MAAM,GAAE,6BAA6B,GAAG,SAAgB,GACvD,OAAO,CAAC,IAAI,CAAC;IA4ChB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"single-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAElB,eAAe,EAEf,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,6BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,wBAAwB,CAAC;IAExC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAM;IAEzD;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAEtD;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,SAAS,CAAC,WAAW,IAAI,wBAAwB;cAIjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,wBAAwB,CACtC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,EAC5D,KAAK,GAAE,gBAA6B,EACpC,MAAM,GAAE,6BAA6B,GAAG,SAAgB,GACvD,OAAO,CAAC,IAAI,CAAC;IA4ChB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAgDnC;;;;;OAKG;IACH,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMlD;;;;;OAKG;IACG,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBzC;;;;;OAKG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B;;;;;;OAMG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCjD;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAYzC;;;;;;OAMG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BlD;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IA2BrE;;;;;;OAMG;IACH,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAM5C;;;;;OAKG;IACG,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/D,OAAO,IAAI,IAAI;CAOhB"}
|
|
@@ -114,20 +114,31 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
114
114
|
break;
|
|
115
115
|
case "TOPVIEWSESSIONPARAM": {
|
|
116
116
|
if (!dataName) {
|
|
117
|
-
throw new RuntimeModelError(
|
|
117
|
+
throw new RuntimeModelError(
|
|
118
|
+
this.model,
|
|
119
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject")
|
|
120
|
+
);
|
|
118
121
|
}
|
|
119
122
|
this.bindViewData(this.panel.getTopView(), dataName);
|
|
120
123
|
break;
|
|
121
124
|
}
|
|
122
125
|
case "VIEWSESSIONPARAM": {
|
|
123
126
|
if (!dataName) {
|
|
124
|
-
throw new RuntimeModelError(
|
|
127
|
+
throw new RuntimeModelError(
|
|
128
|
+
this.model,
|
|
129
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject")
|
|
130
|
+
);
|
|
125
131
|
}
|
|
126
132
|
this.bindViewData(this.panel.view, dataName);
|
|
127
133
|
break;
|
|
128
134
|
}
|
|
129
135
|
default:
|
|
130
|
-
throw new ModelError(
|
|
136
|
+
throw new ModelError(
|
|
137
|
+
this.model,
|
|
138
|
+
ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType", {
|
|
139
|
+
dataSourceType
|
|
140
|
+
})
|
|
141
|
+
);
|
|
131
142
|
}
|
|
132
143
|
}
|
|
133
144
|
/**
|
|
@@ -180,10 +191,16 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
180
191
|
async setDataByDeLogic() {
|
|
181
192
|
const { appDataEntityId, appDELogicId } = this.model;
|
|
182
193
|
if (!appDELogicId) {
|
|
183
|
-
throw new RuntimeModelError(
|
|
194
|
+
throw new RuntimeModelError(
|
|
195
|
+
this.model,
|
|
196
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic")
|
|
197
|
+
);
|
|
184
198
|
}
|
|
185
199
|
if (!appDataEntityId) {
|
|
186
|
-
throw new RuntimeModelError(
|
|
200
|
+
throw new RuntimeModelError(
|
|
201
|
+
this.model,
|
|
202
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
|
|
203
|
+
);
|
|
187
204
|
}
|
|
188
205
|
const data = await execDELogicById(
|
|
189
206
|
appDELogicId,
|
|
@@ -193,7 +210,9 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
193
210
|
this.panel.params
|
|
194
211
|
);
|
|
195
212
|
if (!data) {
|
|
196
|
-
throw new RuntimeError(
|
|
213
|
+
throw new RuntimeError(
|
|
214
|
+
ibiz.i18n.t("vue3Util.panelComponent.noReturnValue", { appDELogicId })
|
|
215
|
+
);
|
|
197
216
|
}
|
|
198
217
|
this.setData(data);
|
|
199
218
|
}
|
|
@@ -209,7 +228,9 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
209
228
|
if (originData) {
|
|
210
229
|
this.setData(originData);
|
|
211
230
|
} else {
|
|
212
|
-
ibiz.log.error(
|
|
231
|
+
ibiz.log.error(
|
|
232
|
+
ibiz.i18n.t("vue3Util.panelComponent.noAttribute", { dataName })
|
|
233
|
+
);
|
|
213
234
|
}
|
|
214
235
|
}
|
|
215
236
|
/**
|
|
@@ -222,10 +243,16 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
222
243
|
async setDataByDeMethod() {
|
|
223
244
|
const { appDEMethodId, appDataEntityId } = this.model;
|
|
224
245
|
if (!appDEMethodId) {
|
|
225
|
-
throw new RuntimeModelError(
|
|
246
|
+
throw new RuntimeModelError(
|
|
247
|
+
this.model,
|
|
248
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior")
|
|
249
|
+
);
|
|
226
250
|
}
|
|
227
251
|
if (!appDataEntityId) {
|
|
228
|
-
throw new RuntimeModelError(
|
|
252
|
+
throw new RuntimeModelError(
|
|
253
|
+
this.model,
|
|
254
|
+
ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
|
|
255
|
+
);
|
|
229
256
|
}
|
|
230
257
|
const app = ibiz.hub.getApp(this.panel.context.srfappid);
|
|
231
258
|
const res = await app.deService.exec(
|
|
@@ -249,7 +276,9 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
249
276
|
*/
|
|
250
277
|
bindViewData(view, dataName) {
|
|
251
278
|
if (!Object.prototype.hasOwnProperty.call(view.state, dataName)) {
|
|
252
|
-
ibiz.log.error(
|
|
279
|
+
ibiz.log.error(
|
|
280
|
+
ibiz.i18n.t("vue3Util.panelComponent.sessionView", { dataName })
|
|
281
|
+
);
|
|
253
282
|
return;
|
|
254
283
|
}
|
|
255
284
|
const updateData = () => {
|
|
@@ -257,7 +286,11 @@ class SingleDataContainerController extends PanelItemController {
|
|
|
257
286
|
if (originData) {
|
|
258
287
|
this.setData(originData);
|
|
259
288
|
} else {
|
|
260
|
-
ibiz.log.error(
|
|
289
|
+
ibiz.log.error(
|
|
290
|
+
ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute", {
|
|
291
|
+
dataName
|
|
292
|
+
})
|
|
293
|
+
);
|
|
261
294
|
}
|
|
262
295
|
};
|
|
263
296
|
updateData();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport-placeholder.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE;;;;;;GAMG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB,CAAC,aAAa,CAAC;IAC3E,KAAK,EAAE,wBAAwB,CAAC;IAExC,SAAS,CAAC,WAAW,IAAI,cAAc;IAIvC;;;;;;;OAOG;cACa,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"teleport-placeholder.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE;;;;;;GAMG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB,CAAC,aAAa,CAAC;IAC3E,KAAK,EAAE,wBAAwB,CAAC;IAExC,SAAS,CAAC,WAAW,IAAI,cAAc;IAIvC;;;;;;;OAOG;cACa,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAmBxC"}
|
|
@@ -27,7 +27,10 @@ class TeleportPlaceholderController extends PanelItemController {
|
|
|
27
27
|
teleportTag = paramTag.value;
|
|
28
28
|
}
|
|
29
29
|
ibiz.log.debug(
|
|
30
|
-
|
|
30
|
+
ibiz.i18n.t("vue3Util.panelComponent.placeholderIdentifier", {
|
|
31
|
+
viewCodeName,
|
|
32
|
+
id: this.model.id
|
|
33
|
+
}),
|
|
31
34
|
teleportTag
|
|
32
35
|
);
|
|
33
36
|
this.state.teleportTag = teleportTag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-factory.d.ts","sourceRoot":"","sources":["../../../src/plugin/plugin-factory/plugin-factory.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAGlC;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,SAA0B;IAE1C;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IAElD;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAa;IAEjE;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,CAAM;IAErC;;;;;;;OAOG;IACH,SAAS,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAElE;;;;;;;OAOG;IACH,SAAS,CAAC,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ChB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAA+B,GACvC,MAAM;IAwBT;;;;;;;;OAQG;cACa,kBAAkB,CAChC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,IAAI,CAAC;IA4BhB;;;;;;;;OAQG;IACH,SAAS,CAAC,qBAAqB,CAC7B,SAAS,EAAE,gBAAgB,GAC1B,gBAAgB,GAAG,IAAI;CA0C3B"}
|
|
@@ -185,7 +185,10 @@ class PluginFactory {
|
|
|
185
185
|
const result = await p;
|
|
186
186
|
return result;
|
|
187
187
|
} catch (error) {
|
|
188
|
-
throw new RuntimeModelError(
|
|
188
|
+
throw new RuntimeModelError(
|
|
189
|
+
pluginRef,
|
|
190
|
+
ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad")
|
|
191
|
+
);
|
|
189
192
|
} finally {
|
|
190
193
|
this.loadQueue.delete(rtObjectRepo);
|
|
191
194
|
}
|
|
@@ -218,7 +221,9 @@ class PluginFactory {
|
|
|
218
221
|
url: configUrl
|
|
219
222
|
});
|
|
220
223
|
if (res.status !== 200) {
|
|
221
|
-
throw new Error(
|
|
224
|
+
throw new Error(
|
|
225
|
+
ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad")
|
|
226
|
+
);
|
|
222
227
|
}
|
|
223
228
|
configData = res.data;
|
|
224
229
|
}
|
|
@@ -277,13 +282,13 @@ class PluginFactory {
|
|
|
277
282
|
this.setPluginCode(data.default);
|
|
278
283
|
} else {
|
|
279
284
|
throw new RuntimeError(
|
|
280
|
-
"
|
|
285
|
+
ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad")
|
|
281
286
|
);
|
|
282
287
|
}
|
|
283
288
|
this.cache.set(scriptUrl, true);
|
|
284
289
|
} else {
|
|
285
290
|
throw new RuntimeError(
|
|
286
|
-
"
|
|
291
|
+
ibiz.i18n.t("vue3Util.plugin.fileContentFormat")
|
|
287
292
|
);
|
|
288
293
|
}
|
|
289
294
|
}
|
|
@@ -345,7 +350,9 @@ class PluginFactory {
|
|
|
345
350
|
url: pkgPath
|
|
346
351
|
});
|
|
347
352
|
if (res.status !== 200) {
|
|
348
|
-
throw new Error(
|
|
353
|
+
throw new Error(
|
|
354
|
+
ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad")
|
|
355
|
+
);
|
|
349
356
|
}
|
|
350
357
|
await this.loadPluginExternal(res.data);
|
|
351
358
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-control-controller.d.ts","sourceRoot":"","sources":["../../../../src/use/control/use-control-controller/use-control-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-control-controller.d.ts","sourceRoot":"","sources":["../../../../src/use/control/use-control-controller/use-control-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAgGhC,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,kBAAkB,EAC/D,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC,OAAO,iBAAiB,CAAC,KAAK,CAAC,EACnE,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,CAAC,CAgDH"}
|
|
@@ -18,7 +18,12 @@ function watchAndUpdateContextParams(props, control) {
|
|
|
18
18
|
delete changedParams.params;
|
|
19
19
|
}
|
|
20
20
|
control.updateContextParams(changedParams);
|
|
21
|
-
ibiz.log.debug(
|
|
21
|
+
ibiz.log.debug(
|
|
22
|
+
ibiz.i18n.t("vue3Util.use.control.parameterChanges", {
|
|
23
|
+
id: control.model.id
|
|
24
|
+
}),
|
|
25
|
+
newVal
|
|
26
|
+
);
|
|
22
27
|
}
|
|
23
28
|
);
|
|
24
29
|
}
|
|
@@ -41,7 +46,12 @@ function watchAndUpdateState(props, control, excludeFields = []) {
|
|
|
41
46
|
changeProps[key] = newVal[key];
|
|
42
47
|
}
|
|
43
48
|
});
|
|
44
|
-
ibiz.log.debug(
|
|
49
|
+
ibiz.log.debug(
|
|
50
|
+
ibiz.i18n.t("vue3Util.use.control.stateChange", {
|
|
51
|
+
name: control.model.name
|
|
52
|
+
}),
|
|
53
|
+
changeProps
|
|
54
|
+
);
|
|
45
55
|
Object.keys(changeProps).forEach((key) => {
|
|
46
56
|
if (changeProps[key] !== void 0) {
|
|
47
57
|
control.state[key] = changeProps[key];
|
|
@@ -9,7 +9,7 @@ function useFocusAndBlur(focus, blur) {
|
|
|
9
9
|
let outsideFuns;
|
|
10
10
|
const doBlur = () => {
|
|
11
11
|
if (!isFocus.value) {
|
|
12
|
-
ibiz.log.debug("
|
|
12
|
+
ibiz.log.debug(ibiz.i18n.t("vue3Util.use.focusBlur.noFocus"));
|
|
13
13
|
}
|
|
14
14
|
blur();
|
|
15
15
|
outsideFuns.stop();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-view-controller.d.ts","sourceRoot":"","sources":["../../../../src/use/view/use-view-controller/use-view-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EAEf,cAAc,EACf,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-view-controller.d.ts","sourceRoot":"","sources":["../../../../src/use/view/use-view-controller/use-view-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EAEf,cAAc,EACf,MAAM,wBAAwB,CAAC;AA6EhC;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,eAAe,EACzD,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,GAC/D,CAAC,CAkEH"}
|
|
@@ -11,7 +11,12 @@ function watchAndUpdateContextParams(props, view) {
|
|
|
11
11
|
clearAll(view.params);
|
|
12
12
|
Object.assign(view.params, newVal.params);
|
|
13
13
|
view.handleContextParams();
|
|
14
|
-
ibiz.log.debug(
|
|
14
|
+
ibiz.log.debug(
|
|
15
|
+
ibiz.i18n.t("vue3Util.use.control.parameterChanges", {
|
|
16
|
+
id: view.model.id
|
|
17
|
+
}),
|
|
18
|
+
newVal
|
|
19
|
+
);
|
|
15
20
|
}
|
|
16
21
|
);
|
|
17
22
|
}
|
|
@@ -27,7 +32,12 @@ function watchAndUpdateState(props, view) {
|
|
|
27
32
|
changeProps[key] = newVal[key];
|
|
28
33
|
}
|
|
29
34
|
});
|
|
30
|
-
ibiz.log.debug(
|
|
35
|
+
ibiz.log.debug(
|
|
36
|
+
ibiz.i18n.t("vue3Util.use.view.stateChange", {
|
|
37
|
+
name: view.model.name
|
|
38
|
+
}),
|
|
39
|
+
changeProps
|
|
40
|
+
);
|
|
31
41
|
Object.keys(changeProps).forEach((key) => {
|
|
32
42
|
view.state[key] = changeProps[key];
|
|
33
43
|
});
|
|
@@ -28,7 +28,7 @@ class OverlayContainer {
|
|
|
28
28
|
this.init();
|
|
29
29
|
}
|
|
30
30
|
static createVueApp(_rootComponent, _rootProps) {
|
|
31
|
-
throw new RuntimeError("
|
|
31
|
+
throw new RuntimeError(ibiz.i18n.t("vue3Util.util.noInjected"));
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* 初始化飘窗
|
|
@@ -15,7 +15,7 @@ function renderString(value) {
|
|
|
15
15
|
const str = value.toString();
|
|
16
16
|
return str;
|
|
17
17
|
} catch (error) {
|
|
18
|
-
ibiz.log.error(value, "
|
|
18
|
+
ibiz.log.error(value, ibiz.i18n.t("vue3Util.util.convertString"), error);
|
|
19
19
|
}
|
|
20
20
|
return "";
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../src/util/route/route.ts"],"names":[],"mappings":"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f,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAkC3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC,cAAc,CAAC,CA4DzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,OAAc,GACvB,MAAM,CA4BR;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAClE,KAAK,EAAE,MAAM,GACZ,IAAI,CAaN"}
|
package/es/util/route/route.mjs
CHANGED
|
@@ -233,7 +233,9 @@ async function parseRouteViewData(route, depth, isRouteModal = false) {
|
|
|
233
233
|
const routePath = route2routePath(route, isRouteModal);
|
|
234
234
|
let viewCodeName = routePath.pathNodes[depth - 1].viewName;
|
|
235
235
|
if (!viewCodeName) {
|
|
236
|
-
throw new RuntimeError(
|
|
236
|
+
throw new RuntimeError(
|
|
237
|
+
ibiz.i18n.t("vue3Util.util.viewIdentifiers", { depth })
|
|
238
|
+
);
|
|
237
239
|
}
|
|
238
240
|
if (viewCodeName === RouteConst.ROUTE_MODAL_TAG) {
|
|
239
241
|
viewCodeName = routePath.pathNodes[depth].viewName;
|
|
@@ -243,7 +245,9 @@ async function parseRouteViewData(route, depth, isRouteModal = false) {
|
|
|
243
245
|
}
|
|
244
246
|
const viewConfig = await ibiz.hub.config.view.get(viewCodeName);
|
|
245
247
|
if (!viewConfig) {
|
|
246
|
-
throw new RuntimeError(
|
|
248
|
+
throw new RuntimeError(
|
|
249
|
+
ibiz.i18n.t("vue3Util.util.noFoundView", { viewCodeName })
|
|
250
|
+
);
|
|
247
251
|
}
|
|
248
252
|
const context = {};
|
|
249
253
|
if ((_a = ibiz.appData) == null ? void 0 : _a.context) {
|
|
@@ -294,7 +298,7 @@ function getNestedRoutePath(route, depth, noSrfNav = true) {
|
|
|
294
298
|
function onRouteChange(callback, depth) {
|
|
295
299
|
const route = useRoute();
|
|
296
300
|
if (!route) {
|
|
297
|
-
throw new RuntimeError("
|
|
301
|
+
throw new RuntimeError(ibiz.i18n.t("vue3Util.util.routeCorrectly"));
|
|
298
302
|
}
|
|
299
303
|
watch(
|
|
300
304
|
() => route == null ? void 0 : route.path,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, onMounted, createVNode
|
|
1
|
+
import { defineComponent, onUnmounted, onMounted, createVNode } from 'vue';
|
|
2
2
|
import { IBizContext } from '@ibiz-template/core';
|
|
3
3
|
import { toLocalOpenWFRedirectView } from '@ibiz-template/runtime';
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ const AppRedirectView = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
toRedirect();
|
|
21
21
|
},
|
|
22
22
|
render() {
|
|
23
|
-
return createVNode("div", null, [
|
|
23
|
+
return createVNode("div", null, [ibiz.i18n.t("vue3Util.view.redirectionProgress")]);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/view/common/view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EACN,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAER,KAAK,EAIN,MAAM,KAAK,CAAC;AACb,OAAO,aAAa,CAAC;AAGrB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;uCAsDC,0BAA0B,KACrC,IAAI;yBAmBqB,QAAQ,KAAG,OAAO;0BAiBjB,QAAQ,KAAG,KAAK;+BA7DX,QAAQ,KAAG,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/view/common/view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EACN,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAER,KAAK,EAIN,MAAM,KAAK,CAAC;AACb,OAAO,aAAa,CAAC;AAGrB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;uCAsDC,0BAA0B,KACrC,IAAI;yBAmBqB,QAAQ,KAAG,OAAO;0BAiBjB,QAAQ,KAAG,KAAK;+BA7DX,QAAQ,KAAG,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;MAqLjE,CAAC"}
|
package/es/view/common/view.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, defineComponent, computed, renderSlot, resolveComponent, h, createVNode,
|
|
1
|
+
import { isVNode, defineComponent, computed, renderSlot, resolveComponent, h, createVNode, Teleport, withDirectives, resolveDirective } from 'vue';
|
|
2
2
|
import { ViewController, getControlsByView, getCtrlTeleportParams, getErrorViewProvider } from '@ibiz-template/runtime';
|
|
3
3
|
import './view.css';
|
|
4
4
|
import '../../use/index.mjs';
|
|
@@ -123,7 +123,9 @@ const View = /* @__PURE__ */ defineComponent({
|
|
|
123
123
|
if (this.c.engines.length === 0) {
|
|
124
124
|
layoutPanel = createVNode("span", {
|
|
125
125
|
"style": "color:red;"
|
|
126
|
-
}, [
|
|
126
|
+
}, [ibiz.i18n.t("vue3Util.view.viewType", {
|
|
127
|
+
viewType: this.modelData.viewType
|
|
128
|
+
})]);
|
|
127
129
|
} else {
|
|
128
130
|
const slots = {
|
|
129
131
|
...this.$slots
|
|
@@ -155,7 +157,9 @@ const View = /* @__PURE__ */ defineComponent({
|
|
|
155
157
|
let _slot;
|
|
156
158
|
const tag = this.getCtrlTeleportTag(ctrl);
|
|
157
159
|
if (!tag) {
|
|
158
|
-
ibiz.log.error(
|
|
160
|
+
ibiz.log.error(ibiz.i18n.t("vue3Util.view.noTeleportTag", {
|
|
161
|
+
name: ctrl.name
|
|
162
|
+
}));
|
|
159
163
|
return null;
|
|
160
164
|
}
|
|
161
165
|
return createVNode("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAIT,MAAM,KAAK,CAAC;AAGb,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAIT,MAAM,KAAK,CAAC;AAGb,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkDzB,CAAC"}
|
|
@@ -33,7 +33,7 @@ const DeRedirectView = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
toViewContext.value = result.context;
|
|
34
34
|
toViewParams.value = result.params;
|
|
35
35
|
} else {
|
|
36
|
-
throw new RuntimeError("
|
|
36
|
+
throw new RuntimeError(ibiz.i18n.t("vue3Util.view.embeddedRedirectionView"));
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createVNode
|
|
1
|
+
import { defineComponent, createVNode } from 'vue';
|
|
2
2
|
import qs from 'qs';
|
|
3
3
|
import { useRouter } from 'vue-router';
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ const TodoRedirect = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
const i = href.lastIndexOf("?");
|
|
13
13
|
const queryStr = decodeURIComponent(href.substring(i + 1, href.length));
|
|
14
14
|
if (!queryStr) {
|
|
15
|
-
throw new Error("
|
|
15
|
+
throw new Error(ibiz.i18n.t("vue3Util.view.insufficientRedirection"));
|
|
16
16
|
}
|
|
17
17
|
const params = qs.parse(queryStr, {
|
|
18
18
|
delimiter: ";"
|
|
@@ -45,7 +45,7 @@ const TodoRedirect = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
getLinkUrl();
|
|
46
46
|
},
|
|
47
47
|
render() {
|
|
48
|
-
return createVNode("div", null, [
|
|
48
|
+
return createVNode("div", null, [ibiz.i18n.t("vue3Util.view.toDoList")]);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ const IBizCodeList = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
71
|
}, {
|
|
72
72
|
immediate: true
|
|
73
73
|
});
|
|
74
|
-
const emptyText = props.codeList.emptyText === "
|
|
74
|
+
const emptyText = props.codeList.emptyText === ibiz.i18n.t("vue3Util.common.undefined") ? "- - -" : props.codeList.emptyText;
|
|
75
75
|
return {
|
|
76
76
|
items,
|
|
77
77
|
ns,
|
|
@@ -38,7 +38,7 @@ const IBizControlShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
38
|
const provider = vue.ref();
|
|
39
39
|
runtime.getControlProvider(props.modelData).then((item) => {
|
|
40
40
|
if (!item) {
|
|
41
|
-
errMsg.value = "
|
|
41
|
+
errMsg.value = ibiz.i18n.t("vue3Util.common.onFoundCorrespondingPart");
|
|
42
42
|
} else {
|
|
43
43
|
provider.value = item;
|
|
44
44
|
}
|
|
@@ -33,6 +33,41 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
const errMsg = vue.ref("");
|
|
34
34
|
const provider = vue.ref();
|
|
35
35
|
const viewModelData = vue.ref();
|
|
36
|
+
const hasAuthority = vue.ref(true);
|
|
37
|
+
const checkViewAuthority = async (viewModel) => {
|
|
38
|
+
let checkResult = true;
|
|
39
|
+
const {
|
|
40
|
+
accUserMode,
|
|
41
|
+
accessKey
|
|
42
|
+
} = viewModel;
|
|
43
|
+
const authInfo = ibiz.auth.getAuthInfo();
|
|
44
|
+
if (accUserMode !== void 0) {
|
|
45
|
+
switch (accUserMode) {
|
|
46
|
+
case 1:
|
|
47
|
+
if (authInfo) {
|
|
48
|
+
checkResult = false;
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 2:
|
|
52
|
+
if (!authInfo) {
|
|
53
|
+
checkResult = false;
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case 4:
|
|
57
|
+
if (accessKey) {
|
|
58
|
+
const app = await ibiz.hub.getApp(props.context.srfappid);
|
|
59
|
+
const permitted = app.authority.calcByResCode(accessKey);
|
|
60
|
+
if (!permitted) {
|
|
61
|
+
checkResult = false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return checkResult;
|
|
70
|
+
};
|
|
36
71
|
const init = async () => {
|
|
37
72
|
let viewModel;
|
|
38
73
|
if (props.modelData) {
|
|
@@ -41,12 +76,18 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
76
|
viewModel = await ibiz.hub.getAppView(props.viewId);
|
|
42
77
|
}
|
|
43
78
|
if (!viewModel) {
|
|
44
|
-
throw new core.RuntimeError("
|
|
79
|
+
throw new core.RuntimeError(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));
|
|
80
|
+
}
|
|
81
|
+
hasAuthority.value = await checkViewAuthority(viewModel);
|
|
82
|
+
if (!hasAuthority.value) {
|
|
83
|
+
return;
|
|
45
84
|
}
|
|
46
85
|
if (viewModel.dynaSysMode === 1) {
|
|
47
86
|
const appDataEntityId = viewModel.appDataEntityId;
|
|
48
87
|
if (!appDataEntityId) {
|
|
49
|
-
throw new core.RuntimeError(
|
|
88
|
+
throw new core.RuntimeError(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic", {
|
|
89
|
+
codeName: viewModel.codeName
|
|
90
|
+
}));
|
|
50
91
|
}
|
|
51
92
|
const params = props.params || {};
|
|
52
93
|
const loadModelParams = await runtime.calcDynaSysParams(appDataEntityId, props.context, {
|
|
@@ -115,11 +156,12 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
156
|
isComplete,
|
|
116
157
|
errMsg,
|
|
117
158
|
viewModelData,
|
|
159
|
+
hasAuthority,
|
|
118
160
|
provider
|
|
119
161
|
};
|
|
120
162
|
},
|
|
121
163
|
render() {
|
|
122
|
-
if (this.isComplete && this.provider) {
|
|
164
|
+
if (this.isComplete && this.provider && this.hasAuthority) {
|
|
123
165
|
return vue.h(vue.resolveComponent(this.provider.component), {
|
|
124
166
|
context: this.$props.context,
|
|
125
167
|
params: this.$props.params,
|
|
@@ -128,6 +170,15 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
170
|
provider: this.provider
|
|
129
171
|
}, this.$slots);
|
|
130
172
|
}
|
|
173
|
+
if (!this.hasAuthority) {
|
|
174
|
+
const provider = runtime.getErrorViewProvider("403");
|
|
175
|
+
if (provider) {
|
|
176
|
+
if (typeof provider.component === "string") {
|
|
177
|
+
return vue.h(vue.resolveComponent(provider.component));
|
|
178
|
+
}
|
|
179
|
+
return vue.h(provider.component);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
131
182
|
return vue.withDirectives(vue.createVNode("div", {
|
|
132
183
|
"class": this.ns.b()
|
|
133
184
|
}, [this.isComplete ? this.errMsg : null]), [[vue.resolveDirective("loading"), !this.isComplete]]);
|
|
@@ -35,7 +35,10 @@ function renderPanelItem(panelItem, c, ins) {
|
|
|
35
35
|
} = c;
|
|
36
36
|
const provider = providers[panelItem.id];
|
|
37
37
|
if (!provider) {
|
|
38
|
-
return vue.createVNode("div", null, [
|
|
38
|
+
return vue.createVNode("div", null, [ibiz.i18n.t("vue3Util.control.unsupportedPanel", {
|
|
39
|
+
id: panelItem.id,
|
|
40
|
+
itemType: panelItem.itemType
|
|
41
|
+
})]);
|
|
39
42
|
}
|
|
40
43
|
const component = vue.resolveComponent(provider.component);
|
|
41
44
|
let children;
|
|
@@ -78,7 +78,10 @@ const ViewLayoutPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
} = options || c;
|
|
79
79
|
const provider = providers[panelItem.id];
|
|
80
80
|
if (!provider) {
|
|
81
|
-
return vue.createVNode("div", null, [
|
|
81
|
+
return vue.createVNode("div", null, [ibiz.i18n.t("vue3Util.control.unsupportedPanel", {
|
|
82
|
+
id: panelItem.id,
|
|
83
|
+
itemType: panelItem.itemType
|
|
84
|
+
})]);
|
|
82
85
|
}
|
|
83
86
|
if (panelItem.itemType !== "CTRLPOS" && slots[panelItem.id]) {
|
|
84
87
|
return vue.renderSlot(slots, panelItem.id, {
|
package/lib/index.cjs
CHANGED
|
@@ -10,6 +10,7 @@ require('./plugin/index.cjs');
|
|
|
10
10
|
require('./use/index.cjs');
|
|
11
11
|
require('./util/index.cjs');
|
|
12
12
|
require('./props/index.cjs');
|
|
13
|
+
require('./locale/index.cjs');
|
|
13
14
|
var app_hooks = require('./hooks/app/app.hooks.cjs');
|
|
14
15
|
var icon = require('./common/icon/icon.cjs');
|
|
15
16
|
var routerView = require('./common/router-view/router-view.cjs');
|
|
@@ -112,6 +113,8 @@ var markdown = require('./props/editor/markdown.cjs');
|
|
|
112
113
|
var array = require('./props/editor/array.cjs');
|
|
113
114
|
var cascader = require('./props/editor/cascader.cjs');
|
|
114
115
|
var colorPicker = require('./props/editor/color-picker.cjs');
|
|
116
|
+
var index$m = require('./locale/en/index.cjs');
|
|
117
|
+
var index$n = require('./locale/zh-CN/index.cjs');
|
|
115
118
|
|
|
116
119
|
"use strict";
|
|
117
120
|
|
|
@@ -271,3 +274,5 @@ exports.getCascaderProps = cascader.getCascaderProps;
|
|
|
271
274
|
exports.getGridCascaderProps = cascader.getGridCascaderProps;
|
|
272
275
|
exports.getColorPickerProps = colorPicker.getColorPickerProps;
|
|
273
276
|
exports.getGridColorPickerProps = colorPicker.getGridColorPickerProps;
|
|
277
|
+
exports.en = index$m.en;
|
|
278
|
+
exports.zhCn = index$n.zhCn;
|