@gisce/react-ooui 2.71.0-alpha.3 → 2.71.0-alpha.4
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/context/ConfigContext.d.ts.map +1 -1
- package/dist/hooks/useTreeAttributesState.d.ts +4 -1
- package/dist/hooks/useTreeAttributesState.d.ts.map +1 -1
- package/dist/react-ooui.es.js +30 -19
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/views/SearchTreeInfinite.d.ts.map +1 -1
- package/dist/widgets/views/Tree/Paginated/hooks/usePaginatedSearch.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/ConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAEL,MAAM,EACN,OAAO,EAER,MAAM,iCAAiC,CAAC;AAGzC,KAAK,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAaF,eAAO,MAAM,aAAa,oCACsC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,2BAU5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,cAAc,KAAG,OAGhE,CAAC;AAEF,eAAO,MAAM,qBAAqB;YA7CxB,MAAM;;;;eAwDuB,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/ConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAEL,MAAM,EACN,OAAO,EAER,MAAM,iCAAiC,CAAC;AAGzC,KAAK,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAaF,eAAO,MAAM,aAAa,oCACsC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,2BAU5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,cAAc,KAAG,OAGhE,CAAC;AAEF,eAAO,MAAM,qBAAqB;YA7CxB,MAAM;;;;eAwDuB,MAAM,SAAS;8CAwBrD,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Tree as TreeOoui } from "@gisce/ooui";
|
|
3
|
-
|
|
3
|
+
import { InfiniteTableRef } from "@gisce/react-formiga-table";
|
|
4
|
+
export declare function useTreeAttributesState({ tableRef, }?: {
|
|
5
|
+
tableRef?: React.RefObject<InfiniteTableRef>;
|
|
6
|
+
}): {
|
|
4
7
|
colorsForResults: import("react").MutableRefObject<{
|
|
5
8
|
[key: number]: string;
|
|
6
9
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTreeAttributesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeAttributesState.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useTreeAttributesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeAttributesState.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,GACT,GAAE;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACzC;;;;;;;uCASsC,GAAG,YAAY,QAAQ;;EAkClE;AAED,eAAO,MAAM,+BAA+B;;;SAkB3C,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -2012,7 +2012,7 @@ const hn = ({
|
|
|
2012
2012
|
}),
|
|
2013
2013
|
[e, r, o, a, i, l]
|
|
2014
2014
|
);
|
|
2015
|
-
return
|
|
2015
|
+
return /* @__PURE__ */ s(na.Provider, { value: u, children: /* @__PURE__ */ s(
|
|
2016
2016
|
vc,
|
|
2017
2017
|
{
|
|
2018
2018
|
locale: t,
|
|
@@ -6695,27 +6695,34 @@ const ns = () => {
|
|
|
6695
6695
|
};
|
|
6696
6696
|
}, []), e;
|
|
6697
6697
|
};
|
|
6698
|
-
function Za(
|
|
6699
|
-
|
|
6700
|
-
|
|
6698
|
+
function Za({
|
|
6699
|
+
tableRef: e
|
|
6700
|
+
} = {}) {
|
|
6701
|
+
const t = G({}), n = G(), r = D(() => {
|
|
6702
|
+
t.current = {}, n.current = {};
|
|
6701
6703
|
}, []);
|
|
6702
6704
|
return {
|
|
6703
|
-
colorsForResults:
|
|
6704
|
-
statusForResults:
|
|
6705
|
-
updateAttributes: (
|
|
6706
|
-
const
|
|
6707
|
-
if (
|
|
6708
|
-
...
|
|
6709
|
-
...
|
|
6710
|
-
}, !
|
|
6711
|
-
const
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6705
|
+
colorsForResults: t,
|
|
6706
|
+
statusForResults: n,
|
|
6707
|
+
updateAttributes: (a, i) => {
|
|
6708
|
+
const l = An(a);
|
|
6709
|
+
if (t.current = {
|
|
6710
|
+
...t.current,
|
|
6711
|
+
...l
|
|
6712
|
+
}, !n.current && i.status && (n.current = {}), i.status) {
|
|
6713
|
+
const c = mr(a);
|
|
6714
|
+
e != null && e.current && e.current.updateRows(
|
|
6715
|
+
Object.keys(c).map((u) => ({
|
|
6716
|
+
id: parseInt(u),
|
|
6717
|
+
$status: c[u]
|
|
6718
|
+
}))
|
|
6719
|
+
), n.current = {
|
|
6720
|
+
...n.current,
|
|
6721
|
+
...c
|
|
6715
6722
|
};
|
|
6716
6723
|
}
|
|
6717
6724
|
},
|
|
6718
|
-
clearAttributes:
|
|
6725
|
+
clearAttributes: r
|
|
6719
6726
|
};
|
|
6720
6727
|
}
|
|
6721
6728
|
const Wr = ({
|
|
@@ -7138,7 +7145,9 @@ function gh(e, t) {
|
|
|
7138
7145
|
statusForResults: qe,
|
|
7139
7146
|
updateAttributes: Fe,
|
|
7140
7147
|
clearAttributes: ae
|
|
7141
|
-
} = Za(
|
|
7148
|
+
} = Za({
|
|
7149
|
+
tableRef: h
|
|
7150
|
+
}), { clear: De } = el({
|
|
7142
7151
|
model: n,
|
|
7143
7152
|
tableRef: h,
|
|
7144
7153
|
autorefreshableFields: ge == null ? void 0 : ge.autorefreshableFields,
|
|
@@ -8335,7 +8344,9 @@ const il = Rt(wh), Sh = xt, Ch = (e) => {
|
|
|
8335
8344
|
statusForResults: je,
|
|
8336
8345
|
updateAttributes: Te,
|
|
8337
8346
|
clearAttributes: ie
|
|
8338
|
-
} = Za(
|
|
8347
|
+
} = Za({
|
|
8348
|
+
tableRef: l
|
|
8349
|
+
}), {
|
|
8339
8350
|
isFieldLoading: He,
|
|
8340
8351
|
refresh: Le,
|
|
8341
8352
|
addRecordsToCheckFunctionFields: $e,
|