@ukpc-lib/react 0.13.1-dev.27 → 0.13.1-dev.28
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 +3 -3
- package/dist/components/index.js +7 -13
- package/dist/{index.esm2017-xBWZcO2U.cjs → index.esm2017-C4FTxfgs.cjs} +74 -74
- package/dist/{index.esm2017-hAdqPAqn.js → index.esm2017-DTCfAUpp.js} +3492 -3472
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-DFUmn1bB.js → index-BwEhsh9S.js} +1 -1
- package/web-components-bundle/{index-fssXU5ga.js → index-CEnVJkU6.js} +3982 -3968
- package/web-components-bundle/page-not-found/index.js +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ui, { jsxs as A, Fragment as be, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as $ from "react";
|
|
3
3
|
import Ee, { createElement as sn, PureComponent as di, useState as D, useEffect as J, useRef as ye, useContext as We, useCallback as dt, forwardRef as fi } from "react";
|
|
4
|
-
import { c as Ie, a as ht, _ as hi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as mi, p as pi, L as Qn, u as gi, e as yi, S as Xr, f as bi, g as vi, Q as Jr, h as Tt, s as er, i as Pn, P, j as we, k as xi, o as Si, l as Fe, m as wi, n as Ot, q as tr, r as _i, v as nr, D as Ei, w as Qr, x as eo, y as Ci, z as Ti, A as Ii } from "../index.esm2017-
|
|
5
|
-
import { F as ou, G as iu, J as au, U as su, B as cu, E as lu, H as uu } from "../index.esm2017-
|
|
4
|
+
import { c as Ie, a as ht, _ as hi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as mi, p as pi, L as Qn, u as gi, e as yi, S as Xr, f as bi, g as vi, Q as Jr, h as Tt, s as er, i as Pn, P, j as we, k as xi, o as Si, l as Fe, m as wi, n as Ot, q as tr, r as _i, v as nr, D as Ei, w as Qr, x as eo, y as Ci, z as Ti, A as Ii } from "../index.esm2017-DTCfAUpp.js";
|
|
5
|
+
import { F as ou, G as iu, J as au, U as su, B as cu, E as lu, H as uu } from "../index.esm2017-DTCfAUpp.js";
|
|
6
6
|
import { Box as to, CircularProgress as no, Typography as Me, Stack as Se, Dialog as Mi, DialogTitle as ki, DialogContent as Oi, DialogActions as Ai, Button as gn, ClickAwayListener as $i, TextField as ro, IconButton as Ni, Fade as Pi, Paper as Ri, Checkbox as zi, Breadcrumbs as Li } from "@mui/material";
|
|
7
7
|
import "axios";
|
|
8
8
|
import { useParams as Di, Link as oo } from "react-router-dom";
|
|
@@ -867,7 +867,7 @@ function Ji({
|
|
|
867
867
|
) })
|
|
868
868
|
] });
|
|
869
869
|
}
|
|
870
|
-
const Qi = ".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:
|
|
870
|
+
const Qi = ".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:1100;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:#ddd;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}", ea = ".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .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}.StyledReactSearchAutocomplete .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}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .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:inherit;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:inherit;z-index:0;min-width:250px;max-width:400px;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,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 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{width:100%}.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}", ta = ':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:40px;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__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px;overflow:hidden;text-overflow:ellipsis}.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}', na = "._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}", co = '.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}';
|
|
871
871
|
function ra(e) {
|
|
872
872
|
return /* @__PURE__ */ A(
|
|
873
873
|
"svg",
|
|
@@ -2454,7 +2454,8 @@ function rs({ classNames: e = "", ...t }) {
|
|
|
2454
2454
|
aa,
|
|
2455
2455
|
ea
|
|
2456
2456
|
],
|
|
2457
|
-
style: { zIndex:
|
|
2457
|
+
style: { zIndex: "calc(var(--menu-z-index) + 1)" },
|
|
2458
|
+
className: "backdrop-delay-transition",
|
|
2458
2459
|
id: "topbar-wrapper",
|
|
2459
2460
|
children: [
|
|
2460
2461
|
/* @__PURE__ */ f(
|
|
@@ -2463,14 +2464,7 @@ function rs({ classNames: e = "", ...t }) {
|
|
|
2463
2464
|
className: `navbar-wrapper ${e}`,
|
|
2464
2465
|
style: c ? m : a,
|
|
2465
2466
|
children: /* @__PURE__ */ A("div", { className: "navbar-container", children: [
|
|
2466
|
-
h ? /* @__PURE__ */ f("div", { className: "logo-container", children: /* @__PURE__ */ f("img", { src: n || "#", alt: " ", style: { maxHeight: "40px" } }) }) : /* @__PURE__ */ f(
|
|
2467
|
-
"a",
|
|
2468
|
-
{
|
|
2469
|
-
href: "/home",
|
|
2470
|
-
className: "logo-container",
|
|
2471
|
-
children: /* @__PURE__ */ f("img", { src: n || "#", alt: " ", style: { maxHeight: "40px" } })
|
|
2472
|
-
}
|
|
2473
|
-
),
|
|
2467
|
+
h ? /* @__PURE__ */ f("div", { className: "logo-container", children: /* @__PURE__ */ f("img", { src: n || "#", alt: " ", style: { maxHeight: "40px" } }) }) : /* @__PURE__ */ f("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ f("img", { src: n || "#", alt: " ", style: { maxHeight: "40px" } }) }),
|
|
2474
2468
|
/* @__PURE__ */ A("div", { className: "right-side-container", children: [
|
|
2475
2469
|
d && E.hasPermission ? /* @__PURE__ */ f("span", { children: /* @__PURE__ */ f(
|
|
2476
2470
|
"label",
|
|
@@ -7692,7 +7686,7 @@ const Yr = (e) => {
|
|
|
7692
7686
|
providers: t
|
|
7693
7687
|
}) => /* @__PURE__ */ f(be, { children: t.reduceRight(_1, e) }), E1 = ".pnf-button-primary{font-size:14px;background-color:var(--primary300);color:var(--buttonText);padding:8px 24px;border-radius:4px;border:none;cursor:pointer;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pnf-button-primary:hover{background-color:var(--buttonHover)}.pnf-container{padding-top:16px;padding-bottom:16px;gap:16px;display:flex;flex-direction:column;align-items:center;font-family:inherit}.pnf-content-wrapper{display:flex;flex-direction:column;gap:8px;align-items:center}.pnf-title{text-align:center;font-size:1.25rem;font-weight:500;margin:0}.pnf-description{text-align:center;color:#85858a;font-size:.875rem;font-weight:400;margin:0}", eu = () => {
|
|
7694
7688
|
const e = () => {
|
|
7695
|
-
window.location.href =
|
|
7689
|
+
window.top && (window.top.location.href = "/app/home");
|
|
7696
7690
|
}, { colors: t } = Pn();
|
|
7697
7691
|
return /* @__PURE__ */ f(Xr, { styles: [E1], children: /* @__PURE__ */ A("div", { className: "pnf-container", children: [
|
|
7698
7692
|
/* @__PURE__ */ f(
|