@net7/boilerplate-muruca 5.2.3 → 5.2.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 (42) hide show
  1. package/esm2022/lib/components/advanced-result/advanced-result.mjs +3 -3
  2. package/esm2022/lib/components/form/form.mjs +3 -3
  3. package/esm2022/lib/components/form-wrapper-accordion/form-wrapper-accordion.mjs +3 -3
  4. package/esm2022/lib/components/gallery/gallery.mjs +5 -5
  5. package/esm2022/lib/components/metadata-dynamic/metadata-dynamic.mjs +3 -3
  6. package/esm2022/lib/components/metadata-with-readmore/metadata-with-readmore.mjs +3 -3
  7. package/esm2022/lib/components/read-more/read-more.mjs +3 -3
  8. package/esm2022/lib/components/resource-modal/resource-modal.mjs +3 -3
  9. package/esm2022/lib/components/search-page-description/search-page-description.mjs +3 -3
  10. package/esm2022/lib/event-handlers/gallery.eh.mjs +3 -1
  11. package/esm2022/lib/guards/dynamic-path.guard.mjs +3 -3
  12. package/esm2022/lib/guards/locale-dependencies.guard.mjs +3 -3
  13. package/esm2022/lib/layouts/advanced-results-layout/advanced-results-layout.mjs +3 -3
  14. package/esm2022/lib/layouts/advanced-search-layout/advanced-search-layout.mjs +3 -3
  15. package/esm2022/lib/layouts/home-layout/home-layout.mjs +3 -3
  16. package/esm2022/lib/layouts/itinerary-layout/itinerary-layout.mjs +3 -3
  17. package/esm2022/lib/layouts/map-layout/map-layout.mjs +3 -3
  18. package/esm2022/lib/layouts/posts-layout/posts-layout.mjs +3 -3
  19. package/esm2022/lib/layouts/resource-layout/resource-layout.mjs +3 -3
  20. package/esm2022/lib/layouts/search-facets-layout/search-facets-layout.mjs +3 -3
  21. package/esm2022/lib/layouts/search-layout/search-layout.mjs +3 -3
  22. package/esm2022/lib/layouts/static-layout/static-layout.mjs +3 -3
  23. package/esm2022/lib/layouts/timeline-layout/timeline-layout.ds.mjs +5 -2
  24. package/esm2022/lib/layouts/timeline-layout/timeline-layout.mjs +23 -6
  25. package/esm2022/lib/n7-boilerplate-muruca.module.mjs +4 -4
  26. package/esm2022/lib/pipes/keep-html.pipe.mjs +3 -3
  27. package/esm2022/lib/services/footer.service.mjs +3 -3
  28. package/esm2022/lib/services/layout-state.service.mjs +3 -3
  29. package/esm2022/lib/services/locale.service.mjs +3 -3
  30. package/esm2022/lib/services/menu.service.mjs +3 -3
  31. package/esm2022/lib/services/resource-modal.service.mjs +3 -3
  32. package/esm2022/lib/services/search.service.mjs +3 -3
  33. package/esm2022/lib/services/translations-loader.service.mjs +3 -3
  34. package/fesm2022/net7-boilerplate-muruca.mjs +139 -120
  35. package/fesm2022/net7-boilerplate-muruca.mjs.map +1 -1
  36. package/lib/components/gallery/gallery.d.ts +4 -4
  37. package/lib/layouts/timeline-layout/timeline-layout.d.ts +1 -0
  38. package/lib/layouts/timeline-layout/timeline-layout.ds.d.ts +1 -0
  39. package/package.json +1 -1
  40. package/src/lib/styles/muruca/components/_gallery.scss +1 -1
  41. package/src/lib/styles/muruca/components/_wp-content.scss +45 -15
  42. package/src/lib/styles/muruca/layouts/_timeline.scss +2 -1
@@ -1,8 +1,4 @@
1
1
  import * as i0 from "@angular/core";
2
- export type GalleryData = {
3
- selected: null | GalleryItem;
4
- items: GalleryItem[];
5
- };
6
2
  export type GalleryItem = {
7
3
  id: string | number;
8
4
  thumbSrc: string;
@@ -10,6 +6,10 @@ export type GalleryItem = {
10
6
  title: string;
11
7
  payload: any;
12
8
  };
9
+ export type GalleryData = {
10
+ selected: null | GalleryItem;
11
+ items: GalleryItem[];
12
+ };
13
13
  export declare class MrGalleryComponent {
14
14
  data: GalleryData;
15
15
  emit: (type: string, payload?: any) => void;
@@ -33,6 +33,7 @@ export declare class MrTimelineLayoutComponent extends AbstractLayout implements
33
33
  };
34
34
  ngOnInit(): void;
35
35
  ngOnDestroy(): void;
36
+ loadWidgets(): void;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<MrTimelineLayoutComponent, never>;
37
38
  static ɵcmp: i0.ɵɵComponentDeclaration<MrTimelineLayoutComponent, "mr-timeline-layout", never, {}, {}, never, never, false, never>;
38
39
  }
