@skygraph/react 0.5.4 → 0.6.6

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 (57) hide show
  1. package/README.md +70 -70
  2. package/dist/{Table-CMKo6Pc3.d.cts → Table-Bhlshbs2.d.cts} +39 -0
  3. package/dist/{Table-CAay8MmA.d.ts → Table-DOGK_njf.d.ts} +39 -0
  4. package/dist/{chunk-Y6XZ5TLD.js → chunk-B6BK5B64.js} +3 -3
  5. package/dist/chunk-B6BK5B64.js.map +1 -0
  6. package/dist/{chunk-PEX2UTNG.js → chunk-EA2J67A4.js} +2 -2
  7. package/dist/chunk-EA2J67A4.js.map +1 -0
  8. package/dist/{chunk-BNMJSYI2.js → chunk-EWUB2QCP.js} +2 -2
  9. package/dist/chunk-EWUB2QCP.js.map +1 -0
  10. package/dist/{chunk-7AA2JPZB.js → chunk-G4MRXKGC.js} +21 -14
  11. package/dist/chunk-G4MRXKGC.js.map +1 -0
  12. package/dist/{chunk-EFDB2ENB.js → chunk-MTHPDCO3.js} +8 -6
  13. package/dist/chunk-MTHPDCO3.js.map +1 -0
  14. package/dist/{chunk-KGFFQGCM.js → chunk-N4S66XHX.js} +8 -4
  15. package/dist/chunk-N4S66XHX.js.map +1 -0
  16. package/dist/{chunk-SEQI65CF.js → chunk-U7BXGUMC.js} +1 -1
  17. package/dist/chunk-U7BXGUMC.js.map +1 -0
  18. package/dist/{chunk-45YW5VSP.js → chunk-UCCGEZPJ.js} +2 -2
  19. package/dist/chunk-UCCGEZPJ.js.map +1 -0
  20. package/dist/{chunk-VLRLCHEL.js → chunk-YJZKXU5O.js} +1 -1
  21. package/dist/chunk-YJZKXU5O.js.map +1 -0
  22. package/dist/{chunk-ZJC2QUWA.js → chunk-YWCL3MUL.js} +1 -1
  23. package/dist/chunk-YWCL3MUL.js.map +1 -0
  24. package/dist/datagrid.cjs +3 -4
  25. package/dist/datagrid.cjs.map +1 -1
  26. package/dist/datagrid.js +4 -4
  27. package/dist/devtools.cjs.map +1 -1
  28. package/dist/devtools.js +1 -1
  29. package/dist/form.cjs.map +1 -1
  30. package/dist/form.js +3 -3
  31. package/dist/index.cjs +1239 -255
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +16 -4
  34. package/dist/index.d.ts +16 -4
  35. package/dist/index.js +1113 -150
  36. package/dist/index.js.map +1 -1
  37. package/dist/table.cjs +17 -10
  38. package/dist/table.cjs.map +1 -1
  39. package/dist/table.d.cts +1 -1
  40. package/dist/table.d.ts +1 -1
  41. package/dist/table.js +4 -4
  42. package/dist/tree.cjs +11 -7
  43. package/dist/tree.cjs.map +1 -1
  44. package/dist/tree.js +3 -3
  45. package/dist/virtual.cjs.map +1 -1
  46. package/dist/virtual.js +2 -2
  47. package/package.json +2 -2
  48. package/dist/chunk-45YW5VSP.js.map +0 -1
  49. package/dist/chunk-7AA2JPZB.js.map +0 -1
  50. package/dist/chunk-BNMJSYI2.js.map +0 -1
  51. package/dist/chunk-EFDB2ENB.js.map +0 -1
  52. package/dist/chunk-KGFFQGCM.js.map +0 -1
  53. package/dist/chunk-PEX2UTNG.js.map +0 -1
  54. package/dist/chunk-SEQI65CF.js.map +0 -1
  55. package/dist/chunk-VLRLCHEL.js.map +0 -1
  56. package/dist/chunk-Y6XZ5TLD.js.map +0 -1
  57. package/dist/chunk-ZJC2QUWA.js.map +0 -1
