@gisce/react-ooui 2.24.0-alpha.1 → 2.24.0-alpha.3
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 +23 -12
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -1
- package/dist/widgets/custom/Comments.d.ts +6 -1
- package/dist/widgets/custom/Comments.d.ts.map +1 -1
- package/dist/widgets/views/SearchTreeInfinite.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/react-ooui.es.js
CHANGED
|
@@ -11207,7 +11207,7 @@ function hh(e, t) {
|
|
|
11207
11207
|
ft(t, () => ({
|
|
11208
11208
|
refreshResults: () => {
|
|
11209
11209
|
var ie;
|
|
11210
|
-
(ie = m == null ? void 0 : m.current) == null || ie.refresh();
|
|
11210
|
+
je.current = void 0, (ie = m == null ? void 0 : m.current) == null || ie.refresh();
|
|
11211
11211
|
},
|
|
11212
11212
|
getFields: () => S == null ? void 0 : S.fields,
|
|
11213
11213
|
getDomain: () => a
|
|
@@ -11237,7 +11237,7 @@ function hh(e, t) {
|
|
|
11237
11237
|
} = Jc(c), ee = d || Z;
|
|
11238
11238
|
he(() => {
|
|
11239
11239
|
var ie, K;
|
|
11240
|
-
_ == null || _([]), B == null || B([]), $ == null || $({}), (ie = m.current) == null || ie.unselectAll(), (K = m.current) == null || K.refresh();
|
|
11240
|
+
_ == null || _([]), B == null || B([]), $ == null || $({}), (ie = m.current) == null || ie.unselectAll(), je.current = void 0, (K = m.current) == null || K.refresh();
|
|
11241
11241
|
}, [ee]);
|
|
11242
11242
|
const X = be(() => {
|
|
11243
11243
|
if (S)
|
|
@@ -11454,7 +11454,7 @@ function hh(e, t) {
|
|
|
11454
11454
|
j,
|
|
11455
11455
|
Oe.current
|
|
11456
11456
|
), K = _e.current && !V;
|
|
11457
|
-
ie && K && ((pe = m.current) == null || pe.refresh()), Oe.current = j, _e.current = V;
|
|
11457
|
+
ie && K && (je.current = void 0, (pe = m.current) == null || pe.refresh()), Oe.current = j, _e.current = V;
|
|
11458
11458
|
}, [j, V]), /* @__PURE__ */ D(qt, { children: [
|
|
11459
11459
|
/* @__PURE__ */ i(
|
|
11460
11460
|
im,
|
|
@@ -12596,21 +12596,32 @@ const Kh = (e) => {
|
|
|
12596
12596
|
/* @__PURE__ */ i(Uh, { children: /* @__PURE__ */ i(Gh, { text: t.text }) })
|
|
12597
12597
|
] }, t.id);
|
|
12598
12598
|
}, qh = (e) => {
|
|
12599
|
-
const { value: t } = e,
|
|
12600
|
-
if (
|
|
12599
|
+
const { value: t, ooui: n } = e, r = (t || []).map((o) => {
|
|
12600
|
+
if (o.type === "action")
|
|
12601
12601
|
return {
|
|
12602
|
-
children: `${
|
|
12602
|
+
children: `${o.event.date} - ${o.event.action}`
|
|
12603
12603
|
};
|
|
12604
|
-
if (
|
|
12604
|
+
if (o.type === "comment")
|
|
12605
12605
|
return {
|
|
12606
12606
|
color: "gray",
|
|
12607
|
-
position:
|
|
12608
|
-
label:
|
|
12609
|
-
children: /* @__PURE__ */ i(Kh, { data:
|
|
12607
|
+
position: o.event.isSender ? "left" : "right",
|
|
12608
|
+
label: o.event.date,
|
|
12609
|
+
children: /* @__PURE__ */ i(Kh, { data: o.event })
|
|
12610
12610
|
};
|
|
12611
12611
|
});
|
|
12612
|
-
return /* @__PURE__ */ i(
|
|
12613
|
-
|
|
12612
|
+
return /* @__PURE__ */ i(
|
|
12613
|
+
gr,
|
|
12614
|
+
{
|
|
12615
|
+
mode: "alternate",
|
|
12616
|
+
items: r,
|
|
12617
|
+
style: {
|
|
12618
|
+
height: n.height ? n.height + "px" : "100%",
|
|
12619
|
+
overflowX: "hidden",
|
|
12620
|
+
overflowY: "auto"
|
|
12621
|
+
}
|
|
12622
|
+
}
|
|
12623
|
+
);
|
|
12624
|
+
}, Yh = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(qh, { ooui: e.ooui }) }), zh = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(sl, {}) }), Jh = (e) => {
|
|
12614
12625
|
const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
|
|
12615
12626
|
function a(l) {
|
|
12616
12627
|
if (l) {
|