@gisce/react-ooui 1.4.4-rc.0 → 1.4.5-rc.0
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/context/ContentRootContext.d.ts.map +1 -1
- package/dist/helpers/formHelper.d.ts +1 -0
- package/dist/helpers/formHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +417 -407
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +8 -8
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/context/ContentRootContext.tsx +4 -2
- package/src/helpers/formHelper.ts +5 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -1900,7 +1900,7 @@ const Mt = ({
|
|
|
1900
1900
|
r += ("00" + i.toString(16)).slice(-2);
|
|
1901
1901
|
}
|
|
1902
1902
|
return r;
|
|
1903
|
-
}, Pa = (e) => /* @__PURE__ */ n(ve, {
|
|
1903
|
+
}, Pa = (e, t) => e.replace(/\{([^}]+)\}/g, (r, i) => t[i] !== void 0 ? t[i] : r), Ha = (e) => /* @__PURE__ */ n(ve, {
|
|
1904
1904
|
...e,
|
|
1905
1905
|
children: /* @__PURE__ */ n(uo, {
|
|
1906
1906
|
...e
|
|
@@ -1933,18 +1933,18 @@ const Mt = ({
|
|
|
1933
1933
|
color: t,
|
|
1934
1934
|
children: e.children
|
|
1935
1935
|
});
|
|
1936
|
-
},
|
|
1936
|
+
}, Ba = (e) => {
|
|
1937
1937
|
const {
|
|
1938
1938
|
ooui: t
|
|
1939
1939
|
} = e;
|
|
1940
1940
|
return /* @__PURE__ */ n(ve, {
|
|
1941
1941
|
type: "array",
|
|
1942
1942
|
...e,
|
|
1943
|
-
children: /* @__PURE__ */ n(
|
|
1943
|
+
children: /* @__PURE__ */ n(ja, {
|
|
1944
1944
|
ooui: t
|
|
1945
1945
|
})
|
|
1946
1946
|
});
|
|
1947
|
-
},
|
|
1947
|
+
}, ja = (e) => {
|
|
1948
1948
|
const {
|
|
1949
1949
|
value: t,
|
|
1950
1950
|
ooui: r,
|
|
@@ -2062,14 +2062,14 @@ const Mt = ({
|
|
|
2062
2062
|
})
|
|
2063
2063
|
})
|
|
2064
2064
|
});
|
|
2065
|
-
},
|
|
2065
|
+
}, Ka = (e) => {
|
|
2066
2066
|
switch (e) {
|
|
2067
2067
|
case "form":
|
|
2068
2068
|
return Ut;
|
|
2069
2069
|
case "tree":
|
|
2070
2070
|
return pn;
|
|
2071
2071
|
case "notebook":
|
|
2072
|
-
return
|
|
2072
|
+
return Hc;
|
|
2073
2073
|
case "group":
|
|
2074
2074
|
return Do;
|
|
2075
2075
|
case "label":
|
|
@@ -2077,7 +2077,7 @@ const Mt = ({
|
|
|
2077
2077
|
case "char":
|
|
2078
2078
|
return Qr;
|
|
2079
2079
|
case "text":
|
|
2080
|
-
return
|
|
2080
|
+
return jc;
|
|
2081
2081
|
case "button":
|
|
2082
2082
|
return Jr;
|
|
2083
2083
|
case "buttonGroup":
|
|
@@ -2085,7 +2085,7 @@ const Mt = ({
|
|
|
2085
2085
|
case "selection":
|
|
2086
2086
|
return eo;
|
|
2087
2087
|
case "many2one":
|
|
2088
|
-
return
|
|
2088
|
+
return ac;
|
|
2089
2089
|
case "boolean":
|
|
2090
2090
|
return ws;
|
|
2091
2091
|
case "integer":
|
|
@@ -2093,31 +2093,31 @@ const Mt = ({
|
|
|
2093
2093
|
case "float":
|
|
2094
2094
|
return po;
|
|
2095
2095
|
case "progressbar":
|
|
2096
|
-
return
|
|
2096
|
+
return $l;
|
|
2097
2097
|
case "date":
|
|
2098
|
-
return Qc;
|
|
2099
|
-
case "datetime":
|
|
2100
2098
|
return ed;
|
|
2099
|
+
case "datetime":
|
|
2100
|
+
return td;
|
|
2101
2101
|
case "time":
|
|
2102
|
-
return
|
|
2102
|
+
return rd;
|
|
2103
2103
|
case "one2many":
|
|
2104
2104
|
case "one2many_list":
|
|
2105
2105
|
case "many2many":
|
|
2106
|
-
return
|
|
2106
|
+
return Ec;
|
|
2107
2107
|
case "separator":
|
|
2108
|
-
return
|
|
2108
|
+
return Yc;
|
|
2109
2109
|
case "reference":
|
|
2110
|
-
return
|
|
2110
|
+
return id;
|
|
2111
2111
|
case "binary":
|
|
2112
|
-
return
|
|
2112
|
+
return ld;
|
|
2113
2113
|
case "image":
|
|
2114
2114
|
return Ca;
|
|
2115
2115
|
case "url":
|
|
2116
|
-
return gd;
|
|
2117
|
-
case "email":
|
|
2118
2116
|
return yd;
|
|
2117
|
+
case "email":
|
|
2118
|
+
return vd;
|
|
2119
2119
|
case "float_time":
|
|
2120
|
-
return
|
|
2120
|
+
return Lc;
|
|
2121
2121
|
case "fiber_grid":
|
|
2122
2122
|
return Ta;
|
|
2123
2123
|
case "timeline":
|
|
@@ -2125,37 +2125,37 @@ const Mt = ({
|
|
|
2125
2125
|
case "indicator":
|
|
2126
2126
|
return Ra;
|
|
2127
2127
|
case "tags":
|
|
2128
|
-
return
|
|
2128
|
+
return Ba;
|
|
2129
2129
|
case "tag":
|
|
2130
|
-
return
|
|
2130
|
+
return Ha;
|
|
2131
2131
|
case "multicheckbox":
|
|
2132
|
-
return
|
|
2132
|
+
return Gd;
|
|
2133
2133
|
case "markdown":
|
|
2134
|
-
return
|
|
2134
|
+
return zd;
|
|
2135
2135
|
case "radio":
|
|
2136
|
-
return
|
|
2136
|
+
return Zd;
|
|
2137
2137
|
case "switch":
|
|
2138
|
-
return
|
|
2138
|
+
return Qd;
|
|
2139
2139
|
case "steps":
|
|
2140
|
-
return
|
|
2140
|
+
return tu;
|
|
2141
2141
|
case "codeeditor":
|
|
2142
|
-
return
|
|
2142
|
+
return ru;
|
|
2143
2143
|
default:
|
|
2144
2144
|
return;
|
|
2145
2145
|
}
|
|
2146
|
-
},
|
|
2146
|
+
}, Ya = (e) => {
|
|
2147
2147
|
const {
|
|
2148
2148
|
ooui: t
|
|
2149
2149
|
} = e, {
|
|
2150
2150
|
type: r
|
|
2151
|
-
} = t, i =
|
|
2151
|
+
} = t, i = Ka(r);
|
|
2152
2152
|
return i ? Je.createElement(i, e) : null;
|
|
2153
|
-
},
|
|
2153
|
+
}, Wa = ({
|
|
2154
2154
|
item: e,
|
|
2155
2155
|
responsiveBehaviour: t
|
|
2156
2156
|
}) => ({
|
|
2157
2157
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
2158
|
-
}),
|
|
2158
|
+
}), Ua = ({
|
|
2159
2159
|
row: e,
|
|
2160
2160
|
mustFillWithEmpties: t,
|
|
2161
2161
|
numberOfColumns: r
|
|
@@ -2174,10 +2174,10 @@ const Mt = ({
|
|
|
2174
2174
|
i.push(new At({ string: "" }));
|
|
2175
2175
|
}
|
|
2176
2176
|
}), i;
|
|
2177
|
-
},
|
|
2177
|
+
}, Ga = ({
|
|
2178
2178
|
row: e,
|
|
2179
2179
|
numberOfColumns: t
|
|
2180
|
-
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)),
|
|
2180
|
+
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), qa = (e, t) => {
|
|
2181
2181
|
const r = e.map((i) => i instanceof At && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
|
|
2182
2182
|
if (r.length < t) {
|
|
2183
2183
|
const i = t - r.length;
|
|
@@ -2185,13 +2185,13 @@ const Mt = ({
|
|
|
2185
2185
|
r.push("1fr");
|
|
2186
2186
|
}
|
|
2187
2187
|
return r.join(" ");
|
|
2188
|
-
},
|
|
2188
|
+
}, za = (e, t) => {
|
|
2189
2189
|
const r = t ? "1fr" : "auto", i = "auto";
|
|
2190
2190
|
let o = "";
|
|
2191
2191
|
for (let s = 0; s < e; s++)
|
|
2192
2192
|
o += s % 2 ? r : i, s + 1 < e && (o += " ");
|
|
2193
2193
|
return o;
|
|
2194
|
-
},
|
|
2194
|
+
}, Ja = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Vn = (e) => {
|
|
2195
2195
|
const {
|
|
2196
2196
|
container: t,
|
|
2197
2197
|
responsiveBehaviour: r
|
|
@@ -2201,33 +2201,33 @@ const Mt = ({
|
|
|
2201
2201
|
let {
|
|
2202
2202
|
columns: o
|
|
2203
2203
|
} = t;
|
|
2204
|
-
const s =
|
|
2204
|
+
const s = Ja(i);
|
|
2205
2205
|
s < o && (o = s);
|
|
2206
2206
|
let a = !1, l = [];
|
|
2207
2207
|
const u = i.map((d, m) => {
|
|
2208
|
-
const v = d.filter((g) => !g.invisible), p =
|
|
2208
|
+
const v = d.filter((g) => !g.invisible), p = Ga({
|
|
2209
2209
|
row: v,
|
|
2210
2210
|
numberOfColumns: o
|
|
2211
2211
|
});
|
|
2212
2212
|
let h = p;
|
|
2213
|
-
return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h =
|
|
2213
|
+
return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h = Ua({
|
|
2214
2214
|
row: p,
|
|
2215
2215
|
numberOfColumns: o,
|
|
2216
2216
|
mustFillWithEmpties: r
|
|
2217
2217
|
}), l = l.concat(h)), h.map((g) => (g instanceof At && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2218
2218
|
style: {
|
|
2219
|
-
...
|
|
2219
|
+
...Wa({
|
|
2220
2220
|
item: g,
|
|
2221
2221
|
responsiveBehaviour: r
|
|
2222
2222
|
}),
|
|
2223
2223
|
minWidth: 0
|
|
2224
2224
|
},
|
|
2225
|
-
children:
|
|
2225
|
+
children: Ya({
|
|
2226
2226
|
ooui: g,
|
|
2227
2227
|
responsiveBehaviour: r
|
|
2228
2228
|
})
|
|
2229
2229
|
}, g.key)));
|
|
2230
|
-
}), c = i.length === 1 ?
|
|
2230
|
+
}), c = i.length === 1 ? qa(l, o) : za(o, a);
|
|
2231
2231
|
return /* @__PURE__ */ n("div", {
|
|
2232
2232
|
style: {
|
|
2233
2233
|
display: "grid",
|
|
@@ -2239,13 +2239,13 @@ const Mt = ({
|
|
|
2239
2239
|
children: u
|
|
2240
2240
|
});
|
|
2241
2241
|
}, {
|
|
2242
|
-
confirm:
|
|
2242
|
+
confirm: Za
|
|
2243
2243
|
} = Ge, Wt = ({
|
|
2244
2244
|
onOk: e,
|
|
2245
2245
|
onCancel: t,
|
|
2246
2246
|
lang: r
|
|
2247
2247
|
}) => {
|
|
2248
|
-
|
|
2248
|
+
Za({
|
|
2249
2249
|
title: Oe("unsavedChanges", r),
|
|
2250
2250
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
2251
2251
|
centered: !0,
|
|
@@ -2256,25 +2256,25 @@ const Mt = ({
|
|
|
2256
2256
|
cancelText: Oe("cancel", r)
|
|
2257
2257
|
});
|
|
2258
2258
|
}, {
|
|
2259
|
-
error:
|
|
2259
|
+
error: Xa
|
|
2260
2260
|
} = Ge, vr = (e) => {
|
|
2261
|
-
|
|
2261
|
+
Xa({
|
|
2262
2262
|
title: Oe("formHasErrors", e),
|
|
2263
2263
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
2264
2264
|
centered: !0,
|
|
2265
2265
|
content: Oe("fillRequiredFields", e)
|
|
2266
2266
|
});
|
|
2267
2267
|
}, {
|
|
2268
|
-
warning:
|
|
2269
|
-
} = Ge,
|
|
2270
|
-
|
|
2268
|
+
warning: Qa
|
|
2269
|
+
} = Ge, el = (e, t, r) => {
|
|
2270
|
+
Qa({
|
|
2271
2271
|
title: e,
|
|
2272
2272
|
icon: /* @__PURE__ */ n(Nr, {}),
|
|
2273
2273
|
centered: !0,
|
|
2274
2274
|
content: t,
|
|
2275
2275
|
onOk: r
|
|
2276
2276
|
});
|
|
2277
|
-
}, mo = Je.createContext(null),
|
|
2277
|
+
}, mo = Je.createContext(null), tl = (e) => {
|
|
2278
2278
|
const {
|
|
2279
2279
|
children: t,
|
|
2280
2280
|
setTitle: r
|
|
@@ -2285,12 +2285,12 @@ const Mt = ({
|
|
|
2285
2285
|
},
|
|
2286
2286
|
children: t
|
|
2287
2287
|
});
|
|
2288
|
-
}, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e,
|
|
2289
|
-
const r =
|
|
2288
|
+
}, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, nl = (e, t) => {
|
|
2289
|
+
const r = ll(e), i = sl(r), o = al(i, t);
|
|
2290
2290
|
return [
|
|
2291
|
-
...Object.keys(o).map((l) =>
|
|
2291
|
+
...Object.keys(o).map((l) => rl(l, o[l], t))
|
|
2292
2292
|
].reduce((l, u) => Array.isArray(u[0]) ? l.concat(u) : [...l, u], []);
|
|
2293
|
-
},
|
|
2293
|
+
}, rl = (e, t, r) => {
|
|
2294
2294
|
var s;
|
|
2295
2295
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
2296
2296
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -2312,14 +2312,14 @@ const Mt = ({
|
|
|
2312
2312
|
(a) => wr(a)
|
|
2313
2313
|
)
|
|
2314
2314
|
] : [e, "=", wr(t)];
|
|
2315
|
-
},
|
|
2315
|
+
}, ol = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), il = (e) => {
|
|
2316
2316
|
const t = { ...e };
|
|
2317
2317
|
return Object.keys(t).forEach(
|
|
2318
2318
|
(r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
|
|
2319
2319
|
), t;
|
|
2320
|
-
},
|
|
2321
|
-
const t = { ...
|
|
2322
|
-
return
|
|
2320
|
+
}, sl = (e) => {
|
|
2321
|
+
const t = { ...il(e) };
|
|
2322
|
+
return ol(e).forEach((i) => {
|
|
2323
2323
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
2324
2324
|
let u, c;
|
|
2325
2325
|
if (o[0] !== null && (u = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -2332,7 +2332,7 @@ const Mt = ({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
t[s + "#datetime"] = [u, c];
|
|
2334
2334
|
}), t;
|
|
2335
|
-
},
|
|
2335
|
+
}, al = (e, t) => {
|
|
2336
2336
|
const r = Object.keys(e).filter((o) => {
|
|
2337
2337
|
const s = t.findById(o);
|
|
2338
2338
|
return s && s.type === "date";
|
|
@@ -2341,18 +2341,18 @@ const Mt = ({
|
|
|
2341
2341
|
return r.forEach((o) => {
|
|
2342
2342
|
delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
|
|
2343
2343
|
}), i;
|
|
2344
|
-
},
|
|
2344
|
+
}, ll = (e) => {
|
|
2345
2345
|
const t = { ...e };
|
|
2346
2346
|
return Object.keys(t).forEach(
|
|
2347
2347
|
(r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
|
|
2348
2348
|
), t;
|
|
2349
|
-
},
|
|
2349
|
+
}, cl = (e) => {
|
|
2350
2350
|
const t = {};
|
|
2351
2351
|
return e.forEach((r) => {
|
|
2352
2352
|
Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
|
|
2353
2353
|
}), Object.keys(t);
|
|
2354
2354
|
}, hn = (e, t) => {
|
|
2355
|
-
const r = [...e], i =
|
|
2355
|
+
const r = [...e], i = cl(e);
|
|
2356
2356
|
return t.forEach((o) => {
|
|
2357
2357
|
Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
|
|
2358
2358
|
}), r;
|
|
@@ -2581,7 +2581,7 @@ const Mt = ({
|
|
|
2581
2581
|
statusForResults: U,
|
|
2582
2582
|
totalItems: N
|
|
2583
2583
|
};
|
|
2584
|
-
}, Qe = Je.createContext(null),
|
|
2584
|
+
}, Qe = Je.createContext(null), dl = (e) => {
|
|
2585
2585
|
const {
|
|
2586
2586
|
children: t,
|
|
2587
2587
|
currentView: r,
|
|
@@ -2678,7 +2678,7 @@ const Mt = ({
|
|
|
2678
2678
|
},
|
|
2679
2679
|
children: t
|
|
2680
2680
|
});
|
|
2681
|
-
}, st = Je.createContext(null),
|
|
2681
|
+
}, st = Je.createContext(null), ul = (e) => {
|
|
2682
2682
|
const {
|
|
2683
2683
|
children: t,
|
|
2684
2684
|
openAction: r,
|
|
@@ -2711,7 +2711,7 @@ const Mt = ({
|
|
|
2711
2711
|
var t;
|
|
2712
2712
|
for (let r = 0; r < e.length; r++)
|
|
2713
2713
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2714
|
-
},
|
|
2714
|
+
}, fl = (e, t) => {
|
|
2715
2715
|
const {
|
|
2716
2716
|
children: r,
|
|
2717
2717
|
globalValues: i = {}
|
|
@@ -2794,17 +2794,27 @@ const Mt = ({
|
|
|
2794
2794
|
const {
|
|
2795
2795
|
type: $
|
|
2796
2796
|
} = E;
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2797
|
+
if (f.current.push(x), $ === "ir.actions.report.xml")
|
|
2798
|
+
return await g({
|
|
2799
|
+
reportData: E,
|
|
2800
|
+
fields: b,
|
|
2801
|
+
values: C,
|
|
2802
|
+
context: S
|
|
2803
|
+
});
|
|
2804
|
+
if ($ === "ir.actions.act_window")
|
|
2805
|
+
return await I({
|
|
2806
|
+
actionData: E,
|
|
2807
|
+
fields: b,
|
|
2808
|
+
values: C,
|
|
2809
|
+
context: S
|
|
2810
|
+
});
|
|
2811
|
+
if ($ === "ir.actions.act_url")
|
|
2812
|
+
window.open(Pa(E.url, {
|
|
2813
|
+
...C,
|
|
2814
|
+
context: S
|
|
2815
|
+
}), "_blank");
|
|
2816
|
+
else
|
|
2817
|
+
return Ue(`${$} action not supported`), {};
|
|
2808
2818
|
}
|
|
2809
2819
|
async function I({
|
|
2810
2820
|
actionData: E,
|
|
@@ -2859,7 +2869,7 @@ const Mt = ({
|
|
|
2859
2869
|
const {
|
|
2860
2870
|
initialView: M,
|
|
2861
2871
|
views: _
|
|
2862
|
-
} = await
|
|
2872
|
+
} = await ml({
|
|
2863
2873
|
model: x.res_model,
|
|
2864
2874
|
context: R,
|
|
2865
2875
|
view_mode: x.view_mode,
|
|
@@ -2971,7 +2981,7 @@ const Mt = ({
|
|
|
2971
2981
|
})
|
|
2972
2982
|
});
|
|
2973
2983
|
};
|
|
2974
|
-
async function
|
|
2984
|
+
async function ml({
|
|
2975
2985
|
views: e,
|
|
2976
2986
|
view_mode: t,
|
|
2977
2987
|
model: r,
|
|
@@ -3024,7 +3034,7 @@ async function fl({
|
|
|
3024
3034
|
initialView: a
|
|
3025
3035
|
};
|
|
3026
3036
|
}
|
|
3027
|
-
const
|
|
3037
|
+
const hl = bt(fl), pl = ({
|
|
3028
3038
|
error: e,
|
|
3029
3039
|
className: t
|
|
3030
3040
|
}) => {
|
|
@@ -3048,8 +3058,8 @@ const ml = bt(ul), hl = ({
|
|
|
3048
3058
|
type: i,
|
|
3049
3059
|
banner: !0
|
|
3050
3060
|
});
|
|
3051
|
-
},
|
|
3052
|
-
function
|
|
3061
|
+
}, gl = 800;
|
|
3062
|
+
function yl(e, t) {
|
|
3053
3063
|
const {
|
|
3054
3064
|
model: r,
|
|
3055
3065
|
id: i,
|
|
@@ -3076,7 +3086,7 @@ function gl(e, t) {
|
|
|
3076
3086
|
} = e, {
|
|
3077
3087
|
t: b,
|
|
3078
3088
|
lang: C
|
|
3079
|
-
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) <
|
|
3089
|
+
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < gl, be = Y(Ne), {
|
|
3080
3090
|
activeId: $e,
|
|
3081
3091
|
getPlainValues: Ie
|
|
3082
3092
|
} = be || {}, Be = Y(Qe), {
|
|
@@ -3478,7 +3488,7 @@ function gl(e, t) {
|
|
|
3478
3488
|
title: Re,
|
|
3479
3489
|
message: yt
|
|
3480
3490
|
} = oe.warning;
|
|
3481
|
-
ie.current = !0,
|
|
3491
|
+
ie.current = !0, el(Re, yt, () => {
|
|
3482
3492
|
ie.current = !1;
|
|
3483
3493
|
});
|
|
3484
3494
|
}
|
|
@@ -3678,14 +3688,14 @@ function gl(e, t) {
|
|
|
3678
3688
|
}) => /* @__PURE__ */ P("div", {
|
|
3679
3689
|
className: "pb-2",
|
|
3680
3690
|
ref: K,
|
|
3681
|
-
children: [$ && /* @__PURE__ */ n(
|
|
3691
|
+
children: [$ && /* @__PURE__ */ n(pl, {
|
|
3682
3692
|
className: "mt-5 mb-10",
|
|
3683
3693
|
error: $
|
|
3684
3694
|
}), zo(), a && Jo()]
|
|
3685
3695
|
})
|
|
3686
3696
|
}) : null;
|
|
3687
3697
|
}
|
|
3688
|
-
const Ut = bt(
|
|
3698
|
+
const Ut = bt(yl), Gt = (e) => {
|
|
3689
3699
|
const {
|
|
3690
3700
|
visible: t,
|
|
3691
3701
|
id: r,
|
|
@@ -3761,7 +3771,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3761
3771
|
});
|
|
3762
3772
|
}
|
|
3763
3773
|
const I = c * 0.95;
|
|
3764
|
-
return /* @__PURE__ */ n(
|
|
3774
|
+
return /* @__PURE__ */ n(tl, {
|
|
3765
3775
|
setTitle: d,
|
|
3766
3776
|
children: /* @__PURE__ */ n(Ge, {
|
|
3767
3777
|
title: a ? O() : f,
|
|
@@ -3782,14 +3792,14 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3782
3792
|
})
|
|
3783
3793
|
})
|
|
3784
3794
|
});
|
|
3785
|
-
},
|
|
3795
|
+
}, vl = (e) => /* @__PURE__ */ n(ve, {
|
|
3786
3796
|
...e,
|
|
3787
3797
|
layout: "vertical",
|
|
3788
3798
|
children: /* @__PURE__ */ n(Mn.RangePicker, {
|
|
3789
3799
|
allowEmpty: [!0, !0],
|
|
3790
3800
|
format: "DD/MM/YYYY"
|
|
3791
3801
|
})
|
|
3792
|
-
}),
|
|
3802
|
+
}), wl = (e) => {
|
|
3793
3803
|
const {
|
|
3794
3804
|
ooui: t,
|
|
3795
3805
|
showLabel: r = !1
|
|
@@ -3842,7 +3852,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3842
3852
|
})]
|
|
3843
3853
|
});
|
|
3844
3854
|
}, {
|
|
3845
|
-
useToken:
|
|
3855
|
+
useToken: bl
|
|
3846
3856
|
} = Pe, po = (e) => {
|
|
3847
3857
|
const {
|
|
3848
3858
|
ooui: t
|
|
@@ -3853,7 +3863,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3853
3863
|
required: s
|
|
3854
3864
|
} = t, {
|
|
3855
3865
|
token: a
|
|
3856
|
-
} =
|
|
3866
|
+
} = bl(), l = s && !o ? {
|
|
3857
3867
|
backgroundColor: a.colorPrimaryBg
|
|
3858
3868
|
} : void 0, u = Y(Ne), {
|
|
3859
3869
|
elementHasLostFocus: c
|
|
@@ -3875,7 +3885,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3875
3885
|
})
|
|
3876
3886
|
});
|
|
3877
3887
|
}, {
|
|
3878
|
-
useToken:
|
|
3888
|
+
useToken: xl
|
|
3879
3889
|
} = Pe, tn = (e) => {
|
|
3880
3890
|
const {
|
|
3881
3891
|
ooui: t,
|
|
@@ -3886,7 +3896,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3886
3896
|
required: s
|
|
3887
3897
|
} = t, {
|
|
3888
3898
|
token: a
|
|
3889
|
-
} =
|
|
3899
|
+
} = xl(), l = s && !o ? {
|
|
3890
3900
|
backgroundColor: a.colorPrimaryBg
|
|
3891
3901
|
} : void 0, u = Y(Ne), {
|
|
3892
3902
|
elementHasLostFocus: c
|
|
@@ -3911,7 +3921,7 @@ const Ut = bt(gl), Gt = (e) => {
|
|
|
3911
3921
|
})
|
|
3912
3922
|
});
|
|
3913
3923
|
};
|
|
3914
|
-
function
|
|
3924
|
+
function Cl(e) {
|
|
3915
3925
|
const {
|
|
3916
3926
|
ooui: t,
|
|
3917
3927
|
showLabel: r
|
|
@@ -3956,11 +3966,11 @@ function xl(e) {
|
|
|
3956
3966
|
});
|
|
3957
3967
|
}
|
|
3958
3968
|
const {
|
|
3959
|
-
defaultAlgorithm:
|
|
3960
|
-
defaultSeed:
|
|
3961
|
-
} = Pe,
|
|
3962
|
-
Option:
|
|
3963
|
-
} = Ct,
|
|
3969
|
+
defaultAlgorithm: Sl,
|
|
3970
|
+
defaultSeed: Tl
|
|
3971
|
+
} = Pe, Fl = Sl(Tl), {
|
|
3972
|
+
Option: Ol
|
|
3973
|
+
} = Ct, _l = (e) => {
|
|
3964
3974
|
const {
|
|
3965
3975
|
ooui: t
|
|
3966
3976
|
} = e, {
|
|
@@ -3970,11 +3980,11 @@ const {
|
|
|
3970
3980
|
required: r,
|
|
3971
3981
|
type: "any",
|
|
3972
3982
|
...e,
|
|
3973
|
-
children: /* @__PURE__ */ n(
|
|
3983
|
+
children: /* @__PURE__ */ n(Il, {
|
|
3974
3984
|
...e
|
|
3975
3985
|
})
|
|
3976
3986
|
});
|
|
3977
|
-
},
|
|
3987
|
+
}, Il = (e) => {
|
|
3978
3988
|
const {
|
|
3979
3989
|
ooui: t,
|
|
3980
3990
|
onChange: r,
|
|
@@ -3988,11 +3998,11 @@ const {
|
|
|
3988
3998
|
return i ? !i.includes(m) : !0;
|
|
3989
3999
|
}).map((d) => {
|
|
3990
4000
|
const [m, v] = d;
|
|
3991
|
-
return /* @__PURE__ */ n(
|
|
4001
|
+
return /* @__PURE__ */ n(Ol, {
|
|
3992
4002
|
value: v,
|
|
3993
4003
|
children: v
|
|
3994
4004
|
}, m);
|
|
3995
|
-
}), c = a && !s ?
|
|
4005
|
+
}), c = a && !s ? Dl : Ct;
|
|
3996
4006
|
function f(d) {
|
|
3997
4007
|
const m = d.map((v) => {
|
|
3998
4008
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -4012,12 +4022,12 @@ const {
|
|
|
4012
4022
|
showArrow: !0,
|
|
4013
4023
|
children: u
|
|
4014
4024
|
});
|
|
4015
|
-
},
|
|
4025
|
+
}, Dl = Kt(Ct)`
|
|
4016
4026
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4017
|
-
background-color: ${
|
|
4027
|
+
background-color: ${Fl.colorPrimaryBg};
|
|
4018
4028
|
}
|
|
4019
4029
|
`;
|
|
4020
|
-
function
|
|
4030
|
+
function Vl(e) {
|
|
4021
4031
|
const {
|
|
4022
4032
|
field: t
|
|
4023
4033
|
} = e;
|
|
@@ -4042,24 +4052,24 @@ function Dl(e) {
|
|
|
4042
4052
|
case ft.progressbar:
|
|
4043
4053
|
case ft.float_time:
|
|
4044
4054
|
case ft.integer:
|
|
4045
|
-
return /* @__PURE__ */ n(
|
|
4055
|
+
return /* @__PURE__ */ n(Cl, {
|
|
4046
4056
|
ooui: t,
|
|
4047
4057
|
showLabel: !0
|
|
4048
4058
|
});
|
|
4049
4059
|
case ft.date:
|
|
4050
|
-
return /* @__PURE__ */ n(
|
|
4060
|
+
return /* @__PURE__ */ n(vl, {
|
|
4051
4061
|
ooui: t,
|
|
4052
4062
|
layout: "vertical",
|
|
4053
4063
|
showLabel: !0
|
|
4054
4064
|
});
|
|
4055
4065
|
case ft.datetime:
|
|
4056
|
-
return /* @__PURE__ */ n(
|
|
4066
|
+
return /* @__PURE__ */ n(wl, {
|
|
4057
4067
|
ooui: t,
|
|
4058
4068
|
layout: "vertical",
|
|
4059
4069
|
showLabel: !0
|
|
4060
4070
|
});
|
|
4061
4071
|
case ft.selection:
|
|
4062
|
-
return /* @__PURE__ */ n(
|
|
4072
|
+
return /* @__PURE__ */ n(_l, {
|
|
4063
4073
|
layout: "vertical",
|
|
4064
4074
|
ooui: t,
|
|
4065
4075
|
showLabel: !0
|
|
@@ -4073,7 +4083,7 @@ function Dl(e) {
|
|
|
4073
4083
|
});
|
|
4074
4084
|
}
|
|
4075
4085
|
}
|
|
4076
|
-
function
|
|
4086
|
+
function Al(e) {
|
|
4077
4087
|
const {
|
|
4078
4088
|
onAdvancedFilterToggle: t,
|
|
4079
4089
|
advancedFilter: r,
|
|
@@ -4114,7 +4124,7 @@ function Vl(e) {
|
|
|
4114
4124
|
})]
|
|
4115
4125
|
});
|
|
4116
4126
|
}
|
|
4117
|
-
function
|
|
4127
|
+
function Rl(e) {
|
|
4118
4128
|
const {
|
|
4119
4129
|
onLimitChange: t
|
|
4120
4130
|
} = e, {
|
|
@@ -4142,7 +4152,7 @@ function Al(e) {
|
|
|
4142
4152
|
});
|
|
4143
4153
|
}
|
|
4144
4154
|
const {
|
|
4145
|
-
useToken:
|
|
4155
|
+
useToken: kl
|
|
4146
4156
|
} = Pe;
|
|
4147
4157
|
function go(e) {
|
|
4148
4158
|
const {
|
|
@@ -4165,7 +4175,7 @@ function go(e) {
|
|
|
4165
4175
|
formXml: p
|
|
4166
4176
|
} = e, [h, g] = T(), [y, O] = T(), [I, w] = T(!1), V = de(), {
|
|
4167
4177
|
token: D
|
|
4168
|
-
} =
|
|
4178
|
+
} = kl(), [E] = ot.useForm();
|
|
4169
4179
|
pe(() => {
|
|
4170
4180
|
E.setFieldsValue(m);
|
|
4171
4181
|
}, [m]);
|
|
@@ -4178,7 +4188,7 @@ function go(e) {
|
|
|
4178
4188
|
xs: 24,
|
|
4179
4189
|
className: "p-2",
|
|
4180
4190
|
xl: 6,
|
|
4181
|
-
children: /* @__PURE__ */ n(
|
|
4191
|
+
children: /* @__PURE__ */ n(Vl, {
|
|
4182
4192
|
field: A
|
|
4183
4193
|
})
|
|
4184
4194
|
}, M))
|
|
@@ -4194,7 +4204,7 @@ function go(e) {
|
|
|
4194
4204
|
offset: R
|
|
4195
4205
|
} = x;
|
|
4196
4206
|
delete x.offset, delete x.limit;
|
|
4197
|
-
const F =
|
|
4207
|
+
const F = nl(x, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
|
|
4198
4208
|
o({
|
|
4199
4209
|
params: F,
|
|
4200
4210
|
offset: R,
|
|
@@ -4227,9 +4237,9 @@ function go(e) {
|
|
|
4227
4237
|
offset: a,
|
|
4228
4238
|
limit: l
|
|
4229
4239
|
},
|
|
4230
|
-
children: [C, I && v && /* @__PURE__ */ n(
|
|
4240
|
+
children: [C, I && v && /* @__PURE__ */ n(Rl, {
|
|
4231
4241
|
onLimitChange: u
|
|
4232
|
-
}), /* @__PURE__ */ n(
|
|
4242
|
+
}), /* @__PURE__ */ n(Al, {
|
|
4233
4243
|
advancedFilter: I,
|
|
4234
4244
|
onAdvancedFilterToggle: () => {
|
|
4235
4245
|
w(!I);
|
|
@@ -4256,7 +4266,7 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4256
4266
|
i.font = t;
|
|
4257
4267
|
const o = i.measureText(e);
|
|
4258
4268
|
return Math.round((o.width + 80) * 1.5);
|
|
4259
|
-
},
|
|
4269
|
+
}, Ml = (e, t, r = 500) => {
|
|
4260
4270
|
if (e.length === 0)
|
|
4261
4271
|
return e;
|
|
4262
4272
|
const i = e.map(
|
|
@@ -4278,7 +4288,7 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4278
4288
|
tableWidth: o
|
|
4279
4289
|
};
|
|
4280
4290
|
};
|
|
4281
|
-
function
|
|
4291
|
+
function El(e) {
|
|
4282
4292
|
if (!!e)
|
|
4283
4293
|
try {
|
|
4284
4294
|
if (e.includes(":")) {
|
|
@@ -4308,7 +4318,7 @@ function yo(e) {
|
|
|
4308
4318
|
});
|
|
4309
4319
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4310
4320
|
}
|
|
4311
|
-
const
|
|
4321
|
+
const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
4312
4322
|
...e,
|
|
4313
4323
|
children: /* @__PURE__ */ n(vo, {})
|
|
4314
4324
|
}), vo = ({
|
|
@@ -4325,7 +4335,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4325
4335
|
display: "flex",
|
|
4326
4336
|
alignItems: "center"
|
|
4327
4337
|
},
|
|
4328
|
-
children: [/* @__PURE__ */ n(
|
|
4338
|
+
children: [/* @__PURE__ */ n(Ll, {
|
|
4329
4339
|
percent: e
|
|
4330
4340
|
}), /* @__PURE__ */ n("div", {
|
|
4331
4341
|
style: {
|
|
@@ -4335,7 +4345,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4335
4345
|
children: t
|
|
4336
4346
|
})]
|
|
4337
4347
|
});
|
|
4338
|
-
},
|
|
4348
|
+
}, Ll = Kt(ni)`
|
|
4339
4349
|
.ant-progress-outer {
|
|
4340
4350
|
margin-right: 0px;
|
|
4341
4351
|
padding-right: 0px;
|
|
@@ -4516,7 +4526,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4516
4526
|
onCancel: () => l(!1)
|
|
4517
4527
|
})]
|
|
4518
4528
|
});
|
|
4519
|
-
},
|
|
4529
|
+
}, Nl = (e) => {
|
|
4520
4530
|
const {
|
|
4521
4531
|
m2oField: t
|
|
4522
4532
|
} = e;
|
|
@@ -4528,7 +4538,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4528
4538
|
model: t.model
|
|
4529
4539
|
})]
|
|
4530
4540
|
}) : /* @__PURE__ */ n(ne, {});
|
|
4531
|
-
},
|
|
4541
|
+
}, Pl = (e) => {
|
|
4532
4542
|
const {
|
|
4533
4543
|
value: t,
|
|
4534
4544
|
context: r,
|
|
@@ -4771,7 +4781,7 @@ var wo = { exports: {} };
|
|
|
4771
4781
|
}, C.en = D[V], C.Ls = D, C.p = {}, C;
|
|
4772
4782
|
});
|
|
4773
4783
|
})(wo);
|
|
4774
|
-
const dt = wo.exports,
|
|
4784
|
+
const dt = wo.exports, Hl = (e) => {
|
|
4775
4785
|
console.log("Avatar Props", e);
|
|
4776
4786
|
const {
|
|
4777
4787
|
ooui: t,
|
|
@@ -4806,7 +4816,7 @@ var bo = { exports: {} };
|
|
|
4806
4816
|
};
|
|
4807
4817
|
});
|
|
4808
4818
|
})(bo);
|
|
4809
|
-
const
|
|
4819
|
+
const Bl = bo.exports;
|
|
4810
4820
|
var xo = { exports: {} };
|
|
4811
4821
|
(function(e, t) {
|
|
4812
4822
|
(function(r, i) {
|
|
@@ -4884,11 +4894,11 @@ var xo = { exports: {} };
|
|
|
4884
4894
|
};
|
|
4885
4895
|
});
|
|
4886
4896
|
})(xo);
|
|
4887
|
-
const
|
|
4888
|
-
useToken:
|
|
4897
|
+
const jl = xo.exports, {
|
|
4898
|
+
useToken: Kl
|
|
4889
4899
|
} = Pe;
|
|
4890
|
-
dt.extend(Hl);
|
|
4891
4900
|
dt.extend(Bl);
|
|
4901
|
+
dt.extend(jl);
|
|
4892
4902
|
const lt = {
|
|
4893
4903
|
date: {
|
|
4894
4904
|
placeholder: "__/__/____",
|
|
@@ -4910,12 +4920,12 @@ const lt = {
|
|
|
4910
4920
|
return /* @__PURE__ */ n(ve, {
|
|
4911
4921
|
required: i,
|
|
4912
4922
|
...e,
|
|
4913
|
-
children: /* @__PURE__ */ n(
|
|
4923
|
+
children: /* @__PURE__ */ n(Yl, {
|
|
4914
4924
|
ooui: t,
|
|
4915
4925
|
showTime: r
|
|
4916
4926
|
})
|
|
4917
4927
|
});
|
|
4918
|
-
},
|
|
4928
|
+
}, Yl = (e) => {
|
|
4919
4929
|
const {
|
|
4920
4930
|
value: t,
|
|
4921
4931
|
onChange: r,
|
|
@@ -4927,7 +4937,7 @@ const lt = {
|
|
|
4927
4937
|
required: l
|
|
4928
4938
|
} = i, {
|
|
4929
4939
|
token: u
|
|
4930
|
-
} =
|
|
4940
|
+
} = Kl(), c = l && !a ? {
|
|
4931
4941
|
backgroundColor: u.colorPrimaryBg
|
|
4932
4942
|
} : void 0, f = o ? "time" : "date", d = (p) => {
|
|
4933
4943
|
r == null || r(p);
|
|
@@ -4952,7 +4962,7 @@ const lt = {
|
|
|
4952
4962
|
value: v,
|
|
4953
4963
|
onChange: m
|
|
4954
4964
|
});
|
|
4955
|
-
},
|
|
4965
|
+
}, Wl = (e) => /* @__PURE__ */ n("div", {
|
|
4956
4966
|
style: {
|
|
4957
4967
|
display: "flex",
|
|
4958
4968
|
justifyContent: "center",
|
|
@@ -4962,18 +4972,18 @@ const lt = {
|
|
|
4962
4972
|
checked: e,
|
|
4963
4973
|
disabled: !0
|
|
4964
4974
|
})
|
|
4965
|
-
}),
|
|
4975
|
+
}), Ul = (e) => /* @__PURE__ */ n(Nl, {
|
|
4966
4976
|
m2oField: e
|
|
4967
|
-
}),
|
|
4977
|
+
}), Gl = (e) => /* @__PURE__ */ n(Gn, {
|
|
4968
4978
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4969
|
-
}),
|
|
4979
|
+
}), ql = (e) => {
|
|
4970
4980
|
if (!e || e && e.length === 0)
|
|
4971
4981
|
return /* @__PURE__ */ n(ne, {});
|
|
4972
4982
|
const t = dt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4973
4983
|
return /* @__PURE__ */ n(ne, {
|
|
4974
4984
|
children: t
|
|
4975
4985
|
});
|
|
4976
|
-
},
|
|
4986
|
+
}, zl = (e) => {
|
|
4977
4987
|
if (!e || e && e.length === 0)
|
|
4978
4988
|
return /* @__PURE__ */ n(ne, {});
|
|
4979
4989
|
const t = dt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
@@ -4985,33 +4995,33 @@ const lt = {
|
|
|
4985
4995
|
return /* @__PURE__ */ n(ne, {
|
|
4986
4996
|
children: `( ${t} )`
|
|
4987
4997
|
});
|
|
4988
|
-
},
|
|
4998
|
+
}, Jl = (e) => /* @__PURE__ */ n(vo, {
|
|
4989
4999
|
value: e
|
|
4990
|
-
}),
|
|
5000
|
+
}), Zl = (e) => /* @__PURE__ */ n(ne, {
|
|
4991
5001
|
children: yo(e)
|
|
4992
5002
|
}), Tr = (e) => /* @__PURE__ */ n("div", {
|
|
4993
5003
|
style: {
|
|
4994
5004
|
textAlign: "right"
|
|
4995
5005
|
},
|
|
4996
5006
|
children: e
|
|
4997
|
-
}),
|
|
5007
|
+
}), Xl = (e) => /* @__PURE__ */ n("img", {
|
|
4998
5008
|
src: `data:image/*;base64,${e}`,
|
|
4999
5009
|
style: {
|
|
5000
5010
|
maxWidth: "50px",
|
|
5001
5011
|
padding: "5px"
|
|
5002
5012
|
}
|
|
5003
|
-
}),
|
|
5013
|
+
}), Ql = (e, t, r, i) => /* @__PURE__ */ n(uo, {
|
|
5004
5014
|
ooui: r,
|
|
5005
5015
|
value: e
|
|
5006
|
-
}), Ql = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5007
|
-
children: r.selectionValues.get(e)
|
|
5008
5016
|
}), ec = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5009
|
-
children:
|
|
5017
|
+
children: r.selectionValues.get(e)
|
|
5018
|
+
}), tc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5019
|
+
children: /* @__PURE__ */ n(Pl, {
|
|
5010
5020
|
value: e,
|
|
5011
5021
|
selectionValues: r.selectionValues,
|
|
5012
5022
|
context: i
|
|
5013
5023
|
})
|
|
5014
|
-
}),
|
|
5024
|
+
}), nc = (e, t, r, i) => /* @__PURE__ */ n(Hl, {
|
|
5015
5025
|
ooui: r,
|
|
5016
5026
|
value: e
|
|
5017
5027
|
});
|
|
@@ -5046,22 +5056,22 @@ function pn(e) {
|
|
|
5046
5056
|
pe(() => {
|
|
5047
5057
|
S.current = _t(o);
|
|
5048
5058
|
const z = Oa(S.current, {
|
|
5049
|
-
boolean:
|
|
5050
|
-
many2one:
|
|
5051
|
-
text:
|
|
5059
|
+
boolean: Wl,
|
|
5060
|
+
many2one: Ul,
|
|
5061
|
+
text: Gl,
|
|
5052
5062
|
one2many: Sr,
|
|
5053
5063
|
many2many: Sr,
|
|
5054
|
-
progressbar:
|
|
5055
|
-
float_time:
|
|
5056
|
-
image:
|
|
5064
|
+
progressbar: Jl,
|
|
5065
|
+
float_time: Zl,
|
|
5066
|
+
image: Xl,
|
|
5057
5067
|
integer: Tr,
|
|
5058
5068
|
float: Tr,
|
|
5059
|
-
reference:
|
|
5060
|
-
tag:
|
|
5061
|
-
selection:
|
|
5062
|
-
date:
|
|
5063
|
-
datetime:
|
|
5064
|
-
avatar:
|
|
5069
|
+
reference: tc,
|
|
5070
|
+
tag: Ql,
|
|
5071
|
+
selection: ec,
|
|
5072
|
+
date: ql,
|
|
5073
|
+
datetime: zl,
|
|
5074
|
+
avatar: nc
|
|
5065
5075
|
}, I);
|
|
5066
5076
|
b(z), S.current.string && F !== S.current.string && (A == null || A(S.current.string));
|
|
5067
5077
|
}, [o]), pe(() => {
|
|
@@ -5108,7 +5118,7 @@ function pn(e) {
|
|
|
5108
5118
|
}
|
|
5109
5119
|
let q, W = d;
|
|
5110
5120
|
if (S.current !== null) {
|
|
5111
|
-
q =
|
|
5121
|
+
q = Ml(E, V, 600);
|
|
5112
5122
|
const U = S.current;
|
|
5113
5123
|
d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
|
|
5114
5124
|
}
|
|
@@ -5152,7 +5162,7 @@ function pn(e) {
|
|
|
5152
5162
|
}), j()]
|
|
5153
5163
|
});
|
|
5154
5164
|
}
|
|
5155
|
-
function
|
|
5165
|
+
function rc(e, t) {
|
|
5156
5166
|
const {
|
|
5157
5167
|
model: r,
|
|
5158
5168
|
formView: i,
|
|
@@ -5367,7 +5377,7 @@ function nc(e, t) {
|
|
|
5367
5377
|
children: v ? /* @__PURE__ */ n(Me, {}) : ye()
|
|
5368
5378
|
});
|
|
5369
5379
|
}
|
|
5370
|
-
const So = bt(
|
|
5380
|
+
const So = bt(rc), To = (e) => {
|
|
5371
5381
|
const {
|
|
5372
5382
|
visible: t,
|
|
5373
5383
|
onCloseModal: r,
|
|
@@ -5456,18 +5466,18 @@ const So = bt(nc), To = (e) => {
|
|
|
5456
5466
|
})]
|
|
5457
5467
|
});
|
|
5458
5468
|
}, {
|
|
5459
|
-
error:
|
|
5469
|
+
error: oc
|
|
5460
5470
|
} = Ge, nn = (e) => {
|
|
5461
|
-
|
|
5471
|
+
oc({
|
|
5462
5472
|
title: "Error",
|
|
5463
5473
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5464
5474
|
centered: !0,
|
|
5465
5475
|
content: e
|
|
5466
5476
|
});
|
|
5467
5477
|
}, {
|
|
5468
|
-
defaultAlgorithm:
|
|
5469
|
-
defaultSeed:
|
|
5470
|
-
} = Pe, Fo =
|
|
5478
|
+
defaultAlgorithm: ic,
|
|
5479
|
+
defaultSeed: sc
|
|
5480
|
+
} = Pe, Fo = ic(sc), ac = (e) => {
|
|
5471
5481
|
const {
|
|
5472
5482
|
ooui: t
|
|
5473
5483
|
} = e, {
|
|
@@ -5602,7 +5612,7 @@ const So = bt(nc), To = (e) => {
|
|
|
5602
5612
|
wrap: !1,
|
|
5603
5613
|
children: [/* @__PURE__ */ n(le, {
|
|
5604
5614
|
flex: "auto",
|
|
5605
|
-
children: /* @__PURE__ */ n(o && !a ?
|
|
5615
|
+
children: /* @__PURE__ */ n(o && !a ? lc : nt, {
|
|
5606
5616
|
type: "text",
|
|
5607
5617
|
value: w,
|
|
5608
5618
|
disabled: a,
|
|
@@ -5686,11 +5696,11 @@ const So = bt(nc), To = (e) => {
|
|
|
5686
5696
|
readOnly: a
|
|
5687
5697
|
})]
|
|
5688
5698
|
});
|
|
5689
|
-
},
|
|
5699
|
+
}, lc = Kt(nt)`
|
|
5690
5700
|
.ant-input {
|
|
5691
5701
|
background-color: ${Fo.colorPrimaryBg};
|
|
5692
5702
|
}
|
|
5693
|
-
`, _o = Je.createContext(null),
|
|
5703
|
+
`, _o = Je.createContext(null), cc = ({
|
|
5694
5704
|
children: e,
|
|
5695
5705
|
initialView: t
|
|
5696
5706
|
}) => {
|
|
@@ -5708,7 +5718,7 @@ const So = bt(nc), To = (e) => {
|
|
|
5708
5718
|
});
|
|
5709
5719
|
}, {
|
|
5710
5720
|
getValueForOperator: Fr
|
|
5711
|
-
} = Er, rn = 0.7, on = 30,
|
|
5721
|
+
} = Er, rn = 0.7, on = 30, dc = (e) => {
|
|
5712
5722
|
const {
|
|
5713
5723
|
model: t,
|
|
5714
5724
|
domain: r,
|
|
@@ -5850,7 +5860,7 @@ const So = bt(nc), To = (e) => {
|
|
|
5850
5860
|
},
|
|
5851
5861
|
children: ({
|
|
5852
5862
|
measureRef: _
|
|
5853
|
-
}) => a ? /* @__PURE__ */ n(
|
|
5863
|
+
}) => a ? /* @__PURE__ */ n(fc, {
|
|
5854
5864
|
value: p,
|
|
5855
5865
|
total: O,
|
|
5856
5866
|
percent: g,
|
|
@@ -5860,7 +5870,7 @@ const So = bt(nc), To = (e) => {
|
|
|
5860
5870
|
color: b,
|
|
5861
5871
|
icon: S,
|
|
5862
5872
|
suffix: u
|
|
5863
|
-
}) : /* @__PURE__ */ n(
|
|
5873
|
+
}) : /* @__PURE__ */ n(uc, {
|
|
5864
5874
|
value: p,
|
|
5865
5875
|
total: O,
|
|
5866
5876
|
measureRef: _,
|
|
@@ -5876,7 +5886,7 @@ function Io(e, t) {
|
|
|
5876
5886
|
const i = document.createElement("canvas").getContext("2d");
|
|
5877
5887
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
5878
5888
|
}
|
|
5879
|
-
function
|
|
5889
|
+
function uc({
|
|
5880
5890
|
measureRef: e,
|
|
5881
5891
|
width: t,
|
|
5882
5892
|
height: r,
|
|
@@ -5919,7 +5929,7 @@ function dc({
|
|
|
5919
5929
|
})
|
|
5920
5930
|
});
|
|
5921
5931
|
}
|
|
5922
|
-
function
|
|
5932
|
+
function fc({
|
|
5923
5933
|
measureRef: e,
|
|
5924
5934
|
height: t,
|
|
5925
5935
|
width: r,
|
|
@@ -5993,22 +6003,22 @@ const Tn = (e) => (t) => {
|
|
|
5993
6003
|
});
|
|
5994
6004
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
5995
6005
|
}, Zt = (e) => {
|
|
5996
|
-
if (typeof e == "string" &&
|
|
6006
|
+
if (typeof e == "string" && mc(e))
|
|
5997
6007
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
5998
6008
|
useGrouping: !0
|
|
5999
6009
|
});
|
|
6000
|
-
if (
|
|
6010
|
+
if (hc(e))
|
|
6001
6011
|
return e.toLocaleString("es-ES", {
|
|
6002
6012
|
useGrouping: !0
|
|
6003
6013
|
});
|
|
6004
|
-
if (
|
|
6005
|
-
const t =
|
|
6014
|
+
if (pc(e)) {
|
|
6015
|
+
const t = gc(e);
|
|
6006
6016
|
return t === null ? e : dt(e, sn.input[t]).format(
|
|
6007
6017
|
sn.output[t]
|
|
6008
6018
|
);
|
|
6009
6019
|
} else
|
|
6010
6020
|
return e;
|
|
6011
|
-
},
|
|
6021
|
+
}, mc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), hc = (e) => typeof e == "number" && !isNaN(e), Or = {
|
|
6012
6022
|
default: {
|
|
6013
6023
|
padding: "auto",
|
|
6014
6024
|
xAxis: {
|
|
@@ -6090,7 +6100,7 @@ const Tn = (e) => (t) => {
|
|
|
6090
6100
|
}
|
|
6091
6101
|
}
|
|
6092
6102
|
};
|
|
6093
|
-
function
|
|
6103
|
+
function pc(e) {
|
|
6094
6104
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
6095
6105
|
}
|
|
6096
6106
|
const sn = {
|
|
@@ -6109,7 +6119,7 @@ const sn = {
|
|
|
6109
6119
|
years: "YYYY"
|
|
6110
6120
|
}
|
|
6111
6121
|
};
|
|
6112
|
-
function
|
|
6122
|
+
function gc(e) {
|
|
6113
6123
|
for (const t in sn.input)
|
|
6114
6124
|
if (dt(
|
|
6115
6125
|
e,
|
|
@@ -6120,10 +6130,10 @@ function pc(e) {
|
|
|
6120
6130
|
return null;
|
|
6121
6131
|
}
|
|
6122
6132
|
const {
|
|
6123
|
-
processGraphData:
|
|
6133
|
+
processGraphData: yc
|
|
6124
6134
|
} = Er, {
|
|
6125
|
-
getFieldsToRetrieve:
|
|
6126
|
-
} = mi,
|
|
6135
|
+
getFieldsToRetrieve: vc
|
|
6136
|
+
} = mi, wc = (e) => {
|
|
6127
6137
|
const {
|
|
6128
6138
|
model: t,
|
|
6129
6139
|
domain: r = [],
|
|
@@ -6138,7 +6148,7 @@ const {
|
|
|
6138
6148
|
c(!0), d(void 0);
|
|
6139
6149
|
const O = Ln(o);
|
|
6140
6150
|
y(O.type || "line");
|
|
6141
|
-
const I =
|
|
6151
|
+
const I = vc({
|
|
6142
6152
|
ooui: O
|
|
6143
6153
|
});
|
|
6144
6154
|
let w, V;
|
|
@@ -6146,7 +6156,7 @@ const {
|
|
|
6146
6156
|
({
|
|
6147
6157
|
values: w,
|
|
6148
6158
|
fields: V
|
|
6149
|
-
} = await
|
|
6159
|
+
} = await xc({
|
|
6150
6160
|
model: t,
|
|
6151
6161
|
domain: r,
|
|
6152
6162
|
context: i,
|
|
@@ -6165,7 +6175,7 @@ const {
|
|
|
6165
6175
|
return;
|
|
6166
6176
|
}
|
|
6167
6177
|
h(w);
|
|
6168
|
-
const D =
|
|
6178
|
+
const D = yc({
|
|
6169
6179
|
ooui: O,
|
|
6170
6180
|
values: w,
|
|
6171
6181
|
fields: V,
|
|
@@ -6188,7 +6198,7 @@ const {
|
|
|
6188
6198
|
evaluatedEntries: p
|
|
6189
6199
|
};
|
|
6190
6200
|
};
|
|
6191
|
-
async function
|
|
6201
|
+
async function bc({
|
|
6192
6202
|
model: e,
|
|
6193
6203
|
context: t,
|
|
6194
6204
|
fields: r
|
|
@@ -6199,7 +6209,7 @@ async function wc({
|
|
|
6199
6209
|
fields: r
|
|
6200
6210
|
});
|
|
6201
6211
|
}
|
|
6202
|
-
async function
|
|
6212
|
+
async function xc({
|
|
6203
6213
|
fields: e,
|
|
6204
6214
|
model: t,
|
|
6205
6215
|
domain: r,
|
|
@@ -6208,7 +6218,7 @@ async function bc({
|
|
|
6208
6218
|
limit: s,
|
|
6209
6219
|
manualIds: a
|
|
6210
6220
|
}) {
|
|
6211
|
-
const l = await
|
|
6221
|
+
const l = await bc({
|
|
6212
6222
|
model: t,
|
|
6213
6223
|
context: i,
|
|
6214
6224
|
fields: e
|
|
@@ -6237,11 +6247,11 @@ async function bc({
|
|
|
6237
6247
|
fields: l
|
|
6238
6248
|
};
|
|
6239
6249
|
}
|
|
6240
|
-
const
|
|
6250
|
+
const Cc = {
|
|
6241
6251
|
line: Di,
|
|
6242
6252
|
bar: Vi,
|
|
6243
6253
|
pie: Ai
|
|
6244
|
-
},
|
|
6254
|
+
}, Sc = (e) => {
|
|
6245
6255
|
var y;
|
|
6246
6256
|
const {
|
|
6247
6257
|
model: t,
|
|
@@ -6258,7 +6268,7 @@ const xc = {
|
|
|
6258
6268
|
values: f,
|
|
6259
6269
|
type: d,
|
|
6260
6270
|
evaluatedEntries: m
|
|
6261
|
-
} =
|
|
6271
|
+
} = wc({
|
|
6262
6272
|
model: t,
|
|
6263
6273
|
xml: o,
|
|
6264
6274
|
limit: s,
|
|
@@ -6284,7 +6294,7 @@ const xc = {
|
|
|
6284
6294
|
data: v,
|
|
6285
6295
|
isGroup: p,
|
|
6286
6296
|
isStack: h
|
|
6287
|
-
} = f, g =
|
|
6297
|
+
} = f, g = Cc[d];
|
|
6288
6298
|
return g ? /* @__PURE__ */ P("div", {
|
|
6289
6299
|
style: {
|
|
6290
6300
|
padding: "1rem"
|
|
@@ -6297,7 +6307,7 @@ const xc = {
|
|
|
6297
6307
|
useGrouping: !0
|
|
6298
6308
|
})}`
|
|
6299
6309
|
}), /* @__PURE__ */ n(g, {
|
|
6300
|
-
...
|
|
6310
|
+
...Tc({
|
|
6301
6311
|
type: d,
|
|
6302
6312
|
data: v,
|
|
6303
6313
|
isGroup: p,
|
|
@@ -6308,7 +6318,7 @@ const xc = {
|
|
|
6308
6318
|
children: `Unknown graph type: ${d}`
|
|
6309
6319
|
});
|
|
6310
6320
|
};
|
|
6311
|
-
function
|
|
6321
|
+
function Tc(e) {
|
|
6312
6322
|
const {
|
|
6313
6323
|
type: t,
|
|
6314
6324
|
data: r,
|
|
@@ -6318,7 +6328,7 @@ function Sc(e) {
|
|
|
6318
6328
|
let s = Or[t];
|
|
6319
6329
|
return s || (s = Or.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
|
|
6320
6330
|
}
|
|
6321
|
-
const
|
|
6331
|
+
const Fc = (e, t) => {
|
|
6322
6332
|
const {
|
|
6323
6333
|
view_id: r,
|
|
6324
6334
|
model: i,
|
|
@@ -6380,7 +6390,7 @@ const Tc = (e, t) => {
|
|
|
6380
6390
|
field: y.field,
|
|
6381
6391
|
operator: y.operator
|
|
6382
6392
|
} : {};
|
|
6383
|
-
return /* @__PURE__ */ n(
|
|
6393
|
+
return /* @__PURE__ */ n(dc, {
|
|
6384
6394
|
showPercent: y.showPercent,
|
|
6385
6395
|
totalDomain: y.totalDomain,
|
|
6386
6396
|
colorCondition: y.color,
|
|
@@ -6396,7 +6406,7 @@ const Tc = (e, t) => {
|
|
|
6396
6406
|
case "line":
|
|
6397
6407
|
case "bar":
|
|
6398
6408
|
case "pie":
|
|
6399
|
-
return /* @__PURE__ */ n(
|
|
6409
|
+
return /* @__PURE__ */ n(Sc, {
|
|
6400
6410
|
model: i,
|
|
6401
6411
|
context: o,
|
|
6402
6412
|
domain: s,
|
|
@@ -6409,13 +6419,13 @@ const Tc = (e, t) => {
|
|
|
6409
6419
|
children: `Graph ${f.type} not implemented`
|
|
6410
6420
|
});
|
|
6411
6421
|
}
|
|
6412
|
-
}, gn = bt(
|
|
6413
|
-
confirm:
|
|
6414
|
-
} = Ge,
|
|
6422
|
+
}, gn = bt(Fc), {
|
|
6423
|
+
confirm: Oc
|
|
6424
|
+
} = Ge, _c = ({
|
|
6415
6425
|
onOk: e,
|
|
6416
6426
|
lang: t
|
|
6417
6427
|
}) => {
|
|
6418
|
-
|
|
6428
|
+
Oc({
|
|
6419
6429
|
title: Oe("removeItems", t),
|
|
6420
6430
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6421
6431
|
centered: !0,
|
|
@@ -6425,12 +6435,12 @@ const Tc = (e, t) => {
|
|
|
6425
6435
|
cancelText: Oe("cancel", t)
|
|
6426
6436
|
});
|
|
6427
6437
|
}, {
|
|
6428
|
-
confirm:
|
|
6429
|
-
} = Ge,
|
|
6438
|
+
confirm: Ic
|
|
6439
|
+
} = Ge, Dc = ({
|
|
6430
6440
|
onOk: e,
|
|
6431
6441
|
lang: t
|
|
6432
6442
|
}) => {
|
|
6433
|
-
|
|
6443
|
+
Ic({
|
|
6434
6444
|
title: Oe("unlinkItems", t),
|
|
6435
6445
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6436
6446
|
centered: !0,
|
|
@@ -6440,8 +6450,8 @@ const Tc = (e, t) => {
|
|
|
6440
6450
|
cancelText: Oe("cancel", t)
|
|
6441
6451
|
});
|
|
6442
6452
|
}, {
|
|
6443
|
-
useToken:
|
|
6444
|
-
} = Pe,
|
|
6453
|
+
useToken: Vc
|
|
6454
|
+
} = Pe, Ac = (e) => {
|
|
6445
6455
|
const {
|
|
6446
6456
|
title: t,
|
|
6447
6457
|
readOnly: r,
|
|
@@ -6460,7 +6470,7 @@ const Tc = (e, t) => {
|
|
|
6460
6470
|
showToggleButton: h
|
|
6461
6471
|
} = e, {
|
|
6462
6472
|
token: g
|
|
6463
|
-
} =
|
|
6473
|
+
} = Vc();
|
|
6464
6474
|
function y() {
|
|
6465
6475
|
return /* @__PURE__ */ n("div", {
|
|
6466
6476
|
className: "inline-block w-3"
|
|
@@ -6531,12 +6541,12 @@ const Tc = (e, t) => {
|
|
|
6531
6541
|
})]
|
|
6532
6542
|
})]
|
|
6533
6543
|
});
|
|
6534
|
-
},
|
|
6544
|
+
}, Rc = {
|
|
6535
6545
|
form: kr,
|
|
6536
6546
|
tree: Ar,
|
|
6537
6547
|
graph: gn
|
|
6538
6548
|
};
|
|
6539
|
-
function
|
|
6549
|
+
function kc(e) {
|
|
6540
6550
|
const t = e.map((i) => i.id);
|
|
6541
6551
|
return e.filter((i, o) => {
|
|
6542
6552
|
const {
|
|
@@ -6545,7 +6555,7 @@ function Rc(e) {
|
|
|
6545
6555
|
return !t.includes(s, o + 1);
|
|
6546
6556
|
});
|
|
6547
6557
|
}
|
|
6548
|
-
const
|
|
6558
|
+
const Mc = (e) => {
|
|
6549
6559
|
var at;
|
|
6550
6560
|
const {
|
|
6551
6561
|
value: t,
|
|
@@ -6593,7 +6603,7 @@ const kc = (e) => {
|
|
|
6593
6603
|
var ae, Ae;
|
|
6594
6604
|
r == null || r({
|
|
6595
6605
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
|
|
6596
|
-
items:
|
|
6606
|
+
items: kc(X)
|
|
6597
6607
|
});
|
|
6598
6608
|
}, $e = async () => {
|
|
6599
6609
|
await Ie(), u > Q.length - 1 && u !== 0 && c(0);
|
|
@@ -6685,7 +6695,7 @@ const kc = (e) => {
|
|
|
6685
6695
|
}) : X();
|
|
6686
6696
|
}, je = () => {
|
|
6687
6697
|
if (Z) {
|
|
6688
|
-
|
|
6698
|
+
Dc({
|
|
6689
6699
|
lang: g,
|
|
6690
6700
|
onOk: () => {
|
|
6691
6701
|
a === "form" ? Fe() : Ee();
|
|
@@ -6693,7 +6703,7 @@ const kc = (e) => {
|
|
|
6693
6703
|
});
|
|
6694
6704
|
return;
|
|
6695
6705
|
}
|
|
6696
|
-
|
|
6706
|
+
_c({
|
|
6697
6707
|
lang: g,
|
|
6698
6708
|
onOk: () => {
|
|
6699
6709
|
a === "form" ? Fe() : Ee();
|
|
@@ -6821,7 +6831,7 @@ const kc = (e) => {
|
|
|
6821
6831
|
}
|
|
6822
6832
|
};
|
|
6823
6833
|
function ue() {
|
|
6824
|
-
const X =
|
|
6834
|
+
const X = Rc[a];
|
|
6825
6835
|
if (a === "graph")
|
|
6826
6836
|
return Ln(o.get("graph").arch).string;
|
|
6827
6837
|
{
|
|
@@ -6913,7 +6923,7 @@ const kc = (e) => {
|
|
|
6913
6923
|
});
|
|
6914
6924
|
const Ke = M;
|
|
6915
6925
|
return w ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
6916
|
-
children: [/* @__PURE__ */ n(
|
|
6926
|
+
children: [/* @__PURE__ */ n(Ac, {
|
|
6917
6927
|
mode: a,
|
|
6918
6928
|
title: ue(),
|
|
6919
6929
|
readOnly: U,
|
|
@@ -6964,7 +6974,7 @@ const kc = (e) => {
|
|
|
6964
6974
|
}
|
|
6965
6975
|
})]
|
|
6966
6976
|
});
|
|
6967
|
-
},
|
|
6977
|
+
}, Ec = (e) => {
|
|
6968
6978
|
const {
|
|
6969
6979
|
ooui: t
|
|
6970
6980
|
} = e, {
|
|
@@ -7012,7 +7022,7 @@ const kc = (e) => {
|
|
|
7012
7022
|
message: f,
|
|
7013
7023
|
type: "error",
|
|
7014
7024
|
banner: !0
|
|
7015
|
-
}) : /* @__PURE__ */ n(
|
|
7025
|
+
}) : /* @__PURE__ */ n(cc, {
|
|
7016
7026
|
initialView: l,
|
|
7017
7027
|
children: /* @__PURE__ */ n(ve, {
|
|
7018
7028
|
required: s,
|
|
@@ -7028,15 +7038,15 @@ const kc = (e) => {
|
|
|
7028
7038
|
throw new Error();
|
|
7029
7039
|
},
|
|
7030
7040
|
...e,
|
|
7031
|
-
children: /* @__PURE__ */ n(
|
|
7041
|
+
children: /* @__PURE__ */ n(Mc, {
|
|
7032
7042
|
ooui: t,
|
|
7033
7043
|
views: m
|
|
7034
7044
|
})
|
|
7035
7045
|
})
|
|
7036
7046
|
});
|
|
7037
7047
|
}, {
|
|
7038
|
-
useToken:
|
|
7039
|
-
} = Pe,
|
|
7048
|
+
useToken: $c
|
|
7049
|
+
} = Pe, Lc = (e) => {
|
|
7040
7050
|
const {
|
|
7041
7051
|
ooui: t
|
|
7042
7052
|
} = e, {
|
|
@@ -7046,11 +7056,11 @@ const kc = (e) => {
|
|
|
7046
7056
|
required: r,
|
|
7047
7057
|
type: "number",
|
|
7048
7058
|
...e,
|
|
7049
|
-
children: /* @__PURE__ */ n(
|
|
7059
|
+
children: /* @__PURE__ */ n(Nc, {
|
|
7050
7060
|
ooui: t
|
|
7051
7061
|
})
|
|
7052
7062
|
});
|
|
7053
|
-
},
|
|
7063
|
+
}, Nc = (e) => {
|
|
7054
7064
|
const {
|
|
7055
7065
|
ooui: t,
|
|
7056
7066
|
value: r,
|
|
@@ -7061,7 +7071,7 @@ const kc = (e) => {
|
|
|
7061
7071
|
required: a
|
|
7062
7072
|
} = t, {
|
|
7063
7073
|
token: l
|
|
7064
|
-
} =
|
|
7074
|
+
} = $c(), u = a && !s ? {
|
|
7065
7075
|
backgroundColor: l.colorPrimaryBg
|
|
7066
7076
|
} : void 0, c = de(), [f, d] = T(), m = Y(Ne), {
|
|
7067
7077
|
elementHasLostFocus: v
|
|
@@ -7076,7 +7086,7 @@ const kc = (e) => {
|
|
|
7076
7086
|
c.current = y.target.value, d(y.target.value);
|
|
7077
7087
|
}
|
|
7078
7088
|
async function g() {
|
|
7079
|
-
p(
|
|
7089
|
+
p(El(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
|
|
7080
7090
|
}
|
|
7081
7091
|
return /* @__PURE__ */ n(nt, {
|
|
7082
7092
|
value: f,
|
|
@@ -7110,9 +7120,9 @@ function Do(e) {
|
|
|
7110
7120
|
});
|
|
7111
7121
|
}
|
|
7112
7122
|
const {
|
|
7113
|
-
TabPane:
|
|
7123
|
+
TabPane: Pc
|
|
7114
7124
|
} = Vr;
|
|
7115
|
-
function
|
|
7125
|
+
function Hc(e) {
|
|
7116
7126
|
const {
|
|
7117
7127
|
ooui: t,
|
|
7118
7128
|
responsiveBehaviour: r
|
|
@@ -7126,7 +7136,7 @@ function Pc(e) {
|
|
|
7126
7136
|
return /* @__PURE__ */ n(Vr, {
|
|
7127
7137
|
defaultActiveKey: "1",
|
|
7128
7138
|
tabPosition: t.tabPosition,
|
|
7129
|
-
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
7139
|
+
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Pc, {
|
|
7130
7140
|
tab: /* @__PURE__ */ P(ne, {
|
|
7131
7141
|
children: [o(s.icon), " ", s.label]
|
|
7132
7142
|
}),
|
|
@@ -7139,10 +7149,10 @@ function Pc(e) {
|
|
|
7139
7149
|
});
|
|
7140
7150
|
}
|
|
7141
7151
|
const {
|
|
7142
|
-
useToken:
|
|
7152
|
+
useToken: Bc
|
|
7143
7153
|
} = Pe, {
|
|
7144
7154
|
TextArea: An
|
|
7145
|
-
} = nt,
|
|
7155
|
+
} = nt, jc = (e) => {
|
|
7146
7156
|
const {
|
|
7147
7157
|
ooui: t
|
|
7148
7158
|
} = e, {
|
|
@@ -7153,7 +7163,7 @@ const {
|
|
|
7153
7163
|
translatable: a
|
|
7154
7164
|
} = t, {
|
|
7155
7165
|
token: l
|
|
7156
|
-
} =
|
|
7166
|
+
} = Bc(), u = o && !i ? {
|
|
7157
7167
|
backgroundColor: l.colorPrimaryBg
|
|
7158
7168
|
} : void 0, c = Y(Ne), {
|
|
7159
7169
|
elementHasLostFocus: f
|
|
@@ -7161,7 +7171,7 @@ const {
|
|
|
7161
7171
|
return /* @__PURE__ */ n(ve, {
|
|
7162
7172
|
required: o,
|
|
7163
7173
|
...e,
|
|
7164
|
-
children: a ? /* @__PURE__ */ n(
|
|
7174
|
+
children: a ? /* @__PURE__ */ n(Kc, {
|
|
7165
7175
|
field: r,
|
|
7166
7176
|
height: s,
|
|
7167
7177
|
requiredStyle: u
|
|
@@ -7175,7 +7185,7 @@ const {
|
|
|
7175
7185
|
onBlur: f
|
|
7176
7186
|
})
|
|
7177
7187
|
});
|
|
7178
|
-
},
|
|
7188
|
+
}, Kc = ({
|
|
7179
7189
|
value: e,
|
|
7180
7190
|
field: t,
|
|
7181
7191
|
requiredStyle: r,
|
|
@@ -7260,7 +7270,7 @@ const {
|
|
|
7260
7270
|
})
|
|
7261
7271
|
})]
|
|
7262
7272
|
});
|
|
7263
|
-
},
|
|
7273
|
+
}, Yc = (e) => {
|
|
7264
7274
|
const {
|
|
7265
7275
|
ooui: t
|
|
7266
7276
|
} = e, {
|
|
@@ -7274,7 +7284,7 @@ const {
|
|
|
7274
7284
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7275
7285
|
})
|
|
7276
7286
|
});
|
|
7277
|
-
},
|
|
7287
|
+
}, Wc = ({
|
|
7278
7288
|
model: e,
|
|
7279
7289
|
context: t,
|
|
7280
7290
|
locale: r,
|
|
@@ -7295,7 +7305,7 @@ const {
|
|
|
7295
7305
|
]);
|
|
7296
7306
|
const { datas: O } = await H.getHandler().exportData({
|
|
7297
7307
|
model: e,
|
|
7298
|
-
fields:
|
|
7308
|
+
fields: Zc({
|
|
7299
7309
|
keys: g.selectedKeys,
|
|
7300
7310
|
fields: l.current
|
|
7301
7311
|
}),
|
|
@@ -7324,7 +7334,7 @@ const {
|
|
|
7324
7334
|
fields: []
|
|
7325
7335
|
});
|
|
7326
7336
|
for (const [V, D] of Object.entries(w))
|
|
7327
|
-
w[V].string =
|
|
7337
|
+
w[V].string = Gc({
|
|
7328
7338
|
parentTitle: O.string,
|
|
7329
7339
|
title: D.string
|
|
7330
7340
|
});
|
|
@@ -7335,7 +7345,7 @@ const {
|
|
|
7335
7345
|
},
|
|
7336
7346
|
[l.current, e, t]
|
|
7337
7347
|
), m = Le(async () => {
|
|
7338
|
-
const g = await
|
|
7348
|
+
const g = await qc({ model: e, context: t }), y = await Jc({
|
|
7339
7349
|
predefinedExports: g,
|
|
7340
7350
|
fields: l.current,
|
|
7341
7351
|
onGetFieldChilds: d
|
|
@@ -7417,7 +7427,7 @@ const {
|
|
|
7417
7427
|
continue;
|
|
7418
7428
|
const s = Vo(o);
|
|
7419
7429
|
r.push({
|
|
7420
|
-
key:
|
|
7430
|
+
key: Uc({ key: i, parentKey: t }),
|
|
7421
7431
|
title: o.string,
|
|
7422
7432
|
tooltip: o.help,
|
|
7423
7433
|
required: o.required,
|
|
@@ -7425,7 +7435,7 @@ const {
|
|
|
7425
7435
|
});
|
|
7426
7436
|
}
|
|
7427
7437
|
return r;
|
|
7428
|
-
}, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
7438
|
+
}, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Uc = ({
|
|
7429
7439
|
parentKey: e,
|
|
7430
7440
|
key: t
|
|
7431
7441
|
}) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Rn = (e) => {
|
|
@@ -7433,10 +7443,10 @@ const {
|
|
|
7433
7443
|
return e;
|
|
7434
7444
|
const t = e.split("/");
|
|
7435
7445
|
return t[t.length - 1];
|
|
7436
|
-
}, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)],
|
|
7446
|
+
}, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Gc = ({
|
|
7437
7447
|
title: e,
|
|
7438
7448
|
parentTitle: t
|
|
7439
|
-
}) => `${t ? t + " \u2192 " : ""}${e}`,
|
|
7449
|
+
}) => `${t ? t + " \u2192 " : ""}${e}`, qc = async ({
|
|
7440
7450
|
model: e,
|
|
7441
7451
|
context: t
|
|
7442
7452
|
}) => {
|
|
@@ -7456,10 +7466,10 @@ const {
|
|
|
7456
7466
|
key: o.find((u) => u.id === a).name
|
|
7457
7467
|
}))
|
|
7458
7468
|
}));
|
|
7459
|
-
},
|
|
7469
|
+
}, zc = ({
|
|
7460
7470
|
fields: e,
|
|
7461
7471
|
keys: t
|
|
7462
|
-
}) =>
|
|
7472
|
+
}) => Xc([
|
|
7463
7473
|
...new Set(
|
|
7464
7474
|
t.filter((r) => {
|
|
7465
7475
|
var i, o, s;
|
|
@@ -7473,27 +7483,27 @@ const {
|
|
|
7473
7483
|
}
|
|
7474
7484
|
}).map((r) => Lt(r))
|
|
7475
7485
|
)
|
|
7476
|
-
]),
|
|
7486
|
+
]), Jc = async ({
|
|
7477
7487
|
predefinedExports: e,
|
|
7478
7488
|
fields: t,
|
|
7479
7489
|
onGetFieldChilds: r
|
|
7480
7490
|
}) => {
|
|
7481
7491
|
const i = e.flatMap(
|
|
7482
7492
|
(a) => a.fields.map((l) => l.key)
|
|
7483
|
-
), o =
|
|
7493
|
+
), o = zc({
|
|
7484
7494
|
fields: t,
|
|
7485
7495
|
keys: i
|
|
7486
7496
|
}), s = [];
|
|
7487
7497
|
for (const a of o)
|
|
7488
7498
|
s.push({ key: a, childs: await r(a) });
|
|
7489
7499
|
return s;
|
|
7490
|
-
},
|
|
7500
|
+
}, Zc = ({
|
|
7491
7501
|
keys: e,
|
|
7492
7502
|
fields: t
|
|
7493
7503
|
}) => e.map((r) => {
|
|
7494
7504
|
const i = Rn(r), s = kn(r, t)[i];
|
|
7495
7505
|
return Vo(s) ? `${r}/id` : r;
|
|
7496
|
-
}),
|
|
7506
|
+
}), Xc = (e) => {
|
|
7497
7507
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
7498
7508
|
for (const i of e) {
|
|
7499
7509
|
const o = i.split("/");
|
|
@@ -7507,7 +7517,7 @@ const {
|
|
|
7507
7517
|
const s = i.split("/").length, a = o.split("/").length;
|
|
7508
7518
|
return s - a;
|
|
7509
7519
|
}), r;
|
|
7510
|
-
},
|
|
7520
|
+
}, Qc = (e) => {
|
|
7511
7521
|
const {
|
|
7512
7522
|
visible: t,
|
|
7513
7523
|
locale: r,
|
|
@@ -7526,7 +7536,7 @@ const {
|
|
|
7526
7536
|
onGetPredefinedExports: p,
|
|
7527
7537
|
onSavePredefinedExport: h,
|
|
7528
7538
|
onRemovePredefinedExport: g
|
|
7529
|
-
} =
|
|
7539
|
+
} = Wc({
|
|
7530
7540
|
model: o,
|
|
7531
7541
|
context: s,
|
|
7532
7542
|
domain: u,
|
|
@@ -7549,14 +7559,14 @@ const {
|
|
|
7549
7559
|
onSavePredefinedExport: h,
|
|
7550
7560
|
onRemovePredefinedExport: g
|
|
7551
7561
|
});
|
|
7552
|
-
},
|
|
7562
|
+
}, ed = (e) => {
|
|
7553
7563
|
const {
|
|
7554
7564
|
ooui: t
|
|
7555
7565
|
} = e;
|
|
7556
7566
|
return /* @__PURE__ */ n(Co, {
|
|
7557
7567
|
ooui: t
|
|
7558
7568
|
});
|
|
7559
|
-
},
|
|
7569
|
+
}, td = (e) => {
|
|
7560
7570
|
const {
|
|
7561
7571
|
ooui: t
|
|
7562
7572
|
} = e;
|
|
@@ -7695,24 +7705,24 @@ var Ao = { exports: {} };
|
|
|
7695
7705
|
};
|
|
7696
7706
|
});
|
|
7697
7707
|
})(Ao);
|
|
7698
|
-
const
|
|
7699
|
-
dt.extend(
|
|
7700
|
-
const
|
|
7708
|
+
const nd = Ao.exports;
|
|
7709
|
+
dt.extend(nd);
|
|
7710
|
+
const rd = (e) => {
|
|
7701
7711
|
const {
|
|
7702
7712
|
ooui: t
|
|
7703
7713
|
} = e;
|
|
7704
7714
|
return /* @__PURE__ */ n(ve, {
|
|
7705
7715
|
...e,
|
|
7706
|
-
children: /* @__PURE__ */ n(
|
|
7716
|
+
children: /* @__PURE__ */ n(od, {
|
|
7707
7717
|
ooui: t
|
|
7708
7718
|
})
|
|
7709
7719
|
});
|
|
7710
|
-
},
|
|
7720
|
+
}, od = (e) => /* @__PURE__ */ n(Dr, {
|
|
7711
7721
|
onChange: (r, i) => {
|
|
7712
7722
|
e.onChange && e.onChange(i);
|
|
7713
7723
|
},
|
|
7714
7724
|
value: e.value ? dt(e.value, "HH:mm:ss") : void 0
|
|
7715
|
-
}),
|
|
7725
|
+
}), id = (e) => {
|
|
7716
7726
|
const {
|
|
7717
7727
|
ooui: t
|
|
7718
7728
|
} = e, {
|
|
@@ -7721,11 +7731,11 @@ const nd = (e) => {
|
|
|
7721
7731
|
return /* @__PURE__ */ n(ve, {
|
|
7722
7732
|
required: r,
|
|
7723
7733
|
...e,
|
|
7724
|
-
children: /* @__PURE__ */ n(
|
|
7734
|
+
children: /* @__PURE__ */ n(sd, {
|
|
7725
7735
|
ooui: t
|
|
7726
7736
|
})
|
|
7727
7737
|
});
|
|
7728
|
-
},
|
|
7738
|
+
}, sd = (e) => {
|
|
7729
7739
|
const {
|
|
7730
7740
|
value: t,
|
|
7731
7741
|
onChange: r,
|
|
@@ -7782,8 +7792,8 @@ const nd = (e) => {
|
|
|
7782
7792
|
})]
|
|
7783
7793
|
});
|
|
7784
7794
|
}, {
|
|
7785
|
-
useToken:
|
|
7786
|
-
} = Pe,
|
|
7795
|
+
useToken: ad
|
|
7796
|
+
} = Pe, ld = (e) => {
|
|
7787
7797
|
const {
|
|
7788
7798
|
ooui: t
|
|
7789
7799
|
} = e, {
|
|
@@ -7792,11 +7802,11 @@ const nd = (e) => {
|
|
|
7792
7802
|
return /* @__PURE__ */ n(ve, {
|
|
7793
7803
|
required: r,
|
|
7794
7804
|
...e,
|
|
7795
|
-
children: /* @__PURE__ */ n(
|
|
7805
|
+
children: /* @__PURE__ */ n(cd, {
|
|
7796
7806
|
ooui: t
|
|
7797
7807
|
})
|
|
7798
7808
|
});
|
|
7799
|
-
},
|
|
7809
|
+
}, cd = (e) => {
|
|
7800
7810
|
const {
|
|
7801
7811
|
ooui: t,
|
|
7802
7812
|
value: r,
|
|
@@ -7807,7 +7817,7 @@ const nd = (e) => {
|
|
|
7807
7817
|
filenameField: a
|
|
7808
7818
|
} = t, {
|
|
7809
7819
|
token: l
|
|
7810
|
-
} =
|
|
7820
|
+
} = ad(), u = s && !o ? {
|
|
7811
7821
|
backgroundColor: l.colorPrimaryBg
|
|
7812
7822
|
} : void 0, c = de(null), {
|
|
7813
7823
|
setFieldValue: f,
|
|
@@ -8071,13 +8081,13 @@ function Ro(e) {
|
|
|
8071
8081
|
});
|
|
8072
8082
|
}
|
|
8073
8083
|
const {
|
|
8074
|
-
confirm:
|
|
8075
|
-
} = Ge,
|
|
8084
|
+
confirm: dd
|
|
8085
|
+
} = Ge, ud = ({
|
|
8076
8086
|
onOk: e,
|
|
8077
8087
|
onCancel: t,
|
|
8078
8088
|
lang: r
|
|
8079
8089
|
}) => {
|
|
8080
|
-
|
|
8090
|
+
dd({
|
|
8081
8091
|
title: Oe("unsavedChanges", r),
|
|
8082
8092
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
8083
8093
|
centered: !0,
|
|
@@ -8103,7 +8113,7 @@ async function ko(e, t, r) {
|
|
|
8103
8113
|
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + u[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
8104
8114
|
}));
|
|
8105
8115
|
}
|
|
8106
|
-
const
|
|
8116
|
+
const fd = (e) => {
|
|
8107
8117
|
const {
|
|
8108
8118
|
numberOfAttachments: t,
|
|
8109
8119
|
disabled: r
|
|
@@ -8122,12 +8132,12 @@ const ud = (e) => {
|
|
|
8122
8132
|
onVisibleChange: (u) => a(u),
|
|
8123
8133
|
visible: s,
|
|
8124
8134
|
placement: "bottom",
|
|
8125
|
-
content:
|
|
8135
|
+
content: md(e, a, o),
|
|
8126
8136
|
title: i("attachments"),
|
|
8127
8137
|
arrowContent: null,
|
|
8128
8138
|
children: l
|
|
8129
8139
|
});
|
|
8130
|
-
},
|
|
8140
|
+
}, md = (e, t, r) => {
|
|
8131
8141
|
const {
|
|
8132
8142
|
attachments: i = [],
|
|
8133
8143
|
loading: o,
|
|
@@ -8213,7 +8223,7 @@ const ud = (e) => {
|
|
|
8213
8223
|
})]
|
|
8214
8224
|
});
|
|
8215
8225
|
};
|
|
8216
|
-
function
|
|
8226
|
+
function hd(e) {
|
|
8217
8227
|
const {
|
|
8218
8228
|
attachments: t,
|
|
8219
8229
|
disabled: r = !1,
|
|
@@ -8271,7 +8281,7 @@ function md(e) {
|
|
|
8271
8281
|
return pe(() => {
|
|
8272
8282
|
p();
|
|
8273
8283
|
}, [p]), /* @__PURE__ */ P(ne, {
|
|
8274
|
-
children: [/* @__PURE__ */ n(
|
|
8284
|
+
children: [/* @__PURE__ */ n(fd, {
|
|
8275
8285
|
numberOfAttachments: t.length,
|
|
8276
8286
|
attachments: c,
|
|
8277
8287
|
disabled: r,
|
|
@@ -8291,7 +8301,7 @@ function md(e) {
|
|
|
8291
8301
|
})]
|
|
8292
8302
|
});
|
|
8293
8303
|
}
|
|
8294
|
-
function
|
|
8304
|
+
function pd({
|
|
8295
8305
|
toolbar: e
|
|
8296
8306
|
}) {
|
|
8297
8307
|
const {
|
|
@@ -8330,7 +8340,7 @@ function hd({
|
|
|
8330
8340
|
} = R || {};
|
|
8331
8341
|
function M(L) {
|
|
8332
8342
|
if (s) {
|
|
8333
|
-
|
|
8343
|
+
ud({
|
|
8334
8344
|
lang: S,
|
|
8335
8345
|
onOk: () => {
|
|
8336
8346
|
L();
|
|
@@ -8524,7 +8534,7 @@ function hd({
|
|
|
8524
8534
|
action_type: L.type
|
|
8525
8535
|
});
|
|
8526
8536
|
}
|
|
8527
|
-
}), /* @__PURE__ */ n(
|
|
8537
|
+
}), /* @__PURE__ */ n(hd, {
|
|
8528
8538
|
disabled: z,
|
|
8529
8539
|
attachments: I,
|
|
8530
8540
|
onAddNewAttachment: async () => {
|
|
@@ -8589,7 +8599,7 @@ async function Ft({
|
|
|
8589
8599
|
};
|
|
8590
8600
|
}
|
|
8591
8601
|
const {
|
|
8592
|
-
useToken:
|
|
8602
|
+
useToken: gd
|
|
8593
8603
|
} = Pe, Mo = (e) => {
|
|
8594
8604
|
const {
|
|
8595
8605
|
ooui: t,
|
|
@@ -8603,7 +8613,7 @@ const {
|
|
|
8603
8613
|
required: u
|
|
8604
8614
|
} = t, {
|
|
8605
8615
|
token: c
|
|
8606
|
-
} =
|
|
8616
|
+
} = gd(), f = u && !l ? {
|
|
8607
8617
|
backgroundColor: c.colorPrimaryBg
|
|
8608
8618
|
} : void 0, d = Y(Ne), {
|
|
8609
8619
|
elementHasLostFocus: m
|
|
@@ -8666,7 +8676,7 @@ const {
|
|
|
8666
8676
|
})
|
|
8667
8677
|
})]
|
|
8668
8678
|
});
|
|
8669
|
-
},
|
|
8679
|
+
}, yd = (e) => {
|
|
8670
8680
|
const {
|
|
8671
8681
|
ooui: t
|
|
8672
8682
|
} = e, {
|
|
@@ -8680,7 +8690,7 @@ const {
|
|
|
8680
8690
|
valueValidator: (i) => i ? Pi(i) : !1
|
|
8681
8691
|
})
|
|
8682
8692
|
});
|
|
8683
|
-
},
|
|
8693
|
+
}, vd = (e) => {
|
|
8684
8694
|
const {
|
|
8685
8695
|
ooui: t
|
|
8686
8696
|
} = e, {
|
|
@@ -8695,7 +8705,7 @@ const {
|
|
|
8695
8705
|
valueValidator: (i) => i ? Hi(i) : !1
|
|
8696
8706
|
})
|
|
8697
8707
|
});
|
|
8698
|
-
},
|
|
8708
|
+
}, wd = (e) => {
|
|
8699
8709
|
const {
|
|
8700
8710
|
visible: t,
|
|
8701
8711
|
onIdSubmitted: r,
|
|
@@ -8765,7 +8775,7 @@ const {
|
|
|
8765
8775
|
})
|
|
8766
8776
|
});
|
|
8767
8777
|
}, {
|
|
8768
|
-
useToken:
|
|
8778
|
+
useToken: bd
|
|
8769
8779
|
} = Pe;
|
|
8770
8780
|
function Eo(e) {
|
|
8771
8781
|
const {
|
|
@@ -8773,7 +8783,7 @@ function Eo(e) {
|
|
|
8773
8783
|
...r
|
|
8774
8784
|
} = e, {
|
|
8775
8785
|
token: i
|
|
8776
|
-
} =
|
|
8786
|
+
} = bd();
|
|
8777
8787
|
return /* @__PURE__ */ P("div", {
|
|
8778
8788
|
style: {
|
|
8779
8789
|
position: "relative"
|
|
@@ -8807,7 +8817,7 @@ function Eo(e) {
|
|
|
8807
8817
|
})]
|
|
8808
8818
|
});
|
|
8809
8819
|
}
|
|
8810
|
-
function
|
|
8820
|
+
function xd({
|
|
8811
8821
|
refreshGraph: e
|
|
8812
8822
|
}) {
|
|
8813
8823
|
const {
|
|
@@ -8858,9 +8868,9 @@ function bd({
|
|
|
8858
8868
|
});
|
|
8859
8869
|
}
|
|
8860
8870
|
const {
|
|
8861
|
-
useToken:
|
|
8871
|
+
useToken: Cd
|
|
8862
8872
|
} = Pe, {
|
|
8863
|
-
Title:
|
|
8873
|
+
Title: Sd,
|
|
8864
8874
|
Text: Xt
|
|
8865
8875
|
} = an;
|
|
8866
8876
|
function yn(e) {
|
|
@@ -8879,7 +8889,7 @@ function yn(e) {
|
|
|
8879
8889
|
t: f
|
|
8880
8890
|
} = Y(we), {
|
|
8881
8891
|
token: d
|
|
8882
|
-
} =
|
|
8892
|
+
} = Cd();
|
|
8883
8893
|
function m() {
|
|
8884
8894
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8885
8895
|
return s ? u === 0 ? /* @__PURE__ */ P(ne, {
|
|
@@ -8934,7 +8944,7 @@ function yn(e) {
|
|
|
8934
8944
|
align: "middle",
|
|
8935
8945
|
children: [/* @__PURE__ */ P(le, {
|
|
8936
8946
|
flex: 2,
|
|
8937
|
-
children: [/* @__PURE__ */ n(
|
|
8947
|
+
children: [/* @__PURE__ */ n(Sd, {
|
|
8938
8948
|
level: 3,
|
|
8939
8949
|
style: {
|
|
8940
8950
|
marginBottom: 0
|
|
@@ -8953,7 +8963,7 @@ function yn(e) {
|
|
|
8953
8963
|
})]
|
|
8954
8964
|
});
|
|
8955
8965
|
}
|
|
8956
|
-
const
|
|
8966
|
+
const Td = (e) => {
|
|
8957
8967
|
const {
|
|
8958
8968
|
viewData: t,
|
|
8959
8969
|
visible: r,
|
|
@@ -9021,7 +9031,7 @@ const Sd = (e) => {
|
|
|
9021
9031
|
return !r || !t ? null : /* @__PURE__ */ P(ne, {
|
|
9022
9032
|
children: [/* @__PURE__ */ n(yn, {
|
|
9023
9033
|
title: t.name,
|
|
9024
|
-
children: /* @__PURE__ */ n(
|
|
9034
|
+
children: /* @__PURE__ */ n(xd, {
|
|
9025
9035
|
refreshGraph: () => {
|
|
9026
9036
|
u.current.refresh();
|
|
9027
9037
|
}
|
|
@@ -9054,7 +9064,7 @@ const Sd = (e) => {
|
|
|
9054
9064
|
manualIds: R ? v == null ? void 0 : v.map((j) => j.id) : void 0
|
|
9055
9065
|
})]
|
|
9056
9066
|
});
|
|
9057
|
-
},
|
|
9067
|
+
}, Fd = (e) => {
|
|
9058
9068
|
const {
|
|
9059
9069
|
visible: t,
|
|
9060
9070
|
formRef: r,
|
|
@@ -9071,7 +9081,7 @@ const Sd = (e) => {
|
|
|
9071
9081
|
} = e;
|
|
9072
9082
|
return t ? /* @__PURE__ */ P(ne, {
|
|
9073
9083
|
children: [/* @__PURE__ */ n(yn, {
|
|
9074
|
-
children: /* @__PURE__ */ n(
|
|
9084
|
+
children: /* @__PURE__ */ n(pd, {
|
|
9075
9085
|
toolbar: a == null ? void 0 : a.toolbar
|
|
9076
9086
|
})
|
|
9077
9087
|
}), /* @__PURE__ */ n(Ut, {
|
|
@@ -9090,7 +9100,7 @@ const Sd = (e) => {
|
|
|
9090
9100
|
})]
|
|
9091
9101
|
}) : null;
|
|
9092
9102
|
};
|
|
9093
|
-
function
|
|
9103
|
+
function Od(e) {
|
|
9094
9104
|
const {
|
|
9095
9105
|
onSearch: t,
|
|
9096
9106
|
disabled: r = !1,
|
|
@@ -9157,10 +9167,10 @@ function Fd(e) {
|
|
|
9157
9167
|
})
|
|
9158
9168
|
});
|
|
9159
9169
|
}
|
|
9160
|
-
const
|
|
9170
|
+
const _d = Je.createContext({
|
|
9161
9171
|
previewFeatures: !1
|
|
9162
9172
|
});
|
|
9163
|
-
function
|
|
9173
|
+
function Id(e) {
|
|
9164
9174
|
var z;
|
|
9165
9175
|
const {
|
|
9166
9176
|
availableViews: t,
|
|
@@ -9192,7 +9202,7 @@ function _d(e) {
|
|
|
9192
9202
|
toolbar: S
|
|
9193
9203
|
} = e, {
|
|
9194
9204
|
previewFeatures: x
|
|
9195
|
-
} = Y(
|
|
9205
|
+
} = Y(_d), {
|
|
9196
9206
|
t: $,
|
|
9197
9207
|
lang: R
|
|
9198
9208
|
} = Y(we), F = Y(Et), {
|
|
@@ -9262,7 +9272,7 @@ function _d(e) {
|
|
|
9262
9272
|
children: [O && /* @__PURE__ */ P(ne, {
|
|
9263
9273
|
children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
|
|
9264
9274
|
}), C ? null : /* @__PURE__ */ P(ne, {
|
|
9265
|
-
children: [/* @__PURE__ */ n(
|
|
9275
|
+
children: [/* @__PURE__ */ n(Od, {
|
|
9266
9276
|
disabled: l || a || O,
|
|
9267
9277
|
searchText: y,
|
|
9268
9278
|
onSearch: (U) => {
|
|
@@ -9401,7 +9411,7 @@ function _d(e) {
|
|
|
9401
9411
|
_(!0);
|
|
9402
9412
|
},
|
|
9403
9413
|
disabled: l || a || O || N
|
|
9404
|
-
}), /* @__PURE__ */ n(
|
|
9414
|
+
}), /* @__PURE__ */ n(Qc, {
|
|
9405
9415
|
visible: M,
|
|
9406
9416
|
locale: R,
|
|
9407
9417
|
onClose: () => _(!1),
|
|
@@ -9421,7 +9431,7 @@ function vt() {
|
|
|
9421
9431
|
className: "inline-block w-2"
|
|
9422
9432
|
});
|
|
9423
9433
|
}
|
|
9424
|
-
const
|
|
9434
|
+
const Dd = (e) => {
|
|
9425
9435
|
const {
|
|
9426
9436
|
visible: t,
|
|
9427
9437
|
searchTreeRef: r,
|
|
@@ -9442,7 +9452,7 @@ const Id = (e) => {
|
|
|
9442
9452
|
} = Y(Qe);
|
|
9443
9453
|
return t ? /* @__PURE__ */ P(ne, {
|
|
9444
9454
|
children: [/* @__PURE__ */ n(yn, {
|
|
9445
|
-
children: /* @__PURE__ */ n(
|
|
9455
|
+
children: /* @__PURE__ */ n(Id, {
|
|
9446
9456
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9447
9457
|
parentContext: o,
|
|
9448
9458
|
treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
|
|
@@ -9468,7 +9478,7 @@ const Id = (e) => {
|
|
|
9468
9478
|
}
|
|
9469
9479
|
})]
|
|
9470
9480
|
}) : null;
|
|
9471
|
-
}, Xn = Je.createContext(null),
|
|
9481
|
+
}, Xn = Je.createContext(null), Vd = (e) => {
|
|
9472
9482
|
const [t, r] = T(!1), [i, o] = T(!1), {
|
|
9473
9483
|
children: s,
|
|
9474
9484
|
dashboardRef: a,
|
|
@@ -9486,7 +9496,7 @@ const Id = (e) => {
|
|
|
9486
9496
|
children: s
|
|
9487
9497
|
});
|
|
9488
9498
|
};
|
|
9489
|
-
function
|
|
9499
|
+
function Ad() {
|
|
9490
9500
|
const {
|
|
9491
9501
|
isLoading: e,
|
|
9492
9502
|
dashboardRef: t,
|
|
@@ -9510,7 +9520,7 @@ function Vd() {
|
|
|
9510
9520
|
onClick: () => {
|
|
9511
9521
|
i(!r);
|
|
9512
9522
|
}
|
|
9513
|
-
}),
|
|
9523
|
+
}), Rd(), /* @__PURE__ */ n(qe, {
|
|
9514
9524
|
icon: /* @__PURE__ */ n(Oi, {}),
|
|
9515
9525
|
tooltip: o("configDashboard"),
|
|
9516
9526
|
disabled: e,
|
|
@@ -9529,25 +9539,25 @@ function Vd() {
|
|
|
9529
9539
|
})]
|
|
9530
9540
|
});
|
|
9531
9541
|
}
|
|
9532
|
-
function
|
|
9542
|
+
function Rd() {
|
|
9533
9543
|
return /* @__PURE__ */ n("div", {
|
|
9534
9544
|
className: "inline-block w-2"
|
|
9535
9545
|
});
|
|
9536
9546
|
}
|
|
9537
|
-
const
|
|
9547
|
+
const kd = (e) => {
|
|
9538
9548
|
const {
|
|
9539
9549
|
dashboardData: t
|
|
9540
9550
|
} = e, r = de(), i = Y(st), {
|
|
9541
9551
|
openShortcut: o
|
|
9542
9552
|
} = i || {};
|
|
9543
|
-
return t ? /* @__PURE__ */ P(
|
|
9553
|
+
return t ? /* @__PURE__ */ P(Vd, {
|
|
9544
9554
|
dashboardRef: r,
|
|
9545
9555
|
openAction: (s) => {
|
|
9546
9556
|
o(s);
|
|
9547
9557
|
},
|
|
9548
9558
|
children: [/* @__PURE__ */ n(yn, {
|
|
9549
|
-
children: /* @__PURE__ */ n(
|
|
9550
|
-
}), /* @__PURE__ */ n(
|
|
9559
|
+
children: /* @__PURE__ */ n(Ad, {})
|
|
9560
|
+
}), /* @__PURE__ */ n(Ud, {
|
|
9551
9561
|
ref: r,
|
|
9552
9562
|
model: t.model,
|
|
9553
9563
|
id: t.id,
|
|
@@ -9556,7 +9566,7 @@ const Rd = (e) => {
|
|
|
9556
9566
|
})]
|
|
9557
9567
|
}) : null;
|
|
9558
9568
|
};
|
|
9559
|
-
async function
|
|
9569
|
+
async function Md(e) {
|
|
9560
9570
|
const t = await Promise.all(
|
|
9561
9571
|
e.map(async (i) => {
|
|
9562
9572
|
try {
|
|
@@ -9571,7 +9581,7 @@ async function kd(e) {
|
|
|
9571
9581
|
info: t[o]
|
|
9572
9582
|
})).filter((i) => i.info !== null);
|
|
9573
9583
|
}
|
|
9574
|
-
function
|
|
9584
|
+
function Ed(e, t) {
|
|
9575
9585
|
const {
|
|
9576
9586
|
domain: r,
|
|
9577
9587
|
model: i,
|
|
@@ -9627,7 +9637,7 @@ function Md(e, t) {
|
|
|
9627
9637
|
viewTuple: me
|
|
9628
9638
|
});
|
|
9629
9639
|
}
|
|
9630
|
-
const Ee = await
|
|
9640
|
+
const Ee = await Md(Fe);
|
|
9631
9641
|
for (const me of Ee) {
|
|
9632
9642
|
if (!me)
|
|
9633
9643
|
continue;
|
|
@@ -9742,7 +9752,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9742
9752
|
return I.map((te) => {
|
|
9743
9753
|
switch (te.type) {
|
|
9744
9754
|
case "form":
|
|
9745
|
-
return /* @__PURE__ */ n(
|
|
9755
|
+
return /* @__PURE__ */ n(Fd, {
|
|
9746
9756
|
formRef: ee,
|
|
9747
9757
|
currentId: b,
|
|
9748
9758
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
@@ -9757,7 +9767,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9757
9767
|
setCurrentItemIndex: R
|
|
9758
9768
|
}, `${te.type}-${te.view_id}`);
|
|
9759
9769
|
case "tree":
|
|
9760
|
-
return /* @__PURE__ */ n(
|
|
9770
|
+
return /* @__PURE__ */ n(Dd, {
|
|
9761
9771
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
9762
9772
|
limit: g,
|
|
9763
9773
|
model: i,
|
|
@@ -9774,7 +9784,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9774
9784
|
setCurrentView: ge
|
|
9775
9785
|
}, `${te.type}-${te.view_id}`);
|
|
9776
9786
|
case "graph":
|
|
9777
|
-
return /* @__PURE__ */ n(
|
|
9787
|
+
return /* @__PURE__ */ n(Td, {
|
|
9778
9788
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
9779
9789
|
viewData: te,
|
|
9780
9790
|
model: i,
|
|
@@ -9784,7 +9794,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9784
9794
|
formView: I.find((Fe) => Fe.type === "form")
|
|
9785
9795
|
}, `${te.type}-${te.view_id}`);
|
|
9786
9796
|
case "dashboard":
|
|
9787
|
-
return /* @__PURE__ */ n(
|
|
9797
|
+
return /* @__PURE__ */ n(kd, {
|
|
9788
9798
|
dashboardData: te
|
|
9789
9799
|
}, `${te.type}-${te.view_id}`);
|
|
9790
9800
|
}
|
|
@@ -9799,7 +9809,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9799
9809
|
ge(te);
|
|
9800
9810
|
}
|
|
9801
9811
|
}
|
|
9802
|
-
return V ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ P(
|
|
9812
|
+
return V ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ P(dl, {
|
|
9803
9813
|
title: a,
|
|
9804
9814
|
currentView: y,
|
|
9805
9815
|
setCurrentView: ge,
|
|
@@ -9824,7 +9834,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9824
9834
|
searchTreeNameSearch: U,
|
|
9825
9835
|
goToResourceId: Ve,
|
|
9826
9836
|
limit: g,
|
|
9827
|
-
children: [je(), /* @__PURE__ */ n(
|
|
9837
|
+
children: [je(), /* @__PURE__ */ n(wd, {
|
|
9828
9838
|
visible: j,
|
|
9829
9839
|
onIdSubmitted: Ve,
|
|
9830
9840
|
isSearching: W,
|
|
@@ -9834,8 +9844,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9834
9844
|
})]
|
|
9835
9845
|
}) : null;
|
|
9836
9846
|
}
|
|
9837
|
-
const $o = bt(
|
|
9838
|
-
async function
|
|
9847
|
+
const $o = bt(Ed);
|
|
9848
|
+
async function $d({
|
|
9839
9849
|
actionId: e,
|
|
9840
9850
|
rootContext: t = {},
|
|
9841
9851
|
globalValues: r = {}
|
|
@@ -9887,7 +9897,7 @@ async function Ed({
|
|
|
9887
9897
|
treeExpandable: v
|
|
9888
9898
|
};
|
|
9889
9899
|
}
|
|
9890
|
-
const
|
|
9900
|
+
const Ld = Yi(Wi), Nd = (e) => {
|
|
9891
9901
|
const {
|
|
9892
9902
|
children: t = [],
|
|
9893
9903
|
onPositionItemsChanged: r
|
|
@@ -9901,7 +9911,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9901
9911
|
children: o
|
|
9902
9912
|
}, a);
|
|
9903
9913
|
});
|
|
9904
|
-
return /* @__PURE__ */ n(
|
|
9914
|
+
return /* @__PURE__ */ n(Ld, {
|
|
9905
9915
|
className: "layout",
|
|
9906
9916
|
cols: {
|
|
9907
9917
|
lg: 12,
|
|
@@ -9924,10 +9934,10 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9924
9934
|
children: i
|
|
9925
9935
|
});
|
|
9926
9936
|
}, {
|
|
9927
|
-
useToken:
|
|
9937
|
+
useToken: Pd
|
|
9928
9938
|
} = Pe, {
|
|
9929
|
-
Text:
|
|
9930
|
-
} = an,
|
|
9939
|
+
Text: Hd
|
|
9940
|
+
} = an, Bd = (e) => {
|
|
9931
9941
|
const {
|
|
9932
9942
|
title: t,
|
|
9933
9943
|
children: r,
|
|
@@ -9935,7 +9945,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9935
9945
|
openAction: o
|
|
9936
9946
|
} = e, {
|
|
9937
9947
|
token: s
|
|
9938
|
-
} =
|
|
9948
|
+
} = Pd();
|
|
9939
9949
|
return /* @__PURE__ */ P("div", {
|
|
9940
9950
|
className: "shadow-md",
|
|
9941
9951
|
style: {
|
|
@@ -9963,7 +9973,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9963
9973
|
cursor: "grab",
|
|
9964
9974
|
overflow: "hidden"
|
|
9965
9975
|
},
|
|
9966
|
-
children: /* @__PURE__ */ n(
|
|
9976
|
+
children: /* @__PURE__ */ n(Hd, {
|
|
9967
9977
|
ellipsis: !0,
|
|
9968
9978
|
children: t
|
|
9969
9979
|
})
|
|
@@ -9987,8 +9997,8 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9987
9997
|
})]
|
|
9988
9998
|
}), r]
|
|
9989
9999
|
});
|
|
9990
|
-
},
|
|
9991
|
-
function
|
|
10000
|
+
}, jd = 80;
|
|
10001
|
+
function Kd(e) {
|
|
9992
10002
|
const {
|
|
9993
10003
|
action: t,
|
|
9994
10004
|
model: r,
|
|
@@ -9997,7 +10007,7 @@ function jd(e) {
|
|
|
9997
10007
|
domain: s = [],
|
|
9998
10008
|
visible: a = !0,
|
|
9999
10009
|
parentContext: l = {}
|
|
10000
|
-
} = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [O, I] = T(1), [w, V] = T(0), D = de(
|
|
10010
|
+
} = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [O, I] = T(1), [w, V] = T(0), D = de(jd), E = de([]), [b, C] = T(0), [S, x] = T([]), [$, R] = T(void 0), [F, A] = T(), [M, _] = T(), [N, k] = T(), [j, q] = T(!1), W = de([]), z = (J) => {
|
|
10001
10011
|
q(!0), I(J), V((J - 1) * D.current);
|
|
10002
10012
|
}, U = async () => {
|
|
10003
10013
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
@@ -10129,7 +10139,7 @@ function jd(e) {
|
|
|
10129
10139
|
}
|
|
10130
10140
|
}) : Q();
|
|
10131
10141
|
}
|
|
10132
|
-
const
|
|
10142
|
+
const Yd = (e) => {
|
|
10133
10143
|
const {
|
|
10134
10144
|
model: t
|
|
10135
10145
|
} = e, [r, i] = T();
|
|
@@ -10157,7 +10167,7 @@ const Kd = (e) => {
|
|
|
10157
10167
|
})
|
|
10158
10168
|
});
|
|
10159
10169
|
}, On = "line_ids";
|
|
10160
|
-
function
|
|
10170
|
+
function Wd(e, t) {
|
|
10161
10171
|
const {
|
|
10162
10172
|
model: r,
|
|
10163
10173
|
context: i = {},
|
|
@@ -10237,7 +10247,7 @@ function Yd(e, t) {
|
|
|
10237
10247
|
values: x
|
|
10238
10248
|
} = S;
|
|
10239
10249
|
if (x.action_id && x.action_id.length > 0) {
|
|
10240
|
-
const $ = parseInt(x.action_id[0], 10), R = await
|
|
10250
|
+
const $ = parseInt(x.action_id[0], 10), R = await $d({
|
|
10241
10251
|
actionId: $,
|
|
10242
10252
|
rootContext: i
|
|
10243
10253
|
});
|
|
@@ -10302,7 +10312,7 @@ function Yd(e, t) {
|
|
|
10302
10312
|
message: f,
|
|
10303
10313
|
type: "error",
|
|
10304
10314
|
banner: !0
|
|
10305
|
-
})) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(
|
|
10315
|
+
})) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Nd, {
|
|
10306
10316
|
onPositionItemsChanged: D,
|
|
10307
10317
|
children: a.map((b, C) => {
|
|
10308
10318
|
const {
|
|
@@ -10344,12 +10354,12 @@ function Yd(e, t) {
|
|
|
10344
10354
|
limit: z
|
|
10345
10355
|
});
|
|
10346
10356
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
10347
|
-
L = /* @__PURE__ */ n(
|
|
10357
|
+
L = /* @__PURE__ */ n(Yd, {
|
|
10348
10358
|
model: k,
|
|
10349
10359
|
actionDomain: q
|
|
10350
10360
|
});
|
|
10351
10361
|
else if ((W == null ? void 0 : W.type) === "tree")
|
|
10352
|
-
L = /* @__PURE__ */ n(
|
|
10362
|
+
L = /* @__PURE__ */ n(Kd, {
|
|
10353
10363
|
model: k,
|
|
10354
10364
|
domain: q,
|
|
10355
10365
|
view_id: N.filter((Z) => Z[1] === "tree")[0][0],
|
|
@@ -10419,7 +10429,7 @@ function Yd(e, t) {
|
|
|
10419
10429
|
view_type: ie
|
|
10420
10430
|
};
|
|
10421
10431
|
}
|
|
10422
|
-
return /* @__PURE__ */ n(
|
|
10432
|
+
return /* @__PURE__ */ n(Bd, {
|
|
10423
10433
|
id: R,
|
|
10424
10434
|
title: _,
|
|
10425
10435
|
parms: U,
|
|
@@ -10430,18 +10440,18 @@ function Yd(e, t) {
|
|
|
10430
10440
|
})
|
|
10431
10441
|
});
|
|
10432
10442
|
}
|
|
10433
|
-
const
|
|
10443
|
+
const Ud = bt(Wd), Gd = (e) => {
|
|
10434
10444
|
const {
|
|
10435
10445
|
ooui: t
|
|
10436
10446
|
} = e;
|
|
10437
10447
|
return /* @__PURE__ */ n(ve, {
|
|
10438
10448
|
type: "array",
|
|
10439
10449
|
...e,
|
|
10440
|
-
children: /* @__PURE__ */ n(
|
|
10450
|
+
children: /* @__PURE__ */ n(qd, {
|
|
10441
10451
|
ooui: t
|
|
10442
10452
|
})
|
|
10443
10453
|
});
|
|
10444
|
-
},
|
|
10454
|
+
}, qd = (e) => {
|
|
10445
10455
|
const {
|
|
10446
10456
|
value: t,
|
|
10447
10457
|
ooui: r,
|
|
@@ -10562,12 +10572,12 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10562
10572
|
})]
|
|
10563
10573
|
})
|
|
10564
10574
|
});
|
|
10565
|
-
},
|
|
10575
|
+
}, zd = (e) => /* @__PURE__ */ n(ve, {
|
|
10566
10576
|
...e,
|
|
10567
|
-
children: /* @__PURE__ */ n(
|
|
10577
|
+
children: /* @__PURE__ */ n(Jd, {
|
|
10568
10578
|
...e
|
|
10569
10579
|
})
|
|
10570
|
-
}),
|
|
10580
|
+
}), Jd = (e) => {
|
|
10571
10581
|
const {
|
|
10572
10582
|
value: t,
|
|
10573
10583
|
ooui: r
|
|
@@ -10582,7 +10592,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10582
10592
|
className: "ant-typography"
|
|
10583
10593
|
})
|
|
10584
10594
|
});
|
|
10585
|
-
},
|
|
10595
|
+
}, Zd = (e) => {
|
|
10586
10596
|
const {
|
|
10587
10597
|
ooui: t
|
|
10588
10598
|
} = e, {
|
|
@@ -10592,11 +10602,11 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10592
10602
|
required: r,
|
|
10593
10603
|
type: "any",
|
|
10594
10604
|
...e,
|
|
10595
|
-
children: /* @__PURE__ */ n(
|
|
10605
|
+
children: /* @__PURE__ */ n(Xd, {
|
|
10596
10606
|
...e
|
|
10597
10607
|
})
|
|
10598
10608
|
});
|
|
10599
|
-
},
|
|
10609
|
+
}, Xd = (e) => {
|
|
10600
10610
|
const {
|
|
10601
10611
|
ooui: t,
|
|
10602
10612
|
onChange: r,
|
|
@@ -10621,7 +10631,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10621
10631
|
children: u
|
|
10622
10632
|
})
|
|
10623
10633
|
});
|
|
10624
|
-
},
|
|
10634
|
+
}, Qd = (e) => {
|
|
10625
10635
|
const {
|
|
10626
10636
|
ooui: t
|
|
10627
10637
|
} = e, {
|
|
@@ -10632,13 +10642,13 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10632
10642
|
return /* @__PURE__ */ n(ve, {
|
|
10633
10643
|
...e,
|
|
10634
10644
|
valuePropName: "checked",
|
|
10635
|
-
children: /* @__PURE__ */ n(
|
|
10645
|
+
children: /* @__PURE__ */ n(eu, {
|
|
10636
10646
|
id: r,
|
|
10637
10647
|
readOnly: i,
|
|
10638
10648
|
required: o
|
|
10639
10649
|
})
|
|
10640
10650
|
});
|
|
10641
|
-
},
|
|
10651
|
+
}, eu = (e) => {
|
|
10642
10652
|
const {
|
|
10643
10653
|
required: t,
|
|
10644
10654
|
readOnly: r,
|
|
@@ -10651,7 +10661,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10651
10661
|
...i
|
|
10652
10662
|
})
|
|
10653
10663
|
});
|
|
10654
|
-
},
|
|
10664
|
+
}, tu = (e) => {
|
|
10655
10665
|
const {
|
|
10656
10666
|
ooui: t
|
|
10657
10667
|
} = e, {
|
|
@@ -10661,11 +10671,11 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10661
10671
|
required: r,
|
|
10662
10672
|
type: "any",
|
|
10663
10673
|
...e,
|
|
10664
|
-
children: /* @__PURE__ */ n(
|
|
10674
|
+
children: /* @__PURE__ */ n(nu, {
|
|
10665
10675
|
...e
|
|
10666
10676
|
})
|
|
10667
10677
|
});
|
|
10668
|
-
},
|
|
10678
|
+
}, nu = (e) => {
|
|
10669
10679
|
const {
|
|
10670
10680
|
ooui: t,
|
|
10671
10681
|
value: r
|
|
@@ -10682,7 +10692,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10682
10692
|
description: d === l && u === "error" ? c : null
|
|
10683
10693
|
}))
|
|
10684
10694
|
});
|
|
10685
|
-
},
|
|
10695
|
+
}, ru = (e) => {
|
|
10686
10696
|
const {
|
|
10687
10697
|
ooui: t
|
|
10688
10698
|
} = e, {
|
|
@@ -10702,23 +10712,23 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10702
10712
|
})
|
|
10703
10713
|
});
|
|
10704
10714
|
}, {
|
|
10705
|
-
Content:
|
|
10715
|
+
Content: ou
|
|
10706
10716
|
} = li, {
|
|
10707
|
-
Title:
|
|
10717
|
+
Title: iu
|
|
10708
10718
|
} = an;
|
|
10709
|
-
function
|
|
10719
|
+
function su() {
|
|
10710
10720
|
const {
|
|
10711
10721
|
t: e
|
|
10712
10722
|
} = Y(we);
|
|
10713
|
-
return /* @__PURE__ */ n(
|
|
10723
|
+
return /* @__PURE__ */ n(ou, {
|
|
10714
10724
|
className: "m-5 select-none",
|
|
10715
|
-
children: /* @__PURE__ */ n(
|
|
10725
|
+
children: /* @__PURE__ */ n(iu, {
|
|
10716
10726
|
level: 5,
|
|
10717
10727
|
children: e("welcome")
|
|
10718
10728
|
})
|
|
10719
10729
|
});
|
|
10720
10730
|
}
|
|
10721
|
-
function
|
|
10731
|
+
function au(e, t) {
|
|
10722
10732
|
const {
|
|
10723
10733
|
children: r,
|
|
10724
10734
|
globalValues: i = {},
|
|
@@ -10728,7 +10738,7 @@ function su(e, t) {
|
|
|
10728
10738
|
title: Oe("welcome", s),
|
|
10729
10739
|
key: "welcome",
|
|
10730
10740
|
closable: !0,
|
|
10731
|
-
content: /* @__PURE__ */ n(
|
|
10741
|
+
content: /* @__PURE__ */ n(su, {})
|
|
10732
10742
|
}]), f = de(/* @__PURE__ */ new Map()), d = de();
|
|
10733
10743
|
xt(t, () => ({
|
|
10734
10744
|
retrieveAndOpenAction: p,
|
|
@@ -11082,7 +11092,7 @@ function su(e, t) {
|
|
|
11082
11092
|
}
|
|
11083
11093
|
return /* @__PURE__ */ n(es, {
|
|
11084
11094
|
lang: s,
|
|
11085
|
-
children: /* @__PURE__ */ n(
|
|
11095
|
+
children: /* @__PURE__ */ n(ul, {
|
|
11086
11096
|
openShortcut: y,
|
|
11087
11097
|
openAction: I,
|
|
11088
11098
|
openRelate: g,
|
|
@@ -11096,7 +11106,7 @@ function su(e, t) {
|
|
|
11096
11106
|
onChangeTab: (w) => {
|
|
11097
11107
|
l(w);
|
|
11098
11108
|
},
|
|
11099
|
-
children: /* @__PURE__ */ n(
|
|
11109
|
+
children: /* @__PURE__ */ n(hl, {
|
|
11100
11110
|
ref: d,
|
|
11101
11111
|
globalValues: i,
|
|
11102
11112
|
children: r
|
|
@@ -11104,10 +11114,10 @@ function su(e, t) {
|
|
|
11104
11114
|
})
|
|
11105
11115
|
});
|
|
11106
11116
|
}
|
|
11107
|
-
const
|
|
11108
|
-
useToken:
|
|
11117
|
+
const Nu = bt(au), {
|
|
11118
|
+
useToken: lu
|
|
11109
11119
|
} = Pe;
|
|
11110
|
-
function
|
|
11120
|
+
function cu(e) {
|
|
11111
11121
|
const {
|
|
11112
11122
|
label: t,
|
|
11113
11123
|
onClose: r,
|
|
@@ -11116,7 +11126,7 @@ function lu(e) {
|
|
|
11116
11126
|
onSelected: s
|
|
11117
11127
|
} = e, {
|
|
11118
11128
|
token: a
|
|
11119
|
-
} =
|
|
11129
|
+
} = lu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
11120
11130
|
return /* @__PURE__ */ P("div", {
|
|
11121
11131
|
onClick: () => {
|
|
11122
11132
|
!o && s(i);
|
|
@@ -11171,7 +11181,7 @@ function lu(e) {
|
|
|
11171
11181
|
})]
|
|
11172
11182
|
});
|
|
11173
11183
|
}
|
|
11174
|
-
function
|
|
11184
|
+
function Pu() {
|
|
11175
11185
|
const e = Y(st), {
|
|
11176
11186
|
activeKey: t,
|
|
11177
11187
|
tabs: r,
|
|
@@ -11179,7 +11189,7 @@ function Nu() {
|
|
|
11179
11189
|
onChangeTab: o
|
|
11180
11190
|
} = e || {};
|
|
11181
11191
|
return /* @__PURE__ */ n(ne, {
|
|
11182
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
11192
|
+
children: r.map((s) => /* @__PURE__ */ n(cu, {
|
|
11183
11193
|
tabKey: s.key,
|
|
11184
11194
|
label: s.title,
|
|
11185
11195
|
onClose: i,
|
|
@@ -11188,7 +11198,7 @@ function Nu() {
|
|
|
11188
11198
|
}, s.key))
|
|
11189
11199
|
});
|
|
11190
11200
|
}
|
|
11191
|
-
function
|
|
11201
|
+
function du(e) {
|
|
11192
11202
|
const {
|
|
11193
11203
|
tab: t
|
|
11194
11204
|
} = e, r = Y(st), {
|
|
@@ -11201,11 +11211,11 @@ function cu(e) {
|
|
|
11201
11211
|
children: t.content
|
|
11202
11212
|
});
|
|
11203
11213
|
}
|
|
11204
|
-
const
|
|
11205
|
-
function
|
|
11214
|
+
const uu = Je.memo(du, () => !0);
|
|
11215
|
+
function Hu() {
|
|
11206
11216
|
const e = Y(st), {
|
|
11207
11217
|
tabs: t
|
|
11208
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
11218
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(uu, {
|
|
11209
11219
|
tab: i
|
|
11210
11220
|
}, i.key))) || null;
|
|
11211
11221
|
return /* @__PURE__ */ n(ne, {
|
|
@@ -11213,8 +11223,8 @@ function Pu() {
|
|
|
11213
11223
|
});
|
|
11214
11224
|
}
|
|
11215
11225
|
const {
|
|
11216
|
-
useToken:
|
|
11217
|
-
} = Pe,
|
|
11226
|
+
useToken: fu
|
|
11227
|
+
} = Pe, Bu = (e) => {
|
|
11218
11228
|
const {
|
|
11219
11229
|
onRetrieveShortcuts: t,
|
|
11220
11230
|
onCheckIsFavourite: r,
|
|
@@ -11224,7 +11234,7 @@ const {
|
|
|
11224
11234
|
t: h
|
|
11225
11235
|
} = Y(we) || {}, {
|
|
11226
11236
|
token: g
|
|
11227
|
-
} =
|
|
11237
|
+
} = fu(), y = Y(st), {
|
|
11228
11238
|
openShortcut: O,
|
|
11229
11239
|
tabs: I,
|
|
11230
11240
|
activeKey: w,
|
|
@@ -11411,57 +11421,57 @@ const {
|
|
|
11411
11421
|
});
|
|
11412
11422
|
};
|
|
11413
11423
|
export {
|
|
11414
|
-
|
|
11415
|
-
|
|
11424
|
+
pd as ActionBar,
|
|
11425
|
+
ld as Binary,
|
|
11416
11426
|
ws as Boolean,
|
|
11417
11427
|
Jr as Button,
|
|
11418
11428
|
os as ButtonGroup,
|
|
11419
11429
|
Qr as Char,
|
|
11420
|
-
|
|
11421
|
-
|
|
11430
|
+
ru as CodeEditor,
|
|
11431
|
+
_d as ConfigContext,
|
|
11422
11432
|
H as ConnectionProvider,
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
+
hl as ContentRootProvider,
|
|
11434
|
+
Hu as CurrentTabContent,
|
|
11435
|
+
Ud as Dashboard,
|
|
11436
|
+
Nd as DashboardGrid,
|
|
11437
|
+
Bd as DashboardGridItem,
|
|
11438
|
+
ed as Date,
|
|
11439
|
+
td as DateTime,
|
|
11440
|
+
vd as Email,
|
|
11441
|
+
Qc as ExportModal,
|
|
11442
|
+
Bu as FavouriteButton,
|
|
11433
11443
|
po as Float,
|
|
11434
|
-
|
|
11444
|
+
Lc as FloatTime,
|
|
11435
11445
|
Ut as Form,
|
|
11436
11446
|
Gt as FormModal,
|
|
11437
|
-
|
|
11447
|
+
dc as GraphIndicator,
|
|
11438
11448
|
Do as Group,
|
|
11439
11449
|
Ca as Image,
|
|
11440
11450
|
tn as Integer,
|
|
11441
11451
|
un as Label,
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11452
|
+
ac as Many2one,
|
|
11453
|
+
zd as Markdown,
|
|
11454
|
+
Gd as MultiCheckbox,
|
|
11455
|
+
Hc as Notebook,
|
|
11456
|
+
Ec as One2many,
|
|
11457
|
+
$l as ProgressBar,
|
|
11458
|
+
Zd as Radio,
|
|
11459
|
+
id as Reference,
|
|
11460
|
+
Nu as RootView,
|
|
11451
11461
|
go as SearchFilter,
|
|
11452
11462
|
To as SearchModal,
|
|
11453
11463
|
So as SearchTree,
|
|
11454
11464
|
eo as Selection,
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11465
|
+
Yc as Separator,
|
|
11466
|
+
tu as Steps,
|
|
11467
|
+
Qd as Switch,
|
|
11468
|
+
Pu as TabSelector,
|
|
11469
|
+
Ha as Tag,
|
|
11470
|
+
Ba as Tags,
|
|
11471
|
+
jc as Text,
|
|
11472
|
+
rd as Time,
|
|
11463
11473
|
pn as Tree,
|
|
11464
|
-
|
|
11474
|
+
yd as Url,
|
|
11465
11475
|
it as iconMapper,
|
|
11466
11476
|
Yt as showConfirmDialog
|
|
11467
11477
|
};
|