@gisce/react-ooui 2.2.0-alpha.7 → 2.2.0-alpha.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"AttachmentsButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/AttachmentsButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAEX,MAAM,4BAA4B,CAAC;AAIpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,uBAAuB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAgHvD;AAED,eAAe,iBAAiB,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -6793,31 +6793,37 @@ function kc(e) {
|
|
|
6793
6793
|
Je(w);
|
|
6794
6794
|
}
|
|
6795
6795
|
d(!1);
|
|
6796
|
-
}, t), g = fe(
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
if (x
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6796
|
+
}, [t, a]), g = fe(
|
|
6797
|
+
async (w) => {
|
|
6798
|
+
if (w.link) {
|
|
6799
|
+
window.open(w.link);
|
|
6800
|
+
return;
|
|
6801
|
+
}
|
|
6802
|
+
m(!0);
|
|
6803
|
+
let x;
|
|
6804
|
+
try {
|
|
6805
|
+
x = (await E.getHandler().readObjects({
|
|
6806
|
+
model: "ir.attachment",
|
|
6807
|
+
ids: [w.id],
|
|
6808
|
+
context: a.current.getContext()
|
|
6809
|
+
}))[0];
|
|
6810
|
+
} catch (S) {
|
|
6811
|
+
Je(S);
|
|
6812
|
+
}
|
|
6813
|
+
if (m(!1), !!x)
|
|
6814
|
+
if (x.datas) {
|
|
6815
|
+
const S = await Vt(x.datas);
|
|
6816
|
+
pn(x.datas, S.mime);
|
|
6817
|
+
} else
|
|
6818
|
+
s(x);
|
|
6819
|
+
},
|
|
6820
|
+
[a, s]
|
|
6821
|
+
), y = fe(
|
|
6822
|
+
async (w) => {
|
|
6823
|
+
s(w);
|
|
6824
|
+
},
|
|
6825
|
+
[s]
|
|
6826
|
+
);
|
|
6821
6827
|
return pe(() => {
|
|
6822
6828
|
h();
|
|
6823
6829
|
}, [h]), /* @__PURE__ */ k(Q, { children: [
|