@skygraph/react 0.6.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.
- package/README.md +70 -70
- package/dist/{Table-CMKo6Pc3.d.cts → Table-Bhlshbs2.d.cts} +39 -0
- package/dist/{Table-CAay8MmA.d.ts → Table-DOGK_njf.d.ts} +39 -0
- package/dist/{chunk-Y6XZ5TLD.js → chunk-B6BK5B64.js} +3 -3
- package/dist/chunk-B6BK5B64.js.map +1 -0
- package/dist/{chunk-PEX2UTNG.js → chunk-EA2J67A4.js} +2 -2
- package/dist/chunk-EA2J67A4.js.map +1 -0
- package/dist/{chunk-BNMJSYI2.js → chunk-EWUB2QCP.js} +2 -2
- package/dist/chunk-EWUB2QCP.js.map +1 -0
- package/dist/{chunk-7AA2JPZB.js → chunk-G4MRXKGC.js} +21 -14
- package/dist/chunk-G4MRXKGC.js.map +1 -0
- package/dist/{chunk-EFDB2ENB.js → chunk-MTHPDCO3.js} +8 -6
- package/dist/chunk-MTHPDCO3.js.map +1 -0
- package/dist/{chunk-KGFFQGCM.js → chunk-N4S66XHX.js} +8 -4
- package/dist/chunk-N4S66XHX.js.map +1 -0
- package/dist/{chunk-SEQI65CF.js → chunk-U7BXGUMC.js} +1 -1
- package/dist/chunk-U7BXGUMC.js.map +1 -0
- package/dist/{chunk-45YW5VSP.js → chunk-UCCGEZPJ.js} +2 -2
- package/dist/chunk-UCCGEZPJ.js.map +1 -0
- package/dist/{chunk-VLRLCHEL.js → chunk-YJZKXU5O.js} +1 -1
- package/dist/chunk-YJZKXU5O.js.map +1 -0
- package/dist/{chunk-ZJC2QUWA.js → chunk-YWCL3MUL.js} +1 -1
- package/dist/chunk-YWCL3MUL.js.map +1 -0
- package/dist/datagrid.cjs +3 -4
- package/dist/datagrid.cjs.map +1 -1
- package/dist/datagrid.js +4 -4
- package/dist/devtools.cjs.map +1 -1
- package/dist/devtools.js +1 -1
- package/dist/form.cjs.map +1 -1
- package/dist/form.js +3 -3
- package/dist/index.cjs +1239 -255
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -4
- package/dist/index.d.ts +16 -4
- package/dist/index.js +1113 -150
- package/dist/index.js.map +1 -1
- package/dist/table.cjs +17 -10
- package/dist/table.cjs.map +1 -1
- package/dist/table.d.cts +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.js +4 -4
- package/dist/tree.cjs +11 -7
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +3 -3
- package/dist/virtual.cjs.map +1 -1
- package/dist/virtual.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-45YW5VSP.js.map +0 -1
- package/dist/chunk-7AA2JPZB.js.map +0 -1
- package/dist/chunk-BNMJSYI2.js.map +0 -1
- package/dist/chunk-EFDB2ENB.js.map +0 -1
- package/dist/chunk-KGFFQGCM.js.map +0 -1
- package/dist/chunk-PEX2UTNG.js.map +0 -1
- package/dist/chunk-SEQI65CF.js.map +0 -1
- package/dist/chunk-VLRLCHEL.js.map +0 -1
- package/dist/chunk-Y6XZ5TLD.js.map +0 -1
- 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-
|
|
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-
|
|
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-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
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
|
|
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 {
|