mall-components 1.0.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 (122) hide show
  1. package/README.md +128 -0
  2. package/build/_components-raw.css +791 -0
  3. package/build/_shims/antd.js +1 -0
  4. package/build/_shims/icons.js +1 -0
  5. package/build/_shims/moment.js +1 -0
  6. package/build/_shims/react-dom.js +1 -0
  7. package/build/_shims/react.js +1 -0
  8. package/build/adapters/DataSourceAdapter.d.ts +46 -0
  9. package/build/components/AdminLayout/AdminLayout.d.ts +5 -0
  10. package/build/components/AdminLayout/Breadcrumb.d.ts +8 -0
  11. package/build/components/AdminLayout/MainContent.d.ts +17 -0
  12. package/build/components/AdminLayout/Navbar.d.ts +10 -0
  13. package/build/components/AdminLayout/Sidebar.d.ts +14 -0
  14. package/build/components/AdminLayout/TabBar.d.ts +13 -0
  15. package/build/components/AdminLayout/TabPane.d.ts +4 -0
  16. package/build/components/AdminLayout/index.d.ts +3 -0
  17. package/build/components/AdminLayout/types.d.ts +42 -0
  18. package/build/components/CouponCard/CouponCard.d.ts +20 -0
  19. package/build/components/CouponCard/index.d.ts +1 -0
  20. package/build/components/OrderForm/OrderForm.d.ts +18 -0
  21. package/build/components/OrderForm/index.d.ts +1 -0
  22. package/build/components/OrderList/OrderList.d.ts +29 -0
  23. package/build/components/OrderList/index.d.ts +1 -0
  24. package/build/components/ProductForm/ProductForm.d.ts +18 -0
  25. package/build/components/ProductForm/index.d.ts +3 -0
  26. package/build/components/ProductList/ProductList.d.ts +47 -0
  27. package/build/components/ProductList/index.d.ts +3 -0
  28. package/build/components/PromotionCard/PromotionCard.d.ts +22 -0
  29. package/build/components/PromotionCard/index.d.ts +1 -0
  30. package/build/components/RoleCard/RoleCard.d.ts +18 -0
  31. package/build/components/RoleCard/index.d.ts +1 -0
  32. package/build/components/UserCard/UserCard.d.ts +17 -0
  33. package/build/components/UserCard/index.d.ts +1 -0
  34. package/build/entry-meta.d.ts +603 -0
  35. package/build/index.css +1 -0
  36. package/build/index.js +1 -0
  37. package/build/mall-components-meta.js +2563 -0
  38. package/build/mall-components.cdn.umd.css +1 -0
  39. package/build/mall-components.cdn.umd.js +8 -0
  40. package/build/mall-components.codesandbox.combined.js +1094 -0
  41. package/build/mall-components.codesandbox.css +401 -0
  42. package/build/mall-components.codesandbox.js +1080 -0
  43. package/build/mall-components.umd.css +1 -0
  44. package/build/mall-components.umd.js +8 -0
  45. package/build/meta/adminLayoutMeta.d.ts +3 -0
  46. package/build/meta/couponCardMeta.d.ts +128 -0
  47. package/build/meta/icons.d.ts +10 -0
  48. package/build/meta/orderFormMeta.d.ts +111 -0
  49. package/build/meta/orderListMeta.d.ts +170 -0
  50. package/build/meta/productFormMeta.d.ts +3 -0
  51. package/build/meta/productListMeta.d.ts +200 -0
  52. package/build/meta/promotionCardMeta.d.ts +129 -0
  53. package/build/meta/roleCardMeta.d.ts +3 -0
  54. package/build/meta/tabPaneMeta.d.ts +3 -0
  55. package/build/meta/userCardMeta.d.ts +3 -0
  56. package/build/meta.d.ts +605 -0
  57. package/build/setters/RestApiTester.d.ts +11 -0
  58. package/build/types/common.d.ts +17 -0
  59. package/build/types/marketing.d.ts +128 -0
  60. package/build/types/order.d.ts +174 -0
  61. package/build/types/permission.d.ts +101 -0
  62. package/build/types/product.d.ts +47 -0
  63. package/package.json +1 -0
  64. package/src/adapters/DataSourceAdapter.ts +445 -0
  65. package/src/components/AdminLayout/AdminLayout.scss +447 -0
  66. package/src/components/AdminLayout/AdminLayout.tsx +681 -0
  67. package/src/components/AdminLayout/Breadcrumb.tsx +60 -0
  68. package/src/components/AdminLayout/MainContent.tsx +54 -0
  69. package/src/components/AdminLayout/Navbar.tsx +76 -0
  70. package/src/components/AdminLayout/Sidebar.tsx +256 -0
  71. package/src/components/AdminLayout/TabBar.tsx +177 -0
  72. package/src/components/AdminLayout/TabPane.tsx +29 -0
  73. package/src/components/AdminLayout/index.ts +3 -0
  74. package/src/components/AdminLayout/types.ts +46 -0
  75. package/src/components/CouponCard/CouponCard.scss +55 -0
  76. package/src/components/CouponCard/CouponCard.tsx +687 -0
  77. package/src/components/CouponCard/index.ts +1 -0
  78. package/src/components/OrderForm/OrderForm.scss +148 -0
  79. package/src/components/OrderForm/OrderForm.tsx +503 -0
  80. package/src/components/OrderForm/index.ts +1 -0
  81. package/src/components/OrderList/OrderList.scss +160 -0
  82. package/src/components/OrderList/OrderList.tsx +885 -0
  83. package/src/components/OrderList/index.ts +1 -0
  84. package/src/components/ProductForm/ProductForm.scss +23 -0
  85. package/src/components/ProductForm/ProductForm.tsx +442 -0
  86. package/src/components/ProductForm/index.ts +3 -0
  87. package/src/components/ProductList/ProductList.scss +293 -0
  88. package/src/components/ProductList/ProductList.tsx +454 -0
  89. package/src/components/ProductList/index.ts +3 -0
  90. package/src/components/PromotionCard/PromotionCard.scss +71 -0
  91. package/src/components/PromotionCard/PromotionCard.tsx +579 -0
  92. package/src/components/PromotionCard/index.ts +1 -0
  93. package/src/components/RoleCard/RoleCard.scss +77 -0
  94. package/src/components/RoleCard/RoleCard.tsx +463 -0
  95. package/src/components/RoleCard/index.ts +1 -0
  96. package/src/components/UserCard/UserCard.scss +51 -0
  97. package/src/components/UserCard/UserCard.tsx +432 -0
  98. package/src/components/UserCard/index.ts +1 -0
  99. package/src/entry-components.ts +39 -0
  100. package/src/entry-meta.ts +23 -0
  101. package/src/index.scss +4 -0
  102. package/src/index.ts +36 -0
  103. package/src/index.tsx +17 -0
  104. package/src/meta/adminLayoutMeta.ts +154 -0
  105. package/src/meta/couponCardMeta.ts +287 -0
  106. package/src/meta/icons.ts +41 -0
  107. package/src/meta/orderFormMeta.ts +279 -0
  108. package/src/meta/orderListMeta.ts +443 -0
  109. package/src/meta/productFormMeta.ts +253 -0
  110. package/src/meta/productListMeta.ts +434 -0
  111. package/src/meta/promotionCardMeta.ts +276 -0
  112. package/src/meta/roleCardMeta.ts +142 -0
  113. package/src/meta/tabPaneMeta.ts +69 -0
  114. package/src/meta/userCardMeta.ts +128 -0
  115. package/src/meta.ts +25 -0
  116. package/src/setters/RestApiTester.tsx +219 -0
  117. package/src/shims/require.js +8 -0
  118. package/src/types/common.ts +19 -0
  119. package/src/types/marketing.ts +124 -0
  120. package/src/types/order.ts +169 -0
  121. package/src/types/permission.ts +102 -0
  122. package/src/types/product.ts +49 -0
