@elliemae/pui-app-sdk 4.13.0 → 5.0.0-next.1
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,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var wait_message_exports = {};
|
|
20
30
|
__export(wait_message_exports, {
|
|
@@ -23,14 +33,25 @@ __export(wait_message_exports, {
|
|
|
23
33
|
module.exports = __toCommonJS(wait_message_exports);
|
|
24
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
35
|
var import_react = require("react");
|
|
26
|
-
var
|
|
36
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
37
|
+
var import_ds_backdrop = require("@elliemae/ds-backdrop");
|
|
38
|
+
var import_ds_circular_progress_indicator = require("@elliemae/ds-circular-progress-indicator");
|
|
27
39
|
var import_react2 = require("../../data/react.js");
|
|
28
40
|
var import_use_html_wait_message = require("./use-html-wait-message.js");
|
|
29
41
|
var import_user_wait_event = require("../../analytics/user-wait-event.js");
|
|
42
|
+
const StyledCircularIndicator = (0, import_styled_components.default)(import_ds_circular_progress_indicator.DSCircularIndeterminateIndicator)`
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 50%;
|
|
45
|
+
top: 50%;
|
|
46
|
+
transform: translate(-50%, -50%);
|
|
47
|
+
`;
|
|
30
48
|
const WaitMessage = (0, import_react.memo)(
|
|
31
49
|
({
|
|
32
|
-
size = "
|
|
33
|
-
|
|
50
|
+
size = "xl",
|
|
51
|
+
color = "light",
|
|
52
|
+
showText = true,
|
|
53
|
+
withTooltip = false,
|
|
54
|
+
tooltipStartPlacementPreference = "center",
|
|
34
55
|
...rest
|
|
35
56
|
}) => {
|
|
36
57
|
const isOpen = (0, import_react2.useAppSelector)((state) => state.waitMessage?.isOpen);
|
|
@@ -42,16 +63,21 @@ const WaitMessage = (0, import_react.memo)(
|
|
|
42
63
|
(0, import_user_wait_event.waitEndEvent)();
|
|
43
64
|
}, [isOpen]);
|
|
44
65
|
(0, import_use_html_wait_message.useHTMLWaitMessage)(isOpen !== null);
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_backdrop.DSBackdrop, {}),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
|
+
StyledCircularIndicator,
|
|
70
|
+
{
|
|
71
|
+
id: "em-loading",
|
|
72
|
+
size,
|
|
73
|
+
color,
|
|
74
|
+
showText,
|
|
75
|
+
withTooltip,
|
|
76
|
+
tooltipStartPlacementPreference,
|
|
77
|
+
...rest,
|
|
78
|
+
text: message
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }) : null;
|
|
56
82
|
}
|
|
57
83
|
);
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useEffect } from "react";
|
|
3
|
-
import
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { DSBackdrop } from "@elliemae/ds-backdrop";
|
|
5
|
+
import { DSCircularIndeterminateIndicator } from "@elliemae/ds-circular-progress-indicator";
|
|
4
6
|
import { useAppSelector } from "../../data/react.js";
|
|
5
7
|
import { useHTMLWaitMessage } from "./use-html-wait-message.js";
|
|
6
8
|
import {
|
|
7
9
|
waitStartEvent,
|
|
8
10
|
waitEndEvent
|
|
9
11
|
} from "../../analytics/user-wait-event.js";
|
|
12
|
+
const StyledCircularIndicator = styled(DSCircularIndeterminateIndicator)`
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 50%;
|
|
15
|
+
top: 50%;
|
|
16
|
+
transform: translate(-50%, -50%);
|
|
17
|
+
`;
|
|
10
18
|
const WaitMessage = memo(
|
|
11
19
|
({
|
|
12
|
-
size = "
|
|
13
|
-
|
|
20
|
+
size = "xl",
|
|
21
|
+
color = "light",
|
|
22
|
+
showText = true,
|
|
23
|
+
withTooltip = false,
|
|
24
|
+
tooltipStartPlacementPreference = "center",
|
|
14
25
|
...rest
|
|
15
26
|
}) => {
|
|
16
27
|
const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
|
|
@@ -22,17 +33,22 @@ const WaitMessage = memo(
|
|
|
22
33
|
waitEndEvent();
|
|
23
34
|
}, [isOpen]);
|
|
24
35
|
useHTMLWaitMessage(isOpen !== null);
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
return isOpen ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(DSBackdrop, {}),
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
StyledCircularIndicator,
|
|
40
|
+
{
|
|
41
|
+
id: "em-loading",
|
|
42
|
+
size,
|
|
43
|
+
color,
|
|
44
|
+
showText,
|
|
45
|
+
withTooltip,
|
|
46
|
+
tooltipStartPlacementPreference,
|
|
47
|
+
...rest,
|
|
48
|
+
text: message
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }) : null;
|
|
36
52
|
}
|
|
37
53
|
);
|
|
38
54
|
export {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { DSCircularIndeterminateIndicator } from '@elliemae/ds-circular-progress-indicator';
|
|
3
|
+
type CircularIndicatorProps = React.ComponentProps<typeof DSCircularIndeterminateIndicator>;
|
|
2
4
|
export interface WaitMessageProps {
|
|
3
|
-
size?:
|
|
4
|
-
|
|
5
|
+
size?: CircularIndicatorProps['size'];
|
|
6
|
+
color?: CircularIndicatorProps['color'];
|
|
7
|
+
showText?: CircularIndicatorProps['showText'];
|
|
8
|
+
withTooltip?: CircularIndicatorProps['withTooltip'];
|
|
9
|
+
tooltipStartPlacementPreference?: CircularIndicatorProps['tooltipStartPlacementPreference'];
|
|
5
10
|
[x: string]: any;
|
|
6
11
|
}
|
|
7
12
|
export declare const WaitMessage: import("react").NamedExoticComponent<WaitMessageProps>;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-next.1",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -123,7 +123,6 @@
|
|
|
123
123
|
"@elliemae/ds-form": "^3.13.2",
|
|
124
124
|
"@elliemae/ds-form-layout-blocks": "^3.13.2",
|
|
125
125
|
"@elliemae/ds-grid": "^3.13.2",
|
|
126
|
-
"@elliemae/ds-loading-indicator": "^3.13.2",
|
|
127
126
|
"@elliemae/ds-modal": "^3.13.2",
|
|
128
127
|
"@elliemae/ds-popperjs": "^3.13.2",
|
|
129
128
|
"@elliemae/ds-toast": "^3.13.2",
|
|
@@ -148,7 +147,6 @@
|
|
|
148
147
|
"@elliemae/ds-form": "~3.13.2",
|
|
149
148
|
"@elliemae/ds-form-layout-blocks": "~3.13.2",
|
|
150
149
|
"@elliemae/ds-grid": "~3.13.2",
|
|
151
|
-
"@elliemae/ds-loading-indicator": "~3.13.2",
|
|
152
150
|
"@elliemae/ds-modal": "~3.13.2",
|
|
153
151
|
"@elliemae/ds-popperjs": "~3.13.2",
|
|
154
152
|
"@elliemae/ds-toast": "~3.13.2",
|