@ukpc-lib/react 0.3.42 → 0.3.43
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/ShadownDom/index.d.ts +1 -1
- package/dist/components/Topbar/index.d.ts +3 -2
- package/dist/components/index.cjs +5 -5
- package/dist/components/index.js +18 -16
- package/dist/index.module-42e2de1d.cjs +987 -0
- package/dist/index.module-8b49f064.js +22055 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-a3fc049e.cjs → index-0b31d173.cjs} +5 -5
- package/web-components-bundle/index-9091b8d6.cjs +40 -0
- package/web-components-bundle/index-96f18056.js +7902 -0
- package/web-components-bundle/{index-981f4a42.js → index-b76d708c.js} +19 -16
- package/dist/index.module-06bf4d76.cjs +0 -1092
- package/dist/index.module-0f5e9fad.js +0 -32064
- package/web-components-bundle/index-60a9bd54.cjs +0 -67
- package/web-components-bundle/index-db308fb2.js +0 -10796
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as z, r as Q, R as Qp, g as _r, a as Js, c as pa, b as Ox, d as Ix, s as tm } from "./react-to-web-component-469d91d4.js";
|
|
2
|
-
import { c as Bi, _ as $e, a as nr, b as Rx, o as Px, d as Nx, e as ho, p as po, n as Lx, l as eg, E as $x, S as Fx, L as Yx } from "./index-
|
|
2
|
+
import { c as Bi, _ as $e, a as nr, b as Rx, o as Px, d as Nx, e as ho, p as po, n as Lx, l as eg, E as $x, S as Fx, L as Yx } from "./index-96f18056.js";
|
|
3
3
|
import { _ as Bx, t as Wx, I as jx, i as Hx, L as Lf } from "./index-b3659f2e.js";
|
|
4
4
|
function nm(e) {
|
|
5
5
|
var t, r, a = "";
|
|
@@ -18536,10 +18536,10 @@ function uP({
|
|
|
18536
18536
|
) })
|
|
18537
18537
|
] });
|
|
18538
18538
|
}
|
|
18539
|
-
const lP = `.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{
|
|
18539
|
+
const lP = `.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{display:flex;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.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}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.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}
|
|
18540
18540
|
`, cP = `: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;cursor:pointer;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}
|
|
18541
|
-
`, fP = `.
|
|
18542
|
-
`, dP = `.
|
|
18541
|
+
`, fP = `._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}
|
|
18542
|
+
`, dP = `._notification-massage_container_ql4az_1{background:#fff;padding:0 64px 0 84px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif}._notification-massage_container_ql4az_1: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_ql4az_18{font-weight:500;font-size:14px}._notification-message_service_ql4az_23{font-size:12px}._notification-message_button-close_ql4az_27{position:absolute;top:12px;right:24px;width:24px;height:24px}
|
|
18543
18543
|
`;
|
|
18544
18544
|
function hP(e) {
|
|
18545
18545
|
return /* @__PURE__ */ z.jsxs(
|
|
@@ -18655,13 +18655,14 @@ function gP({
|
|
|
18655
18655
|
style: o,
|
|
18656
18656
|
classNames: c = "",
|
|
18657
18657
|
customColors: h,
|
|
18658
|
-
notiprops: _
|
|
18658
|
+
notiprops: _,
|
|
18659
|
+
customElement: S
|
|
18659
18660
|
}) {
|
|
18660
|
-
const
|
|
18661
|
+
const D = e || "https://ukpcsaprod.blob.core.windows.net/lib/images/logo-header.png", A = {
|
|
18661
18662
|
...o,
|
|
18662
18663
|
color: (h == null ? void 0 : h.headerTextColor) || "white",
|
|
18663
18664
|
backgroundColor: (h == null ? void 0 : h.headerBgColor) || "black"
|
|
18664
|
-
}, [
|
|
18665
|
+
}, [$, W] = Q.useState(!1), K = () => {
|
|
18665
18666
|
window.location.href = `${r}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
18666
18667
|
};
|
|
18667
18668
|
return /* @__PURE__ */ z.jsxs(
|
|
@@ -18671,8 +18672,8 @@ function gP({
|
|
|
18671
18672
|
lP,
|
|
18672
18673
|
// tabStyles,
|
|
18673
18674
|
cP,
|
|
18674
|
-
|
|
18675
|
-
|
|
18675
|
+
dP,
|
|
18676
|
+
fP
|
|
18676
18677
|
],
|
|
18677
18678
|
style: { zIndex: 1202 },
|
|
18678
18679
|
id: "topbar-wrapper",
|
|
@@ -18681,10 +18682,11 @@ function gP({
|
|
|
18681
18682
|
"nav",
|
|
18682
18683
|
{
|
|
18683
18684
|
className: `navbar ${c}`,
|
|
18684
|
-
style: h ?
|
|
18685
|
+
style: h ? A : o,
|
|
18685
18686
|
children: /* @__PURE__ */ z.jsxs("div", { className: "navbar-container", children: [
|
|
18686
|
-
/* @__PURE__ */ z.jsx("div", { className: "logo-container", children: /* @__PURE__ */ z.jsx("img", { src:
|
|
18687
|
+
/* @__PURE__ */ z.jsx("div", { className: "logo-container", children: /* @__PURE__ */ z.jsx("img", { src: D, alt: "logo-header", style: { height: "40px" } }) }),
|
|
18687
18688
|
/* @__PURE__ */ z.jsxs("div", { className: "right-side-container", children: [
|
|
18689
|
+
S,
|
|
18688
18690
|
/* @__PURE__ */ z.jsx("span", { children: /* @__PURE__ */ z.jsxs(XR, { children: [
|
|
18689
18691
|
/* @__PURE__ */ z.jsx(
|
|
18690
18692
|
JR,
|
|
@@ -18719,7 +18721,7 @@ function gP({
|
|
|
18719
18721
|
primaryColor: h == null ? void 0 : h.headerTextColor,
|
|
18720
18722
|
avatarUrl: t == null ? void 0 : t.avatarUrl,
|
|
18721
18723
|
userName: t == null ? void 0 : t.firstName,
|
|
18722
|
-
setShowConfirmModal:
|
|
18724
|
+
setShowConfirmModal: W
|
|
18723
18725
|
}
|
|
18724
18726
|
),
|
|
18725
18727
|
/* @__PURE__ */ z.jsx(
|
|
@@ -18738,9 +18740,9 @@ function gP({
|
|
|
18738
18740
|
/* @__PURE__ */ z.jsx(
|
|
18739
18741
|
Yx,
|
|
18740
18742
|
{
|
|
18741
|
-
isOpen:
|
|
18742
|
-
onClose: () =>
|
|
18743
|
-
onConfirm:
|
|
18743
|
+
isOpen: $,
|
|
18744
|
+
onClose: () => W(!1),
|
|
18745
|
+
onConfirm: K
|
|
18744
18746
|
}
|
|
18745
18747
|
)
|
|
18746
18748
|
]
|
|
@@ -18833,7 +18835,8 @@ const vP = (e) => /* @__PURE__ */ z.jsx(aP, { children: /* @__PURE__ */ z.jsx(gP
|
|
|
18833
18835
|
classNames: "string",
|
|
18834
18836
|
style: "json",
|
|
18835
18837
|
customColors: "json",
|
|
18836
|
-
notiprops: "json"
|
|
18838
|
+
notiprops: "json",
|
|
18839
|
+
customElement: "string"
|
|
18837
18840
|
},
|
|
18838
18841
|
shadow: "open"
|
|
18839
18842
|
});
|