@geotrekce/geotrek-rando-widget 0.0.1 → 0.0.4

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.
Files changed (87) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +2 -2
  2. package/dist/cjs/{grw-app_7.cjs.entry.js → grw-app_11.cjs.entry.js} +513 -89
  3. package/dist/cjs/{index-31255e29.js → index-c2c4531d.js} +82 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/assets/departure-arrival.svg +1 -1
  6. package/dist/collection/collection-manifest.json +4 -0
  7. package/dist/collection/components/grw-app/grw-app.css +127 -39
  8. package/dist/collection/components/grw-app/grw-app.js +375 -18
  9. package/dist/collection/components/grw-filter/grw-filter.css +29 -0
  10. package/dist/collection/components/grw-filter/grw-filter.js +132 -0
  11. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css +30 -0
  12. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +53 -0
  13. package/dist/collection/components/grw-map/grw-map.css +117 -0
  14. package/dist/collection/components/grw-map/grw-map.js +409 -40
  15. package/dist/collection/components/grw-poi-detail/grw-poi-detail.css +30 -0
  16. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +41 -0
  17. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +16 -0
  18. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +38 -0
  19. package/dist/collection/components/grw-trek-card/grw-trek-card.css +67 -30
  20. package/dist/collection/components/grw-trek-card/grw-trek-card.js +112 -33
  21. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +36 -1
  22. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +122 -33
  23. package/dist/collection/components/grw-treks-list/grw-treks-list.css +17 -12
  24. package/dist/collection/components/grw-treks-list/grw-treks-list.js +70 -6
  25. package/dist/collection/store/grw-trek-provider.js +50 -8
  26. package/dist/collection/store/grw-treks-provider.js +166 -11
  27. package/dist/collection/store/store.js +6 -0
  28. package/dist/collection/stories/App.js +39 -3
  29. package/dist/collection/stories/App.stories.js +30 -5
  30. package/dist/collection/stories/TrekCard.js +9 -3
  31. package/dist/collection/stories/TrekCard.stories.js +5 -2
  32. package/dist/collection/stories/TrekDetail.js +10 -3
  33. package/dist/collection/stories/TrekDetail.stories.js +6 -2
  34. package/dist/collection/stories/TrekMap.js +15 -6
  35. package/dist/collection/stories/TrekMap.stories.js +21 -6
  36. package/dist/collection/stories/TreksList.js +17 -3
  37. package/dist/collection/stories/TreksList.stories.js +13 -2
  38. package/dist/collection/stories/TreksMap.js +12 -3
  39. package/dist/collection/stories/TreksMap.stories.js +18 -3
  40. package/dist/collection/utils/utils.js +2 -2
  41. package/dist/components/grw-app.js +79 -9
  42. package/dist/components/grw-filter.d.ts +11 -0
  43. package/dist/components/grw-filter.js +6 -0
  44. package/dist/components/grw-filter2.js +95 -0
  45. package/dist/components/grw-information-desk-detail.d.ts +11 -0
  46. package/dist/components/grw-information-desk-detail.js +6 -0
  47. package/dist/components/grw-information-desk-detail2.js +34 -0
  48. package/dist/components/grw-map2.js +260 -43
  49. package/dist/components/grw-poi-detail.d.ts +11 -0
  50. package/dist/components/grw-poi-detail.js +6 -0
  51. package/dist/components/grw-poi-detail2.js +32 -0
  52. package/dist/components/grw-sensitive-area-detail.d.ts +11 -0
  53. package/dist/components/grw-sensitive-area-detail.js +6 -0
  54. package/dist/components/grw-sensitive-area-detail2.js +32 -0
  55. package/dist/components/grw-trek-card2.js +33 -10
  56. package/dist/components/grw-trek-detail2.js +47 -9
  57. package/dist/components/grw-trek-provider2.js +32 -9
  58. package/dist/components/grw-treks-list2.js +15 -6
  59. package/dist/components/grw-treks-provider2.js +37 -13
  60. package/dist/components/length.js +2 -2
  61. package/dist/components/store.js +6 -0
  62. package/dist/esm/geotrek-rando-widget.js +2 -2
  63. package/dist/esm/{grw-app_7.entry.js → grw-app_11.entry.js} +510 -90
  64. package/dist/esm/{index-b36f38f5.js → index-fe16e7b6.js} +82 -1
  65. package/dist/esm/loader.js +2 -2
  66. package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -1
  67. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  68. package/dist/geotrek-rando-widget/p-8c206aec.js +2 -0
  69. package/dist/geotrek-rando-widget/p-ed8706fb.entry.js +1 -0
  70. package/dist/types/components/grw-app/grw-app.d.ts +27 -2
  71. package/dist/types/components/grw-filter/grw-filter.d.ts +9 -0
  72. package/dist/types/components/grw-information-desk-detail/grw-information-desk-detail.d.ts +5 -0
  73. package/dist/types/components/grw-map/grw-map.d.ts +19 -2
  74. package/dist/types/components/grw-poi-detail/grw-poi-detail.d.ts +5 -0
  75. package/dist/types/components/grw-sensitive-area-detail/grw-sensitive-area-detail.d.ts +5 -0
  76. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +6 -2
  77. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +3 -0
  78. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +3 -0
  79. package/dist/types/components.d.ts +158 -1
  80. package/dist/types/store/grw-trek-provider.d.ts +1 -0
  81. package/dist/types/store/grw-treks-provider.d.ts +8 -0
  82. package/dist/types/store/store.d.ts +13 -1
  83. package/dist/types/types/types.d.ts +69 -3
  84. package/package.json +5 -7
  85. package/readme.md +19 -1
  86. package/dist/geotrek-rando-widget/p-f721481d.js +0 -2
  87. package/dist/geotrek-rando-widget/p-fe788eaa.entry.js +0 -1
