@docsvision/management-console 6.2.0-beta.10 → 6.2.0-beta.11
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/index.css +1 -1
- package/index.d.ts +12 -0
- package/index.js +19 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1751,6 +1751,7 @@ export declare interface IPageLayoutModelElement {
|
|
|
1751
1751
|
elements?: IPageModelElement[];
|
|
1752
1752
|
extendedLayoutId?: string;
|
|
1753
1753
|
readonly?: boolean;
|
|
1754
|
+
inProcess?: boolean;
|
|
1754
1755
|
parameters?: Record<string, string>;
|
|
1755
1756
|
}
|
|
1756
1757
|
|
|
@@ -1768,6 +1769,7 @@ declare interface IPageLayoutModelElement_2 {
|
|
|
1768
1769
|
elements?: IPageModelElement_2[];
|
|
1769
1770
|
extendedLayoutId?: string;
|
|
1770
1771
|
readonly?: boolean;
|
|
1772
|
+
inProcess?: boolean;
|
|
1771
1773
|
parameters?: Record<string, string>;
|
|
1772
1774
|
}
|
|
1773
1775
|
|
|
@@ -1875,6 +1877,14 @@ export declare interface IPopupNotificationProps extends Noty_2.Options {
|
|
|
1875
1877
|
buttonsProps?: IButtonsProps[];
|
|
1876
1878
|
}
|
|
1877
1879
|
|
|
1880
|
+
export declare interface IProcessOverlayProps {
|
|
1881
|
+
children: React_2.ReactNode;
|
|
1882
|
+
inProcess?: boolean;
|
|
1883
|
+
message?: string;
|
|
1884
|
+
spinnerSize?: number;
|
|
1885
|
+
className?: string;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1878
1888
|
declare interface IRealtimeCommunicationService {
|
|
1879
1889
|
on: (methodName: string, callback: (...args: unknown[]) => void) => void;
|
|
1880
1890
|
off: (methodName: string, callback: (...args: unknown[]) => void) => void;
|
|
@@ -2521,6 +2531,8 @@ declare enum PeriodType {
|
|
|
2521
2531
|
DateRange
|
|
2522
2532
|
}
|
|
2523
2533
|
|
|
2534
|
+
export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
|
|
2535
|
+
|
|
2524
2536
|
export declare function registerEditors(): void;
|
|
2525
2537
|
|
|
2526
2538
|
export declare function removeCssVariables(theme: Theme): void;
|
package/index.js
CHANGED
|
@@ -59056,7 +59056,7 @@ const WarningIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
|
59056
59056
|
}));
|
|
59057
59057
|
function DatabaseSettingsCard(props) {
|
|
59058
59058
|
const { title, label, isDefault, children, size = "sm", error } = props;
|
|
59059
|
-
return /* @__PURE__ */ jsx(Grid$1, { className: classNames("database-settings-card__wrapper", { "database-settings-card__wrapper_medium": size === "md" }), children: /* @__PURE__ */ jsxs(Paper$3, {
|
|
59059
|
+
return /* @__PURE__ */ jsx(Grid$1, { className: classNames("database-settings-card__wrapper", { "database-settings-card__wrapper_medium": size === "md" }), children: /* @__PURE__ */ jsxs(Paper$3, { children: [
|
|
59060
59060
|
/* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", justifyContent: "space-between", wrap: "nowrap", className: "database-settings-card__head", children: [
|
|
59061
59061
|
/* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", children: [
|
|
59062
59062
|
/* @__PURE__ */ jsx(StorageRounded, { color: "secondary", fontSize: "large" }),
|
|
@@ -76670,6 +76670,16 @@ function NumberComponent(props) {
|
|
|
76670
76670
|
errorMessage && /* @__PURE__ */ jsx(ErrorMessage, { message: errorMessage })
|
|
76671
76671
|
] });
|
|
76672
76672
|
}
|
|
76673
|
+
function ProcessOverlay(props) {
|
|
76674
|
+
const { children, inProcess, message, spinnerSize = 60, className } = props;
|
|
76675
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames("process-overlay", className), children: [
|
|
76676
|
+
/* @__PURE__ */ jsx("div", { className: classNames({ "process-overlay__content_blur": inProcess }), children }),
|
|
76677
|
+
inProcess && /* @__PURE__ */ jsxs("div", { className: "process-overlay__process", children: [
|
|
76678
|
+
/* @__PURE__ */ jsx(CircularProgress$3, { size: spinnerSize, thickness: 4, color: "primary" }),
|
|
76679
|
+
message && /* @__PURE__ */ jsx(Typography$3, { color: "primary", fontWeight: "bold", children: message })
|
|
76680
|
+
] })
|
|
76681
|
+
] });
|
|
76682
|
+
}
|
|
76673
76683
|
class EditorFactory {
|
|
76674
76684
|
constructor() {
|
|
76675
76685
|
this.editorMap = {};
|
|
@@ -86910,6 +86920,11 @@ var ILongOperationCompleteStatus = /* @__PURE__ */ ((ILongOperationCompleteStatu
|
|
|
86910
86920
|
ILongOperationCompleteStatus2[ILongOperationCompleteStatus2["Error"] = 1] = "Error";
|
|
86911
86921
|
return ILongOperationCompleteStatus2;
|
|
86912
86922
|
})(ILongOperationCompleteStatus || {});
|
|
86923
|
+
var ILongOperationScope = /* @__PURE__ */ ((ILongOperationScope2) => {
|
|
86924
|
+
ILongOperationScope2[ILongOperationScope2["Global"] = 0] = "Global";
|
|
86925
|
+
ILongOperationScope2[ILongOperationScope2["Local"] = 1] = "Local";
|
|
86926
|
+
return ILongOperationScope2;
|
|
86927
|
+
})(ILongOperationScope || {});
|
|
86913
86928
|
class SettingsPageLogic extends ComponentLogic {
|
|
86914
86929
|
constructor() {
|
|
86915
86930
|
super(...arguments);
|
|
@@ -86927,6 +86942,8 @@ class SettingsPageLogic extends ComponentLogic {
|
|
|
86927
86942
|
realtimeCommunication.on("ReceiveLongOperationCompleteNotification", (notification) => {
|
|
86928
86943
|
const { data, route } = routingService.getLastRouteResolvedParams() || {};
|
|
86929
86944
|
const isCurrentService = data?.serviceId === notification.serviceId;
|
|
86945
|
+
const isLocalScope = notification.scope === ILongOperationScope.Local;
|
|
86946
|
+
if (isLocalScope && !isCurrentService) return;
|
|
86930
86947
|
const buttonsProps = isCurrentService ? [{ text: resources.RefreshPage, onClick: () => location.reload(), dataTestId: "reload-button" }] : [];
|
|
86931
86948
|
const notyType = notification.status === ILongOperationCompleteStatus.Success ? "info" : "error";
|
|
86932
86949
|
const note = showNote({ type: notyType, timeout: 0, text: notification.message, buttonsProps });
|
|
@@ -124655,6 +124672,7 @@ export {
|
|
|
124655
124672
|
PageTabPanel,
|
|
124656
124673
|
PageTable,
|
|
124657
124674
|
PageTitle,
|
|
124675
|
+
ProcessOverlay,
|
|
124658
124676
|
ResourcesManagement,
|
|
124659
124677
|
RootElementService,
|
|
124660
124678
|
RouteContentRenderService,
|