ui-layout-manager-dev 0.0.29-dev → 0.0.30-dev
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LayoutManager/Components/RootContainer/RootContainer.jsx +5 -1
- package/src/components/LayoutManager/Components/RootContainer/RootContainer.scss +34 -5
- package/src/components/LayoutManager/Controller/LayoutController.js +1 -2
package/package.json
CHANGED
|
@@ -153,7 +153,11 @@ export const RootContainer = () => {
|
|
|
153
153
|
onDragEnd={dragController.onDragEnd}
|
|
154
154
|
onDragCancel={dragController.onDragCancel}>
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
{showOverlay && <div className="loading-overlay" ref={loadingOverlayRef}>
|
|
157
|
+
<div className="loading-bar">
|
|
158
|
+
<div className="loading-bar-fill"></div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>}
|
|
157
161
|
<div className="root-container">
|
|
158
162
|
<div ref={rootRef} className="relative-container">
|
|
159
163
|
{childElements}
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
overflow: hidden;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.drag-overlay {
|
|
17
|
+
position: fixed;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
z-index: 9999;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
.loading-overlay {
|
|
17
23
|
position: absolute;
|
|
18
24
|
top: 0;
|
|
@@ -22,12 +28,35 @@
|
|
|
22
28
|
background-color: #1a1a1a;
|
|
23
29
|
display: flex;
|
|
24
30
|
justify-content: center;
|
|
25
|
-
align-items:
|
|
31
|
+
align-items: self-start;
|
|
26
32
|
z-index: 9999;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
.loading-bar {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 4px;
|
|
38
|
+
background: #1a1a1a;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
position: relative;
|
|
41
|
+
border-radius: 999px;
|
|
33
42
|
}
|
|
43
|
+
|
|
44
|
+
.loading-bar-fill {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: -40%;
|
|
48
|
+
width: 40%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: #4da3ff;
|
|
51
|
+
border-radius: 999px;
|
|
52
|
+
animation: loading-slide 1.2s infinite ease-in-out;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes loading-slide {
|
|
56
|
+
0% {
|
|
57
|
+
left: -40%;
|
|
58
|
+
}
|
|
59
|
+
100% {
|
|
60
|
+
left: 100%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -185,8 +185,7 @@ export class LayoutController {
|
|
|
185
185
|
case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:
|
|
186
186
|
transformations = event.data.data;
|
|
187
187
|
this.applyTransformations(transformations, true);
|
|
188
|
-
//
|
|
189
|
-
// is applied to avoid glitchy rendering.
|
|
188
|
+
// After initial layout is applied, we can hide the loading overlay.
|
|
190
189
|
this.containers["root"].current.hideOverlay();
|
|
191
190
|
break;
|
|
192
191
|
case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS:
|