@@ -22,6 +22,7 @@ export declare class MrTimelineLayoutDS extends LayoutDataSource {
22
22
  eventDescription: string;
23
23
  timelineData: TimelineData;
24
24
  hasMap: boolean;
25
+ hasGallery: boolean;
25
26
  route: any;
26
27
  mapHeader: any;
27
28
  timelineListener$: Subject<Timeline>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/boilerplate-muruca",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.11",
6
6
  "@angular/core": "^17.3.11"
@@ -38,7 +38,7 @@
38
38
  padding: 0;
39
39
 
40
40
  img {
41
- height: 100vh;
41
+ height: 90vh;
42
42
  width: 100%;
43
43
  object-fit: contain;
44
44
  position: absolute;
@@ -284,35 +284,55 @@
284
284
  .mr-wp-content {
285
285
  .wp-block-gallery {
286
286
  display: flex;
287
+ width: 100%;
288
+ margin-bottom: 32px;
289
+ padding-bottom: 32px;
290
+ border-bottom: 1px solid #dddddd;
287
291
  @include consistent;
288
292
 
289
293
  .blocks-gallery-grid {
290
294
  // UL element
291
295
  @include consistent;
296
+ width: 100%;
292
297
  padding: 0;
293
298
  margin: 0 auto;
294
299
  list-style: none;
295
300
  max-width: none;
301
+ display: flex;
302
+ flex-wrap: wrap;
303
+ justify-content: flex-start;
304
+ row-gap: 25px;
305
+ column-gap: 25px;
306
+
307
+ &::after {
308
+ content: none;
309
+ }
296
310
  }
297
311
 
298
312
  .blocks-gallery-item {
313
+ border: 1px solid #dddddd;
314
+ transition: all $transition-durations;
315
+
299
316
  figure {
300
317
  margin: 0;
301
318
 
302
319
  a {
303
320
  display: block;
304
321
  width: 150px;
305
- height: 150px;
306
- overflow: hidden;
307
- border-radius: $border-radius;
308
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.095),
309
- 0 5px 25px rgba(0, 0, 0, 0.095);
310
- transition: all $transition-durations;
311
-
322
+ // height: 150px;
323
+ // overflow: hidden;
324
+ padding: 8px;
325
+ // border-radius: $border-radius;
326
+ // box-shadow: 0 1px 1px rgba(0, 0, 0, 0.095), 0 5px 25px rgba(0, 0, 0, 0.095);
327
+
312
328
  img {
313
329
  border-radius: 0;
314
330
  box-shadow: none;
315
331
  }
332
+
333
+ figcaption {
334
+ color: #5397c7;
335
+ }
316
336
  }
317
337
  }
318
338
 
@@ -324,15 +344,10 @@
324
344
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.095),
325
345
  0 5px 25px rgba(0, 0, 0, 0.095);
326
346
  }
347
+ }
327
348
 
328
- figure:hover a {
329
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2),
330
- 0 10px 25px rgba(0, 0, 0, 0.1);
331
-
332
- img {
333
- transform: scale(1.1);
334
- }
335
- }
349
+ .blocks-gallery-item:hover {
350
+ transform: scale(1.1);
336
351
  }
337
352
 
338
353
  .blocks-gallery-item__caption {
@@ -414,6 +429,21 @@
414
429
  }
415
430
  }
416
431
  }
432
+
433
+ // ZOOM
434
+ .mr-gallery__zoom-figcaption {
435
+ height: 9.8vh;
436
+ display: flex;
437
+ align-items: center;
438
+ justify-content: center;
439
+ width: 100%;
440
+ position: absolute;
441
+ bottom: 0;
442
+ background-color: black;
443
+ opacity: 0.8;
444
+ font-size: 18px;
445
+ color: white;
446
+ }
417
447
  }
418
448
 
419
449
  /* ------------------------------------ *\
@@ -127,7 +127,8 @@
127
127
 
128
128
  &__description-text {
129
129
  font-size: 16px;
130
- padding: 0 15px 0 5px;
130
+ // padding: 0 5px 0 5px;
131
+ text-align: left;
131
132
  }
132
133
  }
133
134
  }