@gisce/react-ooui 2.2.0-alpha.5 → 2.2.0-alpha.6
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":"useExport.d.ts","sourceRoot":"","sources":["../../src/hooks/useExport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,iCAAiC,CAAC;AAMzC,eAAO,MAAM,SAAS;WAQb,MAAM;aACJ,GAAG;;YAEJ,GAAG,EAAE;;aAEJ,MAAM,IAAI;;;;;;;;;4BA4DL,MAAM;;;;;;;wBArDF,aAAa;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../src/hooks/useExport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,iCAAiC,CAAC;AAMzC,eAAO,MAAM,SAAS;WAQb,MAAM;aACJ,GAAG;;YAEJ,GAAG,EAAE;;aAEJ,MAAM,IAAI;;;;;;;;;4BA4DL,MAAM;;;;;;;wBArDF,aAAa;;;;;;;;;;;;sCA6Ib,gBAAgB;;;;;wCA5BhB,gBAAgB;CAuEnC,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -6103,7 +6103,7 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6103
6103
|
const S = await Vt(x);
|
|
6104
6104
|
pn(x, S.mime);
|
|
6105
6105
|
},
|
|
6106
|
-
[
|
|
6106
|
+
[i, n, e, o, t, s, d]
|
|
6107
6107
|
), f = fe(async () => {
|
|
6108
6108
|
const y = await E.getHandler().getFields({
|
|
6109
6109
|
model: e,
|
|
@@ -6128,7 +6128,7 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6128
6128
|
parentKey: y
|
|
6129
6129
|
});
|
|
6130
6130
|
},
|
|
6131
|
-
[
|
|
6131
|
+
[t]
|
|
6132
6132
|
), m = fe(async () => {
|
|
6133
6133
|
const y = await hc({ model: e, context: t }), w = await gc({
|
|
6134
6134
|
predefinedExports: y,
|
|
@@ -6148,9 +6148,30 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6148
6148
|
})),
|
|
6149
6149
|
keysWithChilds: w
|
|
6150
6150
|
};
|
|
6151
|
-
}, [
|
|
6151
|
+
}, [t, e, c]), p = fe(
|
|
6152
6152
|
async (y) => {
|
|
6153
|
-
|
|
6153
|
+
await E.getHandler().deleteObjects({
|
|
6154
|
+
model: "ir.exports",
|
|
6155
|
+
ids: [y.id],
|
|
6156
|
+
context: t
|
|
6157
|
+
});
|
|
6158
|
+
},
|
|
6159
|
+
[t]
|
|
6160
|
+
), h = fe(
|
|
6161
|
+
async (y) => {
|
|
6162
|
+
if (l.current.has(y))
|
|
6163
|
+
return l.current.get(y);
|
|
6164
|
+
const w = E.getHandler().getFields({
|
|
6165
|
+
model: y,
|
|
6166
|
+
context: t,
|
|
6167
|
+
fields: []
|
|
6168
|
+
});
|
|
6169
|
+
l.current.set(y, w);
|
|
6170
|
+
},
|
|
6171
|
+
[l, t]
|
|
6172
|
+
), g = fe(
|
|
6173
|
+
async (y) => {
|
|
6174
|
+
const w = await h("ir.exports"), x = await h("ir.exports.line"), S = await E.getHandler().create({
|
|
6154
6175
|
model: "ir.exports",
|
|
6155
6176
|
values: {
|
|
6156
6177
|
name: y.name,
|
|
@@ -6171,36 +6192,15 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6171
6192
|
}))
|
|
6172
6193
|
), { ...y, id: S };
|
|
6173
6194
|
},
|
|
6174
|
-
[]
|
|
6175
|
-
), h = fe(
|
|
6176
|
-
async (y) => {
|
|
6177
|
-
await E.getHandler().deleteObjects({
|
|
6178
|
-
model: "ir.exports",
|
|
6179
|
-
ids: [y.id],
|
|
6180
|
-
context: t
|
|
6181
|
-
});
|
|
6182
|
-
},
|
|
6183
|
-
[]
|
|
6184
|
-
), g = fe(
|
|
6185
|
-
async (y) => {
|
|
6186
|
-
if (l.current.has(y))
|
|
6187
|
-
return l.current.get(y);
|
|
6188
|
-
const w = E.getHandler().getFields({
|
|
6189
|
-
model: y,
|
|
6190
|
-
context: t,
|
|
6191
|
-
fields: []
|
|
6192
|
-
});
|
|
6193
|
-
l.current.set(y, w);
|
|
6194
|
-
},
|
|
6195
|
-
[l, t]
|
|
6195
|
+
[t, h, e]
|
|
6196
6196
|
);
|
|
6197
6197
|
return {
|
|
6198
6198
|
onGetFields: f,
|
|
6199
6199
|
onGetFieldChilds: c,
|
|
6200
6200
|
onExport: u,
|
|
6201
6201
|
onGetPredefinedExports: m,
|
|
6202
|
-
onSavePredefinedExport:
|
|
6203
|
-
onRemovePredefinedExport:
|
|
6202
|
+
onSavePredefinedExport: g,
|
|
6203
|
+
onRemovePredefinedExport: p
|
|
6204
6204
|
};
|
|
6205
6205
|
}, Or = ({
|
|
6206
6206
|
fields: e,
|