@@ -189,6 +189,7 @@ const isComplexType = (o) => {
189
189
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
190
190
  const h = (nodeName, vnodeData, ...children) => {
191
191
  let child = null;
192
+ let key = null;
192
193
  let simple = false;
193
194
  let lastSimple = false;
194
195
  const vNodeChildren = [];
@@ -216,6 +217,10 @@ const h = (nodeName, vnodeData, ...children) => {
216
217
  };
217
218
  walk(children);
218
219
  if (vnodeData) {
220
+ // normalize class / classname attributes
221
+ if (vnodeData.key) {
222
+ key = vnodeData.key;
223
+ }
219
224
  {
220
225
  const classData = vnodeData.className || vnodeData.class;
221
226
  if (classData) {
@@ -233,6 +238,9 @@ const h = (nodeName, vnodeData, ...children) => {
233
238
  if (vNodeChildren.length > 0) {
234
239
  vnode.$children$ = vNodeChildren;
235
240
  }
241
+ {
242
+ vnode.$key$ = key;
243
+ }
236
244
  return vnode;
237
245
  };
238
246
  const newVNode = (tag, text) => {
@@ -246,6 +254,9 @@ const newVNode = (tag, text) => {
246
254
  {
247
255
  vnode.$attrs$ = null;
248
256
  }
257
+ {
258
+ vnode.$key$ = null;
259
+ }
249
260
  return vnode;
250
261
  };
251
262
  const Host = {};
@@ -294,6 +305,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
294
305
  }
295
306
  }
296
307
  }
308
+ else if (memberName === 'key')
309
+ ;
297
310
  else if ((!isProp ) &&
298
311
  memberName[0] === 'o' &&
299
312
  memberName[1] === 'n') {
@@ -458,6 +471,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
458
471
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
459
472
  let oldStartIdx = 0;
460
473
  let newStartIdx = 0;
474
+ let idxInOld = 0;
475
+ let i = 0;
461
476
  let oldEndIdx = oldCh.length - 1;
462
477
  let oldStartVnode = oldCh[0];
463
478
  let oldEndVnode = oldCh[oldEndIdx];
@@ -465,6 +480,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
465
480
  let newStartVnode = newCh[0];
466
481
  let newEndVnode = newCh[newEndIdx];
467
482
  let node;
483
+ let elmToMove;
468
484
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
469
485
  if (oldStartVnode == null) {
470
486
  // Vnode might have been moved left
@@ -502,7 +518,29 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
502
518
  newStartVnode = newCh[++newStartIdx];
503
519
  }
504
520
  else {
521
+ // createKeyToOldIdx
522
+ idxInOld = -1;
505
523
  {
524
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
525
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
526
+ idxInOld = i;
527
+ break;
528
+ }
529
+ }
530
+ }
531
+ if (idxInOld >= 0) {
532
+ elmToMove = oldCh[idxInOld];
533
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
534
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
535
+ }
536
+ else {
537
+ patch(elmToMove, newStartVnode);
538
+ oldCh[idxInOld] = undefined;
539
+ node = elmToMove.$elm$;
540
+ }
541
+ newStartVnode = newCh[++newStartIdx];
542
+ }
543
+ else {
506
544
  // new element
507
545
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
508
546
  newStartVnode = newCh[++newStartIdx];
@@ -525,7 +563,9 @@ const isSameVnode = (vnode1, vnode2) => {
525
563
  // compare if two vnode to see if they're "technically" the same
526
564
  // need to have the same element tag, and same key to be the same
527
565
  if (vnode1.$tag$ === vnode2.$tag$) {
528
- return true;
566
+ {
567
+ return vnode1.$key$ === vnode2.$key$;
568
+ }
529
569
  }
530
570
  return false;
531
571
  };
@@ -815,6 +855,15 @@ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
815
855
  const parsePropertyValue = (propValue, propType) => {
816
856
  // ensure this value is of the correct prop type
817
857
  if (propValue != null && !isComplexType(propValue)) {
858
+ if (propType & 4 /* Boolean */) {
859
+ // per the HTML spec, any string value means it is a boolean true value
860
+ // but we'll cheat here and say that the string "false" is the boolean false
861
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
862
+ }
863
+ if (propType & 2 /* Number */) {
864
+ // force it to be a number
865
+ return parseFloat(propValue);
866
+ }
818
867
  if (propType & 1 /* String */) {
819
868
  // could have been passed as a number or boolean
820
869
  // but we still want it as a string
@@ -831,6 +880,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
831
880
  const setValue = (ref, propName, newVal, cmpMeta) => {
832
881
  // check our new property value against our internal value
833
882
  const hostRef = getHostRef(ref);
883
+ const elm = hostRef.$hostElement$ ;
834
884
  const oldVal = hostRef.$instanceValues$.get(propName);
835
885
  const flags = hostRef.$flags$;
836
886
  const instance = hostRef.$lazyInstance$ ;
@@ -843,6 +893,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
843
893
  // set our new value!
844
894
  hostRef.$instanceValues$.set(propName, newVal);
845
895
  if (instance) {
896
+ // get an array of method names of watch functions to call
897
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
898
+ const watchMethods = cmpMeta.$watchers$[propName];
899
+ if (watchMethods) {
900
+ // this instance is watching for when this property changed
901
+ watchMethods.map((watchMethodName) => {
902
+ try {
903
+ // fire off each of the watch methods that are watching this property
904
+ instance[watchMethodName](newVal, oldVal, propName);
905
+ }
906
+ catch (e) {
907
+ consoleError(e, elm);
908
+ }
909
+ });
910
+ }
911
+ }
846
912
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
847
913
  // looks like this value actually changed, so we've got work to do!
848
914
  // but only if we've already rendered, otherwise just chill out
@@ -855,6 +921,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
855
921
  };
856
922
  const proxyComponent = (Cstr, cmpMeta, flags) => {
857
923
  if (cmpMeta.$members$) {
924
+ if (Cstr.watchers) {
925
+ cmpMeta.$watchers$ = Cstr.watchers;
926
+ }
858
927
  // It's better to have a const than two Object.entries()
859
928
  const members = Object.entries(cmpMeta.$members$);
860
929
  const prototype = Cstr.prototype;
@@ -959,6 +1028,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
959
1028
  endLoad();
960
1029
  }
961
1030
  if (!Cstr.isProxied) {
1031
+ // we've never proxied this Constructor before
1032
+ // let's add the getters/setters to its prototype before
1033
+ // the first time we create an instance of the implementation
1034
+ {
1035
+ cmpMeta.$watchers$ = Cstr.watchers;
1036
+ }
962
1037
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
963
1038
  Cstr.isProxied = true;
964
1039
  }
@@ -982,6 +1057,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
982
1057
  {
983
1058
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
984
1059
  }
1060
+ {
1061
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1062
+ }
985
1063
  endNewInstance();
986
1064
  }
987
1065
  if (Cstr.style) {
@@ -1100,6 +1178,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1100
1178
  {
1101
1179
  cmpMeta.$listeners$ = compactMeta[3];
1102
1180
  }
1181
+ {
1182
+ cmpMeta.$watchers$ = {};
1183
+ }
1103
1184
  const tagName = cmpMeta.$tagName$;
1104
1185
  const HostElement = class extends HTMLElement {
1105
1186
  // StencilLazyHost
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-31255e29.js');
5
+ const index = require('./index-c2c4531d.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["grw-app_7.cjs",[[1,"grw-app",{"api":[1],"portals":[1],"appName":[1,"app-name"],"colorPrimary":[1,"color-primary"],"colorPrimaryTint":[1,"color-primary-tint"],"showTrek":[32],"showMap":[32],"currentTrekId":[32]},[[0,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"]]],[1,"grw-treks-list",{"treksToDisplay":[32]}],[0,"grw-map",{"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"]}],[1,"grw-trek-detail",{"trek":[16]}],[0,"grw-trek-provider",{"api":[1],"trekId":[1,"trek-id"]}],[0,"grw-treks-provider",{"api":[1],"portals":[1]}],[1,"grw-trek-card",{"trek":[16]}]]]], options);
17
+ return index.bootstrapLazy([["grw-app_11.cjs",[[1,"grw-app",{"api":[1],"language":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"appName":[1,"app-name"],"urlLayer":[1,"url-layer"],"center":[1],"zoom":[8],"attribution":[1],"colorPrimary":[1,"color-primary"],"colorPrimaryShade":[1,"color-primary-shade"],"colorPrimaryTint":[1,"color-primary-tint"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"showTrek":[32],"showMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32]},[[0,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"]]],[1,"grw-trek-detail",{"trek":[16],"colorPrimary":[1,"color-primary"],"colorPrimaryShade":[1,"color-primary-shade"],"colorPrimaryTint":[1,"color-primary-tint"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32]}],[1,"grw-treks-list",{"colorPrimary":[1,"color-primary"],"colorPrimaryTint":[1,"color-primary-tint"],"isLargeView":[4,"is-large-view"],"treksToDisplay":[32]}],[1,"grw-filter",{"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterNameProperty":[1,"filter-name-property"]}],[0,"grw-map",{"urlLayer":[1,"url-layer"],"attribution":[1],"center":[1],"zoom":[2],"colorPrimary":[1,"color-primary"],"colorPrimaryTint":[1,"color-primary-tint"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"mapIsReady":[32]}],[1,"grw-trek-provider",{"language":[1],"api":[1],"trekId":[1,"trek-id"]}],[1,"grw-treks-provider",{"language":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1]}],[1,"grw-information-desk-detail",{"informationDesk":[16]}],[1,"grw-poi-detail",{"poi":[16]}],[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}],[1,"grw-trek-card",{"trek":[16],"colorPrimary":[1,"color-primary"],"colorPrimaryTint":[1,"color-primary-tint"],"isLargeView":[4,"is-large-view"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M80,464V68.14a8,8,0,0,1,4-6.9C91.81,56.66,112.92,48,160,48c64,0,145,48,192,48a199.53,199.53,0,0,0,77.23-15.77A2,2,0,0,1,432,82.08V301.44a4,4,0,0,1-2.39,3.65C421.37,308.7,392.33,320,352,320c-48,0-128-32-192-32s-80,16-80,16" style=";fill:none;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M80,464V68.14a8,8,0,0,1,4-6.9C91.81,56.66,112.92,48,160,48c64,0,145,48,192,48a199.53,199.53,0,0,0,77.23-15.77A2,2,0,0,1,432,82.08V301.44a4,4,0,0,1-2.39,3.65C421.37,308.7,392.33,320,352,320c-48,0-128-32-192-32s-80,16-80,16" style=";fill:#ffffff;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "entries": [
3
3
  "./components/grw-app/grw-app.js",
4
+ "./components/grw-filter/grw-filter.js",
5
+ "./components/grw-information-desk-detail/grw-information-desk-detail.js",
4
6
  "./components/grw-map/grw-map.js",
7
+ "./components/grw-poi-detail/grw-poi-detail.js",
8
+ "./components/grw-sensitive-area-detail/grw-sensitive-area-detail.js",
5
9
  "./components/grw-trek-card/grw-trek-card.js",
6
10
  "./components/grw-trek-detail/grw-trek-detail.js",
7
11
  "./components/grw-treks-list/grw-treks-list.js",
@@ -1,34 +1,108 @@
1
- .header-container {
1
+ .app-container {
2
+ position: relative;
3
+ height: 100%;
4
+ max-height: 100vh;
5
+ font-family: "Roboto";
6
+ }
7
+
8
+ .header-container,
9
+ .large-view-header-container {
2
10
  display: flex;
3
11
  align-items: center;
4
12
  background-color: var(--color-primary);
5
13
  height: 64px;
6
14
  }
7
- .header-container .title {
8
- color: #ffffff;
9
- font-size: 24px;
10
- margin-left: 24px;
11
- }
12
- .header-container .arrow-back-icon {
15
+ .header-container .arrow-back-icon,
16
+ .large-view-header-container .arrow-back-icon {
13
17
  width: 48px;
14
18
  height: auto;
15
19
  margin-left: 24px;
16
20
  }
17
- .header-container .arrow-back-icon svg {
21
+ .header-container .arrow-back-icon svg,
22
+ .large-view-header-container .arrow-back-icon svg {
18
23
  cursor: pointer;
19
24
  width: 48px;
20
25
  height: auto;
21
26
  }
27
+ .header-container .handle-filters-button,
28
+ .large-view-header-container .handle-filters-button {
29
+ user-select: none;
30
+ cursor: pointer;
31
+ color: var(--color-primary);
32
+ background-color: #ffffff;
33
+ margin-left: 36px;
34
+ border-radius: 8px;
35
+ padding: 8px;
36
+ }
37
+ .header-container .attribution-container,
38
+ .large-view-header-container .attribution-container {
39
+ position: absolute;
40
+ right: 24px;
41
+ }
42
+ .header-container .attribution-container a,
43
+ .large-view-header-container .attribution-container a {
44
+ color: #ffffff;
45
+ text-decoration: none;
46
+ }
22
47
 
23
- .loader-container {
48
+ .options-container {
49
+ height: calc(100% - 64px);
50
+ position: absolute;
51
+ width: 100%;
52
+ z-index: 1100;
53
+ top: 64px;
54
+ }
55
+
56
+ .filters-container {
57
+ position: absolute;
58
+ width: 100%;
59
+ background-color: #ffffff;
60
+ padding: 36px 0px;
61
+ z-index: 1100;
62
+ }
63
+ .filters-container .close-filters-button {
64
+ cursor: pointer;
65
+ font-weight: bold;
66
+ position: absolute;
67
+ top: 12px;
68
+ right: 12px;
69
+ padding: 12px;
70
+ border-radius: 12px;
71
+ color: var(--color-primary);
72
+ border: 1px var(--color-primary) solid;
73
+ }
74
+ .filters-container .close-filters-button:hover {
75
+ background-color: var(--color-primary);
76
+ color: #ffffff;
77
+ }
78
+ .filters-container .filter-margin-top {
79
+ margin-top: 24px;
80
+ }
81
+ .filters-container .current-treks-length {
82
+ margin: 0px 0px 32px 8px;
83
+ color: var(--color-primary);
84
+ font-size: 24px;
85
+ font-weight: bold;
86
+ }
87
+
88
+ .back-filters-container {
89
+ background-color: rgba(0, 0, 0, 0.5);
90
+ width: 100%;
91
+ height: calc(100% - 64px);
24
92
  position: absolute;
93
+ z-index: 1099;
94
+ top: 64px;
95
+ }
96
+
97
+ .loader-container,
98
+ .large-view-loader-container {
25
99
  display: flex;
26
100
  justify-content: center;
27
101
  align-items: center;
28
- width: 100vw;
29
102
  height: 100%;
30
103
  }
31
- .loader-container .loader {
104
+ .loader-container .loader,
105
+ .large-view-loader-container .loader {
32
106
  width: 48px;
33
107
  height: 48px;
34
108
  border: 5px solid var(--color-primary-tint);
@@ -48,20 +122,22 @@
48
122
  }
49
123
 
50
124
  .content-container {
125
+ position: relative;
51
126
  display: flex;
52
- height: calc(100vh - 64px);
127
+ height: calc(100% - 64px);
53
128
  }
54
129
 
55
130
  .app-treks-list-container,
56
- .app-trek-detail-container {
57
- width: 100vw;
131
+ .app-trek-detail-container,
132
+ .large-view-app-treks-list-container,
133
+ .large-view-app-trek-detail-container {
58
134
  height: 100%;
59
135
  }
60
136
 
61
- .app-map-container {
62
- position: absolute;
63
- width: 100vw;
64
- height: calc(100vh - 64px);
137
+ .app-map-container,
138
+ .large-view-app-map-container {
139
+ width: 100%;
140
+ height: 100%;
65
141
  }
66
142
 
67
143
  .map-visibility-button {
@@ -84,29 +160,41 @@
84
160
  text-align: center;
85
161
  }
86
162
 
87
- @media (min-width: 664px) {
88
- .map-visibility-button {
89
- display: none;
90
- }
91
-
92
- .header-container .title {
93
- font-size: 32px;
94
- }
163
+ .header-container .title {
164
+ font-size: 24px;
165
+ }
95
166
 
96
- .loader-container {
97
- position: relative;
98
- width: 50vw;
99
- }
167
+ .loader-container {
168
+ position: absolute;
169
+ width: 100%;
170
+ }
100
171
 
101
- .app-treks-list-container,
172
+ .app-treks-list-container,
102
173
  .app-trek-detail-container {
103
- width: 50vw;
104
- height: 100%;
105
- }
174
+ width: 100%;
175
+ }
106
176
 
107
- .app-map-container {
108
- position: relative;
109
- width: 50vw;
110
- height: 100%;
111
- }
177
+ .app-map-container {
178
+ position: relative;
179
+ width: 100%;
180
+ position: absolute;
181
+ }
182
+
183
+ .large-view-header-container .title {
184
+ font-size: 32px;
185
+ }
186
+
187
+ .large-view-loader-container {
188
+ position: relative;
189
+ width: 50%;
190
+ }
191
+
192
+ .large-view-app-treks-list-container,
193
+ .large-view-app-trek-detail-container {
194
+ width: 50%;
195
+ }
196
+
197
+ .large-view-app-map-container {
198
+ position: relative;
199
+ width: 50%;
112
200
  }