@gisce/react-ooui 1.0.7 → 1.0.8
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/dist/react-ooui.es.js +7 -5
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +1 -1
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/widgets/views/SearchTree.d.ts.map +1 -1
- package/dist/widgets/views/Tree.d.ts +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/index.ts +1 -1
- package/src/widgets/views/SearchTree.tsx +6 -3
- package/src/widgets/views/Tree.tsx +6 -4
package/dist/react-ooui.es.js
CHANGED
|
@@ -18295,7 +18295,7 @@ function Tree(e) {
|
|
|
18295
18295
|
const M = getTableItems(O.current, a);
|
|
18296
18296
|
m(M);
|
|
18297
18297
|
}, [a]);
|
|
18298
|
-
const b = (t - 1) * n + 1, T = b - 1 + I.length, F =
|
|
18298
|
+
const b = (t - 1) * n + 1, T = b - 1 + I.length, F = r ? r === 0 ? _("no_results") : _("summary").replace("{from}", b == null ? void 0 : b.toString()).replace("{to}", T == null ? void 0 : T.toString()).replace("{total}", r == null ? void 0 : r.toString()) : null, k = () => !u || o.isExpandable || c ? null : r ? /* @__PURE__ */ jsxs(Row, {
|
|
18299
18299
|
align: "bottom",
|
|
18300
18300
|
className: "pb-4",
|
|
18301
18301
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18312,7 +18312,7 @@ function Tree(e) {
|
|
|
18312
18312
|
className: "text-right",
|
|
18313
18313
|
children: F
|
|
18314
18314
|
})]
|
|
18315
|
-
});
|
|
18315
|
+
}) : /* @__PURE__ */ jsx(Spin, {});
|
|
18316
18316
|
function $() {
|
|
18317
18317
|
var H;
|
|
18318
18318
|
const q = O.current.columns.filter((K) => K.sum !== void 0).map((K) => ({
|
|
@@ -18382,7 +18382,7 @@ function SearchTree(e, t) {
|
|
|
18382
18382
|
rootTree: f = !1,
|
|
18383
18383
|
parentContext: h = {},
|
|
18384
18384
|
onChangeSelectedRowKeys: p
|
|
18385
|
-
} = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [$, D] = useState(0), [P, M] = useState(DEFAULT_SEARCH_LIMIT$1), [q, j] = useState(), L = useRef([]), [H, K] = useState(
|
|
18385
|
+
} = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [$, D] = useState(0), [P, M] = useState(DEFAULT_SEARCH_LIMIT$1), [q, j] = useState(), L = useRef([]), [H, K] = useState(), [G, z] = useState([]), [V, U] = useState(void 0), [Y, B] = useState(!1), [A, N] = useState(), [Z, Q] = useState(), [E, S] = useState(!1), W = useRef([]), [X, ne] = useState(200), ee = useRef([]), oe = useRef(), {
|
|
18386
18386
|
height: le
|
|
18387
18387
|
} = useWindowDimensions(), ue = useContext(ActionViewContext), {
|
|
18388
18388
|
setResults: se = void 0,
|
|
@@ -18481,7 +18481,7 @@ function SearchTree(e, t) {
|
|
|
18481
18481
|
colors: be
|
|
18482
18482
|
}
|
|
18483
18483
|
});
|
|
18484
|
-
|
|
18484
|
+
U(getColorMap(te)), ee.current = [...J];
|
|
18485
18485
|
const ae = Ee !== void 0 ? sortResults({
|
|
18486
18486
|
resultsToSort: J,
|
|
18487
18487
|
sorter: Ee,
|
|
@@ -18490,7 +18490,9 @@ function SearchTree(e, t) {
|
|
|
18490
18490
|
...b.fields
|
|
18491
18491
|
}
|
|
18492
18492
|
}) : [...ee.current];
|
|
18493
|
-
if (
|
|
18493
|
+
if (ke.then((pe) => {
|
|
18494
|
+
K(pe), de == null || de(pe);
|
|
18495
|
+
}), Re(ae), Te && ae.length > 0) {
|
|
18494
18496
|
const pe = ae.findIndex((Oe) => Ie === Oe.id);
|
|
18495
18497
|
pe === -1 ? fe == null || fe(0) : fe == null || fe(pe);
|
|
18496
18498
|
} else
|