@gisce/react-ooui 1.0.20 → 1.0.21
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 +14 -19
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +2 -2
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/containers/Container.d.ts.map +1 -1
- package/dist/widgets/views/Form.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/stories/forms/ActivacioContracteForm.stories.tsx +25 -0
- package/src/stories/mocks/index.ts +2 -0
- package/src/stories/mocks/models/activacioContracte.ts +112 -0
- package/src/widgets/base/many2one/Many2one.tsx +2 -2
- package/src/widgets/containers/Container.tsx +2 -4
- package/src/widgets/views/Form.tsx +0 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -16216,23 +16216,19 @@ const transformPlainMany2Ones = ({
|
|
|
16216
16216
|
row: g,
|
|
16217
16217
|
numberOfColumns: o,
|
|
16218
16218
|
mustFillWithEmpties: n
|
|
16219
|
-
}), c = c.concat(v)), v.map((x
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
style: {
|
|
16224
|
-
...getSpanStyleForItem({
|
|
16225
|
-
item: x,
|
|
16226
|
-
responsiveBehaviour: n
|
|
16227
|
-
}),
|
|
16228
|
-
minWidth: 0
|
|
16229
|
-
},
|
|
16230
|
-
children: createReactWidget({
|
|
16231
|
-
ooui: x,
|
|
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,
|
|
16232
16223
|
responsiveBehaviour: n
|
|
16233
|
-
})
|
|
16234
|
-
|
|
16235
|
-
|
|
16224
|
+
}),
|
|
16225
|
+
minWidth: 0
|
|
16226
|
+
},
|
|
16227
|
+
children: createReactWidget({
|
|
16228
|
+
ooui: x,
|
|
16229
|
+
responsiveBehaviour: n
|
|
16230
|
+
})
|
|
16231
|
+
}, x.key)));
|
|
16236
16232
|
}), u = r.length === 1 ? getSingleRowTemplateColumns(c, o) : getTemplateColumns(o, s);
|
|
16237
16233
|
return /* @__PURE__ */ jsx("div", {
|
|
16238
16234
|
style: {
|
|
@@ -17263,7 +17259,6 @@ function Form(e, t) {
|
|
|
17263
17259
|
});
|
|
17264
17260
|
},
|
|
17265
17261
|
component: !1,
|
|
17266
|
-
preserve: !1,
|
|
17267
17262
|
children: $ && /* @__PURE__ */ jsx(Container, {
|
|
17268
17263
|
container: $.container,
|
|
17269
17264
|
responsiveBehaviour: Z
|
|
@@ -18834,9 +18829,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18834
18829
|
getContext: k,
|
|
18835
18830
|
setOriginalValue: $,
|
|
18836
18831
|
elementHasLostFocus: B
|
|
18837
|
-
} = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0]
|
|
18832
|
+
} = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0], L = t && t[1] || "";
|
|
18838
18833
|
useEffect(() => {
|
|
18839
|
-
!Array.isArray(t) && t && Y(t);
|
|
18834
|
+
!Array.isArray(t) && !isNaN(t) && Y(t);
|
|
18840
18835
|
}, [t]), useEffect(() => {
|
|
18841
18836
|
j && L.length === 0 ? Y(j) : j && L.length > 0 ? w(L) : !j && !L && w(O.current || "");
|
|
18842
18837
|
}, [t]);
|