@sheinx/base 3.7.9-beta.1 → 3.7.9-beta.3
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/cjs/sticky/sticky.js +2 -1
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +2 -1
- package/cjs/table/tfoot.d.ts.map +1 -1
- package/cjs/table/tfoot.js +6 -2
- package/cjs/table/tfoot.type.d.ts +1 -0
- package/cjs/table/tfoot.type.d.ts.map +1 -1
- package/esm/sticky/sticky.js +2 -1
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +2 -1
- package/esm/table/tfoot.d.ts.map +1 -1
- package/esm/table/tfoot.js +6 -2
- package/esm/table/tfoot.type.d.ts +1 -0
- package/esm/table/tfoot.type.d.ts.map +1 -1
- package/package.json +2 -2
package/cjs/sticky/sticky.js
CHANGED
|
@@ -45,6 +45,7 @@ var events = ['scroll', 'pageshow', 'load', 'resize'];
|
|
|
45
45
|
// };
|
|
46
46
|
|
|
47
47
|
var Sticky = function Sticky(props) {
|
|
48
|
+
var _props$style;
|
|
48
49
|
if (props.target) {
|
|
49
50
|
devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
50
51
|
}
|
|
@@ -400,7 +401,7 @@ var Sticky = function Sticky(props) {
|
|
|
400
401
|
}
|
|
401
402
|
var StickyEl = show && parentVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
402
403
|
style: _objectSpread(_objectSpread({
|
|
403
|
-
zIndex: defaultZIndex
|
|
404
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
404
405
|
}, style), elementSize),
|
|
405
406
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
406
407
|
className: props.className,
|
package/cjs/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAgsBE"}
|
package/cjs/table/table.js
CHANGED
|
@@ -417,7 +417,8 @@ var _default = exports.default = function _default(props) {
|
|
|
417
417
|
summary: props.summary,
|
|
418
418
|
columns: columns,
|
|
419
419
|
jssStyle: props.jssStyle,
|
|
420
|
-
colgroup: colgroup
|
|
420
|
+
colgroup: colgroup,
|
|
421
|
+
data: props.data
|
|
421
422
|
};
|
|
422
423
|
var StickyWrapper = props.sticky ? _sticky.default : _react.default.Fragment;
|
|
423
424
|
var sticky = _typeof(props.sticky) === 'object' ? props.sticky : {
|
package/cjs/table/tfoot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,wBA+FE"}
|
package/cjs/table/tfoot.js
CHANGED
|
@@ -66,8 +66,12 @@ var _default = exports.default = function _default(props) {
|
|
|
66
66
|
}, index);
|
|
67
67
|
};
|
|
68
68
|
var getTrs = function getTrs() {
|
|
69
|
-
var _props$summary
|
|
70
|
-
|
|
69
|
+
var _props$summary, _props$data;
|
|
70
|
+
if (props !== null && props !== void 0 && (_props$summary = props.summary) !== null && _props$summary !== void 0 && _props$summary.length && (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) === 0) {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
var _props$summary2 = props.summary,
|
|
74
|
+
summary = _props$summary2 === void 0 ? [] : _props$summary2;
|
|
71
75
|
if (!isArray(summary[0])) {
|
|
72
76
|
summary = [summary];
|
|
73
77
|
}
|
|
@@ -4,5 +4,6 @@ export { SummaryItem } from './table.type';
|
|
|
4
4
|
export interface TfootProps extends Pick<OptionalToRequired<TableProps<any, any>>, 'summary' | 'jssStyle'> {
|
|
5
5
|
columns: TableFormatColumn<any>[];
|
|
6
6
|
colgroup: (number | string | undefined)[];
|
|
7
|
+
data?: any[];
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=tfoot.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd"}
|
package/esm/sticky/sticky.js
CHANGED
|
@@ -39,6 +39,7 @@ var events = ['scroll', 'pageshow', 'load', 'resize'];
|
|
|
39
39
|
// };
|
|
40
40
|
|
|
41
41
|
var Sticky = function Sticky(props) {
|
|
42
|
+
var _props$style;
|
|
42
43
|
if (props.target) {
|
|
43
44
|
devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
44
45
|
}
|
|
@@ -394,7 +395,7 @@ var Sticky = function Sticky(props) {
|
|
|
394
395
|
}
|
|
395
396
|
var StickyEl = show && parentVisible ? /*#__PURE__*/_jsx("div", {
|
|
396
397
|
style: _objectSpread(_objectSpread({
|
|
397
|
-
zIndex: defaultZIndex
|
|
398
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
398
399
|
}, style), elementSize),
|
|
399
400
|
children: /*#__PURE__*/_jsx("div", {
|
|
400
401
|
className: props.className,
|
package/esm/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAgsBE"}
|
package/esm/table/table.js
CHANGED
|
@@ -410,7 +410,8 @@ export default (function (props) {
|
|
|
410
410
|
summary: props.summary,
|
|
411
411
|
columns: columns,
|
|
412
412
|
jssStyle: props.jssStyle,
|
|
413
|
-
colgroup: colgroup
|
|
413
|
+
colgroup: colgroup,
|
|
414
|
+
data: props.data
|
|
414
415
|
};
|
|
415
416
|
var StickyWrapper = props.sticky ? Sticky : React.Fragment;
|
|
416
417
|
var sticky = _typeof(props.sticky) === 'object' ? props.sticky : {
|
package/esm/table/tfoot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,wBA+FE"}
|
package/esm/table/tfoot.js
CHANGED
|
@@ -59,8 +59,12 @@ export default (function (props) {
|
|
|
59
59
|
}, index);
|
|
60
60
|
};
|
|
61
61
|
var getTrs = function getTrs() {
|
|
62
|
-
var _props$summary
|
|
63
|
-
|
|
62
|
+
var _props$summary, _props$data;
|
|
63
|
+
if (props !== null && props !== void 0 && (_props$summary = props.summary) !== null && _props$summary !== void 0 && _props$summary.length && (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) === 0) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
var _props$summary2 = props.summary,
|
|
67
|
+
summary = _props$summary2 === void 0 ? [] : _props$summary2;
|
|
64
68
|
if (!isArray(summary[0])) {
|
|
65
69
|
summary = [summary];
|
|
66
70
|
}
|
|
@@ -4,5 +4,6 @@ export { SummaryItem } from './table.type';
|
|
|
4
4
|
export interface TfootProps extends Pick<OptionalToRequired<TableProps<any, any>>, 'summary' | 'jssStyle'> {
|
|
5
5
|
columns: TableFormatColumn<any>[];
|
|
6
6
|
colgroup: (number | string | undefined)[];
|
|
7
|
+
data?: any[];
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=tfoot.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.9-beta.
|
|
3
|
+
"version": "3.7.9-beta.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.7.9-beta.
|
|
13
|
+
"@sheinx/hooks": "3.7.9-beta.3",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|