@cloudbase/cals 1.0.59-alpha.1 → 1.0.60

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/README.md CHANGED
@@ -35,3 +35,9 @@ TODO
35
35
 
36
36
  [basic]: https://weda-dev.pages.woa.com/typedocs/interfaces/_cloudbase_cals.IApp.html
37
37
  [platform]: https://weda-dev.pages.woa.com/typedocs/interfaces/_cloudbase_cals.IPlatformApp.html
38
+
39
+ ## API
40
+
41
+ 本库还提供了核心的应用 cals 处理工具方法
42
+
43
+ // TODO
@@ -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,EAAsE,MAAM,mBAAmB,CAAC;AAKrH,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,CA0L3F;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;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,gBAAgB,GAAE,OAAe,GAChC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,CAoClD"}
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;AAKrH,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,CA2L3F;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;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,gBAAgB,GAAE,OAAe,GAChC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,CAoClD"}
@@ -43,8 +43,8 @@ function calsToCode(calsJSON, version = 'v1') {
43
43
  * 生成 page-config.json
44
44
  */
45
45
  // 来自 IPageComponent
46
- // :class, :style, component, dataVariables, directives, id, module, type 忽略,所以这里不包含
47
- const pageConfigFields = ['attributes', 'dataset', 'extra', 'label', 'name', 'listeners'];
46
+ // :class, component, dataVariables, directives, id, module, type 忽略,所以这里不包含
47
+ const pageConfigFields = ['attributes', 'dataset', 'extra', 'label', 'name', 'listeners', ':style'];
48
48
  genConfig(pageItem, pageConfigFields, `${pagePath}/page-config.json`);
49
49
  /**
50
50
  * 生成 page.json
@@ -77,6 +77,7 @@ function calsToCode(calsJSON, version = 'v1') {
77
77
  'schemaVersion',
78
78
  'externalResources',
79
79
  'theme',
80
+ 'templates',
80
81
  ];
81
82
  const otherConfigFields = {
82
83
  // 来自 Interface IPlatformAppExtra
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cals",
3
- "version": "1.0.59-alpha.1",
3
+ "version": "1.0.60",
4
4
  "description": "Common application specifications",
5
5
  "main": "lib/utils/index.js",
6
6
  "source": "src/utils/index.ts",
@@ -45,7 +45,7 @@
45
45
  "tinycolor2": "^1.6.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@tcwd/dev-tools": "workspace:^",
48
+ "@tcwd/dev-tools": "^1.0.1",
49
49
  "@types/acorn": "^4.0.5",
50
50
  "@types/jest": "^27.4.0",
51
51
  "@types/lodash": "^4.14.168",
@@ -62,4 +62,4 @@
62
62
  "typescript": "^4.7.4",
63
63
  "typescript-json-schema": "^0.53.0"
64
64
  }
65
- }
65
+ }