@cloudbase/cals 1.0.72-alpha.1 → 1.0.72-alpha.10
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/lib/parser/cals/index.d.ts +10 -8
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +9 -81
- package/lib/parser/cals/utils/block/helpers/merge-dataset.d.ts +6 -0
- package/lib/parser/cals/utils/block/helpers/merge-dataset.d.ts.map +1 -0
- package/lib/parser/cals/utils/block/helpers/merge-dataset.js +17 -0
- package/lib/parser/cals/utils/block/helpers/merge-listeners.d.ts +6 -0
- package/lib/parser/cals/utils/block/helpers/merge-listeners.d.ts.map +1 -0
- package/lib/parser/cals/utils/block/helpers/merge-listeners.js +14 -0
- package/lib/parser/cals/utils/block/helpers/merge-resources.d.ts +6 -0
- package/lib/parser/cals/utils/block/helpers/merge-resources.d.ts.map +1 -0
- package/lib/parser/cals/utils/block/helpers/merge-resources.js +29 -0
- package/lib/parser/cals/utils/block/helpers/remap-component-ids.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/helpers/remap-component-ids.js +5 -4
- package/lib/parser/cals/utils/block/helpers/renew-id-in-code.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-code.js +2 -8
- package/lib/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts +2 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-expr.js +49 -55
- package/lib/parser/cals/utils/block/index.d.ts +27 -3
- package/lib/parser/cals/utils/block/index.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/index.js +163 -7
- package/lib/parser/cals/utils/common.d.ts +1 -1
- package/lib/parser/cals/utils/common.d.ts.map +1 -1
- package/lib/parser/cals/utils/common.js +4 -9
- package/lib/parser/cals/utils/getUsedReference.d.ts +3 -2
- package/lib/parser/cals/utils/getUsedReference.d.ts.map +1 -1
- package/lib/parser/cals/utils/getUsedReference.js +8 -5
- package/lib/parser/index.d.ts +1 -1
- package/lib/parser/index.d.ts.map +1 -1
- package/lib/parser/index.js +4 -1
- package/lib/types/platform/datasource.d.ts +6 -0
- package/lib/types/platform/datasource.d.ts.map +1 -1
- package/lib/types/platform/datasource.js +7 -0
- package/lib/utils/dts/auto-generated.d.ts +1 -1
- package/lib/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/utils/dts/auto-generated.js +5 -0
- package/package.json +1 -1
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.regenBlockTemplateComponents = exports.parseComponentCals = exports.VisitedMap = exports.refreshComponentIds = exports.remapComponentIds = exports.renewIdInResource = void 0;
|
|
17
|
+
exports.collapseComponentReference = exports.expandComponentReference = exports.mergeCals = exports.regenBlockTemplateComponents = exports.parseComponentCals = exports.VisitedMap = exports.refreshComponentIds = exports.remapComponentIds = exports.renewIdInResource = void 0;
|
|
7
18
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
19
|
const set_1 = __importDefault(require("lodash/set"));
|
|
20
|
+
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
9
21
|
const expression_1 = require("../../../expression");
|
|
10
22
|
const remap_component_ids_1 = require("./helpers/remap-component-ids");
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
const get_component_namespace_1 = require("./helpers/get-component-namespace");
|
|
25
|
+
const renew_id_in_resource_1 = require("./helpers/renew-id-in-resource");
|
|
26
|
+
const merge_resources_1 = require("./helpers/merge-resources");
|
|
27
|
+
const merge_dataset_1 = require("./helpers/merge-dataset");
|
|
28
|
+
const merge_listeners_1 = require("./helpers/merge-listeners");
|
|
29
|
+
const lodash_1 = require("lodash");
|
|
30
|
+
var renew_id_in_resource_2 = require("./helpers/renew-id-in-resource");
|
|
31
|
+
Object.defineProperty(exports, "renewIdInResource", { enumerable: true, get: function () { return renew_id_in_resource_2.renewIdInResource; } });
|
|
13
32
|
var remap_component_ids_2 = require("./helpers/remap-component-ids");
|
|
14
33
|
Object.defineProperty(exports, "remapComponentIds", { enumerable: true, get: function () { return remap_component_ids_2.remapComponentIds; } });
|
|
15
34
|
Object.defineProperty(exports, "refreshComponentIds", { enumerable: true, get: function () { return remap_component_ids_2.refreshComponentIds; } });
|
|
@@ -158,11 +177,148 @@ function parseValueCals(ctx, value) {
|
|
|
158
177
|
}
|
|
159
178
|
}
|
|
160
179
|
function regenBlockTemplateComponents(ctx, components) {
|
|
161
|
-
|
|
180
|
+
let { componentIdMap } = ctx, restContext = __rest(ctx, ["componentIdMap"]);
|
|
181
|
+
if (!componentIdMap) {
|
|
182
|
+
componentIdMap = (0, remap_component_ids_1.remapComponentIds)(components, ctx.visiting).componentIdMap;
|
|
183
|
+
}
|
|
162
184
|
return components.map((component) => {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return Object.assign(Object.assign({}, processed), { extra: Object.assign(Object.assign({}, processed.extra), { xIndex: undefined, anchored: true }) });
|
|
185
|
+
let processed = (0, remap_component_ids_1.refreshComponentIds)({ componentIdMap }, component);
|
|
186
|
+
return expandComponentReference(restContext, Object.assign(Object.assign({}, processed), { extra: Object.assign(Object.assign({}, processed.extra), { xIndex: undefined, anchored: true }) }));
|
|
166
187
|
});
|
|
167
188
|
}
|
|
168
189
|
exports.regenBlockTemplateComponents = regenBlockTemplateComponents;
|
|
190
|
+
/**
|
|
191
|
+
* todo: dataForm 追加
|
|
192
|
+
*/
|
|
193
|
+
function mergeCals(ctx, list) {
|
|
194
|
+
var _a, _b;
|
|
195
|
+
const visitedContext = {
|
|
196
|
+
existing: new remap_component_ids_1.VisitedMap(),
|
|
197
|
+
untilNow: new remap_component_ids_1.VisitedMap(),
|
|
198
|
+
};
|
|
199
|
+
// 不修改原始数据
|
|
200
|
+
const clonedCalsList = JSON.parse(JSON.stringify(list));
|
|
201
|
+
// 初始化 `visitedContext.existing` 数据
|
|
202
|
+
for (const { cals } of clonedCalsList) {
|
|
203
|
+
if (cals.items.length > 1) {
|
|
204
|
+
throw new Error('不支持对多页面的 CALS 进行合并');
|
|
205
|
+
}
|
|
206
|
+
// 区块只有一个页面
|
|
207
|
+
const page = cals.items[0];
|
|
208
|
+
(0, common_1.walkThroughComponents)(page.items, (item) => {
|
|
209
|
+
var _a;
|
|
210
|
+
(_a = item.extra) === null || _a === void 0 ? true : delete _a.xIndex;
|
|
211
|
+
if (!item.component || typeof item.component !== 'string') {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const namespace = (0, get_component_namespace_1.getComponentNamespace)(item.component);
|
|
215
|
+
visitedContext.existing.add(namespace, item.id);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* 根据 `visitedContext` 收集的信息,按需更新组件 ID
|
|
220
|
+
* 组件id是页面隔离的,因此限制约定,只处理 0 号页面
|
|
221
|
+
*/
|
|
222
|
+
for (const { cals } of clonedCalsList) {
|
|
223
|
+
const page = cals.items[0];
|
|
224
|
+
const { componentIdMap } = (0, remap_component_ids_1.remapComponentIds)(page.items, visitedContext);
|
|
225
|
+
page.items = regenBlockTemplateComponents({ visiting: visitedContext, componentIdMap, blockTemplateMap: ctx.blockTemplateMap }, page.items);
|
|
226
|
+
// 应用资源更新 ID
|
|
227
|
+
cals.resources = (_a = cals.resources) === null || _a === void 0 ? void 0 : _a.map((resource) => (0, renew_id_in_resource_1.renewIdInResource)(resource, componentIdMap));
|
|
228
|
+
// 页面资源更新 ID
|
|
229
|
+
page.resources = (_b = page.resources) === null || _b === void 0 ? void 0 : _b.map((resource) => (0, renew_id_in_resource_1.renewIdInResource)(resource, componentIdMap));
|
|
230
|
+
}
|
|
231
|
+
const mergedCals = clonedCalsList
|
|
232
|
+
.map((meta) => meta.cals)
|
|
233
|
+
.reduce((first, second) => {
|
|
234
|
+
const firstPage = first.items[0];
|
|
235
|
+
const secondPage = second.items[0];
|
|
236
|
+
const mergedPage = Object.assign(Object.assign(Object.assign({}, secondPage), firstPage), { items: [...firstPage.items, ...secondPage.items], resources: (0, merge_resources_1.mergeResources)(firstPage.resources, secondPage.resources) || [], dataset: (0, merge_dataset_1.mergeDataset)(firstPage.dataset, secondPage.dataset) || {}, listeners: (0, merge_listeners_1.mergeListeners)(firstPage.listeners, secondPage.listeners) });
|
|
237
|
+
if (!mergedPage.listeners) {
|
|
238
|
+
delete mergedPage.listeners;
|
|
239
|
+
}
|
|
240
|
+
return Object.assign(Object.assign(Object.assign({}, second), first), { items: [mergedPage], resources: (0, merge_resources_1.mergeResources)(first.resources, second.resources) || [], dataset: (0, merge_dataset_1.mergeDataset)(first.dataset, second.dataset) || {} });
|
|
241
|
+
});
|
|
242
|
+
return mergedCals;
|
|
243
|
+
}
|
|
244
|
+
exports.mergeCals = mergeCals;
|
|
245
|
+
function expandComponentReference(ctx, component) {
|
|
246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
247
|
+
const { blockTemplateMap, strict } = ctx;
|
|
248
|
+
const { extra = {}, id, component: componentName } = component;
|
|
249
|
+
const { ref } = extra;
|
|
250
|
+
if (ref) {
|
|
251
|
+
if (blockTemplateMap[ref]) {
|
|
252
|
+
if ((_a = ctx === null || ctx === void 0 ? void 0 : ctx.referenceMap) === null || _a === void 0 ? void 0 : _a[ref]) {
|
|
253
|
+
if (strict) {
|
|
254
|
+
throw new Error(`存在循环引用:${ref}`);
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
return undefined;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const block = blockTemplateMap[ref];
|
|
261
|
+
const blockContent = (_d = regenBlockTemplateComponents(Object.assign(Object.assign({}, ctx), { referenceMap: Object.assign(Object.assign({}, ctx.referenceMap), { [ref]: true }) }), (0, lodash_1.cloneDeep)(((_c = (_b = block.content.items) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.items) || []))) === null || _d === void 0 ? void 0 : _d[0];
|
|
262
|
+
/**
|
|
263
|
+
* 动态配置协议有修改未定
|
|
264
|
+
* 因此先写死限制
|
|
265
|
+
*/
|
|
266
|
+
if (!((_e = blockContent === null || blockContent === void 0 ? void 0 : blockContent.extra) === null || _e === void 0 ? void 0 : _e.dataForm) &&
|
|
267
|
+
blockContent.component === 'Container' &&
|
|
268
|
+
(((_f = blockContent.attributes) === null || _f === void 0 ? void 0 : _f.data) || ((_g = blockContent.attributes) === null || _g === void 0 ? void 0 : _g[':data'])) &&
|
|
269
|
+
((_h = block.dynamicConfig) === null || _h === void 0 ? void 0 : _h.type) === 'object' &&
|
|
270
|
+
((_j = block.dynamicConfig) === null || _j === void 0 ? void 0 : _j.properties.configs)) {
|
|
271
|
+
blockContent.extra = Object.assign(Object.assign({}, blockContent.extra), { dataForm: { data: (_k = block.dynamicConfig) === null || _k === void 0 ? void 0 : _k.properties.configs } });
|
|
272
|
+
}
|
|
273
|
+
const { attributes: blockAttributes = {} } = blockContent;
|
|
274
|
+
return Object.assign(Object.assign({}, blockContent), {
|
|
275
|
+
// todo: 这里合并有问题,无法简单的合并
|
|
276
|
+
attributes: Object.assign(Object.assign({}, blockAttributes), component.attributes), ':style': component[':style'] || blockContent[':style'], ':class': component[':class'] || blockContent[':class'], extra: Object.assign(Object.assign({}, blockContent.extra), { refAttributes: Object.keys(blockAttributes) ? blockAttributes : undefined, ref }) });
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
if (strict) {
|
|
280
|
+
throw new Error(`未找到引用:${ref}`);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return undefined;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return Object.assign(Object.assign({}, component), { items: (_m = (_l = component.items) === null || _l === void 0 ? void 0 : _l.map) === null || _m === void 0 ? void 0 : _m.call(_l, (item) => expandComponentReference(ctx, item)) });
|
|
288
|
+
}
|
|
289
|
+
exports.expandComponentReference = expandComponentReference;
|
|
290
|
+
function collapseComponentReference(ctx, component) {
|
|
291
|
+
var _a, _b, _c;
|
|
292
|
+
const { extra, attributes = {}, ':style': styleBind, ':class': classBind } = component;
|
|
293
|
+
const { blockTemplateMap } = ctx;
|
|
294
|
+
const _d = extra || {}, { ref, anchored, dataForm, refAttributes } = _d, restExtra = __rest(_d, ["ref", "anchored", "dataForm", "refAttributes"]);
|
|
295
|
+
if (ref && blockTemplateMap[ref]) {
|
|
296
|
+
const processed = {};
|
|
297
|
+
const blockContent = (_c = (_b = (_a = blockTemplateMap[ref].content.items) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.items) === null || _c === void 0 ? void 0 : _c[0];
|
|
298
|
+
restExtra.ref = ref;
|
|
299
|
+
processed.attributes = filterMap(attributes, refAttributes);
|
|
300
|
+
if (styleBind !== blockContent[':style']) {
|
|
301
|
+
processed[':style'] = styleBind;
|
|
302
|
+
}
|
|
303
|
+
if (classBind !== blockContent[':class']) {
|
|
304
|
+
processed[':class'] = classBind;
|
|
305
|
+
}
|
|
306
|
+
processed.extra = filterMap(restExtra, blockContent === null || blockContent === void 0 ? void 0 : blockContent.extra);
|
|
307
|
+
return processed;
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
const _e = (component === null || component === void 0 ? void 0 : component.extra) || {}, { ref, refAttributes, dataForm } = _e, rest = __rest(_e, ["ref", "refAttributes", "dataForm"]);
|
|
311
|
+
return Object.assign(Object.assign({}, component), { extra: (component === null || component === void 0 ? void 0 : component.extra) ? rest : component === null || component === void 0 ? void 0 : component.extra });
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
exports.collapseComponentReference = collapseComponentReference;
|
|
315
|
+
function filterMap(current = {}, base = {}) {
|
|
316
|
+
const filtered = {};
|
|
317
|
+
Object.entries(current).forEach(([key, value]) => {
|
|
318
|
+
// todo: 变量绑定key与非绑定key应为相同key
|
|
319
|
+
if (!(0, isEqual_1.default)(base[key], value)) {
|
|
320
|
+
filtered[key] = value;
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
return filtered;
|
|
324
|
+
}
|
|
@@ -22,7 +22,7 @@ export declare function generateCustomLoginConfigPathname({ appId, version }: {
|
|
|
22
22
|
appId: string;
|
|
23
23
|
version: string;
|
|
24
24
|
}): string;
|
|
25
|
-
export declare function walkThroughComponents(components: IPlatformComponent[], visit: any):
|
|
25
|
+
export declare function walkThroughComponents(components: IPlatformComponent[], visit: any): void;
|
|
26
26
|
export declare const DYNAMIC_KEY_REG: RegExp;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/parser/cals/utils/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEnG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAsBnD,aAAK,uBAAuB,GAAG;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,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E,MAAM,EAAE,cAAc,UAAQ,UAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,WAErC;AAED,eAAO,MAAM,UAAU,QAAS,MAAM,YAUrC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,WAQpD;AAED,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,SAAS,WAQpE;AAyJD,wBAAgB,YAAY,CAE1B,IAAI,EAAE,CAAC,YAAY,GAAG,eAAe,CAAC,EAAE,EAExC,YAAY,EAAE,GAAG,EAAE,EACnB,OAAO,CAAC,EAAE;IACR,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB,GACA,uBAAuB,GAAG;IAAE,SAAS,EAAE,uBAAuB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;CAAE,CA+EvG;AAED,wBAAgB,iCAAiC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,UASvG;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,kBAAkB,EAAO,EAAE,KAAK,KAAA,QAKjF;AAED,eAAO,MAAM,eAAe,QAAY,CAAC"}
|
|
@@ -276,15 +276,10 @@ function generateCustomLoginConfigPathname({ appId, version }) {
|
|
|
276
276
|
}
|
|
277
277
|
exports.generateCustomLoginConfigPathname = generateCustomLoginConfigPathname;
|
|
278
278
|
function walkThroughComponents(components = [], visit) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
visiteComponent.items = walkThroughComponents(visiteComponent.items || [], visit);
|
|
284
|
-
}
|
|
285
|
-
return visiteComponent;
|
|
286
|
-
})
|
|
287
|
-
.filter((item) => !!item);
|
|
279
|
+
components.forEach((component) => {
|
|
280
|
+
visit(component);
|
|
281
|
+
walkThroughComponents(component.items || [], visit);
|
|
282
|
+
});
|
|
288
283
|
}
|
|
289
284
|
exports.walkThroughComponents = walkThroughComponents;
|
|
290
285
|
exports.DYNAMIC_KEY_REG = /^:(.*)$/;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IPlatformApp } from '../../../utils';
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
2
|
+
import { IBlockTemplate } from './block';
|
|
3
|
+
export declare function generateBlockTemplateMap(blockTemplates?: IBlockTemplate[]): {};
|
|
4
|
+
export declare function getUsedReference(apps?: IPlatformApp[], templates?: IBlockTemplate[]): {
|
|
4
5
|
includes: Set<any>;
|
|
5
6
|
refs: Set<any>;
|
|
6
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUsedReference.d.ts","sourceRoot":"","sources":["../../../../src/parser/cals/utils/getUsedReference.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getUsedReference.d.ts","sourceRoot":"","sources":["../../../../src/parser/cals/utils/getUsedReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,wBAAwB,CAAC,cAAc,GAAE,cAAc,EAAO,MAU7E;AAQD,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,YAAY,EAAO,EAAE,SAAS,GAAE,cAAc,EAAO;;;EAmB3F"}
|
|
@@ -14,7 +14,7 @@ function generateBlockTemplateMap(blockTemplates = []) {
|
|
|
14
14
|
}
|
|
15
15
|
exports.generateBlockTemplateMap = generateBlockTemplateMap;
|
|
16
16
|
function getUsedReference(apps = [], templates = []) {
|
|
17
|
-
const
|
|
17
|
+
const blockTemplateMap = generateBlockTemplateMap(templates);
|
|
18
18
|
const includes = new Set([]);
|
|
19
19
|
const refs = new Set([]);
|
|
20
20
|
apps.forEach((cals) => {
|
|
@@ -27,14 +27,14 @@ function getUsedReference(apps = [], templates = []) {
|
|
|
27
27
|
include.forEach((path) => {
|
|
28
28
|
includes.add(path);
|
|
29
29
|
});
|
|
30
|
-
page === null || page === void 0 ? void 0 : page.items.forEach((component) => getComponentUsedReference({ includes, refs, blockTemplateMap
|
|
30
|
+
page === null || page === void 0 ? void 0 : page.items.forEach((component) => getComponentUsedReference({ includes, refs, blockTemplateMap }, component));
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
return { includes, refs };
|
|
34
34
|
}
|
|
35
35
|
exports.getUsedReference = getUsedReference;
|
|
36
36
|
function getComponentUsedReference(ctx, component) {
|
|
37
|
-
var _a;
|
|
37
|
+
var _a, _b;
|
|
38
38
|
const { blockTemplateMap } = ctx;
|
|
39
39
|
if (!component) {
|
|
40
40
|
return;
|
|
@@ -47,10 +47,13 @@ function getComponentUsedReference(ctx, component) {
|
|
|
47
47
|
if (ref) {
|
|
48
48
|
if (!ctx.refs.has(ref) && blockTemplateMap[ref]) {
|
|
49
49
|
ctx.refs.add(ref);
|
|
50
|
-
|
|
50
|
+
const components = ((_a = blockTemplateMap[ref].content.items) === null || _a === void 0 ? void 0 : _a[0].items) || [];
|
|
51
|
+
components.forEach((component) => {
|
|
52
|
+
getComponentUsedReference(ctx, component);
|
|
53
|
+
});
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
else {
|
|
54
|
-
(
|
|
57
|
+
(_b = component.items) === null || _b === void 0 ? void 0 : _b.forEach((component) => getComponentUsedReference(ctx, component));
|
|
55
58
|
}
|
|
56
59
|
}
|
package/lib/parser/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from './cals/index';
|
|
|
2
2
|
export { upgrageToVersion2 } from './cals/utils/version';
|
|
3
3
|
export { processComponentModule } from './cals/utils/spinoff';
|
|
4
4
|
export { calsToCode, codeToCals, type ICodeItem, checkForConflicts, autoResolveConflicts, findAllConflicts, } from './cals/utils/code';
|
|
5
|
-
export { parseComponentCals, regenBlockTemplateComponents, renewIdInResource, VisitedMap } from './cals/utils/block';
|
|
5
|
+
export { parseComponentCals, regenBlockTemplateComponents, renewIdInResource, VisitedMap, remapComponentIds, refreshComponentIds, mergeCals, } from './cals/utils/block';
|
|
6
6
|
export { ActionType, type IDataBind, PropBindType } from './expression/index';
|
|
7
7
|
export { processCommonStyle2CSSProperties, processCSSProperties2Rem, processCSSPropertiesUnit, } from './cals/utils/style';
|
|
8
8
|
export { getUsedResources, getNavUsedStaticResource, _simpleGetUsedResourceOfComponent, } from './cals/utils/getUsedResources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,GACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
package/lib/parser/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.DYNAMIC_KEY_REG = exports.walkThroughComponents = exports.Dependencies = exports.PostcssRpx2Calc = exports.getUsedReference = exports._simpleGetUsedResourceOfComponent = exports.getNavUsedStaticResource = exports.getUsedResources = exports.processCSSPropertiesUnit = exports.processCSSProperties2Rem = exports.processCommonStyle2CSSProperties = exports.PropBindType = exports.ActionType = exports.VisitedMap = exports.renewIdInResource = exports.regenBlockTemplateComponents = exports.parseComponentCals = exports.findAllConflicts = exports.autoResolveConflicts = exports.checkForConflicts = exports.codeToCals = exports.calsToCode = exports.processComponentModule = exports.upgrageToVersion2 = void 0;
|
|
20
|
+
exports.DYNAMIC_KEY_REG = exports.walkThroughComponents = exports.Dependencies = exports.PostcssRpx2Calc = exports.getUsedReference = exports._simpleGetUsedResourceOfComponent = exports.getNavUsedStaticResource = exports.getUsedResources = exports.processCSSPropertiesUnit = exports.processCSSProperties2Rem = exports.processCommonStyle2CSSProperties = exports.PropBindType = exports.ActionType = exports.mergeCals = exports.refreshComponentIds = exports.remapComponentIds = exports.VisitedMap = exports.renewIdInResource = exports.regenBlockTemplateComponents = exports.parseComponentCals = exports.findAllConflicts = exports.autoResolveConflicts = exports.checkForConflicts = exports.codeToCals = exports.calsToCode = exports.processComponentModule = exports.upgrageToVersion2 = void 0;
|
|
21
21
|
__exportStar(require("./cals/index"), exports);
|
|
22
22
|
var version_1 = require("./cals/utils/version");
|
|
23
23
|
Object.defineProperty(exports, "upgrageToVersion2", { enumerable: true, get: function () { return version_1.upgrageToVersion2; } });
|
|
@@ -34,6 +34,9 @@ Object.defineProperty(exports, "parseComponentCals", { enumerable: true, get: fu
|
|
|
34
34
|
Object.defineProperty(exports, "regenBlockTemplateComponents", { enumerable: true, get: function () { return block_1.regenBlockTemplateComponents; } });
|
|
35
35
|
Object.defineProperty(exports, "renewIdInResource", { enumerable: true, get: function () { return block_1.renewIdInResource; } });
|
|
36
36
|
Object.defineProperty(exports, "VisitedMap", { enumerable: true, get: function () { return block_1.VisitedMap; } });
|
|
37
|
+
Object.defineProperty(exports, "remapComponentIds", { enumerable: true, get: function () { return block_1.remapComponentIds; } });
|
|
38
|
+
Object.defineProperty(exports, "refreshComponentIds", { enumerable: true, get: function () { return block_1.refreshComponentIds; } });
|
|
39
|
+
Object.defineProperty(exports, "mergeCals", { enumerable: true, get: function () { return block_1.mergeCals; } });
|
|
37
40
|
var index_1 = require("./expression/index");
|
|
38
41
|
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return index_1.ActionType; } });
|
|
39
42
|
Object.defineProperty(exports, "PropBindType", { enumerable: true, get: function () { return index_1.PropBindType; } });
|
|
@@ -84,6 +84,11 @@ export interface ICloudIntegrationConfig extends IConfigurationBase {
|
|
|
84
84
|
values: IHttpField;
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
+
/** 数据模型对应的db类型 */
|
|
88
|
+
export declare enum IDatabaseDataSourceDbType {
|
|
89
|
+
MYSQL = "MYSQL",
|
|
90
|
+
FLEXDB = "FLEXDB"
|
|
91
|
+
}
|
|
87
92
|
/**
|
|
88
93
|
* 内建数据源
|
|
89
94
|
*/
|
|
@@ -100,6 +105,7 @@ export interface IDatabaseDataSource extends IDataSourceBase {
|
|
|
100
105
|
subType?: 'database' | 'system';
|
|
101
106
|
configuration: IConfigurationBase;
|
|
102
107
|
schema: IDatabaseSchema;
|
|
108
|
+
dbInstanceType?: IDatabaseDataSourceDbType;
|
|
103
109
|
}
|
|
104
110
|
/** 自建数据源模型信息 */
|
|
105
111
|
export interface IDatabaseSchema extends IJsonSchemaObject {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/types/platform/datasource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB,GAAG,mBAAmB,GAAG,2BAA2B,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY;IACZ,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,cAAc;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc;IACd,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,cAAc;AACd,MAAM,WAAW,2BAA4B,SAAQ,eAAe;IAClE;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,GAAG,kBAAkB,GAAG,WAAW,CAAC;IAC/D,iBAAiB;IACjB,aAAa,EAAE,uBAAuB,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,MAAM,EAAE,UAAU,CAAC;KACpB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAChC,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/types/platform/datasource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB,GAAG,mBAAmB,GAAG,2BAA2B,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY;IACZ,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,cAAc;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc;IACd,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;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H,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED;;GAEG;AACH,oBAAY,YAAY,GAAG,UAAU,CAAC;AACtC,iBAAiB;AACjB,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;;QAII;IACJ,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW;IACX,OAAO,EAAE,YAAY,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,mBAAmB,GAAG,YAAY,GAAG,eAAe,GAAG,oBAAoB,CAAC;IAEvF;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IDatabaseDataSourceDbType = void 0;
|
|
4
|
+
/** 数据模型对应的db类型 */
|
|
5
|
+
var IDatabaseDataSourceDbType;
|
|
6
|
+
(function (IDatabaseDataSourceDbType) {
|
|
7
|
+
IDatabaseDataSourceDbType["MYSQL"] = "MYSQL";
|
|
8
|
+
IDatabaseDataSourceDbType["FLEXDB"] = "FLEXDB";
|
|
9
|
+
})(IDatabaseDataSourceDbType = exports.IDatabaseDataSourceDbType || (exports.IDatabaseDataSourceDbType = {}));
|