@opengeoweb/theme 4.3.0 → 4.5.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/index.d.ts +1 -0
- package/index.esm.js +227 -66
- package/index.umd.js +240 -71
- package/lib/components/Icons/Icons.d.ts +8 -1
- package/lib/components/Paths/Paths.d.ts +1 -0
- package/lib/components/Paths/index.d.ts +1 -0
- package/lib/components/Theme/ThemeContext.d.ts +2 -0
- package/lib/components/Theme/types.d.ts +11 -4
- package/lib/stories/Accordion.stories.d.ts +3 -0
- package/lib/stories/index.stories.d.ts +1 -0
- package/lib/stories/snapshots/Accordion.stories.d.ts +7 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.esm.js
CHANGED
|
@@ -28,6 +28,24 @@ function __rest(s, e) {
|
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* *
|
|
32
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
33
|
+
* you may not use this file except in compliance with the License.
|
|
34
|
+
* You may obtain a copy of the License at
|
|
35
|
+
*
|
|
36
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
37
|
+
*
|
|
38
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
39
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
40
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
41
|
+
* See the License for the specific language governing permissions and
|
|
42
|
+
* limitations under the License.
|
|
43
|
+
*
|
|
44
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
45
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
46
|
+
* */
|
|
47
|
+
var dragHandlePath = 'M9.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z';
|
|
48
|
+
|
|
31
49
|
/* *
|
|
32
50
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
33
51
|
* you may not use this file except in compliance with the License.
|
|
@@ -297,7 +315,7 @@ var Cancel = function Cancel(props) {
|
|
|
297
315
|
};
|
|
298
316
|
var DragHandle = function DragHandle(props) {
|
|
299
317
|
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
300
|
-
d:
|
|
318
|
+
d: dragHandlePath
|
|
301
319
|
}));
|
|
302
320
|
};
|
|
303
321
|
var AutoUpdateActive = function AutoUpdateActive(props) {
|
|
@@ -347,6 +365,18 @@ var Play = function Play(props) {
|
|
|
347
365
|
d: "M15.18 12.688l-3.909 2.81c-.161.115-.325.175-.486.175-.303 0-.629-.234-.629-.748v-5.85c0-.514.325-.747.63-.747.16 0 .324.059.485.174l3.91 2.81c.24.172.378.423.378.688 0 .265-.137.517-.379.688M12 4c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8"
|
|
348
366
|
}));
|
|
349
367
|
};
|
|
368
|
+
var StepBackward = function StepBackward(props) {
|
|
369
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
370
|
+
d: "M15.5794386,6.68811254 L8.12440829,1.33228882 C7.81918795,1.11107407 7.50556704,1 7.19941329,1 C6.62070805,1 6,1.44616308 6,2.42342823 L6,13.5775052 C6,14.5547703 6.62164144,15 7.19941329,15 C7.50556704,15 7.81918795,14.8889259 8.12720848,14.6686446 L15.5785052,9.31282085 C16.0377358,8.98426562 16.2990866,8.50636709 16.2990866,7.9995333 C16.2990866,7.4945663 16.0368025,7.01760117 15.5794386,6.68811254 M2,0 C3.05,0 3.9177686,0.820041322 3.99448723,1.85130541 L4,2 L4,14 C4,15.1 3.1,16 2,16 C0.9,16 0,15.1 0,14 L0,2 C0,0.9 0.9,0 2,0 Z",
|
|
371
|
+
transform: "translate(4.000000, 4.000000) translate(8.149543, 8.000000) scale(-1, 1) translate(-8.149543, -8.000000) "
|
|
372
|
+
}));
|
|
373
|
+
};
|
|
374
|
+
var StepForward = function StepForward(props) {
|
|
375
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
376
|
+
d: "M15.5794386,6.68811254 L8.12440829,1.33228882 C7.81918795,1.11107407 7.50556704,1 7.19941329,1 C6.62070805,1 6,1.44616308 6,2.42342823 L6,13.5775052 C6,14.5547703 6.62164144,15 7.19941329,15 C7.50556704,15 7.81918795,14.8889259 8.12720848,14.6686446 L15.5785052,9.31282085 C16.0377358,8.98426562 16.2990866,8.50636709 16.2990866,7.9995333 C16.2990866,7.4945663 16.0368025,7.01760117 15.5794386,6.68811254 M2,0 C3.05,0 3.9177686,0.820041322 3.99448723,1.85130541 L4,2 L4,14 C4,15.1 3.1,16 2,16 C0.9,16 0,15.1 0,14 L0,2 C0,0.9 0.9,0 2,0 Z",
|
|
377
|
+
transform: "translate(4.000000, 4.000000)"
|
|
378
|
+
}));
|
|
379
|
+
};
|
|
350
380
|
var Info = function Info(props) {
|
|
351
381
|
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
352
382
|
d: "M12.0004012,4 C16.4182338,4 20,7.58096384 20,11.9995988 C20,16.4182338 16.4182338,20 12.0004012,20 C7.58176621,20 4,16.4182338 4,11.9995988 C4,7.58096384 7.58176621,4 12.0004012,4 Z M13.0518404,10 L10,10 L10,11.6134693 L10.9489304,11.6134693 L10.9489304,15.3873607 L10,15.3873607 L10,17 L14,17 L14,15.3873607 L13.0518404,15.3873607 L13.0518404,10 Z M11.9907922,6 C11.1541947,6 10.5,6.65419468 10.5,7.49079217 C10.5,8.32738965 11.1541947,9 11.9907922,9 C12.8273897,9 13.5,8.32738965 13.5,7.49079217 C13.5,6.65419468 12.8273897,6 11.9907922,6 Z"
|
|
@@ -439,10 +469,11 @@ var Flag = function Flag(props) {
|
|
|
439
469
|
var Resize = function Resize(_a) {
|
|
440
470
|
var _a$isRightAligned = _a.isRightAligned,
|
|
441
471
|
isRightAligned = _a$isRightAligned === void 0 ? false : _a$isRightAligned,
|
|
442
|
-
|
|
472
|
+
sx = _a.sx,
|
|
473
|
+
props = __rest(_a, ["isRightAligned", "sx"]);
|
|
443
474
|
|
|
444
475
|
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({
|
|
445
|
-
sx: Object.assign(Object.assign({
|
|
476
|
+
sx: Object.assign(Object.assign(Object.assign({
|
|
446
477
|
width: 20,
|
|
447
478
|
height: 20,
|
|
448
479
|
top: -10,
|
|
@@ -454,7 +485,7 @@ var Resize = function Resize(_a) {
|
|
|
454
485
|
left: -10
|
|
455
486
|
}), {
|
|
456
487
|
zIndex: 1
|
|
457
|
-
}),
|
|
488
|
+
}), sx),
|
|
458
489
|
"data-testid": "resizeHandle"
|
|
459
490
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
460
491
|
d: "M19.687 18.037v1h-6v-1h6zm3.5-3.5v1h-13v-1h13z",
|
|
@@ -582,6 +613,55 @@ var Picture = function Picture(props) {
|
|
|
582
613
|
transform: "translate(1 2)"
|
|
583
614
|
}));
|
|
584
615
|
};
|
|
616
|
+
var CollapseWindow = function CollapseWindow(props) {
|
|
617
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
618
|
+
d: "M5,17 C4.43301962,17 4,17.4597824 4,18.0268006 C4,18.5938188 4.43301962,19 5,19 L19,19 C19.5669804,19 20,18.5938188 20,18.0268006 C20,17.4597824 19.5669804,17 19,17 L5,17 Z"
|
|
619
|
+
}));
|
|
620
|
+
};
|
|
621
|
+
var ExpandWindow = function ExpandWindow(props) {
|
|
622
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
623
|
+
d: "M18,4.5 C18.81657,4.52323671 19.4399034,4.74990338 19.87,5.18 C20.3000966,5.61009662 20.5100966,6.21676329 20.5,7 L20.5,17 C20.4955176,17.7444824 20.2855176,18.3244824 19.87,18.74 C19.4544824,19.1555176 18.8311491,19.4088509 18,19.5 L6,19.5 C5.1805214,19.4148333 4.56096049,19.1624284 4.1413173,18.7427852 C3.7216741,18.323142 3.50790167,17.7422136 3.5,17 L3.5,7 C3.52565636,6.18855517 3.73942879,5.5818885 4.1413173,5.18 C4.5432058,4.7781115 5.1627667,4.55144483 6,4.5 L18,4.5 Z M17.6875,6.75 L6.3125,6.75 C5.85182844,6.75 5.5,7.20978239 5.5,7.77680061 C5.5,8.34381884 5.85182844,8.75 6.3125,8.75 L17.6875,8.75 C18.1481716,8.75 18.5,8.34381884 18.5,7.77680061 C18.5,7.20978239 18.1481716,6.75 17.6875,6.75 Z"
|
|
624
|
+
}));
|
|
625
|
+
};
|
|
626
|
+
var CollapseLarge = function CollapseLarge(props) {
|
|
627
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
|
|
628
|
+
id: "Icons-/-Collapse-L",
|
|
629
|
+
stroke: "none",
|
|
630
|
+
strokeWidth: "1",
|
|
631
|
+
fill: "none",
|
|
632
|
+
fillRule: "evenodd"
|
|
633
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
634
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M11.51,8.14 L11.51,13.93 L14.4857761,13.93 L14.4857761,15.2471595 L9.79,15.2471595 L9.79,8.14 L11.51,8.14 Z",
|
|
635
|
+
id: "Icons-/-expand-L",
|
|
636
|
+
fill: "currentColor"
|
|
637
|
+
})));
|
|
638
|
+
};
|
|
639
|
+
var CollapseMedium = function CollapseMedium(props) {
|
|
640
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
|
|
641
|
+
id: "Icons-/-Collapse-M",
|
|
642
|
+
stroke: "none",
|
|
643
|
+
strokeWidth: "1",
|
|
644
|
+
fill: "none",
|
|
645
|
+
fillRule: "evenodd"
|
|
646
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
647
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M10.3720217,8.13793154 L11.9560108,13.0709727 L13.54,8.13793154 L15.79,8.13793154 L15.79,15.25 L14.0828502,15.25 L14.0828502,13.5960917 L14.24,10.1828615 L12.52,15.25 L11.3929679,15.25 L9.66668436,10.1828615 L9.83,13.5960917 L9.83,15.25 L8.12,15.25 L8.12,8.13793154 L10.3720217,8.13793154 Z",
|
|
648
|
+
id: "Icons-/-expand-M",
|
|
649
|
+
fill: "currentColor"
|
|
650
|
+
})));
|
|
651
|
+
};
|
|
652
|
+
var CollapseSmall = function CollapseSmall(props) {
|
|
653
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
|
|
654
|
+
id: "Icons-/-Collapse-S",
|
|
655
|
+
stroke: "none",
|
|
656
|
+
strokeWidth: "1",
|
|
657
|
+
fill: "none",
|
|
658
|
+
fillRule: "evenodd"
|
|
659
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
660
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M12,8.04223293 C12.3816424,8.04223293 12.7614621,8.07548514 13.1091818,8.18 C13.5650277,8.31701461 13.9657061,8.56252016 14.2430015,8.87556815 C14.5528447,9.22536046 14.7487564,9.63866568 14.7487564,10.2519529 L13.0420578,10.2519529 C13.0420578,10.1288369 13.0272095,9.87711169 12.8626035,9.66926494 C12.7706891,9.55320533 12.6320802,9.43866588 12.4232884,9.38 C12.3058648,9.34700656 12.1662431,9.34 12.0002452,9.34 C11.7669952,9.34 11.5569756,9.40134185 11.3953298,9.49974489 C11.191832,9.62362564 11.065,9.80624313 11.065,9.99915266 C11.065,10.4659624 11.5303207,10.7054039 12.0069825,10.88 C12.251836,10.9696872 12.4996821,11.0509766 12.6889856,11.1190164 C13.2468104,11.3195109 14.7487564,11.8079437 14.7487564,13.3345338 C14.7487564,14.1523847 14.3639594,14.7065019 13.71,15.0235466 C13.2549114,15.2441772 12.7956716,15.35 12,15.35 C11.5837341,15.35 11.0482218,15.2531638 10.57,15.0437157 C10.1291519,14.8506364 9.73916298,14.5618589 9.48671724,14.1650248 C9.25557241,13.8016749 9.14333333,13.3931427 9.15,12.939428 L10.8662463,12.939428 C10.8586095,13.2482201 10.923194,13.4935781 11.06,13.6755022 C11.265209,13.9483883 11.6785712,14.059404 12.0002452,14.059404 C12.416347,14.059404 13.0420578,13.9897611 13.0420578,13.3345338 C13.0420578,13.0169697 12.9081037,12.8095581 12.4695878,12.5923469 C12.3796921,12.5478187 12.2231629,12.4829201 12,12.3976512 C11.2094155,12.128282 10.6637991,11.8940163 10.3631508,11.6948541 C10.1074343,11.5254567 9.88191516,11.3372466 9.73293087,11.1353958 C9.51970344,10.8465054 9.36,10.5472019 9.36,9.99915266 C9.36,9.53454971 9.57462649,9.02233509 10.0735216,8.63036466 C10.4735262,8.31609021 11.2198472,8.04223293 12,8.04223293 Z",
|
|
661
|
+
id: "Icons-/-expand-S",
|
|
662
|
+
fill: "currentColor"
|
|
663
|
+
})));
|
|
664
|
+
};
|
|
585
665
|
|
|
586
666
|
/* *
|
|
587
667
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -638,6 +718,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
638
718
|
Now: Now,
|
|
639
719
|
Pause: Pause,
|
|
640
720
|
Play: Play,
|
|
721
|
+
StepBackward: StepBackward,
|
|
722
|
+
StepForward: StepForward,
|
|
641
723
|
Info: Info,
|
|
642
724
|
TextIcon: TextIcon,
|
|
643
725
|
FastForward: FastForward,
|
|
@@ -674,7 +756,12 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
674
756
|
DimensionsTime: DimensionsTime,
|
|
675
757
|
DimensionsRefTime: DimensionsRefTime,
|
|
676
758
|
DimensionsOther: DimensionsOther,
|
|
677
|
-
Picture: Picture
|
|
759
|
+
Picture: Picture,
|
|
760
|
+
CollapseWindow: CollapseWindow,
|
|
761
|
+
ExpandWindow: ExpandWindow,
|
|
762
|
+
CollapseLarge: CollapseLarge,
|
|
763
|
+
CollapseMedium: CollapseMedium,
|
|
764
|
+
CollapseSmall: CollapseSmall
|
|
678
765
|
});
|
|
679
766
|
|
|
680
767
|
function _defineProperty(obj, key, value) {
|
|
@@ -764,6 +851,13 @@ function _nonIterableRest() {
|
|
|
764
851
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
765
852
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
766
853
|
* */
|
|
854
|
+
var ThemeTypes;
|
|
855
|
+
|
|
856
|
+
(function (ThemeTypes) {
|
|
857
|
+
ThemeTypes["DARK_THEME"] = "darkTheme";
|
|
858
|
+
ThemeTypes["LIGHT_THEME"] = "lightTheme";
|
|
859
|
+
})(ThemeTypes || (ThemeTypes = {}));
|
|
860
|
+
|
|
767
861
|
var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
|
|
768
862
|
|
|
769
863
|
var defaultButtonStyle = function defaultButtonStyle(button) {
|
|
@@ -981,8 +1075,8 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
981
1075
|
styleOverrides: {
|
|
982
1076
|
root: {
|
|
983
1077
|
color: geowebColors.typographyAndIcons.iconLinkActive,
|
|
984
|
-
'&.Mui-disabled': {
|
|
985
|
-
color:
|
|
1078
|
+
'&.MuiCheckbox-root.Mui-disabled': {
|
|
1079
|
+
color: geowebColors.typographyAndIcons.iconLinkDisabled
|
|
986
1080
|
},
|
|
987
1081
|
'&.Mui-checked': {
|
|
988
1082
|
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
@@ -1340,6 +1434,40 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
1340
1434
|
fontSize: 16
|
|
1341
1435
|
})
|
|
1342
1436
|
}
|
|
1437
|
+
},
|
|
1438
|
+
MuiAccordion: {
|
|
1439
|
+
styleOverrides: {
|
|
1440
|
+
root: {
|
|
1441
|
+
backgroundColor: geowebColors.cards.cardContainer,
|
|
1442
|
+
borderRadius: '3px',
|
|
1443
|
+
border: 'solid 1px',
|
|
1444
|
+
borderColor: geowebColors.cards.cardContainerBorder,
|
|
1445
|
+
color: geowebColors.buttons.flat["default"].color,
|
|
1446
|
+
padding: '0px',
|
|
1447
|
+
margin: '0px 12px 4px 12px',
|
|
1448
|
+
fontSize: '12px',
|
|
1449
|
+
'&:before': {
|
|
1450
|
+
display: 'none'
|
|
1451
|
+
},
|
|
1452
|
+
'& .MuiAccordionSummary-root.Mui-expanded': {
|
|
1453
|
+
borderBottom: 'solid 1px',
|
|
1454
|
+
borderColor: geowebColors.cards.cardContainerBorder
|
|
1455
|
+
},
|
|
1456
|
+
'& .MuiAccordionSummary-content': {
|
|
1457
|
+
margin: '2px',
|
|
1458
|
+
padding: '4px 4px 4px 10px'
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
MuiAccordionSummary: {
|
|
1464
|
+
styleOverrides: {
|
|
1465
|
+
root: {
|
|
1466
|
+
minHeight: '32px',
|
|
1467
|
+
padding: '0px',
|
|
1468
|
+
paddingRight: '5px'
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1343
1471
|
}
|
|
1344
1472
|
}
|
|
1345
1473
|
});
|
|
@@ -1631,24 +1759,8 @@ var colors$1 = {
|
|
|
1631
1759
|
fill: '#67F0FF',
|
|
1632
1760
|
opacity: 0.75
|
|
1633
1761
|
},
|
|
1634
|
-
playerRailObservation: {
|
|
1635
|
-
fill: '#0876B6',
|
|
1636
|
-
opacity: 100
|
|
1637
|
-
},
|
|
1638
|
-
playerRailSelection: {
|
|
1639
|
-
fill: '#C6D111',
|
|
1640
|
-
opacity: 0.5
|
|
1641
|
-
},
|
|
1642
|
-
playerRailForecastData: {
|
|
1643
|
-
fill: '#FD64FF',
|
|
1644
|
-
opacity: 0.6
|
|
1645
|
-
},
|
|
1646
|
-
playerRailForecastNoData: {
|
|
1647
|
-
fill: '#051039',
|
|
1648
|
-
opacity: 0.67
|
|
1649
|
-
},
|
|
1650
1762
|
playerTimeMarkers: {
|
|
1651
|
-
fill: '#
|
|
1763
|
+
fill: '#051039'
|
|
1652
1764
|
},
|
|
1653
1765
|
playerTimeText: {
|
|
1654
1766
|
color: '#FFFFFF',
|
|
@@ -1661,15 +1773,15 @@ var colors$1 = {
|
|
|
1661
1773
|
},
|
|
1662
1774
|
timelineText: {
|
|
1663
1775
|
fontSize: 14,
|
|
1664
|
-
color: '#
|
|
1776
|
+
color: '#FFFFFF',
|
|
1665
1777
|
fontFamily: 'Roboto'
|
|
1666
1778
|
},
|
|
1667
1779
|
timelineTimeScale: {
|
|
1668
1780
|
fill: '#979797'
|
|
1669
1781
|
},
|
|
1670
1782
|
timelineNightTime: {
|
|
1671
|
-
fill: '#
|
|
1672
|
-
opacity: 0.
|
|
1783
|
+
fill: '#051038',
|
|
1784
|
+
opacity: 0.67
|
|
1673
1785
|
},
|
|
1674
1786
|
timelineTimelineSurface: {
|
|
1675
1787
|
fill: '#FFFFFF'
|
|
@@ -1679,8 +1791,8 @@ var colors$1 = {
|
|
|
1679
1791
|
opacity: 0.5
|
|
1680
1792
|
},
|
|
1681
1793
|
timelineSelectionBackground: {
|
|
1682
|
-
fill: '#
|
|
1683
|
-
opacity: 0.
|
|
1794
|
+
fill: '#FFFFFF',
|
|
1795
|
+
opacity: 0.32
|
|
1684
1796
|
},
|
|
1685
1797
|
// time scale
|
|
1686
1798
|
timeScalePointer: {
|
|
@@ -1698,6 +1810,16 @@ var colors$1 = {
|
|
|
1698
1810
|
},
|
|
1699
1811
|
timeScaleShadowButtonScale: {
|
|
1700
1812
|
filter: 'drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.24)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.40))'
|
|
1813
|
+
},
|
|
1814
|
+
ledgendObservedBackground: {
|
|
1815
|
+
fill: '#00649F'
|
|
1816
|
+
},
|
|
1817
|
+
legendForecastBackground: {
|
|
1818
|
+
fill: '#9900B1'
|
|
1819
|
+
},
|
|
1820
|
+
legendNoDataBackground: {
|
|
1821
|
+
fill: '#575F7A',
|
|
1822
|
+
opacity: '0.95'
|
|
1701
1823
|
}
|
|
1702
1824
|
},
|
|
1703
1825
|
customSlider: {
|
|
@@ -1774,17 +1896,20 @@ var colors$1 = {
|
|
|
1774
1896
|
success: '#72BB23',
|
|
1775
1897
|
successOutline: {
|
|
1776
1898
|
fill: '#FCFFEB',
|
|
1777
|
-
border: '
|
|
1899
|
+
border: '1px solid #72BB23',
|
|
1900
|
+
borderColor: '#72BB23'
|
|
1778
1901
|
},
|
|
1779
1902
|
error: '#C00000',
|
|
1780
1903
|
errorOutline: {
|
|
1781
1904
|
fill: '#F9E8EA',
|
|
1782
|
-
border: '1px solid #C00000'
|
|
1905
|
+
border: '1px solid #C00000',
|
|
1906
|
+
borderColor: '#C00000'
|
|
1783
1907
|
},
|
|
1784
1908
|
warning: '#FFA800',
|
|
1785
1909
|
warningOutline: {
|
|
1786
1910
|
fill: '#FFF8EB',
|
|
1787
|
-
border: '1px solid #FFA800'
|
|
1911
|
+
border: '1px solid #FFA800',
|
|
1912
|
+
borderColor: '#FFA800'
|
|
1788
1913
|
},
|
|
1789
1914
|
warningHighlight: {
|
|
1790
1915
|
fill: '#FFA800',
|
|
@@ -1793,7 +1918,20 @@ var colors$1 = {
|
|
|
1793
1918
|
notification: '#0062E6',
|
|
1794
1919
|
notificationOutline: {
|
|
1795
1920
|
fill: '#DFF2FD',
|
|
1796
|
-
border: '1px solid #0062E6'
|
|
1921
|
+
border: '1px solid #0062E6',
|
|
1922
|
+
borderColor: '#0062E6'
|
|
1923
|
+
},
|
|
1924
|
+
summary: '#9595FF',
|
|
1925
|
+
summaryOutline: {
|
|
1926
|
+
fill: '#F8F9F9',
|
|
1927
|
+
border: '1px solid #8383F2',
|
|
1928
|
+
borderColor: '#8383F2'
|
|
1929
|
+
},
|
|
1930
|
+
disabled: '#9B9FB0',
|
|
1931
|
+
disabledOutline: {
|
|
1932
|
+
fill: '#F8F9F9',
|
|
1933
|
+
border: '1p solid #9B9FB0',
|
|
1934
|
+
borderColor: '#9B9FB0'
|
|
1797
1935
|
}
|
|
1798
1936
|
},
|
|
1799
1937
|
snackbar: {
|
|
@@ -1840,6 +1978,15 @@ var lightTheme = createTheme('light', parseColors(colors$1), createShadows(eleva
|
|
|
1840
1978
|
|
|
1841
1979
|
var geowebColors = Object.assign({}, colors$1);
|
|
1842
1980
|
var GWTheme = createTheme$1({
|
|
1981
|
+
breakpoints: {
|
|
1982
|
+
values: {
|
|
1983
|
+
xs: breakpoints.mobile,
|
|
1984
|
+
sm: breakpoints.tablet,
|
|
1985
|
+
md: breakpoints.desktop,
|
|
1986
|
+
lg: breakpoints.dekstopHD,
|
|
1987
|
+
xl: breakpoints.dekstopHDWide
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1843
1990
|
palette: {
|
|
1844
1991
|
secondary: {
|
|
1845
1992
|
main: '#0075a9'
|
|
@@ -2410,24 +2557,8 @@ var colors = {
|
|
|
2410
2557
|
fill: '#67F0FF',
|
|
2411
2558
|
opacity: 0.75
|
|
2412
2559
|
},
|
|
2413
|
-
playerRailObservation: {
|
|
2414
|
-
fill: '#0876B6',
|
|
2415
|
-
opacity: 100
|
|
2416
|
-
},
|
|
2417
|
-
playerRailSelection: {
|
|
2418
|
-
fill: '#C6D111',
|
|
2419
|
-
opacity: 0.5
|
|
2420
|
-
},
|
|
2421
|
-
playerRailForecastData: {
|
|
2422
|
-
fill: '#FD64FF',
|
|
2423
|
-
opacity: 0.6
|
|
2424
|
-
},
|
|
2425
|
-
playerRailForecastNoData: {
|
|
2426
|
-
fill: '#051039',
|
|
2427
|
-
opacity: 0.67
|
|
2428
|
-
},
|
|
2429
2560
|
playerTimeMarkers: {
|
|
2430
|
-
fill: '#
|
|
2561
|
+
fill: '#051039'
|
|
2431
2562
|
},
|
|
2432
2563
|
playerTimeText: {
|
|
2433
2564
|
color: '#FFFFFF',
|
|
@@ -2447,8 +2578,8 @@ var colors = {
|
|
|
2447
2578
|
fill: '#979797'
|
|
2448
2579
|
},
|
|
2449
2580
|
timelineNightTime: {
|
|
2450
|
-
fill: '#
|
|
2451
|
-
opacity: 0.
|
|
2581
|
+
fill: '#051038',
|
|
2582
|
+
opacity: 0.67
|
|
2452
2583
|
},
|
|
2453
2584
|
timelineTimelineSurface: {
|
|
2454
2585
|
fill: '#303030'
|
|
@@ -2458,8 +2589,8 @@ var colors = {
|
|
|
2458
2589
|
opacity: 0.5
|
|
2459
2590
|
},
|
|
2460
2591
|
timelineSelectionBackground: {
|
|
2461
|
-
fill: '#
|
|
2462
|
-
opacity: 0.
|
|
2592
|
+
fill: '#FFFFFF',
|
|
2593
|
+
opacity: 0.32
|
|
2463
2594
|
},
|
|
2464
2595
|
// time scale
|
|
2465
2596
|
timeScalePointer: {
|
|
@@ -2477,6 +2608,17 @@ var colors = {
|
|
|
2477
2608
|
},
|
|
2478
2609
|
timeScaleShadowButtonScale: {
|
|
2479
2610
|
filter: 'drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.24)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.40))'
|
|
2611
|
+
},
|
|
2612
|
+
// legend
|
|
2613
|
+
ledgendObservedBackground: {
|
|
2614
|
+
fill: '#00649F'
|
|
2615
|
+
},
|
|
2616
|
+
legendForecastBackground: {
|
|
2617
|
+
fill: '#9900B1'
|
|
2618
|
+
},
|
|
2619
|
+
legendNoDataBackground: {
|
|
2620
|
+
fill: '#575F7A',
|
|
2621
|
+
opacity: '0.95'
|
|
2480
2622
|
}
|
|
2481
2623
|
},
|
|
2482
2624
|
customSlider: {
|
|
@@ -2553,17 +2695,20 @@ var colors = {
|
|
|
2553
2695
|
success: '#72BB23',
|
|
2554
2696
|
successOutline: {
|
|
2555
2697
|
fill: 'rgba(114, 187, 35, 0.25)',
|
|
2556
|
-
border: '
|
|
2698
|
+
border: '1px solid #72BB23',
|
|
2699
|
+
borderColor: '#72BB23'
|
|
2557
2700
|
},
|
|
2558
2701
|
error: '#C00000',
|
|
2559
2702
|
errorOutline: {
|
|
2560
2703
|
fill: 'rgba(192, 0, 0, 0.25)',
|
|
2561
|
-
border: '1px solid #C00000'
|
|
2704
|
+
border: '1px solid #C00000',
|
|
2705
|
+
borderColor: '#C00000'
|
|
2562
2706
|
},
|
|
2563
2707
|
warning: '#FFA800',
|
|
2564
2708
|
warningOutline: {
|
|
2565
2709
|
fill: 'rgba(255, 168, 0, 0.25)',
|
|
2566
|
-
border: '1px solid #FFA800'
|
|
2710
|
+
border: '1px solid #FFA800',
|
|
2711
|
+
borderColor: '#FFA800'
|
|
2567
2712
|
},
|
|
2568
2713
|
warningHighlight: {
|
|
2569
2714
|
fill: '#FFA800',
|
|
@@ -2572,7 +2717,20 @@ var colors = {
|
|
|
2572
2717
|
notification: '#186DFF',
|
|
2573
2718
|
notificationOutline: {
|
|
2574
2719
|
fill: 'rgba(24, 109, 255, 0.25)',
|
|
2575
|
-
border: '1px solid #186DFF'
|
|
2720
|
+
border: '1px solid #186DFF',
|
|
2721
|
+
borderColor: '#186DFF'
|
|
2722
|
+
},
|
|
2723
|
+
summary: '#9595FF',
|
|
2724
|
+
summaryOutline: {
|
|
2725
|
+
fill: 'rgba(131, 131, 242, 0.25)',
|
|
2726
|
+
border: '1px solid #8383F2',
|
|
2727
|
+
borderColor: '#8383F2'
|
|
2728
|
+
},
|
|
2729
|
+
disabled: '#9B9FB0',
|
|
2730
|
+
disabledOutline: {
|
|
2731
|
+
fill: 'rgba(155, 159, 176, 0.25)',
|
|
2732
|
+
border: '1px solid #9B9FB0',
|
|
2733
|
+
borderColor: '#9B9FB0'
|
|
2576
2734
|
}
|
|
2577
2735
|
},
|
|
2578
2736
|
snackbar: {
|
|
@@ -2606,19 +2764,21 @@ var ThemeContext = /*#__PURE__*/React.createContext({
|
|
|
2606
2764
|
});
|
|
2607
2765
|
var ThemeProvider = function ThemeProvider(_ref) {
|
|
2608
2766
|
var children = _ref.children,
|
|
2609
|
-
|
|
2610
|
-
|
|
2767
|
+
theme = _ref.theme,
|
|
2768
|
+
defaultThemeName = _ref.defaultThemeName,
|
|
2611
2769
|
_ref$disableCssBaseli = _ref.disableCssBaseline,
|
|
2612
2770
|
disableCssBaseline = _ref$disableCssBaseli === void 0 ? false : _ref$disableCssBaseli;
|
|
2771
|
+
var defaultTheme = defaultThemeName === ThemeTypes.DARK_THEME ? darkTheme : lightTheme;
|
|
2613
2772
|
|
|
2614
|
-
var _React$useState = React.useState(
|
|
2773
|
+
var _React$useState = React.useState(defaultTheme === darkTheme),
|
|
2615
2774
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2616
2775
|
isDark = _React$useState2[0],
|
|
2617
2776
|
setDark = _React$useState2[1];
|
|
2618
2777
|
|
|
2778
|
+
var configuredTheme = isDark ? darkTheme : lightTheme;
|
|
2619
2779
|
var currentTheme = React.useMemo(function () {
|
|
2620
|
-
return
|
|
2621
|
-
}, [
|
|
2780
|
+
return theme || configuredTheme;
|
|
2781
|
+
}, [configuredTheme, theme]);
|
|
2622
2782
|
|
|
2623
2783
|
var toggleTheme = function toggleTheme() {
|
|
2624
2784
|
return setDark(!isDark);
|
|
@@ -2639,14 +2799,15 @@ var useThemeContext = function useThemeContext() {
|
|
|
2639
2799
|
|
|
2640
2800
|
var ThemeWrapper = function ThemeWrapper(_ref2) {
|
|
2641
2801
|
var children = _ref2.children,
|
|
2642
|
-
|
|
2643
|
-
|
|
2802
|
+
theme = _ref2.theme,
|
|
2803
|
+
defaultThemeName = _ref2.defaultThemeName,
|
|
2644
2804
|
_ref2$disableCssBasel = _ref2.disableCssBaseline,
|
|
2645
2805
|
disableCssBaseline = _ref2$disableCssBasel === void 0 ? false : _ref2$disableCssBasel;
|
|
2646
2806
|
return /*#__PURE__*/React.createElement(StyledEngineProvider, {
|
|
2647
2807
|
injectFirst: true
|
|
2648
2808
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
2649
2809
|
theme: theme,
|
|
2810
|
+
defaultThemeName: defaultThemeName,
|
|
2650
2811
|
disableCssBaseline: disableCssBaseline
|
|
2651
2812
|
}, children));
|
|
2652
2813
|
}; // Wrapper for storybook stories with GWTheme. Will be deprecated
|
|
@@ -2661,4 +2822,4 @@ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
|
|
|
2661
2822
|
}, props), children);
|
|
2662
2823
|
};
|
|
2663
2824
|
|
|
2664
|
-
export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, Export, FastForward, Filter, Flag, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, gwButtonVariants, lightTheme, useThemeContext };
|
|
2825
|
+
export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, ExpandWindow, Export, FastForward, Filter, Flag, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, dragHandlePath, gwButtonVariants, lightTheme, useThemeContext };
|
package/index.umd.js
CHANGED
|
@@ -79,6 +79,24 @@
|
|
|
79
79
|
return ar;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/* *
|
|
83
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
84
|
+
* you may not use this file except in compliance with the License.
|
|
85
|
+
* You may obtain a copy of the License at
|
|
86
|
+
*
|
|
87
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
88
|
+
*
|
|
89
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
90
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
91
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
92
|
+
* See the License for the specific language governing permissions and
|
|
93
|
+
* limitations under the License.
|
|
94
|
+
*
|
|
95
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
96
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
97
|
+
* */
|
|
98
|
+
var dragHandlePath = 'M9.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z';
|
|
99
|
+
|
|
82
100
|
/* *
|
|
83
101
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
84
102
|
* you may not use this file except in compliance with the License.
|
|
@@ -348,7 +366,7 @@
|
|
|
348
366
|
};
|
|
349
367
|
var DragHandle = function DragHandle(props) {
|
|
350
368
|
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
351
|
-
d:
|
|
369
|
+
d: dragHandlePath
|
|
352
370
|
}));
|
|
353
371
|
};
|
|
354
372
|
var AutoUpdateActive = function AutoUpdateActive(props) {
|
|
@@ -398,6 +416,18 @@
|
|
|
398
416
|
d: "M15.18 12.688l-3.909 2.81c-.161.115-.325.175-.486.175-.303 0-.629-.234-.629-.748v-5.85c0-.514.325-.747.63-.747.16 0 .324.059.485.174l3.91 2.81c.24.172.378.423.378.688 0 .265-.137.517-.379.688M12 4c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8"
|
|
399
417
|
}));
|
|
400
418
|
};
|
|
419
|
+
var StepBackward = function StepBackward(props) {
|
|
420
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
421
|
+
d: "M15.5794386,6.68811254 L8.12440829,1.33228882 C7.81918795,1.11107407 7.50556704,1 7.19941329,1 C6.62070805,1 6,1.44616308 6,2.42342823 L6,13.5775052 C6,14.5547703 6.62164144,15 7.19941329,15 C7.50556704,15 7.81918795,14.8889259 8.12720848,14.6686446 L15.5785052,9.31282085 C16.0377358,8.98426562 16.2990866,8.50636709 16.2990866,7.9995333 C16.2990866,7.4945663 16.0368025,7.01760117 15.5794386,6.68811254 M2,0 C3.05,0 3.9177686,0.820041322 3.99448723,1.85130541 L4,2 L4,14 C4,15.1 3.1,16 2,16 C0.9,16 0,15.1 0,14 L0,2 C0,0.9 0.9,0 2,0 Z",
|
|
422
|
+
transform: "translate(4.000000, 4.000000) translate(8.149543, 8.000000) scale(-1, 1) translate(-8.149543, -8.000000) "
|
|
423
|
+
}));
|
|
424
|
+
};
|
|
425
|
+
var StepForward = function StepForward(props) {
|
|
426
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
427
|
+
d: "M15.5794386,6.68811254 L8.12440829,1.33228882 C7.81918795,1.11107407 7.50556704,1 7.19941329,1 C6.62070805,1 6,1.44616308 6,2.42342823 L6,13.5775052 C6,14.5547703 6.62164144,15 7.19941329,15 C7.50556704,15 7.81918795,14.8889259 8.12720848,14.6686446 L15.5785052,9.31282085 C16.0377358,8.98426562 16.2990866,8.50636709 16.2990866,7.9995333 C16.2990866,7.4945663 16.0368025,7.01760117 15.5794386,6.68811254 M2,0 C3.05,0 3.9177686,0.820041322 3.99448723,1.85130541 L4,2 L4,14 C4,15.1 3.1,16 2,16 C0.9,16 0,15.1 0,14 L0,2 C0,0.9 0.9,0 2,0 Z",
|
|
428
|
+
transform: "translate(4.000000, 4.000000)"
|
|
429
|
+
}));
|
|
430
|
+
};
|
|
401
431
|
var Info = function Info(props) {
|
|
402
432
|
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
403
433
|
d: "M12.0004012,4 C16.4182338,4 20,7.58096384 20,11.9995988 C20,16.4182338 16.4182338,20 12.0004012,20 C7.58176621,20 4,16.4182338 4,11.9995988 C4,7.58096384 7.58176621,4 12.0004012,4 Z M13.0518404,10 L10,10 L10,11.6134693 L10.9489304,11.6134693 L10.9489304,15.3873607 L10,15.3873607 L10,17 L14,17 L14,15.3873607 L13.0518404,15.3873607 L13.0518404,10 Z M11.9907922,6 C11.1541947,6 10.5,6.65419468 10.5,7.49079217 C10.5,8.32738965 11.1541947,9 11.9907922,9 C12.8273897,9 13.5,8.32738965 13.5,7.49079217 C13.5,6.65419468 12.8273897,6 11.9907922,6 Z"
|
|
@@ -490,10 +520,11 @@
|
|
|
490
520
|
var Resize = function Resize(_a) {
|
|
491
521
|
var _b = _a.isRightAligned,
|
|
492
522
|
isRightAligned = _b === void 0 ? false : _b,
|
|
493
|
-
|
|
523
|
+
sx = _a.sx,
|
|
524
|
+
props = __rest(_a, ["isRightAligned", "sx"]);
|
|
494
525
|
|
|
495
526
|
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({
|
|
496
|
-
sx: __assign(__assign({
|
|
527
|
+
sx: __assign(__assign(__assign({
|
|
497
528
|
width: 20,
|
|
498
529
|
height: 20,
|
|
499
530
|
top: -10,
|
|
@@ -505,7 +536,7 @@
|
|
|
505
536
|
left: -10
|
|
506
537
|
}), {
|
|
507
538
|
zIndex: 1
|
|
508
|
-
}),
|
|
539
|
+
}), sx),
|
|
509
540
|
"data-testid": "resizeHandle"
|
|
510
541
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
511
542
|
d: "M19.687 18.037v1h-6v-1h6zm3.5-3.5v1h-13v-1h13z",
|
|
@@ -633,6 +664,55 @@
|
|
|
633
664
|
transform: "translate(1 2)"
|
|
634
665
|
}));
|
|
635
666
|
};
|
|
667
|
+
var CollapseWindow = function CollapseWindow(props) {
|
|
668
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
669
|
+
d: "M5,17 C4.43301962,17 4,17.4597824 4,18.0268006 C4,18.5938188 4.43301962,19 5,19 L19,19 C19.5669804,19 20,18.5938188 20,18.0268006 C20,17.4597824 19.5669804,17 19,17 L5,17 Z"
|
|
670
|
+
}));
|
|
671
|
+
};
|
|
672
|
+
var ExpandWindow = function ExpandWindow(props) {
|
|
673
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
674
|
+
d: "M18,4.5 C18.81657,4.52323671 19.4399034,4.74990338 19.87,5.18 C20.3000966,5.61009662 20.5100966,6.21676329 20.5,7 L20.5,17 C20.4955176,17.7444824 20.2855176,18.3244824 19.87,18.74 C19.4544824,19.1555176 18.8311491,19.4088509 18,19.5 L6,19.5 C5.1805214,19.4148333 4.56096049,19.1624284 4.1413173,18.7427852 C3.7216741,18.323142 3.50790167,17.7422136 3.5,17 L3.5,7 C3.52565636,6.18855517 3.73942879,5.5818885 4.1413173,5.18 C4.5432058,4.7781115 5.1627667,4.55144483 6,4.5 L18,4.5 Z M17.6875,6.75 L6.3125,6.75 C5.85182844,6.75 5.5,7.20978239 5.5,7.77680061 C5.5,8.34381884 5.85182844,8.75 6.3125,8.75 L17.6875,8.75 C18.1481716,8.75 18.5,8.34381884 18.5,7.77680061 C18.5,7.20978239 18.1481716,6.75 17.6875,6.75 Z"
|
|
675
|
+
}));
|
|
676
|
+
};
|
|
677
|
+
var CollapseLarge = function CollapseLarge(props) {
|
|
678
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
679
|
+
id: "Icons-/-Collapse-L",
|
|
680
|
+
stroke: "none",
|
|
681
|
+
strokeWidth: "1",
|
|
682
|
+
fill: "none",
|
|
683
|
+
fillRule: "evenodd"
|
|
684
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
685
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M11.51,8.14 L11.51,13.93 L14.4857761,13.93 L14.4857761,15.2471595 L9.79,15.2471595 L9.79,8.14 L11.51,8.14 Z",
|
|
686
|
+
id: "Icons-/-expand-L",
|
|
687
|
+
fill: "currentColor"
|
|
688
|
+
})));
|
|
689
|
+
};
|
|
690
|
+
var CollapseMedium = function CollapseMedium(props) {
|
|
691
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
692
|
+
id: "Icons-/-Collapse-M",
|
|
693
|
+
stroke: "none",
|
|
694
|
+
strokeWidth: "1",
|
|
695
|
+
fill: "none",
|
|
696
|
+
fillRule: "evenodd"
|
|
697
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
698
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M10.3720217,8.13793154 L11.9560108,13.0709727 L13.54,8.13793154 L15.79,8.13793154 L15.79,15.25 L14.0828502,15.25 L14.0828502,13.5960917 L14.24,10.1828615 L12.52,15.25 L11.3929679,15.25 L9.66668436,10.1828615 L9.83,13.5960917 L9.83,15.25 L8.12,15.25 L8.12,8.13793154 L10.3720217,8.13793154 Z",
|
|
699
|
+
id: "Icons-/-expand-M",
|
|
700
|
+
fill: "currentColor"
|
|
701
|
+
})));
|
|
702
|
+
};
|
|
703
|
+
var CollapseSmall = function CollapseSmall(props) {
|
|
704
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
705
|
+
id: "Icons-/-Collapse-S",
|
|
706
|
+
stroke: "none",
|
|
707
|
+
strokeWidth: "1",
|
|
708
|
+
fill: "none",
|
|
709
|
+
fillRule: "evenodd"
|
|
710
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
711
|
+
d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M12,8.04223293 C12.3816424,8.04223293 12.7614621,8.07548514 13.1091818,8.18 C13.5650277,8.31701461 13.9657061,8.56252016 14.2430015,8.87556815 C14.5528447,9.22536046 14.7487564,9.63866568 14.7487564,10.2519529 L13.0420578,10.2519529 C13.0420578,10.1288369 13.0272095,9.87711169 12.8626035,9.66926494 C12.7706891,9.55320533 12.6320802,9.43866588 12.4232884,9.38 C12.3058648,9.34700656 12.1662431,9.34 12.0002452,9.34 C11.7669952,9.34 11.5569756,9.40134185 11.3953298,9.49974489 C11.191832,9.62362564 11.065,9.80624313 11.065,9.99915266 C11.065,10.4659624 11.5303207,10.7054039 12.0069825,10.88 C12.251836,10.9696872 12.4996821,11.0509766 12.6889856,11.1190164 C13.2468104,11.3195109 14.7487564,11.8079437 14.7487564,13.3345338 C14.7487564,14.1523847 14.3639594,14.7065019 13.71,15.0235466 C13.2549114,15.2441772 12.7956716,15.35 12,15.35 C11.5837341,15.35 11.0482218,15.2531638 10.57,15.0437157 C10.1291519,14.8506364 9.73916298,14.5618589 9.48671724,14.1650248 C9.25557241,13.8016749 9.14333333,13.3931427 9.15,12.939428 L10.8662463,12.939428 C10.8586095,13.2482201 10.923194,13.4935781 11.06,13.6755022 C11.265209,13.9483883 11.6785712,14.059404 12.0002452,14.059404 C12.416347,14.059404 13.0420578,13.9897611 13.0420578,13.3345338 C13.0420578,13.0169697 12.9081037,12.8095581 12.4695878,12.5923469 C12.3796921,12.5478187 12.2231629,12.4829201 12,12.3976512 C11.2094155,12.128282 10.6637991,11.8940163 10.3631508,11.6948541 C10.1074343,11.5254567 9.88191516,11.3372466 9.73293087,11.1353958 C9.51970344,10.8465054 9.36,10.5472019 9.36,9.99915266 C9.36,9.53454971 9.57462649,9.02233509 10.0735216,8.63036466 C10.4735262,8.31609021 11.2198472,8.04223293 12,8.04223293 Z",
|
|
712
|
+
id: "Icons-/-expand-S",
|
|
713
|
+
fill: "currentColor"
|
|
714
|
+
})));
|
|
715
|
+
};
|
|
636
716
|
|
|
637
717
|
/* *
|
|
638
718
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -689,6 +769,8 @@
|
|
|
689
769
|
Now: Now,
|
|
690
770
|
Pause: Pause,
|
|
691
771
|
Play: Play,
|
|
772
|
+
StepBackward: StepBackward,
|
|
773
|
+
StepForward: StepForward,
|
|
692
774
|
Info: Info,
|
|
693
775
|
TextIcon: TextIcon,
|
|
694
776
|
FastForward: FastForward,
|
|
@@ -725,7 +807,12 @@
|
|
|
725
807
|
DimensionsTime: DimensionsTime,
|
|
726
808
|
DimensionsRefTime: DimensionsRefTime,
|
|
727
809
|
DimensionsOther: DimensionsOther,
|
|
728
|
-
Picture: Picture
|
|
810
|
+
Picture: Picture,
|
|
811
|
+
CollapseWindow: CollapseWindow,
|
|
812
|
+
ExpandWindow: ExpandWindow,
|
|
813
|
+
CollapseLarge: CollapseLarge,
|
|
814
|
+
CollapseMedium: CollapseMedium,
|
|
815
|
+
CollapseSmall: CollapseSmall
|
|
729
816
|
});
|
|
730
817
|
|
|
731
818
|
/* *
|
|
@@ -744,6 +831,13 @@
|
|
|
744
831
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
745
832
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
746
833
|
* */
|
|
834
|
+
exports.ThemeTypes = void 0;
|
|
835
|
+
|
|
836
|
+
(function (ThemeTypes) {
|
|
837
|
+
ThemeTypes["DARK_THEME"] = "darkTheme";
|
|
838
|
+
ThemeTypes["LIGHT_THEME"] = "lightTheme";
|
|
839
|
+
})(exports.ThemeTypes || (exports.ThemeTypes = {}));
|
|
840
|
+
|
|
747
841
|
var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
|
|
748
842
|
|
|
749
843
|
var defaultButtonStyle = function defaultButtonStyle(button) {
|
|
@@ -968,8 +1062,8 @@
|
|
|
968
1062
|
styleOverrides: {
|
|
969
1063
|
root: {
|
|
970
1064
|
color: geowebColors.typographyAndIcons.iconLinkActive,
|
|
971
|
-
'&.Mui-disabled': {
|
|
972
|
-
color: geowebColors.typographyAndIcons.iconLinkDisabled
|
|
1065
|
+
'&.MuiCheckbox-root.Mui-disabled': {
|
|
1066
|
+
color: geowebColors.typographyAndIcons.iconLinkDisabled
|
|
973
1067
|
},
|
|
974
1068
|
'&.Mui-checked': {
|
|
975
1069
|
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
@@ -1327,6 +1421,40 @@
|
|
|
1327
1421
|
fontSize: 16
|
|
1328
1422
|
})
|
|
1329
1423
|
}
|
|
1424
|
+
},
|
|
1425
|
+
MuiAccordion: {
|
|
1426
|
+
styleOverrides: {
|
|
1427
|
+
root: {
|
|
1428
|
+
backgroundColor: geowebColors.cards.cardContainer,
|
|
1429
|
+
borderRadius: '3px',
|
|
1430
|
+
border: 'solid 1px',
|
|
1431
|
+
borderColor: geowebColors.cards.cardContainerBorder,
|
|
1432
|
+
color: geowebColors.buttons.flat["default"].color,
|
|
1433
|
+
padding: '0px',
|
|
1434
|
+
margin: '0px 12px 4px 12px',
|
|
1435
|
+
fontSize: '12px',
|
|
1436
|
+
'&:before': {
|
|
1437
|
+
display: 'none'
|
|
1438
|
+
},
|
|
1439
|
+
'& .MuiAccordionSummary-root.Mui-expanded': {
|
|
1440
|
+
borderBottom: 'solid 1px',
|
|
1441
|
+
borderColor: geowebColors.cards.cardContainerBorder
|
|
1442
|
+
},
|
|
1443
|
+
'& .MuiAccordionSummary-content': {
|
|
1444
|
+
margin: '2px',
|
|
1445
|
+
padding: '4px 4px 4px 10px'
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
MuiAccordionSummary: {
|
|
1451
|
+
styleOverrides: {
|
|
1452
|
+
root: {
|
|
1453
|
+
minHeight: '32px',
|
|
1454
|
+
padding: '0px',
|
|
1455
|
+
paddingRight: '5px'
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1330
1458
|
}
|
|
1331
1459
|
}
|
|
1332
1460
|
});
|
|
@@ -1618,24 +1746,8 @@
|
|
|
1618
1746
|
fill: '#67F0FF',
|
|
1619
1747
|
opacity: 0.75
|
|
1620
1748
|
},
|
|
1621
|
-
playerRailObservation: {
|
|
1622
|
-
fill: '#0876B6',
|
|
1623
|
-
opacity: 100
|
|
1624
|
-
},
|
|
1625
|
-
playerRailSelection: {
|
|
1626
|
-
fill: '#C6D111',
|
|
1627
|
-
opacity: 0.5
|
|
1628
|
-
},
|
|
1629
|
-
playerRailForecastData: {
|
|
1630
|
-
fill: '#FD64FF',
|
|
1631
|
-
opacity: 0.6
|
|
1632
|
-
},
|
|
1633
|
-
playerRailForecastNoData: {
|
|
1634
|
-
fill: '#051039',
|
|
1635
|
-
opacity: 0.67
|
|
1636
|
-
},
|
|
1637
1749
|
playerTimeMarkers: {
|
|
1638
|
-
fill: '#
|
|
1750
|
+
fill: '#051039'
|
|
1639
1751
|
},
|
|
1640
1752
|
playerTimeText: {
|
|
1641
1753
|
color: '#FFFFFF',
|
|
@@ -1648,15 +1760,15 @@
|
|
|
1648
1760
|
},
|
|
1649
1761
|
timelineText: {
|
|
1650
1762
|
fontSize: 14,
|
|
1651
|
-
color: '#
|
|
1763
|
+
color: '#FFFFFF',
|
|
1652
1764
|
fontFamily: 'Roboto'
|
|
1653
1765
|
},
|
|
1654
1766
|
timelineTimeScale: {
|
|
1655
1767
|
fill: '#979797'
|
|
1656
1768
|
},
|
|
1657
1769
|
timelineNightTime: {
|
|
1658
|
-
fill: '#
|
|
1659
|
-
opacity: 0.
|
|
1770
|
+
fill: '#051038',
|
|
1771
|
+
opacity: 0.67
|
|
1660
1772
|
},
|
|
1661
1773
|
timelineTimelineSurface: {
|
|
1662
1774
|
fill: '#FFFFFF'
|
|
@@ -1666,8 +1778,8 @@
|
|
|
1666
1778
|
opacity: 0.5
|
|
1667
1779
|
},
|
|
1668
1780
|
timelineSelectionBackground: {
|
|
1669
|
-
fill: '#
|
|
1670
|
-
opacity: 0.
|
|
1781
|
+
fill: '#FFFFFF',
|
|
1782
|
+
opacity: 0.32
|
|
1671
1783
|
},
|
|
1672
1784
|
// time scale
|
|
1673
1785
|
timeScalePointer: {
|
|
@@ -1685,6 +1797,16 @@
|
|
|
1685
1797
|
},
|
|
1686
1798
|
timeScaleShadowButtonScale: {
|
|
1687
1799
|
filter: 'drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.24)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.40))'
|
|
1800
|
+
},
|
|
1801
|
+
ledgendObservedBackground: {
|
|
1802
|
+
fill: '#00649F'
|
|
1803
|
+
},
|
|
1804
|
+
legendForecastBackground: {
|
|
1805
|
+
fill: '#9900B1'
|
|
1806
|
+
},
|
|
1807
|
+
legendNoDataBackground: {
|
|
1808
|
+
fill: '#575F7A',
|
|
1809
|
+
opacity: '0.95'
|
|
1688
1810
|
}
|
|
1689
1811
|
},
|
|
1690
1812
|
customSlider: {
|
|
@@ -1761,17 +1883,20 @@
|
|
|
1761
1883
|
success: '#72BB23',
|
|
1762
1884
|
successOutline: {
|
|
1763
1885
|
fill: '#FCFFEB',
|
|
1764
|
-
border: '
|
|
1886
|
+
border: '1px solid #72BB23',
|
|
1887
|
+
borderColor: '#72BB23'
|
|
1765
1888
|
},
|
|
1766
1889
|
error: '#C00000',
|
|
1767
1890
|
errorOutline: {
|
|
1768
1891
|
fill: '#F9E8EA',
|
|
1769
|
-
border: '1px solid #C00000'
|
|
1892
|
+
border: '1px solid #C00000',
|
|
1893
|
+
borderColor: '#C00000'
|
|
1770
1894
|
},
|
|
1771
1895
|
warning: '#FFA800',
|
|
1772
1896
|
warningOutline: {
|
|
1773
1897
|
fill: '#FFF8EB',
|
|
1774
|
-
border: '1px solid #FFA800'
|
|
1898
|
+
border: '1px solid #FFA800',
|
|
1899
|
+
borderColor: '#FFA800'
|
|
1775
1900
|
},
|
|
1776
1901
|
warningHighlight: {
|
|
1777
1902
|
fill: '#FFA800',
|
|
@@ -1780,7 +1905,20 @@
|
|
|
1780
1905
|
notification: '#0062E6',
|
|
1781
1906
|
notificationOutline: {
|
|
1782
1907
|
fill: '#DFF2FD',
|
|
1783
|
-
border: '1px solid #0062E6'
|
|
1908
|
+
border: '1px solid #0062E6',
|
|
1909
|
+
borderColor: '#0062E6'
|
|
1910
|
+
},
|
|
1911
|
+
summary: '#9595FF',
|
|
1912
|
+
summaryOutline: {
|
|
1913
|
+
fill: '#F8F9F9',
|
|
1914
|
+
border: '1px solid #8383F2',
|
|
1915
|
+
borderColor: '#8383F2'
|
|
1916
|
+
},
|
|
1917
|
+
disabled: '#9B9FB0',
|
|
1918
|
+
disabledOutline: {
|
|
1919
|
+
fill: '#F8F9F9',
|
|
1920
|
+
border: '1p solid #9B9FB0',
|
|
1921
|
+
borderColor: '#9B9FB0'
|
|
1784
1922
|
}
|
|
1785
1923
|
},
|
|
1786
1924
|
snackbar: {
|
|
@@ -1811,6 +1949,15 @@
|
|
|
1811
1949
|
var geowebColors = __assign({}, colors$1);
|
|
1812
1950
|
|
|
1813
1951
|
var GWTheme = material.createTheme({
|
|
1952
|
+
breakpoints: {
|
|
1953
|
+
values: {
|
|
1954
|
+
xs: breakpoints.mobile,
|
|
1955
|
+
sm: breakpoints.tablet,
|
|
1956
|
+
md: breakpoints.desktop,
|
|
1957
|
+
lg: breakpoints.dekstopHD,
|
|
1958
|
+
xl: breakpoints.dekstopHDWide
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1814
1961
|
palette: {
|
|
1815
1962
|
secondary: {
|
|
1816
1963
|
main: '#0075a9'
|
|
@@ -2381,24 +2528,8 @@
|
|
|
2381
2528
|
fill: '#67F0FF',
|
|
2382
2529
|
opacity: 0.75
|
|
2383
2530
|
},
|
|
2384
|
-
playerRailObservation: {
|
|
2385
|
-
fill: '#0876B6',
|
|
2386
|
-
opacity: 100
|
|
2387
|
-
},
|
|
2388
|
-
playerRailSelection: {
|
|
2389
|
-
fill: '#C6D111',
|
|
2390
|
-
opacity: 0.5
|
|
2391
|
-
},
|
|
2392
|
-
playerRailForecastData: {
|
|
2393
|
-
fill: '#FD64FF',
|
|
2394
|
-
opacity: 0.6
|
|
2395
|
-
},
|
|
2396
|
-
playerRailForecastNoData: {
|
|
2397
|
-
fill: '#051039',
|
|
2398
|
-
opacity: 0.67
|
|
2399
|
-
},
|
|
2400
2531
|
playerTimeMarkers: {
|
|
2401
|
-
fill: '#
|
|
2532
|
+
fill: '#051039'
|
|
2402
2533
|
},
|
|
2403
2534
|
playerTimeText: {
|
|
2404
2535
|
color: '#FFFFFF',
|
|
@@ -2418,8 +2549,8 @@
|
|
|
2418
2549
|
fill: '#979797'
|
|
2419
2550
|
},
|
|
2420
2551
|
timelineNightTime: {
|
|
2421
|
-
fill: '#
|
|
2422
|
-
opacity: 0.
|
|
2552
|
+
fill: '#051038',
|
|
2553
|
+
opacity: 0.67
|
|
2423
2554
|
},
|
|
2424
2555
|
timelineTimelineSurface: {
|
|
2425
2556
|
fill: '#303030'
|
|
@@ -2429,8 +2560,8 @@
|
|
|
2429
2560
|
opacity: 0.5
|
|
2430
2561
|
},
|
|
2431
2562
|
timelineSelectionBackground: {
|
|
2432
|
-
fill: '#
|
|
2433
|
-
opacity: 0.
|
|
2563
|
+
fill: '#FFFFFF',
|
|
2564
|
+
opacity: 0.32
|
|
2434
2565
|
},
|
|
2435
2566
|
// time scale
|
|
2436
2567
|
timeScalePointer: {
|
|
@@ -2448,6 +2579,17 @@
|
|
|
2448
2579
|
},
|
|
2449
2580
|
timeScaleShadowButtonScale: {
|
|
2450
2581
|
filter: 'drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.24)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.40))'
|
|
2582
|
+
},
|
|
2583
|
+
// legend
|
|
2584
|
+
ledgendObservedBackground: {
|
|
2585
|
+
fill: '#00649F'
|
|
2586
|
+
},
|
|
2587
|
+
legendForecastBackground: {
|
|
2588
|
+
fill: '#9900B1'
|
|
2589
|
+
},
|
|
2590
|
+
legendNoDataBackground: {
|
|
2591
|
+
fill: '#575F7A',
|
|
2592
|
+
opacity: '0.95'
|
|
2451
2593
|
}
|
|
2452
2594
|
},
|
|
2453
2595
|
customSlider: {
|
|
@@ -2524,17 +2666,20 @@
|
|
|
2524
2666
|
success: '#72BB23',
|
|
2525
2667
|
successOutline: {
|
|
2526
2668
|
fill: 'rgba(114, 187, 35, 0.25)',
|
|
2527
|
-
border: '
|
|
2669
|
+
border: '1px solid #72BB23',
|
|
2670
|
+
borderColor: '#72BB23'
|
|
2528
2671
|
},
|
|
2529
2672
|
error: '#C00000',
|
|
2530
2673
|
errorOutline: {
|
|
2531
2674
|
fill: 'rgba(192, 0, 0, 0.25)',
|
|
2532
|
-
border: '1px solid #C00000'
|
|
2675
|
+
border: '1px solid #C00000',
|
|
2676
|
+
borderColor: '#C00000'
|
|
2533
2677
|
},
|
|
2534
2678
|
warning: '#FFA800',
|
|
2535
2679
|
warningOutline: {
|
|
2536
2680
|
fill: 'rgba(255, 168, 0, 0.25)',
|
|
2537
|
-
border: '1px solid #FFA800'
|
|
2681
|
+
border: '1px solid #FFA800',
|
|
2682
|
+
borderColor: '#FFA800'
|
|
2538
2683
|
},
|
|
2539
2684
|
warningHighlight: {
|
|
2540
2685
|
fill: '#FFA800',
|
|
@@ -2543,7 +2688,20 @@
|
|
|
2543
2688
|
notification: '#186DFF',
|
|
2544
2689
|
notificationOutline: {
|
|
2545
2690
|
fill: 'rgba(24, 109, 255, 0.25)',
|
|
2546
|
-
border: '1px solid #186DFF'
|
|
2691
|
+
border: '1px solid #186DFF',
|
|
2692
|
+
borderColor: '#186DFF'
|
|
2693
|
+
},
|
|
2694
|
+
summary: '#9595FF',
|
|
2695
|
+
summaryOutline: {
|
|
2696
|
+
fill: 'rgba(131, 131, 242, 0.25)',
|
|
2697
|
+
border: '1px solid #8383F2',
|
|
2698
|
+
borderColor: '#8383F2'
|
|
2699
|
+
},
|
|
2700
|
+
disabled: '#9B9FB0',
|
|
2701
|
+
disabledOutline: {
|
|
2702
|
+
fill: 'rgba(155, 159, 176, 0.25)',
|
|
2703
|
+
border: '1px solid #9B9FB0',
|
|
2704
|
+
borderColor: '#9B9FB0'
|
|
2547
2705
|
}
|
|
2548
2706
|
},
|
|
2549
2707
|
snackbar: {
|
|
@@ -2577,18 +2735,20 @@
|
|
|
2577
2735
|
});
|
|
2578
2736
|
var ThemeProvider = function ThemeProvider(_a) {
|
|
2579
2737
|
var children = _a.children,
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
disableCssBaseline =
|
|
2738
|
+
theme = _a.theme,
|
|
2739
|
+
defaultThemeName = _a.defaultThemeName,
|
|
2740
|
+
_b = _a.disableCssBaseline,
|
|
2741
|
+
disableCssBaseline = _b === void 0 ? false : _b;
|
|
2742
|
+
var defaultTheme = defaultThemeName === exports.ThemeTypes.DARK_THEME ? darkTheme : lightTheme;
|
|
2584
2743
|
|
|
2585
|
-
var
|
|
2586
|
-
isDark =
|
|
2587
|
-
setDark =
|
|
2744
|
+
var _c = __read(React__namespace.useState(defaultTheme === darkTheme), 2),
|
|
2745
|
+
isDark = _c[0],
|
|
2746
|
+
setDark = _c[1];
|
|
2588
2747
|
|
|
2748
|
+
var configuredTheme = isDark ? darkTheme : lightTheme;
|
|
2589
2749
|
var currentTheme = React__namespace.useMemo(function () {
|
|
2590
|
-
return
|
|
2591
|
-
}, [
|
|
2750
|
+
return theme || configuredTheme;
|
|
2751
|
+
}, [configuredTheme, theme]);
|
|
2592
2752
|
|
|
2593
2753
|
var toggleTheme = function toggleTheme() {
|
|
2594
2754
|
return setDark(!isDark);
|
|
@@ -2609,14 +2769,15 @@
|
|
|
2609
2769
|
|
|
2610
2770
|
var ThemeWrapper = function ThemeWrapper(_a) {
|
|
2611
2771
|
var children = _a.children,
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
disableCssBaseline =
|
|
2772
|
+
theme = _a.theme,
|
|
2773
|
+
defaultThemeName = _a.defaultThemeName,
|
|
2774
|
+
_b = _a.disableCssBaseline,
|
|
2775
|
+
disableCssBaseline = _b === void 0 ? false : _b;
|
|
2616
2776
|
return /*#__PURE__*/React__namespace.createElement(material.StyledEngineProvider, {
|
|
2617
2777
|
injectFirst: true
|
|
2618
2778
|
}, /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
|
|
2619
2779
|
theme: theme,
|
|
2780
|
+
defaultThemeName: defaultThemeName,
|
|
2620
2781
|
disableCssBaseline: disableCssBaseline
|
|
2621
2782
|
}, children));
|
|
2622
2783
|
}; // Wrapper for storybook stories with GWTheme. Will be deprecated
|
|
@@ -2648,6 +2809,10 @@
|
|
|
2648
2809
|
exports.Clear = Clear;
|
|
2649
2810
|
exports.Clock = Clock;
|
|
2650
2811
|
exports.Close = Close;
|
|
2812
|
+
exports.CollapseLarge = CollapseLarge;
|
|
2813
|
+
exports.CollapseMedium = CollapseMedium;
|
|
2814
|
+
exports.CollapseSmall = CollapseSmall;
|
|
2815
|
+
exports.CollapseWindow = CollapseWindow;
|
|
2651
2816
|
exports.Copy = Copy;
|
|
2652
2817
|
exports.Delete = Delete;
|
|
2653
2818
|
exports.DimensionsElevation = DimensionsElevation;
|
|
@@ -2662,6 +2827,7 @@
|
|
|
2662
2827
|
exports.Equalizer = Equalizer;
|
|
2663
2828
|
exports.Exclamation = Exclamation;
|
|
2664
2829
|
exports.Expand = Expand;
|
|
2830
|
+
exports.ExpandWindow = ExpandWindow;
|
|
2665
2831
|
exports.Export = Export;
|
|
2666
2832
|
exports.FastForward = FastForward;
|
|
2667
2833
|
exports.Filter = Filter;
|
|
@@ -2696,6 +2862,8 @@
|
|
|
2696
2862
|
exports.Speed = Speed;
|
|
2697
2863
|
exports.SplitHorizontal = SplitHorizontal;
|
|
2698
2864
|
exports.SplitVertical = SplitVertical;
|
|
2865
|
+
exports.StepBackward = StepBackward;
|
|
2866
|
+
exports.StepForward = StepForward;
|
|
2699
2867
|
exports.SubdirectoryArrowRight = SubdirectoryArrowRight;
|
|
2700
2868
|
exports.Success = Success;
|
|
2701
2869
|
exports.TextIcon = TextIcon;
|
|
@@ -2711,6 +2879,7 @@
|
|
|
2711
2879
|
exports.VisibilityOff = VisibilityOff;
|
|
2712
2880
|
exports.WebAssetOff = WebAssetOff;
|
|
2713
2881
|
exports.darkTheme = darkTheme;
|
|
2882
|
+
exports.dragHandlePath = dragHandlePath;
|
|
2714
2883
|
exports.gwButtonVariants = gwButtonVariants;
|
|
2715
2884
|
exports.lightTheme = lightTheme;
|
|
2716
2885
|
exports.useThemeContext = useThemeContext;
|
|
@@ -36,6 +36,8 @@ export declare const AutoUpdateInActive: (props: SvgIconProps) => JSX.Element;
|
|
|
36
36
|
export declare const Now: (props: SvgIconProps) => JSX.Element;
|
|
37
37
|
export declare const Pause: (props: SvgIconProps) => JSX.Element;
|
|
38
38
|
export declare const Play: (props: SvgIconProps) => JSX.Element;
|
|
39
|
+
export declare const StepBackward: (props: SvgIconProps) => JSX.Element;
|
|
40
|
+
export declare const StepForward: (props: SvgIconProps) => JSX.Element;
|
|
39
41
|
export declare const Info: (props: SvgIconProps) => JSX.Element;
|
|
40
42
|
interface TextIconProps extends SvgIconProps {
|
|
41
43
|
text?: string;
|
|
@@ -57,7 +59,7 @@ export declare const Flag: (props: SvgIconProps) => JSX.Element;
|
|
|
57
59
|
interface ResizeIconProps extends SvgIconProps {
|
|
58
60
|
isRightAligned?: boolean;
|
|
59
61
|
}
|
|
60
|
-
export declare const Resize: ({ isRightAligned, ...props }: ResizeIconProps) => JSX.Element;
|
|
62
|
+
export declare const Resize: ({ isRightAligned, sx, ...props }: ResizeIconProps) => JSX.Element;
|
|
61
63
|
export declare const PresetWorkspace: (props: SvgIconProps) => JSX.Element;
|
|
62
64
|
export declare const Preset: (props: SvgIconProps) => JSX.Element;
|
|
63
65
|
export declare const PresetTiles: (props: SvgIconProps) => JSX.Element;
|
|
@@ -79,4 +81,9 @@ export declare const DimensionsTime: (props: SvgIconProps) => JSX.Element;
|
|
|
79
81
|
export declare const DimensionsRefTime: (props: SvgIconProps) => JSX.Element;
|
|
80
82
|
export declare const DimensionsOther: (props: SvgIconProps) => JSX.Element;
|
|
81
83
|
export declare const Picture: (props: SvgIconProps) => JSX.Element;
|
|
84
|
+
export declare const CollapseWindow: (props: SvgIconProps) => JSX.Element;
|
|
85
|
+
export declare const ExpandWindow: (props: SvgIconProps) => JSX.Element;
|
|
86
|
+
export declare const CollapseLarge: (props: SvgIconProps) => JSX.Element;
|
|
87
|
+
export declare const CollapseMedium: (props: SvgIconProps) => JSX.Element;
|
|
88
|
+
export declare const CollapseSmall: (props: SvgIconProps) => JSX.Element;
|
|
82
89
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dragHandlePath = "M9.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paths';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Theme as MUITheme } from '@mui/material';
|
|
3
|
+
import { ThemeTypes } from './types';
|
|
3
4
|
interface ThemeContextProps {
|
|
4
5
|
toggleTheme?: () => void;
|
|
5
6
|
isDark?: boolean;
|
|
@@ -8,6 +9,7 @@ export declare const ThemeContext: React.Context<Partial<ThemeContextProps>>;
|
|
|
8
9
|
export interface ThemeProviderProps {
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
theme?: MUITheme;
|
|
12
|
+
defaultThemeName?: ThemeTypes;
|
|
11
13
|
disableCssBaseline?: boolean;
|
|
12
14
|
}
|
|
13
15
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
interface CSSProperties extends React.CSSProperties {
|
|
3
3
|
rgba?: string;
|
|
4
4
|
}
|
|
5
|
+
export declare enum ThemeTypes {
|
|
6
|
+
DARK_THEME = "darkTheme",
|
|
7
|
+
LIGHT_THEME = "lightTheme"
|
|
8
|
+
}
|
|
5
9
|
export declare const gwButtonVariants: readonly ["primary", "secondary", "tertiary", "flat", "tool", "boxed", "icon"];
|
|
6
10
|
export declare type ButtonVariant = typeof gwButtonVariants[number];
|
|
7
11
|
export interface ButtonStyle {
|
|
@@ -71,10 +75,6 @@ export declare type GeowebColorPalette = {
|
|
|
71
75
|
playerNeedleTime: CSSProperties;
|
|
72
76
|
playerNeedlePlayerTop: CSSProperties;
|
|
73
77
|
playerNeedlePlayer: CSSProperties;
|
|
74
|
-
playerRailObservation: CSSProperties;
|
|
75
|
-
playerRailSelection: CSSProperties;
|
|
76
|
-
playerRailForecastData: CSSProperties;
|
|
77
|
-
playerRailForecastNoData: CSSProperties;
|
|
78
78
|
playerTimeMarkers: CSSProperties;
|
|
79
79
|
playerTimeText: CSSProperties;
|
|
80
80
|
timelineIndicator: CSSProperties;
|
|
@@ -89,6 +89,9 @@ export declare type GeowebColorPalette = {
|
|
|
89
89
|
timeScaleTimeIndicators: CSSProperties;
|
|
90
90
|
timeScaleTimeIndicatorsActive: CSSProperties;
|
|
91
91
|
timeScaleShadowButtonScale: CSSProperties;
|
|
92
|
+
ledgendObservedBackground: CSSProperties;
|
|
93
|
+
legendForecastBackground: CSSProperties;
|
|
94
|
+
legendNoDataBackground: CSSProperties;
|
|
92
95
|
};
|
|
93
96
|
customSlider: {
|
|
94
97
|
rail: CSSProperties['color'];
|
|
@@ -135,6 +138,10 @@ export declare type GeowebColorPalette = {
|
|
|
135
138
|
warningHighlight: CSSProperties;
|
|
136
139
|
notification: CSSProperties['color'];
|
|
137
140
|
notificationOutline: CSSProperties;
|
|
141
|
+
summary: CSSProperties['color'];
|
|
142
|
+
summaryOutline: CSSProperties;
|
|
143
|
+
disabled: CSSProperties['color'];
|
|
144
|
+
disabledOutline: CSSProperties;
|
|
138
145
|
};
|
|
139
146
|
snackbar: {
|
|
140
147
|
background: CSSProperties['color'];
|