@ibiz-template/vue3-components 0.7.41-alpha.30 → 0.7.41-alpha.32

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 (41) hide show
  1. package/dist/index-DO51-jN8.js +11 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{wang-editor-C3XEOBFy.js → wang-editor-C66Yv1na.js} +1 -1
  5. package/dist/{xlsx-util-DQkYfUKS.js → xlsx-util-DsxDMCEc.js} +1 -1
  6. package/es/common/custom-theme/custom-theme.controller.mjs +34 -0
  7. package/es/common/custom-theme/custom-theme.mjs +10 -4
  8. package/es/control/app-menu/app-menu.css +1 -1
  9. package/es/control/grid/grid/grid.css +1 -1
  10. package/es/control/grid/grid/grid.mjs +2 -1
  11. package/es/control/report-panel/index.mjs +2 -0
  12. package/es/control/report-panel/report-detail/bi-report/bi-report.css +1 -0
  13. package/es/control/report-panel/report-detail/bi-report/bi-report.mjs +46 -0
  14. package/es/control/report-panel/report-detail/bi-report/commons/bi-number-report/bi-number-report.css +1 -0
  15. package/es/control/report-panel/report-detail/bi-report/commons/bi-number-report/bi-number-report.mjs +184 -0
  16. package/es/control/report-panel/report-detail/bi-report/commons/index.mjs +3 -0
  17. package/es/control/report-panel/report-detail/bi-report/index.mjs +9 -0
  18. package/es/control/report-panel/report-detail/index.mjs +1 -0
  19. package/es/control/report-panel/report-panel.mjs +9 -8
  20. package/es/panel-component/app-switch/app-switch.controller.mjs +2 -2
  21. package/es/panel-component/app-switch/app-switch.css +1 -1
  22. package/es/web-app/guard/auth-guard/auth-guard.mjs +25 -3
  23. package/lib/common/custom-theme/custom-theme.cjs +10 -4
  24. package/lib/common/custom-theme/custom-theme.controller.cjs +34 -0
  25. package/lib/control/app-menu/app-menu.css +1 -1
  26. package/lib/control/grid/grid/grid.cjs +2 -1
  27. package/lib/control/grid/grid/grid.css +1 -1
  28. package/lib/control/report-panel/index.cjs +8 -6
  29. package/lib/control/report-panel/report-detail/bi-report/bi-report.cjs +48 -0
  30. package/lib/control/report-panel/report-detail/bi-report/bi-report.css +1 -0
  31. package/lib/control/report-panel/report-detail/bi-report/commons/bi-number-report/bi-number-report.cjs +186 -0
  32. package/lib/control/report-panel/report-detail/bi-report/commons/bi-number-report/bi-number-report.css +1 -0
  33. package/lib/control/report-panel/report-detail/bi-report/commons/index.cjs +7 -0
  34. package/lib/control/report-panel/report-detail/bi-report/index.cjs +14 -0
  35. package/lib/control/report-panel/report-detail/index.cjs +2 -0
  36. package/lib/control/report-panel/report-panel.cjs +9 -8
  37. package/lib/panel-component/app-switch/app-switch.controller.cjs +2 -2
  38. package/lib/panel-component/app-switch/app-switch.css +1 -1
  39. package/lib/web-app/guard/auth-guard/auth-guard.cjs +25 -3
  40. package/package.json +9 -9
  41. package/dist/index-D4IkVaSK.js +0 -11
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue3Util = require('@ibiz-template/vue3-util');
6
+ var biReport = require('./bi-report.cjs');
7
+
8
+ "use strict";
9
+ const IBizBIReport = vue3Util.withInstall(biReport.BIReport, (v) => {
10
+ v.component(biReport.BIReport.name, biReport.BIReport);
11
+ });
12
+
13
+ exports.IBizBIReport = IBizBIReport;
14
+ exports.default = IBizBIReport;
@@ -3,9 +3,11 @@
3
3
  var index = require('./user-report-panel/index.cjs');
