@cicctencent/low-code-simulate-base 0.0.0-stage → 1.1.9-beta.5

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 (82) hide show
  1. package/README.md +1 -3
  2. package/__tests__/plugin.spec.ts +40 -0
  3. package/__tests__/utils.transform.test.ts +37 -0
  4. package/api-extractor.json +36 -0
  5. package/build/md.js +25 -0
  6. package/dist/VCComponent.d.ts +5 -0
  7. package/dist/VCComponent.js +91 -0
  8. package/dist/domain/BaseProjectDomain.d.ts +349 -0
  9. package/dist/domain/BaseProjectDomain.js +1305 -0
  10. package/dist/domain/ComponentManager.d.ts +78 -0
  11. package/dist/domain/ComponentManager.js +293 -0
  12. package/dist/domain/DataHistoryDomain.d.ts +53 -0
  13. package/dist/domain/DataHistoryDomain.js +110 -0
  14. package/dist/domain/PreviewDomain.d.ts +208 -0
  15. package/dist/domain/PreviewDomain.js +492 -0
  16. package/dist/domain/ProjectDomain.d.ts +209 -0
  17. package/dist/domain/ProjectDomain.js +138 -0
  18. package/dist/event/generateEventHandler.d.ts +21 -0
  19. package/dist/event/generateEventHandler.js +218 -0
  20. package/dist/event/generateEventSchema.d.ts +123 -0
  21. package/dist/event/generateEventSchema.js +342 -0
  22. package/dist/event/register.d.ts +56 -0
  23. package/dist/event/register.js +207 -0
  24. package/dist/index.d.ts +1330 -0
  25. package/dist/index.js +28 -0
  26. package/dist/plugin/onH5PageValidate.d.ts +7 -0
  27. package/dist/plugin/onH5PageValidate.js +178 -0
  28. package/dist/plugin/onPlaceholder.d.ts +6 -0
  29. package/dist/plugin/onPlaceholder.js +68 -0
  30. package/dist/plugin/subscribeInsertUploadList.d.ts +6 -0
  31. package/dist/plugin/subscribeInsertUploadList.js +49 -0
  32. package/dist/plugin/subscribeSetTitle.d.ts +6 -0
  33. package/dist/plugin/subscribeSetTitle.js +16 -0
  34. package/dist/plugin/subscribeTransformComponentMeta.d.ts +14 -0
  35. package/dist/plugin/subscribeTransformComponentMeta.js +31 -0
  36. package/dist/plugin/subscribeValidateField.d.ts +7 -0
  37. package/dist/plugin/subscribeValidateField.js +57 -0
  38. package/dist/plugin/subscribeValidateUpload.d.ts +6 -0
  39. package/dist/plugin/subscribeValidateUpload.js +92 -0
  40. package/dist/utils/base64.d.ts +14 -0
  41. package/dist/utils/base64.js +14 -0
  42. package/dist/utils/buildInVariable.d.ts +61 -0
  43. package/dist/utils/buildInVariable.js +216 -0
  44. package/dist/utils/dom.d.ts +14 -0
  45. package/dist/utils/dom.js +19 -0
  46. package/dist/utils/index.d.ts +55 -0
  47. package/dist/utils/index.js +201 -0
  48. package/dist/utils/transform.d.ts +39 -0
  49. package/dist/utils/transform.js +191 -0
  50. package/dist/utils/validate.d.ts +7 -0
  51. package/dist/utils/validate.js +18 -0
  52. package/docs/.api/low-code-simulate-base.api.json +8450 -0
  53. package/jest.config.ts +20 -0
  54. package/package.json +44 -4
  55. package/src/VCComponent.ts +118 -0
  56. package/src/domain/BaseProjectDomain.ts +1341 -0
  57. package/src/domain/ComponentManager.ts +241 -0
  58. package/src/domain/DataHistoryDomain.ts +102 -0
  59. package/src/domain/PreviewDomain.ts +424 -0
  60. package/src/domain/ProjectDomain.ts +244 -0
  61. package/src/event/generateEventHandler.ts +162 -0
  62. package/src/event/generateEventSchema.ts +371 -0
  63. package/src/event/register.ts +181 -0
  64. package/src/index.ts +61 -0
  65. package/src/plugin/onH5PageValidate.ts +179 -0
  66. package/src/plugin/onPlaceholder.ts +71 -0
  67. package/src/plugin/subscribeInsertUploadList.ts +51 -0
  68. package/src/plugin/subscribeSetTitle.ts +18 -0
  69. package/src/plugin/subscribeTransformComponentMeta.ts +38 -0
  70. package/src/plugin/subscribeValidateField.ts +65 -0
  71. package/src/plugin/subscribeValidateUpload.ts +116 -0
  72. package/src/utils/base64.ts +17 -0
  73. package/src/utils/buildInVariable.ts +157 -0
  74. package/src/utils/dom.ts +30 -0
  75. package/src/utils/index.ts +194 -0
  76. package/src/utils/transform.ts +171 -0
  77. package/src/utils/validate.ts +19 -0
  78. package/temp/low-code-simulate-base.api.md +597 -0
  79. package/test/plugin.test.ts +4 -0
  80. package/tsconfig.build.json +9 -0
  81. package/tsconfig.json +9 -0
  82. package/tsconfig.test.json +14 -0
