@gisce/react-ooui 1.0.19 → 1.0.20

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.
@@ -16216,19 +16216,23 @@ const transformPlainMany2Ones = ({
16216
16216
  row: g,
16217
16217
  numberOfColumns: o,
16218
16218
  mustFillWithEmpties: n
16219
- }), c = c.concat(v)), v.map((x) => (x instanceof Label$1 && x.fieldForLabel && (s = !0), /* @__PURE__ */ jsx("div", {
16220
- style: {
16221
- ...getSpanStyleForItem({
16222
- item: x,
16219
+ }), c = c.concat(v)), v.map((x, I) => {
16220
+ x instanceof Label$1 && x.fieldForLabel && (s = !0);
16221
+ const m = f.indexOf(x);
16222
+ return /* @__PURE__ */ jsx("div", {
16223
+ style: {
16224
+ ...getSpanStyleForItem({
16225
+ item: x,
16226
+ responsiveBehaviour: n
16227
+ }),
16228
+ minWidth: 0
16229
+ },
16230
+ children: createReactWidget({
16231
+ ooui: x,
16223
16232
  responsiveBehaviour: n
16224
- }),
16225
- minWidth: 0
16226
- },
16227
- children: createReactWidget({
16228
- ooui: x,
16229
- responsiveBehaviour: n
16230
- })
16231
- }, x.key)));
16233
+ })
16234
+ }, `${h.toString()}-${m.toString()}`);
16235
+ });
16232
16236
  }), u = r.length === 1 ? getSingleRowTemplateColumns(c, o) : getTemplateColumns(o, s);
16233
16237
  return /* @__PURE__ */ jsx("div", {
16234
16238
  style: {
@@ -17259,6 +17263,7 @@ function Form(e, t) {
17259
17263
  });
17260
17264
  },
17261
17265
  component: !1,
17266
+ preserve: !1,
17262
17267
  children: $ && /* @__PURE__ */ jsx(Container, {
17263
17268
  container: $.container,
17264
17269
  responsiveBehaviour: Z
@@ -18829,9 +18834,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18829
18834
  getContext: k,
18830
18835
  setOriginalValue: $,
18831
18836
  elementHasLostFocus: B
18832
- } = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0], L = t && t[1] || "";
18837
+ } = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0] || void 0, L = t && t[1] || "";
18833
18838
  useEffect(() => {
18834
- !Array.isArray(t) && !isNaN(t) && Y(t);
18839
+ !Array.isArray(t) && t && Y(t);
18835
18840
  }, [t]), useEffect(() => {
18836
18841
  j && L.length === 0 ? Y(j) : j && L.length > 0 ? w(L) : !j && !L && w(O.current || "");
18837
18842
  }, [t]);