@equinor/echo-framework 0.14.0-test-0 → 0.14.0
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/README.md +32 -1
- package/index.css +77 -24
- package/index.js +10 -10
- package/package.json +3 -3
- package/src/index.d.ts +2 -0
- package/src/lib/components/fullScreenButtons/FullScreenButton.d.ts +7 -0
- package/src/lib/components/fullScreenButtons/FullScreenChip.d.ts +8 -0
- package/src/lib/components/fullScreenButtons/FullScreenModeButtons.d.ts +7 -0
- package/src/lib/components/fullScreenButtons/index.d.ts +3 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/coreApplication/EchoBarComponent.d.ts +1 -0
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/useIsFullScreenModeEnabled.d.ts +1 -0
- package/src/lib/services/eventCallbacks/plantChanged.d.ts +1 -1
- package/src/lib/types/eventTypes/fullScreenModeEvent.d.ts +3 -0
- package/src/lib/types/eventTypes/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
# EchoFramework
|
|
2
2
|
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
3
|
+
This publishable library was generated with [Nx](https://nx.dev).
|
|
4
4
|
|
|
5
5
|
Framework provides all the necessary components to put the echo web client together. It also provides modules and components for EchoWeb, mainly utilizing EchoCore.
|
|
6
6
|
|
|
7
7
|
Check the [docs for details](doc/echo-framework.md).
|
|
8
8
|
|
|
9
|
+
## How to develop EchoFramework
|
|
10
|
+
|
|
11
|
+
How to develop EchoFramework in the new, monorepo structure?
|
|
12
|
+
|
|
13
|
+
- Use the dev branch as base branch for your features
|
|
14
|
+
- Development work can be done now together with echopediaWeb, since they're in the same repo!
|
|
15
|
+
- Open PR, ask for review as before
|
|
16
|
+
- Merge feature branch into dev once PR is approved
|
|
17
|
+
- Do not run npm install in `libs/echo-framework`
|
|
18
|
+
- Do that in the root folder: NX uses every dependency from the root for all libraries
|
|
19
|
+
- Do not add anything to `package.json` found in `echo-framework` library
|
|
20
|
+
- For `echo-framework` NX generates the `package.json` on build partly based on the local `package.json`
|
|
21
|
+
- All dependencies used during development will be taken from the root folder, based on the `package.json` found there
|
|
22
|
+
- Note: some initial peerDependencies have been added to the base `echo-framework` package.json
|
|
23
|
+
- That's because instead of a fixed version we would like to define a version range.
|
|
24
|
+
- In case of react: `"react": ">= 17.0.2"`
|
|
25
|
+
- When `echo-framework`'s package.json is generated, these pre-defined versions will be used
|
|
26
|
+
|
|
27
|
+
## How to make new release of echoFramework?
|
|
28
|
+
|
|
29
|
+
- Bump version in the package.json for `echoFramework` in libs/echo-framework in your PR
|
|
30
|
+
- Draft new release via the gitHub UI
|
|
31
|
+
- Use the label `echo-framework@X.Y.Z` (where X, Y, Z stands for the latest version number) for the release, so the dedicated github action can publish it for you
|
|
32
|
+
- Once the release is published, a github action will pick it up and publish `echoFramework` for you to npm
|
|
33
|
+
- It knows what to publish based on the release's `echo-framework` label
|
|
34
|
+
|
|
9
35
|
## EchoFramework UI components and tools
|
|
10
36
|
|
|
11
37
|
Framework houses multiple tools for UI bars, panels and menu functionality that can be used in Web and modules. See more in the [related docs](./doc/echo-framework-ui.md).
|
|
@@ -22,3 +48,8 @@ Run `npx nx run echo-framework:build` to create a build
|
|
|
22
48
|
|
|
23
49
|
Last time framework was synced, new code moved from the original repo:
|
|
24
50
|
7th of August, 2023
|
|
51
|
+
|
|
52
|
+
## Old repository of echoFramework
|
|
53
|
+
|
|
54
|
+
Keeping it for historical reasons.
|
|
55
|
+
https://github.com/equinor/EchoFramework
|
package/index.css
CHANGED
|
@@ -369,28 +369,48 @@ input:after {
|
|
|
369
369
|
height: 24px;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
.layout-module_echoContentContainer__aiKkp
|
|
373
|
-
|
|
372
|
+
.layout-module_echoContentContainer__aiKkp,
|
|
373
|
+
.layout-module_echoContentContainerFullScreenMode__4ZF8W {
|
|
374
|
+
height: calc(100% - 64px);
|
|
374
375
|
width: 100%;
|
|
375
376
|
padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px)
|
|
376
377
|
env(safe-area-inset-left, 20px);
|
|
377
378
|
}
|
|
378
379
|
|
|
380
|
+
.layout-module_echoContentContainerFullScreenMode__4ZF8W {
|
|
381
|
+
height: 100% !important;
|
|
382
|
+
padding: 0 !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.layout-module_deviceOrientation__b-F7k,
|
|
386
|
+
.layout-module_deviceOrientationFullScreenMode__D7e4V {
|
|
387
|
+
display: flex;
|
|
388
|
+
flex-direction: column;
|
|
389
|
+
width: 100%;
|
|
390
|
+
height: 100% !important;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.layout-module_deviceOrientationFullScreenMode__D7e4V {
|
|
394
|
+
height: 100% !important;
|
|
395
|
+
padding: 0 !important;
|
|
396
|
+
}
|
|
397
|
+
|
|
379
398
|
/* Mobile and small screens */
|
|
380
399
|
@media screen and (max-width: 927px) and (orientation: landscape) {
|
|
381
400
|
.layout-module_echoContentContainer__aiKkp {
|
|
382
401
|
display: flex;
|
|
383
402
|
flex-direction: row;
|
|
403
|
+
height: 100%;
|
|
384
404
|
}
|
|
385
|
-
|
|
386
405
|
.layout-module_deviceOrientation__b-F7k {
|
|
387
|
-
width: calc(100% - 48px)
|
|
406
|
+
width: calc(100% - 48px);
|
|
407
|
+
height: 100% !important;
|
|
388
408
|
}
|
|
389
409
|
}
|
|
390
410
|
|
|
391
411
|
@media screen and (max-width: 767px) and (orientation: portrait) {
|
|
392
412
|
.layout-module_deviceOrientation__b-F7k {
|
|
393
|
-
height: calc(100% - 48px)
|
|
413
|
+
height: calc(100% - 48px);
|
|
394
414
|
}
|
|
395
415
|
}
|
|
396
416
|
|
|
@@ -398,7 +418,7 @@ input:after {
|
|
|
398
418
|
@media screen and (min-width: 928px) and (orientation: landscape) {
|
|
399
419
|
.layout-module_echoContentContainer__aiKkp {
|
|
400
420
|
display: flex;
|
|
401
|
-
height:
|
|
421
|
+
height: 100%;
|
|
402
422
|
}
|
|
403
423
|
}
|
|
404
424
|
|
|
@@ -452,11 +472,6 @@ input:after {
|
|
|
452
472
|
max-height: 2.5rem;
|
|
453
473
|
}
|
|
454
474
|
|
|
455
|
-
.layout-module_fullBodyHeight__XSlEG {
|
|
456
|
-
min-height: calc(100vh - 75px) !important;
|
|
457
|
-
padding-bottom: 16px;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
475
|
.layout-module_navbarBrand__dGCu2 {
|
|
461
476
|
color: red;
|
|
462
477
|
}
|
|
@@ -669,14 +684,6 @@ input:after {
|
|
|
669
684
|
text-align: right;
|
|
670
685
|
}
|
|
671
686
|
|
|
672
|
-
.echoLogo-module_logoSubTitle__JLFcN {
|
|
673
|
-
display: block;
|
|
674
|
-
line-height: 0px;
|
|
675
|
-
font-size: 20px;
|
|
676
|
-
padding-bottom: 5px;
|
|
677
|
-
text-transform: none;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
687
|
.notificationCardWithLogo-module_errorContainer__5mVew {
|
|
681
688
|
display: flex;
|
|
682
689
|
justify-content: center;
|
|
@@ -967,6 +974,24 @@ p.footer-module_footerDisclaimer__AkC9l {
|
|
|
967
974
|
}
|
|
968
975
|
}
|
|
969
976
|
|
|
977
|
+
.fullScreenChip-module_fullScreenChip__464W- {
|
|
978
|
+
background: rgba(0, 0, 0, 0.8) !important;
|
|
979
|
+
color: var(--white) !important;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.fullScreenChip-module_fullScreenChip__464W-:hover {
|
|
983
|
+
background: rgba(0, 0, 0, 0.9) !important;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.fullScreenChip-module_fullScreenChip__464W- svg {
|
|
987
|
+
fill: var(--white) !important;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.fullScreenChip-module_fullScreenChip__464W- svg:hover {
|
|
991
|
+
fill: var(--white) !important;
|
|
992
|
+
background: var(--black) !important;
|
|
993
|
+
}
|
|
994
|
+
|
|
970
995
|
.appLoadingIndicator-module_loadingContainer__2grwV {
|
|
971
996
|
display: flex;
|
|
972
997
|
flex-direction: column;
|
|
@@ -1215,20 +1240,48 @@ p.footer-module_footerDisclaimer__AkC9l {
|
|
|
1215
1240
|
flex-direction: column;
|
|
1216
1241
|
}
|
|
1217
1242
|
|
|
1218
|
-
|
|
1219
|
-
|
|
1243
|
+
@media screen and (max-width: 927px) and (orientation: landscape) {
|
|
1244
|
+
.searchItemDetailsContainer-module_searchItemDetailsContainer__AcyDx {
|
|
1245
|
+
height: 100%; /* no legend */
|
|
1246
|
+
}
|
|
1220
1247
|
}
|
|
1221
1248
|
|
|
1222
|
-
|
|
1223
|
-
|
|
1249
|
+
@media screen and (max-width: 767px) and (orientation: portrait) {
|
|
1250
|
+
.searchItemDetailsContainer-module_searchItemDetailsContainer__AcyDx {
|
|
1251
|
+
height: 100%; /* no legend */
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.searchItemDetailsContainer-module_containerWithActiveLegend__F4Rea {
|
|
1256
|
+
height: calc(100% - 60px); /* extracting legend */
|
|
1224
1257
|
}
|
|
1225
1258
|
|
|
1226
1259
|
@media screen and (max-width: 927px) and (orientation: landscape) {
|
|
1227
1260
|
.searchItemDetailsContainer-module_containerWithActiveLegend__F4Rea {
|
|
1228
|
-
height: calc(
|
|
1261
|
+
height: calc(100% - 45px) !important; /* extracting legend */
|
|
1229
1262
|
}
|
|
1230
1263
|
}
|
|
1231
1264
|
|
|
1265
|
+
@media screen and (max-width: 767px) and (orientation: portrait) {
|
|
1266
|
+
.searchItemDetailsContainer-module_containerWithActiveLegend__F4Rea {
|
|
1267
|
+
height: calc(100% - 52px) !important; /* extracting legend */
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/* Used for the PWA
|
|
1272
|
+
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/display-mode */
|
|
1273
|
+
@media (display-mode: standalone) {
|
|
1274
|
+
@media screen and (max-width: 767px) and (orientation: portrait) {
|
|
1275
|
+
.searchItemDetailsContainer-module_containerWithActiveLegend__F4Rea {
|
|
1276
|
+
height: calc(100% - 72px) !important; /* extracting extra 20px safe-space */
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.searchItemDetailsContainer-module_closeButton__m5C9A {
|
|
1282
|
+
margin-right: var(--medium);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1232
1285
|
.corePanelLeft-module_wrapper__7rR84 {
|
|
1233
1286
|
position: fixed;
|
|
1234
1287
|
z-index: 2;
|