@cloudbase/cals 0.4.9 → 0.4.10-beta.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 (94) hide show
  1. package/lib/parser/cals/index.d.ts +0 -0
  2. package/lib/parser/cals/index.d.ts.map +0 -0
  3. package/lib/parser/cals/index.js +0 -0
  4. package/lib/parser/cals/utils/block/index.d.ts +0 -0
  5. package/lib/parser/cals/utils/block/index.d.ts.map +0 -0
  6. package/lib/parser/cals/utils/block/index.js +0 -0
  7. package/lib/parser/cals/utils/code/index.d.ts +0 -0
  8. package/lib/parser/cals/utils/code/index.d.ts.map +1 -1
  9. package/lib/parser/cals/utils/code/index.js +13 -7
  10. package/lib/parser/cals/utils/common.d.ts +0 -0
  11. package/lib/parser/cals/utils/common.d.ts.map +0 -0
  12. package/lib/parser/cals/utils/common.js +0 -0
  13. package/lib/parser/cals/utils/runtime.d.ts +0 -0
  14. package/lib/parser/cals/utils/runtime.d.ts.map +0 -0
  15. package/lib/parser/cals/utils/runtime.js +0 -0
  16. package/lib/parser/cals/utils/spinoff/index.d.ts +0 -0
  17. package/lib/parser/cals/utils/spinoff/index.d.ts.map +0 -0
  18. package/lib/parser/cals/utils/spinoff/index.js +0 -0
  19. package/lib/parser/cals/utils/style.d.ts +0 -0
  20. package/lib/parser/cals/utils/style.d.ts.map +1 -1
  21. package/lib/parser/cals/utils/style.js +80 -4
  22. package/lib/parser/cals/utils/template.d.ts +0 -0
  23. package/lib/parser/cals/utils/template.d.ts.map +0 -0
  24. package/lib/parser/cals/utils/template.js +0 -0
  25. package/lib/parser/cals/utils/version/common.d.ts +0 -0
  26. package/lib/parser/cals/utils/version/common.d.ts.map +0 -0
  27. package/lib/parser/cals/utils/version/common.js +0 -0
  28. package/lib/parser/cals/utils/version/config.d.ts +0 -0
  29. package/lib/parser/cals/utils/version/config.d.ts.map +0 -0
  30. package/lib/parser/cals/utils/version/config.js +0 -0
  31. package/lib/parser/cals/utils/version/index.d.ts +0 -0
  32. package/lib/parser/cals/utils/version/index.d.ts.map +0 -0
  33. package/lib/parser/cals/utils/version/index.js +0 -0
  34. package/lib/parser/cals/utils/version/parses.d.ts +0 -0
  35. package/lib/parser/cals/utils/version/parses.d.ts.map +0 -0
  36. package/lib/parser/cals/utils/version/parses.js +0 -0
  37. package/lib/parser/cals/utils/version/utils.d.ts +0 -0
  38. package/lib/parser/cals/utils/version/utils.d.ts.map +0 -0
  39. package/lib/parser/cals/utils/version/utils.js +0 -0
  40. package/lib/parser/expression/index.d.ts +0 -0
  41. package/lib/parser/expression/index.d.ts.map +0 -0
  42. package/lib/parser/expression/index.js +0 -0
  43. package/lib/parser/index.d.ts +0 -0
  44. package/lib/parser/index.d.ts.map +0 -0
  45. package/lib/parser/index.js +0 -0
  46. package/lib/types/basic/app.d.ts +0 -0
  47. package/lib/types/basic/app.d.ts.map +0 -0
  48. package/lib/types/basic/app.js +0 -0
  49. package/lib/types/basic/common.d.ts +8 -0
  50. package/lib/types/basic/common.d.ts.map +1 -1
  51. package/lib/types/basic/common.js +0 -0
  52. package/lib/types/basic/component.d.ts +0 -0
  53. package/lib/types/basic/component.d.ts.map +0 -0
  54. package/lib/types/basic/component.js +0 -0
  55. package/lib/types/basic/datasource.d.ts +0 -0
  56. package/lib/types/basic/datasource.d.ts.map +0 -0
  57. package/lib/types/basic/datasource.js +0 -0
  58. package/lib/types/index.d.ts +0 -0
  59. package/lib/types/index.d.ts.map +0 -0
  60. package/lib/types/index.js +0 -0
  61. package/lib/types/lcds.d.ts +0 -0
  62. package/lib/types/lcds.d.ts.map +0 -0
  63. package/lib/types/lcds.js +0 -0
  64. package/lib/types/platform/app.d.ts +0 -0
  65. package/lib/types/platform/app.d.ts.map +0 -0
  66. package/lib/types/platform/app.js +0 -0
  67. package/lib/types/platform/common.d.ts +0 -0
  68. package/lib/types/platform/common.d.ts.map +0 -0
  69. package/lib/types/platform/common.js +0 -0
  70. package/lib/types/platform/component.d.ts +0 -0
  71. package/lib/types/platform/component.d.ts.map +0 -0
  72. package/lib/types/platform/component.js +0 -0
  73. package/lib/types/platform/datasource.d.ts +0 -0
  74. package/lib/types/platform/datasource.d.ts.map +0 -0
  75. package/lib/types/platform/datasource.js +0 -0
  76. package/lib/types/platform/widget/form.d.ts +0 -0
  77. package/lib/types/platform/widget/form.d.ts.map +0 -0
  78. package/lib/types/platform/widget/form.js +0 -0
  79. package/lib/types/platform/widget/meta.d.ts +0 -0
  80. package/lib/types/platform/widget/meta.d.ts.map +0 -0
  81. package/lib/types/platform/widget/meta.js +0 -0
  82. package/lib/utils/CSSProperty.d.ts +0 -0
  83. package/lib/utils/CSSProperty.d.ts.map +0 -0
  84. package/lib/utils/CSSProperty.js +0 -0
  85. package/lib/utils/build.d.ts +0 -0
  86. package/lib/utils/build.d.ts.map +0 -0
  87. package/lib/utils/build.js +0 -0
  88. package/lib/utils/constant.d.ts +0 -0
  89. package/lib/utils/constant.d.ts.map +0 -0
  90. package/lib/utils/constant.js +0 -0
  91. package/lib/utils/index.d.ts +0 -0
  92. package/lib/utils/index.d.ts.map +0 -0
  93. package/lib/utils/index.js +0 -0
  94. package/package.json +3 -2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/parser/cals/utils/code/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAA2D,MAAM,mBAAmB,CAAC;AAG1G,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,SAAS,EAAE,CAiL3F;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,YAAY,CA4J3F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CA6BlF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/parser/cals/utils/code/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAsE,MAAM,mBAAmB,CAAC;AAGrH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,SAAS,EAAE,CAsL3F;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,YAAY,CA+J3F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CA6BlF"}
