@ibiz-template/vue3-util 0.7.16 → 0.7.17-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/code-list/code-list.mjs +1 -1
  4. package/es/common/control-shell/control-shell.d.ts.map +1 -1
  5. package/es/common/control-shell/control-shell.mjs +1 -1
  6. package/es/common/view-shell/view-shell.d.ts +1 -0
  7. package/es/common/view-shell/view-shell.d.ts.map +1 -1
  8. package/es/common/view-shell/view-shell.mjs +55 -4
  9. package/es/control/panel/panel/panel.d.ts.map +1 -1
  10. package/es/control/panel/panel/panel.mjs +5 -2
  11. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  12. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +5 -2
  13. package/es/index.d.ts +1 -0
  14. package/es/index.d.ts.map +1 -1
  15. package/es/index.mjs +3 -0
  16. package/es/locale/en/index.d.ts +62 -0
  17. package/es/locale/en/index.d.ts.map +1 -0
  18. package/es/locale/en/index.mjs +64 -0
  19. package/es/locale/index.d.ts +3 -0
  20. package/es/locale/index.d.ts.map +1 -0
  21. package/es/locale/index.mjs +4 -0
  22. package/es/locale/zh-CN/index.d.ts +62 -0
  23. package/es/locale/zh-CN/index.d.ts.map +1 -0
  24. package/es/locale/zh-CN/index.mjs +64 -0
  25. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
  26. package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +45 -12
  27. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
  28. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +3 -1
  29. package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -1
  30. package/es/panel-component/panel-field/panel-field.controller.mjs +3 -1
  31. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
  32. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +3 -1
  33. package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
  34. package/es/panel-component/single-data-container/single-data-container.controller.mjs +44 -11
  35. package/es/panel-component/teleport-placeholder/teleport-placeholder.controller.d.ts.map +1 -1
  36. package/es/panel-component/teleport-placeholder/teleport-placeholder.controller.mjs +4 -1
  37. package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
  38. package/es/plugin/plugin-factory/plugin-factory.mjs +12 -5
  39. package/es/use/control/use-control-controller/use-control-controller.d.ts.map +1 -1
  40. package/es/use/control/use-control-controller/use-control-controller.mjs +12 -2
  41. package/es/use/focus-blur/focus-blur.mjs +1 -1
  42. package/es/use/view/use-view-controller/use-view-controller.d.ts.map +1 -1
  43. package/es/use/view/use-view-controller/use-view-controller.mjs +12 -2
  44. package/es/util/overlay-container/overlay-container.mjs +1 -1
  45. package/es/util/render/render.mjs +1 -1
  46. package/es/util/route/route.d.ts.map +1 -1
  47. package/es/util/route/route.mjs +7 -3
  48. package/es/view/app-redirect-view/app-redirect-view.mjs +2 -2
  49. package/es/view/common/view.d.ts.map +1 -1
  50. package/es/view/common/view.mjs +7 -3
  51. package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
  52. package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
  53. package/es/view/todo-redirect/todo-redirect.mjs +3 -3
  54. package/lib/common/code-list/code-list.cjs +1 -1
  55. package/lib/common/control-shell/control-shell.cjs +1 -1
  56. package/lib/common/view-shell/view-shell.cjs +54 -3
  57. package/lib/control/panel/panel/panel.cjs +4 -1
  58. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +4 -1
  59. package/lib/index.cjs +5 -0
  60. package/lib/locale/en/index.cjs +66 -0
  61. package/lib/locale/index.cjs +9 -0
  62. package/lib/locale/zh-CN/index.cjs +66 -0
  63. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +45 -12
  64. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +3 -1
  65. package/lib/panel-component/panel-field/panel-field.controller.cjs +3 -1
  66. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +3 -1
  67. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +44 -11
  68. package/lib/panel-component/teleport-placeholder/teleport-placeholder.controller.cjs +4 -1
  69. package/lib/plugin/plugin-factory/plugin-factory.cjs +12 -5
  70. package/lib/use/control/use-control-controller/use-control-controller.cjs +12 -2
  71. package/lib/use/focus-blur/focus-blur.cjs +1 -1
  72. package/lib/use/view/use-view-controller/use-view-controller.cjs +12 -2
  73. package/lib/util/overlay-container/overlay-container.cjs +1 -1
  74. package/lib/util/render/render.cjs +1 -1
  75. package/lib/util/route/route.cjs +7 -3
  76. package/lib/view/app-redirect-view/app-redirect-view.cjs +1 -1
  77. package/lib/view/common/view.cjs +6 -2
  78. package/lib/view/de-redirect-view/de-redirect-view.cjs +1 -1
  79. package/lib/view/todo-redirect/todo-redirect.cjs +2 -2
  80. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