@@ -0,0 +1,170 @@
1
+ declare const orderListMeta: {
2
+ componentName: string;
3
+ title: string;
4
+ docUrl: string;
5
+ screenshot: string;
6
+ npm: {
7
+ package: string;
8
+ version: string;
9
+ exportName: string;
10
+ destructuring: boolean;
11
+ };
12
+ props: ({
13
+ name: string;
14
+ propType: string;
15
+ description: string;
16
+ defaultValue: string;
17
+ } | {
18
+ name: string;
19
+ propType: string;
20
+ description: string;
21
+ defaultValue?: undefined;
22
+ } | {
23
+ name: string;
24
+ propType: string;
25
+ description: string;
26
+ defaultValue: boolean;
27
+ } | {
28
+ name: string;
29
+ propType: string;
30
+ description: string;
31
+ defaultValue: number;
32
+ })[];
33
+ configure: {
34
+ supports: {
35
+ style: boolean;
36
+ events: {
37
+ name: string;
38
+ description: string;
39
+ }[];
40
+ };
41
+ props: ({
42
+ type: string;
43
+ title: string;
44
+ display: string;
45
+ items: ({
46
+ name: string;
47
+ title: string;
48
+ setter: {
49
+ componentName: string;
50
+ props: {
51
+ options: {
52
+ label: string;
53
+ value: string;
54
+ }[];
55
+ rows?: undefined;
56
+ placeholder?: undefined;
57
+ setters?: undefined;
58
+ };
59
+ };
60
+ extraProps: {
61
+ display: string;
62
+ };
63
+ condition?: undefined;
64
+ } | {
65
+ name: string;
66
+ title: string;
67
+ setter: {
68
+ componentName: string;
69
+ props: {
70
+ rows: number;
71
+ placeholder: string;
72
+ options?: undefined;
73
+ setters?: undefined;
74
+ };
75
+ };
76
+ extraProps: {
77
+ display: string;
78
+ };
79
+ condition: (target: any) => boolean;
80
+ } | {
81
+ name: string;
82
+ title: string;
83
+ setter: {
84
+ componentName: string;
85
+ props: {
86
+ setters: string[];
87
+ options?: undefined;
88
+ rows?: undefined;
89
+ placeholder?: undefined;
90
+ };
91
+ };
92
+ extraProps: {
93
+ display: string;
94
+ };
95
+ condition: (target: any) => boolean;
96
+ })[];
97
+ } | {
98
+ type: string;
99
+ title: string;
100
+ display: string;
101
+ items: {
102
+ name: string;
103
+ title: string;
104
+ setter: string;
105
+ extraProps: {
106
+ display: string;
107
+ };
108
+ }[];
109
+ } | {
110
+ type: string;
111
+ title: string;
112
+ display: string;
113
+ items: {
114
+ name: string;
115
+ title: string;
116
+ setter: {
117
+ componentName: string;
118
+ props: {
119
+ min: number;
120
+ max: number;
121
+ };
122
+ };
123
+ extraProps: {
124
+ display: string;
125
+ };
126
+ }[];
127
+ })[];
128
+ };
129
+ icon: import("@types/react").CElement<{}, import("@types/react").Component<{}, any, any>> | null;
130
+ category: string;
131
+ group: string;
132
+ snippets: ({
133
+ title: string;
134
+ schema: {
135
+ componentName: string;
136
+ props: {
137
+ dataSourceType: string;
138
+ mockData: string;
139
+ showFilter: boolean;
140
+ showStatusFilter: boolean;
141
+ showSearch: boolean;
142
+ showDatePicker: boolean;
143
+ showActions: boolean;
144
+ showBatchOperations: boolean;
145
+ showExport: boolean;
146
+ showPagination: boolean;
147
+ defaultPageSize: number;
148
+ };
149
+ };
150
+ } | {
151
+ title: string;
152
+ schema: {
153
+ componentName: string;
154
+ props: {
155
+ dataSourceType: string;
156
+ mockData: string;
157
+ showFilter: boolean;
158
+ showActions: boolean;
159
+ showBatchOperations: boolean;
160
+ showExport: boolean;
161
+ showPagination: boolean;
162
+ defaultPageSize: number;
163
+ showStatusFilter?: undefined;
164
+ showSearch?: undefined;
165
+ showDatePicker?: undefined;
166
+ };
167
+ };
168
+ })[];
169
+ };
170
+ export default orderListMeta;
@@ -0,0 +1,3 @@
1
+ import type { IPublicTypeComponentMetadata } from '@alilc/lowcode-types';
2
+ declare const ProductFormMeta: IPublicTypeComponentMetadata;
3
+ export default ProductFormMeta;
@@ -0,0 +1,200 @@
1
+ declare const _default: {
2
+ componentName: string;
3
+ title: string;
4
+ docUrl: string;
5
+ screenshot: string;
6
+ npm: {
7
+ package: string;
8
+ version: string;
9
+ exportName: string;
10
+ destructuring: boolean;
11
+ };
12
+ props: ({
13
+ name: string;
14
+ propType: string;
15
+ description: string;
16
+ defaultValue: string;
17
+ } | {
18
+ name: string;
19
+ propType: string;
20
+ description: string;
21
+ defaultValue?: undefined;
22
+ } | {
23
+ name: string;
24
+ propType: string;
25
+ description: string;
26
+ defaultValue: boolean;
27
+ })[];
28
+ configure: {
29
+ supports: {
30
+ style: boolean;
31
+ events: {
32
+ name: string;
33
+ description: string;
34
+ }[];
35
+ };
36
+ props: ({
37
+ type: string;
38
+ title: string;
39
+ display: string;
40
+ items: ({
41
+ name: string;
42
+ title: string;
43
+ setter: {
44
+ componentName: string;
45
+ props: {
46
+ options: {
47
+ label: string;
48
+ value: string;
49
+ }[];
50
+ rows?: undefined;
51
+ placeholder?: undefined;
52
+ setters?: undefined;
53
+ };
54
+ };
55
+ extraProps: {
56
+ display: string;
57
+ };
58
+ condition?: undefined;
59
+ } | {
60
+ name: string;
61
+ title: string;
62
+ setter: {
63
+ componentName: string;
64
+ props: {
65
+ rows: number;
66
+ placeholder: string;
67
+ options?: undefined;
68
+ setters?: undefined;
69
+ };
70
+ };
71
+ extraProps: {
72
+ display: string;
73
+ };
74
+ condition: (target: any) => boolean;
75
+ } | {
76
+ name: string;
77
+ title: string;
78
+ setter: {
79
+ componentName: string;
80
+ props: {
81
+ setters: string[];
82
+ options?: undefined;
83
+ rows?: undefined;
84
+ placeholder?: undefined;
85
+ };
86
+ };
87
+ extraProps: {
88
+ display: string;
89
+ };
90
+ condition: (target: any) => boolean;
91
+ })[];
92
+ } | {
93
+ type: string;
94
+ title: string;
95
+ display: string;
96
+ items: {
97
+ name: string;
98
+ title: string;
99
+ setter: string;
100
+ extraProps: {
101
+ display: string;
102
+ };
103
+ }[];
104
+ } | {
105
+ type: string;
106
+ title: string;
107
+ display: string;
108
+ items: {
109
+ name: string;
110
+ title: string;
111
+ setter: {
112
+ componentName: string;
113
+ props: {
114
+ item: {
115
+ setters: {
116
+ componentName: string;
117
+ props: {
118
+ config: {
119
+ items: ({
120
+ name: string;
121
+ description: string;
122
+ setter: string;
123
+ } | {
124
+ name: string;
125
+ description: string;
126
+ setter: {
127
+ componentName: string;
128
+ props: {
129
+ options: {
130
+ label: string;
131
+ value: string;
132
+ }[];
133
+ };
134
+ };
135
+ })[];
136
+ };
137
+ };
138
+ }[];
139
+ };
140
+ };
141
+ };
142
+ extraProps: {
143
+ display: string;
144
+ };
145
+ }[];
146
+ })[];
147
+ };
148
+ icon: import("@types/react").CElement<{}, import("@types/react").Component<{}, any, any>> | null;
149
+ category: string;
150
+ group: string;
151
+ snippets: ({
152
+ title: string;
153
+ schema: {
154
+ componentName: string;
155
+ props: {
156
+ dataSourceType: string;
157
+ mockData: string;
158
+ showFilter: boolean;
159
+ showAction: boolean;
160
+ showSelection: boolean;
161
+ showOperation: boolean;
162
+ showStatus: boolean;
163
+ showPagination: boolean;
164
+ actionButtons: ({
165
+ text: string;
166
+ icon: string;
167
+ type: string;
168
+ onClick: string;
169
+ } | {
170
+ text: string;
171
+ icon: string;
172
+ type: string;
173
+ onClick?: undefined;
174
+ })[];
175
+ batchOperations: {
176
+ text: string;
177
+ value: string;
178
+ }[];
179
+ };
180
+ };
181
+ } | {
182
+ title: string;
183
+ schema: {
184
+ componentName: string;
185
+ props: {
186
+ dataSourceType: string;
187
+ mockData: string;
188
+ showFilter: boolean;
189
+ showAction: boolean;
190
+ showSelection: boolean;
191
+ showOperation: boolean;
192
+ showStatus: boolean;
193
+ showPagination: boolean;
194
+ actionButtons?: undefined;
195
+ batchOperations?: undefined;
196
+ };
197
+ };
198
+ })[];
199
+ };
200
+ export default _default;
@@ -0,0 +1,129 @@
1
+ declare const promotionCardMeta: {
2
+ componentName: string;
3
+ title: string;
4
+ docUrl: string;
5
+ screenshot: string;
6
+ devMode: string;
7
+ npm: {
8
+ package: string;
9
+ version: string;
10
+ exportName: string;
11
+ main: string;
12
+ destructuring: boolean;
13
+ subName: string;
14
+ };
15
+ category: string;
16
+ group: string;
17
+ icon: import("@types/react").CElement<{}, import("@types/react").Component<{}, any, any>> | null;
18
+ props: ({
19
+ name: string;
20
+ propType: string;
21
+ description: string;
22
+ defaultValue: string;
23
+ } | {
24
+ name: string;
25
+ propType: string;
26
+ description: string;
27
+ defaultValue?: undefined;
28
+ } | {
29
+ name: string;
30
+ propType: string;
31
+ description: string;
32
+ defaultValue: boolean;
33
+ })[];
34
+ configure: {
35
+ supports: {
36
+ style: boolean;
37
+ className: boolean;
38
+ events: {
39
+ name: string;
40
+ description: string;
41
+ }[];
42
+ };
43
+ props: ({
44
+ type: string;
45
+ title: string;
46
+ display: string;
47
+ items: ({
48
+ name: string;
49
+ title: string;
50
+ setter: {
51
+ componentName: string;
52
+ props: {
53
+ options: {
54
+ label: string;
55
+ value: string;
56
+ }[];
57
+ rows?: undefined;
58
+ placeholder?: undefined;
59
+ setters?: undefined;
60
+ };
61
+ };
62
+ extraProps: {
63
+ display: string;
64
+ };
65
+ condition?: undefined;
66
+ } | {
67
+ name: string;
68
+ title: string;
69
+ setter: {
70
+ componentName: string;
71
+ props: {
72
+ rows: number;
73
+ placeholder: string;
74
+ options?: undefined;
75
+ setters?: undefined;
76
+ };
77
+ };
78
+ extraProps: {
79
+ display: string;
80
+ };
81
+ condition: (target: any) => boolean;
82
+ } | {
83
+ name: string;
84
+ title: string;
85
+ setter: {
86
+ componentName: string;
87
+ props: {
88
+ setters: string[];
89
+ options?: undefined;
90
+ rows?: undefined;
91
+ placeholder?: undefined;
92
+ };
93
+ };
94
+ extraProps: {
95
+ display: string;
96
+ };
97
+ condition: (target: any) => boolean;
98
+ })[];
99
+ } | {
100
+ type: string;
101
+ title: string;
102
+ display: string;
103
+ items: {
104
+ name: string;
105
+ title: string;
106
+ setter: string;
107
+ extraProps: {
108
+ display: string;
109
+ };
110
+ }[];
111
+ })[];
112
+ };
113
+ snippets: {
114
+ title: string;
115
+ screenshot: string;
116
+ schema: {
117
+ componentName: string;
118
+ props: {
119
+ dataSourceType: string;
120
+ mockData: string;
121
+ showCreateButton: boolean;
122
+ showFilter: boolean;
123
+ showStatistics: boolean;
124
+ showTimeline: boolean;
125
+ };
126
+ };
127
+ }[];
128
+ };
129
+ export default promotionCardMeta;
@@ -0,0 +1,3 @@
1
+ import type { IPublicTypeComponentMetadata } from '@alilc/lowcode-types';
2
+ declare const roleCardMeta: IPublicTypeComponentMetadata;
3
+ export default roleCardMeta;
@@ -0,0 +1,3 @@
1
+ import type { IPublicTypeComponentMetadata } from '@alilc/lowcode-types';
2
+ declare const TabPaneMeta: IPublicTypeComponentMetadata;
3
+ export default TabPaneMeta;
@@ -0,0 +1,3 @@
1
+ import type { IPublicTypeComponentMetadata } from '@alilc/lowcode-types';
2
+ declare const userCardMeta: IPublicTypeComponentMetadata;
3
+ export default userCardMeta;