@cloudbase/cals 1.0.3-alpha.6 → 1.0.3-alpha.8

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 (70) hide show
  1. package/lib/cloudbase.cals.umd.min.js +5 -0
  2. package/lib/parser/cals/index.d.ts +366 -371
  3. package/lib/parser/cals/index.d.ts.map +1 -1
  4. package/lib/parser/cals/index.js +12 -12
  5. package/lib/parser/cals/utils/block/index.d.ts +14 -14
  6. package/lib/parser/cals/utils/block/index.js +3 -3
  7. package/lib/parser/cals/utils/code/index.d.ts +30 -30
  8. package/lib/parser/cals/utils/code/index.js +13 -12
  9. package/lib/parser/cals/utils/common.d.ts +11 -11
  10. package/lib/parser/cals/utils/runtime.d.ts +13 -13
  11. package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
  12. package/lib/parser/cals/utils/runtime.js +2 -2
  13. package/lib/parser/cals/utils/spinoff/index.d.ts +9 -9
  14. package/lib/parser/cals/utils/style.d.ts +42 -42
  15. package/lib/parser/cals/utils/style.d.ts.map +1 -1
  16. package/lib/parser/cals/utils/style.js +3 -3
  17. package/lib/parser/cals/utils/template.d.ts +5 -5
  18. package/lib/parser/cals/utils/template.js +3 -6
  19. package/lib/parser/cals/utils/version/common.d.ts +4 -4
  20. package/lib/parser/cals/utils/version/common.js +11 -34
  21. package/lib/parser/cals/utils/version/config.d.ts +13 -13
  22. package/lib/parser/cals/utils/version/index.d.ts +2 -2
  23. package/lib/parser/cals/utils/version/parses.d.ts +15 -15
  24. package/lib/parser/cals/utils/version/parses.js +14 -37
  25. package/lib/parser/cals/utils/version/utils.d.ts +13 -13
  26. package/lib/parser/cals/utils/version/utils.d.ts.map +1 -1
  27. package/lib/parser/cals/utils/version/utils.js +2 -2
  28. package/lib/parser/expression/index.d.ts +122 -122
  29. package/lib/parser/index.d.ts +8 -8
  30. package/lib/parser/plugins/postcss-rpx2clac.d.ts +17 -17
  31. package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
  32. package/lib/types/basic/app.d.ts +72 -72
  33. package/lib/types/basic/common.d.ts +88 -88
  34. package/lib/types/basic/component.d.ts +208 -208
  35. package/lib/types/basic/datasource.d.ts +49 -49
  36. package/lib/types/index.d.ts +9 -9
  37. package/lib/types/index.d.ts.map +1 -1
  38. package/lib/types/index.js +14 -1
  39. package/lib/types/lcds.d.ts +447 -197
  40. package/lib/types/lcds.d.ts.map +1 -1
  41. package/lib/types/platform/app.d.ts +176 -176
  42. package/lib/types/platform/common.d.ts +137 -137
  43. package/lib/types/platform/component.d.ts +140 -140
  44. package/lib/types/platform/datasource.d.ts +466 -466
  45. package/lib/types/platform/widget/form.d.ts +89 -89
  46. package/lib/types/platform/widget/meta.d.ts +59 -59
  47. package/lib/utils/CSSProperty.d.ts +63 -63
  48. package/lib/utils/build.d.ts +1 -1
  49. package/lib/utils/build.js +3 -6
  50. package/lib/utils/constant.d.ts +40 -40
  51. package/lib/utils/dts/auto-generated.d.ts +1 -1
  52. package/lib/utils/dts/auto-generated.d.ts.map +1 -1
  53. package/lib/utils/dts/auto-generated.js +1 -1
  54. package/lib/utils/dts/build.d.ts +1 -1
  55. package/lib/utils/dts/index.d.ts +130 -130
  56. package/lib/utils/dts/index.d.ts.map +1 -1
  57. package/lib/utils/dts/index.js +116 -78
  58. package/lib/utils/index.d.ts +7 -7
  59. package/lib/utils/version/common.d.ts +2 -2
  60. package/lib/utils/version/featureChecker.d.ts +2 -2
  61. package/lib/utils/version/featureChecker.d.ts.map +1 -1
  62. package/lib/utils/version/migrations/version4.d.ts +2 -2
  63. package/lib/utils/version/migrations/version4.js +2 -2
  64. package/package.json +12 -3
  65. package/lib/utils/version-migrations/common.d.ts +0 -5
  66. package/lib/utils/version-migrations/common.d.ts.map +0 -1
  67. package/lib/utils/version-migrations/common.js +0 -29
  68. package/lib/utils/version-migrations/version4.d.ts +0 -3
  69. package/lib/utils/version-migrations/version4.d.ts.map +0 -1
  70. package/lib/utils/version-migrations/version4.js +0 -199
