@gisce/react-ooui 1.4.3 → 1.4.4
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
2174
2174
|
i.push(new Vt({ 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 Vt && 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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 Vt && 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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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;
|
|
@@ -2579,7 +2579,7 @@ const kt = ({
|
|
|
2579
2579
|
statusForResults: U,
|
|
2580
2580
|
totalItems: N
|
|
2581
2581
|
};
|
|
2582
|
-
}, Qe = Je.createContext(null),
|
|
2582
|
+
}, Qe = Je.createContext(null), dl = (e) => {
|
|
2583
2583
|
const {
|
|
2584
2584
|
children: t,
|
|
2585
2585
|
currentView: r,
|
|
@@ -2676,7 +2676,7 @@ const kt = ({
|
|
|
2676
2676
|
},
|
|
2677
2677
|
children: t
|
|
2678
2678
|
});
|
|
2679
|
-
}, st = Je.createContext(null),
|
|
2679
|
+
}, st = Je.createContext(null), ul = (e) => {
|
|
2680
2680
|
const {
|
|
2681
2681
|
children: t,
|
|
2682
2682
|
openAction: r,
|
|
@@ -2709,7 +2709,7 @@ const kt = ({
|
|
|
2709
2709
|
var t;
|
|
2710
2710
|
for (let r = 0; r < e.length; r++)
|
|
2711
2711
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2712
|
-
},
|
|
2712
|
+
}, fl = (e, t) => {
|
|
2713
2713
|
const {
|
|
2714
2714
|
children: r,
|
|
2715
2715
|
globalValues: i = {}
|
|
@@ -2792,17 +2792,27 @@ const kt = ({
|
|
|
2792
2792
|
const {
|
|
2793
2793
|
type: $
|
|
2794
2794
|
} = E;
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2795
|
+
if (f.current.push(x), $ === "ir.actions.report.xml")
|
|
2796
|
+
return await g({
|
|
2797
|
+
reportData: E,
|
|
2798
|
+
fields: b,
|
|
2799
|
+
values: C,
|
|
2800
|
+
context: S
|
|
2801
|
+
});
|
|
2802
|
+
if ($ === "ir.actions.act_window")
|
|
2803
|
+
return await I({
|
|
2804
|
+
actionData: E,
|
|
2805
|
+
fields: b,
|
|
2806
|
+
values: C,
|
|
2807
|
+
context: S
|
|
2808
|
+
});
|
|
2809
|
+
if ($ === "ir.actions.act_url")
|
|
2810
|
+
window.open(Pa(E.url, {
|
|
2811
|
+
...C,
|
|
2812
|
+
context: S
|
|
2813
|
+
}), "_blank");
|
|
2814
|
+
else
|
|
2815
|
+
return Ue(`${$} action not supported`), {};
|
|
2806
2816
|
}
|
|
2807
2817
|
async function I({
|
|
2808
2818
|
actionData: E,
|
|
@@ -2857,7 +2867,7 @@ const kt = ({
|
|
|
2857
2867
|
const {
|
|
2858
2868
|
initialView: M,
|
|
2859
2869
|
views: _
|
|
2860
|
-
} = await
|
|
2870
|
+
} = await ml({
|
|
2861
2871
|
model: x.res_model,
|
|
2862
2872
|
context: R,
|
|
2863
2873
|
view_mode: x.view_mode,
|
|
@@ -2969,7 +2979,7 @@ const kt = ({
|
|
|
2969
2979
|
})
|
|
2970
2980
|
});
|
|
2971
2981
|
};
|
|
2972
|
-
async function
|
|
2982
|
+
async function ml({
|
|
2973
2983
|
views: e,
|
|
2974
2984
|
view_mode: t,
|
|
2975
2985
|
model: r,
|
|
@@ -3022,7 +3032,7 @@ async function fl({
|
|
|
3022
3032
|
initialView: a
|
|
3023
3033
|
};
|
|
3024
3034
|
}
|
|
3025
|
-
const
|
|
3035
|
+
const hl = wt(fl), pl = ({
|
|
3026
3036
|
error: e,
|
|
3027
3037
|
className: t
|
|
3028
3038
|
}) => {
|
|
@@ -3046,8 +3056,8 @@ const ml = wt(ul), hl = ({
|
|
|
3046
3056
|
type: i,
|
|
3047
3057
|
banner: !0
|
|
3048
3058
|
});
|
|
3049
|
-
},
|
|
3050
|
-
function
|
|
3059
|
+
}, gl = 800;
|
|
3060
|
+
function yl(e, t) {
|
|
3051
3061
|
const {
|
|
3052
3062
|
model: r,
|
|
3053
3063
|
id: i,
|
|
@@ -3074,7 +3084,7 @@ function gl(e, t) {
|
|
|
3074
3084
|
} = e, {
|
|
3075
3085
|
t: b,
|
|
3076
3086
|
lang: C
|
|
3077
|
-
} = 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) <
|
|
3087
|
+
} = 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), {
|
|
3078
3088
|
activeId: Ee,
|
|
3079
3089
|
getPlainValues: Ie
|
|
3080
3090
|
} = be || {}, Be = Y(Qe), {
|
|
@@ -3476,7 +3486,7 @@ function gl(e, t) {
|
|
|
3476
3486
|
title: Re,
|
|
3477
3487
|
message: yt
|
|
3478
3488
|
} = oe.warning;
|
|
3479
|
-
ie.current = !0,
|
|
3489
|
+
ie.current = !0, el(Re, yt, () => {
|
|
3480
3490
|
ie.current = !1;
|
|
3481
3491
|
});
|
|
3482
3492
|
}
|
|
@@ -3676,14 +3686,14 @@ function gl(e, t) {
|
|
|
3676
3686
|
}) => /* @__PURE__ */ P("div", {
|
|
3677
3687
|
className: "pb-2",
|
|
3678
3688
|
ref: K,
|
|
3679
|
-
children: [$ && /* @__PURE__ */ n(
|
|
3689
|
+
children: [$ && /* @__PURE__ */ n(pl, {
|
|
3680
3690
|
className: "mt-5 mb-10",
|
|
3681
3691
|
error: $
|
|
3682
3692
|
}), zo(), a && Jo()]
|
|
3683
3693
|
})
|
|
3684
3694
|
}) : null;
|
|
3685
3695
|
}
|
|
3686
|
-
const Ut = wt(
|
|
3696
|
+
const Ut = wt(yl), Gt = (e) => {
|
|
3687
3697
|
const {
|
|
3688
3698
|
visible: t,
|
|
3689
3699
|
id: r,
|
|
@@ -3759,7 +3769,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3759
3769
|
});
|
|
3760
3770
|
}
|
|
3761
3771
|
const I = c * 0.95;
|
|
3762
|
-
return /* @__PURE__ */ n(
|
|
3772
|
+
return /* @__PURE__ */ n(tl, {
|
|
3763
3773
|
setTitle: d,
|
|
3764
3774
|
children: /* @__PURE__ */ n(Ge, {
|
|
3765
3775
|
title: a ? O() : f,
|
|
@@ -3780,14 +3790,14 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3780
3790
|
})
|
|
3781
3791
|
})
|
|
3782
3792
|
});
|
|
3783
|
-
},
|
|
3793
|
+
}, vl = (e) => /* @__PURE__ */ n(ve, {
|
|
3784
3794
|
...e,
|
|
3785
3795
|
layout: "vertical",
|
|
3786
3796
|
children: /* @__PURE__ */ n(Mn.RangePicker, {
|
|
3787
3797
|
allowEmpty: [!0, !0],
|
|
3788
3798
|
format: "DD/MM/YYYY"
|
|
3789
3799
|
})
|
|
3790
|
-
}),
|
|
3800
|
+
}), wl = (e) => {
|
|
3791
3801
|
const {
|
|
3792
3802
|
ooui: t,
|
|
3793
3803
|
showLabel: r = !1
|
|
@@ -3840,7 +3850,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3840
3850
|
})]
|
|
3841
3851
|
});
|
|
3842
3852
|
}, {
|
|
3843
|
-
useToken:
|
|
3853
|
+
useToken: bl
|
|
3844
3854
|
} = Pe, po = (e) => {
|
|
3845
3855
|
const {
|
|
3846
3856
|
ooui: t
|
|
@@ -3851,7 +3861,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3851
3861
|
required: s
|
|
3852
3862
|
} = t, {
|
|
3853
3863
|
token: a
|
|
3854
|
-
} =
|
|
3864
|
+
} = bl(), l = s && !o ? {
|
|
3855
3865
|
backgroundColor: a.colorPrimaryBg
|
|
3856
3866
|
} : void 0, u = Y(Ne), {
|
|
3857
3867
|
elementHasLostFocus: c
|
|
@@ -3873,7 +3883,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3873
3883
|
})
|
|
3874
3884
|
});
|
|
3875
3885
|
}, {
|
|
3876
|
-
useToken:
|
|
3886
|
+
useToken: xl
|
|
3877
3887
|
} = Pe, tn = (e) => {
|
|
3878
3888
|
const {
|
|
3879
3889
|
ooui: t,
|
|
@@ -3884,7 +3894,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3884
3894
|
required: s
|
|
3885
3895
|
} = t, {
|
|
3886
3896
|
token: a
|
|
3887
|
-
} =
|
|
3897
|
+
} = xl(), l = s && !o ? {
|
|
3888
3898
|
backgroundColor: a.colorPrimaryBg
|
|
3889
3899
|
} : void 0, u = Y(Ne), {
|
|
3890
3900
|
elementHasLostFocus: c
|
|
@@ -3909,7 +3919,7 @@ const Ut = wt(gl), Gt = (e) => {
|
|
|
3909
3919
|
})
|
|
3910
3920
|
});
|
|
3911
3921
|
};
|
|
3912
|
-
function
|
|
3922
|
+
function Cl(e) {
|
|
3913
3923
|
const {
|
|
3914
3924
|
ooui: t,
|
|
3915
3925
|
showLabel: r
|
|
@@ -3954,11 +3964,11 @@ function xl(e) {
|
|
|
3954
3964
|
});
|
|
3955
3965
|
}
|
|
3956
3966
|
const {
|
|
3957
|
-
defaultAlgorithm:
|
|
3958
|
-
defaultSeed:
|
|
3959
|
-
} = Pe,
|
|
3960
|
-
Option:
|
|
3961
|
-
} = xt,
|
|
3967
|
+
defaultAlgorithm: Sl,
|
|
3968
|
+
defaultSeed: Tl
|
|
3969
|
+
} = Pe, Fl = Sl(Tl), {
|
|
3970
|
+
Option: Ol
|
|
3971
|
+
} = xt, _l = (e) => {
|
|
3962
3972
|
const {
|
|
3963
3973
|
ooui: t
|
|
3964
3974
|
} = e, {
|
|
@@ -3968,11 +3978,11 @@ const {
|
|
|
3968
3978
|
required: r,
|
|
3969
3979
|
type: "any",
|
|
3970
3980
|
...e,
|
|
3971
|
-
children: /* @__PURE__ */ n(
|
|
3981
|
+
children: /* @__PURE__ */ n(Il, {
|
|
3972
3982
|
...e
|
|
3973
3983
|
})
|
|
3974
3984
|
});
|
|
3975
|
-
},
|
|
3985
|
+
}, Il = (e) => {
|
|
3976
3986
|
const {
|
|
3977
3987
|
ooui: t,
|
|
3978
3988
|
onChange: r,
|
|
@@ -3986,11 +3996,11 @@ const {
|
|
|
3986
3996
|
return i ? !i.includes(m) : !0;
|
|
3987
3997
|
}).map((d) => {
|
|
3988
3998
|
const [m, v] = d;
|
|
3989
|
-
return /* @__PURE__ */ n(
|
|
3999
|
+
return /* @__PURE__ */ n(Ol, {
|
|
3990
4000
|
value: v,
|
|
3991
4001
|
children: v
|
|
3992
4002
|
}, m);
|
|
3993
|
-
}), c = a && !s ?
|
|
4003
|
+
}), c = a && !s ? Dl : xt;
|
|
3994
4004
|
function f(d) {
|
|
3995
4005
|
const m = d.map((v) => {
|
|
3996
4006
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -4010,12 +4020,12 @@ const {
|
|
|
4010
4020
|
showArrow: !0,
|
|
4011
4021
|
children: u
|
|
4012
4022
|
});
|
|
4013
|
-
},
|
|
4023
|
+
}, Dl = Kt(xt)`
|
|
4014
4024
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4015
|
-
background-color: ${
|
|
4025
|
+
background-color: ${Fl.colorPrimaryBg};
|
|
4016
4026
|
}
|
|
4017
4027
|
`;
|
|
4018
|
-
function
|
|
4028
|
+
function Vl(e) {
|
|
4019
4029
|
const {
|
|
4020
4030
|
field: t
|
|
4021
4031
|
} = e;
|
|
@@ -4040,24 +4050,24 @@ function Dl(e) {
|
|
|
4040
4050
|
case ft.progressbar:
|
|
4041
4051
|
case ft.float_time:
|
|
4042
4052
|
case ft.integer:
|
|
4043
|
-
return /* @__PURE__ */ n(
|
|
4053
|
+
return /* @__PURE__ */ n(Cl, {
|
|
4044
4054
|
ooui: t,
|
|
4045
4055
|
showLabel: !0
|
|
4046
4056
|
});
|
|
4047
4057
|
case ft.date:
|
|
4048
|
-
return /* @__PURE__ */ n(
|
|
4058
|
+
return /* @__PURE__ */ n(vl, {
|
|
4049
4059
|
ooui: t,
|
|
4050
4060
|
layout: "vertical",
|
|
4051
4061
|
showLabel: !0
|
|
4052
4062
|
});
|
|
4053
4063
|
case ft.datetime:
|
|
4054
|
-
return /* @__PURE__ */ n(
|
|
4064
|
+
return /* @__PURE__ */ n(wl, {
|
|
4055
4065
|
ooui: t,
|
|
4056
4066
|
layout: "vertical",
|
|
4057
4067
|
showLabel: !0
|
|
4058
4068
|
});
|
|
4059
4069
|
case ft.selection:
|
|
4060
|
-
return /* @__PURE__ */ n(
|
|
4070
|
+
return /* @__PURE__ */ n(_l, {
|
|
4061
4071
|
layout: "vertical",
|
|
4062
4072
|
ooui: t,
|
|
4063
4073
|
showLabel: !0
|
|
@@ -4071,7 +4081,7 @@ function Dl(e) {
|
|
|
4071
4081
|
});
|
|
4072
4082
|
}
|
|
4073
4083
|
}
|
|
4074
|
-
function
|
|
4084
|
+
function Al(e) {
|
|
4075
4085
|
const {
|
|
4076
4086
|
onAdvancedFilterToggle: t,
|
|
4077
4087
|
advancedFilter: r,
|
|
@@ -4112,7 +4122,7 @@ function Vl(e) {
|
|
|
4112
4122
|
})]
|
|
4113
4123
|
});
|
|
4114
4124
|
}
|
|
4115
|
-
function
|
|
4125
|
+
function Rl(e) {
|
|
4116
4126
|
const {
|
|
4117
4127
|
onLimitChange: t
|
|
4118
4128
|
} = e, {
|
|
@@ -4140,7 +4150,7 @@ function Al(e) {
|
|
|
4140
4150
|
});
|
|
4141
4151
|
}
|
|
4142
4152
|
const {
|
|
4143
|
-
useToken:
|
|
4153
|
+
useToken: kl
|
|
4144
4154
|
} = Pe;
|
|
4145
4155
|
function go(e) {
|
|
4146
4156
|
const {
|
|
@@ -4163,7 +4173,7 @@ function go(e) {
|
|
|
4163
4173
|
formXml: p
|
|
4164
4174
|
} = e, [h, g] = T(), [y, O] = T(), [I, w] = T(!1), V = de(), {
|
|
4165
4175
|
token: D
|
|
4166
|
-
} =
|
|
4176
|
+
} = kl(), [E] = ot.useForm();
|
|
4167
4177
|
pe(() => {
|
|
4168
4178
|
E.setFieldsValue(m);
|
|
4169
4179
|
}, [m]);
|
|
@@ -4176,7 +4186,7 @@ function go(e) {
|
|
|
4176
4186
|
xs: 24,
|
|
4177
4187
|
className: "p-2",
|
|
4178
4188
|
xl: 6,
|
|
4179
|
-
children: /* @__PURE__ */ n(
|
|
4189
|
+
children: /* @__PURE__ */ n(Vl, {
|
|
4180
4190
|
field: A
|
|
4181
4191
|
})
|
|
4182
4192
|
}, M))
|
|
@@ -4192,7 +4202,7 @@ function go(e) {
|
|
|
4192
4202
|
offset: R
|
|
4193
4203
|
} = x;
|
|
4194
4204
|
delete x.offset, delete x.limit;
|
|
4195
|
-
const F =
|
|
4205
|
+
const F = nl(x, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
|
|
4196
4206
|
o({
|
|
4197
4207
|
params: F,
|
|
4198
4208
|
offset: R,
|
|
@@ -4225,9 +4235,9 @@ function go(e) {
|
|
|
4225
4235
|
offset: a,
|
|
4226
4236
|
limit: l
|
|
4227
4237
|
},
|
|
4228
|
-
children: [C, I && v && /* @__PURE__ */ n(
|
|
4238
|
+
children: [C, I && v && /* @__PURE__ */ n(Rl, {
|
|
4229
4239
|
onLimitChange: u
|
|
4230
|
-
}), /* @__PURE__ */ n(
|
|
4240
|
+
}), /* @__PURE__ */ n(Al, {
|
|
4231
4241
|
advancedFilter: I,
|
|
4232
4242
|
onAdvancedFilterToggle: () => {
|
|
4233
4243
|
w(!I);
|
|
@@ -4254,7 +4264,7 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4254
4264
|
i.font = t;
|
|
4255
4265
|
const o = i.measureText(e);
|
|
4256
4266
|
return Math.round((o.width + 80) * 1.5);
|
|
4257
|
-
},
|
|
4267
|
+
}, Ml = (e, t, r = 500) => {
|
|
4258
4268
|
if (e.length === 0)
|
|
4259
4269
|
return e;
|
|
4260
4270
|
const i = e.map(
|
|
@@ -4276,7 +4286,7 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4276
4286
|
tableWidth: o
|
|
4277
4287
|
};
|
|
4278
4288
|
};
|
|
4279
|
-
function
|
|
4289
|
+
function El(e) {
|
|
4280
4290
|
if (!!e)
|
|
4281
4291
|
try {
|
|
4282
4292
|
if (e.includes(":")) {
|
|
@@ -4306,7 +4316,7 @@ function yo(e) {
|
|
|
4306
4316
|
});
|
|
4307
4317
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4308
4318
|
}
|
|
4309
|
-
const
|
|
4319
|
+
const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
4310
4320
|
...e,
|
|
4311
4321
|
children: /* @__PURE__ */ n(vo, {})
|
|
4312
4322
|
}), vo = ({
|
|
@@ -4323,7 +4333,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4323
4333
|
display: "flex",
|
|
4324
4334
|
alignItems: "center"
|
|
4325
4335
|
},
|
|
4326
|
-
children: [/* @__PURE__ */ n(
|
|
4336
|
+
children: [/* @__PURE__ */ n(Ll, {
|
|
4327
4337
|
percent: e
|
|
4328
4338
|
}), /* @__PURE__ */ n("div", {
|
|
4329
4339
|
style: {
|
|
@@ -4333,7 +4343,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4333
4343
|
children: t
|
|
4334
4344
|
})]
|
|
4335
4345
|
});
|
|
4336
|
-
},
|
|
4346
|
+
}, Ll = Kt(ni)`
|
|
4337
4347
|
.ant-progress-outer {
|
|
4338
4348
|
margin-right: 0px;
|
|
4339
4349
|
padding-right: 0px;
|
|
@@ -4514,7 +4524,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4514
4524
|
onCancel: () => l(!1)
|
|
4515
4525
|
})]
|
|
4516
4526
|
});
|
|
4517
|
-
},
|
|
4527
|
+
}, Nl = (e) => {
|
|
4518
4528
|
const {
|
|
4519
4529
|
m2oField: t
|
|
4520
4530
|
} = e;
|
|
@@ -4526,7 +4536,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4526
4536
|
model: t.model
|
|
4527
4537
|
})]
|
|
4528
4538
|
}) : /* @__PURE__ */ n(ne, {});
|
|
4529
|
-
},
|
|
4539
|
+
}, Pl = (e) => {
|
|
4530
4540
|
const {
|
|
4531
4541
|
value: t,
|
|
4532
4542
|
context: r,
|
|
@@ -4769,7 +4779,7 @@ var wo = { exports: {} };
|
|
|
4769
4779
|
}, C.en = D[V], C.Ls = D, C.p = {}, C;
|
|
4770
4780
|
});
|
|
4771
4781
|
})(wo);
|
|
4772
|
-
const dt = wo.exports,
|
|
4782
|
+
const dt = wo.exports, Hl = (e) => {
|
|
4773
4783
|
console.log("Avatar Props", e);
|
|
4774
4784
|
const {
|
|
4775
4785
|
ooui: t,
|
|
@@ -4804,7 +4814,7 @@ var bo = { exports: {} };
|
|
|
4804
4814
|
};
|
|
4805
4815
|
});
|
|
4806
4816
|
})(bo);
|
|
4807
|
-
const
|
|
4817
|
+
const Bl = bo.exports;
|
|
4808
4818
|
var xo = { exports: {} };
|
|
4809
4819
|
(function(e, t) {
|
|
4810
4820
|
(function(r, i) {
|
|
@@ -4882,11 +4892,11 @@ var xo = { exports: {} };
|
|
|
4882
4892
|
};
|
|
4883
4893
|
});
|
|
4884
4894
|
})(xo);
|
|
4885
|
-
const
|
|
4886
|
-
useToken:
|
|
4895
|
+
const jl = xo.exports, {
|
|
4896
|
+
useToken: Kl
|
|
4887
4897
|
} = Pe;
|
|
4888
|
-
dt.extend(Hl);
|
|
4889
4898
|
dt.extend(Bl);
|
|
4899
|
+
dt.extend(jl);
|
|
4890
4900
|
const lt = {
|
|
4891
4901
|
date: {
|
|
4892
4902
|
placeholder: "__/__/____",
|
|
@@ -4908,12 +4918,12 @@ const lt = {
|
|
|
4908
4918
|
return /* @__PURE__ */ n(ve, {
|
|
4909
4919
|
required: i,
|
|
4910
4920
|
...e,
|
|
4911
|
-
children: /* @__PURE__ */ n(
|
|
4921
|
+
children: /* @__PURE__ */ n(Yl, {
|
|
4912
4922
|
ooui: t,
|
|
4913
4923
|
showTime: r
|
|
4914
4924
|
})
|
|
4915
4925
|
});
|
|
4916
|
-
},
|
|
4926
|
+
}, Yl = (e) => {
|
|
4917
4927
|
const {
|
|
4918
4928
|
value: t,
|
|
4919
4929
|
onChange: r,
|
|
@@ -4925,7 +4935,7 @@ const lt = {
|
|
|
4925
4935
|
required: l
|
|
4926
4936
|
} = i, {
|
|
4927
4937
|
token: u
|
|
4928
|
-
} =
|
|
4938
|
+
} = Kl(), c = l && !a ? {
|
|
4929
4939
|
backgroundColor: u.colorPrimaryBg
|
|
4930
4940
|
} : void 0, f = o ? "time" : "date", d = (p) => {
|
|
4931
4941
|
r == null || r(p);
|
|
@@ -4950,7 +4960,7 @@ const lt = {
|
|
|
4950
4960
|
value: v,
|
|
4951
4961
|
onChange: m
|
|
4952
4962
|
});
|
|
4953
|
-
},
|
|
4963
|
+
}, Wl = (e) => /* @__PURE__ */ n("div", {
|
|
4954
4964
|
style: {
|
|
4955
4965
|
display: "flex",
|
|
4956
4966
|
justifyContent: "center",
|
|
@@ -4960,18 +4970,18 @@ const lt = {
|
|
|
4960
4970
|
checked: e,
|
|
4961
4971
|
disabled: !0
|
|
4962
4972
|
})
|
|
4963
|
-
}),
|
|
4973
|
+
}), Ul = (e) => /* @__PURE__ */ n(Nl, {
|
|
4964
4974
|
m2oField: e
|
|
4965
|
-
}),
|
|
4975
|
+
}), Gl = (e) => /* @__PURE__ */ n(Gn, {
|
|
4966
4976
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4967
|
-
}),
|
|
4977
|
+
}), ql = (e) => {
|
|
4968
4978
|
if (!e || e && e.length === 0)
|
|
4969
4979
|
return /* @__PURE__ */ n(ne, {});
|
|
4970
4980
|
const t = dt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4971
4981
|
return /* @__PURE__ */ n(ne, {
|
|
4972
4982
|
children: t
|
|
4973
4983
|
});
|
|
4974
|
-
},
|
|
4984
|
+
}, zl = (e) => {
|
|
4975
4985
|
if (!e || e && e.length === 0)
|
|
4976
4986
|
return /* @__PURE__ */ n(ne, {});
|
|
4977
4987
|
const t = dt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
@@ -4983,33 +4993,33 @@ const lt = {
|
|
|
4983
4993
|
return /* @__PURE__ */ n(ne, {
|
|
4984
4994
|
children: `( ${t} )`
|
|
4985
4995
|
});
|
|
4986
|
-
},
|
|
4996
|
+
}, Jl = (e) => /* @__PURE__ */ n(vo, {
|
|
4987
4997
|
value: e
|
|
4988
|
-
}),
|
|
4998
|
+
}), Zl = (e) => /* @__PURE__ */ n(ne, {
|
|
4989
4999
|
children: yo(e)
|
|
4990
5000
|
}), Tr = (e) => /* @__PURE__ */ n("div", {
|
|
4991
5001
|
style: {
|
|
4992
5002
|
textAlign: "right"
|
|
4993
5003
|
},
|
|
4994
5004
|
children: e
|
|
4995
|
-
}),
|
|
5005
|
+
}), Xl = (e) => /* @__PURE__ */ n("img", {
|
|
4996
5006
|
src: `data:image/*;base64,${e}`,
|
|
4997
5007
|
style: {
|
|
4998
5008
|
maxWidth: "50px",
|
|
4999
5009
|
padding: "5px"
|
|
5000
5010
|
}
|
|
5001
|
-
}),
|
|
5011
|
+
}), Ql = (e, t, r, i) => /* @__PURE__ */ n(uo, {
|
|
5002
5012
|
ooui: r,
|
|
5003
5013
|
value: e
|
|
5004
|
-
}), Ql = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5005
|
-
children: r.selectionValues.get(e)
|
|
5006
5014
|
}), ec = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5007
|
-
children:
|
|
5015
|
+
children: r.selectionValues.get(e)
|
|
5016
|
+
}), tc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5017
|
+
children: /* @__PURE__ */ n(Pl, {
|
|
5008
5018
|
value: e,
|
|
5009
5019
|
selectionValues: r.selectionValues,
|
|
5010
5020
|
context: i
|
|
5011
5021
|
})
|
|
5012
|
-
}),
|
|
5022
|
+
}), nc = (e, t, r, i) => /* @__PURE__ */ n(Hl, {
|
|
5013
5023
|
ooui: r,
|
|
5014
5024
|
value: e
|
|
5015
5025
|
});
|
|
@@ -5044,22 +5054,22 @@ function pn(e) {
|
|
|
5044
5054
|
pe(() => {
|
|
5045
5055
|
S.current = Ot(o);
|
|
5046
5056
|
const z = Oa(S.current, {
|
|
5047
|
-
boolean:
|
|
5048
|
-
many2one:
|
|
5049
|
-
text:
|
|
5057
|
+
boolean: Wl,
|
|
5058
|
+
many2one: Ul,
|
|
5059
|
+
text: Gl,
|
|
5050
5060
|
one2many: Sr,
|
|
5051
5061
|
many2many: Sr,
|
|
5052
|
-
progressbar:
|
|
5053
|
-
float_time:
|
|
5054
|
-
image:
|
|
5062
|
+
progressbar: Jl,
|
|
5063
|
+
float_time: Zl,
|
|
5064
|
+
image: Xl,
|
|
5055
5065
|
integer: Tr,
|
|
5056
5066
|
float: Tr,
|
|
5057
|
-
reference:
|
|
5058
|
-
tag:
|
|
5059
|
-
selection:
|
|
5060
|
-
date:
|
|
5061
|
-
datetime:
|
|
5062
|
-
avatar:
|
|
5067
|
+
reference: tc,
|
|
5068
|
+
tag: Ql,
|
|
5069
|
+
selection: ec,
|
|
5070
|
+
date: ql,
|
|
5071
|
+
datetime: zl,
|
|
5072
|
+
avatar: nc
|
|
5063
5073
|
}, I);
|
|
5064
5074
|
b(z), S.current.string && F !== S.current.string && (A == null || A(S.current.string));
|
|
5065
5075
|
}, [o]), pe(() => {
|
|
@@ -5106,7 +5116,7 @@ function pn(e) {
|
|
|
5106
5116
|
}
|
|
5107
5117
|
let q, W = d;
|
|
5108
5118
|
if (S.current !== null) {
|
|
5109
|
-
q =
|
|
5119
|
+
q = Ml(E, V, 600);
|
|
5110
5120
|
const U = S.current;
|
|
5111
5121
|
d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
|
|
5112
5122
|
}
|
|
@@ -5148,7 +5158,7 @@ function pn(e) {
|
|
|
5148
5158
|
}), j()]
|
|
5149
5159
|
});
|
|
5150
5160
|
}
|
|
5151
|
-
function
|
|
5161
|
+
function rc(e, t) {
|
|
5152
5162
|
const {
|
|
5153
5163
|
model: r,
|
|
5154
5164
|
formView: i,
|
|
@@ -5363,7 +5373,7 @@ function nc(e, t) {
|
|
|
5363
5373
|
children: v ? /* @__PURE__ */ n(Le, {}) : ye()
|
|
5364
5374
|
});
|
|
5365
5375
|
}
|
|
5366
|
-
const So = wt(
|
|
5376
|
+
const So = wt(rc), To = (e) => {
|
|
5367
5377
|
const {
|
|
5368
5378
|
visible: t,
|
|
5369
5379
|
onCloseModal: r,
|
|
@@ -5452,18 +5462,18 @@ const So = wt(nc), To = (e) => {
|
|
|
5452
5462
|
})]
|
|
5453
5463
|
});
|
|
5454
5464
|
}, {
|
|
5455
|
-
error:
|
|
5465
|
+
error: oc
|
|
5456
5466
|
} = Ge, nn = (e) => {
|
|
5457
|
-
|
|
5467
|
+
oc({
|
|
5458
5468
|
title: "Error",
|
|
5459
5469
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5460
5470
|
centered: !0,
|
|
5461
5471
|
content: e
|
|
5462
5472
|
});
|
|
5463
5473
|
}, {
|
|
5464
|
-
defaultAlgorithm:
|
|
5465
|
-
defaultSeed:
|
|
5466
|
-
} = Pe, Fo =
|
|
5474
|
+
defaultAlgorithm: ic,
|
|
5475
|
+
defaultSeed: sc
|
|
5476
|
+
} = Pe, Fo = ic(sc), ac = (e) => {
|
|
5467
5477
|
const {
|
|
5468
5478
|
ooui: t
|
|
5469
5479
|
} = e, {
|
|
@@ -5598,7 +5608,7 @@ const So = wt(nc), To = (e) => {
|
|
|
5598
5608
|
wrap: !1,
|
|
5599
5609
|
children: [/* @__PURE__ */ n(le, {
|
|
5600
5610
|
flex: "auto",
|
|
5601
|
-
children: /* @__PURE__ */ n(o && !a ?
|
|
5611
|
+
children: /* @__PURE__ */ n(o && !a ? lc : nt, {
|
|
5602
5612
|
type: "text",
|
|
5603
5613
|
value: w,
|
|
5604
5614
|
disabled: a,
|
|
@@ -5682,11 +5692,11 @@ const So = wt(nc), To = (e) => {
|
|
|
5682
5692
|
readOnly: a
|
|
5683
5693
|
})]
|
|
5684
5694
|
});
|
|
5685
|
-
},
|
|
5695
|
+
}, lc = Kt(nt)`
|
|
5686
5696
|
.ant-input {
|
|
5687
5697
|
background-color: ${Fo.colorPrimaryBg};
|
|
5688
5698
|
}
|
|
5689
|
-
`, _o = Je.createContext(null),
|
|
5699
|
+
`, _o = Je.createContext(null), cc = ({
|
|
5690
5700
|
children: e,
|
|
5691
5701
|
initialView: t
|
|
5692
5702
|
}) => {
|
|
@@ -5704,7 +5714,7 @@ const So = wt(nc), To = (e) => {
|
|
|
5704
5714
|
});
|
|
5705
5715
|
}, {
|
|
5706
5716
|
getValueForOperator: Fr
|
|
5707
|
-
} = Er, rn = 0.7, on = 30,
|
|
5717
|
+
} = Er, rn = 0.7, on = 30, dc = (e) => {
|
|
5708
5718
|
const {
|
|
5709
5719
|
model: t,
|
|
5710
5720
|
domain: r,
|
|
@@ -5846,7 +5856,7 @@ const So = wt(nc), To = (e) => {
|
|
|
5846
5856
|
},
|
|
5847
5857
|
children: ({
|
|
5848
5858
|
measureRef: _
|
|
5849
|
-
}) => a ? /* @__PURE__ */ n(
|
|
5859
|
+
}) => a ? /* @__PURE__ */ n(fc, {
|
|
5850
5860
|
value: p,
|
|
5851
5861
|
total: O,
|
|
5852
5862
|
percent: g,
|
|
@@ -5856,7 +5866,7 @@ const So = wt(nc), To = (e) => {
|
|
|
5856
5866
|
color: b,
|
|
5857
5867
|
icon: S,
|
|
5858
5868
|
suffix: u
|
|
5859
|
-
}) : /* @__PURE__ */ n(
|
|
5869
|
+
}) : /* @__PURE__ */ n(uc, {
|
|
5860
5870
|
value: p,
|
|
5861
5871
|
total: O,
|
|
5862
5872
|
measureRef: _,
|
|
@@ -5872,7 +5882,7 @@ function Io(e, t) {
|
|
|
5872
5882
|
const i = document.createElement("canvas").getContext("2d");
|
|
5873
5883
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
5874
5884
|
}
|
|
5875
|
-
function
|
|
5885
|
+
function uc({
|
|
5876
5886
|
measureRef: e,
|
|
5877
5887
|
width: t,
|
|
5878
5888
|
height: r,
|
|
@@ -5915,7 +5925,7 @@ function dc({
|
|
|
5915
5925
|
})
|
|
5916
5926
|
});
|
|
5917
5927
|
}
|
|
5918
|
-
function
|
|
5928
|
+
function fc({
|
|
5919
5929
|
measureRef: e,
|
|
5920
5930
|
height: t,
|
|
5921
5931
|
width: r,
|
|
@@ -5989,22 +5999,22 @@ const Tn = (e) => (t) => {
|
|
|
5989
5999
|
});
|
|
5990
6000
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
5991
6001
|
}, Zt = (e) => {
|
|
5992
|
-
if (typeof e == "string" &&
|
|
6002
|
+
if (typeof e == "string" && mc(e))
|
|
5993
6003
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
5994
6004
|
useGrouping: !0
|
|
5995
6005
|
});
|
|
5996
|
-
if (
|
|
6006
|
+
if (hc(e))
|
|
5997
6007
|
return e.toLocaleString("es-ES", {
|
|
5998
6008
|
useGrouping: !0
|
|
5999
6009
|
});
|
|
6000
|
-
if (
|
|
6001
|
-
const t =
|
|
6010
|
+
if (pc(e)) {
|
|
6011
|
+
const t = gc(e);
|
|
6002
6012
|
return t === null ? e : dt(e, sn.input[t]).format(
|
|
6003
6013
|
sn.output[t]
|
|
6004
6014
|
);
|
|
6005
6015
|
} else
|
|
6006
6016
|
return e;
|
|
6007
|
-
},
|
|
6017
|
+
}, mc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), hc = (e) => typeof e == "number" && !isNaN(e), Or = {
|
|
6008
6018
|
default: {
|
|
6009
6019
|
padding: "auto",
|
|
6010
6020
|
xAxis: {
|
|
@@ -6086,7 +6096,7 @@ const Tn = (e) => (t) => {
|
|
|
6086
6096
|
}
|
|
6087
6097
|
}
|
|
6088
6098
|
};
|
|
6089
|
-
function
|
|
6099
|
+
function pc(e) {
|
|
6090
6100
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
6091
6101
|
}
|
|
6092
6102
|
const sn = {
|
|
@@ -6105,7 +6115,7 @@ const sn = {
|
|
|
6105
6115
|
years: "YYYY"
|
|
6106
6116
|
}
|
|
6107
6117
|
};
|
|
6108
|
-
function
|
|
6118
|
+
function gc(e) {
|
|
6109
6119
|
for (const t in sn.input)
|
|
6110
6120
|
if (dt(
|
|
6111
6121
|
e,
|
|
@@ -6116,10 +6126,10 @@ function pc(e) {
|
|
|
6116
6126
|
return null;
|
|
6117
6127
|
}
|
|
6118
6128
|
const {
|
|
6119
|
-
processGraphData:
|
|
6129
|
+
processGraphData: yc
|
|
6120
6130
|
} = Er, {
|
|
6121
|
-
getFieldsToRetrieve:
|
|
6122
|
-
} = mi,
|
|
6131
|
+
getFieldsToRetrieve: vc
|
|
6132
|
+
} = mi, wc = (e) => {
|
|
6123
6133
|
const {
|
|
6124
6134
|
model: t,
|
|
6125
6135
|
domain: r = [],
|
|
@@ -6134,7 +6144,7 @@ const {
|
|
|
6134
6144
|
c(!0), d(void 0);
|
|
6135
6145
|
const O = Ln(o);
|
|
6136
6146
|
y(O.type || "line");
|
|
6137
|
-
const I =
|
|
6147
|
+
const I = vc({
|
|
6138
6148
|
ooui: O
|
|
6139
6149
|
});
|
|
6140
6150
|
let w, V;
|
|
@@ -6142,7 +6152,7 @@ const {
|
|
|
6142
6152
|
({
|
|
6143
6153
|
values: w,
|
|
6144
6154
|
fields: V
|
|
6145
|
-
} = await
|
|
6155
|
+
} = await xc({
|
|
6146
6156
|
model: t,
|
|
6147
6157
|
domain: r,
|
|
6148
6158
|
context: i,
|
|
@@ -6161,7 +6171,7 @@ const {
|
|
|
6161
6171
|
return;
|
|
6162
6172
|
}
|
|
6163
6173
|
h(w);
|
|
6164
|
-
const D =
|
|
6174
|
+
const D = yc({
|
|
6165
6175
|
ooui: O,
|
|
6166
6176
|
values: w,
|
|
6167
6177
|
fields: V,
|
|
@@ -6184,7 +6194,7 @@ const {
|
|
|
6184
6194
|
evaluatedEntries: p
|
|
6185
6195
|
};
|
|
6186
6196
|
};
|
|
6187
|
-
async function
|
|
6197
|
+
async function bc({
|
|
6188
6198
|
model: e,
|
|
6189
6199
|
context: t,
|
|
6190
6200
|
fields: r
|
|
@@ -6195,7 +6205,7 @@ async function wc({
|
|
|
6195
6205
|
fields: r
|
|
6196
6206
|
});
|
|
6197
6207
|
}
|
|
6198
|
-
async function
|
|
6208
|
+
async function xc({
|
|
6199
6209
|
fields: e,
|
|
6200
6210
|
model: t,
|
|
6201
6211
|
domain: r,
|
|
@@ -6204,7 +6214,7 @@ async function bc({
|
|
|
6204
6214
|
limit: s,
|
|
6205
6215
|
manualIds: a
|
|
6206
6216
|
}) {
|
|
6207
|
-
const l = await
|
|
6217
|
+
const l = await bc({
|
|
6208
6218
|
model: t,
|
|
6209
6219
|
context: i,
|
|
6210
6220
|
fields: e
|
|
@@ -6233,11 +6243,11 @@ async function bc({
|
|
|
6233
6243
|
fields: l
|
|
6234
6244
|
};
|
|
6235
6245
|
}
|
|
6236
|
-
const
|
|
6246
|
+
const Cc = {
|
|
6237
6247
|
line: Di,
|
|
6238
6248
|
bar: Vi,
|
|
6239
6249
|
pie: Ai
|
|
6240
|
-
},
|
|
6250
|
+
}, Sc = (e) => {
|
|
6241
6251
|
var y;
|
|
6242
6252
|
const {
|
|
6243
6253
|
model: t,
|
|
@@ -6254,7 +6264,7 @@ const xc = {
|
|
|
6254
6264
|
values: f,
|
|
6255
6265
|
type: d,
|
|
6256
6266
|
evaluatedEntries: m
|
|
6257
|
-
} =
|
|
6267
|
+
} = wc({
|
|
6258
6268
|
model: t,
|
|
6259
6269
|
xml: o,
|
|
6260
6270
|
limit: s,
|
|
@@ -6280,7 +6290,7 @@ const xc = {
|
|
|
6280
6290
|
data: v,
|
|
6281
6291
|
isGroup: p,
|
|
6282
6292
|
isStack: h
|
|
6283
|
-
} = f, g =
|
|
6293
|
+
} = f, g = Cc[d];
|
|
6284
6294
|
return g ? /* @__PURE__ */ P("div", {
|
|
6285
6295
|
style: {
|
|
6286
6296
|
padding: "1rem"
|
|
@@ -6293,7 +6303,7 @@ const xc = {
|
|
|
6293
6303
|
useGrouping: !0
|
|
6294
6304
|
})}`
|
|
6295
6305
|
}), /* @__PURE__ */ n(g, {
|
|
6296
|
-
...
|
|
6306
|
+
...Tc({
|
|
6297
6307
|
type: d,
|
|
6298
6308
|
data: v,
|
|
6299
6309
|
isGroup: p,
|
|
@@ -6304,7 +6314,7 @@ const xc = {
|
|
|
6304
6314
|
children: `Unknown graph type: ${d}`
|
|
6305
6315
|
});
|
|
6306
6316
|
};
|
|
6307
|
-
function
|
|
6317
|
+
function Tc(e) {
|
|
6308
6318
|
const {
|
|
6309
6319
|
type: t,
|
|
6310
6320
|
data: r,
|
|
@@ -6314,7 +6324,7 @@ function Sc(e) {
|
|
|
6314
6324
|
let s = Or[t];
|
|
6315
6325
|
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;
|
|
6316
6326
|
}
|
|
6317
|
-
const
|
|
6327
|
+
const Fc = (e, t) => {
|
|
6318
6328
|
const {
|
|
6319
6329
|
view_id: r,
|
|
6320
6330
|
model: i,
|
|
@@ -6376,7 +6386,7 @@ const Tc = (e, t) => {
|
|
|
6376
6386
|
field: y.field,
|
|
6377
6387
|
operator: y.operator
|
|
6378
6388
|
} : {};
|
|
6379
|
-
return /* @__PURE__ */ n(
|
|
6389
|
+
return /* @__PURE__ */ n(dc, {
|
|
6380
6390
|
showPercent: y.showPercent,
|
|
6381
6391
|
totalDomain: y.totalDomain,
|
|
6382
6392
|
colorCondition: y.color,
|
|
@@ -6392,7 +6402,7 @@ const Tc = (e, t) => {
|
|
|
6392
6402
|
case "line":
|
|
6393
6403
|
case "bar":
|
|
6394
6404
|
case "pie":
|
|
6395
|
-
return /* @__PURE__ */ n(
|
|
6405
|
+
return /* @__PURE__ */ n(Sc, {
|
|
6396
6406
|
model: i,
|
|
6397
6407
|
context: o,
|
|
6398
6408
|
domain: s,
|
|
@@ -6405,13 +6415,13 @@ const Tc = (e, t) => {
|
|
|
6405
6415
|
children: `Graph ${f.type} not implemented`
|
|
6406
6416
|
});
|
|
6407
6417
|
}
|
|
6408
|
-
}, gn = wt(
|
|
6409
|
-
confirm:
|
|
6410
|
-
} = Ge,
|
|
6418
|
+
}, gn = wt(Fc), {
|
|
6419
|
+
confirm: Oc
|
|
6420
|
+
} = Ge, _c = ({
|
|
6411
6421
|
onOk: e,
|
|
6412
6422
|
lang: t
|
|
6413
6423
|
}) => {
|
|
6414
|
-
|
|
6424
|
+
Oc({
|
|
6415
6425
|
title: Oe("removeItems", t),
|
|
6416
6426
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6417
6427
|
centered: !0,
|
|
@@ -6421,12 +6431,12 @@ const Tc = (e, t) => {
|
|
|
6421
6431
|
cancelText: Oe("cancel", t)
|
|
6422
6432
|
});
|
|
6423
6433
|
}, {
|
|
6424
|
-
confirm:
|
|
6425
|
-
} = Ge,
|
|
6434
|
+
confirm: Ic
|
|
6435
|
+
} = Ge, Dc = ({
|
|
6426
6436
|
onOk: e,
|
|
6427
6437
|
lang: t
|
|
6428
6438
|
}) => {
|
|
6429
|
-
|
|
6439
|
+
Ic({
|
|
6430
6440
|
title: Oe("unlinkItems", t),
|
|
6431
6441
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6432
6442
|
centered: !0,
|
|
@@ -6436,8 +6446,8 @@ const Tc = (e, t) => {
|
|
|
6436
6446
|
cancelText: Oe("cancel", t)
|
|
6437
6447
|
});
|
|
6438
6448
|
}, {
|
|
6439
|
-
useToken:
|
|
6440
|
-
} = Pe,
|
|
6449
|
+
useToken: Vc
|
|
6450
|
+
} = Pe, Ac = (e) => {
|
|
6441
6451
|
const {
|
|
6442
6452
|
title: t,
|
|
6443
6453
|
readOnly: r,
|
|
@@ -6456,7 +6466,7 @@ const Tc = (e, t) => {
|
|
|
6456
6466
|
showToggleButton: h
|
|
6457
6467
|
} = e, {
|
|
6458
6468
|
token: g
|
|
6459
|
-
} =
|
|
6469
|
+
} = Vc();
|
|
6460
6470
|
function y() {
|
|
6461
6471
|
return /* @__PURE__ */ n("div", {
|
|
6462
6472
|
className: "inline-block w-3"
|
|
@@ -6527,12 +6537,12 @@ const Tc = (e, t) => {
|
|
|
6527
6537
|
})]
|
|
6528
6538
|
})]
|
|
6529
6539
|
});
|
|
6530
|
-
},
|
|
6540
|
+
}, Rc = {
|
|
6531
6541
|
form: kr,
|
|
6532
6542
|
tree: Ar,
|
|
6533
6543
|
graph: gn
|
|
6534
6544
|
};
|
|
6535
|
-
function
|
|
6545
|
+
function kc(e) {
|
|
6536
6546
|
const t = e.map((i) => i.id);
|
|
6537
6547
|
return e.filter((i, o) => {
|
|
6538
6548
|
const {
|
|
@@ -6541,7 +6551,7 @@ function Rc(e) {
|
|
|
6541
6551
|
return !t.includes(s, o + 1);
|
|
6542
6552
|
});
|
|
6543
6553
|
}
|
|
6544
|
-
const
|
|
6554
|
+
const Mc = (e) => {
|
|
6545
6555
|
var at;
|
|
6546
6556
|
const {
|
|
6547
6557
|
value: t,
|
|
@@ -6589,7 +6599,7 @@ const kc = (e) => {
|
|
|
6589
6599
|
var ae, Ae;
|
|
6590
6600
|
r == null || r({
|
|
6591
6601
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
|
|
6592
|
-
items:
|
|
6602
|
+
items: kc(X)
|
|
6593
6603
|
});
|
|
6594
6604
|
}, Ee = async () => {
|
|
6595
6605
|
await Ie(), u > Q.length - 1 && u !== 0 && c(0);
|
|
@@ -6681,7 +6691,7 @@ const kc = (e) => {
|
|
|
6681
6691
|
}) : X();
|
|
6682
6692
|
}, je = () => {
|
|
6683
6693
|
if (Z) {
|
|
6684
|
-
|
|
6694
|
+
Dc({
|
|
6685
6695
|
lang: g,
|
|
6686
6696
|
onOk: () => {
|
|
6687
6697
|
a === "form" ? Fe() : Me();
|
|
@@ -6689,7 +6699,7 @@ const kc = (e) => {
|
|
|
6689
6699
|
});
|
|
6690
6700
|
return;
|
|
6691
6701
|
}
|
|
6692
|
-
|
|
6702
|
+
_c({
|
|
6693
6703
|
lang: g,
|
|
6694
6704
|
onOk: () => {
|
|
6695
6705
|
a === "form" ? Fe() : Me();
|
|
@@ -6817,7 +6827,7 @@ const kc = (e) => {
|
|
|
6817
6827
|
}
|
|
6818
6828
|
};
|
|
6819
6829
|
function ue() {
|
|
6820
|
-
const X =
|
|
6830
|
+
const X = Rc[a];
|
|
6821
6831
|
if (a === "graph")
|
|
6822
6832
|
return Ln(o.get("graph").arch).string;
|
|
6823
6833
|
{
|
|
@@ -6909,7 +6919,7 @@ const kc = (e) => {
|
|
|
6909
6919
|
});
|
|
6910
6920
|
const Ke = M;
|
|
6911
6921
|
return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
6912
|
-
children: [/* @__PURE__ */ n(
|
|
6922
|
+
children: [/* @__PURE__ */ n(Ac, {
|
|
6913
6923
|
mode: a,
|
|
6914
6924
|
title: ue(),
|
|
6915
6925
|
readOnly: U,
|
|
@@ -6960,7 +6970,7 @@ const kc = (e) => {
|
|
|
6960
6970
|
}
|
|
6961
6971
|
})]
|
|
6962
6972
|
});
|
|
6963
|
-
},
|
|
6973
|
+
}, Ec = (e) => {
|
|
6964
6974
|
const {
|
|
6965
6975
|
ooui: t
|
|
6966
6976
|
} = e, {
|
|
@@ -7008,7 +7018,7 @@ const kc = (e) => {
|
|
|
7008
7018
|
message: f,
|
|
7009
7019
|
type: "error",
|
|
7010
7020
|
banner: !0
|
|
7011
|
-
}) : /* @__PURE__ */ n(
|
|
7021
|
+
}) : /* @__PURE__ */ n(cc, {
|
|
7012
7022
|
initialView: l,
|
|
7013
7023
|
children: /* @__PURE__ */ n(ve, {
|
|
7014
7024
|
required: s,
|
|
@@ -7024,15 +7034,15 @@ const kc = (e) => {
|
|
|
7024
7034
|
throw new Error();
|
|
7025
7035
|
},
|
|
7026
7036
|
...e,
|
|
7027
|
-
children: /* @__PURE__ */ n(
|
|
7037
|
+
children: /* @__PURE__ */ n(Mc, {
|
|
7028
7038
|
ooui: t,
|
|
7029
7039
|
views: m
|
|
7030
7040
|
})
|
|
7031
7041
|
})
|
|
7032
7042
|
});
|
|
7033
7043
|
}, {
|
|
7034
|
-
useToken:
|
|
7035
|
-
} = Pe,
|
|
7044
|
+
useToken: $c
|
|
7045
|
+
} = Pe, Lc = (e) => {
|
|
7036
7046
|
const {
|
|
7037
7047
|
ooui: t
|
|
7038
7048
|
} = e, {
|
|
@@ -7042,11 +7052,11 @@ const kc = (e) => {
|
|
|
7042
7052
|
required: r,
|
|
7043
7053
|
type: "number",
|
|
7044
7054
|
...e,
|
|
7045
|
-
children: /* @__PURE__ */ n(
|
|
7055
|
+
children: /* @__PURE__ */ n(Nc, {
|
|
7046
7056
|
ooui: t
|
|
7047
7057
|
})
|
|
7048
7058
|
});
|
|
7049
|
-
},
|
|
7059
|
+
}, Nc = (e) => {
|
|
7050
7060
|
const {
|
|
7051
7061
|
ooui: t,
|
|
7052
7062
|
value: r,
|
|
@@ -7057,7 +7067,7 @@ const kc = (e) => {
|
|
|
7057
7067
|
required: a
|
|
7058
7068
|
} = t, {
|
|
7059
7069
|
token: l
|
|
7060
|
-
} =
|
|
7070
|
+
} = $c(), u = a && !s ? {
|
|
7061
7071
|
backgroundColor: l.colorPrimaryBg
|
|
7062
7072
|
} : void 0, c = de(), [f, d] = T(), m = Y(Ne), {
|
|
7063
7073
|
elementHasLostFocus: v
|
|
@@ -7072,7 +7082,7 @@ const kc = (e) => {
|
|
|
7072
7082
|
c.current = y.target.value, d(y.target.value);
|
|
7073
7083
|
}
|
|
7074
7084
|
async function g() {
|
|
7075
|
-
p(
|
|
7085
|
+
p(El(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
|
|
7076
7086
|
}
|
|
7077
7087
|
return /* @__PURE__ */ n(nt, {
|
|
7078
7088
|
value: f,
|
|
@@ -7106,9 +7116,9 @@ function Do(e) {
|
|
|
7106
7116
|
});
|
|
7107
7117
|
}
|
|
7108
7118
|
const {
|
|
7109
|
-
TabPane:
|
|
7119
|
+
TabPane: Pc
|
|
7110
7120
|
} = Vr;
|
|
7111
|
-
function
|
|
7121
|
+
function Hc(e) {
|
|
7112
7122
|
const {
|
|
7113
7123
|
ooui: t,
|
|
7114
7124
|
responsiveBehaviour: r
|
|
@@ -7122,7 +7132,7 @@ function Pc(e) {
|
|
|
7122
7132
|
return /* @__PURE__ */ n(Vr, {
|
|
7123
7133
|
defaultActiveKey: "1",
|
|
7124
7134
|
tabPosition: t.tabPosition,
|
|
7125
|
-
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
7135
|
+
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Pc, {
|
|
7126
7136
|
tab: /* @__PURE__ */ P(ne, {
|
|
7127
7137
|
children: [o(s.icon), " ", s.label]
|
|
7128
7138
|
}),
|
|
@@ -7135,10 +7145,10 @@ function Pc(e) {
|
|
|
7135
7145
|
});
|
|
7136
7146
|
}
|
|
7137
7147
|
const {
|
|
7138
|
-
useToken:
|
|
7148
|
+
useToken: Bc
|
|
7139
7149
|
} = Pe, {
|
|
7140
7150
|
TextArea: An
|
|
7141
|
-
} = nt,
|
|
7151
|
+
} = nt, jc = (e) => {
|
|
7142
7152
|
const {
|
|
7143
7153
|
ooui: t
|
|
7144
7154
|
} = e, {
|
|
@@ -7149,7 +7159,7 @@ const {
|
|
|
7149
7159
|
translatable: a
|
|
7150
7160
|
} = t, {
|
|
7151
7161
|
token: l
|
|
7152
|
-
} =
|
|
7162
|
+
} = Bc(), u = o && !i ? {
|
|
7153
7163
|
backgroundColor: l.colorPrimaryBg
|
|
7154
7164
|
} : void 0, c = Y(Ne), {
|
|
7155
7165
|
elementHasLostFocus: f
|
|
@@ -7157,7 +7167,7 @@ const {
|
|
|
7157
7167
|
return /* @__PURE__ */ n(ve, {
|
|
7158
7168
|
required: o,
|
|
7159
7169
|
...e,
|
|
7160
|
-
children: a ? /* @__PURE__ */ n(
|
|
7170
|
+
children: a ? /* @__PURE__ */ n(Kc, {
|
|
7161
7171
|
field: r,
|
|
7162
7172
|
height: s,
|
|
7163
7173
|
requiredStyle: u
|
|
@@ -7171,7 +7181,7 @@ const {
|
|
|
7171
7181
|
onBlur: f
|
|
7172
7182
|
})
|
|
7173
7183
|
});
|
|
7174
|
-
},
|
|
7184
|
+
}, Kc = ({
|
|
7175
7185
|
value: e,
|
|
7176
7186
|
field: t,
|
|
7177
7187
|
requiredStyle: r,
|
|
@@ -7256,7 +7266,7 @@ const {
|
|
|
7256
7266
|
})
|
|
7257
7267
|
})]
|
|
7258
7268
|
});
|
|
7259
|
-
},
|
|
7269
|
+
}, Yc = (e) => {
|
|
7260
7270
|
const {
|
|
7261
7271
|
ooui: t
|
|
7262
7272
|
} = e, {
|
|
@@ -7270,7 +7280,7 @@ const {
|
|
|
7270
7280
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7271
7281
|
})
|
|
7272
7282
|
});
|
|
7273
|
-
},
|
|
7283
|
+
}, Wc = ({
|
|
7274
7284
|
model: e,
|
|
7275
7285
|
context: t,
|
|
7276
7286
|
locale: r,
|
|
@@ -7291,7 +7301,7 @@ const {
|
|
|
7291
7301
|
]);
|
|
7292
7302
|
const { datas: O } = await H.getHandler().exportData({
|
|
7293
7303
|
model: e,
|
|
7294
|
-
fields:
|
|
7304
|
+
fields: Zc({
|
|
7295
7305
|
keys: g.selectedKeys,
|
|
7296
7306
|
fields: l.current
|
|
7297
7307
|
}),
|
|
@@ -7320,7 +7330,7 @@ const {
|
|
|
7320
7330
|
fields: []
|
|
7321
7331
|
});
|
|
7322
7332
|
for (const [V, D] of Object.entries(w))
|
|
7323
|
-
w[V].string =
|
|
7333
|
+
w[V].string = Gc({
|
|
7324
7334
|
parentTitle: O.string,
|
|
7325
7335
|
title: D.string
|
|
7326
7336
|
});
|
|
@@ -7331,7 +7341,7 @@ const {
|
|
|
7331
7341
|
},
|
|
7332
7342
|
[l.current, e, t]
|
|
7333
7343
|
), m = $e(async () => {
|
|
7334
|
-
const g = await
|
|
7344
|
+
const g = await qc({ model: e, context: t }), y = await Jc({
|
|
7335
7345
|
predefinedExports: g,
|
|
7336
7346
|
fields: l.current,
|
|
7337
7347
|
onGetFieldChilds: d
|
|
@@ -7413,7 +7423,7 @@ const {
|
|
|
7413
7423
|
continue;
|
|
7414
7424
|
const s = Vo(o);
|
|
7415
7425
|
r.push({
|
|
7416
|
-
key:
|
|
7426
|
+
key: Uc({ key: i, parentKey: t }),
|
|
7417
7427
|
title: o.string,
|
|
7418
7428
|
tooltip: o.help,
|
|
7419
7429
|
required: o.required,
|
|
@@ -7421,7 +7431,7 @@ const {
|
|
|
7421
7431
|
});
|
|
7422
7432
|
}
|
|
7423
7433
|
return r;
|
|
7424
|
-
}, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
7434
|
+
}, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Uc = ({
|
|
7425
7435
|
parentKey: e,
|
|
7426
7436
|
key: t
|
|
7427
7437
|
}) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Rn = (e) => {
|
|
@@ -7429,10 +7439,10 @@ const {
|
|
|
7429
7439
|
return e;
|
|
7430
7440
|
const t = e.split("/");
|
|
7431
7441
|
return t[t.length - 1];
|
|
7432
|
-
}, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)],
|
|
7442
|
+
}, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Gc = ({
|
|
7433
7443
|
title: e,
|
|
7434
7444
|
parentTitle: t
|
|
7435
|
-
}) => `${t ? t + " \u2192 " : ""}${e}`,
|
|
7445
|
+
}) => `${t ? t + " \u2192 " : ""}${e}`, qc = async ({
|
|
7436
7446
|
model: e,
|
|
7437
7447
|
context: t
|
|
7438
7448
|
}) => {
|
|
@@ -7452,10 +7462,10 @@ const {
|
|
|
7452
7462
|
key: o.find((u) => u.id === a).name
|
|
7453
7463
|
}))
|
|
7454
7464
|
}));
|
|
7455
|
-
},
|
|
7465
|
+
}, zc = ({
|
|
7456
7466
|
fields: e,
|
|
7457
7467
|
keys: t
|
|
7458
|
-
}) =>
|
|
7468
|
+
}) => Xc([
|
|
7459
7469
|
...new Set(
|
|
7460
7470
|
t.filter((r) => {
|
|
7461
7471
|
var i, o, s;
|
|
@@ -7469,27 +7479,27 @@ const {
|
|
|
7469
7479
|
}
|
|
7470
7480
|
}).map((r) => Lt(r))
|
|
7471
7481
|
)
|
|
7472
|
-
]),
|
|
7482
|
+
]), Jc = async ({
|
|
7473
7483
|
predefinedExports: e,
|
|
7474
7484
|
fields: t,
|
|
7475
7485
|
onGetFieldChilds: r
|
|
7476
7486
|
}) => {
|
|
7477
7487
|
const i = e.flatMap(
|
|
7478
7488
|
(a) => a.fields.map((l) => l.key)
|
|
7479
|
-
), o =
|
|
7489
|
+
), o = zc({
|
|
7480
7490
|
fields: t,
|
|
7481
7491
|
keys: i
|
|
7482
7492
|
}), s = [];
|
|
7483
7493
|
for (const a of o)
|
|
7484
7494
|
s.push({ key: a, childs: await r(a) });
|
|
7485
7495
|
return s;
|
|
7486
|
-
},
|
|
7496
|
+
}, Zc = ({
|
|
7487
7497
|
keys: e,
|
|
7488
7498
|
fields: t
|
|
7489
7499
|
}) => e.map((r) => {
|
|
7490
7500
|
const i = Rn(r), s = kn(r, t)[i];
|
|
7491
7501
|
return Vo(s) ? `${r}/id` : r;
|
|
7492
|
-
}),
|
|
7502
|
+
}), Xc = (e) => {
|
|
7493
7503
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
7494
7504
|
for (const i of e) {
|
|
7495
7505
|
const o = i.split("/");
|
|
@@ -7503,7 +7513,7 @@ const {
|
|
|
7503
7513
|
const s = i.split("/").length, a = o.split("/").length;
|
|
7504
7514
|
return s - a;
|
|
7505
7515
|
}), r;
|
|
7506
|
-
},
|
|
7516
|
+
}, Qc = (e) => {
|
|
7507
7517
|
const {
|
|
7508
7518
|
visible: t,
|
|
7509
7519
|
locale: r,
|
|
@@ -7522,7 +7532,7 @@ const {
|
|
|
7522
7532
|
onGetPredefinedExports: p,
|
|
7523
7533
|
onSavePredefinedExport: h,
|
|
7524
7534
|
onRemovePredefinedExport: g
|
|
7525
|
-
} =
|
|
7535
|
+
} = Wc({
|
|
7526
7536
|
model: o,
|
|
7527
7537
|
context: s,
|
|
7528
7538
|
domain: u,
|
|
@@ -7545,14 +7555,14 @@ const {
|
|
|
7545
7555
|
onSavePredefinedExport: h,
|
|
7546
7556
|
onRemovePredefinedExport: g
|
|
7547
7557
|
});
|
|
7548
|
-
},
|
|
7558
|
+
}, ed = (e) => {
|
|
7549
7559
|
const {
|
|
7550
7560
|
ooui: t
|
|
7551
7561
|
} = e;
|
|
7552
7562
|
return /* @__PURE__ */ n(Co, {
|
|
7553
7563
|
ooui: t
|
|
7554
7564
|
});
|
|
7555
|
-
},
|
|
7565
|
+
}, td = (e) => {
|
|
7556
7566
|
const {
|
|
7557
7567
|
ooui: t
|
|
7558
7568
|
} = e;
|
|
@@ -7691,24 +7701,24 @@ var Ao = { exports: {} };
|
|
|
7691
7701
|
};
|
|
7692
7702
|
});
|
|
7693
7703
|
})(Ao);
|
|
7694
|
-
const
|
|
7695
|
-
dt.extend(
|
|
7696
|
-
const
|
|
7704
|
+
const nd = Ao.exports;
|
|
7705
|
+
dt.extend(nd);
|
|
7706
|
+
const rd = (e) => {
|
|
7697
7707
|
const {
|
|
7698
7708
|
ooui: t
|
|
7699
7709
|
} = e;
|
|
7700
7710
|
return /* @__PURE__ */ n(ve, {
|
|
7701
7711
|
...e,
|
|
7702
|
-
children: /* @__PURE__ */ n(
|
|
7712
|
+
children: /* @__PURE__ */ n(od, {
|
|
7703
7713
|
ooui: t
|
|
7704
7714
|
})
|
|
7705
7715
|
});
|
|
7706
|
-
},
|
|
7716
|
+
}, od = (e) => /* @__PURE__ */ n(Dr, {
|
|
7707
7717
|
onChange: (r, i) => {
|
|
7708
7718
|
e.onChange && e.onChange(i);
|
|
7709
7719
|
},
|
|
7710
7720
|
value: e.value ? dt(e.value, "HH:mm:ss") : void 0
|
|
7711
|
-
}),
|
|
7721
|
+
}), id = (e) => {
|
|
7712
7722
|
const {
|
|
7713
7723
|
ooui: t
|
|
7714
7724
|
} = e, {
|
|
@@ -7717,11 +7727,11 @@ const nd = (e) => {
|
|
|
7717
7727
|
return /* @__PURE__ */ n(ve, {
|
|
7718
7728
|
required: r,
|
|
7719
7729
|
...e,
|
|
7720
|
-
children: /* @__PURE__ */ n(
|
|
7730
|
+
children: /* @__PURE__ */ n(sd, {
|
|
7721
7731
|
ooui: t
|
|
7722
7732
|
})
|
|
7723
7733
|
});
|
|
7724
|
-
},
|
|
7734
|
+
}, sd = (e) => {
|
|
7725
7735
|
const {
|
|
7726
7736
|
value: t,
|
|
7727
7737
|
onChange: r,
|
|
@@ -7778,8 +7788,8 @@ const nd = (e) => {
|
|
|
7778
7788
|
})]
|
|
7779
7789
|
});
|
|
7780
7790
|
}, {
|
|
7781
|
-
useToken:
|
|
7782
|
-
} = Pe,
|
|
7791
|
+
useToken: ad
|
|
7792
|
+
} = Pe, ld = (e) => {
|
|
7783
7793
|
const {
|
|
7784
7794
|
ooui: t
|
|
7785
7795
|
} = e, {
|
|
@@ -7788,11 +7798,11 @@ const nd = (e) => {
|
|
|
7788
7798
|
return /* @__PURE__ */ n(ve, {
|
|
7789
7799
|
required: r,
|
|
7790
7800
|
...e,
|
|
7791
|
-
children: /* @__PURE__ */ n(
|
|
7801
|
+
children: /* @__PURE__ */ n(cd, {
|
|
7792
7802
|
ooui: t
|
|
7793
7803
|
})
|
|
7794
7804
|
});
|
|
7795
|
-
},
|
|
7805
|
+
}, cd = (e) => {
|
|
7796
7806
|
const {
|
|
7797
7807
|
ooui: t,
|
|
7798
7808
|
value: r,
|
|
@@ -7803,7 +7813,7 @@ const nd = (e) => {
|
|
|
7803
7813
|
filenameField: a
|
|
7804
7814
|
} = t, {
|
|
7805
7815
|
token: l
|
|
7806
|
-
} =
|
|
7816
|
+
} = ad(), u = s && !o ? {
|
|
7807
7817
|
backgroundColor: l.colorPrimaryBg
|
|
7808
7818
|
} : void 0, c = de(null), {
|
|
7809
7819
|
setFieldValue: f,
|
|
@@ -8067,13 +8077,13 @@ function Ro(e) {
|
|
|
8067
8077
|
});
|
|
8068
8078
|
}
|
|
8069
8079
|
const {
|
|
8070
|
-
confirm:
|
|
8071
|
-
} = Ge,
|
|
8080
|
+
confirm: dd
|
|
8081
|
+
} = Ge, ud = ({
|
|
8072
8082
|
onOk: e,
|
|
8073
8083
|
onCancel: t,
|
|
8074
8084
|
lang: r
|
|
8075
8085
|
}) => {
|
|
8076
|
-
|
|
8086
|
+
dd({
|
|
8077
8087
|
title: Oe("unsavedChanges", r),
|
|
8078
8088
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
8079
8089
|
centered: !0,
|
|
@@ -8099,7 +8109,7 @@ async function ko(e, t, r) {
|
|
|
8099
8109
|
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]
|
|
8100
8110
|
}));
|
|
8101
8111
|
}
|
|
8102
|
-
const
|
|
8112
|
+
const fd = (e) => {
|
|
8103
8113
|
const {
|
|
8104
8114
|
numberOfAttachments: t,
|
|
8105
8115
|
disabled: r
|
|
@@ -8118,12 +8128,12 @@ const ud = (e) => {
|
|
|
8118
8128
|
onVisibleChange: (u) => a(u),
|
|
8119
8129
|
visible: s,
|
|
8120
8130
|
placement: "bottom",
|
|
8121
|
-
content:
|
|
8131
|
+
content: md(e, a, o),
|
|
8122
8132
|
title: i("attachments"),
|
|
8123
8133
|
arrowContent: null,
|
|
8124
8134
|
children: l
|
|
8125
8135
|
});
|
|
8126
|
-
},
|
|
8136
|
+
}, md = (e, t, r) => {
|
|
8127
8137
|
const {
|
|
8128
8138
|
attachments: i = [],
|
|
8129
8139
|
loading: o,
|
|
@@ -8209,7 +8219,7 @@ const ud = (e) => {
|
|
|
8209
8219
|
})]
|
|
8210
8220
|
});
|
|
8211
8221
|
};
|
|
8212
|
-
function
|
|
8222
|
+
function hd(e) {
|
|
8213
8223
|
const {
|
|
8214
8224
|
attachments: t,
|
|
8215
8225
|
disabled: r = !1,
|
|
@@ -8267,7 +8277,7 @@ function md(e) {
|
|
|
8267
8277
|
return pe(() => {
|
|
8268
8278
|
p();
|
|
8269
8279
|
}, [p]), /* @__PURE__ */ P(ne, {
|
|
8270
|
-
children: [/* @__PURE__ */ n(
|
|
8280
|
+
children: [/* @__PURE__ */ n(fd, {
|
|
8271
8281
|
numberOfAttachments: t.length,
|
|
8272
8282
|
attachments: c,
|
|
8273
8283
|
disabled: r,
|
|
@@ -8287,7 +8297,7 @@ function md(e) {
|
|
|
8287
8297
|
})]
|
|
8288
8298
|
});
|
|
8289
8299
|
}
|
|
8290
|
-
function
|
|
8300
|
+
function pd({
|
|
8291
8301
|
toolbar: e
|
|
8292
8302
|
}) {
|
|
8293
8303
|
const {
|
|
@@ -8326,7 +8336,7 @@ function hd({
|
|
|
8326
8336
|
} = R || {};
|
|
8327
8337
|
function M(L) {
|
|
8328
8338
|
if (s) {
|
|
8329
|
-
|
|
8339
|
+
ud({
|
|
8330
8340
|
lang: S,
|
|
8331
8341
|
onOk: () => {
|
|
8332
8342
|
L();
|
|
@@ -8520,7 +8530,7 @@ function hd({
|
|
|
8520
8530
|
action_type: L.type
|
|
8521
8531
|
});
|
|
8522
8532
|
}
|
|
8523
|
-
}), /* @__PURE__ */ n(
|
|
8533
|
+
}), /* @__PURE__ */ n(hd, {
|
|
8524
8534
|
disabled: z,
|
|
8525
8535
|
attachments: I,
|
|
8526
8536
|
onAddNewAttachment: async () => {
|
|
@@ -8585,7 +8595,7 @@ async function Tt({
|
|
|
8585
8595
|
};
|
|
8586
8596
|
}
|
|
8587
8597
|
const {
|
|
8588
|
-
useToken:
|
|
8598
|
+
useToken: gd
|
|
8589
8599
|
} = Pe, Mo = (e) => {
|
|
8590
8600
|
const {
|
|
8591
8601
|
ooui: t,
|
|
@@ -8599,7 +8609,7 @@ const {
|
|
|
8599
8609
|
required: u
|
|
8600
8610
|
} = t, {
|
|
8601
8611
|
token: c
|
|
8602
|
-
} =
|
|
8612
|
+
} = gd(), f = u && !l ? {
|
|
8603
8613
|
backgroundColor: c.colorPrimaryBg
|
|
8604
8614
|
} : void 0, d = Y(Ne), {
|
|
8605
8615
|
elementHasLostFocus: m
|
|
@@ -8662,7 +8672,7 @@ const {
|
|
|
8662
8672
|
})
|
|
8663
8673
|
})]
|
|
8664
8674
|
});
|
|
8665
|
-
},
|
|
8675
|
+
}, yd = (e) => {
|
|
8666
8676
|
const {
|
|
8667
8677
|
ooui: t
|
|
8668
8678
|
} = e, {
|
|
@@ -8676,7 +8686,7 @@ const {
|
|
|
8676
8686
|
valueValidator: (i) => i ? Pi(i) : !1
|
|
8677
8687
|
})
|
|
8678
8688
|
});
|
|
8679
|
-
},
|
|
8689
|
+
}, vd = (e) => {
|
|
8680
8690
|
const {
|
|
8681
8691
|
ooui: t
|
|
8682
8692
|
} = e, {
|
|
@@ -8691,7 +8701,7 @@ const {
|
|
|
8691
8701
|
valueValidator: (i) => i ? Hi(i) : !1
|
|
8692
8702
|
})
|
|
8693
8703
|
});
|
|
8694
|
-
},
|
|
8704
|
+
}, wd = (e) => {
|
|
8695
8705
|
const {
|
|
8696
8706
|
visible: t,
|
|
8697
8707
|
onIdSubmitted: r,
|
|
@@ -8761,7 +8771,7 @@ const {
|
|
|
8761
8771
|
})
|
|
8762
8772
|
});
|
|
8763
8773
|
}, {
|
|
8764
|
-
useToken:
|
|
8774
|
+
useToken: bd
|
|
8765
8775
|
} = Pe;
|
|
8766
8776
|
function Eo(e) {
|
|
8767
8777
|
const {
|
|
@@ -8769,7 +8779,7 @@ function Eo(e) {
|
|
|
8769
8779
|
...r
|
|
8770
8780
|
} = e, {
|
|
8771
8781
|
token: i
|
|
8772
|
-
} =
|
|
8782
|
+
} = bd();
|
|
8773
8783
|
return /* @__PURE__ */ P("div", {
|
|
8774
8784
|
style: {
|
|
8775
8785
|
position: "relative"
|
|
@@ -8803,7 +8813,7 @@ function Eo(e) {
|
|
|
8803
8813
|
})]
|
|
8804
8814
|
});
|
|
8805
8815
|
}
|
|
8806
|
-
function
|
|
8816
|
+
function xd({
|
|
8807
8817
|
refreshGraph: e
|
|
8808
8818
|
}) {
|
|
8809
8819
|
const {
|
|
@@ -8854,9 +8864,9 @@ function bd({
|
|
|
8854
8864
|
});
|
|
8855
8865
|
}
|
|
8856
8866
|
const {
|
|
8857
|
-
useToken:
|
|
8867
|
+
useToken: Cd
|
|
8858
8868
|
} = Pe, {
|
|
8859
|
-
Title:
|
|
8869
|
+
Title: Sd,
|
|
8860
8870
|
Text: Xt
|
|
8861
8871
|
} = an;
|
|
8862
8872
|
function yn(e) {
|
|
@@ -8875,7 +8885,7 @@ function yn(e) {
|
|
|
8875
8885
|
t: f
|
|
8876
8886
|
} = Y(we), {
|
|
8877
8887
|
token: d
|
|
8878
|
-
} =
|
|
8888
|
+
} = Cd();
|
|
8879
8889
|
function m() {
|
|
8880
8890
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8881
8891
|
return s ? u === 0 ? /* @__PURE__ */ P(ne, {
|
|
@@ -8930,7 +8940,7 @@ function yn(e) {
|
|
|
8930
8940
|
align: "middle",
|
|
8931
8941
|
children: [/* @__PURE__ */ P(le, {
|
|
8932
8942
|
flex: 2,
|
|
8933
|
-
children: [/* @__PURE__ */ n(
|
|
8943
|
+
children: [/* @__PURE__ */ n(Sd, {
|
|
8934
8944
|
level: 3,
|
|
8935
8945
|
style: {
|
|
8936
8946
|
marginBottom: 0
|
|
@@ -8949,7 +8959,7 @@ function yn(e) {
|
|
|
8949
8959
|
})]
|
|
8950
8960
|
});
|
|
8951
8961
|
}
|
|
8952
|
-
const
|
|
8962
|
+
const Td = (e) => {
|
|
8953
8963
|
const {
|
|
8954
8964
|
viewData: t,
|
|
8955
8965
|
visible: r,
|
|
@@ -9017,7 +9027,7 @@ const Sd = (e) => {
|
|
|
9017
9027
|
return !r || !t ? null : /* @__PURE__ */ P(ne, {
|
|
9018
9028
|
children: [/* @__PURE__ */ n(yn, {
|
|
9019
9029
|
title: t.name,
|
|
9020
|
-
children: /* @__PURE__ */ n(
|
|
9030
|
+
children: /* @__PURE__ */ n(xd, {
|
|
9021
9031
|
refreshGraph: () => {
|
|
9022
9032
|
u.current.refresh();
|
|
9023
9033
|
}
|
|
@@ -9050,7 +9060,7 @@ const Sd = (e) => {
|
|
|
9050
9060
|
manualIds: R ? v == null ? void 0 : v.map((j) => j.id) : void 0
|
|
9051
9061
|
})]
|
|
9052
9062
|
});
|
|
9053
|
-
},
|
|
9063
|
+
}, Fd = (e) => {
|
|
9054
9064
|
const {
|
|
9055
9065
|
visible: t,
|
|
9056
9066
|
formRef: r,
|
|
@@ -9067,7 +9077,7 @@ const Sd = (e) => {
|
|
|
9067
9077
|
} = e;
|
|
9068
9078
|
return t ? /* @__PURE__ */ P(ne, {
|
|
9069
9079
|
children: [/* @__PURE__ */ n(yn, {
|
|
9070
|
-
children: /* @__PURE__ */ n(
|
|
9080
|
+
children: /* @__PURE__ */ n(pd, {
|
|
9071
9081
|
toolbar: a == null ? void 0 : a.toolbar
|
|
9072
9082
|
})
|
|
9073
9083
|
}), /* @__PURE__ */ n(Ut, {
|
|
@@ -9086,7 +9096,7 @@ const Sd = (e) => {
|
|
|
9086
9096
|
})]
|
|
9087
9097
|
}) : null;
|
|
9088
9098
|
};
|
|
9089
|
-
function
|
|
9099
|
+
function Od(e) {
|
|
9090
9100
|
const {
|
|
9091
9101
|
onSearch: t,
|
|
9092
9102
|
disabled: r = !1,
|
|
@@ -9153,10 +9163,10 @@ function Fd(e) {
|
|
|
9153
9163
|
})
|
|
9154
9164
|
});
|
|
9155
9165
|
}
|
|
9156
|
-
const
|
|
9166
|
+
const _d = Je.createContext({
|
|
9157
9167
|
previewFeatures: !1
|
|
9158
9168
|
});
|
|
9159
|
-
function
|
|
9169
|
+
function Id(e) {
|
|
9160
9170
|
var z;
|
|
9161
9171
|
const {
|
|
9162
9172
|
availableViews: t,
|
|
@@ -9188,7 +9198,7 @@ function _d(e) {
|
|
|
9188
9198
|
toolbar: S
|
|
9189
9199
|
} = e, {
|
|
9190
9200
|
previewFeatures: x
|
|
9191
|
-
} = Y(
|
|
9201
|
+
} = Y(_d), {
|
|
9192
9202
|
t: $,
|
|
9193
9203
|
lang: R
|
|
9194
9204
|
} = Y(we), F = Y(Mt), {
|
|
@@ -9256,7 +9266,7 @@ function _d(e) {
|
|
|
9256
9266
|
return /* @__PURE__ */ P(Ye, {
|
|
9257
9267
|
wrap: !0,
|
|
9258
9268
|
children: [C ? null : /* @__PURE__ */ P(ne, {
|
|
9259
|
-
children: [/* @__PURE__ */ n(
|
|
9269
|
+
children: [/* @__PURE__ */ n(Od, {
|
|
9260
9270
|
disabled: l || a || O,
|
|
9261
9271
|
searchText: y,
|
|
9262
9272
|
onSearch: (U) => {
|
|
@@ -9395,7 +9405,7 @@ function _d(e) {
|
|
|
9395
9405
|
_(!0);
|
|
9396
9406
|
},
|
|
9397
9407
|
disabled: l || a || O || N
|
|
9398
|
-
}), /* @__PURE__ */ n(
|
|
9408
|
+
}), /* @__PURE__ */ n(Qc, {
|
|
9399
9409
|
visible: M,
|
|
9400
9410
|
locale: R,
|
|
9401
9411
|
onClose: () => _(!1),
|
|
@@ -9415,7 +9425,7 @@ function $t() {
|
|
|
9415
9425
|
className: "inline-block w-2"
|
|
9416
9426
|
});
|
|
9417
9427
|
}
|
|
9418
|
-
const
|
|
9428
|
+
const Dd = (e) => {
|
|
9419
9429
|
const {
|
|
9420
9430
|
visible: t,
|
|
9421
9431
|
searchTreeRef: r,
|
|
@@ -9436,7 +9446,7 @@ const Id = (e) => {
|
|
|
9436
9446
|
} = Y(Qe);
|
|
9437
9447
|
return t ? /* @__PURE__ */ P(ne, {
|
|
9438
9448
|
children: [/* @__PURE__ */ n(yn, {
|
|
9439
|
-
children: /* @__PURE__ */ n(
|
|
9449
|
+
children: /* @__PURE__ */ n(Id, {
|
|
9440
9450
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9441
9451
|
parentContext: o,
|
|
9442
9452
|
treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
|
|
@@ -9462,7 +9472,7 @@ const Id = (e) => {
|
|
|
9462
9472
|
}
|
|
9463
9473
|
})]
|
|
9464
9474
|
}) : null;
|
|
9465
|
-
}, Xn = Je.createContext(null),
|
|
9475
|
+
}, Xn = Je.createContext(null), Vd = (e) => {
|
|
9466
9476
|
const [t, r] = T(!1), [i, o] = T(!1), {
|
|
9467
9477
|
children: s,
|
|
9468
9478
|
dashboardRef: a,
|
|
@@ -9480,7 +9490,7 @@ const Id = (e) => {
|
|
|
9480
9490
|
children: s
|
|
9481
9491
|
});
|
|
9482
9492
|
};
|
|
9483
|
-
function
|
|
9493
|
+
function Ad() {
|
|
9484
9494
|
const {
|
|
9485
9495
|
isLoading: e,
|
|
9486
9496
|
dashboardRef: t,
|
|
@@ -9504,7 +9514,7 @@ function Vd() {
|
|
|
9504
9514
|
onClick: () => {
|
|
9505
9515
|
i(!r);
|
|
9506
9516
|
}
|
|
9507
|
-
}),
|
|
9517
|
+
}), Rd(), /* @__PURE__ */ n(qe, {
|
|
9508
9518
|
icon: /* @__PURE__ */ n(Oi, {}),
|
|
9509
9519
|
tooltip: o("configDashboard"),
|
|
9510
9520
|
disabled: e,
|
|
@@ -9523,25 +9533,25 @@ function Vd() {
|
|
|
9523
9533
|
})]
|
|
9524
9534
|
});
|
|
9525
9535
|
}
|
|
9526
|
-
function
|
|
9536
|
+
function Rd() {
|
|
9527
9537
|
return /* @__PURE__ */ n("div", {
|
|
9528
9538
|
className: "inline-block w-2"
|
|
9529
9539
|
});
|
|
9530
9540
|
}
|
|
9531
|
-
const
|
|
9541
|
+
const kd = (e) => {
|
|
9532
9542
|
const {
|
|
9533
9543
|
dashboardData: t
|
|
9534
9544
|
} = e, r = de(), i = Y(st), {
|
|
9535
9545
|
openShortcut: o
|
|
9536
9546
|
} = i || {};
|
|
9537
|
-
return t ? /* @__PURE__ */ P(
|
|
9547
|
+
return t ? /* @__PURE__ */ P(Vd, {
|
|
9538
9548
|
dashboardRef: r,
|
|
9539
9549
|
openAction: (s) => {
|
|
9540
9550
|
o(s);
|
|
9541
9551
|
},
|
|
9542
9552
|
children: [/* @__PURE__ */ n(yn, {
|
|
9543
|
-
children: /* @__PURE__ */ n(
|
|
9544
|
-
}), /* @__PURE__ */ n(
|
|
9553
|
+
children: /* @__PURE__ */ n(Ad, {})
|
|
9554
|
+
}), /* @__PURE__ */ n(Ud, {
|
|
9545
9555
|
ref: r,
|
|
9546
9556
|
model: t.model,
|
|
9547
9557
|
id: t.id,
|
|
@@ -9550,7 +9560,7 @@ const Rd = (e) => {
|
|
|
9550
9560
|
})]
|
|
9551
9561
|
}) : null;
|
|
9552
9562
|
};
|
|
9553
|
-
async function
|
|
9563
|
+
async function Md(e) {
|
|
9554
9564
|
const t = await Promise.all(
|
|
9555
9565
|
e.map(async (i) => {
|
|
9556
9566
|
try {
|
|
@@ -9565,7 +9575,7 @@ async function kd(e) {
|
|
|
9565
9575
|
info: t[o]
|
|
9566
9576
|
})).filter((i) => i.info !== null);
|
|
9567
9577
|
}
|
|
9568
|
-
function
|
|
9578
|
+
function Ed(e, t) {
|
|
9569
9579
|
const {
|
|
9570
9580
|
domain: r,
|
|
9571
9581
|
model: i,
|
|
@@ -9621,7 +9631,7 @@ function Md(e, t) {
|
|
|
9621
9631
|
viewTuple: me
|
|
9622
9632
|
});
|
|
9623
9633
|
}
|
|
9624
|
-
const Me = await
|
|
9634
|
+
const Me = await Md(Fe);
|
|
9625
9635
|
for (const me of Me) {
|
|
9626
9636
|
if (!me)
|
|
9627
9637
|
continue;
|
|
@@ -9736,7 +9746,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9736
9746
|
return I.map((te) => {
|
|
9737
9747
|
switch (te.type) {
|
|
9738
9748
|
case "form":
|
|
9739
|
-
return /* @__PURE__ */ n(
|
|
9749
|
+
return /* @__PURE__ */ n(Fd, {
|
|
9740
9750
|
formRef: ee,
|
|
9741
9751
|
currentId: b,
|
|
9742
9752
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
@@ -9751,7 +9761,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9751
9761
|
setCurrentItemIndex: R
|
|
9752
9762
|
}, `${te.type}-${te.view_id}`);
|
|
9753
9763
|
case "tree":
|
|
9754
|
-
return /* @__PURE__ */ n(
|
|
9764
|
+
return /* @__PURE__ */ n(Dd, {
|
|
9755
9765
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
9756
9766
|
limit: g,
|
|
9757
9767
|
model: i,
|
|
@@ -9768,7 +9778,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9768
9778
|
setCurrentView: ge
|
|
9769
9779
|
}, `${te.type}-${te.view_id}`);
|
|
9770
9780
|
case "graph":
|
|
9771
|
-
return /* @__PURE__ */ n(
|
|
9781
|
+
return /* @__PURE__ */ n(Td, {
|
|
9772
9782
|
visible: y.type === te.type && y.view_id === te.view_id,
|
|
9773
9783
|
viewData: te,
|
|
9774
9784
|
model: i,
|
|
@@ -9778,7 +9788,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9778
9788
|
formView: I.find((Fe) => Fe.type === "form")
|
|
9779
9789
|
}, `${te.type}-${te.view_id}`);
|
|
9780
9790
|
case "dashboard":
|
|
9781
|
-
return /* @__PURE__ */ n(
|
|
9791
|
+
return /* @__PURE__ */ n(kd, {
|
|
9782
9792
|
dashboardData: te
|
|
9783
9793
|
}, `${te.type}-${te.view_id}`);
|
|
9784
9794
|
}
|
|
@@ -9793,7 +9803,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9793
9803
|
ge(te);
|
|
9794
9804
|
}
|
|
9795
9805
|
}
|
|
9796
|
-
return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(
|
|
9806
|
+
return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(dl, {
|
|
9797
9807
|
title: a,
|
|
9798
9808
|
currentView: y,
|
|
9799
9809
|
setCurrentView: ge,
|
|
@@ -9818,7 +9828,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9818
9828
|
searchTreeNameSearch: U,
|
|
9819
9829
|
goToResourceId: Ve,
|
|
9820
9830
|
limit: g,
|
|
9821
|
-
children: [je(), /* @__PURE__ */ n(
|
|
9831
|
+
children: [je(), /* @__PURE__ */ n(wd, {
|
|
9822
9832
|
visible: j,
|
|
9823
9833
|
onIdSubmitted: Ve,
|
|
9824
9834
|
isSearching: W,
|
|
@@ -9828,8 +9838,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9828
9838
|
})]
|
|
9829
9839
|
}) : null;
|
|
9830
9840
|
}
|
|
9831
|
-
const $o = wt(
|
|
9832
|
-
async function
|
|
9841
|
+
const $o = wt(Ed);
|
|
9842
|
+
async function $d({
|
|
9833
9843
|
actionId: e,
|
|
9834
9844
|
rootContext: t = {},
|
|
9835
9845
|
globalValues: r = {}
|
|
@@ -9881,7 +9891,7 @@ async function Ed({
|
|
|
9881
9891
|
treeExpandable: v
|
|
9882
9892
|
};
|
|
9883
9893
|
}
|
|
9884
|
-
const
|
|
9894
|
+
const Ld = Yi(Wi), Nd = (e) => {
|
|
9885
9895
|
const {
|
|
9886
9896
|
children: t = [],
|
|
9887
9897
|
onPositionItemsChanged: r
|
|
@@ -9895,7 +9905,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9895
9905
|
children: o
|
|
9896
9906
|
}, a);
|
|
9897
9907
|
});
|
|
9898
|
-
return /* @__PURE__ */ n(
|
|
9908
|
+
return /* @__PURE__ */ n(Ld, {
|
|
9899
9909
|
className: "layout",
|
|
9900
9910
|
cols: {
|
|
9901
9911
|
lg: 12,
|
|
@@ -9918,10 +9928,10 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9918
9928
|
children: i
|
|
9919
9929
|
});
|
|
9920
9930
|
}, {
|
|
9921
|
-
useToken:
|
|
9931
|
+
useToken: Pd
|
|
9922
9932
|
} = Pe, {
|
|
9923
|
-
Text:
|
|
9924
|
-
} = an,
|
|
9933
|
+
Text: Hd
|
|
9934
|
+
} = an, Bd = (e) => {
|
|
9925
9935
|
const {
|
|
9926
9936
|
title: t,
|
|
9927
9937
|
children: r,
|
|
@@ -9929,7 +9939,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9929
9939
|
openAction: o
|
|
9930
9940
|
} = e, {
|
|
9931
9941
|
token: s
|
|
9932
|
-
} =
|
|
9942
|
+
} = Pd();
|
|
9933
9943
|
return /* @__PURE__ */ P("div", {
|
|
9934
9944
|
className: "shadow-md",
|
|
9935
9945
|
style: {
|
|
@@ -9957,7 +9967,7 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9957
9967
|
cursor: "grab",
|
|
9958
9968
|
overflow: "hidden"
|
|
9959
9969
|
},
|
|
9960
|
-
children: /* @__PURE__ */ n(
|
|
9970
|
+
children: /* @__PURE__ */ n(Hd, {
|
|
9961
9971
|
ellipsis: !0,
|
|
9962
9972
|
children: t
|
|
9963
9973
|
})
|
|
@@ -9981,8 +9991,8 @@ const $d = Yi(Wi), Ld = (e) => {
|
|
|
9981
9991
|
})]
|
|
9982
9992
|
}), r]
|
|
9983
9993
|
});
|
|
9984
|
-
},
|
|
9985
|
-
function
|
|
9994
|
+
}, jd = 80;
|
|
9995
|
+
function Kd(e) {
|
|
9986
9996
|
const {
|
|
9987
9997
|
action: t,
|
|
9988
9998
|
model: r,
|
|
@@ -9991,7 +10001,7 @@ function jd(e) {
|
|
|
9991
10001
|
domain: s = [],
|
|
9992
10002
|
visible: a = !0,
|
|
9993
10003
|
parentContext: l = {}
|
|
9994
|
-
} = 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(
|
|
10004
|
+
} = 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) => {
|
|
9995
10005
|
q(!0), I(J), V((J - 1) * D.current);
|
|
9996
10006
|
}, U = async () => {
|
|
9997
10007
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
@@ -10123,7 +10133,7 @@ function jd(e) {
|
|
|
10123
10133
|
}
|
|
10124
10134
|
}) : Q();
|
|
10125
10135
|
}
|
|
10126
|
-
const
|
|
10136
|
+
const Yd = (e) => {
|
|
10127
10137
|
const {
|
|
10128
10138
|
model: t
|
|
10129
10139
|
} = e, [r, i] = T();
|
|
@@ -10151,7 +10161,7 @@ const Kd = (e) => {
|
|
|
10151
10161
|
})
|
|
10152
10162
|
});
|
|
10153
10163
|
}, On = "line_ids";
|
|
10154
|
-
function
|
|
10164
|
+
function Wd(e, t) {
|
|
10155
10165
|
const {
|
|
10156
10166
|
model: r,
|
|
10157
10167
|
context: i = {},
|
|
@@ -10231,7 +10241,7 @@ function Yd(e, t) {
|
|
|
10231
10241
|
values: x
|
|
10232
10242
|
} = S;
|
|
10233
10243
|
if (x.action_id && x.action_id.length > 0) {
|
|
10234
|
-
const $ = parseInt(x.action_id[0], 10), R = await
|
|
10244
|
+
const $ = parseInt(x.action_id[0], 10), R = await $d({
|
|
10235
10245
|
actionId: $,
|
|
10236
10246
|
rootContext: i
|
|
10237
10247
|
});
|
|
@@ -10296,7 +10306,7 @@ function Yd(e, t) {
|
|
|
10296
10306
|
message: f,
|
|
10297
10307
|
type: "error",
|
|
10298
10308
|
banner: !0
|
|
10299
|
-
})) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(
|
|
10309
|
+
})) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Nd, {
|
|
10300
10310
|
onPositionItemsChanged: D,
|
|
10301
10311
|
children: a.map((b, C) => {
|
|
10302
10312
|
const {
|
|
@@ -10338,12 +10348,12 @@ function Yd(e, t) {
|
|
|
10338
10348
|
limit: z
|
|
10339
10349
|
});
|
|
10340
10350
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
10341
|
-
L = /* @__PURE__ */ n(
|
|
10351
|
+
L = /* @__PURE__ */ n(Yd, {
|
|
10342
10352
|
model: k,
|
|
10343
10353
|
actionDomain: q
|
|
10344
10354
|
});
|
|
10345
10355
|
else if ((W == null ? void 0 : W.type) === "tree")
|
|
10346
|
-
L = /* @__PURE__ */ n(
|
|
10356
|
+
L = /* @__PURE__ */ n(Kd, {
|
|
10347
10357
|
model: k,
|
|
10348
10358
|
domain: q,
|
|
10349
10359
|
view_id: N.filter((Z) => Z[1] === "tree")[0][0],
|
|
@@ -10413,7 +10423,7 @@ function Yd(e, t) {
|
|
|
10413
10423
|
view_type: ie
|
|
10414
10424
|
};
|
|
10415
10425
|
}
|
|
10416
|
-
return /* @__PURE__ */ n(
|
|
10426
|
+
return /* @__PURE__ */ n(Bd, {
|
|
10417
10427
|
id: R,
|
|
10418
10428
|
title: _,
|
|
10419
10429
|
parms: U,
|
|
@@ -10424,18 +10434,18 @@ function Yd(e, t) {
|
|
|
10424
10434
|
})
|
|
10425
10435
|
});
|
|
10426
10436
|
}
|
|
10427
|
-
const
|
|
10437
|
+
const Ud = wt(Wd), Gd = (e) => {
|
|
10428
10438
|
const {
|
|
10429
10439
|
ooui: t
|
|
10430
10440
|
} = e;
|
|
10431
10441
|
return /* @__PURE__ */ n(ve, {
|
|
10432
10442
|
type: "array",
|
|
10433
10443
|
...e,
|
|
10434
|
-
children: /* @__PURE__ */ n(
|
|
10444
|
+
children: /* @__PURE__ */ n(qd, {
|
|
10435
10445
|
ooui: t
|
|
10436
10446
|
})
|
|
10437
10447
|
});
|
|
10438
|
-
},
|
|
10448
|
+
}, qd = (e) => {
|
|
10439
10449
|
const {
|
|
10440
10450
|
value: t,
|
|
10441
10451
|
ooui: r,
|
|
@@ -10556,12 +10566,12 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10556
10566
|
})]
|
|
10557
10567
|
})
|
|
10558
10568
|
});
|
|
10559
|
-
},
|
|
10569
|
+
}, zd = (e) => /* @__PURE__ */ n(ve, {
|
|
10560
10570
|
...e,
|
|
10561
|
-
children: /* @__PURE__ */ n(
|
|
10571
|
+
children: /* @__PURE__ */ n(Jd, {
|
|
10562
10572
|
...e
|
|
10563
10573
|
})
|
|
10564
|
-
}),
|
|
10574
|
+
}), Jd = (e) => {
|
|
10565
10575
|
const {
|
|
10566
10576
|
value: t,
|
|
10567
10577
|
ooui: r
|
|
@@ -10576,7 +10586,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10576
10586
|
className: "ant-typography"
|
|
10577
10587
|
})
|
|
10578
10588
|
});
|
|
10579
|
-
},
|
|
10589
|
+
}, Zd = (e) => {
|
|
10580
10590
|
const {
|
|
10581
10591
|
ooui: t
|
|
10582
10592
|
} = e, {
|
|
@@ -10586,11 +10596,11 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10586
10596
|
required: r,
|
|
10587
10597
|
type: "any",
|
|
10588
10598
|
...e,
|
|
10589
|
-
children: /* @__PURE__ */ n(
|
|
10599
|
+
children: /* @__PURE__ */ n(Xd, {
|
|
10590
10600
|
...e
|
|
10591
10601
|
})
|
|
10592
10602
|
});
|
|
10593
|
-
},
|
|
10603
|
+
}, Xd = (e) => {
|
|
10594
10604
|
const {
|
|
10595
10605
|
ooui: t,
|
|
10596
10606
|
onChange: r,
|
|
@@ -10615,7 +10625,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10615
10625
|
children: u
|
|
10616
10626
|
})
|
|
10617
10627
|
});
|
|
10618
|
-
},
|
|
10628
|
+
}, Qd = (e) => {
|
|
10619
10629
|
const {
|
|
10620
10630
|
ooui: t
|
|
10621
10631
|
} = e, {
|
|
@@ -10626,13 +10636,13 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10626
10636
|
return /* @__PURE__ */ n(ve, {
|
|
10627
10637
|
...e,
|
|
10628
10638
|
valuePropName: "checked",
|
|
10629
|
-
children: /* @__PURE__ */ n(
|
|
10639
|
+
children: /* @__PURE__ */ n(eu, {
|
|
10630
10640
|
id: r,
|
|
10631
10641
|
readOnly: i,
|
|
10632
10642
|
required: o
|
|
10633
10643
|
})
|
|
10634
10644
|
});
|
|
10635
|
-
},
|
|
10645
|
+
}, eu = (e) => {
|
|
10636
10646
|
const {
|
|
10637
10647
|
required: t,
|
|
10638
10648
|
readOnly: r,
|
|
@@ -10645,7 +10655,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10645
10655
|
...i
|
|
10646
10656
|
})
|
|
10647
10657
|
});
|
|
10648
|
-
},
|
|
10658
|
+
}, tu = (e) => {
|
|
10649
10659
|
const {
|
|
10650
10660
|
ooui: t
|
|
10651
10661
|
} = e, {
|
|
@@ -10655,11 +10665,11 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10655
10665
|
required: r,
|
|
10656
10666
|
type: "any",
|
|
10657
10667
|
...e,
|
|
10658
|
-
children: /* @__PURE__ */ n(
|
|
10668
|
+
children: /* @__PURE__ */ n(nu, {
|
|
10659
10669
|
...e
|
|
10660
10670
|
})
|
|
10661
10671
|
});
|
|
10662
|
-
},
|
|
10672
|
+
}, nu = (e) => {
|
|
10663
10673
|
const {
|
|
10664
10674
|
ooui: t,
|
|
10665
10675
|
value: r
|
|
@@ -10676,7 +10686,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10676
10686
|
description: d === l && u === "error" ? c : null
|
|
10677
10687
|
}))
|
|
10678
10688
|
});
|
|
10679
|
-
},
|
|
10689
|
+
}, ru = (e) => {
|
|
10680
10690
|
const {
|
|
10681
10691
|
ooui: t
|
|
10682
10692
|
} = e, {
|
|
@@ -10696,23 +10706,23 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10696
10706
|
})
|
|
10697
10707
|
});
|
|
10698
10708
|
}, {
|
|
10699
|
-
Content:
|
|
10709
|
+
Content: ou
|
|
10700
10710
|
} = li, {
|
|
10701
|
-
Title:
|
|
10711
|
+
Title: iu
|
|
10702
10712
|
} = an;
|
|
10703
|
-
function
|
|
10713
|
+
function su() {
|
|
10704
10714
|
const {
|
|
10705
10715
|
t: e
|
|
10706
10716
|
} = Y(we);
|
|
10707
|
-
return /* @__PURE__ */ n(
|
|
10717
|
+
return /* @__PURE__ */ n(ou, {
|
|
10708
10718
|
className: "m-5 select-none",
|
|
10709
|
-
children: /* @__PURE__ */ n(
|
|
10719
|
+
children: /* @__PURE__ */ n(iu, {
|
|
10710
10720
|
level: 5,
|
|
10711
10721
|
children: e("welcome")
|
|
10712
10722
|
})
|
|
10713
10723
|
});
|
|
10714
10724
|
}
|
|
10715
|
-
function
|
|
10725
|
+
function au(e, t) {
|
|
10716
10726
|
const {
|
|
10717
10727
|
children: r,
|
|
10718
10728
|
globalValues: i = {},
|
|
@@ -10722,7 +10732,7 @@ function su(e, t) {
|
|
|
10722
10732
|
title: Oe("welcome", s),
|
|
10723
10733
|
key: "welcome",
|
|
10724
10734
|
closable: !0,
|
|
10725
|
-
content: /* @__PURE__ */ n(
|
|
10735
|
+
content: /* @__PURE__ */ n(su, {})
|
|
10726
10736
|
}]), f = de(/* @__PURE__ */ new Map()), d = de();
|
|
10727
10737
|
bt(t, () => ({
|
|
10728
10738
|
retrieveAndOpenAction: p,
|
|
@@ -11076,7 +11086,7 @@ function su(e, t) {
|
|
|
11076
11086
|
}
|
|
11077
11087
|
return /* @__PURE__ */ n(es, {
|
|
11078
11088
|
lang: s,
|
|
11079
|
-
children: /* @__PURE__ */ n(
|
|
11089
|
+
children: /* @__PURE__ */ n(ul, {
|
|
11080
11090
|
openShortcut: y,
|
|
11081
11091
|
openAction: I,
|
|
11082
11092
|
openRelate: g,
|
|
@@ -11090,7 +11100,7 @@ function su(e, t) {
|
|
|
11090
11100
|
onChangeTab: (w) => {
|
|
11091
11101
|
l(w);
|
|
11092
11102
|
},
|
|
11093
|
-
children: /* @__PURE__ */ n(
|
|
11103
|
+
children: /* @__PURE__ */ n(hl, {
|
|
11094
11104
|
ref: d,
|
|
11095
11105
|
globalValues: i,
|
|
11096
11106
|
children: r
|
|
@@ -11098,10 +11108,10 @@ function su(e, t) {
|
|
|
11098
11108
|
})
|
|
11099
11109
|
});
|
|
11100
11110
|
}
|
|
11101
|
-
const
|
|
11102
|
-
useToken:
|
|
11111
|
+
const Nu = wt(au), {
|
|
11112
|
+
useToken: lu
|
|
11103
11113
|
} = Pe;
|
|
11104
|
-
function
|
|
11114
|
+
function cu(e) {
|
|
11105
11115
|
const {
|
|
11106
11116
|
label: t,
|
|
11107
11117
|
onClose: r,
|
|
@@ -11110,7 +11120,7 @@ function lu(e) {
|
|
|
11110
11120
|
onSelected: s
|
|
11111
11121
|
} = e, {
|
|
11112
11122
|
token: a
|
|
11113
|
-
} =
|
|
11123
|
+
} = lu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
11114
11124
|
return /* @__PURE__ */ P("div", {
|
|
11115
11125
|
onClick: () => {
|
|
11116
11126
|
!o && s(i);
|
|
@@ -11165,7 +11175,7 @@ function lu(e) {
|
|
|
11165
11175
|
})]
|
|
11166
11176
|
});
|
|
11167
11177
|
}
|
|
11168
|
-
function
|
|
11178
|
+
function Pu() {
|
|
11169
11179
|
const e = Y(st), {
|
|
11170
11180
|
activeKey: t,
|
|
11171
11181
|
tabs: r,
|
|
@@ -11173,7 +11183,7 @@ function Nu() {
|
|
|
11173
11183
|
onChangeTab: o
|
|
11174
11184
|
} = e || {};
|
|
11175
11185
|
return /* @__PURE__ */ n(ne, {
|
|
11176
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
11186
|
+
children: r.map((s) => /* @__PURE__ */ n(cu, {
|
|
11177
11187
|
tabKey: s.key,
|
|
11178
11188
|
label: s.title,
|
|
11179
11189
|
onClose: i,
|
|
@@ -11182,7 +11192,7 @@ function Nu() {
|
|
|
11182
11192
|
}, s.key))
|
|
11183
11193
|
});
|
|
11184
11194
|
}
|
|
11185
|
-
function
|
|
11195
|
+
function du(e) {
|
|
11186
11196
|
const {
|
|
11187
11197
|
tab: t
|
|
11188
11198
|
} = e, r = Y(st), {
|
|
@@ -11195,11 +11205,11 @@ function cu(e) {
|
|
|
11195
11205
|
children: t.content
|
|
11196
11206
|
});
|
|
11197
11207
|
}
|
|
11198
|
-
const
|
|
11199
|
-
function
|
|
11208
|
+
const uu = Je.memo(du, () => !0);
|
|
11209
|
+
function Hu() {
|
|
11200
11210
|
const e = Y(st), {
|
|
11201
11211
|
tabs: t
|
|
11202
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
11212
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(uu, {
|
|
11203
11213
|
tab: i
|
|
11204
11214
|
}, i.key))) || null;
|
|
11205
11215
|
return /* @__PURE__ */ n(ne, {
|
|
@@ -11207,8 +11217,8 @@ function Pu() {
|
|
|
11207
11217
|
});
|
|
11208
11218
|
}
|
|
11209
11219
|
const {
|
|
11210
|
-
useToken:
|
|
11211
|
-
} = Pe,
|
|
11220
|
+
useToken: fu
|
|
11221
|
+
} = Pe, Bu = (e) => {
|
|
11212
11222
|
const {
|
|
11213
11223
|
onRetrieveShortcuts: t,
|
|
11214
11224
|
onCheckIsFavourite: r,
|
|
@@ -11218,7 +11228,7 @@ const {
|
|
|
11218
11228
|
t: h
|
|
11219
11229
|
} = Y(we) || {}, {
|
|
11220
11230
|
token: g
|
|
11221
|
-
} =
|
|
11231
|
+
} = fu(), y = Y(st), {
|
|
11222
11232
|
openShortcut: O,
|
|
11223
11233
|
tabs: I,
|
|
11224
11234
|
activeKey: w,
|
|
@@ -11405,57 +11415,57 @@ const {
|
|
|
11405
11415
|
});
|
|
11406
11416
|
};
|
|
11407
11417
|
export {
|
|
11408
|
-
|
|
11409
|
-
|
|
11418
|
+
pd as ActionBar,
|
|
11419
|
+
ld as Binary,
|
|
11410
11420
|
ws as Boolean,
|
|
11411
11421
|
Jr as Button,
|
|
11412
11422
|
os as ButtonGroup,
|
|
11413
11423
|
Qr as Char,
|
|
11414
|
-
|
|
11415
|
-
|
|
11424
|
+
ru as CodeEditor,
|
|
11425
|
+
_d as ConfigContext,
|
|
11416
11426
|
H as ConnectionProvider,
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
+
hl as ContentRootProvider,
|
|
11428
|
+
Hu as CurrentTabContent,
|
|
11429
|
+
Ud as Dashboard,
|
|
11430
|
+
Nd as DashboardGrid,
|
|
11431
|
+
Bd as DashboardGridItem,
|
|
11432
|
+
ed as Date,
|
|
11433
|
+
td as DateTime,
|
|
11434
|
+
vd as Email,
|
|
11435
|
+
Qc as ExportModal,
|
|
11436
|
+
Bu as FavouriteButton,
|
|
11427
11437
|
po as Float,
|
|
11428
|
-
|
|
11438
|
+
Lc as FloatTime,
|
|
11429
11439
|
Ut as Form,
|
|
11430
11440
|
Gt as FormModal,
|
|
11431
|
-
|
|
11441
|
+
dc as GraphIndicator,
|
|
11432
11442
|
Do as Group,
|
|
11433
11443
|
Ca as Image,
|
|
11434
11444
|
tn as Integer,
|
|
11435
11445
|
un as Label,
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11446
|
+
ac as Many2one,
|
|
11447
|
+
zd as Markdown,
|
|
11448
|
+
Gd as MultiCheckbox,
|
|
11449
|
+
Hc as Notebook,
|
|
11450
|
+
Ec as One2many,
|
|
11451
|
+
$l as ProgressBar,
|
|
11452
|
+
Zd as Radio,
|
|
11453
|
+
id as Reference,
|
|
11454
|
+
Nu as RootView,
|
|
11445
11455
|
go as SearchFilter,
|
|
11446
11456
|
To as SearchModal,
|
|
11447
11457
|
So as SearchTree,
|
|
11448
11458
|
eo as Selection,
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11459
|
+
Yc as Separator,
|
|
11460
|
+
tu as Steps,
|
|
11461
|
+
Qd as Switch,
|
|
11462
|
+
Pu as TabSelector,
|
|
11463
|
+
Ha as Tag,
|
|
11464
|
+
Ba as Tags,
|
|
11465
|
+
jc as Text,
|
|
11466
|
+
rd as Time,
|
|
11457
11467
|
pn as Tree,
|
|
11458
|
-
|
|
11468
|
+
yd as Url,
|
|
11459
11469
|
it as iconMapper,
|
|
11460
11470
|
Yt as showConfirmDialog
|
|
11461
11471
|
};
|