@@ -0,0 +1,78 @@
1
+ import { Component, ComponentItem } from '@jt/low-code-core';
2
+ /**
3
+ * @public
4
+ */
5
+ export default class ComponentManager {
6
+ private static instance;
7
+ /**全局最大Id,从0开始 */
8
+ private maxId;
9
+ /**组件最大ID映射 ,从0开始*/
10
+ private componentMaxIdMap;
11
+ /**组件个数统计,从1开始 */
12
+ private componentCountMap;
13
+ private static componentSchemaMap;
14
+ private constructor();
15
+ /**
16
+ * @public
17
+ * 提供一个公共的静态方法来获取单例实例
18
+ * @param componentConfigs - 组件配置
19
+ * @returns
20
+ */
21
+ static getInstance(componentConfigs?: Component[]): ComponentManager;
22
+ /**
23
+ * @public
24
+ * @param name - 组件名
25
+ * @returns
26
+ */
27
+ get(name: string): Component;
28
+ /**
29
+ * @public
30
+ * 初始化
31
+ * @param components - 组件列表
32
+ */
33
+ initComponens(components: ComponentItem[]): void;
34
+ /**
35
+ * @public
36
+ * @returns
37
+ */
38
+ getImxId(): number;
39
+ /**
40
+ * @public
41
+ * @param name - 组件名
42
+ * @returns
43
+ */
44
+ private createId;
45
+ /**
46
+ * @public
47
+ * 插入、点击或复制时创建新的组件数据
48
+ * @param item - 组件信息
49
+ * @returns
50
+ */
51
+ buildItemData(item: ComponentItem | Component): ComponentItem;
52
+ /**
53
+ * @public
54
+ * 复制组件数据
55
+ * @param component - 组件
56
+ * @returns
57
+ */
58
+ copy(component: ComponentItem): ComponentItem;
59
+ /**
60
+ * @public
61
+ * 填充数据
62
+ */
63
+ private fillFieldData;
64
+ /**
65
+ * @public
66
+ * 删除
67
+ * @param name - 组件名
68
+ */
69
+ delete(name: string): void;
70
+ /**
71
+ * @public
72
+ * 其他方法,例如更新maxId和映射
73
+ * @param components - 组件列表
74
+ * @param componentIds - 组件id列表
75
+ * @returns
76
+ */
77
+ private updateComponentMaps;
78
+ }
@@ -0,0 +1,293 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __values = (this && this.__values) || function(o) {
13
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
14
+ if (m) return m.call(o);
15
+ if (o && typeof o.length === "number") return {
16
+ next: function () {
17
+ if (o && i >= o.length) o = void 0;
18
+ return { value: o && o[i++], done: !o };
19
+ }
20
+ };
21
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
22
+ };
23
+ var __read = (this && this.__read) || function (o, n) {
24
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
25
+ if (!m) return o;
26
+ var i = m.call(o), r, ar = [], e;
27
+ try {
28
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
29
+ }
30
+ catch (error) { e = { error: error }; }
31
+ finally {
32
+ try {
33
+ if (r && !r.done && (m = i["return"])) m.call(i);
34
+ }
35
+ finally { if (e) throw e.error; }
36
+ }
37
+ return ar;
38
+ };
39
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
40
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
41
+ if (ar || !(i in from)) {
42
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
43
+ ar[i] = from[i];
44
+ }
45
+ }
46
+ return to.concat(ar || Array.prototype.slice.call(from));
47
+ };
48
+ import { ComponentType } from '@jt/low-code-core';
49
+ import { getSchemaObjectAttribute } from '../utils';
50
+ import { cloneDeep, merge, get, set } from '@jt/ark-util';
51
+ import { transformSchemaToForm } from '../utils/transform';
52
+ /**
53
+ * @public
54
+ */
55
+ var ComponentManager = /** @class */ (function () {
56
+ // 私有构造函数确保外部代码不能使用new操作符创建新的实例
57
+ function ComponentManager() {
58
+ /**全局最大Id,从0开始 */
59
+ this.maxId = 0;
60
+ /**组件最大ID映射 ,从0开始*/
61
+ this.componentMaxIdMap = {};
62
+ /**组件个数统计,从1开始 */
63
+ this.componentCountMap = {};
64
+ }
65
+ /**
66
+ * @public
67
+ * 提供一个公共的静态方法来获取单例实例
68
+ * @param componentConfigs - 组件配置
69
+ * @returns
70
+ */
71
+ ComponentManager.getInstance = function (componentConfigs) {
72
+ var e_1, _a;
73
+ if (!ComponentManager.instance) {
74
+ ComponentManager.instance = new ComponentManager();
75
+ }
76
+ if (componentConfigs) {
77
+ try {
78
+ for (var componentConfigs_1 = __values(componentConfigs), componentConfigs_1_1 = componentConfigs_1.next(); !componentConfigs_1_1.done; componentConfigs_1_1 = componentConfigs_1.next()) {
79
+ var item = componentConfigs_1_1.value;
80
+ ComponentManager.componentSchemaMap[item.name] = item;
81
+ }
82
+ }
83
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
+ finally {
85
+ try {
86
+ if (componentConfigs_1_1 && !componentConfigs_1_1.done && (_a = componentConfigs_1.return)) _a.call(componentConfigs_1);
87
+ }
88
+ finally { if (e_1) throw e_1.error; }
89
+ }
90
+ }
91
+ return ComponentManager.instance;
92
+ };
93
+ /**
94
+ * @public
95
+ * @param name - 组件名
96
+ * @returns
97
+ */
98
+ ComponentManager.prototype.get = function (name) {
99
+ return ComponentManager.componentSchemaMap[name];
100
+ };
101
+ /**
102
+ * @public
103
+ * 初始化
104
+ * @param components - 组件列表
105
+ */
106
+ ComponentManager.prototype.initComponens = function (components) {
107
+ this.updateComponentMaps(components);
108
+ this.maxId = Math.max.apply(Math, __spreadArray([0], __read(this.updateComponentMaps(components)), false));
109
+ };
110
+ /**
111
+ * @public
112
+ * @returns
113
+ */
114
+ ComponentManager.prototype.getImxId = function () {
115
+ return this.maxId;
116
+ };
117
+ // 创建id
118
+ /**
119
+ * @public
120
+ * @param name - 组件名
121
+ * @returns
122
+ */
123
+ ComponentManager.prototype.createId = function (name) {
124
+ ++this.maxId;
125
+ this.componentMaxIdMap[name] = (this.componentMaxIdMap[name] || 0) + 1;
126
+ this.componentCountMap[name] = (this.componentCountMap[name] || 0) + 1;
127
+ // 先加后用
128
+ return {
129
+ componentId: this.maxId,
130
+ nameId: this.componentMaxIdMap[name],
131
+ };
132
+ };
133
+ /**
134
+ * @public
135
+ * 插入、点击或复制时创建新的组件数据
136
+ * @param item - 组件信息
137
+ * @returns
138
+ */
139
+ ComponentManager.prototype.buildItemData = function (item) {
140
+ var _a;
141
+ if ('componentId' in item) {
142
+ // 已经初始化过的直接返回
143
+ return item;
144
+ }
145
+ var schema = this.get(item.name);
146
+ var originTitle = schema.title;
147
+ var _b = this.createId(item.name), componentId = _b.componentId, nameId = _b.nameId;
148
+ var formData = 'formData' in item
149
+ ? this.fillFieldData(cloneDeep(item.formData), Object.assign({}, item, { componentId: componentId }))
150
+ : this.fillFieldData({}, Object.assign({}, item, { componentId: componentId }));
151
+ var itemData = {
152
+ title: originTitle + (nameId === 1 ? '' : nameId),
153
+ name: schema.name,
154
+ icon: schema.icon,
155
+ // picture: item.picture,
156
+ isNoLogin: (_a = schema.isNoLogin) !== null && _a !== void 0 ? _a : false,
157
+ // group: item.group,
158
+ // 这里去掉了config,渲染数据不需要包含config
159
+ type: schema.type,
160
+ componentId: componentId,
161
+ // 这里的对象都要cloneDeep,避免影响原数据
162
+ formData: formData,
163
+ // 是否为不可移动元素
164
+ immobile: schema.immobile,
165
+ };
166
+ if ('children' in item || item.type === ComponentType.Container) {
167
+ itemData.children =
168
+ 'children' in item ? item.children : [];
169
+ }
170
+ return itemData;
171
+ };
172
+ /**
173
+ * @public
174
+ * 复制组件数据
175
+ * @param component - 组件
176
+ * @returns
177
+ */
178
+ ComponentManager.prototype.copy = function (component) {
179
+ var e_2, _a;
180
+ var _this = this;
181
+ var _b, _c, _d;
182
+ var formData = cloneDeep(component === null || component === void 0 ? void 0 : component.formData);
183
+ var copyClearPaths = (_b = this.get(component.name)) === null || _b === void 0 ? void 0 : _b.copyClearPaths;
184
+ if (Array.isArray(copyClearPaths)) {
185
+ try {
186
+ for (var copyClearPaths_1 = __values(copyClearPaths), copyClearPaths_1_1 = copyClearPaths_1.next(); !copyClearPaths_1_1.done; copyClearPaths_1_1 = copyClearPaths_1.next()) {
187
+ var path = copyClearPaths_1_1.value;
188
+ try {
189
+ var propValue = get(formData, path);
190
+ // 找不到说明未配置该数据 不必再清除
191
+ if (propValue === undefined)
192
+ continue;
193
+ // 属性名
194
+ var propName = (_c = path.match(/\.(\w+)$/)) === null || _c === void 0 ? void 0 : _c[1];
195
+ var config = getSchemaObjectAttribute(this.get(component.name).config, propName);
196
+ // 不同类型对应清空后的值
197
+ var typeToDefault = {
198
+ object: {},
199
+ array: [],
200
+ default: null,
201
+ };
202
+ // 默认值
203
+ var defaultValue = config === null || config === void 0 ? void 0 : config.default;
204
+ var value = (_d = defaultValue !== null && defaultValue !== void 0 ? defaultValue : typeToDefault[config.type]) !== null && _d !== void 0 ? _d : typeToDefault.default;
205
+ set(formData, path, value);
206
+ }
207
+ catch (error) {
208
+ console.error('clear path error', error);
209
+ }
210
+ }
211
+ }
212
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
213
+ finally {
214
+ try {
215
+ if (copyClearPaths_1_1 && !copyClearPaths_1_1.done && (_a = copyClearPaths_1.return)) _a.call(copyClearPaths_1);
216
+ }
217
+ finally { if (e_2) throw e_2.error; }
218
+ }
219
+ }
220
+ var newComponent = __assign(__assign({}, this.get(component.name)), { formData: formData });
221
+ if (component.children && component.children.length) {
222
+ newComponent.children = component.children.map(function (c) {
223
+ return _this.copy(c);
224
+ });
225
+ }
226
+ return this.buildItemData(newComponent);
227
+ };
228
+ /**
229
+ * @public
230
+ * 填充数据
231
+ */
232
+ ComponentManager.prototype.fillFieldData = function (data, componentConfig) {
233
+ var config = this.get(componentConfig.name).config || {};
234
+ return merge(transformSchemaToForm(config, componentConfig), data);
235
+ };
236
+ /**
237
+ * @public
238
+ * 删除
239
+ * @param name - 组件名
240
+ */
241
+ ComponentManager.prototype.delete = function (name) {
242
+ var count = (this.componentCountMap[name] =
243
+ (this.componentCountMap[name] || 0) - 1);
244
+ this.componentCountMap[name] = count;
245
+ if (count === 0) {
246
+ this.componentMaxIdMap[name] = 0;
247
+ }
248
+ };
249
+ /**
250
+ * @public
251
+ * 其他方法,例如更新maxId和映射
252
+ * @param components - 组件列表
253
+ * @param componentIds - 组件id列表
254
+ * @returns
255
+ */
256
+ ComponentManager.prototype.updateComponentMaps = function (components, componentIds) {
257
+ var e_3, _a;
258
+ var _b, _c, _d, _e;
259
+ if (componentIds === void 0) { componentIds = []; }
260
+ try {
261
+ for (var components_1 = __values(components), components_1_1 = components_1.next(); !components_1_1.done; components_1_1 = components_1.next()) {
262
+ var component = components_1_1.value;
263
+ var maxNumber = (((_b = component.title) === null || _b === void 0 ? void 0 : _b.match(/\d+$/)) || [])[0] || '';
264
+ var currentMax = (_c = this.componentMaxIdMap[component.name]) !== null && _c !== void 0 ? _c : 1;
265
+ this.componentMaxIdMap[component.name] = Math.max(currentMax, parseInt(maxNumber, 10) || 0);
266
+ this.componentCountMap[component.name] =
267
+ ((_d = this.componentCountMap[component.name]) !== null && _d !== void 0 ? _d : 0) + 1;
268
+ componentIds.push(component.componentId);
269
+ if ((_e = component.children) === null || _e === void 0 ? void 0 : _e.length) {
270
+ this.updateComponentMaps(component.children, componentIds);
271
+ }
272
+ }
273
+ }
274
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
275
+ finally {
276
+ try {
277
+ if (components_1_1 && !components_1_1.done && (_a = components_1.return)) _a.call(components_1);
278
+ }
279
+ finally { if (e_3) throw e_3.error; }
280
+ }
281
+ return componentIds;
282
+ };
283
+ // 这里的schema需要读取配置文件
284
+ ComponentManager.componentSchemaMap = {};
285
+ return ComponentManager;
286
+ }());
287
+ export default ComponentManager;
288
+ // // 使用单例
289
+ // const manager = ComponentManager.getInstance();
290
+ // manager.initComponens(components);
291
+ // console.log(manager.maxId);
292
+ // console.log(manager.componentMaxIdMap);
293
+ // console.log(manager.componentCountMap);
@@ -0,0 +1,53 @@
1
+ /**
2
+ * DataHistoryDomain
3
+ * @public
4
+ * @typeParam T - 类型参数
5
+ */
6
+ export default class DataHistoryDomain<T> {
7
+ /**
8
+ * 项目历史数据
9
+ * @public
10
+ */
11
+ historyList: Array<T>;
12
+ /**
13
+ * 历史数据指针
14
+ * @public
15
+ */
16
+ historyIndex: number;
17
+ /**
18
+ * @public
19
+ */
20
+ get data(): T;
21
+ /**
22
+ * @public
23
+ * 添加历史记录
24
+ */
25
+ add(data: T): boolean;
26
+ /**
27
+ * @public
28
+ * 更新
29
+ */
30
+ update(data: T): void;
31
+ /**
32
+ * @public
33
+ */
34
+ get canUndo(): boolean;
35
+ /**
36
+ * @public
37
+ */
38
+ get canRedo(): boolean;
39
+ /**
40
+ * @public
41
+ * @returns
42
+ */
43
+ undo(): false | T;
44
+ /**
45
+ * @public
46
+ * @returns
47
+ */
48
+ redo(): false | T;
49
+ /**
50
+ * @public
51
+ */
52
+ reset(): void;
53
+ }
@@ -0,0 +1,110 @@
1
+ /**数据历史管理 */
2
+ import { cloneDeep, isEqual } from '@jt/ark-util';
3
+ /**
4
+ * DataHistoryDomain
5
+ * @public
6
+ * @typeParam T - 类型参数
7
+ */
8
+ var DataHistoryDomain = /** @class */ (function () {
9
+ function DataHistoryDomain() {
10
+ /**
11
+ * 项目历史数据
12
+ * @public
13
+ */
14
+ this.historyList = [];
15
+ /**
16
+ * 历史数据指针
17
+ * @public
18
+ */
19
+ this.historyIndex = -1;
20
+ }
21
+ Object.defineProperty(DataHistoryDomain.prototype, "data", {
22
+ /**
23
+ * @public
24
+ */
25
+ get: function () {
26
+ return this.historyList[this.historyIndex];
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ /**
32
+ * @public
33
+ * 添加历史记录
34
+ */
35
+ DataHistoryDomain.prototype.add = function (data) {
36
+ if (isEqual(this.data, data)) {
37
+ // 相等则直接返回
38
+ return false;
39
+ }
40
+ if (this.historyIndex < this.historyList.length - 1) {
41
+ // 撤销后再编辑,去掉后面的重做队列
42
+ this.historyList.splice(this.historyIndex + 1);
43
+ }
44
+ this.historyList = this.historyList.concat(cloneDeep(data));
45
+ // 虽然this.historyIndex++也可以,以下更稳
46
+ this.historyIndex = this.historyList.length - 1;
47
+ console.log('historyIndex----------', this.historyIndex, this.historyList);
48
+ return true;
49
+ };
50
+ /**
51
+ * @public
52
+ * 更新
53
+ */
54
+ DataHistoryDomain.prototype.update = function (data) {
55
+ if (this.historyIndex < 0) {
56
+ this.historyIndex = 0;
57
+ }
58
+ this.historyList[this.historyIndex] = cloneDeep(data);
59
+ };
60
+ Object.defineProperty(DataHistoryDomain.prototype, "canUndo", {
61
+ /**
62
+ * @public
63
+ */
64
+ get: function () {
65
+ // 考虑到第1个数据为初始化数据。初始数据不可被撤销
66
+ return this.historyList.length > 1 && this.historyIndex > 0;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ Object.defineProperty(DataHistoryDomain.prototype, "canRedo", {
72
+ /**
73
+ * @public
74
+ */
75
+ get: function () {
76
+ return this.historyIndex < this.historyList.length - 1;
77
+ },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
81
+ /**
82
+ * @public
83
+ * @returns
84
+ */
85
+ DataHistoryDomain.prototype.undo = function () {
86
+ if (this.canUndo) {
87
+ return this.historyList[--this.historyIndex];
88
+ }
89
+ return false;
90
+ };
91
+ /**
92
+ * @public
93
+ * @returns
94
+ */
95
+ DataHistoryDomain.prototype.redo = function () {
96
+ if (this.canRedo) {
97
+ return this.historyList[++this.historyIndex];
98
+ }
99
+ return false;
100
+ };
101
+ /**
102
+ * @public
103
+ */
104
+ DataHistoryDomain.prototype.reset = function () {
105
+ this.historyList = [];
106
+ this.historyIndex = -1;
107
+ };
108
+ return DataHistoryDomain;
109
+ }());
110
+ export default DataHistoryDomain;