package/dist/table.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AggregateType, C as CellSpan, E as ExpandableConfig, F as FilterDropdownProps, a as FlatRow, G as GroupRow, H as HeaderCell, P as PinnedRowsConfig, R as RowNumberConfig, b as RowSelectionConfig, S as SelectionSummaryAction, c as SummaryCell, T as Table, d as TableColumn, e as TableLocale, f as TableProps, g as TreeConfig, U as UseTableOptions, h as UseTableReturn, u as useTable } from './Table-CMKo6Pc3.cjs';
1
+ export { A as AggregateType, C as CellSpan, E as ExpandableConfig, F as FilterDropdownProps, a as FlatRow, G as GroupRow, H as HeaderCell, P as PinnedRowsConfig, R as RowNumberConfig, b as RowSelectionConfig, S as SelectionSummaryAction, c as SummaryCell, T as Table, d as TableColumn, e as TableLocale, f as TableProps, g as TreeConfig, U as UseTableOptions, h as UseTableReturn, u as useTable } from './Table-Bhlshbs2.cjs';
2
2
  import 'react';
3
3
  import '@skygraph/core';
4
4
  import './common-CdpocIEz.cjs';
package/dist/table.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AggregateType, C as CellSpan, E as ExpandableConfig, F as FilterDropdownProps, a as FlatRow, G as GroupRow, H as HeaderCell, P as PinnedRowsConfig, R as RowNumberConfig, b as RowSelectionConfig, S as SelectionSummaryAction, c as SummaryCell, T as Table, d as TableColumn, e as TableLocale, f as TableProps, g as TreeConfig, U as UseTableOptions, h as UseTableReturn, u as useTable } from './Table-CAay8MmA.js';
1
+ export { A as AggregateType, C as CellSpan, E as ExpandableConfig, F as FilterDropdownProps, a as FlatRow, G as GroupRow, H as HeaderCell, P as PinnedRowsConfig, R as RowNumberConfig, b as RowSelectionConfig, S as SelectionSummaryAction, c as SummaryCell, T as Table, d as TableColumn, e as TableLocale, f as TableProps, g as TreeConfig, U as UseTableOptions, h as UseTableReturn, u as useTable } from './Table-DOGK_njf.js';
2
2
  import 'react';
3
3
  import '@skygraph/core';
4
4
  import './common-CdpocIEz.js';
package/dist/table.js CHANGED
@@ -8,10 +8,10 @@ import {
8
8
  toJSONString,
9
9
  toTSVString,
10
10
  useTable
11
- } from "./chunk-7AA2JPZB.js";
12
- import "./chunk-45YW5VSP.js";
13
- import "./chunk-PEX2UTNG.js";
14
- import "./chunk-VLRLCHEL.js";
11
+ } from "./chunk-G4MRXKGC.js";
12
+ import "./chunk-UCCGEZPJ.js";
13
+ import "./chunk-EA2J67A4.js";
14
+ import "./chunk-YJZKXU5O.js";
15
15
  export {
16
16
  Table,
17
17
  copyToClipboard,
package/dist/tree.cjs CHANGED
@@ -226,12 +226,6 @@ function useTree(options) {
226
226
  ]);
227
227
  }
228
228
 
229
- // src/components/complex/Tree/TreeNodeRow.tsx
230
- var import_react5 = require("react");
231
-
232
- // src/components/ui/Checkbox.tsx
233
- var import_react4 = __toESM(require("react"), 1);
234
-
235
229
  // src/components/ConfigProvider.tsx
236
230
  var import_react2 = require("react");
237
231
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -240,6 +234,12 @@ function useConfig() {
240
234
  return (0, import_react2.useContext)(SgConfigContext);
241
235
  }
242
236
 
237
+ // src/components/complex/Tree/TreeNodeRow.tsx
238
+ var import_react5 = require("react");
239
+
240
+ // src/components/ui/Checkbox.tsx
241
+ var import_react4 = __toESM(require("react"), 1);
242
+
243
243
  // src/components/ui/Spin.tsx
244
244
  var import_react3 = __toESM(require("react"), 1);
245
245
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -800,7 +800,11 @@ function Tree(props) {
800
800
  style,
801
801
  unstyled
802
802
  } = props;
803
- const t = (0, import_react6.useMemo)(() => ({ ...DEFAULT_TREE_LOCALE, ...locale }), [locale]);
803
+ const config = useConfig();
804
+ const t = (0, import_react6.useMemo)(
805
+ () => ({ ...DEFAULT_TREE_LOCALE, ...config.locale?.tree, ...locale }),
806
+ [config.locale?.tree, locale]
807
+ );
804
808
  const showLineConfig = typeof showLine === "object" ? showLine : { showLeafIcon: false };
805
809
  const isShowLine = !!showLine;
806
810
  const {