@ukpc-lib/react 0.10.11 → 0.10.12
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/components/index.cjs +4 -4
- package/dist/components/index.js +102 -94
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-d1f91fe5.js → index-9e60af90.js} +9960 -9955
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as M, Fragment as de, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import pe, { useState as H, useContext as Oe, useEffect as
|
|
3
|
+
import pe, { useState as H, useContext as Oe, useEffect as q, useRef as Ee, useCallback as kt, forwardRef as Vo, createElement as on, PureComponent as Wo } from "react";
|
|
4
4
|
import { c as Le, a as gt, C as Fe, t as Qe, p as Uo, L as Yn, u as Ko, b as Yo, S as Go, d as qo, e as Zo, Q as Br, f as Et, g as Tn, h as Xo, s as Ct, _ as B, P as N, i as Se, j as Jo, o as Qo, k as $e, l as ei, m as ti, n as Gn, q as At, r as qn, I as ni, v as ri, w as Zn, D as oi, x as Vr, y as Wr, z as ii, A as ai, B as si } from "../index.esm2017-635051bd.js";
|
|
5
5
|
import { H as H1, G as B1, K as V1, E as W1, F as U1, J as K1 } from "../index.esm2017-635051bd.js";
|
|
6
6
|
import Q from "moment";
|
|
@@ -130,7 +130,7 @@ const Si = (e) => {
|
|
|
130
130
|
isRead: S
|
|
131
131
|
})), console.log("newIsReadState", S), v(y, S);
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
q(() => {
|
|
134
134
|
c(r ? (y) => ({
|
|
135
135
|
...y,
|
|
136
136
|
isRead: !0
|
|
@@ -447,9 +447,9 @@ function Ei({
|
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
|
-
return
|
|
450
|
+
return q(() => {
|
|
451
451
|
f();
|
|
452
|
-
}, [o]),
|
|
452
|
+
}, [o]), q(() => {
|
|
453
453
|
kn({
|
|
454
454
|
childrenClass: "noti-container",
|
|
455
455
|
childrenOpenClass: "noti-list-container",
|
|
@@ -529,7 +529,7 @@ function Ei({
|
|
|
529
529
|
] });
|
|
530
530
|
}
|
|
531
531
|
const Ci = `.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}
|
|
532
|
-
`, Ii = `::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}::-webkit-scrollbar-thumb{background:rgb(194,194,194);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:rgb(117,117,117)}.container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.container>div{width:300px;height:40px}.container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.container>div input:focus{outline:1px solid rgb(83,172,255)}.list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.list button:hover{background:#f8f8f8}.list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:Arial;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:Arial;z-index:0;width:450px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}
|
|
532
|
+
`, Ii = `::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}::-webkit-scrollbar-thumb{background:rgb(194,194,194);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:rgb(117,117,117)}.container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.container>div{width:300px;height:40px}.container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.container>div input:focus{outline:1px solid rgb(83,172,255)}.list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.list button:hover{background:#f8f8f8}.list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:Arial;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:Arial;z-index:0;width:450px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}
|
|
533
533
|
`, Ti = `:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:46px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}
|
|
534
534
|
`, Mi = `._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}
|
|
535
535
|
`, Kr = `.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}
|
|
@@ -656,7 +656,7 @@ const Ni = `@keyframes react-loading-skeleton{to{transform:translate(100%)}}.rea
|
|
|
656
656
|
console.log(l);
|
|
657
657
|
}
|
|
658
658
|
};
|
|
659
|
-
return
|
|
659
|
+
return q(() => {
|
|
660
660
|
o();
|
|
661
661
|
}, [e, t]), { hasPermission: n };
|
|
662
662
|
};
|
|
@@ -1847,7 +1847,7 @@ function Ma({
|
|
|
1847
1847
|
}, s = (b) => {
|
|
1848
1848
|
v && i(b);
|
|
1849
1849
|
}, g = f ? { maxLength: f } : {};
|
|
1850
|
-
return
|
|
1850
|
+
return q(() => {
|
|
1851
1851
|
document.querySelector("global-topbar");
|
|
1852
1852
|
const b = (_) => {
|
|
1853
1853
|
const w = document.getElementById("AddTagButton"), E = document.getElementsByClassName("btn-edit");
|
|
@@ -1947,55 +1947,63 @@ function Oa({
|
|
|
1947
1947
|
({ ..._a, ...v });
|
|
1948
1948
|
const x = { ...rr, ...t }, S = new rt(e, x);
|
|
1949
1949
|
S.setCollection(e);
|
|
1950
|
-
const [C, A] = H(s), [I, k] = H([]), [O,
|
|
1951
|
-
|
|
1950
|
+
const [C, A] = H(s), [I, k] = H([]), [O, G] = H(-1), [W, oe] = H(!1), [me, Pe] = H(!1), [Te, He] = H(!1), [Me, Be] = H(!1);
|
|
1951
|
+
q(() => {
|
|
1952
1952
|
A(s);
|
|
1953
|
-
const
|
|
1953
|
+
const R = setTimeout(
|
|
1954
1954
|
() => k(wt(s)),
|
|
1955
1955
|
0
|
|
1956
1956
|
);
|
|
1957
|
-
return () => clearTimeout(
|
|
1958
|
-
}, [s]),
|
|
1957
|
+
return () => clearTimeout(R);
|
|
1958
|
+
}, [s]), q(() => {
|
|
1959
1959
|
(C == null ? void 0 : C.length) >= 3 ? e && (e == null ? void 0 : e.length) > 0 && k(e) : k([]);
|
|
1960
|
-
}, [e]),
|
|
1961
|
-
|
|
1962
|
-
}, [me, b, W, C, I]), G(() => {
|
|
1963
|
-
w && I.length === 0 && C.length === 0 && Me && k(e.slice(0, f));
|
|
1964
|
-
}, [w, I, C, Me]), G(() => {
|
|
1965
|
-
const z = () => {
|
|
1960
|
+
}, [e]), q(() => {
|
|
1961
|
+
const R = () => {
|
|
1966
1962
|
We(), Be(!1);
|
|
1967
1963
|
};
|
|
1968
|
-
return document.addEventListener("click",
|
|
1969
|
-
}, [])
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1964
|
+
return document.addEventListener("click", R), () => document.removeEventListener("click", R);
|
|
1965
|
+
}, []), q(() => {
|
|
1966
|
+
(() => {
|
|
1967
|
+
b && C.length > 0 && !me && I.length === 0 && !W ? He(!0) : He(!1), w && I.length === 0 && C.length === 0 && Me && k(e.slice(0, f));
|
|
1968
|
+
})();
|
|
1969
|
+
}, [
|
|
1970
|
+
me,
|
|
1971
|
+
b,
|
|
1972
|
+
W,
|
|
1973
|
+
C,
|
|
1974
|
+
I,
|
|
1975
|
+
w,
|
|
1976
|
+
Me
|
|
1977
|
+
]);
|
|
1978
|
+
const st = (R) => {
|
|
1979
|
+
a(R), Be(!0);
|
|
1980
|
+
}, ze = (R) => {
|
|
1973
1981
|
let te = [];
|
|
1974
|
-
(
|
|
1982
|
+
(R == null ? void 0 : R.length) > 0 && (te = wt(R)), k(te), r(R, te), Pe(!1);
|
|
1975
1983
|
}, we = pe.useCallback(
|
|
1976
|
-
n > 0 ? Ea((
|
|
1984
|
+
n > 0 ? Ea((R) => ze(R), n) : (R) => ze(R),
|
|
1977
1985
|
[e]
|
|
1978
|
-
), Ve = (
|
|
1979
|
-
We(), i(
|
|
1980
|
-
}, wt = (
|
|
1981
|
-
const te =
|
|
1986
|
+
), Ve = (R) => {
|
|
1987
|
+
We(), i(R), A(R[p]), G(0);
|
|
1988
|
+
}, wt = (R) => S.search(R, { limit: f }).map((te) => ({ ...te.item })).slice(0, f), rn = ({ target: R }) => {
|
|
1989
|
+
const te = R.value;
|
|
1982
1990
|
A(te), we(te), Pe(!0), W && oe(!1);
|
|
1983
1991
|
}, We = () => {
|
|
1984
1992
|
k([]), oe(!0);
|
|
1985
1993
|
}, _t = ({
|
|
1986
|
-
index:
|
|
1994
|
+
index: R,
|
|
1987
1995
|
event: te
|
|
1988
1996
|
}) => {
|
|
1989
1997
|
let T = -1;
|
|
1990
1998
|
const Ue = (ke) => {
|
|
1991
|
-
|
|
1999
|
+
G(ke), I != null && I[ke] && o(I[ke]);
|
|
1992
2000
|
};
|
|
1993
|
-
if (
|
|
1994
|
-
|
|
2001
|
+
if (R !== void 0)
|
|
2002
|
+
G(R), I != null && I[R] && o(I[R]);
|
|
1995
2003
|
else if (te)
|
|
1996
2004
|
switch (te.key) {
|
|
1997
2005
|
case "Enter":
|
|
1998
|
-
I.length > 0 && I[O] ? (te.preventDefault(), i(I[O])) : r(C, I),
|
|
2006
|
+
I.length > 0 && I[O] ? (te.preventDefault(), i(I[O])) : r(C, I), G(-1), We();
|
|
1999
2007
|
break;
|
|
2000
2008
|
case "ArrowUp":
|
|
2001
2009
|
te.preventDefault(), T = O > -1 ? O - 1 : I.length - 1, Ue(T);
|
|
@@ -2059,7 +2067,7 @@ function $a({ classNames: e = "", ...t }) {
|
|
|
2059
2067
|
}, [m, v] = H(!1), { Term: p } = vi();
|
|
2060
2068
|
console.log("term", p);
|
|
2061
2069
|
const [s, g] = H([]), [b, _] = H([]), w = Ri({ baseUrl: o });
|
|
2062
|
-
console.log("searchPermission", w.hasPermission),
|
|
2070
|
+
console.log("searchPermission", w.hasPermission), q(() => {
|
|
2063
2071
|
s.length >= 3 ? E(s) : _([]);
|
|
2064
2072
|
}, [s]);
|
|
2065
2073
|
const E = async (I) => {
|
|
@@ -2237,7 +2245,7 @@ function Na() {
|
|
|
2237
2245
|
new Array(e.length).fill(!1)
|
|
2238
2246
|
);
|
|
2239
2247
|
const { language: r, setLanguage: o } = Ko();
|
|
2240
|
-
|
|
2248
|
+
q(() => {
|
|
2241
2249
|
kn({
|
|
2242
2250
|
childrenClass: "languageDropdown",
|
|
2243
2251
|
action() {
|
|
@@ -2272,7 +2280,7 @@ function Ra({
|
|
|
2272
2280
|
userName: t
|
|
2273
2281
|
}) {
|
|
2274
2282
|
const [n, r] = H(!1), o = Ee(null);
|
|
2275
|
-
return Ee(null), H(!1), H(!1),
|
|
2283
|
+
return Ee(null), H(!1), H(!1), q(() => {
|
|
2276
2284
|
kn({
|
|
2277
2285
|
childrenClass: "userAvatar",
|
|
2278
2286
|
action() {
|
|
@@ -3273,7 +3281,7 @@ var ds = /* @__PURE__ */ function() {
|
|
|
3273
3281
|
return (o = r.parentNode) == null ? void 0 : o.removeChild(r);
|
|
3274
3282
|
}), this.tags = [], this.ctr = 0;
|
|
3275
3283
|
}, e;
|
|
3276
|
-
}(), ne = "-ms-", jt = "-moz-",
|
|
3284
|
+
}(), ne = "-ms-", jt = "-moz-", P = "-webkit-", lo = "comm", $n = "rule", Nn = "decl", fs = "@import", co = "@keyframes", hs = "@layer", ms = Math.abs, Wt = String.fromCharCode, ps = Object.assign;
|
|
3277
3285
|
function gs(e, t) {
|
|
3278
3286
|
return ee(e, 0) ^ 45 ? (((t << 2 ^ ee(e, 0)) << 2 ^ ee(e, 1)) << 2 ^ ee(e, 2)) << 2 ^ ee(e, 3) : 0;
|
|
3279
3287
|
}
|
|
@@ -3283,7 +3291,7 @@ function uo(e) {
|
|
|
3283
3291
|
function ys(e, t) {
|
|
3284
3292
|
return (e = t.exec(e)) ? e[0] : e;
|
|
3285
3293
|
}
|
|
3286
|
-
function
|
|
3294
|
+
function z(e, t, n) {
|
|
3287
3295
|
return e.replace(t, n);
|
|
3288
3296
|
}
|
|
3289
3297
|
function xn(e, t) {
|
|
@@ -3420,7 +3428,7 @@ function Nt(e, t, n, r, o, i, a, l, c) {
|
|
|
3420
3428
|
switch (p = _, _ = le()) {
|
|
3421
3429
|
case 40:
|
|
3422
3430
|
if (p != 108 && ee(S, h - 1) == 58) {
|
|
3423
|
-
xn(S +=
|
|
3431
|
+
xn(S += z($t(_), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
3424
3432
|
break;
|
|
3425
3433
|
}
|
|
3426
3434
|
case 34:
|
|
@@ -3457,7 +3465,7 @@ function Nt(e, t, n, r, o, i, a, l, c) {
|
|
|
3457
3465
|
case 125:
|
|
3458
3466
|
g = 0;
|
|
3459
3467
|
case 59 + f:
|
|
3460
|
-
b == -1 && (S =
|
|
3468
|
+
b == -1 && (S = z(S, /\f/g, "")), v > 0 && ge(S) - h && Tt(v > 32 ? dr(S + ";", r, n, h - 1) : dr(z(S, " ", "") + ";", r, n, h - 2), c);
|
|
3461
3469
|
break;
|
|
3462
3470
|
case 59:
|
|
3463
3471
|
S += ";";
|
|
@@ -3507,7 +3515,7 @@ function Nt(e, t, n, r, o, i, a, l, c) {
|
|
|
3507
3515
|
function ur(e, t, n, r, o, i, a, l, c, d, f) {
|
|
3508
3516
|
for (var h = o - 1, m = o === 0 ? i : [""], v = Rn(m), p = 0, s = 0, g = 0; p < r; ++p)
|
|
3509
3517
|
for (var b = 0, _ = ft(e, h + 1, h = ms(s = a[p])), w = e; b < v; ++b)
|
|
3510
|
-
(w = uo(s > 0 ? m[b] + " " + _ :
|
|
3518
|
+
(w = uo(s > 0 ? m[b] + " " + _ : z(_, /&\f/g, m[b]))) && (c[g++] = w);
|
|
3511
3519
|
return Kt(e, t, n, o === 0 ? $n : l, c, d, f);
|
|
3512
3520
|
}
|
|
3513
3521
|
function Is(e, t, n) {
|
|
@@ -3608,7 +3616,7 @@ var As = function(t, n, r) {
|
|
|
3608
3616
|
function go(e, t) {
|
|
3609
3617
|
switch (gs(e, t)) {
|
|
3610
3618
|
case 5103:
|
|
3611
|
-
return
|
|
3619
|
+
return P + "print-" + e + e;
|
|
3612
3620
|
case 5737:
|
|
3613
3621
|
case 4201:
|
|
3614
3622
|
case 3177:
|
|
@@ -3634,44 +3642,44 @@ function go(e, t) {
|
|
|
3634
3642
|
case 5365:
|
|
3635
3643
|
case 5621:
|
|
3636
3644
|
case 3829:
|
|
3637
|
-
return
|
|
3645
|
+
return P + e + e;
|
|
3638
3646
|
case 5349:
|
|
3639
3647
|
case 4246:
|
|
3640
3648
|
case 4810:
|
|
3641
3649
|
case 6968:
|
|
3642
3650
|
case 2756:
|
|
3643
|
-
return
|
|
3651
|
+
return P + e + jt + e + ne + e + e;
|
|
3644
3652
|
case 6828:
|
|
3645
3653
|
case 4268:
|
|
3646
|
-
return
|
|
3654
|
+
return P + e + ne + e + e;
|
|
3647
3655
|
case 6165:
|
|
3648
|
-
return
|
|
3656
|
+
return P + e + ne + "flex-" + e + e;
|
|
3649
3657
|
case 5187:
|
|
3650
|
-
return
|
|
3658
|
+
return P + e + z(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + ne + "flex-$1$2") + e;
|
|
3651
3659
|
case 5443:
|
|
3652
|
-
return
|
|
3660
|
+
return P + e + ne + "flex-item-" + z(e, /flex-|-self/, "") + e;
|
|
3653
3661
|
case 4675:
|
|
3654
|
-
return
|
|
3662
|
+
return P + e + ne + "flex-line-pack" + z(e, /align-content|flex-|-self/, "") + e;
|
|
3655
3663
|
case 5548:
|
|
3656
|
-
return
|
|
3664
|
+
return P + e + ne + z(e, "shrink", "negative") + e;
|
|
3657
3665
|
case 5292:
|
|
3658
|
-
return
|
|
3666
|
+
return P + e + ne + z(e, "basis", "preferred-size") + e;
|
|
3659
3667
|
case 6060:
|
|
3660
|
-
return
|
|
3668
|
+
return P + "box-" + z(e, "-grow", "") + P + e + ne + z(e, "grow", "positive") + e;
|
|
3661
3669
|
case 4554:
|
|
3662
|
-
return
|
|
3670
|
+
return P + z(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
|
|
3663
3671
|
case 6187:
|
|
3664
|
-
return
|
|
3672
|
+
return z(z(z(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
|
|
3665
3673
|
case 5495:
|
|
3666
3674
|
case 3959:
|
|
3667
|
-
return
|
|
3675
|
+
return z(e, /(image-set\([^]*)/, P + "$1$`$1");
|
|
3668
3676
|
case 4968:
|
|
3669
|
-
return
|
|
3677
|
+
return z(z(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + ne + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
|
|
3670
3678
|
case 4095:
|
|
3671
3679
|
case 3583:
|
|
3672
3680
|
case 4068:
|
|
3673
3681
|
case 2532:
|
|
3674
|
-
return
|
|
3682
|
+
return z(e, /(.+)-inline(.+)/, P + "$1$2") + e;
|
|
3675
3683
|
case 8116:
|
|
3676
3684
|
case 7059:
|
|
3677
3685
|
case 5753:
|
|
@@ -3690,9 +3698,9 @@ function go(e, t) {
|
|
|
3690
3698
|
if (ee(e, t + 4) !== 45)
|
|
3691
3699
|
break;
|
|
3692
3700
|
case 102:
|
|
3693
|
-
return
|
|
3701
|
+
return z(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + jt + (ee(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3694
3702
|
case 115:
|
|
3695
|
-
return ~xn(e, "stretch") ? go(
|
|
3703
|
+
return ~xn(e, "stretch") ? go(z(e, "stretch", "fill-available"), t) + e : e;
|
|
3696
3704
|
}
|
|
3697
3705
|
break;
|
|
3698
3706
|
case 4949:
|
|
@@ -3701,21 +3709,21 @@ function go(e, t) {
|
|
|
3701
3709
|
case 6444:
|
|
3702
3710
|
switch (ee(e, ge(e) - 3 - (~xn(e, "!important") && 10))) {
|
|
3703
3711
|
case 107:
|
|
3704
|
-
return
|
|
3712
|
+
return z(e, ":", ":" + P) + e;
|
|
3705
3713
|
case 101:
|
|
3706
|
-
return
|
|
3714
|
+
return z(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (ee(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + ne + "$2box$3") + e;
|
|
3707
3715
|
}
|
|
3708
3716
|
break;
|
|
3709
3717
|
case 5936:
|
|
3710
3718
|
switch (ee(e, t + 11)) {
|
|
3711
3719
|
case 114:
|
|
3712
|
-
return
|
|
3720
|
+
return P + e + ne + z(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3713
3721
|
case 108:
|
|
3714
|
-
return
|
|
3722
|
+
return P + e + ne + z(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3715
3723
|
case 45:
|
|
3716
|
-
return
|
|
3724
|
+
return P + e + ne + z(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3717
3725
|
}
|
|
3718
|
-
return
|
|
3726
|
+
return P + e + ne + e + e;
|
|
3719
3727
|
}
|
|
3720
3728
|
return e;
|
|
3721
3729
|
}
|
|
@@ -3727,7 +3735,7 @@ var Ps = function(t, n, r, o) {
|
|
|
3727
3735
|
break;
|
|
3728
3736
|
case co:
|
|
3729
3737
|
return et([lt(t, {
|
|
3730
|
-
value:
|
|
3738
|
+
value: z(t.value, "@", "@" + P)
|
|
3731
3739
|
})], o);
|
|
3732
3740
|
case $n:
|
|
3733
3741
|
if (t.length)
|
|
@@ -3736,15 +3744,15 @@ var Ps = function(t, n, r, o) {
|
|
|
3736
3744
|
case ":read-only":
|
|
3737
3745
|
case ":read-write":
|
|
3738
3746
|
return et([lt(t, {
|
|
3739
|
-
props: [
|
|
3747
|
+
props: [z(i, /:(read-\w+)/, ":" + jt + "$1")]
|
|
3740
3748
|
})], o);
|
|
3741
3749
|
case "::placeholder":
|
|
3742
3750
|
return et([lt(t, {
|
|
3743
|
-
props: [
|
|
3751
|
+
props: [z(i, /:(plac\w+)/, ":" + P + "input-$1")]
|
|
3744
3752
|
}), lt(t, {
|
|
3745
|
-
props: [
|
|
3753
|
+
props: [z(i, /:(plac\w+)/, ":" + jt + "$1")]
|
|
3746
3754
|
}), lt(t, {
|
|
3747
|
-
props: [
|
|
3755
|
+
props: [z(i, /:(plac\w+)/, ne + "input-$1")]
|
|
3748
3756
|
})], o);
|
|
3749
3757
|
}
|
|
3750
3758
|
return "";
|
|
@@ -3922,7 +3930,7 @@ function Ls() {
|
|
|
3922
3930
|
}
|
|
3923
3931
|
}
|
|
3924
3932
|
}
|
|
3925
|
-
var y = c, x = d, S = l, C = a, A = t, I = f, k = r, O = p,
|
|
3933
|
+
var y = c, x = d, S = l, C = a, A = t, I = f, k = r, O = p, G = v, W = n, oe = i, me = o, Pe = h, Te = !1;
|
|
3926
3934
|
function He(T) {
|
|
3927
3935
|
return Te || (Te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Me(T) || E(T) === c;
|
|
3928
3936
|
}
|
|
@@ -3956,13 +3964,13 @@ function Ls() {
|
|
|
3956
3964
|
function _t(T) {
|
|
3957
3965
|
return E(T) === i;
|
|
3958
3966
|
}
|
|
3959
|
-
function
|
|
3967
|
+
function R(T) {
|
|
3960
3968
|
return E(T) === o;
|
|
3961
3969
|
}
|
|
3962
3970
|
function te(T) {
|
|
3963
3971
|
return E(T) === h;
|
|
3964
3972
|
}
|
|
3965
|
-
L.AsyncMode = y, L.ConcurrentMode = x, L.ContextConsumer = S, L.ContextProvider = C, L.Element = A, L.ForwardRef = I, L.Fragment = k, L.Lazy = O, L.Memo =
|
|
3973
|
+
L.AsyncMode = y, L.ConcurrentMode = x, L.ContextConsumer = S, L.ContextProvider = C, L.Element = A, L.ForwardRef = I, L.Fragment = k, L.Lazy = O, L.Memo = G, L.Portal = W, L.Profiler = oe, L.StrictMode = me, L.Suspense = Pe, L.isAsyncMode = He, L.isConcurrentMode = Me, L.isContextConsumer = Be, L.isContextProvider = st, L.isElement = ze, L.isForwardRef = we, L.isFragment = Ve, L.isLazy = wt, L.isMemo = rn, L.isPortal = We, L.isProfiler = _t, L.isStrictMode = R, L.isSuspense = te, L.isValidElementType = w, L.typeOf = E;
|
|
3966
3974
|
}()), L;
|
|
3967
3975
|
}
|
|
3968
3976
|
process.env.NODE_ENV === "production" ? wn.exports = Ds() : wn.exports = Ls();
|
|
@@ -5547,22 +5555,22 @@ function Dc(e = {}) {
|
|
|
5547
5555
|
}));
|
|
5548
5556
|
if (!O.components || !O.components[c] || !O.components[c].styleOverrides)
|
|
5549
5557
|
return null;
|
|
5550
|
-
const
|
|
5551
|
-
return Object.entries(
|
|
5558
|
+
const G = O.components[c].styleOverrides, W = {};
|
|
5559
|
+
return Object.entries(G).forEach(([oe, me]) => {
|
|
5552
5560
|
W[oe] = Pt(me, (0, ce.default)({}, k, {
|
|
5553
5561
|
theme: O
|
|
5554
5562
|
}));
|
|
5555
5563
|
}), m(k, W);
|
|
5556
5564
|
}), c && !p && C.push((k) => {
|
|
5557
5565
|
var O;
|
|
5558
|
-
const
|
|
5566
|
+
const G = Mt((0, ce.default)({}, k, {
|
|
5559
5567
|
defaultTheme: n,
|
|
5560
5568
|
themeId: t
|
|
5561
|
-
})), W =
|
|
5569
|
+
})), W = G == null || (O = G.components) == null || (O = O[c]) == null ? void 0 : O.variants;
|
|
5562
5570
|
return Pt({
|
|
5563
5571
|
variants: W
|
|
5564
5572
|
}, (0, ce.default)({}, k, {
|
|
5565
|
-
theme:
|
|
5573
|
+
theme: G
|
|
5566
5574
|
}));
|
|
5567
5575
|
}), s || C.push(i);
|
|
5568
5576
|
const A = C.length - x.length;
|
|
@@ -6697,7 +6705,7 @@ function Q0(e) {
|
|
|
6697
6705
|
}, v.componentWillUnmount = function() {
|
|
6698
6706
|
this._resetIsScrollingTimeoutId !== null && zr(this._resetIsScrollingTimeoutId);
|
|
6699
6707
|
}, v.render = function() {
|
|
6700
|
-
var s = this.props, g = s.children, b = s.className, _ = s.direction, w = s.height, E = s.innerRef, y = s.innerElementType, x = s.innerTagName, S = s.itemCount, C = s.itemData, A = s.itemKey, I = A === void 0 ? J0 : A, k = s.layout, O = s.outerElementType,
|
|
6708
|
+
var s = this.props, g = s.children, b = s.className, _ = s.direction, w = s.height, E = s.innerRef, y = s.innerElementType, x = s.innerTagName, S = s.itemCount, C = s.itemData, A = s.itemKey, I = A === void 0 ? J0 : A, k = s.layout, O = s.outerElementType, G = s.outerTagName, W = s.style, oe = s.useIsScrolling, me = s.width, Pe = this.state.isScrolling, Te = _ === "horizontal" || k === "horizontal", He = Te ? this._onScrollHorizontal : this._onScrollVertical, Me = this._getRangeToRender(), Be = Me[0], st = Me[1], ze = [];
|
|
6701
6709
|
if (S > 0)
|
|
6702
6710
|
for (var we = Be; we <= st; we++)
|
|
6703
6711
|
ze.push(on(g, {
|
|
@@ -6708,7 +6716,7 @@ function Q0(e) {
|
|
|
6708
6716
|
style: this._getItemStyle(we)
|
|
6709
6717
|
}));
|
|
6710
6718
|
var Ve = r(this.props, this._instanceProps);
|
|
6711
|
-
return on(O ||
|
|
6719
|
+
return on(O || G || "div", {
|
|
6712
6720
|
className: b,
|
|
6713
6721
|
onScroll: He,
|
|
6714
6722
|
ref: this._outerRefSetter,
|
|
@@ -6925,17 +6933,17 @@ function N1(e) {
|
|
|
6925
6933
|
}, m = () => {
|
|
6926
6934
|
n(!1), a(""), f("");
|
|
6927
6935
|
};
|
|
6928
|
-
|
|
6936
|
+
q(() => {
|
|
6929
6937
|
o(e.value ? e.getOptionLabel(e.value) : "");
|
|
6930
|
-
}, [e.value]),
|
|
6938
|
+
}, [e.value]), q(() => {
|
|
6931
6939
|
t || o(e.value ? e.getOptionLabel(e.value) : "");
|
|
6932
|
-
}, [t]),
|
|
6940
|
+
}, [t]), q(() => {
|
|
6933
6941
|
c(e.searchLoading);
|
|
6934
6942
|
}, [e.paging.rows, e.searchLoading]);
|
|
6935
6943
|
const v = e.paging.rows, { hasNextPage: p } = e, s = p ? v.length + 1 : v.length, g = () => e.isNextPageLoading ? void 0 : e.loadNextPage(i), b = (x) => !p || x < v.length, _ = (x) => {
|
|
6936
6944
|
o(x.target.value), t && (a(x.target.value), f(x.target.value), c(!0));
|
|
6937
6945
|
}, w = Ee(null), E = Ee(null), y = Ee(null);
|
|
6938
|
-
return
|
|
6946
|
+
return q(() => {
|
|
6939
6947
|
var x, S, C, A;
|
|
6940
6948
|
t ? ((x = E.current) == null || x.classList.add("Mui-focused"), (S = y.current) == null || S.classList.add("Mui-focused")) : ((C = E.current) == null || C.classList.remove("Mui-focused"), (A = y.current) == null || A.classList.remove("Mui-focused"));
|
|
6941
6949
|
}, [t]), /* @__PURE__ */ u(
|
|
@@ -7075,7 +7083,7 @@ function N1(e) {
|
|
|
7075
7083
|
stackProps: { style: A },
|
|
7076
7084
|
option: I,
|
|
7077
7085
|
renderOption: (O) => {
|
|
7078
|
-
var
|
|
7086
|
+
var G;
|
|
7079
7087
|
return /* @__PURE__ */ M(
|
|
7080
7088
|
ie,
|
|
7081
7089
|
{
|
|
@@ -7084,14 +7092,14 @@ function N1(e) {
|
|
|
7084
7092
|
justifyContent: "space-between",
|
|
7085
7093
|
children: [
|
|
7086
7094
|
/* @__PURE__ */ u(_e, { children: e.getOptionLabel(O) }),
|
|
7087
|
-
(
|
|
7095
|
+
(G = e.renderOptionTooltip) == null ? void 0 : G.call(e, O)
|
|
7088
7096
|
]
|
|
7089
7097
|
}
|
|
7090
7098
|
);
|
|
7091
7099
|
},
|
|
7092
7100
|
onClick: (O) => {
|
|
7093
|
-
var
|
|
7094
|
-
m(), (
|
|
7101
|
+
var G;
|
|
7102
|
+
m(), (G = e.onChange) == null || G.call(e, O);
|
|
7095
7103
|
},
|
|
7096
7104
|
select: ((k = e.isEqual) == null ? void 0 : k.call(e, I, e.value)) ?? qn.isEqual(I, e.value)
|
|
7097
7105
|
}
|
|
@@ -7223,7 +7231,7 @@ function R1(e) {
|
|
|
7223
7231
|
}, c = (h) => {
|
|
7224
7232
|
r((m) => ({ ...m, searchLoading: !0 })), o({ page: 1, search: { content: h } });
|
|
7225
7233
|
};
|
|
7226
|
-
|
|
7234
|
+
q(() => {
|
|
7227
7235
|
e.disabled || (r((h) => ({ ...h, initLoading: !0 })), o({ page: 1 }));
|
|
7228
7236
|
}, [...e.dependencyList || []]);
|
|
7229
7237
|
const d = () => {
|
|
@@ -7321,7 +7329,7 @@ const s1 = "Reset date";
|
|
|
7321
7329
|
function P1(e) {
|
|
7322
7330
|
var l, c;
|
|
7323
7331
|
const [t, n] = H(e.value), r = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : Q(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + Q(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
|
|
7324
|
-
|
|
7332
|
+
q(() => {
|
|
7325
7333
|
n(e.value);
|
|
7326
7334
|
}, [e.value]);
|
|
7327
7335
|
const o = Ee(null), i = Ee(null), a = Ee(null);
|
|
@@ -7581,13 +7589,13 @@ const Hr = (e) => {
|
|
|
7581
7589
|
)
|
|
7582
7590
|
] });
|
|
7583
7591
|
}
|
|
7584
|
-
return
|
|
7592
|
+
return q(() => {
|
|
7585
7593
|
t && Notification.permission === "granted" && (t.actorName || t.actionKey || t.context || t.contextUrl) && si(/* @__PURE__ */ u(o, {}));
|
|
7586
|
-
}, [t]),
|
|
7594
|
+
}, [t]), q(() => {
|
|
7587
7595
|
"Notification" in window && (console.log("notification permission", Notification.permission), Notification.permission === "default" ? Notification.requestPermission(function(i) {
|
|
7588
7596
|
i === "granted" && Hr(e);
|
|
7589
7597
|
}) : Notification.permission === "granted" && Hr(e));
|
|
7590
|
-
}, [Notification.permission]),
|
|
7598
|
+
}, [Notification.permission]), q(() => {
|
|
7591
7599
|
u1(r);
|
|
7592
7600
|
}, []), d1(e).then((i) => {
|
|
7593
7601
|
var l, c, d, f, h, m, v, p, s, g, b, _, w, E, y;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { F as a, u as s } from "../index-
|
|
2
|
+
import { F as a, u as s } from "../index-9e60af90.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { L as e, T as g } from "../index-
|
|
2
|
+
import { L as e, T as g } from "../index-9e60af90.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { H as e, g as a } from "../index-
|
|
2
|
+
import { H as e, g as a } from "../index-9e60af90.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|