@teamix/pro 2.0.0-beta.1 → 2.0.0-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/index.d.ts +11 -8
- package/es/index.js +30 -33
- package/es/templates/Detail/index.d.ts +0 -1
- package/es/templates/Form/index.d.ts +0 -1
- package/lib/index.d.ts +11 -8
- package/lib/index.js +101 -60
- package/lib/templates/Detail/index.d.ts +0 -1
- package/lib/templates/Form/index.d.ts +0 -1
- package/package.json +3 -2
package/es/index.d.ts
CHANGED
@@ -1,23 +1,26 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import ProAction from '@teamix/pro-action';
|
2
|
+
import ProCard from '@teamix/pro-card';
|
3
3
|
import ProField from '@teamix/pro-field';
|
4
|
-
import ProForm from '@teamix/pro-
|
4
|
+
import ProForm from '@teamix/pro-form';
|
5
5
|
import ProInfo from '@teamix/pro-info';
|
6
6
|
import ProPageContainer from '@teamix/pro-page-container';
|
7
|
-
import ProPageHeader from '@teamix/pro-page-header';
|
8
7
|
import ProTable from '@teamix/pro-table';
|
8
|
+
import * as hooks from '@teamix/hooks';
|
9
|
+
import TeamixProProvider from '@teamix/provider';
|
9
10
|
import * as utils from '@teamix/utils';
|
10
11
|
import './global.scss';
|
11
|
-
import
|
12
|
-
declare const version = "
|
12
|
+
import ProSkeleton from '@teamix/pro-skeleton';
|
13
|
+
declare const version = "2.0.0-beta.10";
|
13
14
|
export * from '@teamix/pro-action';
|
15
|
+
export * from '@teamix/pro-card';
|
14
16
|
export * from '@teamix/pro-field';
|
15
17
|
export * from '@teamix/pro-form';
|
16
18
|
export * from '@teamix/pro-info';
|
17
19
|
export * from '@teamix/pro-page-header';
|
18
|
-
export * from '@teamix/pro-page-header';
|
19
20
|
export * from '@teamix/pro-skeleton';
|
20
21
|
export * from '@teamix/pro-table';
|
22
|
+
export * from '@teamix/provider';
|
21
23
|
export * from '@teamix/utils';
|
22
|
-
export
|
24
|
+
export * from '@teamix/hooks';
|
25
|
+
export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
|
23
26
|
export default version;
|
package/es/index.js
CHANGED
@@ -1,57 +1,54 @@
|
|
1
|
-
var _window;
|
2
1
|
// import ProLayout from './layout';
|
3
2
|
// import utils from './utils';
|
4
|
-
|
5
|
-
import
|
6
|
-
import ProAction from "../../actions/src";
|
3
|
+
import ProAction from '@teamix/pro-action';
|
4
|
+
import ProCard from '@teamix/pro-card';
|
7
5
|
import ProField from '@teamix/pro-field';
|
8
|
-
import ProForm from '@teamix/pro-
|
6
|
+
import ProForm from '@teamix/pro-form';
|
9
7
|
import ProInfo from '@teamix/pro-info';
|
10
8
|
import ProPageContainer from '@teamix/pro-page-container';
|
11
|
-
import ProPageHeader from '@teamix/pro-page-header';
|
12
9
|
import ProTable from '@teamix/pro-table';
|
10
|
+
import * as hooks from '@teamix/hooks';
|
11
|
+
import TeamixProProvider from '@teamix/provider';
|
12
|
+
|
13
|
+
// import TeamixIcon from '@teamix/icon';
|
13
14
|
// import { ProTimeline } from '../../timeline';
|
14
15
|
import * as utils from '@teamix/utils';
|
15
16
|
import "./global.scss";
|
16
|
-
import
|
17
|
+
import ProSkeleton from '@teamix/pro-skeleton';
|
17
18
|
|
18
19
|
// 设置图标源
|
19
20
|
// @ts-ignore
|
20
|
-
if (!
|
21
|
-
|
22
|
-
}
|
23
|
-
|
21
|
+
// if (!window?.TEAMIXPRO_WITHOUT_ICON) {
|
22
|
+
// TeamixIcon.setConfig(utils.getTeamixIconConfig());
|
23
|
+
// }
|
24
|
+
|
25
|
+
var version = '2.0.0-beta.10';
|
24
26
|
export * from '@teamix/pro-action';
|
27
|
+
export * from '@teamix/pro-card';
|
25
28
|
export * from '@teamix/pro-field';
|
26
29
|
export * from '@teamix/pro-form';
|
27
30
|
export * from '@teamix/pro-info';
|
28
31
|
export * from '@teamix/pro-page-header';
|
29
|
-
export * from '@teamix/pro-page-header';
|
30
32
|
// export * from '@teamix/pro-sidebar';
|
31
33
|
export * from '@teamix/pro-skeleton';
|
32
34
|
export * from '@teamix/pro-table';
|
35
|
+
export * from '@teamix/provider';
|
33
36
|
// export * from '../../timeline';
|
34
37
|
export * from '@teamix/utils';
|
35
|
-
export
|
36
|
-
|
37
|
-
ProPageContainer, ProPageHeader,
|
38
|
-
// ProSkeleton,
|
39
|
-
ProTable,
|
40
|
-
// ProSidebar,
|
41
|
-
// ProTimeline,
|
42
|
-
TeamixIcon, hooks,
|
43
|
-
// nocode,
|
44
|
-
// templates,
|
45
|
-
utils };
|
46
|
-
|
38
|
+
export * from '@teamix/hooks';
|
39
|
+
export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
|
47
40
|
// By TeamixTest
|
48
|
-
window.postMessage(
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
41
|
+
// window.postMessage(
|
42
|
+
// {
|
43
|
+
// source: 'teamix-test-devtools',
|
44
|
+
// url: window.location.href,
|
45
|
+
// event: 'getModuleInfo',
|
46
|
+
// moduleName: '@teamix/pro',
|
47
|
+
// moduleVersion: version,
|
48
|
+
// moduleType: 'TeamixPro',
|
49
|
+
// componentName: 'TeamixPro',
|
50
|
+
// },
|
51
|
+
// '*',
|
52
|
+
// );
|
53
|
+
|
57
54
|
export default version;
|
package/lib/index.d.ts
CHANGED
@@ -1,23 +1,26 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import ProAction from '@teamix/pro-action';
|
2
|
+
import ProCard from '@teamix/pro-card';
|
3
3
|
import ProField from '@teamix/pro-field';
|
4
|
-
import ProForm from '@teamix/pro-
|
4
|
+
import ProForm from '@teamix/pro-form';
|
5
5
|
import ProInfo from '@teamix/pro-info';
|
6
6
|
import ProPageContainer from '@teamix/pro-page-container';
|
7
|
-
import ProPageHeader from '@teamix/pro-page-header';
|
8
7
|
import ProTable from '@teamix/pro-table';
|
8
|
+
import * as hooks from '@teamix/hooks';
|
9
|
+
import TeamixProProvider from '@teamix/provider';
|
9
10
|
import * as utils from '@teamix/utils';
|
10
11
|
import './global.scss';
|
11
|
-
import
|
12
|
-
declare const version = "
|
12
|
+
import ProSkeleton from '@teamix/pro-skeleton';
|
13
|
+
declare const version = "2.0.0-beta.10";
|
13
14
|
export * from '@teamix/pro-action';
|
15
|
+
export * from '@teamix/pro-card';
|
14
16
|
export * from '@teamix/pro-field';
|
15
17
|
export * from '@teamix/pro-form';
|
16
18
|
export * from '@teamix/pro-info';
|
17
19
|
export * from '@teamix/pro-page-header';
|
18
|
-
export * from '@teamix/pro-page-header';
|
19
20
|
export * from '@teamix/pro-skeleton';
|
20
21
|
export * from '@teamix/pro-table';
|
22
|
+
export * from '@teamix/provider';
|
21
23
|
export * from '@teamix/utils';
|
22
|
-
export
|
24
|
+
export * from '@teamix/hooks';
|
25
|
+
export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
|
23
26
|
export default version;
|
package/lib/index.js
CHANGED
@@ -5,22 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
var _exportNames = {
|
8
|
-
version: true,
|
9
|
-
TeamixIcon: true,
|
10
8
|
ProAction: true,
|
9
|
+
ProCard: true,
|
11
10
|
ProField: true,
|
12
11
|
ProForm: true,
|
13
12
|
ProInfo: true,
|
14
13
|
ProPageContainer: true,
|
15
|
-
ProPageHeader: true,
|
16
14
|
ProTable: true,
|
15
|
+
hooks: true,
|
16
|
+
TeamixProProvider: true,
|
17
17
|
utils: true,
|
18
|
-
|
18
|
+
ProSkeleton: true
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "ProAction", {
|
21
21
|
enumerable: true,
|
22
22
|
get: function get() {
|
23
|
-
return
|
23
|
+
return _proAction.default;
|
24
|
+
}
|
25
|
+
});
|
26
|
+
Object.defineProperty(exports, "ProCard", {
|
27
|
+
enumerable: true,
|
28
|
+
get: function get() {
|
29
|
+
return _proCard.default;
|
24
30
|
}
|
25
31
|
});
|
26
32
|
Object.defineProperty(exports, "ProField", {
|
@@ -32,7 +38,7 @@ Object.defineProperty(exports, "ProField", {
|
|
32
38
|
Object.defineProperty(exports, "ProForm", {
|
33
39
|
enumerable: true,
|
34
40
|
get: function get() {
|
35
|
-
return
|
41
|
+
return _proForm.default;
|
36
42
|
}
|
37
43
|
});
|
38
44
|
Object.defineProperty(exports, "ProInfo", {
|
@@ -47,10 +53,10 @@ Object.defineProperty(exports, "ProPageContainer", {
|
|
47
53
|
return _proPageContainer.default;
|
48
54
|
}
|
49
55
|
});
|
50
|
-
Object.defineProperty(exports, "
|
56
|
+
Object.defineProperty(exports, "ProSkeleton", {
|
51
57
|
enumerable: true,
|
52
58
|
get: function get() {
|
53
|
-
return
|
59
|
+
return _proSkeleton.default;
|
54
60
|
}
|
55
61
|
});
|
56
62
|
Object.defineProperty(exports, "ProTable", {
|
@@ -59,22 +65,37 @@ Object.defineProperty(exports, "ProTable", {
|
|
59
65
|
return _proTable.default;
|
60
66
|
}
|
61
67
|
});
|
62
|
-
Object.defineProperty(exports, "
|
68
|
+
Object.defineProperty(exports, "TeamixProProvider", {
|
63
69
|
enumerable: true,
|
64
70
|
get: function get() {
|
65
|
-
return
|
71
|
+
return _provider.default;
|
66
72
|
}
|
67
73
|
});
|
68
|
-
exports.default = void 0;
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
+
exports.utils = exports.hooks = exports.default = void 0;
|
75
|
+
var _proAction = _interopRequireWildcard(require("@teamix/pro-action"));
|
76
|
+
Object.keys(_proAction).forEach(function (key) {
|
77
|
+
if (key === "default" || key === "__esModule") return;
|
78
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
79
|
+
if (key in exports && exports[key] === _proAction[key]) return;
|
80
|
+
Object.defineProperty(exports, key, {
|
81
|
+
enumerable: true,
|
82
|
+
get: function get() {
|
83
|
+
return _proAction[key];
|
84
|
+
}
|
85
|
+
});
|
86
|
+
});
|
87
|
+
var _proCard = _interopRequireWildcard(require("@teamix/pro-card"));
|
88
|
+
Object.keys(_proCard).forEach(function (key) {
|
89
|
+
if (key === "default" || key === "__esModule") return;
|
90
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
91
|
+
if (key in exports && exports[key] === _proCard[key]) return;
|
92
|
+
Object.defineProperty(exports, key, {
|
93
|
+
enumerable: true,
|
94
|
+
get: function get() {
|
95
|
+
return _proCard[key];
|
96
|
+
}
|
97
|
+
});
|
74
98
|
});
|
75
|
-
exports.version = exports.utils = void 0;
|
76
|
-
var _icon = _interopRequireDefault(require("@teamix/icon"));
|
77
|
-
var _src = _interopRequireDefault(require("../../actions/src"));
|
78
99
|
var _proField = _interopRequireWildcard(require("@teamix/pro-field"));
|
79
100
|
Object.keys(_proField).forEach(function (key) {
|
80
101
|
if (key === "default" || key === "__esModule") return;
|
@@ -87,31 +108,31 @@ Object.keys(_proField).forEach(function (key) {
|
|
87
108
|
}
|
88
109
|
});
|
89
110
|
});
|
90
|
-
var
|
91
|
-
Object.keys(
|
111
|
+
var _proForm = _interopRequireWildcard(require("@teamix/pro-form"));
|
112
|
+
Object.keys(_proForm).forEach(function (key) {
|
92
113
|
if (key === "default" || key === "__esModule") return;
|
93
114
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
94
|
-
if (key in exports && exports[key] ===
|
115
|
+
if (key in exports && exports[key] === _proForm[key]) return;
|
95
116
|
Object.defineProperty(exports, key, {
|
96
117
|
enumerable: true,
|
97
118
|
get: function get() {
|
98
|
-
return
|
119
|
+
return _proForm[key];
|
99
120
|
}
|
100
121
|
});
|
101
122
|
});
|
102
|
-
var
|
103
|
-
|
104
|
-
Object.keys(_proPageHeader).forEach(function (key) {
|
123
|
+
var _proInfo = _interopRequireWildcard(require("@teamix/pro-info"));
|
124
|
+
Object.keys(_proInfo).forEach(function (key) {
|
105
125
|
if (key === "default" || key === "__esModule") return;
|
106
126
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
107
|
-
if (key in exports && exports[key] ===
|
127
|
+
if (key in exports && exports[key] === _proInfo[key]) return;
|
108
128
|
Object.defineProperty(exports, key, {
|
109
129
|
enumerable: true,
|
110
130
|
get: function get() {
|
111
|
-
return
|
131
|
+
return _proInfo[key];
|
112
132
|
}
|
113
133
|
});
|
114
134
|
});
|
135
|
+
var _proPageContainer = _interopRequireDefault(require("@teamix/pro-page-container"));
|
115
136
|
var _proTable = _interopRequireWildcard(require("@teamix/pro-table"));
|
116
137
|
Object.keys(_proTable).forEach(function (key) {
|
117
138
|
if (key === "default" || key === "__esModule") return;
|
@@ -124,46 +145,46 @@ Object.keys(_proTable).forEach(function (key) {
|
|
124
145
|
}
|
125
146
|
});
|
126
147
|
});
|
127
|
-
var
|
128
|
-
exports.
|
129
|
-
Object.keys(
|
148
|
+
var hooks = _interopRequireWildcard(require("@teamix/hooks"));
|
149
|
+
exports.hooks = hooks;
|
150
|
+
Object.keys(hooks).forEach(function (key) {
|
130
151
|
if (key === "default" || key === "__esModule") return;
|
131
152
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
132
|
-
if (key in exports && exports[key] ===
|
153
|
+
if (key in exports && exports[key] === hooks[key]) return;
|
133
154
|
Object.defineProperty(exports, key, {
|
134
155
|
enumerable: true,
|
135
156
|
get: function get() {
|
136
|
-
return
|
157
|
+
return hooks[key];
|
137
158
|
}
|
138
159
|
});
|
139
160
|
});
|
140
|
-
require("
|
141
|
-
|
142
|
-
var _proAction = require("@teamix/pro-action");
|
143
|
-
Object.keys(_proAction).forEach(function (key) {
|
161
|
+
var _provider = _interopRequireWildcard(require("@teamix/provider"));
|
162
|
+
Object.keys(_provider).forEach(function (key) {
|
144
163
|
if (key === "default" || key === "__esModule") return;
|
145
164
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
146
|
-
if (key in exports && exports[key] ===
|
165
|
+
if (key in exports && exports[key] === _provider[key]) return;
|
147
166
|
Object.defineProperty(exports, key, {
|
148
167
|
enumerable: true,
|
149
168
|
get: function get() {
|
150
|
-
return
|
169
|
+
return _provider[key];
|
151
170
|
}
|
152
171
|
});
|
153
172
|
});
|
154
|
-
var
|
155
|
-
|
173
|
+
var utils = _interopRequireWildcard(require("@teamix/utils"));
|
174
|
+
exports.utils = utils;
|
175
|
+
Object.keys(utils).forEach(function (key) {
|
156
176
|
if (key === "default" || key === "__esModule") return;
|
157
177
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
158
|
-
if (key in exports && exports[key] ===
|
178
|
+
if (key in exports && exports[key] === utils[key]) return;
|
159
179
|
Object.defineProperty(exports, key, {
|
160
180
|
enumerable: true,
|
161
181
|
get: function get() {
|
162
|
-
return
|
182
|
+
return utils[key];
|
163
183
|
}
|
164
184
|
});
|
165
185
|
});
|
166
|
-
|
186
|
+
require("./global.scss");
|
187
|
+
var _proSkeleton = _interopRequireWildcard(require("@teamix/pro-skeleton"));
|
167
188
|
Object.keys(_proSkeleton).forEach(function (key) {
|
168
189
|
if (key === "default" || key === "__esModule") return;
|
169
190
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -175,26 +196,46 @@ Object.keys(_proSkeleton).forEach(function (key) {
|
|
175
196
|
}
|
176
197
|
});
|
177
198
|
});
|
178
|
-
var
|
199
|
+
var _proPageHeader = require("@teamix/pro-page-header");
|
200
|
+
Object.keys(_proPageHeader).forEach(function (key) {
|
201
|
+
if (key === "default" || key === "__esModule") return;
|
202
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
203
|
+
if (key in exports && exports[key] === _proPageHeader[key]) return;
|
204
|
+
Object.defineProperty(exports, key, {
|
205
|
+
enumerable: true,
|
206
|
+
get: function get() {
|
207
|
+
return _proPageHeader[key];
|
208
|
+
}
|
209
|
+
});
|
210
|
+
});
|
211
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
179
212
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
180
213
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
181
|
-
|
214
|
+
// import ProLayout from './layout';
|
215
|
+
// import utils from './utils';
|
216
|
+
|
217
|
+
// import TeamixIcon from '@teamix/icon';
|
218
|
+
// import { ProTimeline } from '../../timeline';
|
219
|
+
|
182
220
|
// 设置图标源
|
183
221
|
// @ts-ignore
|
184
|
-
if (!
|
185
|
-
|
186
|
-
}
|
187
|
-
|
188
|
-
|
222
|
+
// if (!window?.TEAMIXPRO_WITHOUT_ICON) {
|
223
|
+
// TeamixIcon.setConfig(utils.getTeamixIconConfig());
|
224
|
+
// }
|
225
|
+
|
226
|
+
var version = '2.0.0-beta.10';
|
189
227
|
// By TeamixTest
|
190
|
-
window.postMessage(
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
228
|
+
// window.postMessage(
|
229
|
+
// {
|
230
|
+
// source: 'teamix-test-devtools',
|
231
|
+
// url: window.location.href,
|
232
|
+
// event: 'getModuleInfo',
|
233
|
+
// moduleName: '@teamix/pro',
|
234
|
+
// moduleVersion: version,
|
235
|
+
// moduleType: 'TeamixPro',
|
236
|
+
// componentName: 'TeamixPro',
|
237
|
+
// },
|
238
|
+
// '*',
|
239
|
+
// );
|
199
240
|
var _default = version;
|
200
241
|
exports.default = _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teamix/pro",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.10",
|
4
4
|
"description": "TeamixPro大包",
|
5
5
|
"keywords": [
|
6
6
|
"aliyun",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"@teamix/pro-field": "^2.0.0-beta.1",
|
58
58
|
"@teamix/pro-page-header": "^2.0.0-beta.1",
|
59
59
|
"@teamix/pro-page-container": "^2.0.0-beta.1",
|
60
|
-
"@teamix/pro-
|
60
|
+
"@teamix/pro-skeleton": "^2.0.0-beta.1",
|
61
61
|
"@teamix/pro-action": "^2.0.0-beta.1",
|
62
62
|
"@teamix/utils": "^2.0.0-beta.1"
|
63
63
|
|
@@ -67,6 +67,7 @@
|
|
67
67
|
"@types/lodash.debounce": "^4.0.6",
|
68
68
|
"@types/lodash.isempty": "^4.4.6",
|
69
69
|
"@types/react-helmet": "^6.1.4",
|
70
|
+
"father": "^4.0.0",
|
70
71
|
"react-router-dom": "^5.3.0"
|
71
72
|
},
|
72
73
|
"peerDependencies": {
|