wcz-test 6.24.7 → 6.24.9
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/ApprovalStatus-lESbUD_x.js +6 -0
- package/dist/DialogsContext-2Yy6yhzQ.js +5 -0
- package/dist/DialogsHooks-DWkC9zAf.js +113 -0
- package/dist/FileHooks-kGkVKOf9.js +2694 -0
- package/dist/FileMeta-Bzeo3ie9.js +17 -0
- package/dist/RouterListItemButton-C_SG0uka.js +17 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/client.js +8 -9
- package/dist/components.js +632 -1454
- package/dist/env-4ZoUrNqp.js +27 -0
- package/dist/exports/server.d.ts +0 -3
- package/dist/hooks.js +371 -985
- package/dist/index.js +1580 -2940
- package/dist/models.js +147 -164
- package/dist/queries.js +519 -911
- package/dist/queryClient--EvGPhnh.js +5 -0
- package/dist/server.js +40 -63
- package/dist/session-7yb0BETM.js +75 -0
- package/dist/{chunks/utils-MD9YwOtu.js → utils-CZraUjBd.js} +24 -34
- package/dist/utils.js +6 -7
- package/dist/vite.js +31 -40
- package/package.json +3 -6
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js +0 -8
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js.map +0 -1
- package/dist/chunks/DialogsContext-DoU_8Eeu.js +0 -6
- package/dist/chunks/DialogsContext-DoU_8Eeu.js.map +0 -1
- package/dist/chunks/DialogsHooks-DOT0O_b4.js +0 -278
- package/dist/chunks/DialogsHooks-DOT0O_b4.js.map +0 -1
- package/dist/chunks/FileHooks-DCnXvUtq.js +0 -3554
- package/dist/chunks/FileHooks-DCnXvUtq.js.map +0 -1
- package/dist/chunks/FileMeta-G1oT3mYK.js +0 -18
- package/dist/chunks/FileMeta-G1oT3mYK.js.map +0 -1
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js +0 -35
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js.map +0 -1
- package/dist/chunks/env-gsqZ6zZD.js +0 -30
- package/dist/chunks/env-gsqZ6zZD.js.map +0 -1
- package/dist/chunks/queryClient-CNvC95mU.js +0 -6
- package/dist/chunks/queryClient-CNvC95mU.js.map +0 -1
- package/dist/chunks/session-vW7WZadj.js +0 -91
- package/dist/chunks/session-vW7WZadj.js.map +0 -1
- package/dist/chunks/utils-MD9YwOtu.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models.js.map +0 -1
- package/dist/queries.js.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/vite.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import e from "zod";
|
|
2
|
+
const a = e.enum(["NotAvailable", "FutureApproval", "WaitingForApproval", "Approved", "Rejected", "Skipped", "Withdrawn", "Cancelled"]), t = e.enum(["WaitingForApproval", "Approved", "PartiallyApproved", "Rejected", "Withdrawn", "Cancelled"]);
|
|
3
|
+
export {
|
|
4
|
+
a as A,
|
|
5
|
+
t as a
|
|
6
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsx as g, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { c as L } from "react/compiler-runtime";
|
|
3
|
+
import { useEventCallback as T, DialogContent as k, DialogTitle as F, DialogActions as W, Button as y, Dialog as b } from "@mui/material";
|
|
4
|
+
import { useContext as A } from "react";
|
|
5
|
+
import { useTranslation as v } from "react-i18next";
|
|
6
|
+
import { D as $ } from "./DialogsContext-2Yy6yhzQ.js";
|
|
7
|
+
function j(t) {
|
|
8
|
+
const e = L(22), {
|
|
9
|
+
open: m,
|
|
10
|
+
payload: l,
|
|
11
|
+
onClose: i
|
|
12
|
+
} = t, {
|
|
13
|
+
t: o
|
|
14
|
+
} = v();
|
|
15
|
+
let r;
|
|
16
|
+
e[0] !== i ? (r = () => i(), e[0] = i, e[1] = r) : r = e[1];
|
|
17
|
+
let n;
|
|
18
|
+
e[2] !== l.title || e[3] !== o ? (n = l.title ?? o("Layout.Dialog.Alert"), e[2] = l.title, e[3] = o, e[4] = n) : n = e[4];
|
|
19
|
+
let a;
|
|
20
|
+
e[5] !== n ? (a = /* @__PURE__ */ g(F, { children: n }), e[5] = n, e[6] = a) : a = e[6];
|
|
21
|
+
let s;
|
|
22
|
+
e[7] !== l.message ? (s = /* @__PURE__ */ g(k, { children: l.message }), e[7] = l.message, e[8] = s) : s = e[8];
|
|
23
|
+
let c;
|
|
24
|
+
e[9] !== i ? (c = () => i(), e[9] = i, e[10] = c) : c = e[10];
|
|
25
|
+
let f;
|
|
26
|
+
e[11] !== o ? (f = o("Layout.Dialog.Confirm"), e[11] = o, e[12] = f) : f = e[12];
|
|
27
|
+
let u;
|
|
28
|
+
e[13] !== c || e[14] !== f ? (u = /* @__PURE__ */ g(W, { children: /* @__PURE__ */ g(y, { onClick: c, autoFocus: !0, children: f }) }), e[13] = c, e[14] = f, e[15] = u) : u = e[15];
|
|
29
|
+
let d;
|
|
30
|
+
return e[16] !== m || e[17] !== r || e[18] !== a || e[19] !== s || e[20] !== u ? (d = /* @__PURE__ */ x(b, { maxWidth: "xs", fullWidth: !0, open: m, onClose: r, disableRestoreFocus: !0, children: [
|
|
31
|
+
a,
|
|
32
|
+
s,
|
|
33
|
+
u
|
|
34
|
+
] }), e[16] = m, e[17] = r, e[18] = a, e[19] = s, e[20] = u, e[21] = d) : d = e[21], d;
|
|
35
|
+
}
|
|
36
|
+
function R(t) {
|
|
37
|
+
const e = L(33), {
|
|
38
|
+
open: m,
|
|
39
|
+
payload: l,
|
|
40
|
+
onClose: i
|
|
41
|
+
} = t, {
|
|
42
|
+
t: o
|
|
43
|
+
} = v();
|
|
44
|
+
let r;
|
|
45
|
+
e[0] !== i ? (r = () => i(!1), e[0] = i, e[1] = r) : r = e[1];
|
|
46
|
+
let n;
|
|
47
|
+
e[2] !== l.title || e[3] !== o ? (n = l.title ?? o("Layout.Dialog.Confirm"), e[2] = l.title, e[3] = o, e[4] = n) : n = e[4];
|
|
48
|
+
let a;
|
|
49
|
+
e[5] !== n ? (a = /* @__PURE__ */ g(F, { children: n }), e[5] = n, e[6] = a) : a = e[6];
|
|
50
|
+
let s;
|
|
51
|
+
e[7] !== l.message ? (s = /* @__PURE__ */ g(k, { children: l.message }), e[7] = l.message, e[8] = s) : s = e[8];
|
|
52
|
+
let c;
|
|
53
|
+
e[9] !== i ? (c = () => i(!1), e[9] = i, e[10] = c) : c = e[10];
|
|
54
|
+
let f;
|
|
55
|
+
e[11] !== l.cancelText || e[12] !== o ? (f = l.cancelText ?? o("Layout.Dialog.Cancel"), e[11] = l.cancelText, e[12] = o, e[13] = f) : f = e[13];
|
|
56
|
+
let u;
|
|
57
|
+
e[14] !== c || e[15] !== f ? (u = /* @__PURE__ */ g(y, { onClick: c, children: f }), e[14] = c, e[15] = f, e[16] = u) : u = e[16];
|
|
58
|
+
let d;
|
|
59
|
+
e[17] !== i ? (d = () => i(!0), e[17] = i, e[18] = d) : d = e[18];
|
|
60
|
+
let C;
|
|
61
|
+
e[19] !== o ? (C = o("Layout.Dialog.Confirm"), e[19] = o, e[20] = C) : C = e[20];
|
|
62
|
+
let h;
|
|
63
|
+
e[21] !== d || e[22] !== C ? (h = /* @__PURE__ */ g(y, { onClick: d, autoFocus: !0, children: C }), e[21] = d, e[22] = C, e[23] = h) : h = e[23];
|
|
64
|
+
let p;
|
|
65
|
+
e[24] !== h || e[25] !== u ? (p = /* @__PURE__ */ x(W, { children: [
|
|
66
|
+
u,
|
|
67
|
+
h
|
|
68
|
+
] }), e[24] = h, e[25] = u, e[26] = p) : p = e[26];
|
|
69
|
+
let D;
|
|
70
|
+
return e[27] !== m || e[28] !== r || e[29] !== p || e[30] !== a || e[31] !== s ? (D = /* @__PURE__ */ x(b, { maxWidth: "xs", fullWidth: !0, open: m, onClose: r, disableRestoreFocus: !0, children: [
|
|
71
|
+
a,
|
|
72
|
+
s,
|
|
73
|
+
p
|
|
74
|
+
] }), e[27] = m, e[28] = r, e[29] = p, e[30] = a, e[31] = s, e[32] = D) : D = e[32], D;
|
|
75
|
+
}
|
|
76
|
+
function G() {
|
|
77
|
+
const t = L(9), {
|
|
78
|
+
open: e,
|
|
79
|
+
close: m
|
|
80
|
+
} = A($);
|
|
81
|
+
let l;
|
|
82
|
+
t[0] !== e ? (l = (a, s) => {
|
|
83
|
+
const {
|
|
84
|
+
...c
|
|
85
|
+
} = s === void 0 ? {} : s;
|
|
86
|
+
return e(j, {
|
|
87
|
+
...c,
|
|
88
|
+
message: a
|
|
89
|
+
});
|
|
90
|
+
}, t[0] = e, t[1] = l) : l = t[1];
|
|
91
|
+
const i = T(l);
|
|
92
|
+
let o;
|
|
93
|
+
t[2] !== e ? (o = (a, s) => {
|
|
94
|
+
const {
|
|
95
|
+
...c
|
|
96
|
+
} = s === void 0 ? {} : s;
|
|
97
|
+
return e(R, {
|
|
98
|
+
...c,
|
|
99
|
+
message: a
|
|
100
|
+
});
|
|
101
|
+
}, t[2] = e, t[3] = o) : o = t[3];
|
|
102
|
+
const r = T(o);
|
|
103
|
+
let n;
|
|
104
|
+
return t[4] !== i || t[5] !== m || t[6] !== r || t[7] !== e ? (n = {
|
|
105
|
+
alert: i,
|
|
106
|
+
confirm: r,
|
|
107
|
+
open: e,
|
|
108
|
+
close: m
|
|
109
|
+
}, t[4] = i, t[5] = m, t[6] = r, t[7] = e, t[8] = n) : n = t[8], n;
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
G as u
|
|
113
|
+
};
|