@sheinx/base 3.7.9-beta.1 → 3.7.9-beta.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBA+rBE"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAgsBE"}
@@ -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 : {
@@ -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,wBA4FE"}
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"}
@@ -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 = props.summary,
70
- summary = _props$summary === void 0 ? [] : _props$summary;
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;CAC3C"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBA+rBE"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAgsBE"}
@@ -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 : {
@@ -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,wBA4FE"}
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"}
@@ -59,8 +59,12 @@ export default (function (props) {
59
59
  }, index);
60
60
  };
61
61
  var getTrs = function getTrs() {
62
- var _props$summary = props.summary,
63
- summary = _props$summary === void 0 ? [] : _props$summary;
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;CAC3C"}
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.1",
3
+ "version": "3.7.9-beta.2",
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.1",
13
+ "@sheinx/hooks": "3.7.9-beta.2",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"