@gisce/react-ooui 1.0.17 → 1.0.19
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 +16 -17
- 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/widgets/base/MultiSelection.d.ts.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/MultiSelection.tsx +5 -0
- 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
|
|
@@ -17607,6 +17602,10 @@ const {
|
|
|
17607
17602
|
const g = c.find(([v, x]) => p === x);
|
|
17608
17603
|
return g && g[0];
|
|
17609
17604
|
});
|
|
17605
|
+
if (h.length === 0) {
|
|
17606
|
+
n == null || n(void 0);
|
|
17607
|
+
return;
|
|
17608
|
+
}
|
|
17610
17609
|
n == null || n(h);
|
|
17611
17610
|
}
|
|
17612
17611
|
return /* @__PURE__ */ jsx(u, {
|