@@ -112,6 +112,7 @@ function calsToCode(calsJSON, version = 'v1') {
112
112
  });
113
113
  }
114
114
  function genConfig(itemJSON, configFields, configPath, otherConfigFields) {
115
+ var _a;
115
116
  const config = (0, lodash_1.pick)(itemJSON, configFields);
116
117
  if (otherConfigFields) {
117
118
  Object.keys(otherConfigFields).forEach((key) => {
@@ -119,7 +120,9 @@ function calsToCode(calsJSON, version = 'v1') {
119
120
  });
120
121
  }
121
122
  // state, computed 类型以及名称为 ____index____ 的都不生成代码
122
- config._ignoreResources = itemJSON.resources.filter((item) => [types_1.ECodeType.STATE, types_1.ECodeType.COMPUTEDN].includes(item.codeType) || item.name === '____index____');
123
+ config._ignoreResources =
124
+ ((_a = itemJSON.resources) === null || _a === void 0 ? void 0 : _a.filter((item) => [types_1.ECodeType.STATE, types_1.ECodeType.COMPUTEDN].includes(item.codeType) ||
125
+ item.name === types_1.ECodeName.PLACEHOLDER)) || [];
123
126
  // 按 key 排序,这样确保每次生成都一样的顺序,减少冲突
124
127
  const newConfig = {};
125
128
  Object.keys(config)
@@ -128,19 +131,19 @@ function calsToCode(calsJSON, version = 'v1') {
128
131
  addCodeItem(configPath, JSON.stringify(config, null, 2));
129
132
  }
130
133
  function genCode(resources, basePath = '') {
131
- const codeResources = (resources || []).filter((item) => item.type === types_1.EResourceType.CODE && item.name !== '____index____');
134
+ const codeResources = (resources || []).filter((item) => item.type === types_1.EResourceType.CODE && item.name !== types_1.ECodeName.PLACEHOLDER);
132
135
  codeResources.forEach((codeItem) => {
133
136
  let codePath = '';
134
137
  let realBasePath = basePath ? `${basePath}/` : basePath;
135
138
  switch (codeItem.codeType) {
136
139
  case types_1.ECodeType.THEME:
137
- codePath = `${realBasePath}theme.less`;
140
+ codePath = `${realBasePath}${types_1.ECodeName.THEME}.less`;
138
141
  break;
139
142
  case types_1.ECodeType.STYLE:
140
- codePath = `${realBasePath}style.less`;
143
+ codePath = `${realBasePath}${types_1.ECodeName.STYLE}.less`;
141
144
  break;
142
145
  case types_1.ECodeType.LIFECYCLE:
143
- codePath = `${realBasePath}lifecycle.js`;
146
+ codePath = `${realBasePath}${types_1.ECodeName.LIFECYCLE}.js`;
144
147
  break;
145
148
  // 这两种类型的文件现在不生成文件,需要存放在 config 中
146
149
  case types_1.ECodeType.STATE:
@@ -150,10 +153,10 @@ function calsToCode(calsJSON, version = 'v1') {
150
153
  // codePath = `${realBasePath}computed.js`;
151
154
  break;
152
155
  case types_1.ECodeType.NORMAL_MODULE:
153
- codePath = `common/${codeItem.name}.js`;
156
+ codePath = `${types_1.ECodeName.NORMAL_MODULE}/${codeItem.name}.js`;
154
157
  break;
155
158
  case types_1.ECodeType.HANDLER_FN:
156
- codePath = `${realBasePath}handler/${codeItem.name}.js`;
159
+ codePath = `${realBasePath}${types_1.ECodeName.HANDLER_FN}/${codeItem.name}.js`;
157
160
  break;
158
161
  }
159
162
  if (codePath) {
@@ -220,6 +223,9 @@ function codeToCals(codeList, version = 'v1') {
220
223
  };
221
224
  calsJSON.items.push(pageItem);
222
225
  }
226
+ if (!pageItem.resources) {
227
+ pageItem.resources = [];
228
+ }
223
229
  if (versionConfig.pageConfigRegExp.test(codeItem.path)) {
224
230
  /**
225
231
  * page-config.json
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/parser/cals/utils/style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,wBAAgB,2BAA2B,CAAC,SAAS,GAAE,GAA2B,GAAG,GAAG,CAUvF;AA0ID,wBAAgB,gCAAgC,CAC9C,WAAW,GAAE,GAA2B,EACxC,OAAO,GAAE;IACP,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACoD,GACrE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CA0N7B;AASD,wBAAgB,wBAAwB,CACtC,KAAK,GAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,OAAO;;CAAwB,GAC9B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAE7B"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/parser/cals/utils/style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMrC,wBAAgB,2BAA2B,CAAC,SAAS,GAAE,GAA2B,GAAG,GAAG,CAUvF;AA0ID,wBAAgB,gCAAgC,CAC9C,WAAW,GAAE,GAAQ,EACrB,OAAO,GAAE;IACP,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACoD,GACrE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CA6S7B;AASD,wBAAgB,wBAAwB,CACtC,KAAK,GAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,OAAO;;CAAwB,GAC9B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAE7B"}
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.processCSSProperties2Rem = exports.processCommonStyle2CSSProperties = exports.removeInvalidStyleFormValue = void 0;
15
15
  const common_1 = require("./common");
16
16
  const lodash_1 = require("lodash");
17
- const CSSProperty_1 = require("../../../utils/CSSProperty");
17
+ const utils_1 = require("../../../utils");
18
18
  const DISTANCE_KEY_LIST = ['top', 'right', 'bottom', 'left'];
19
19
  function removeInvalidStyleFormValue(styleForm = {}) {
20
20
  return Object.keys(styleForm).reduce((result, key) => {
@@ -81,7 +81,7 @@ function setDistanceStyle(style, distance, attr, addPXUnit) {
81
81
  function translateStyleByHandler(style = {}, handler, options = { looseError: false }) {
82
82
  return Object.keys(style).reduce((result, key) => {
83
83
  const value = style[key];
84
- if (CSSProperty_1.isUnitlessNumber[key]) {
84
+ if (utils_1.isUnitlessNumber[key]) {
85
85
  setStyleValue(result, key, value);
86
86
  }
87
87
  else if (value !== undefined && value !== null) {
@@ -147,7 +147,7 @@ function toRPX(cssLen) {
147
147
  function processCommonStyle2CSSProperties(commonStyle = {}, options = { toRem: true, ignoreSelf: false, addPXUnit: false, toRpx: false }) {
148
148
  const { size,
149
149
  // transform,
150
- text, border, background, margin, padding, zIndex, position, display, flexConfig, custom, self, } = commonStyle;
150
+ text, border, background, margin, padding, zIndex, position, display, flexConfig, custom, self, boxShadow, } = commonStyle;
151
151
  const style = {};
152
152
  if (size) {
153
153
  setStyleValue(style, 'width', _handleStyleNumValue(size.width, !!options.addPXUnit));
@@ -200,7 +200,8 @@ function processCommonStyle2CSSProperties(commonStyle = {}, options = { toRem: t
200
200
  }
201
201
  if (border) {
202
202
  const { type, color, width, radius, radiusInfo } = border;
203
- if (width !== undefined) {
203
+ // width
204
+ if (typeof width === 'string') {
204
205
  if (type && type !== 'none') {
205
206
  setStyleValue(style, 'border', `${_handleStyleNumValue(width, !!options.addPXUnit)} ${type} ${color || ''}`);
206
207
  }
@@ -210,6 +211,11 @@ function processCommonStyle2CSSProperties(commonStyle = {}, options = { toRem: t
210
211
  setStyleValue(style, 'borderColor', color);
211
212
  }
212
213
  }
214
+ else if (Object.prototype.toString.call(width) === '[object Object]' && Object.keys(width).length !== 0) {
215
+ const { top = '0', right = '0', bottom = '0', left = '0' } = width;
216
+ setStyleValue(style, 'borderWidth', `${_handleStyleNumValue(top, !!options.addPXUnit)} ${_handleStyleNumValue(right, !!options.addPXUnit)} ${_handleStyleNumValue(bottom, !!options.addPXUnit)} ${_handleStyleNumValue(left, !!options.addPXUnit)}`);
217
+ }
218
+ // border radius
213
219
  if (radius !== undefined) {
214
220
  setStyleValue(style, 'borderRadius', _handleStyleNumValue(radius, !!options.addPXUnit));
215
221
  }
@@ -292,6 +298,76 @@ function processCommonStyle2CSSProperties(commonStyle = {}, options = { toRem: t
292
298
  setStyleValue(style, 'bottom', _handleStyleNumValue(position.bottom, !!options.addPXUnit));
293
299
  }
294
300
  }
301
+ if (boxShadow) {
302
+ let processedBoxShadow = boxShadow;
303
+ if (Object.prototype.toString.call(boxShadow) === '[object Object]') {
304
+ processedBoxShadow = [boxShadow];
305
+ }
306
+ let boxShadowStyleString = '';
307
+ if (Array.isArray(processedBoxShadow)) {
308
+ processedBoxShadow.forEach((boxShadowItem, index) => {
309
+ let currentBoxShadowStyleString = '';
310
+ const { keyWord, offsetX, offsetY, blurRadius, spreadRadius, color, global, inset } = boxShadowItem;
311
+ // Keyword values
312
+ if (keyWord === 'none') {
313
+ currentBoxShadowStyleString = 'none';
314
+ }
315
+ else if (!!global) {
316
+ currentBoxShadowStyleString = global;
317
+ }
318
+ else if (!!offsetX || !!offsetY) {
319
+ // inset
320
+ if (!!inset) {
321
+ currentBoxShadowStyleString = 'inset ';
322
+ }
323
+ // offsetX
324
+ if (!!offsetX) {
325
+ currentBoxShadowStyleString += _handleStyleNumValue(offsetX, !!options.addPXUnit);
326
+ }
327
+ else {
328
+ currentBoxShadowStyleString += '0';
329
+ }
330
+ // offsetY
331
+ if (!!offsetY) {
332
+ currentBoxShadowStyleString += ' ' + _handleStyleNumValue(offsetY, !!options.addPXUnit);
333
+ }
334
+ else {
335
+ currentBoxShadowStyleString += ' 0';
336
+ }
337
+ // blur-radius 当 spread-radius 存在时,即使不存在 blur-radius,blur-radius 也要为 0
338
+ if (!!blurRadius || !!spreadRadius) {
339
+ if (!!blurRadius) {
340
+ currentBoxShadowStyleString += ' ' + _handleStyleNumValue(blurRadius, !!options.addPXUnit);
341
+ }
342
+ else {
343
+ currentBoxShadowStyleString += ' 0';
344
+ }
345
+ }
346
+ // spread-radius
347
+ if (!!spreadRadius) {
348
+ currentBoxShadowStyleString += ' ' + _handleStyleNumValue(spreadRadius, !!options.addPXUnit);
349
+ }
350
+ // color
351
+ if (!!color) {
352
+ currentBoxShadowStyleString += ' ' + color;
353
+ }
354
+ }
355
+ if (!!currentBoxShadowStyleString) {
356
+ let splitLabel;
357
+ if (!!boxShadowStyleString) {
358
+ splitLabel = ' , ';
359
+ }
360
+ else {
361
+ splitLabel = '';
362
+ }
363
+ boxShadowStyleString += splitLabel + currentBoxShadowStyleString;
364
+ }
365
+ });
366
+ }
367
+ if (!!boxShadowStyleString) {
368
+ setStyleValue(style, 'boxShadow', boxShadowStyleString);
369
+ }
370
+ }
295
371
  if (custom && custom.length > 0) {
296
372
  custom.map((item) => {
297
373
  setStyleValue(style, item.key, item.value);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,6 +12,10 @@ export interface IResource extends Record<string, any> {
12
12
  * 应用/组件 绑定的监听器
13
13
  */
14
14
  export interface IListener {
15
+ /**
16
+ * 可选,listener id
17
+ */
18
+ id?: string;
15
19
  /**
16
20
  * 可选,是否在捕获阶段响应
17
21
  * @default false
@@ -53,6 +57,10 @@ export interface IDataset {
53
57
  state?: Record<string, IStateVariable | any>;
54
58
  /** 页面/应用 参数 */
55
59
  params?: Record<string, IParamsVariable>;
60
+ /**
61
+ * 可选,页面配置名称
62
+ */
63
+ pageName?: string;
56
64
  }
57
65
  export interface IStateVariable {
58
66
  /** 中文名 */
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/basic/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,SAAS;AACT,MAAM,WAAW,QAAQ;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,GAAG,CAAC,CAAC;IAC7C,eAAe;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW;IACX,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU;IACV,YAAY,EAAE,GAAG,CAAC;CACnB;AAED,aAAa;AACb,MAAM,WAAW,eAAe;IAC9B,UAAU;IACV,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAE5B,qBAAqB;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/basic/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,SAAS;AACT,MAAM,WAAW,QAAQ;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,GAAG,CAAC,CAAC;IAC7C,eAAe;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW;IACX,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU;IACV,YAAY,EAAE,GAAG,CAAC;CACnB;AAED,aAAa;AACb,MAAM,WAAW,eAAe;IAC9B,UAAU;IACV,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAE5B,qBAAqB;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/types/lcds.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cals",
3
- "version": "0.4.9",
3
+ "version": "0.4.10-beta.0",
4
4
  "description": "Common application specifications",
5
5
  "main": "lib/utils/index.js",
6
6
  "source": "src/utils/index.ts",
@@ -13,7 +13,8 @@
13
13
  "build:schema": "ts-node src/utils/build.ts",
14
14
  "develop": "tsc --watch",
15
15
  "docs": "typedoc --options typedoc.json types",
16
- "test": "jest"
16
+ "test": "jest",
17
+ "test:coverage": "jest --coverage"
17
18
  },
18
19
  "keywords": [
19
20
  "lowcode",