4
4
  var index$1 = require('./user2-report-panel/index.cjs');
5
5
  var index$2 = require('./bi-report-panel/index.cjs');
6
+ var index$3 = require('./bi-report/index.cjs');
6
7
 
7
8
  "use strict";
8
9
 
9
10
  exports.IBizUserReportPanel = index.IBizUserReportPanel;
10
11
  exports.IBizUser2ReportPanel = index$1.IBizUser2ReportPanel;
11
12
  exports.IBizBIReportPanel = index$2.IBizBIReportPanel;
13
+ exports.IBizBIReport = index$3.IBizBIReport;
@@ -53,10 +53,8 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
53
53
  const c = vue3Util.useControlController((...args) => new runtime.ReportPanelController(...args));
54
54
  const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
55
55
  const renderContent = () => {
56
- const {
57
- reportType
58
- } = c.state;
59
- switch (reportType) {
56
+ var _a;
57
+ switch ((_a = c.model.appDEReport) == null ? void 0 : _a.reportType) {
60
58
  case "USER":
61
59
  return vue.createVNode(vue.resolveComponent("iBizUserReportPanel"), {
62
60
  "controller": c
@@ -65,14 +63,18 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
65
63
  return vue.createVNode(vue.resolveComponent("iBizUser2ReportPanel"), {
66
64
  "controller": c
67
65
  }, null);
66
+ case "SYSBIREPORT":
68
67
  case "DESYSBIREPORTS":
69
68
  case "SYSBICUBE":
70
69
  case "DESYSBICUBES":
71
70
  case "ALLSYSBICUBES":
72
- case "SYSBIREPORT":
73
71
  case "SYSBICUBEREPORTS":
74
72
  case "ALLSYSBIREPORTS":
75
- return vue.createVNode(vue.resolveComponent("iBizBIReportPanel"), {
73
+ if (c.isBIReportDesign)
74
+ return vue.createVNode(vue.resolveComponent("iBizBIReportPanel"), {
75
+ "controller": c
76
+ }, null);
77
+ return vue.createVNode(vue.resolveComponent("iBizBIReport"), {
76
78
  "controller": c
77
79
  }, null);
78
80
  default:
@@ -87,9 +89,8 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
87
89
  },
88
90
  render() {
89
91
  let _slot;
90
- if (!this.c.state.isCreated) {
92
+ if (!this.c.state.isCreated)
91
93
  return;
92
- }
93
94
  return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
94
95
  "controller": this.c
95
96
  }, _isSlot(_slot = this.renderContent()) ? _slot : {
@@ -199,7 +199,7 @@ class AppSwitchController extends runtime.PanelItemController {
199
199
  }
200
200
  const allAppIndexViews = (_b = (_a = defaultAppModel.cache) == null ? void 0 : _a.getPSAppViews) == null ? void 0 : _b.filter(
201
201
  (appView) => {
202
- return appView.viewType === "APPINDEXVIEW";
202
+ return appView.viewType === "APPINDEXVIEW" && appView.appSwitchMode === 1;
203
203
  }
204
204
  );
205
205
  if (allAppIndexViews && allAppIndexViews.length > 0) {
@@ -225,7 +225,7 @@ class AppSwitchController extends runtime.PanelItemController {
225
225
  const subAppModel = ibiz.hub.getAppSourceModel(subApp.appId);
226
226
  const allSubAppIndexViews = (_d = (_c = subAppModel.cache) == null ? void 0 : _c.getPSAppViews) == null ? void 0 : _d.filter(
227
227
  (appView) => {
228
- return appView.viewType === "APPINDEXVIEW";
228
+ return appView.viewType === "APPINDEXVIEW" && appView.appSwitchMode === 1;
229
229
  }
230
230
  );
231
231
  if (allSubAppIndexViews && allSubAppIndexViews.length > 0) {
@@ -1 +1 @@
1
- .ibiz-app-switch{--ibiz-app-switch-icon-width:36px;--ibiz-app-switch-icon-height:36px;--ibiz-app-switch-icon-padding:0 var(--ibiz-spacing-tight);--ibiz-app-switch-icon-font-size:var(--ibiz-font-size-header-2);--ibiz-app-switch-icon-color:var(--ibiz-color-text-0);--ibiz-app-switch-dropdown-min-width:250px;--ibiz-app-switch-dropdown-item-height:40px}.ibiz-app-switch__icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-app-switch-icon-width);height:var(--ibiz-app-switch-icon-height);padding:var(--ibiz-app-switch-icon-padding);font-size:var(--ibiz-app-switch-icon-font-size);color:var(--ibiz-app-switch-icon-color);cursor:pointer}.ibiz-app-switch__dropdown{--ibiz-app-switch-icon-width:36px;--ibiz-app-switch-icon-height:36px;--ibiz-app-switch-icon-padding:0 var(--ibiz-spacing-tight);--ibiz-app-switch-icon-font-size:var(--ibiz-font-size-header-2);--ibiz-app-switch-icon-color:var(--ibiz-color-text-0);--ibiz-app-switch-dropdown-min-width:250px;--ibiz-app-switch-dropdown-item-height:40px;min-width:var(--ibiz-app-switch-dropdown-min-width)}.ibiz-app-switch__item{display:flex;align-items:center;justify-content:flex-start;width:100%;height:var(--ibiz-app-switch-dropdown-item-height);font-size:var(--ibiz-font-size-regular);white-space:nowrap}.ibiz-app-switch__item.is-active{background-color:var(--ibiz-color-primary-active)!important}
1
+ .ibiz-app-switch{--ibiz-app-switch-icon-width:36px;--ibiz-app-switch-icon-height:36px;--ibiz-app-switch-icon-padding:0 var(--ibiz-spacing-tight);--ibiz-app-switch-icon-font-size:var(--ibiz-font-size-header-2);--ibiz-app-switch-icon-color:var(--ibiz-color-text-0);--ibiz-app-switch-dropdown-min-width:250px;--ibiz-app-switch-dropdown-item-height:40px}.ibiz-app-switch__icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-app-switch-icon-width);height:var(--ibiz-app-switch-icon-height);padding:var(--ibiz-app-switch-icon-padding);font-size:var(--ibiz-app-switch-icon-font-size);color:var(--ibiz-app-switch-icon-color);cursor:pointer}.ibiz-app-switch__dropdown{--ibiz-app-switch-icon-width:36px;--ibiz-app-switch-icon-height:36px;--ibiz-app-switch-icon-padding:0 var(--ibiz-spacing-tight);--ibiz-app-switch-icon-font-size:var(--ibiz-font-size-header-2);--ibiz-app-switch-icon-color:var(--ibiz-color-text-0);--ibiz-app-switch-dropdown-min-width:250px;--ibiz-app-switch-dropdown-item-height:40px;min-width:var(--ibiz-app-switch-dropdown-min-width)}.ibiz-app-switch__item{display:flex;align-items:center;justify-content:flex-start;width:100%;height:var(--ibiz-app-switch-dropdown-item-height);font-size:var(--ibiz-font-size-regular);white-space:nowrap}.ibiz-app-switch__item.is-active{color:var(--ibiz-color-primary-active-text)!important;background-color:var(--ibiz-color-primary-active)!important}
@@ -81,7 +81,18 @@ class AuthGuard {
81
81
  if (status === 401) {
82
82
  const refreshToken = core.getAppCookie(core.CoreConst.REFRESH_TOKEN);
83
83
  if (refreshToken) {
84
- await ibiz.auth.refreshToken();
84
+ try {
85
+ await ibiz.auth.refreshToken();
86
+ } catch (refreshTokenError) {
87
+ if (ibiz.env.enableAnonymous) {
88
+ const loginResult = await ibiz.auth.anonymousLogin();
89
+ if (!loginResult) {
90
+ throw error;
91
+ }
92
+ } else {
93
+ throw error;
94
+ }
95
+ }
85
96
  await this.appInit(context);
86
97
  return;
87
98
  }
@@ -113,7 +124,7 @@ class AuthGuard {
113
124
  const viewName = urlPaths[urlPaths.length - 2];
114
125
  let viewModel;
115
126
  try {
116
- if (viewName === "#" && ibiz.hub.defaultPage) {
127
+ if (["#", "index"].includes(viewName) && ibiz.hub.defaultPage) {
117
128
  viewModel = await ibiz.hub.getAppView(ibiz.hub.defaultPage.id);
118
129
  } else {
119
130
  viewModel = await ibiz.hub.getAppView(viewName);
@@ -162,7 +173,18 @@ class AuthGuard {
162
173
  const refreshToken = core.getAppCookie(core.CoreConst.REFRESH_TOKEN);
163
174
  if (responseStatus === 401 && remember && refreshToken != null && refreshToken !== "") {
164
175
  try {
165
- await ibiz.auth.refreshToken();
176
+ try {
177
+ await ibiz.auth.refreshToken();
178
+ } catch (refreshTokenError) {
179
+ if (ibiz.env.enableAnonymous) {
180
+ const loginResult = await ibiz.auth.anonymousLogin();
181
+ if (!loginResult) {
182
+ throw error;
183
+ }
184
+ } else {
185
+ throw error;
186
+ }
187
+ }
166
188
  if (ibiz.env.isSaaSMode === true) {
167
189
  await this.loadOrgData();
168
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.30",
3
+ "version": "0.7.41-alpha.32",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -33,15 +33,15 @@
33
33
  "@ibiz-template-plugin/ai-chat": "^0.0.32",
34
34
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.316",
35
35
  "@ibiz-template-plugin/bi-report": "0.0.27",
36
- "@ibiz-template-plugin/data-view": "0.0.5",
36
+ "@ibiz-template-plugin/data-view": "0.0.6",
37
37
  "@ibiz-template/core": "0.7.41-alpha.28",
38
- "@ibiz-template/devtool": "0.0.12",
39
- "@ibiz-template/model-helper": "0.7.41-alpha.30",
40
- "@ibiz-template/runtime": "0.7.41-alpha.30",
38
+ "@ibiz-template/devtool": "0.0.13",
39
+ "@ibiz-template/model-helper": "0.7.41-alpha.32",
40
+ "@ibiz-template/runtime": "0.7.41-alpha.32",
41
41
  "@ibiz-template/theme": "0.7.39",
42
- "@ibiz-template/vue3-util": "0.7.41-alpha.30",
43
- "@ibiz-template/web-theme": "3.8.0",
44
- "@ibiz/model-core": "^0.1.82",
42
+ "@ibiz-template/vue3-util": "0.7.41-alpha.32",
43
+ "@ibiz-template/web-theme": "3.9.0",
44
+ "@ibiz/model-core": "^0.1.83",
45
45
  "@imengyu/vue3-context-menu": "^1.3.5",
46
46
  "@monaco-editor/loader": "^1.4.0",
47
47
  "@wangeditor/editor": "^5.1.23",
@@ -108,7 +108,7 @@
108
108
  "@ibiz-template/runtime": "^0.7.0",
109
109
  "@ibiz-template/theme": "^0.7.0",
110
110
  "@ibiz-template/vue3-util": "^0.7.0",
111
- "@ibiz/model-core": "^0.1.82",
111
+ "@ibiz/model-core": "^0.1.83",
112
112
  "@imengyu/vue3-context-menu": "^1.3.3",
113
113
  "@monaco-editor/loader": "^1.3.3",
114
114
  "@wangeditor/editor": "^5.1.23",