@zimyo/engage 0.3.17-hrms → 0.3.18-hrms
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 +8 -5
- package/dist/main.js +57 -20
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -30664,7 +30664,11 @@ function yn$2(e0) {
|
|
|
30664
30664
|
var m1;
|
|
30665
30665
|
z0 || l1.action !== "input-change" || Y0(i1), (m1 = I0.onInputChange) === null || m1 === void 0 || m1.call(I0, i1, l1);
|
|
30666
30666
|
}, [z0, I0.onInputChange]);
|
|
30667
|
-
var t1 = fe$4("zui:relative zui:flex zui:items-center zui:justify-between zui:rounded-sm zui:border zui:border-input zui:ring-offset-background", "zui:placeholder:text-muted-foreground focus:zui:outline-none focus:zui:ring-2 focus:zui:ring-ring focus:zui:ring-offset-2", Cn$2[s0], r0 && "zui:border-destructive focus:zui:ring-destructive"), n1 =
|
|
30667
|
+
var t1 = fe$4("zui:relative zui:flex zui:items-center zui:justify-between zui:rounded-sm zui:border zui:border-input zui:ring-offset-background", "zui:placeholder:text-muted-foreground focus:zui:outline-none focus:zui:ring-2 focus:zui:ring-ring focus:zui:ring-offset-2", Cn$2[s0], r0 && "zui:border-destructive focus:zui:ring-destructive"), n1 = function(i1) {
|
|
30668
|
+
var l1 = i1.index, m1 = (0, i1.getValue)();
|
|
30669
|
+
return l1 >= S0 ? l1 === S0 ? jsxRuntimeExports.jsxs("div", { className: "zui:text-xs zui:text-gray-500 zui:px-1", children: ["+", m1.length - S0, " more"] }) : null : jsxRuntimeExports.jsx(pt$2.MultiValue, e$4({}, i1));
|
|
30670
|
+
};
|
|
30671
|
+
React__default.useCallback(function(i1) {
|
|
30668
30672
|
var l1 = i1.getValue, m1 = i1.children, f1 = l1().length, T1 = m1;
|
|
30669
30673
|
if (f1 > S0) {
|
|
30670
30674
|
var C1 = jsxRuntimeExports.jsxs("div", { className: ` zui:font-medium
|
|
@@ -30679,7 +30683,8 @@ function yn$2(e0) {
|
|
|
30679
30683
|
T1 = [m1[0].slice(0, S0), C1, m1[1]];
|
|
30680
30684
|
}
|
|
30681
30685
|
return jsxRuntimeExports.jsx(pt$2.ValueContainer, e$4({}, i1, { children: T1 }));
|
|
30682
|
-
}, [S0])
|
|
30686
|
+
}, [S0]);
|
|
30687
|
+
var a1 = React__default.useCallback(function(i1) {
|
|
30683
30688
|
var l1 = i1.data;
|
|
30684
30689
|
return jsxRuntimeExports.jsxs("div", { className: "zui:flex zui:items-center zui:gap-2 zui:truncate zui:max-w-full zui:overflow-hidden", children: [l1.leftIcon && (typeof l1.leftIcon == "string" ? jsxRuntimeExports.jsx("span", { className: "zui:text-base zui:flex-shrink-0", children: l1.leftIcon }) : jsxRuntimeExports.jsx("div", { className: "zui:flex-shrink-0", children: l1.leftIcon })), jsxRuntimeExports.jsx("span", { className: "zui:truncate", children: l1[g0] }), l1.rightIcon && (typeof l1.rightIcon == "string" ? jsxRuntimeExports.jsx("span", { className: "zui:text-base zui:flex-shrink-0", children: l1.rightIcon }) : jsxRuntimeExports.jsx("div", { className: "zui:flex-shrink-0", children: l1.rightIcon }))] });
|
|
30685
30690
|
}, []);
|
|
@@ -30687,7 +30692,7 @@ function yn$2(e0) {
|
|
|
30687
30692
|
return i1 == null ? void 0 : i1[u0];
|
|
30688
30693
|
}, getOptionLabel: function(i1) {
|
|
30689
30694
|
return i1 == null ? void 0 : i1[g0];
|
|
30690
|
-
}, components: { DropdownIndicator: xn$2, ClearIndicator: Gn$2, Option: An$2,
|
|
30695
|
+
}, components: { DropdownIndicator: xn$2, ClearIndicator: Gn$2, Option: An$2, MultiValue: n1, SingleValue: a1 }, styles: { menuPortal: function(i1) {
|
|
30691
30696
|
return e$4(e$4({}, i1), { zIndex: 1700 });
|
|
30692
30697
|
}, input: function(i1) {
|
|
30693
30698
|
return e$4(e$4({}, i1), { maxWidth: "100%", overflow: "hidden" });
|
|
@@ -30731,7 +30736,7 @@ function yn$2(e0) {
|
|
|
30731
30736
|
return i1 == null ? void 0 : i1[u0];
|
|
30732
30737
|
}, getOptionLabel: function(i1) {
|
|
30733
30738
|
return i1 == null ? void 0 : i1[g0];
|
|
30734
|
-
}, components: { DropdownIndicator: xn$2, ClearIndicator: Gn$2, Option: An$2,
|
|
30739
|
+
}, components: { DropdownIndicator: xn$2, ClearIndicator: Gn$2, Option: An$2, MultiValue: n1, SingleValue: a1 }, styles: { menuPortal: function(i1) {
|
|
30735
30740
|
return e$4(e$4({}, i1), { zIndex: 1700 });
|
|
30736
30741
|
}, input: function(i1) {
|
|
30737
30742
|
return e$4(e$4({}, i1), { maxWidth: "100%", overflow: "hidden" });
|
|
@@ -42404,22 +42409,51 @@ var useInitInteractivity = function(e0) {
|
|
|
42404
42409
|
return useEffect(function() {
|
|
42405
42410
|
e0.lottieRef && (e0.lottieRef.current = { play: u0, stop: d0, pause: g0, setSpeed: f0, goToAndPlay: c0, goToAndStop: m0, setDirection: p0, playSegments: h0, setSubframe: y0, getDuration: v0, destroy: x0, animationContainerRef: b0, animationLoaded: _0, animationItem: w0 });
|
|
42406
42411
|
}, [(t0 = e0.lottieRef) === null || t0 === void 0 ? void 0 : t0.current]), useLottieInteractivity({ lottieObj: { View: l0, play: u0, stop: d0, pause: g0, setSpeed: f0, goToAndStop: m0, goToAndPlay: c0, setDirection: p0, playSegments: h0, setSubframe: y0, getDuration: v0, destroy: x0, animationContainerRef: b0, animationLoaded: _0, animationItem: w0 }, actions: (n0 = i0 == null ? void 0 : i0.actions) !== null && n0 !== void 0 ? n0 : [], mode: (r0 = i0 == null ? void 0 : i0.mode) !== null && r0 !== void 0 ? r0 : "scroll" });
|
|
42407
|
-
}, LottiePlayer = function(e0) {
|
|
42408
|
-
var t0 = e0.animationData, n0 = e0.src, r0 = e0.loop, o0 = r0 === void 0 || r0, i0 = e0.autoplay, s0 = i0 === void 0 || i0, a0 = e0.width, l0 = a0 === void 0 ? "100%" : a0, u0 = e0.height, d0 = u0 === void 0 ? "auto" : u0, g0 = e0.className, f0 = g0 === void 0 ? "" : g0, m0 = e0.style, c0 = m0 === void 0 ? {} : m0, p0 = useState(null),
|
|
42412
|
+
}, COLOR_NAME_IDS = { PURPLE_COLOR: "#34004B", GREEN_COLOR: "#3B5352", RED_COLOR: "#5B1B39", PEACH_COLOR: "#E5B099", PINK_COLOR: "#E0BCBE", GOLDEN_COLOR: "#E4D1C2", BLUE_COLOR: "#172B4D", WHITE_COLOR: "#FFFFFF" }, LottiePlayer = function(e0) {
|
|
42413
|
+
var t0 = e0.animationData, n0 = e0.src, r0 = e0.loop, o0 = r0 === void 0 || r0, i0 = e0.autoplay, s0 = i0 === void 0 || i0, a0 = e0.width, l0 = a0 === void 0 ? "100%" : a0, u0 = e0.height, d0 = u0 === void 0 ? "auto" : u0, g0 = e0.className, f0 = g0 === void 0 ? "" : g0, m0 = e0.style, c0 = m0 === void 0 ? {} : m0, p0 = useTheme$3().palette.primary.main, h0 = useState(null), y0 = h0[0], v0 = h0[1], x0 = useState(!1), b0 = x0[0], _0 = x0[1], w0 = useState(!1), T0 = w0[0], C0 = w0[1];
|
|
42409
42414
|
useEffect(function() {
|
|
42410
|
-
|
|
42411
|
-
|
|
42412
|
-
|
|
42413
|
-
|
|
42414
|
-
|
|
42415
|
-
|
|
42415
|
+
var E0 = "https://cdn.zimyo.work/staticlogo/global";
|
|
42416
|
+
switch (p0) {
|
|
42417
|
+
case COLOR_NAME_IDS.BLUE_COLOR:
|
|
42418
|
+
E0 += "/172B4D_dark_blue/";
|
|
42419
|
+
break;
|
|
42420
|
+
case COLOR_NAME_IDS.PURPLE_COLOR:
|
|
42421
|
+
E0 += "/34004B_purple/";
|
|
42422
|
+
break;
|
|
42423
|
+
case COLOR_NAME_IDS.GREEN_COLOR:
|
|
42424
|
+
E0 += "/3B5352_green/";
|
|
42425
|
+
break;
|
|
42426
|
+
case COLOR_NAME_IDS.RED_COLOR:
|
|
42427
|
+
E0 += "/5B1B39_red/";
|
|
42428
|
+
break;
|
|
42429
|
+
case COLOR_NAME_IDS.GOLDEN_COLOR:
|
|
42430
|
+
E0 += "/E4D1C2_golden/";
|
|
42431
|
+
break;
|
|
42432
|
+
case COLOR_NAME_IDS.PINK_COLOR:
|
|
42433
|
+
E0 += "/E0BCBE_pink/";
|
|
42434
|
+
break;
|
|
42435
|
+
case COLOR_NAME_IDS.PEACH_COLOR:
|
|
42436
|
+
E0 += "/E5B099_peach/";
|
|
42437
|
+
break;
|
|
42438
|
+
case COLOR_NAME_IDS.WHITE_COLOR:
|
|
42439
|
+
E0 += "/172B4D_dark_blue/";
|
|
42440
|
+
break;
|
|
42441
|
+
default:
|
|
42442
|
+
E0 += "/JSON/";
|
|
42443
|
+
}
|
|
42444
|
+
n0 && !t0 && (C0(!1), _0(!0), fetch(E0 + n0.replace("https://cdn.zimyo.work/staticlogo/global/JSON/", "")).then(function(P0) {
|
|
42445
|
+
return P0.json();
|
|
42446
|
+
}).then(function(P0) {
|
|
42447
|
+
v0(P0), _0(!1);
|
|
42448
|
+
}).catch(function(P0) {
|
|
42449
|
+
console.error("Failed to load Lottie animation:", P0), C0(!0), _0(!1);
|
|
42416
42450
|
}));
|
|
42417
|
-
}, [n0, t0]);
|
|
42418
|
-
var
|
|
42419
|
-
if (
|
|
42420
|
-
if (
|
|
42421
|
-
var
|
|
42422
|
-
return
|
|
42451
|
+
}, [n0, t0, p0]);
|
|
42452
|
+
var $0 = e$4({ width: l0, height: d0 }, c0);
|
|
42453
|
+
if (b0) return jsxRuntimeExports.jsx("div", { style: $0, className: f0, children: jsxRuntimeExports.jsx("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: "#999" }, children: "Loading animation..." }) });
|
|
42454
|
+
if (T0) return jsxRuntimeExports.jsx("div", { style: $0, className: f0, children: jsxRuntimeExports.jsx("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: "#ef4444" }, children: "Failed to load animation" }) });
|
|
42455
|
+
var S0 = t0 || y0;
|
|
42456
|
+
return S0 ? jsxRuntimeExports.jsx(Lottie, { animationData: S0, loop: o0, autoplay: s0, style: $0, className: f0 }) : null;
|
|
42423
42457
|
}, t$1 = "[object Symbol]", n$1 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, r$1 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, f$2 = "\\ud800-\\udfff", o$3 = "\\u0300-\\u036f\\ufe20-\\ufe23", c = "\\u20d0-\\u20f0", i$3 = "\\u2700-\\u27bf", a = "a-z\\xdf-\\xf6\\xf8-\\xff", x$2 = "A-Z\\xc0-\\xd6\\xd8-\\xde", d$1 = "\\ufe0e\\ufe0f", l = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", s$1 = "['’]", p$1 = "[" + f$2 + "]", b$2 = "[" + l + "]", g$1 = "[" + o$3 + c + "]", j$3 = "\\d+", v$2 = "[" + i$3 + "]", A$2 = "[" + a + "]", E$2 = "[^" + f$2 + l + j$3 + i$3 + a + x$2 + "]", O$2 = "\\ud83c[\\udffb-\\udfff]", y$2 = "[^" + f$2 + "]", h = "(?:\\ud83c[\\udde6-\\uddff]){2}", m$2 = "[\\ud800-\\udbff][\\udc00-\\udfff]", U$2 = "[" + x$2 + "]", I$2 = "\\u200d", z$2 = "(?:" + A$2 + "|" + E$2 + ")", R$2 = "(?:" + U$2 + "|" + E$2 + ")", S$2 = "(?:['’](?:d|ll|m|re|s|t|ve))?", Z$2 = "(?:['’](?:D|LL|M|RE|S|T|VE))?", L$2 = "(?:" + g$1 + "|" + O$2 + ")?", C$2 = "[" + d$1 + "]?", N$2 = C$2 + L$2 + ("(?:" + I$2 + "(?:" + [y$2, h, m$2].join("|") + ")" + C$2 + L$2 + ")*"), T$2 = "(?:" + [v$2, h, m$2].join("|") + ")" + N$2, D$2 = "(?:" + [y$2 + g$1 + "?", g$1, h, m$2, p$1].join("|") + ")", G$2 = RegExp(s$1, "g"), H$2 = RegExp(g$1, "g"), Y$2 = RegExp(O$2 + "(?=" + O$2 + ")|" + D$2 + N$2, "g"), k$2 = RegExp([U$2 + "?" + A$2 + "+" + S$2 + "(?=" + [b$2, U$2, "$"].join("|") + ")", R$2 + "+" + Z$2 + "(?=" + [b$2, U$2 + z$2, "$"].join("|") + ")", U$2 + "?" + z$2 + "+" + S$2, U$2 + "+" + Z$2, j$3, T$2].join("|"), "g"), J$2 = RegExp("[" + I$2 + f$2 + o$3 + c + d$1 + "]"), $$2 = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, w$1 = typeof e == "object" && e && e.Object === Object && e, F$2 = typeof self == "object" && self && self.Object === Object && self, K$2 = w$1 || F$2 || Function("return this")(), M$2, V$2 = (M$2 = { À: "A", Á: "A", Â: "A", Ã: "A", Ä: "A", Å: "A", à: "a", á: "a", â: "a", ã: "a", ä: "a", å: "a", Ç: "C", ç: "c", Ð: "D", ð: "d", È: "E", É: "E", Ê: "E", Ë: "E", è: "e", é: "e", ê: "e", ë: "e", Ì: "I", Í: "I", Î: "I", Ï: "I", ì: "i", í: "i", î: "i", ï: "i", Ñ: "N", ñ: "n", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "O", Ø: "O", ò: "o", ó: "o", ô: "o", õ: "o", ö: "o", ø: "o", Ù: "U", Ú: "U", Û: "U", Ü: "U", ù: "u", ú: "u", û: "u", ü: "u", Ý: "Y", ý: "y", ÿ: "y", Æ: "Ae", æ: "ae", Þ: "Th", þ: "th", ß: "ss", Ā: "A", Ă: "A", Ą: "A", ā: "a", ă: "a", ą: "a", Ć: "C", Ĉ: "C", Ċ: "C", Č: "C", ć: "c", ĉ: "c", ċ: "c", č: "c", Ď: "D", Đ: "D", ď: "d", đ: "d", Ē: "E", Ĕ: "E", Ė: "E", Ę: "E", Ě: "E", ē: "e", ĕ: "e", ė: "e", ę: "e", ě: "e", Ĝ: "G", Ğ: "G", Ġ: "G", Ģ: "G", ĝ: "g", ğ: "g", ġ: "g", ģ: "g", Ĥ: "H", Ħ: "H", ĥ: "h", ħ: "h", Ĩ: "I", Ī: "I", Ĭ: "I", Į: "I", İ: "I", ĩ: "i", ī: "i", ĭ: "i", į: "i", ı: "i", Ĵ: "J", ĵ: "j", Ķ: "K", ķ: "k", ĸ: "k", Ĺ: "L", Ļ: "L", Ľ: "L", Ŀ: "L", Ł: "L", ĺ: "l", ļ: "l", ľ: "l", ŀ: "l", ł: "l", Ń: "N", Ņ: "N", Ň: "N", Ŋ: "N", ń: "n", ņ: "n", ň: "n", ŋ: "n", Ō: "O", Ŏ: "O", Ő: "O", ō: "o", ŏ: "o", ő: "o", Ŕ: "R", Ŗ: "R", Ř: "R", ŕ: "r", ŗ: "r", ř: "r", Ś: "S", Ŝ: "S", Ş: "S", Š: "S", ś: "s", ŝ: "s", ş: "s", š: "s", Ţ: "T", Ť: "T", Ŧ: "T", ţ: "t", ť: "t", ŧ: "t", Ũ: "U", Ū: "U", Ŭ: "U", Ů: "U", Ű: "U", Ų: "U", ũ: "u", ū: "u", ŭ: "u", ů: "u", ű: "u", ų: "u", Ŵ: "W", ŵ: "w", Ŷ: "Y", ŷ: "y", Ÿ: "Y", Ź: "Z", Ż: "Z", Ž: "Z", ź: "z", ż: "z", ž: "z", IJ: "IJ", ij: "ij", Œ: "Oe", œ: "oe", ʼn: "'n", ſ: "ss" }, function(e0) {
|
|
42424
42458
|
return M$2 == null ? void 0 : M$2[e0];
|
|
42425
42459
|
});
|
|
@@ -74532,7 +74566,7 @@ var _$ = o$4(x$.exports), b$ = { tooltip: { trigger: "axis", axisPointer: { type
|
|
|
74532
74566
|
var t0 = e0.categories, n0 = e0.series, r0 = e0.option, o0 = r0 === void 0 ? {} : r0, i0 = e0.height, s0 = e0.width, a0 = e0.theme, l0 = e0.noDataText, u0 = l0 === void 0 ? "No data available" : l0, d0 = Array.isArray(n0) ? n0 : [n0];
|
|
74533
74567
|
if (!d0.some(function(m0) {
|
|
74534
74568
|
return Array.isArray(m0.data) && m0.data.length > 0;
|
|
74535
|
-
})) return jsxRuntimeExports.jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", width: "100%", textAlign: "center" }, children: [jsxRuntimeExports.jsx(LottiePlayer, { src: "
|
|
74569
|
+
})) return jsxRuntimeExports.jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", width: "100%", textAlign: "center" }, children: [jsxRuntimeExports.jsx(LottiePlayer, { src: "Package%20not%20found.json", height: 150, width: 100, className: "zui:mb-2" }), jsxRuntimeExports.jsx(i$4, { fontSize: 14, color: "#888", children: ou$1(u0) })] });
|
|
74536
74570
|
var g0 = d0.map(function(m0) {
|
|
74537
74571
|
return e$4(e$4({ type: "bar" }, m0), { itemStyle: m0.color ? { color: alpha$2(m0.color, 0.8), borderColor: alpha$2(m0.color, 1), borderWidth: 2 } : { color: function(c0) {
|
|
74538
74572
|
return alpha$2(c0.color, 0.8);
|
|
@@ -77837,6 +77871,9 @@ l$5(`/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
|
77837
77871
|
.zui\\:min-h-\\[60px\\] {
|
|
77838
77872
|
min-height: 60px !important;
|
|
77839
77873
|
}
|
|
77874
|
+
.zui\\:min-h-\\[70vh\\] {
|
|
77875
|
+
min-height: 70vh !important;
|
|
77876
|
+
}
|
|
77840
77877
|
.zui\\:min-h-screen {
|
|
77841
77878
|
min-height: 100vh !important;
|
|
77842
77879
|
}
|
|
@@ -83275,7 +83312,7 @@ const Empty = ({ message: e0 = "No Records Found", height: t0, width: n0, svgPro
|
|
|
83275
83312
|
alignItems: "center",
|
|
83276
83313
|
margin: "auto",
|
|
83277
83314
|
padding: "20px"
|
|
83278
|
-
}, children: [jsxRuntimeExports.jsx(LottiePlayer, e1({ src: o0 || "https://cdn.zimyo.work/staticlogo/global/JSON/
|
|
83315
|
+
}, children: [jsxRuntimeExports.jsx(LottiePlayer, e1({ src: o0 || "https://cdn.zimyo.work/staticlogo/global/JSON/Something%20went%20wrong.json", height: t0 || 150, width: n0 || 100 }, r0)), jsxRuntimeExports.jsx(i$4, { fontSize: 14, color: "#888", children: lodashExports.startCase(e0) })] }), ToggleButton = styled$1(ToggleButton$1)(() => ({
|
|
83279
83316
|
"&.Mui-selected": {
|
|
83280
83317
|
backgroundColor: "#fff",
|
|
83281
83318
|
borderColor: "#4caf50",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/engage",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.18-hrms",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
46
46
|
"@types/lodash": "^4.17.4",
|
|
47
47
|
"@zimyo/design-system": "^4.0.0",
|
|
48
|
-
"@zimyo/ui": "^1.15.
|
|
48
|
+
"@zimyo/ui": "^1.15.5",
|
|
49
49
|
"axios": "^1.6.8",
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"dayjs": "^1.11.13",
|