@ibiz-template/runtime 0.7.20 → 0.7.21

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 (84) hide show
  1. package/dist/index.esm.js +10844 -10233
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts +30 -1
  4. package/out/app-hub.d.ts.map +1 -1
  5. package/out/app-hub.js +44 -0
  6. package/out/application.d.ts +24 -0
  7. package/out/application.d.ts.map +1 -1
  8. package/out/application.js +24 -0
  9. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  10. package/out/controller/common/control/md-control.controller.js +1 -0
  11. package/out/controller/control/calendar/calendar.controller.d.ts +7 -0
  12. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  13. package/out/controller/control/calendar/calendar.controller.js +25 -0
  14. package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
  15. package/out/controller/control/chart/generator/base-series-generator.js +5 -7
  16. package/out/controller/control/data-view/data-view.controller.d.ts +7 -0
  17. package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
  18. package/out/controller/control/data-view/data-view.controller.js +31 -0
  19. package/out/controller/control/form/edit-form/edit-form.controller.d.ts +7 -0
  20. package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
  21. package/out/controller/control/form/edit-form/edit-form.controller.js +11 -0
  22. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +16 -1
  23. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
  24. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +21 -0
  25. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts +22 -0
  26. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
  27. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +27 -0
  28. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts +9 -0
  29. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
  30. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +9 -0
  31. package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
  32. package/out/controller/control/gantt/gantt.service.js +13 -3
  33. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  34. package/out/controller/control/grid/grid/grid.controller.js +0 -1
  35. package/out/controller/control/list/list.controller.d.ts +7 -0
  36. package/out/controller/control/list/list.controller.d.ts.map +1 -1
  37. package/out/controller/control/list/list.controller.js +31 -0
  38. package/out/controller/control/tree/tree.service.d.ts +17 -0
  39. package/out/controller/control/tree/tree.service.d.ts.map +1 -1
  40. package/out/controller/control/tree/tree.service.js +37 -6
  41. package/out/de-logic/de-logic-param/de-logic-param.js +2 -2
  42. package/out/engine/md-view.engine.d.ts.map +1 -1
  43. package/out/engine/md-view.engine.js +4 -0
  44. package/out/engine/view-base.engine.d.ts +15 -0
  45. package/out/engine/view-base.engine.d.ts.map +1 -1
  46. package/out/engine/view-base.engine.js +35 -2
  47. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +31 -1
  48. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
  49. package/out/interface/common/i-app-service/i-app-service.d.ts +24 -0
  50. package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
  51. package/out/interface/controller/state/control/i-data-view-control.state.d.ts +7 -0
  52. package/out/interface/controller/state/control/i-data-view-control.state.d.ts.map +1 -1
  53. package/out/interface/controller/state/control/i-grid.state.d.ts +0 -7
  54. package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
  55. package/out/interface/controller/state/control/i-list.state.d.ts +7 -0
  56. package/out/interface/controller/state/control/i-list.state.d.ts.map +1 -1
  57. package/out/interface/controller/state/control/i-md-control.state.d.ts +7 -0
  58. package/out/interface/controller/state/control/i-md-control.state.d.ts.map +1 -1
  59. package/out/interface/provider/model-loader.provider.d.ts +31 -1
  60. package/out/interface/provider/model-loader.provider.d.ts.map +1 -1
  61. package/out/service/vo/gantt-node-data/gantt-code-list-node-data.d.ts +1 -0
  62. package/out/service/vo/gantt-node-data/gantt-code-list-node-data.d.ts.map +1 -1
  63. package/out/service/vo/gantt-node-data/gantt-data-set-node-data.d.ts +1 -0
  64. package/out/service/vo/gantt-node-data/gantt-data-set-node-data.d.ts.map +1 -1
  65. package/out/service/vo/gantt-node-data/gantt-static-node-data.d.ts +1 -0
  66. package/out/service/vo/gantt-node-data/gantt-static-node-data.d.ts.map +1 -1
  67. package/out/service/vo/tree-node-data/tree-code-list-node-data.d.ts +1 -0
  68. package/out/service/vo/tree-node-data/tree-code-list-node-data.d.ts.map +1 -1
  69. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +1 -0
  70. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
  71. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -0
  72. package/out/service/vo/tree-node-data/tree-node-data.d.ts +2 -0
  73. package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -1
  74. package/out/service/vo/tree-node-data/tree-node-data.js +2 -0
  75. package/out/service/vo/tree-node-data/tree-static-node-data.d.ts +1 -0
  76. package/out/service/vo/tree-node-data/tree-static-node-data.d.ts.map +1 -1
  77. package/out/ui-logic/ui-logic-param/ui-logic-param.js +2 -2
  78. package/out/utils/theme-util/custom-theme-util.d.ts +110 -0
  79. package/out/utils/theme-util/custom-theme-util.d.ts.map +1 -0
  80. package/out/utils/theme-util/custom-theme-util.js +199 -0
  81. package/out/utils/theme-util/theme-util.d.ts +79 -0
  82. package/out/utils/theme-util/theme-util.d.ts.map +1 -1
  83. package/out/utils/theme-util/theme-util.js +103 -0
  84. package/package.json +2 -2