2
- import { calcDynaSysParams, getViewProvider } from '@ibiz-template/runtime';
2
+ import { calcDynaSysParams, getViewProvider, getErrorViewProvider } from '@ibiz-template/runtime';
3
3
  import { RuntimeError } from '@ibiz-template/core';
4
4
  import { createUUID } from 'qx-util';
5
5
  import { isNil, isEmpty } from 'ramda';
@@ -31,6 +31,41 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
31
31
  const errMsg = ref("");
32
32
  const provider = ref();
33
33
  const viewModelData = ref();
34
+ const hasAuthority = ref(true);
35
+ const checkViewAuthority = async (viewModel) => {
36
+ let checkResult = true;
37
+ const {
38
+ accUserMode,
39
+ accessKey
40
+ } = viewModel;
41
+ const authInfo = ibiz.auth.getAuthInfo();
42
+ if (accUserMode !== void 0) {
43
+ switch (accUserMode) {
44
+ case 1:
45
+ if (authInfo) {
46
+ checkResult = false;
47
+ }
48
+ break;
49
+ case 2:
50
+ if (!authInfo) {
51
+ checkResult = false;
52
+ }
53
+ break;
54
+ case 4:
55
+ if (accessKey) {
56
+ const app = await ibiz.hub.getApp(props.context.srfappid);
57
+ const permitted = app.authority.calcByResCode(accessKey);
58
+ if (!permitted) {
59
+ checkResult = false;
60
+ }
61
+ }
62
+ break;
63
+ default:
64
+ break;
65
+ }
66
+ }
67
+ return checkResult;
68
+ };
34
69
  const init = async () => {
35
70
  let viewModel;
36
71
  if (props.modelData) {
@@ -39,12 +74,18 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
39
74
  viewModel = await ibiz.hub.getAppView(props.viewId);
40
75
  }
41
76
  if (!viewModel) {
42
- throw new RuntimeError("\u672A\u627E\u5230\u89C6\u56FE\u6A21\u578B");
77
+ throw new RuntimeError(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));
78
+ }
79
+ hasAuthority.value = await checkViewAuthority(viewModel);
80
+ if (!hasAuthority.value) {
81
+ return;
43
82
  }
44
83
  if (viewModel.dynaSysMode === 1) {
45
84
  const appDataEntityId = viewModel.appDataEntityId;
46
85
  if (!appDataEntityId) {
47
- throw new RuntimeError("".concat(viewModel.codeName, "\u65E0\u5B9E\u4F53,\u6682\u4E0D\u652F\u6301\u52A0\u8F7D\u52A8\u6001\u6A21\u578B"));
86
+ throw new RuntimeError(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic", {
87
+ codeName: viewModel.codeName
88
+ }));
48
89
  }
49
90
  const params = props.params || {};
50
91
  const loadModelParams = await calcDynaSysParams(appDataEntityId, props.context, {
@@ -113,11 +154,12 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
113
154
  isComplete,
114
155
  errMsg,
115
156
  viewModelData,
157
+ hasAuthority,
116
158
  provider
117
159
  };
118
160
  },
