@tcn/ui-table 1.0.0 → 1.0.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,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import cellStyles from './cell.module.css';
3
3
  export function FooterCell({ content, sticky, width }) {
4
- return (React.createElement("td", { className: cellStyles['table-cell'], "data-stick-to": sticky, style: {
5
- width: `${width}px`,
6
- minWidth: `${width}px`,
7
- maxWidth: `${width}px`,
8
- padding: '4px 6px',
9
- } }, content));
4
+ return (React.createElement("td", { className: cellStyles['table-cell'], "data-stick-to": sticky },
5
+ React.createElement("div", { style: {
6
+ width: `${width}px`,
7
+ minWidth: `${width}px`,
8
+ maxWidth: `${width}px`,
9
+ } }, content)));
10
10
  }
11
11
  //# sourceMappingURL=footer_cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer_cell.js","sourceRoot":"","sources":["../../../src/_components/cells/footer_cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAQ3C,MAAM,UAAU,UAAU,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAmB;IACpE,OAAO,CACL,4BACE,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC,mBACpB,MAAM,EACrB,KAAK,EAAE;YACL,KAAK,EAAE,GAAG,KAAK,IAAI;YACnB,QAAQ,EAAE,GAAG,KAAK,IAAI;YACtB,QAAQ,EAAE,GAAG,KAAK,IAAI;YACtB,OAAO,EAAE,SAAS;SACnB,IAEA,OAAO,CACL,CACN,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"footer_cell.js","sourceRoot":"","sources":["../../../src/_components/cells/footer_cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAQ3C,MAAM,UAAU,UAAU,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAmB;IACpE,OAAO,CACL,4BAAI,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC,mBAAiB,MAAM;QAC5D,6BACE,KAAK,EAAE;gBACL,KAAK,EAAE,GAAG,KAAK,IAAI;gBACnB,QAAQ,EAAE,GAAG,KAAK,IAAI;gBACtB,QAAQ,EAAE,GAAG,KAAK,IAAI;aACvB,IAEA,OAAO,CACJ,CACH,CACN,CAAC;AACJ,CAAC"}
@@ -23,11 +23,9 @@
23
23
 
24
24
  td {
25
25
  text-align: start;
26
- padding: 8px;
27
26
  overflow: hidden;
28
27
  white-space: nowrap;
29
28
  text-overflow: ellipsis;
30
- /* padding: 0px 4px; */
31
29
  background-color: inherit;
32
30
  }
33
31
 
@@ -6,12 +6,12 @@ import { BodyText } from '@tcn/ui-typography';
6
6
  import styles from './table_pager.module.css';
7
7
  export function TablePager({ dataSource, ...props }) {
8
8
  const pageIndex = useSignalValue(dataSource.broadcasts.currentPageIndex);
9
- const pagesCount = useSignalValue(dataSource.broadcasts.pagesCount);
9
+ const hasNextPage = useSignalValue(dataSource.broadcasts.hasNextPage);
10
10
  return (React.createElement(HStack, { as: "div", height: "auto", width: "auto", gap: "8px", ...props },
11
11
  React.createElement(HStack, { gap: "4px", width: "auto" },
12
12
  React.createElement(BodyText, null, "Page:"),
13
13
  React.createElement(BodyText, { className: styles['page-count'] }, pageIndex + 1)),
14
14
  React.createElement(IconButton, { size: "md", flipOnRtl: true, iconName: "chevron_left", onClick: () => dataSource.previousPage(), disabled: pageIndex === 0 }),
15
- React.createElement(IconButton, { flipOnRtl: true, size: "md", iconName: "chevron_right", onClick: () => dataSource.nextPage(), disabled: pageIndex === pagesCount - 1 })));
15
+ React.createElement(IconButton, { flipOnRtl: true, size: "md", iconName: "chevron_right", onClick: () => dataSource.nextPage(), disabled: !hasNextPage })));
16
16
  }
17
17
  //# sourceMappingURL=table_pager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table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ACT,QAAQ,EAAC,eAAe,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,EACpC,QAAQ,EAAE,CAAC,WAAW,GACtB,CACK,CACV,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tcn/ui-table",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "author": "TCN",
6
6
  "description": "Blackcat UI Table",
@@ -63,7 +63,7 @@
63
63
  "vitest": "^2.1.4"
64
64
  },
65
65
  "dependencies": {
66
- "@tcn/resource-store": "^1.1.2",
66
+ "@tcn/resource-store": "^1.2.1",
67
67
  "@tcn/state": "^0.1.9",
68
68
  "@tcn/ui-actions": "^1.0.1",
69
69
  "@tcn/ui-core": "^0.5.0",