@@ -1,4 +1,5 @@
1
1
  import { clone } from 'ramda';
2
+ import { CustomThemeUtil } from './custom-theme-util';
2
3
  /**
3
4
  * 主题工具类
4
5
  *
@@ -18,6 +19,14 @@ export class ThemeUtil {
18
19
  * @type {HTMLElement}
19
20
  */
20
21
  this.html = document.getElementsByTagName('html')[0];
22
+ /**
23
+ * 自定义主题工具类
24
+ *
25
+ * @protected
26
+ * @type {CustomThemeUtil}
27
+ * @memberof ThemeUtil
28
+ */
29
+ this.customUtil = {};
21
30
  }
22
31
  /**
23
32
  * 加载主题插件
@@ -92,4 +101,98 @@ export class ThemeUtil {
92
101
  getTheme() {
93
102
  return this.html.getAttribute('theme');
94
103
  }
104
+ /**
105
+ * 自定义主题
106
+ *
107
+ * @memberof ThemeUtil
108
+ */
109
+ customTheme() {
110
+ ibiz.overlay.drawer('IBizCustomTheme', undefined, {
111
+ width: 30,
112
+ placement: 'right',
113
+ });
114
+ }
115
+ /**
116
+ * 初始化自定义主题
117
+ *
118
+ * @return {*} {Promise<void>}
119
+ * @memberof ThemeUtil
120
+ */
121
+ async initCustomTheme(needLoad = true) {
122
+ this.customUtil = new CustomThemeUtil(this);
123
+ if (needLoad) {
124
+ await this.customUtil.loadCustomTheme();
125
+ }
126
+ }
127
+ /**
128
+ * 获取自定义主题
129
+ *
130
+ * @return {*} {ICustomThemeState}
131
+ * @memberof ThemeUtil
132
+ */
133
+ getCustomTheme() {
134
+ return this.customUtil.state;
135
+ }
136
+ /**
137
+ * 设置自定义主题
138
+ *
139
+ * @param {IData} data
140
+ * @memberof ThemeUtil
141
+ */
142
+ setCustomTheme(data) {
143
+ Object.assign(this.customUtil.state, data);
144
+ }
145
+ /**
146
+ * 预览自定义主题
147
+ *
148
+ * @param {string} themeTag
149
+ * @param {Record<string, string>} themeVars
150
+ * @return {*} {ICustomThemeState}
151
+ * @memberof ThemeUtil
152
+ */
153
+ previewCustomTheme(themeTag, themeVars) {
154
+ return this.customUtil.previewCustomTheme(themeTag, themeVars);
155
+ }
156
+ /**
157
+ * 还原自定义主题
158
+ *
159
+ * @return {*} {void}
160
+ * @memberof ThemeUtil
161
+ */
162
+ resetCustomTheme() {
163
+ return this.customUtil.clearCustomThemeParams();
164
+ }
165
+ /**
166
+ * 保存自定义主题
167
+ *
168
+ * @param {string} themeTag
169
+ * @param {Record<string, string>} themeVars
170
+ * @return {*} {(Promise<boolean | undefined>)}
171
+ * @memberof ThemeUtil
172
+ */
173
+ async saveCustomTheme(themeTag, themeVars) {
174
+ return this.customUtil.saveCustomTheme(themeTag, themeVars);
175
+ }
176
+ /**
177
+ * 分享自定义主题
178
+ *
179
+ * @param {string} themeTag
180
+ * @param {Record<string, string>} themeVars
181
+ * @return {*} {(Promise<string | undefined>)}
182
+ * @memberof ThemeUtil
183
+ */
184
+ async shareCustomTheme(themeTag, themeVars) {
185
+ return this.customUtil.shareCustomTheme(themeTag, themeVars);
186
+ }
187
+ /**
188
+ * 获取分享主题
189
+ *
190
+ * @param {string} userId
191
+ * @param {string} themeId
192
+ * @return {*} {Promise<IData>}
193
+ * @memberof ThemeUtil
194
+ */
195
+ async getShareTheme(userId, themeId) {
196
+ return this.customUtil.getShareTheme(userId, themeId);
197
+ }
95
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/runtime",
3
- "version": "0.7.20",
3
+ "version": "0.7.21",
4
4
  "description": "控制器包",
5
5
  "type": "module",
6
6
  "main": "out/index.js",
@@ -66,5 +66,5 @@
66
66
  "qx-util": "^0.4.8",
67
67
  "ramda": "^0.29.0"
68
68
  },
69
- "gitHead": "f1ed24c79a6f4969f4b1a0f7bc54c9252abd10c3"
69
+ "gitHead": "cae794a2466f2ca5614332344f66f1797ea6a4f4"
70
70
  }