119
161
  render() {
120
- if (this.isComplete && this.provider) {
162
+ if (this.isComplete && this.provider && this.hasAuthority) {
121
163
  return h(resolveComponent(this.provider.component), {
122
164
  context: this.$props.context,
123
165
  params: this.$props.params,
@@ -126,6 +168,15 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
126
168
  provider: this.provider
127
169
  }, this.$slots);
128
170
  }
171
+ if (!this.hasAuthority) {
172
+ const provider = getErrorViewProvider("403");
173
+ if (provider) {
174
+ if (typeof provider.component === "string") {
175
+ return h(resolveComponent(provider.component));
176
+ }
177
+ return h(provider.component);
178
+ }
179
+ }
129
180
  return withDirectives(createVNode("div", {
130
181
  "class": this.ns.b()
131
182
  }, [this.isComplete ? this.errMsg : null]), [[resolveDirective("loading"), !this.isComplete]]);
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/panel/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAOT,MAAM,KAAK,CAAC;AACb,OAAO,EACL,MAAM,EAKP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,eAAe,EAGhB,MAAM,wBAAwB,CAAC;AAmGhC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqEvB,CAAC"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/panel/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAOT,MAAM,KAAK,CAAC;AACb,OAAO,EACL,MAAM,EAKP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,eAAe,EAGhB,MAAM,wBAAwB,CAAC;AAsGhC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqEvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { isVNode, createVNode, createTextVNode, resolveComponent, h, defineComponent, watch, reactive } from 'vue';
1
+ import { isVNode, createVNode, resolveComponent, h, defineComponent, watch, reactive } from 'vue';
2
2
  import './panel.css';
3
3
  import { ScriptFactory, isDataContainer, PanelController } from '@ibiz-template/runtime';
4
4
  import '../../../use/index.mjs';
@@ -33,7 +33,10 @@ function renderPanelItem(panelItem, c, ins) {
33
33
  } = c;
34
34
  const provider = providers[panelItem.id];
35
35
  if (!provider) {
36
- return createVNode("div", null, [createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, createTextVNode(" - "), panelItem.itemType]);
36
+ return createVNode("div", null, [ibiz.i18n.t("vue3Util.control.unsupportedPanel", {
37
+ id: panelItem.id,
38
+ itemType: panelItem.itemType
39
+ })]);
37
40
  }
38
41
  const component = resolveComponent(provider.component);
39
42
  let children;
@@ -1 +1 @@
1
- {"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAGlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AA0BhC;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;iCAiDlB,UAAU;;;;;;;sBASpB,KAAK,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;MAkGjB,CAAC"}
1
+ {"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAGlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AA0BhC;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;iCAiDlB,UAAU;;;;;;;sBASpB,KAAK,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;MAqGjB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { isVNode, defineComponent, watch, reactive, createVNode, createTextVNode, renderSlot, resolveComponent, h, provide } from 'vue';
1
+ import { isVNode, defineComponent, watch, reactive, createVNode, renderSlot, resolveComponent, h, provide } from 'vue';
2
2
  import './view-layout-panel.css';
3
3
  import { ScriptFactory, ViewLayoutPanelController, isDataContainer } from '@ibiz-template/runtime';
4
4
  import '../../../use/index.mjs';
@@ -76,7 +76,10 @@ const ViewLayoutPanelControl = /* @__PURE__ */ defineComponent({
76
76
  } = options || c;
77
77
  const provider = providers[panelItem.id];
78
78
  if (!provider) {
79
- return createVNode("div", null, [createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, createTextVNode(" - "), panelItem.itemType]);
79
+ return createVNode("div", null, [ibiz.i18n.t("vue3Util.control.unsupportedPanel", {
80
+ id: panelItem.id,
81
+ itemType: panelItem.itemType
82
+ })]);
80
83
  }
81
84
  if (panelItem.itemType !== "CTRLPOS" && slots[panelItem.id]) {
82
85
  return renderSlot(slots, panelItem.id, {
package/es/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './plugin';
9
9
  export * from './use';
10
10
  export * from './util';
11
11
  export * from './props';
12
+ export * from './locale';
12
13
  declare global {
13
14
  interface Window {
14
15
  vueInstances: Map<App, App>;
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AAEzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;KAC7B;CACF"}
package/es/index.mjs CHANGED
@@ -8,6 +8,7 @@ import './plugin/index.mjs';
8
8
  import './use/index.mjs';
9
9
  import './util/index.mjs';
10
10
  import './props/index.mjs';
11
+ import './locale/index.mjs';
11
12
  export { AppHooks } from './hooks/app/app.hooks.mjs';
12
13
  export { IBizIcon } from './common/icon/icon.mjs';
13
14
  export { IBizRouterView } from './common/router-view/router-view.mjs';
@@ -110,5 +111,7 @@ export { getGridMarkDownProps, getMarkDownProps } from './props/editor/markdown.
110
111
  export { getArrayProps, getGridArrayProps } from './props/editor/array.mjs';
111
112
  export { getCascaderProps, getGridCascaderProps } from './props/editor/cascader.mjs';
112
113
  export { getColorPickerProps, getGridColorPickerProps } from './props/editor/color-picker.mjs';
114
+ export { en } from './locale/en/index.mjs';
115
+ export { zhCn } from './locale/zh-CN/index.mjs';
113
116
 
114
117
  "use strict";
@@ -0,0 +1,62 @@
1
+ export declare const en: {
2
+ vue3Util: {
3
+ common: {
4
+ undefined: string;
5
+ onFoundCorrespondingPart: string;
6
+ noFoundViewModel: string;
7
+ noSupportLoadingDynamic: string;
8
+ };
9
+ control: {
10
+ unsupportedPanel: string;
11
+ };
12
+ panelComponent: {
13
+ noConfiguardDataObject: string;
14
+ noSupportedDataSourceType: string;
15
+ noConfiguredEntityLogic: string;
16
+ noConfiguredEntity: string;
17
+ noReturnValue: string;
18
+ noAttribute: string;
19
+ noConfiguerdEntityBehanior: string;
20
+ sessionView: string;
21
+ viewStateAttribute: string;
22
+ noImplementMethod: string;
23
+ noProvidedSlot: string;
24
+ cannotEmpty: string;
25
+ unadaptedLayout: string;
26
+ placeholderIdentifier: string;
27
+ };
28
+ plugin: {
29
+ failureConfigurationLoad: string;
30
+ failedRemotePluginLoad: string;
31
+ fileContentFormat: string;
32
+ };
33
+ use: {
34
+ control: {
35
+ parameterChanges: string;
36
+ stateChange: string;
37
+ };
38
+ focusBlur: {
39
+ noFocus: string;
40
+ };
41
+ view: {
42
+ stateChange: string;
43
+ };
44
+ };
45
+ util: {
46
+ noInjected: string;
47
+ convertString: string;
48
+ viewIdentifiers: string;
49
+ noFoundView: string;
50
+ routeCorrectly: string;
51
+ };
52
+ view: {
53
+ redirectionProgress: string;
54
+ viewType: string;
55
+ noTeleportTag: string;
56
+ embeddedRedirectionView: string;
57
+ insufficientRedirection: string;
58
+ toDoList: string;
59
+ };
60
+ };
61
+ };
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/en/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEd,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ const en = {
3
+ vue3Util: {
4
+ common: {
5
+ undefined: "undefined",
6
+ onFoundCorrespondingPart: "Undefined adapter with no corresponding part found",
7
+ noFoundViewModel: "View model not found",
8
+ noSupportLoadingDynamic: "{codeName}No entity, do not support loading dynamic models at this time"
9
+ },
10
+ control: {
11
+ unsupportedPanel: "Unsupported panel items: {id} - {itemType}"
12
+ },
13
+ panelComponent: {
14
+ noConfiguardDataObject: "No data object name configured",
15
+ noSupportedDataSourceType: "The data source type {dataSourceType} is not supported yet.",
16
+ noConfiguredEntityLogic: "No entity logic configured",
17
+ noConfiguredEntity: "No entity configured",
18
+ noReturnValue: "The entity logic {appDELogicId} has no return value",
19
+ noAttribute: "There is no {dataName} attribute in the global variable.",
20
+ noConfiguerdEntityBehanior: "No entity behavior configured",
21
+ sessionView: "The session to which the view is bound does not exist {dataName}",
22
+ viewStateAttribute: "There is no {dataName} attribute in the view state",
23
+ noImplementMethod: "Method not implemented.",
24
+ noProvidedSlot: "No {id} slot provided",
25
+ cannotEmpty: "{caption} cannot be empty",
26
+ unadaptedLayout: "Unadapted layout placeholder {layoutPos}",
27
+ placeholderIdentifier: "The placeholder identifier for panel member {id} of view {viewCodeName} is:"
28
+ },
29
+ plugin: {
30
+ failureConfigurationLoad: "Configuration load failure",
31
+ failedRemotePluginLoad: "Remote Plugin failed to load, Remote Plugin did not find [default] Default Export",
32
+ fileContentFormat: "Remote plugin failed to load, file not found or file content format is incorrect"
33
+ },
34
+ use: {
35
+ control: {
36
+ parameterChanges: "Context or view parameter changes for {id}:",
37
+ stateChange: "Part [{name}] state change"
38
+ },
39
+ focusBlur: {
40
+ noFocus: "No focus, no out-of-focus triggering"
41
+ },
42
+ view: {
43
+ stateChange: "View [{{name}] state change"
44
+ }
45
+ },
46
+ util: {
47
+ noInjected: "The createVueApp method is not injected.",
48
+ convertString: "Failed to convert to string",
49
+ viewIdentifiers: "View identifiers do not exist for {depth} level routes",
50
+ noFoundView: "View not found {viewCodeName}",
51
+ routeCorrectly: "Cannot get the route correctly, could be a dependency issue."
52
+ },
53
+ view: {
54
+ redirectionProgress: "Redirection in progress",
55
+ viewType: "View type {viewType} is not supported yet.",
56
+ noTeleportTag: "No teleportTag was found for part {name}.",
57
+ embeddedRedirectionView: "Embedded redirection view does not support url jumping",
58
+ insufficientRedirection: "Insufficient redirection parameters to jump",
59
+ toDoList: "To-Do List Redirection"
60
+ }
61
+ }
62
+ };
63
+
64
+ export { en };
@@ -0,0 +1,3 @@
1
+ export { en } from './en';
2
+ export { zhCn } from './zh-CN';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { en } from './en/index.mjs';
2
+ export { zhCn } from './zh-CN/index.mjs';
3
+
4
+ "use strict";
@@ -0,0 +1,62 @@
1
+ export declare const zhCn: {
2
+ vue3Util: {
3
+ common: {
4
+ undefined: string;
5
+ onFoundCorrespondingPart: string;
6
+ noFoundViewModel: string;
7
+ noSupportLoadingDynamic: string;
8
+ };
9
+ control: {
10
+ unsupportedPanel: string;
11
+ };
12
+ panelComponent: {
13
+ noConfiguardDataObject: string;
14
+ noSupportedDataSourceType: string;
15
+ noConfiguredEntityLogic: string;
16
+ noConfiguredEntity: string;
17
+ noReturnValue: string;
18
+ noAttribute: string;
19
+ noConfiguerdEntityBehanior: string;
20
+ sessionView: string;
21
+ viewStateAttribute: string;
22
+ noImplementMethod: string;
23
+ noProvidedSlot: string;
24
+ cannotEmpty: string;
25
+ unadaptedLayout: string;
26
+ placeholderIdentifier: string;
27
+ };
28
+ plugin: {
29
+ failureConfigurationLoad: string;
30
+ failedRemotePluginLoad: string;
31
+ fileContentFormat: string;
32
+ };
33
+ use: {
34
+ control: {
35
+ parameterChanges: string;
36
+ stateChange: string;
37
+ };
38
+ focusBlur: {
39
+ noFocus: string;
40
+ };
41
+ view: {
42
+ stateChange: string;
43
+ };
44
+ };
45
+ util: {
46
+ noInjected: string;
47
+ convertString: string;
48
+ viewIdentifiers: string;
49
+ noFoundView: string;
50
+ routeCorrectly: string;
51
+ };
52
+ view: {
53
+ redirectionProgress: string;
54
+ viewType: string;
55
+ noTeleportTag: string;
56
+ embeddedRedirectionView: string;
57
+ insufficientRedirection: string;
58
+ toDoList: string;
59
+ };
60
+ };
61
+ };
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DhB,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ const zhCn = {
3
+ vue3Util: {
4
+ common: {
5
+ undefined: "\u672A\u5B9A\u4E49",
6
+ onFoundCorrespondingPart: "\u672A\u5B9A\u4E49\u672A\u627E\u5230\u5BF9\u5E94\u90E8\u4EF6\u7684\u9002\u914D\u5668",
7
+ noFoundViewModel: "\u672A\u627E\u5230\u89C6\u56FE\u6A21\u578B",
8
+ noSupportLoadingDynamic: "{codeName}\u65E0\u5B9E\u4F53,\u6682\u4E0D\u652F\u6301\u52A0\u8F7D\u52A8\u6001\u6A21\u578B"
9
+ },
10
+ control: {
11
+ unsupportedPanel: "\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: {id} - {itemType}"
12
+ },
13
+ panelComponent: {
14
+ noConfiguardDataObject: "\u6CA1\u6709\u914D\u7F6E\u6570\u636E\u5BF9\u8C61\u540D\u79F0",
15
+ noSupportedDataSourceType: "\u6570\u636E\u6E90\u7C7B\u578B{dataSourceType}\u6682\u672A\u652F\u6301",
16
+ noConfiguredEntityLogic: "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91",
17
+ noConfiguredEntity: "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53",
18
+ noReturnValue: "\u5B9E\u4F53\u903B\u8F91{appDELogicId}\u6CA1\u6709\u8FD4\u56DE\u503C",
19
+ noAttribute: "\u5168\u5C40\u53D8\u91CF\u91CC\u6CA1\u6709{dataName}\u5C5E\u6027",
20
+ noConfiguerdEntityBehanior: "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u884C\u4E3A",
21
+ sessionView: "\u7ED1\u5B9A\u89C6\u56FE\u7684\u4F1A\u8BDD\u4E0D\u5B58\u5728{dataName}",
22
+ viewStateAttribute: "\u89C6\u56FEstate\u91CC\u6CA1\u6709{dataName}\u5C5E\u6027",
23
+ noImplementMethod: "\u672A\u6267\u884C\u7684\u65B9\u6CD5",
24
+ noProvidedSlot: "\u672A\u63D0\u4F9B{id}\u63D2\u69FD",
25
+ cannotEmpty: "{caption} \u4E0D\u80FD\u4E3A\u7A7A",
26
+ unadaptedLayout: "\u672A\u9002\u914D\u7684\u5E03\u5C40\u5360\u4F4D{layoutPos}",
27
+ placeholderIdentifier: "\u89C6\u56FE{viewCodeName}\u7684\u9762\u677F\u6210\u5458{id}\u7684\u5360\u4F4D\u6807\u8BC6\u662F\uFF1A"
28
+ },
29
+ plugin: {
30
+ failureConfigurationLoad: "\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25",
31
+ failedRemotePluginLoad: "\u8FDC\u7A0B\u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25, \u8FDC\u7A0B\u63D2\u4EF6\u672A\u627E\u5230[default]\u9ED8\u8BA4\u5BFC\u51FA",
32
+ fileContentFormat: "\u8FDC\u7A0B\u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25, \u672A\u627E\u5230\u6587\u4EF6\u6216\u6587\u4EF6\u5185\u5BB9\u683C\u5F0F\u4E0D\u6B63\u786E"
33
+ },
34
+ use: {
35
+ control: {
36
+ parameterChanges: "{id}\u7684\u4E0A\u4E0B\u6587\u6216\u89C6\u56FE\u53C2\u6570\u53D8\u66F4\uFF1A",
37
+ stateChange: "\u90E8\u4EF6 [{name}] state \u53D8\u66F4"
38
+ },
39
+ focusBlur: {
40
+ noFocus: "\u6CA1\u6709\u805A\u7126\uFF0C\u4E0D\u89E6\u53D1\u5931\u7126"
41
+ },
42
+ view: {
43
+ stateChange: "\u89C6\u56FE [{name}] state \u53D8\u66F4"
44
+ }
45
+ },
46
+ util: {
47
+ noInjected: "\u6CA1\u6709\u6CE8\u5165createVueApp\u65B9\u6CD5",
48
+ convertString: "\u8F6C\u6362\u6210\u5B57\u7B26\u4E32\u5931\u8D25",
49
+ viewIdentifiers: "\u7B2C{depth}\u7EA7\u8DEF\u7531\u4E0D\u5B58\u5728\u89C6\u56FE\u6807\u8BC6",
50
+ noFoundView: "\u627E\u4E0D\u5230\u89C6\u56FE{viewCodeName}",
51
+ routeCorrectly: "\u65E0\u6CD5\u6B63\u786E\u83B7\u53D6route,\u53EF\u80FD\u662F\u4F9D\u8D56\u95EE\u9898"
52
+ },
53
+ view: {
54
+ redirectionProgress: "\u91CD\u5B9A\u5411\u8DF3\u8F6C\u4E2D",
55
+ viewType: "\u89C6\u56FE\u7C7B\u578B{viewType}\u6682\u672A\u652F\u6301",
56
+ noTeleportTag: "\u6CA1\u6709\u627E\u5230\u90E8\u4EF6{name}\u7684teleportTag",
57
+ embeddedRedirectionView: "\u5D4C\u5165\u91CD\u5B9A\u5411\u89C6\u56FE\u4E0D\u652F\u6301url\u8DF3\u8F6C",
58
+ insufficientRedirection: "\u91CD\u5B9A\u5411\u53C2\u6570\u4E0D\u8DB3\u65E0\u6CD5\u8DF3\u8F6C",
59
+ toDoList: "\u5F85\u529E\u5217\u8868\u91CD\u5B9A\u5411"
60
+ }
61
+ }
62
+ };
63
+
64
+ export { zhCn };
@@ -1 +1 @@
1
- {"version":3,"file":"multi-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/multi-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,6BAA6B,EAC7B,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,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;GAMG;AACH,qBAAa,4BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,uBAAuB,CAAC;IAEvC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,SAAS,EAAE,gCAAgC,EAAE,CAAM;IAEnD;;;;;;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,uBAAuB;cAIhC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,sBAAsB,CACpC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,GAC3D,OAAO,CAAC,IAAI,CAAC;IAkChB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAgCnC;;;;;OAKG;IACH,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMlD;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAOlC;;;;;OAKG;IACG,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB5C;;;;;;OAMG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjD;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAUzC;;;;;;OAMG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBlD;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAqBrE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D,OAAO,IAAI,IAAI;CAMhB"}
1
+ {"version":3,"file":"multi-data-container.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/multi-data-container/multi-data-container.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,6BAA6B,EAC7B,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,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;GAMG;AACH,qBAAa,4BACX,SAAQ,mBAAmB,CAAC,eAAe,CAC3C,YAAW,6BAA6B;IAEhC,KAAK,EAAE,uBAAuB,CAAC;IAEvC,QAAQ,CAAC,eAAe,QAAQ;IAEhC;;;;;;OAMG;IACH,SAAS,EAAE,gCAAgC,EAAE,CAAM;IAEnD;;;;;;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,uBAAuB;cAIhC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;OAMG;cACa,sBAAsB,CACpC,UAAU,GAAE,UAAU,EAAE,GAAG,SAAiC,GAC3D,OAAO,CAAC,IAAI,CAAC;IAkChB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IA2CnC;;;;;OAKG;IACH,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMlD;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAOlC;;;;;OAKG;IACG,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB5C;;;;;;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,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D,OAAO,IAAI,IAAI;CAMhB"}
@@ -101,20 +101,31 @@ class MultiDataContainerController extends PanelItemController {
101
101
  break;
102
102
  case "TOPVIEWSESSIONPARAM": {
103
103
  if (!dataName) {
104
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u6570\u636E\u5BF9\u8C61\u540D\u79F0");
104
+ throw new RuntimeModelError(
105
+ this.model,
106
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject")
107
+ );
105
108
  }
106
109
  this.bindViewData(this.panel.getTopView(), dataName);
107
110
  break;
108
111
  }
109
112
  case "VIEWSESSIONPARAM": {
110
113
  if (!dataName) {
111
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u6570\u636E\u5BF9\u8C61\u540D\u79F0");
114
+ throw new RuntimeModelError(
115
+ this.model,
116
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject")
117
+ );
112
118
  }
113
119
  this.bindViewData(this.panel.view, dataName);
114
120
  break;
115
121
  }
116
122
  default:
117
- throw new ModelError(this.model, "\u6570\u636E\u6E90\u7C7B\u578B".concat(dataSourceType, "\u6682\u672A\u652F\u6301"));
123
+ throw new ModelError(
124
+ this.model,
125
+ ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType", {
126
+ dataSourceType
127
+ })
128
+ );
118
129
  }
119
130
  }
120
131
  /**
@@ -177,10 +188,16 @@ class MultiDataContainerController extends PanelItemController {
177
188
  async setDataByDeLogic() {
178
189
  const { appDataEntityId, appDELogicId } = this.model;
179
190
  if (!appDELogicId) {
180
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
191
+ throw new RuntimeModelError(
192
+ this.model,
193
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic")
194
+ );
181
195
  }
182
196
  if (!appDataEntityId) {
183
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
197
+ throw new RuntimeModelError(
198
+ this.model,
199
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
200
+ );
184
201
  }
185
202
  const data = await execDELogicById(
186
203
  appDELogicId,
@@ -190,7 +207,9 @@ class MultiDataContainerController extends PanelItemController {
190
207
  this.panel.params
191
208
  );
192
209
  if (!data) {
193
- throw new RuntimeError("\u5B9E\u4F53\u903B\u8F91".concat(appDELogicId, "\u6CA1\u6709\u8FD4\u56DE\u503C"));
210
+ throw new RuntimeError(
211
+ ibiz.i18n.t("vue3Util.panelComponent.noReturnValue", { appDELogicId })
212
+ );
194
213
  }
195
214
  this.setData(data);
196
215
  }
@@ -206,7 +225,9 @@ class MultiDataContainerController extends PanelItemController {
206
225
  if (originData) {
207
226
  this.setData(originData);
208
227
  } else {
209
- ibiz.log.error("\u5168\u5C40\u53D8\u91CF\u91CC\u6CA1\u6709".concat(dataName, "\u5C5E\u6027"));
228
+ ibiz.log.error(
229
+ ibiz.i18n.t("vue3Util.panelComponent.noAttribute", { dataName })
230
+ );
210
231
  }
211
232
  }
212
233
  /**
@@ -219,10 +240,16 @@ class MultiDataContainerController extends PanelItemController {
219
240
  async setDataByDeMethod() {
220
241
  const { appDEMethodId, appDataEntityId } = this.model;
221
242
  if (!appDEMethodId) {
222
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u884C\u4E3A");
243
+ throw new RuntimeModelError(
244
+ this.model,
245
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior")
246
+ );
223
247
  }
224
248
  if (!appDataEntityId) {
225
- throw new RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
249
+ throw new RuntimeModelError(
250
+ this.model,
251
+ ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity")
252
+ );
226
253
  }
227
254
  const app = ibiz.hub.getApp(this.panel.context.srfappid);
228
255
  const res = await app.deService.exec(
@@ -246,7 +273,9 @@ class MultiDataContainerController extends PanelItemController {
246
273
  */
247
274
  bindViewData(view, dataName) {
248
275
  if (!Object.prototype.hasOwnProperty.call(view.state, dataName)) {
249
- ibiz.log.error("\u7ED1\u5B9A\u89C6\u56FE\u7684\u4F1A\u8BDD\u4E0D\u5B58\u5728".concat(dataName));
276
+ ibiz.log.error(
277
+ ibiz.i18n.t("vue3Util.panelComponent.sessionView", { dataName })
278
+ );
250
279
  return;
251
280
  }
252
281
  const updateData = () => {
@@ -254,7 +283,11 @@ class MultiDataContainerController extends PanelItemController {
254
283
  if (originData) {
255
284
  this.setData(originData);
256
285
  } else {
257
- ibiz.log.error("\u89C6\u56FEstate\u91CC\u6CA1\u6709".concat(dataName, "\u5C5E\u6027"));
286
+ ibiz.log.error(
287
+ ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute", {
288
+ dataName
289
+ })
290
+ );
258
291
  }
259
292
  };
260
293
  updateData();
@@ -263,7 +296,7 @@ class MultiDataContainerController extends PanelItemController {
263
296
  });
264
297
  }
265
298
  setDataValue(_name, _value) {
266
- throw new Error("Method not implemented.");
299
+ throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"));
267
300
  }
268
301
  destroy() {
269
302
  super.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"panel-ctrl-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,uBAAuB,CAAC;AAE/B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;YA6CvB,CAAC"}
1
+ {"version":3,"file":"panel-ctrl-pos.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,uBAAuB,CAAC;AAE/B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;YAkDvB,CAAC"}
@@ -38,7 +38,9 @@ const PanelCtrlPos = /* @__PURE__ */ defineComponent({
38
38
  }
39
39
  return createVNode("div", {
40
40
  "class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("hidden", !state.visible)]
41
- }, [content || (ibiz.env.dev ? "\u672A\u63D0\u4F9B".concat(this.modelData.id, "\u63D2\u69FD") : "")]);
41
+ }, [content || (ibiz.env.dev ? ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot", {
42
+ id: this.modelData.id
43
+ }) : "")]);
42
44
  }
