ublo-lib 1.46.12 → 1.46.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"information.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/information.tsx"],"names":[],"mappings":"AAkBA,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAiB,EACjB,IAAgB,EAChB,cAAc,EACd,IAAc,EACd,SAAS,EACT,eAAe,GAChB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"information.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/information.tsx"],"names":[],"mappings":"AAkBA,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAiB,EACjB,IAAgB,EAChB,cAAc,EACd,IAAc,EACd,SAAS,EACT,eAAe,GAChB,EAAE,KAAK,2CAuKP"}
|
|
@@ -89,11 +89,13 @@ export default function Information({ source = "/popup", zone = "content", preve
|
|
|
89
89
|
}, [checkOverflow, content]);
|
|
90
90
|
Router.ready(() => {
|
|
91
91
|
Router.events.on("routeChangeStart", () => {
|
|
92
|
-
if (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
if (enabled) {
|
|
93
|
+
if (isPopin) {
|
|
94
|
+
minimize();
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
close();
|
|
98
|
+
}
|
|
97
99
|
}
|
|
98
100
|
});
|
|
99
101
|
});
|
|
@@ -107,5 +109,6 @@ export default function Information({ source = "/popup", zone = "content", preve
|
|
|
107
109
|
});
|
|
108
110
|
const buttonClasses = classNames(styles.informationButton, buttonClassName);
|
|
109
111
|
const messages = i18n[lang];
|
|
110
|
-
|
|
112
|
+
const showPopinBell = isPopin && minimized && content;
|
|
113
|
+
return (_jsxs(_Fragment, { children: [showPopinBell && (_jsx(Portal, { asChild: true, children: _jsx(Tooltip, { content: messages.showInformation, children: _jsx(Button, { className: buttonClasses, onClick: unminimize, "data-information-popup-button": "", children: _jsx(BellIcon, {}) }) }) })), _jsxs(Dialog, { className: classes, close: isPopin ? minimize : close, isOpened: isOpened, showAsModal: !isPopin, showCloseButton: !isPopin, disableBackdrop: isPopin, title: messages.showInformation, children: [isPopin && (_jsxs("div", { className: styles.controls, children: [maximized && (_jsx(Tooltip, { content: messages.minimize, children: _jsx(Button, { variant: "secondary", onClick: unmaximize, children: _jsx(ArrowDownIcon, {}) }) })), !maximized && hasOverflow && (_jsx(Tooltip, { content: messages.maximize, children: _jsx(Button, { variant: "secondary", onClick: maximize, children: _jsx(ArrowUpIcon, {}) }) })), _jsx(Tooltip, { content: messages.close, children: _jsx(Button, { onClick: minimize, children: _jsx(CrossIcon, {}) }) })] })), _jsx("div", { ref: ref, className: styles.inner, dangerouslySetInnerHTML: { __html: content }, "data-information-popup": "" })] })] }));
|
|
111
114
|
}
|