@@ -1,141 +1,141 @@
1
- import * as Basic from '../basic/component';
2
- import { ICodeResource, IPlatformDataset, IPlatformListener } from './common';
3
- import { IDataSourceVariable } from './datasource';
4
- declare type Values<T> = T[keyof T];
5
- /**
6
- * 组件类型
7
- */
8
- export declare const EComponentType: {
9
- readonly BASIC: "BASIC";
10
- readonly COMPLEX: "COMPLEX";
11
- readonly PAGE: "PAGE";
12
- };
13
- export interface IPlatformAttributes extends Basic.IAttributes {
14
- /**
15
- * 可选, 皮肤
16
- */
17
- theme?: string;
18
- }
19
- /**
20
- * 云开发低码平台组件
21
- */
22
- export interface IPlatformComponent extends Omit<Basic.IComponent, 'value' | 'valueFilterNam' | 'validity' | 'attributes' | 'events'> {
23
- /**
24
- * 可选, 组件控制属性
25
- */
26
- attributes?: IPlatformAttributes;
27
- /**
28
- * 选填, 组件类型
29
- */
30
- type?: Values<typeof EComponentType>;
31
- /**
32
- * 可选, 组件绑定的监听器
33
- */
34
- listeners?: IPlatformListener[];
35
- /**
36
- * 可选,平台实现有关字段
37
- */
38
- extra?: IPlatformComponentExtra;
39
- }
40
- export interface IPlatformComponentExtra {
41
- /**
42
- * 可选,样式分组配置
43
- * {selt: {}, margin: {}, text: {}, custom: []}
44
- */
45
- commonStyle?: object;
46
- /**
47
- * 可选,组件顺序 formily x-index
48
- * https://github.com/alibaba/formily/blob/master/packages/react-schema-renderer/README.md
49
- */
50
- xIndex?: number;
51
- staticResourceAttribute?: string[];
52
- /**
53
- * style bind path
54
- */
55
- styleBindPath?: string;
56
- /**
57
- * 未知用处 children
58
- */
59
- children?: IPlatformComponent[];
60
- /**
61
- * 是否再门户网站中的菜单中隐藏页面对应的菜单项
62
- */
63
- hideAdminPortalMenu?: boolean;
64
- /**
65
- * 属性绑定的额外补充信息
66
- */
67
- attributeExtraData?: {
68
- [attribute: string]: any;
69
- };
70
- }
71
- /**
72
- * 默认组件, 由平台提供的组件
73
- */
74
- export interface IBasicComponent extends IPlatformComponent {
75
- type?: 'BASIC';
76
- items?: (IBasicComponent | IComplexComponent)[];
77
- /**
78
- * 可选, 组件所属的组件库
79
- */
80
- module?: string;
81
- }
82
- /**
83
- * 自定义组件, 开发者组合已有的默认组件, 得到的新组件
84
- */
85
- export interface IComplexComponent extends IPlatformComponent {
86
- type?: 'COMPLEX';
87
- items?: (IBasicComponent | IComplexComponent)[];
88
- /**
89
- * 可选, 组件所属的组件库
90
- */
91
- module?: string;
92
- }
93
- /**
94
- * 页面组件, 描述整个页面的组件
95
- */
96
- export interface IPageComponent extends Omit<IPlatformComponent, 'events'> {
97
- type: 'PAGE';
98
- /** 页面 id,对应页面 path */
99
- id: string;
100
- items?: (IBasicComponent | IComplexComponent)[];
101
- /**
102
- * 可选, 变量集合
103
- */
104
- dataset?: IPlatformDataset;
105
- /**
106
- * 可选, 数据源变量集合
107
- *
108
- * @deprecated
109
- */
110
- dataVariables?: IDataSourceVariable[];
111
- /**
112
- * 可选, 页面的资源集合
113
- *
114
- * 页面级别只挂载了 code 资源
115
- */
116
- resources?: ICodeResource[];
117
- }
118
- export interface IPageComponentLifeCycle extends Basic.IEvents {
119
- /**
120
- * 可选,onShow钩子函数名称
121
- */
122
- lifecycleOnShowEventName?: string;
123
- /**
124
- * 可选,onLoad钩子函数名称
125
- */
126
- lifecycleOnLoadEventName?: string;
127
- /**
128
- * 可选,onReady钩子函数名称
129
- */
130
- lifecycleOnReadyEventName?: string;
131
- /**
132
- * 可选,onHide钩子函数名称
133
- */
134
- lifecycleOnHideEventName?: string;
135
- /**
136
- * 可选,onUnload钩子函数名称
137
- */
138
- lifecycleOnUnloadEventName?: string;
139
- }
140
- export {};
1
+ import * as Basic from '../basic/component';
2
+ import { ICodeResource, IPlatformDataset, IPlatformListener } from './common';
3
+ import { IDataSourceVariable } from './datasource';
4
+ declare type Values<T> = T[keyof T];
5
+ /**
6
+ * 组件类型
7
+ */
8
+ export declare const EComponentType: {
9
+ readonly BASIC: "BASIC";
10
+ readonly COMPLEX: "COMPLEX";
11
+ readonly PAGE: "PAGE";
12
+ };
13
+ export interface IPlatformAttributes extends Basic.IAttributes {
14
+ /**
15
+ * 可选, 皮肤
16
+ */
17
+ theme?: string;
18
+ }
19
+ /**
20
+ * 云开发低码平台组件
21
+ */
22
+ export interface IPlatformComponent extends Omit<Basic.IComponent, 'value' | 'valueFilterNam' | 'validity' | 'attributes' | 'events'> {
23
+ /**
24
+ * 可选, 组件控制属性
25
+ */
26
+ attributes?: IPlatformAttributes;
27
+ /**
28
+ * 选填, 组件类型
29
+ */
30
+ type?: Values<typeof EComponentType>;
31
+ /**
32
+ * 可选, 组件绑定的监听器
33
+ */
34
+ listeners?: IPlatformListener[];
35
+ /**
36
+ * 可选,平台实现有关字段
37
+ */
38
+ extra?: IPlatformComponentExtra;
39
+ }
40
+ export interface IPlatformComponentExtra {
41
+ /**
42
+ * 可选,样式分组配置
43
+ * {selt: {}, margin: {}, text: {}, custom: []}
44
+ */
45
+ commonStyle?: object;
46
+ /**
47
+ * 可选,组件顺序 formily x-index
48
+ * https://github.com/alibaba/formily/blob/master/packages/react-schema-renderer/README.md
49
+ */
50
+ xIndex?: number;
51
+ staticResourceAttribute?: string[];
52
+ /**
53
+ * style bind path
54
+ */
55
+ styleBindPath?: string;
56
+ /**
57
+ * 未知用处 children
58
+ */
59
+ children?: IPlatformComponent[];
60
+ /**
61
+ * 是否再门户网站中的菜单中隐藏页面对应的菜单项
62
+ */
63
+ hideAdminPortalMenu?: boolean;
64
+ /**
65
+ * 属性绑定的额外补充信息
66
+ */
67
+ attributeExtraData?: {
68
+ [attribute: string]: any;
69
+ };
70
+ }
71
+ /**
72
+ * 默认组件, 由平台提供的组件
73
+ */
74
+ export interface IBasicComponent extends IPlatformComponent {
75
+ type?: 'BASIC';
76
+ items?: (IBasicComponent | IComplexComponent)[];
77
+ /**
78
+ * 可选, 组件所属的组件库
79
+ */
80
+ module?: string;
81
+ }
82
+ /**
83
+ * 自定义组件, 开发者组合已有的默认组件, 得到的新组件
84
+ */
85
+ export interface IComplexComponent extends IPlatformComponent {
86
+ type?: 'COMPLEX';
87
+ items?: (IBasicComponent | IComplexComponent)[];
88
+ /**
89
+ * 可选, 组件所属的组件库
90
+ */
91
+ module?: string;
92
+ }
93
+ /**
94
+ * 页面组件, 描述整个页面的组件
95
+ */
96
+ export interface IPageComponent extends Omit<IPlatformComponent, 'events'> {
97
+ type: 'PAGE';
98
+ /** 页面 id,对应页面 path */
99
+ id: string;
100
+ items?: (IBasicComponent | IComplexComponent)[];
101
+ /**
102
+ * 可选, 变量集合
103
+ */
104
+ dataset?: IPlatformDataset;
105
+ /**
106
+ * 可选, 数据源变量集合
107
+ *
108
+ * @deprecated
109
+ */
110
+ dataVariables?: IDataSourceVariable[];
111
+ /**
112
+ * 可选, 页面的资源集合
113
+ *
114
+ * 页面级别只挂载了 code 资源
115
+ */
116
+ resources?: ICodeResource[];
117
+ }
118
+ export interface IPageComponentLifeCycle extends Basic.IEvents {
119
+ /**
120
+ * 可选,onShow钩子函数名称
121
+ */
122
+ lifecycleOnShowEventName?: string;
123
+ /**
124
+ * 可选,onLoad钩子函数名称
125
+ */
126
+ lifecycleOnLoadEventName?: string;
127
+ /**
128
+ * 可选,onReady钩子函数名称
129
+ */
130
+ lifecycleOnReadyEventName?: string;
131
+ /**
132
+ * 可选,onHide钩子函数名称
133
+ */
134
+ lifecycleOnHideEventName?: string;
135
+ /**
136
+ * 可选,onUnload钩子函数名称
137
+ */
138
+ lifecycleOnUnloadEventName?: string;
139
+ }
140
+ export {};
141
141
  //# sourceMappingURL=component.d.ts.map