43
45
  });
44
46
 
@@ -1 +1 @@
1
- {"version":3,"file":"panel-field.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/panel-field.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;GAMG;AACH,qBAAa,oBACX,SAAQ,mBAAmB,CAAC,WAAW,CACvC,YAAW,0BAA0B;IAE7B,KAAK,EAAE,eAAe,CAAC;IAE/B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAEzC;;;;;;OAMG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAEjC;IAED,IAAI,OAAO,IAAI,QAAQ,CAEtB;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED;;;;;OAKG;IACH,IAAI,KAAK,IAAI,MAAM,GAAG,MAAM,CAE3B;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IAEjC,SAAS,CAAC,WAAW,IAAI,eAAe;IAIxC;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAWlC;;;;;;;OAOG;cACa,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAuBvC;;;;;;;OAOG;IACG,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAahE;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQhC;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQ/B;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;CAOjC"}
1
+ {"version":3,"file":"panel-field.controller.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-field/panel-field.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;GAMG;AACH,qBAAa,oBACX,SAAQ,mBAAmB,CAAC,WAAW,CACvC,YAAW,0BAA0B;IAE7B,KAAK,EAAE,eAAe,CAAC;IAE/B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAEzC;;;;;;OAMG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAEjC;IAED,IAAI,OAAO,IAAI,QAAQ,CAEtB;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;OAMG;IACH,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED;;;;;OAKG;IACH,IAAI,KAAK,IAAI,MAAM,GAAG,MAAM,CAE3B;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IAEjC,SAAS,CAAC,WAAW,IAAI,eAAe;IAIxC;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAclC;;;;;;;OAOG;cACa,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAuBvC;;;;;;;OAOG;IACG,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAahE;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQhC;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQ/B;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;CAOjC"}
@@ -57,7 +57,9 @@ class PanelFieldController extends PanelItemController {
57
57
  async validate() {
58
58
  var _a;
59
59
  if (this.state.visible && !this.model.allowEmpty && !this.value) {
60
- this.state.error = ((_a = this.editor) == null ? void 0 : _a.model.placeHolder) || "".concat(this.model.caption, " \u4E0D\u80FD\u4E3A\u7A7A");
60
+ this.state.error = ((_a = this.editor) == null ? void 0 : _a.model.placeHolder) || ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty", {
61
+ caption: this.model.caption
62
+ });
61
63
  return false;
62
64
  }
63
65
  this.state.error = null;
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-container.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container/scroll-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,yBAAyB,CAAC;AAEjC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;YAsG1B,CAAC"}
1
+ {"version":3,"file":"scroll-container.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container/scroll-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,yBAAyB,CAAC;AAEjC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;YAwG1B,CAAC"}
@@ -78,7 +78,9 @@ const ScrollContainer = /* @__PURE__ */ defineComponent({
78
78
  center = slot;
79
79
  break;
80
80
  default:
81
- ibiz.log.debug("\u672A\u9002\u914D\u7684\u5E03\u5C40\u5360\u4F4D".concat(props.modelData.layoutPos.layoutPos));
81
+ ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.unadaptedLayout", {
82
+ layoutPos: props.modelData.layoutPos.layoutPos
83
+ }));
82
84
  break;
83
85
  }
84
86
  });