@zimyo/engage 0.0.57-hrms → 0.0.58-pms
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/main.cjs +4 -4
- package/dist/main.js +26 -19
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -79151,8 +79151,8 @@ const Kd = (e) => {
|
|
|
79151
79151
|
{ value: 3, label: "Phone Call" },
|
|
79152
79152
|
{ value: 2, label: "Google Meet" }
|
|
79153
79153
|
], [e]), t = Wn(() => [
|
|
79154
|
-
{ label: "
|
|
79155
|
-
{ label: "
|
|
79154
|
+
{ label: "Received", value: "received" },
|
|
79155
|
+
{ label: "Given", value: "given" }
|
|
79156
79156
|
], [e]), r = Wn(() => [
|
|
79157
79157
|
{ label: "All", value: void 0 },
|
|
79158
79158
|
{ label: "Upcoming", value: 0 },
|
|
@@ -79212,7 +79212,7 @@ const Kd = (e) => {
|
|
|
79212
79212
|
EMPLOYEE_ID: n
|
|
79213
79213
|
}
|
|
79214
79214
|
}, "fetchAppreciations");
|
|
79215
|
-
return
|
|
79215
|
+
return N.jsxs(N.Fragment, { children: [N.jsx(Ww, { visible: h }), N.jsxs(pt, { className: "overview__container__bg", style: { overflow: "hidden" }, children: [N.jsxs("div", { className: "flex-between-center g-10", children: [N.jsxs(pt, { display: "flex", gap: 2, flexDirection: "row", children: [N.jsx(y0, { placeholder: "Search", debounceDelay: 500, getSearch: (v) => f((y) => Ue(he({}, y), { SEARCH: v })), styleOverrides: { margin: 0, width: 200, height: 40 } }), N.jsx("div", { style: { width: 200 }, children: N.jsx(By, {
|
|
79216
79216
|
value: d,
|
|
79217
79217
|
options: i,
|
|
79218
79218
|
placeholder: "Month",
|
|
@@ -79230,7 +79230,7 @@ const Kd = (e) => {
|
|
|
79230
79230
|
})
|
|
79231
79231
|
},
|
|
79232
79232
|
menuPortalTarget: document.body
|
|
79233
|
-
}) })] }), N.jsxs("div", { className: "flex-end-center g-10", children: [N.jsx(jN, { items: o, value: l, onChangeTab: (v, y) => f((w) => Ue(he({}, w), { APPRECIATION_TYPE: y })) }), !n && N.jsx(Di, { label: "
|
|
79233
|
+
}) })] }), N.jsxs("div", { className: "flex-end-center g-10", children: [N.jsx(jN, { items: o, value: l, onChangeTab: (v, y) => f((w) => Ue(he({}, w), { APPRECIATION_TYPE: y })) }), !n && N.jsx(Di, { label: "Appreciate", onClick: () => s(!0) })] })] }), N.jsxs("div", { className: "appreciations__list", children: [N.jsx(pt, { className: Jg.summury__box_outline, children: N.jsx(xo, { className: Jg.box__appriciate, container: !0, spacing: 2, children: Array.isArray(m == null ? void 0 : m.badges) && ((g = m.badges) == null ? void 0 : g.map((v, y) => {
|
|
79234
79234
|
var w, x, C;
|
|
79235
79235
|
return N.jsxs(xo, { className: Jg.box__top_appriciate, xs: 12, sm: 6, md: 6, lg: 4, item: !0, children: [N.jsx(pt, { className: Jg.icon__appriciate, children: N.jsx(Hl, { alt: "logo", src: (w = v == null ? void 0 : v.BADGE_LOGO) != null ? w : "" }) }), N.jsxs(pt, { children: [N.jsx("h3", { onClick: () => {
|
|
79236
79236
|
f((b) => Ue(he({}, b), { BADGE_ID: v.ID }));
|
|
@@ -79479,7 +79479,7 @@ const vF = () => {
|
|
|
79479
79479
|
}, className: "cursor-pointer" })] })
|
|
79480
79480
|
}
|
|
79481
79481
|
], [y]);
|
|
79482
|
-
return Kd(w || C || O || M), N.jsxs(pt, { padding: 2, width: "100%", children: [N.jsxs(pt, { display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(y0, { debounceDelay: 500, styleOverrides: { margin: 0, width: 200, height: 40 }, getSearch: (Y) => d(Y) }), N.jsx(Di, { label: "
|
|
79482
|
+
return Kd(w || C || O || M), N.jsxs(pt, { padding: 2, width: "100%", children: [N.jsxs(pt, { display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(y0, { debounceDelay: 500, styleOverrides: { margin: 0, width: 200, height: 40 }, getSearch: (Y) => d(Y) }), N.jsx(Di, { label: "Create", onClick: () => l((Y) => Ue(he({}, Y), {
|
|
79483
79483
|
isOpen: !0,
|
|
79484
79484
|
type: Ch.CREATE
|
|
79485
79485
|
})) })] }), N.jsx(pt, { my: 2, sx: { height: "70vh" }, children: N.jsx(
|
|
@@ -80324,7 +80324,7 @@ const cht = qn.object({
|
|
|
80324
80324
|
})
|
|
80325
80325
|
},
|
|
80326
80326
|
menuPortalTarget: document.body
|
|
80327
|
-
}) })] }), N.jsxs("div", { className: "flex-end-center g-10", children: [N.jsx(jN, { items: s, value: m, onChangeTab: (C, b) => v((O) => Ue(he({}, O), { FEEDBACK_TYPE: b })) }), !t && N.jsx(Di, { label: "
|
|
80327
|
+
}) })] }), N.jsxs("div", { className: "flex-end-center g-10", children: [N.jsx(jN, { items: s, value: m, onChangeTab: (C, b) => v((O) => Ue(he({}, O), { FEEDBACK_TYPE: b })) }), !t && N.jsx(Di, { label: "Give Feedback", onClick: () => f(!0), disableElevation: !0 })] })] }), N.jsx("div", { className: "continuous__feedback__list", children: y && y.length > 0 ? y.map((C, b) => {
|
|
80328
80328
|
var T, M, _, k, P, R, A, D, F, V;
|
|
80329
80329
|
const O = (T = C == null ? void 0 : C.FEEDBACK_CONTENT) == null ? void 0 : T.split(`
|
|
80330
80330
|
`);
|
|
@@ -83122,7 +83122,7 @@ const Gyt = qn.object({
|
|
|
83122
83122
|
), N.jsxs("span", { children: [(C = s == null ? void 0 : s.meetingDetails.SCHEDULE_WITH) != null ? C : "--", " (", (b = s == null ? void 0 : s.meetingDetails.SCHEDULE_BY_EMPLOYEE_CODE) != null ? b : "--", ")"] })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 2, children: [N.jsx(yd, { label: "Meeting Title", value: (s == null ? void 0 : s.meetingDetails.TITLE) || "", required: !0, disabled: !0, size: "small", sx: { width: 1 } }), N.jsx(yd, { label: "Description", value: (s == null ? void 0 : s.meetingDetails.DESCRIPTION) || "", size: "small", disabled: !0, multiline: !0, minRows: 3 })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 2, children: [N.jsx(zo, { fontSize: 14, children: "Choose Date & Time" }), N.jsx(pa, { name: "DATE", control: f, render: ({ field: _ }) => N.jsx("input", he({ className: "input-date", type: "date" }, _)) }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(pa, { name: "START_TIME", control: f, render: ({ field: _ }) => N.jsx("input", he({ className: "input-date", type: "time", style: { flex: 1 } }, _)) }), N.jsx(pa, { name: "DURATION", control: f, render: (P) => {
|
|
83123
83123
|
var { field: R } = P, A = R, { value: _ } = A, k = Ro(A, ["value"]);
|
|
83124
83124
|
return N.jsxs(pt, { display: "flex", flexDirection: "column", flex: 1, children: [N.jsx(yd, he({ label: "Duration in minutes", required: !0, size: "small", type: "number", variant: "outlined", value: _ || "" }, k)), !!(m != null && m.DURATION) && N.jsxs("div", { className: "form_error", children: [N.jsx(Ua, {}), N.jsx("p", { children: m.DURATION.message })] })] });
|
|
83125
|
-
} })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 1, children: [N.jsx(zo, { fontSize: 14, children: "Choose Medium" }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(zw, { value: (s == null ? void 0 : s.meetingDetails.MEDIUM_ID) || 0, disabled: !0, sx: { width: 1 }, size: "small", children: i.map((_, k) => N.jsx(MN, { value:
|
|
83125
|
+
} })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 1, children: [N.jsx(zo, { fontSize: 14, children: "Choose Medium" }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(zw, { value: (s == null ? void 0 : s.meetingDetails.MEDIUM_ID) || 0, disabled: !0, sx: { width: 1 }, size: "small", children: i.map((_, k) => N.jsx(MN, { value: k + 1, children: _.label }, k)) }), N.jsx(yd, { label: (O = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : O.LABEL, sx: { width: 1 }, value: ((M = s == null ? void 0 : s.meetingDetails) == null ? void 0 : M[(T = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : T.COLUMN_NAME]) || "", disabled: !0, size: "small", variant: "outlined" })] })] }), N.jsxs(pt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(Di, { label: "CANCEL", variant: "outlined", onClick: w }), N.jsx(Di, { label: "SUBMIT", color: "secondary", onClick: () => v() })] })] }) })] });
|
|
83126
83126
|
}, Yyt = Nt(yN)(() => "width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"), Xyt = (e) => {
|
|
83127
83127
|
var X, Y, J, q, Z, K, re, ce, de, ge, se, ve, ne, Ce, le, fe, Me, Te, ee, te, oe, Se, Oe, Re, je, Ae, Le, Ge, we, ae, ke, Be, ye, Pe, Ie, $e, Je;
|
|
83128
83128
|
const { meetingId: n, setMeetingId: t, openReScheduleModalMeetingId: r, setReScheduleModalMeetingId: o } = e, i = tc(), a = Ka((We) => We.session.ASSETS_BASE_URL), s = js((We) => We.pushAlert), { session: { user: l } } = Ka(), { ImageViewer: c, setImageURL: d } = vF(), { PdfViewer: p, setPdfURL: f } = zme(), { ONE_TO_ONE_MEDIUM_TYPES: m } = ig("en"), { data: h, isFetching: g } = qa(al, {
|
|
@@ -83197,7 +83197,7 @@ const Gyt = qn.object({
|
|
|
83197
83197
|
justifyContent: "right"
|
|
83198
83198
|
}, children: [!!F(ni == null ? void 0 : ni.SHEDULE_BY_WITH) && N.jsx(Di, { onClick: () => {
|
|
83199
83199
|
o(n);
|
|
83200
|
-
}, label: "
|
|
83200
|
+
}, label: "Reschedule", color: "secondary", variant: "outlined" }), !!F(ni == null ? void 0 : ni.SHEDULE_BY) && N.jsx(Di, { onClick: G, label: "Mark as Complete" })] }) : null })] }) }), N.jsxs("div", { className: gc.date__time__box, children: [N.jsxs("p", { children: [N.jsx("span", { children: N.jsx(AM, {}) }), (ke = h == null ? void 0 : h.meetingDetails) == null ? void 0 : ke.DATE] }), N.jsxs("p", { children: [N.jsx("span", { children: N.jsx(zF, {}) }), (Be = h == null ? void 0 : h.meetingDetails) == null ? void 0 : Be.START_TIME, " - ", (ye = h == null ? void 0 : h.meetingDetails) == null ? void 0 : ye.END_TIME] })] }), N.jsxs("div", { className: gc.connected__meeting, children: [N.jsx("span", { style: { marginRight: "5px" }, children: N.jsx(Hme, {}) }), "Conducted with:", N.jsxs("span", { style: { marginLeft: "5px" }, children: [(Pe = h == null ? void 0 : h.meetingDetails) == null ? void 0 : Pe.SCHEDULE_WITH, " (", ($e = (Ie = h == null ? void 0 : h.meetingDetails) == null ? void 0 : Ie.SCHEDULE_WITH_EMPLOYEE_CODE) != null ? $e : "--", ")"] })] }), N.jsxs(N.Fragment, { children: [Array.isArray(h == null ? void 0 : h.meetingRemark) && ((Je = h == null ? void 0 : h.meetingRemark) == null ? void 0 : Je.map((We, Qe) => {
|
|
83201
83201
|
var et, It, $t;
|
|
83202
83202
|
return N.jsx(N.Fragment, { children: ((We == null ? void 0 : We.DISPLAY_VISIBLE_TO) === "Visible to me" && !F(ni == null ? void 0 : ni.SHEDULE_WITH) || (We == null ? void 0 : We.DISPLAY_VISIBLE_TO) === "Visible to All") && N.jsx("div", { className: gc.remarks__meeting, children: N.jsxs("div", { style: { marginBottom: "20px" }, children: [N.jsxs("h4", { children: ["Remarks", F(ni == null ? void 0 : ni.SHEDULE_BY) && N.jsxs("span", { children: [N.jsx(Zme, { sx: {
|
|
83203
83203
|
height: "20px",
|
|
@@ -83253,7 +83253,7 @@ const Gyt = qn.object({
|
|
|
83253
83253
|
}), { control: w, formState: { errors: x }, trigger: C, watch: b, handleSubmit: O, setValue: T, reset: M, getValues: _ } = Rm({
|
|
83254
83254
|
resolver: qy(Zyt),
|
|
83255
83255
|
mode: "onChange",
|
|
83256
|
-
|
|
83256
|
+
values: {
|
|
83257
83257
|
SCHEDULE_WITH: (r == null ? void 0 : r[`${i}`]) || 0,
|
|
83258
83258
|
MEETING_TITLE: "",
|
|
83259
83259
|
DESCRIPTION: "",
|
|
@@ -83263,19 +83263,26 @@ const Gyt = qn.object({
|
|
|
83263
83263
|
START_TIME: Ft().format("HH:mm"),
|
|
83264
83264
|
DATE: Ft().format("YYYY-MM-DD")
|
|
83265
83265
|
}
|
|
83266
|
-
}), [k, P] = b(["MEDIUM", "DESCRIPTION"]), R = () => {
|
|
83267
|
-
O((
|
|
83268
|
-
const
|
|
83269
|
-
let
|
|
83270
|
-
|
|
83266
|
+
}), [k, P] = b(["MEDIUM", "DESCRIPTION"]), R = (G) => {
|
|
83267
|
+
O((X) => {
|
|
83268
|
+
const se = X, { MEDIUM: Y, MEDIUM_ALIAS: J, START_TIME: q, DURATION: Z } = se, K = Ro(se, ["MEDIUM", "MEDIUM_ALIAS", "START_TIME", "DURATION"]);
|
|
83269
|
+
let re = {};
|
|
83270
|
+
if (Y === 2) {
|
|
83271
|
+
const ve = sr.getOAuthToken() || G;
|
|
83272
|
+
if (!ve)
|
|
83273
|
+
return A();
|
|
83274
|
+
re = { access_token: ve };
|
|
83275
|
+
}
|
|
83276
|
+
const { hours: ce, minutes: de, seconds: ge } = sr.convertTime(`00:${Z}:00`);
|
|
83277
|
+
re = he(he({
|
|
83271
83278
|
MEDIUM: Y,
|
|
83272
|
-
DURATION: `${
|
|
83279
|
+
DURATION: `${ce}:${de}:${ge}`,
|
|
83273
83280
|
START_TIME: `${q}:00`,
|
|
83274
83281
|
[f == null ? void 0 : f[Y].COLUMN_NAME]: J
|
|
83275
|
-
}, K),
|
|
83282
|
+
}, K), re), m({ data: re, url: gr.ONE_TO_ONE.CREATE });
|
|
83276
83283
|
})();
|
|
83277
83284
|
}, A = qyt({
|
|
83278
|
-
onSuccess: ({ access_token: G, expires_in: X }) => (sr.setOAuthToken({ access_token: G, expires_in: X, generated_on: /* @__PURE__ */ new Date() }),
|
|
83285
|
+
onSuccess: ({ access_token: G, expires_in: X }) => (sr.setOAuthToken({ access_token: G, expires_in: X, generated_on: /* @__PURE__ */ new Date() }), R(G)),
|
|
83279
83286
|
onError: () => {
|
|
83280
83287
|
d({ type: "error", message: "Error! while generating meeting link, please choose another medium!" });
|
|
83281
83288
|
}
|
|
@@ -83310,7 +83317,7 @@ const Gyt = qn.object({
|
|
|
83310
83317
|
}
|
|
83311
83318
|
M(), t(!1);
|
|
83312
83319
|
};
|
|
83313
|
-
return
|
|
83320
|
+
return Kd(h || y), N.jsx(T2, { title: N.jsxs(pt, { display: "flex", flexDirection: "row", alignItems: "center", children: [N.jsx(Fw, { children: N.jsx(YF, { color: "primary", sx: { color: c == null ? void 0 : c.PRODUCT_THEME_COLOR, fontSize: 28 } }) }), N.jsx(zo, { fontSize: 20, fontWeight: 700, color: "rgb(23, 43, 77)", children: "Schedule One To One" })] }), open: n, onModalclose: F, size: "md", children: N.jsxs(pt, { mt: 1, display: "flex", flexDirection: "column", gap: 1, children: [N.jsxs(pt, { display: "flex", gap: 2, mb: 1, children: [N.jsx(zo, { mt: 1, fontSize: 14, children: "Schedule With" }), r ? N.jsxs("div", { className: "avatar_container", children: [N.jsx(
|
|
83314
83321
|
Hl,
|
|
83315
83322
|
{
|
|
83316
83323
|
// @ts-ignore
|
|
@@ -83325,7 +83332,7 @@ const Gyt = qn.object({
|
|
|
83325
83332
|
}, children: p.map((Y, J) => N.jsx(MN, { value: Y.value, children: Y.label }, J)) }) }) }), N.jsx(pa, { name: "MEDIUM_ALIAS", control: w, render: ({ field: { name: G, value: X, onChange: Y } }) => {
|
|
83326
83333
|
var J;
|
|
83327
83334
|
return N.jsx(N.Fragment, { children: N.jsx(yd, { label: (J = f == null ? void 0 : f[k]) == null ? void 0 : J.LABEL, name: G, sx: { width: 1 }, value: X, onChange: Y, disabled: k === 2, size: "small", variant: "outlined" }) });
|
|
83328
|
-
} })] })] }), N.jsxs(pt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(Di, { label: "CANCEL", variant: "outlined", onClick: F }), N.jsx(Di, { label: "SUBMIT", onClick: () => R() })] })] }) })
|
|
83335
|
+
} })] })] }), N.jsxs(pt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(Di, { label: "CANCEL", variant: "outlined", onClick: F }), N.jsx(Di, { label: "SUBMIT", onClick: () => R() })] })] }) });
|
|
83329
83336
|
}, Kyt = "_one__to__one__card_ec5u0_1", Qyt = "_one__to__one__card__top_ec5u0_11", e0t = "_one__to__one__icon_ec5u0_17", t0t = "_face__to__face_ec5u0_58", n0t = "_one__to__one__reschedule_ec5u0_73", r0t = "_one__to__one__cancel_ec5u0_85", Eh = {
|
|
83330
83337
|
one__to__one__card: Kyt,
|
|
83331
83338
|
one__to__one__card__top: Qyt,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/engage",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.58-pms",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"debounce-promise": "^3.1.2",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
50
|
"moment": "^2.30.1",
|
|
51
|
-
"react": "^
|
|
52
|
-
"react-dom": "^
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-dom": "^18.2.0",
|
|
53
53
|
"react-hook-form": "^7.51.4",
|
|
54
54
|
"react-icons": "^5.2.1",
|
|
55
55
|
"react-query": "^3.39.3",
|