@rededor/site-front-end-lib 20.0.40 → 20.1.0-alpha.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.
Files changed (183) hide show
  1. package/README.md +187 -187
  2. package/components/algolia-search/index.d.ts +1 -1
  3. package/components/filters/filter-generic/index.d.ts +3 -3
  4. package/components/filters/filter-planos-convenios/index.d.ts +3 -2
  5. package/components/footer/index.d.ts +1 -1
  6. package/components/header/index.d.ts +1 -1
  7. package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +2 -2
  8. package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +1 -1
  9. package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +14 -14
  10. package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +1 -1
  11. package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +7 -7
  12. package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +1 -1
  13. package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +4 -4
  14. package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +1 -1
  15. package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +12 -12
  16. package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +1 -1
  17. package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +4 -4
  18. package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +1 -1
  19. package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +4 -4
  20. package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +1 -1
  21. package/fesm2022/rededor-site-front-end-lib-components-error.mjs +8 -8
  22. package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +1 -1
  23. package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +3 -3
  24. package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +1 -1
  25. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +15 -15
  26. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
  27. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +16 -16
  28. package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +1 -1
  29. package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +3 -3
  30. package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
  31. package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +3 -3
  32. package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +1 -1
  33. package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +5 -5
  34. package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +1 -1
  35. package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +5 -5
  36. package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
  37. package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +5 -5
  38. package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +1 -1
  39. package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +1 -1
  40. package/fesm2022/rededor-site-front-end-lib-components-header.mjs +5 -5
  41. package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
  42. package/fesm2022/rededor-site-front-end-lib-components-image.mjs +2 -2
  43. package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +1 -1
  44. package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +3 -3
  45. package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +1 -1
  46. package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +3 -3
  47. package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +1 -1
  48. package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +3 -3
  49. package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +1 -1
  50. package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +2 -2
  51. package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +1 -1
  52. package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +4 -4
  53. package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +1 -1
  54. package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +2 -2
  55. package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +1 -1
  56. package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +2 -2
  57. package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +1 -1
  58. package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +4 -4
  59. package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +1 -1
  60. package/fesm2022/rededor-site-front-end-lib-components-search.mjs +5 -5
  61. package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +1 -1
  62. package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +3 -3
  63. package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +1 -1
  64. package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +12 -12
  65. package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +1 -1
  66. package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +5 -5
  67. package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +1 -1
  68. package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +5 -5
  69. package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +1 -1
  70. package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +4 -4
  71. package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +1 -1
  72. package/fesm2022/rededor-site-front-end-lib-core.mjs +204 -204
  73. package/fesm2022/rededor-site-front-end-lib-core.mjs.map +1 -1
  74. package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +1 -1
  75. package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +1 -1
  76. package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +1 -1
  77. package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +1 -1
  78. package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +1 -1
  79. package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs.map +1 -1
  80. package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +1 -1
  81. package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +1 -1
  82. package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
  83. package/package.json +2 -133
  84. package/styles/_breakpoints.scss +5 -5
  85. package/cura/accordion/index.d.ts +0 -120
  86. package/cura/api/index.d.ts +0 -359
  87. package/cura/badges/cura-badge-counter/index.d.ts +0 -38
  88. package/cura/badges/cura-badge-distance/index.d.ts +0 -21
  89. package/cura/badges/cura-badge-dot/index.d.ts +0 -29
  90. package/cura/badges/cura-badge-pill/index.d.ts +0 -42
  91. package/cura/badges/index.d.ts +0 -5
  92. package/cura/buttons/cura-button/index.d.ts +0 -90
  93. package/cura/buttons/cura-button-outline/index.d.ts +0 -90
  94. package/cura/buttons/cura-button-select/index.d.ts +0 -39
  95. package/cura/buttons/cura-button-transparent/index.d.ts +0 -87
  96. package/cura/buttons/index.d.ts +0 -15
  97. package/cura/cards/cura-card/index.d.ts +0 -49
  98. package/cura/feedback/cura-alert/index.d.ts +0 -55
  99. package/cura/feedback/cura-modal/index.d.ts +0 -97
  100. package/cura/feedback/cura-toast/index.d.ts +0 -104
  101. package/cura/forms/cura-checkbox/index.d.ts +0 -160
  102. package/cura/forms/cura-input-text/index.d.ts +0 -236
  103. package/cura/forms/cura-label/index.d.ts +0 -47
  104. package/cura/forms/cura-radio/index.d.ts +0 -148
  105. package/cura/forms/cura-select/index.d.ts +0 -154
  106. package/cura/forms/cura-select-option/index.d.ts +0 -54
  107. package/cura/forms/cura-select-state/index.d.ts +0 -72
  108. package/cura/forms/cura-switch/index.d.ts +0 -113
  109. package/cura/forms/cura-textarea/index.d.ts +0 -113
  110. package/cura/forms/index.d.ts +0 -20
  111. package/cura/icons/cura-icon/index.d.ts +0 -46
  112. package/cura/loaders/cura-loader-bar/index.d.ts +0 -22
  113. package/cura/loaders/cura-loader-circle/index.d.ts +0 -24
  114. package/cura/texts/cura-display/index.d.ts +0 -54
  115. package/cura/texts/cura-heading/index.d.ts +0 -65
  116. package/cura/texts/cura-paragraph/index.d.ts +0 -54
  117. package/cura/texts/index.d.ts +0 -7
  118. package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +0 -252
  119. package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +0 -1
  120. package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +0 -643
  121. package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +0 -1
  122. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +0 -90
  123. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +0 -1
  124. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +0 -55
  125. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +0 -1
  126. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +0 -66
  127. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +0 -1
  128. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +0 -91
  129. package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +0 -1
  130. package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs +0 -4
  131. package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs.map +0 -1
  132. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +0 -170
  133. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +0 -1
  134. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +0 -135
  135. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +0 -1
  136. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +0 -161
  137. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +0 -1
  138. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +0 -170
  139. package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +0 -1
  140. package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs +0 -13
  141. package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +0 -1
  142. package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +0 -72
  143. package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +0 -1
  144. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +0 -90
  145. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +0 -1
  146. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +0 -105
  147. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +0 -1
  148. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +0 -198
  149. package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +0 -1
  150. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +0 -262
  151. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +0 -1
  152. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +0 -586
  153. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +0 -1
  154. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +0 -82
  155. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +0 -1
  156. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +0 -243
  157. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +0 -1
  158. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +0 -89
  159. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +0 -1
  160. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs +0 -123
  161. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs.map +0 -1
  162. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +0 -365
  163. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +0 -1
  164. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +0 -182
  165. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +0 -1
  166. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs +0 -209
  167. package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map +0 -1
  168. package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs +0 -21
  169. package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +0 -1
  170. package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +0 -88
  171. package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +0 -1
  172. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +0 -44
  173. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +0 -1
  174. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +0 -49
  175. package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +0 -1
  176. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +0 -84
  177. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +0 -1
  178. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +0 -104
  179. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +0 -1
  180. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +0 -89
  181. package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +0 -1
  182. package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs +0 -4
  183. package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs.map +0 -1
@@ -3,7 +3,7 @@ import { isPlatformBrowser, CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, PLATFORM_ID, DOCUMENT, ChangeDetectorRef, model, computed, HostListener, HostBinding, Component } from '@angular/core';
5
5
  import { RdsiteModalDrawerComponentStyle } from '@rededor/site-front-end-lib/core';
6
- import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
6
+ import { CuraApiService } from '@rededor/cura-angular/api';
7
7
 
8
8
  class ModalDrawerComponent {
9
9
  constructor() {
@@ -115,11 +115,11 @@ class ModalDrawerComponent {
115
115
  this.modalContent.set(null);
116
116
  }
117
117
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ModalDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
118
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: ModalDrawerComponent, isStandalone: true, selector: "dialog[rdsite-modal-drawer]#rdsite-modal-drawer", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, modalContent: { classPropertyName: "modalContent", publicName: "modalContent", isSignal: true, isRequired: false, transformFunction: null }, componentStyle: { classPropertyName: "componentStyle", publicName: "componentStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { id: "idChange", modalContent: "modalContentChange", componentStyle: "componentStyleChange" }, host: { listeners: { "touchstart": "onDragStart($event)", "touchmove": "onDragMove($event)", "touchend": "onDragEnd($event)" }, properties: { "class": "this.classBinding", "style": "this.styleBinding" } }, ngImport: i0, template: "<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\n </div>\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n </div>\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\n @if (modalContent()) {\n <ng-container>\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container>\n </ng-container>\n }\n </div>\n </div>\n</div>\n", styles: [":host .sheet{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:fixed;inset:0;z-index:9999;visibility:visible;transition:opacity .5s,visibility .5s}:host .sheet .overlay{position:absolute;inset:0;z-index:-1;background:var(--primary-dark)}:host .sheet .contents{display:flex;flex-direction:column;border-radius:1rem 1rem 0 0;background:#fff;overflow-y:hidden;--default-transitions: transform .8s, border-radius .8s;transition:var(--default-transitions);transform:translateY(0);width:100%;box-sizing:border-box}:host .sheet .contents:not(.not-selectable){transition:var(--default-transitions),height .8s}:host .sheet .controls{display:flex;position:relative}:host .sheet .draggable-area{position:absolute;top:0;width:100%;height:80px;cursor:grab;background-color:#fff}:host .sheet .draggable-thumb{position:absolute;z-index:2;left:50%;translate:-50%;top:16px;width:58px;height:8px;background-color:#e9e9e9;border-radius:8px}:host .sheet .close-sheet{position:absolute;top:5px;right:5px}:host .sheet .close-sheet:hover rdsl-icon{stroke:var(--secondary-base)}:host .sheet .close-sheet:hover rdsl-icon ::ng-deep cura-icon{--color: var(--secondary-base) !important}:host .sheet .body{flex-grow:1;width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem;box-sizing:border-box}:host .sheet[aria-hidden=true] .contents{transform:translateY(100%)}:host .sheet[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none}:host.doctor-card .draggable-area{background-color:#ccd9e7}:host.doctor-card .draggable-area .draggable-thumb{background-color:#85a0bc;border-radius:8px}:host.doctor-card .close-sheet{display:none}:host.doctor-card .img,:host.doctor-card .icon{position:absolute;z-index:2;left:50%;translate:-50%;top:32px;width:84px;height:84px;border-radius:65px;border:2px solid var(--primary-base);display:flex;justify-content:center;align-items:center}:host.doctor-card .img{background-position:50%;background-size:cover}:host.doctor-card .icon{background-color:#d7f3ff}:host.doctor-card .icon rdsl-icon{width:97%;height:auto}:host.doctor-card .icon rdsl-icon{stroke:var(--primary-base);stroke-width:3px}:host.doctor-card .icon rdsl-icon ::ng-deep cura-icon{--color: var(--primary-base) !important}:host.doctor-card p{text-align:left;padding-bottom:8px}:host.doctor-card .info{padding-top:120px}:host.doctor-card .info p{color:#4f4f4f;font-size:18px;font-weight:500;line-height:28px}:host.doctor-card .info .description p:first-of-type{color:#828282;font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .description p:nth-of-type(2){color:var(--primary-base);font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .curriculo{padding-top:20px;overflow-y:auto;max-height:40vh}:host.doctor-card .info .curriculo li{list-style:none;display:flex;gap:10px;text-align:left;margin-bottom:12px;font-size:14px;line-height:125%;color:#4a4a4a}:host.doctor-card .info .curriculo li:before{content:\"\";width:8px;height:8px;border-radius:50%;background-color:var(--secondary-base);display:block;flex-shrink:0;margin-top:5px}:host.doctor-card .schedule{padding-top:24px}:host.doctor-card .schedule .rdsl-button-small{width:100%;height:38px}:host.form-fallback .sheet .contents{height:40vh;width:90%}:host.form-fallback .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents{width:90%;border:2px solid #d4d4d4}:host.filter-doencas .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents .close-sheet{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
118
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: ModalDrawerComponent, isStandalone: true, selector: "dialog[rdsite-modal-drawer]#rdsite-modal-drawer", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, modalContent: { classPropertyName: "modalContent", publicName: "modalContent", isSignal: true, isRequired: false, transformFunction: null }, componentStyle: { classPropertyName: "componentStyle", publicName: "componentStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { id: "idChange", modalContent: "modalContentChange", componentStyle: "componentStyleChange" }, host: { listeners: { "touchstart": "onDragStart($event)", "touchmove": "onDragMove($event)", "touchend": "onDragEnd($event)" }, properties: { "class": "this.classBinding", "style": "this.styleBinding" } }, ngImport: i0, template: "<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\r\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\r\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\r\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\r\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\r\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\r\n </div>\r\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\r\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n </div>\r\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\r\n @if (modalContent()) {\r\n <ng-container>\r\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container>\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [":host .sheet{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:fixed;inset:0;z-index:9999;visibility:visible;transition:opacity .5s,visibility .5s}:host .sheet .overlay{position:absolute;inset:0;z-index:-1;background:var(--primary-dark)}:host .sheet .contents{display:flex;flex-direction:column;border-radius:1rem 1rem 0 0;background:#fff;overflow-y:hidden;--default-transitions: transform .8s, border-radius .8s;transition:var(--default-transitions);transform:translateY(0);width:100%;box-sizing:border-box}:host .sheet .contents:not(.not-selectable){transition:var(--default-transitions),height .8s}:host .sheet .controls{display:flex;position:relative}:host .sheet .draggable-area{position:absolute;top:0;width:100%;height:80px;cursor:grab;background-color:#fff}:host .sheet .draggable-thumb{position:absolute;z-index:2;left:50%;translate:-50%;top:16px;width:58px;height:8px;background-color:#e9e9e9;border-radius:8px}:host .sheet .close-sheet{position:absolute;top:5px;right:5px}:host .sheet .close-sheet:hover rdsl-icon{stroke:var(--secondary-base)}:host .sheet .close-sheet:hover rdsl-icon ::ng-deep cura-icon{--color: var(--secondary-base) !important}:host .sheet .body{flex-grow:1;width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem;box-sizing:border-box}:host .sheet[aria-hidden=true] .contents{transform:translateY(100%)}:host .sheet[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none}:host.doctor-card .draggable-area{background-color:#ccd9e7}:host.doctor-card .draggable-area .draggable-thumb{background-color:#85a0bc;border-radius:8px}:host.doctor-card .close-sheet{display:none}:host.doctor-card .img,:host.doctor-card .icon{position:absolute;z-index:2;left:50%;translate:-50%;top:32px;width:84px;height:84px;border-radius:65px;border:2px solid var(--primary-base);display:flex;justify-content:center;align-items:center}:host.doctor-card .img{background-position:50%;background-size:cover}:host.doctor-card .icon{background-color:#d7f3ff}:host.doctor-card .icon rdsl-icon{width:97%;height:auto}:host.doctor-card .icon rdsl-icon{stroke:var(--primary-base);stroke-width:3px}:host.doctor-card .icon rdsl-icon ::ng-deep cura-icon{--color: var(--primary-base) !important}:host.doctor-card p{text-align:left;padding-bottom:8px}:host.doctor-card .info{padding-top:120px}:host.doctor-card .info p{color:#4f4f4f;font-size:18px;font-weight:500;line-height:28px}:host.doctor-card .info .description p:first-of-type{color:#828282;font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .description p:nth-of-type(2){color:var(--primary-base);font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .curriculo{padding-top:20px;overflow-y:auto;max-height:40vh}:host.doctor-card .info .curriculo li{list-style:none;display:flex;gap:10px;text-align:left;margin-bottom:12px;font-size:14px;line-height:125%;color:#4a4a4a}:host.doctor-card .info .curriculo li:before{content:\"\";width:8px;height:8px;border-radius:50%;background-color:var(--secondary-base);display:block;flex-shrink:0;margin-top:5px}:host.doctor-card .schedule{padding-top:24px}:host.doctor-card .schedule .rdsl-button-small{width:100%;height:38px}:host.form-fallback .sheet .contents{height:40vh;width:90%}:host.form-fallback .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents{width:90%;border:2px solid #d4d4d4}:host.filter-doencas .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents .close-sheet{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
119
119
  }
120
120
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ModalDrawerComponent, decorators: [{
121
121
  type: Component,
122
- args: [{ selector: 'dialog[rdsite-modal-drawer]#rdsite-modal-drawer', imports: [CommonModule], template: "<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\n </div>\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n </div>\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\n @if (modalContent()) {\n <ng-container>\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container>\n </ng-container>\n }\n </div>\n </div>\n</div>\n", styles: [":host .sheet{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:fixed;inset:0;z-index:9999;visibility:visible;transition:opacity .5s,visibility .5s}:host .sheet .overlay{position:absolute;inset:0;z-index:-1;background:var(--primary-dark)}:host .sheet .contents{display:flex;flex-direction:column;border-radius:1rem 1rem 0 0;background:#fff;overflow-y:hidden;--default-transitions: transform .8s, border-radius .8s;transition:var(--default-transitions);transform:translateY(0);width:100%;box-sizing:border-box}:host .sheet .contents:not(.not-selectable){transition:var(--default-transitions),height .8s}:host .sheet .controls{display:flex;position:relative}:host .sheet .draggable-area{position:absolute;top:0;width:100%;height:80px;cursor:grab;background-color:#fff}:host .sheet .draggable-thumb{position:absolute;z-index:2;left:50%;translate:-50%;top:16px;width:58px;height:8px;background-color:#e9e9e9;border-radius:8px}:host .sheet .close-sheet{position:absolute;top:5px;right:5px}:host .sheet .close-sheet:hover rdsl-icon{stroke:var(--secondary-base)}:host .sheet .close-sheet:hover rdsl-icon ::ng-deep cura-icon{--color: var(--secondary-base) !important}:host .sheet .body{flex-grow:1;width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem;box-sizing:border-box}:host .sheet[aria-hidden=true] .contents{transform:translateY(100%)}:host .sheet[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none}:host.doctor-card .draggable-area{background-color:#ccd9e7}:host.doctor-card .draggable-area .draggable-thumb{background-color:#85a0bc;border-radius:8px}:host.doctor-card .close-sheet{display:none}:host.doctor-card .img,:host.doctor-card .icon{position:absolute;z-index:2;left:50%;translate:-50%;top:32px;width:84px;height:84px;border-radius:65px;border:2px solid var(--primary-base);display:flex;justify-content:center;align-items:center}:host.doctor-card .img{background-position:50%;background-size:cover}:host.doctor-card .icon{background-color:#d7f3ff}:host.doctor-card .icon rdsl-icon{width:97%;height:auto}:host.doctor-card .icon rdsl-icon{stroke:var(--primary-base);stroke-width:3px}:host.doctor-card .icon rdsl-icon ::ng-deep cura-icon{--color: var(--primary-base) !important}:host.doctor-card p{text-align:left;padding-bottom:8px}:host.doctor-card .info{padding-top:120px}:host.doctor-card .info p{color:#4f4f4f;font-size:18px;font-weight:500;line-height:28px}:host.doctor-card .info .description p:first-of-type{color:#828282;font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .description p:nth-of-type(2){color:var(--primary-base);font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .curriculo{padding-top:20px;overflow-y:auto;max-height:40vh}:host.doctor-card .info .curriculo li{list-style:none;display:flex;gap:10px;text-align:left;margin-bottom:12px;font-size:14px;line-height:125%;color:#4a4a4a}:host.doctor-card .info .curriculo li:before{content:\"\";width:8px;height:8px;border-radius:50%;background-color:var(--secondary-base);display:block;flex-shrink:0;margin-top:5px}:host.doctor-card .schedule{padding-top:24px}:host.doctor-card .schedule .rdsl-button-small{width:100%;height:38px}:host.form-fallback .sheet .contents{height:40vh;width:90%}:host.form-fallback .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents{width:90%;border:2px solid #d4d4d4}:host.filter-doencas .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents .close-sheet{display:none}\n"] }]
122
+ args: [{ selector: 'dialog[rdsite-modal-drawer]#rdsite-modal-drawer', imports: [CommonModule], template: "<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\r\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\r\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\r\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\r\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\r\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\r\n </div>\r\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\r\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n </div>\r\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\r\n @if (modalContent()) {\r\n <ng-container>\r\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container>\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [":host .sheet{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:fixed;inset:0;z-index:9999;visibility:visible;transition:opacity .5s,visibility .5s}:host .sheet .overlay{position:absolute;inset:0;z-index:-1;background:var(--primary-dark)}:host .sheet .contents{display:flex;flex-direction:column;border-radius:1rem 1rem 0 0;background:#fff;overflow-y:hidden;--default-transitions: transform .8s, border-radius .8s;transition:var(--default-transitions);transform:translateY(0);width:100%;box-sizing:border-box}:host .sheet .contents:not(.not-selectable){transition:var(--default-transitions),height .8s}:host .sheet .controls{display:flex;position:relative}:host .sheet .draggable-area{position:absolute;top:0;width:100%;height:80px;cursor:grab;background-color:#fff}:host .sheet .draggable-thumb{position:absolute;z-index:2;left:50%;translate:-50%;top:16px;width:58px;height:8px;background-color:#e9e9e9;border-radius:8px}:host .sheet .close-sheet{position:absolute;top:5px;right:5px}:host .sheet .close-sheet:hover rdsl-icon{stroke:var(--secondary-base)}:host .sheet .close-sheet:hover rdsl-icon ::ng-deep cura-icon{--color: var(--secondary-base) !important}:host .sheet .body{flex-grow:1;width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem;box-sizing:border-box}:host .sheet[aria-hidden=true] .contents{transform:translateY(100%)}:host .sheet[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none}:host.doctor-card .draggable-area{background-color:#ccd9e7}:host.doctor-card .draggable-area .draggable-thumb{background-color:#85a0bc;border-radius:8px}:host.doctor-card .close-sheet{display:none}:host.doctor-card .img,:host.doctor-card .icon{position:absolute;z-index:2;left:50%;translate:-50%;top:32px;width:84px;height:84px;border-radius:65px;border:2px solid var(--primary-base);display:flex;justify-content:center;align-items:center}:host.doctor-card .img{background-position:50%;background-size:cover}:host.doctor-card .icon{background-color:#d7f3ff}:host.doctor-card .icon rdsl-icon{width:97%;height:auto}:host.doctor-card .icon rdsl-icon{stroke:var(--primary-base);stroke-width:3px}:host.doctor-card .icon rdsl-icon ::ng-deep cura-icon{--color: var(--primary-base) !important}:host.doctor-card p{text-align:left;padding-bottom:8px}:host.doctor-card .info{padding-top:120px}:host.doctor-card .info p{color:#4f4f4f;font-size:18px;font-weight:500;line-height:28px}:host.doctor-card .info .description p:first-of-type{color:#828282;font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .description p:nth-of-type(2){color:var(--primary-base);font-size:12px;font-weight:400;line-height:125%}:host.doctor-card .info .curriculo{padding-top:20px;overflow-y:auto;max-height:40vh}:host.doctor-card .info .curriculo li{list-style:none;display:flex;gap:10px;text-align:left;margin-bottom:12px;font-size:14px;line-height:125%;color:#4a4a4a}:host.doctor-card .info .curriculo li:before{content:\"\";width:8px;height:8px;border-radius:50%;background-color:var(--secondary-base);display:block;flex-shrink:0;margin-top:5px}:host.doctor-card .schedule{padding-top:24px}:host.doctor-card .schedule .rdsl-button-small{width:100%;height:38px}:host.form-fallback .sheet .contents{height:40vh;width:90%}:host.form-fallback .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents{width:90%;border:2px solid #d4d4d4}:host.filter-doencas .sheet .contents .controls{display:none}:host.filter-doencas .sheet .contents .close-sheet{display:none}\n"] }]
123
123
  }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }, { type: i0.Output, args: ["idChange"] }], modalContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalContent", required: false }] }, { type: i0.Output, args: ["modalContentChange"] }], componentStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "componentStyle", required: false }] }, { type: i0.Output, args: ["componentStyleChange"] }], classBinding: [{
124
124
  type: HostBinding,
125
125
  args: ['class']
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-modal-drawer.mjs","sources":["../../../projects/site-front-end-lib/components/modal-drawer/modal-drawer.component.ts","../../../projects/site-front-end-lib/components/modal-drawer/modal-drawer.component.html","../../../projects/site-front-end-lib/components/modal-drawer/rededor-site-front-end-lib-components-modal-drawer.ts"],"sourcesContent":["import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { ChangeDetectorRef, Component, DOCUMENT, HostBinding, HostListener, inject, model, PLATFORM_ID, computed } from '@angular/core';\nimport { AbstractModalDrawerComponent, RdsiteModalDrawerComponentStyle } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\n\n@Component({\n selector: 'dialog[rdsite-modal-drawer]#rdsite-modal-drawer',\n imports: [CommonModule],\n templateUrl: './modal-drawer.component.html',\n styleUrl: './modal-drawer.component.scss',\n})\nexport class ModalDrawerComponent implements AbstractModalDrawerComponent {\n private readonly curaApiService = inject(CuraApiService);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly document = inject(DOCUMENT);\n private readonly cdr = inject(ChangeDetectorRef);\n\n sheet!: HTMLElement;\n sheetContents!: HTMLElement;\n draggableArea!: HTMLElement;\n sheetHeight!: number;\n dragPosition!: number;\n maxHeight = 75; // isso também pode ser controlado pelo service\n\n closeHeight = this.maxHeight / 1.5;\n\n rdsiteModalComponentStyle = RdsiteModalDrawerComponentStyle;\n\n id = model<string>('default');\n modalContent = model<any>();\n componentStyle = model<RdsiteModalDrawerComponentStyle>(RdsiteModalDrawerComponentStyle.DEFAULT);\n\n modal!: HTMLDialogElement;\n\n public assetsPath = computed(() => this.curaApiService.localAssetsPath());\n\n @HostBinding('class') get classBinding() {\n return {\n 'filter-doencas': this.componentStyle() === RdsiteModalDrawerComponentStyle.FILTERDOENCAS,\n };\n }\n\n @HostBinding('style') styleBinding = {\n '--primary-dark': this.curaApiService.theme.colors.getColor('primary-dark', 0.9),\n '--primary-base': this.curaApiService.theme.colors.getColor('primary-base'),\n '--primary-light': this.curaApiService.theme.colors.getColor('primary-light'),\n '--secondary-base': this.curaApiService.theme.colors.getColor('secondary-base'),\n };\n\n ngOnInit() {\n this.modal = this.document.getElementById('rdsite-modal-drawer') as HTMLDialogElement;\n }\n\n ngAfterViewInit(): void {\n if (isPlatformBrowser(this.platformId)) {\n this.sheet = this.document.querySelector('#sheet')!;\n this.sheetContents = this.sheet.querySelector('.contents')!;\n this.draggableArea = this.sheet.querySelector('.draggable-area')!;\n }\n }\n\n setSheetHeight(value: number) {\n this.sheetHeight = Math.max(0, Math.min(100, value));\n if (this.sheetHeight > this.maxHeight) {\n return;\n }\n this.sheetContents.style.height = `${this.sheetHeight}vh`;\n }\n\n setIsSheetShown(isShown: boolean) {\n this.sheet.setAttribute('aria-hidden', String(!isShown));\n if (isPlatformBrowser(this.platformId) && !isShown) {\n const body = this.document.querySelector('body');\n if (body) {\n body.style.overflowY = 'auto';\n }\n }\n }\n\n openSheet() {\n if (this.componentStyle() === RdsiteModalDrawerComponentStyle.FORMFALLBACK) {\n this.maxHeight = 45;\n this.closeHeight = this.maxHeight / 1.5;\n }\n if (isPlatformBrowser(this.platformId)) {\n const body = this.document.querySelector('body');\n if (body) {\n body.style.overflowY = 'hidden';\n this.cdr.detectChanges();\n (this.modal as any).showModal();\n this.setSheetHeight(Math.min(this.maxHeight, (720 / window.innerHeight) * 100));\n this.setIsSheetShown(true);\n }\n }\n }\n\n closeSheet() {\n if (isPlatformBrowser(this.platformId)) {\n const body = this.document.querySelector('body');\n if (body) {\n body.style.overflowY = 'auto';\n (this.modal as any).close();\n this.reset();\n this.setIsSheetShown(false);\n }\n }\n }\n\n touchPosition(event: any) {\n return event?.touches ? event.touches[0] : event;\n }\n\n @HostListener('touchstart', ['$event'])\n onDragStart(event: TouchEvent) {\n this.dragPosition = this.touchPosition(event).pageY;\n this.sheetContents.classList.add('not-selectable');\n this.draggableArea.style.cursor = this.document.body.style.cursor = 'grabbing';\n }\n\n @HostListener('touchmove', ['$event'])\n onDragMove(event: TouchEvent) {\n if (this.dragPosition === undefined) return;\n\n const y = this.touchPosition(event).pageY;\n const deltaY = this.dragPosition - y;\n const deltaHeight = (deltaY / window.innerHeight) * 100;\n\n this.setSheetHeight(this.sheetHeight + deltaHeight);\n this.dragPosition = y;\n }\n\n @HostListener('touchend', ['$event'])\n onDragEnd() {\n this.dragPosition = 0;\n this.sheetContents.classList.remove('not-selectable');\n this.draggableArea.style.cursor = this.document.body.style.cursor = '';\n\n if (this.sheetHeight < this.closeHeight) {\n this.closeSheet();\n } else {\n this.setSheetHeight(this.maxHeight);\n }\n }\n\n public reset() {\n this.modalContent.set(null as any);\n }\n}\n","<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\n </div>\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n </div>\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\n @if (modalContent()) {\n <ng-container>\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container>\n </ng-container>\n }\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAWa,oBAAoB,CAAA;AANjC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAOhD,QAAA,IAAA,CAAA,SAAS,GAAG,EAAE,CAAC;AAEf,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG;QAElC,IAAA,CAAA,yBAAyB,GAAG,+BAA+B;AAE3D,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAS,SAAS,8CAAC;QAC7B,IAAA,CAAA,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAO;AAC3B,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAAkC,+BAA+B,CAAC,OAAO,0DAAC;AAIzF,QAAA,IAAA,CAAA,UAAU,GAAG,QA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EAAA,EAAA,OAAA,EAAA,EAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,qBAAA,EAAA,WAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXjC,qkCAsBA,EAAA,MAAA,EAAA,CAAA,k+GAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDfY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;+BACE,iDAAiD,EAAA,OAAA,EAClD,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,qkCAAA,EAAA,MAAA,EAAA,CAAA,k+GAAA,CAAA,EAAA;;sBA6BtB,WAAW;uBAAC,OAAO;;sBAMnB,WAAW;uBAAC,OAAO;;sBAsEnB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;;sBAOrC,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC;;sBAYpC,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;;;AEnItC;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-modal-drawer.mjs","sources":["../../../projects/site-front-end-lib/components/modal-drawer/modal-drawer.component.ts","../../../projects/site-front-end-lib/components/modal-drawer/modal-drawer.component.html","../../../projects/site-front-end-lib/components/modal-drawer/rededor-site-front-end-lib-components-modal-drawer.ts"],"sourcesContent":["import { CommonModule, isPlatformBrowser } from '@angular/common';\r\nimport { ChangeDetectorRef, Component, DOCUMENT, HostBinding, HostListener, inject, model, PLATFORM_ID, computed } from '@angular/core';\r\nimport { AbstractModalDrawerComponent, RdsiteModalDrawerComponentStyle } from '@rededor/site-front-end-lib/core';\r\nimport { CuraApiService } from '@rededor/cura-angular/api';\r\n\r\n@Component({\r\n selector: 'dialog[rdsite-modal-drawer]#rdsite-modal-drawer',\r\n imports: [CommonModule],\r\n templateUrl: './modal-drawer.component.html',\r\n styleUrl: './modal-drawer.component.scss',\r\n})\r\nexport class ModalDrawerComponent implements AbstractModalDrawerComponent {\r\n private readonly curaApiService = inject(CuraApiService);\r\n private readonly platformId = inject(PLATFORM_ID);\r\n private readonly document = inject(DOCUMENT);\r\n private readonly cdr = inject(ChangeDetectorRef);\r\n\r\n sheet!: HTMLElement;\r\n sheetContents!: HTMLElement;\r\n draggableArea!: HTMLElement;\r\n sheetHeight!: number;\r\n dragPosition!: number;\r\n maxHeight = 75; // isso também pode ser controlado pelo service\r\n\r\n closeHeight = this.maxHeight / 1.5;\r\n\r\n rdsiteModalComponentStyle = RdsiteModalDrawerComponentStyle;\r\n\r\n id = model<string>('default');\r\n modalContent = model<any>();\r\n componentStyle = model<RdsiteModalDrawerComponentStyle>(RdsiteModalDrawerComponentStyle.DEFAULT);\r\n\r\n modal!: HTMLDialogElement;\r\n\r\n public assetsPath = computed(() => this.curaApiService.localAssetsPath());\r\n\r\n @HostBinding('class') get classBinding() {\r\n return {\r\n 'filter-doencas': this.componentStyle() === RdsiteModalDrawerComponentStyle.FILTERDOENCAS,\r\n };\r\n }\r\n\r\n @HostBinding('style') styleBinding = {\r\n '--primary-dark': this.curaApiService.theme.colors.getColor('primary-dark', 0.9),\r\n '--primary-base': this.curaApiService.theme.colors.getColor('primary-base'),\r\n '--primary-light': this.curaApiService.theme.colors.getColor('primary-light'),\r\n '--secondary-base': this.curaApiService.theme.colors.getColor('secondary-base'),\r\n };\r\n\r\n ngOnInit() {\r\n this.modal = this.document.getElementById('rdsite-modal-drawer') as HTMLDialogElement;\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n if (isPlatformBrowser(this.platformId)) {\r\n this.sheet = this.document.querySelector('#sheet')!;\r\n this.sheetContents = this.sheet.querySelector('.contents')!;\r\n this.draggableArea = this.sheet.querySelector('.draggable-area')!;\r\n }\r\n }\r\n\r\n setSheetHeight(value: number) {\r\n this.sheetHeight = Math.max(0, Math.min(100, value));\r\n if (this.sheetHeight > this.maxHeight) {\r\n return;\r\n }\r\n this.sheetContents.style.height = `${this.sheetHeight}vh`;\r\n }\r\n\r\n setIsSheetShown(isShown: boolean) {\r\n this.sheet.setAttribute('aria-hidden', String(!isShown));\r\n if (isPlatformBrowser(this.platformId) && !isShown) {\r\n const body = this.document.querySelector('body');\r\n if (body) {\r\n body.style.overflowY = 'auto';\r\n }\r\n }\r\n }\r\n\r\n openSheet() {\r\n if (this.componentStyle() === RdsiteModalDrawerComponentStyle.FORMFALLBACK) {\r\n this.maxHeight = 45;\r\n this.closeHeight = this.maxHeight / 1.5;\r\n }\r\n if (isPlatformBrowser(this.platformId)) {\r\n const body = this.document.querySelector('body');\r\n if (body) {\r\n body.style.overflowY = 'hidden';\r\n this.cdr.detectChanges();\r\n (this.modal as any).showModal();\r\n this.setSheetHeight(Math.min(this.maxHeight, (720 / window.innerHeight) * 100));\r\n this.setIsSheetShown(true);\r\n }\r\n }\r\n }\r\n\r\n closeSheet() {\r\n if (isPlatformBrowser(this.platformId)) {\r\n const body = this.document.querySelector('body');\r\n if (body) {\r\n body.style.overflowY = 'auto';\r\n (this.modal as any).close();\r\n this.reset();\r\n this.setIsSheetShown(false);\r\n }\r\n }\r\n }\r\n\r\n touchPosition(event: any) {\r\n return event?.touches ? event.touches[0] : event;\r\n }\r\n\r\n @HostListener('touchstart', ['$event'])\r\n onDragStart(event: TouchEvent) {\r\n this.dragPosition = this.touchPosition(event).pageY;\r\n this.sheetContents.classList.add('not-selectable');\r\n this.draggableArea.style.cursor = this.document.body.style.cursor = 'grabbing';\r\n }\r\n\r\n @HostListener('touchmove', ['$event'])\r\n onDragMove(event: TouchEvent) {\r\n if (this.dragPosition === undefined) return;\r\n\r\n const y = this.touchPosition(event).pageY;\r\n const deltaY = this.dragPosition - y;\r\n const deltaHeight = (deltaY / window.innerHeight) * 100;\r\n\r\n this.setSheetHeight(this.sheetHeight + deltaHeight);\r\n this.dragPosition = y;\r\n }\r\n\r\n @HostListener('touchend', ['$event'])\r\n onDragEnd() {\r\n this.dragPosition = 0;\r\n this.sheetContents.classList.remove('not-selectable');\r\n this.draggableArea.style.cursor = this.document.body.style.cursor = '';\r\n\r\n if (this.sheetHeight < this.closeHeight) {\r\n this.closeSheet();\r\n } else {\r\n this.setSheetHeight(this.maxHeight);\r\n }\r\n }\r\n\r\n public reset() {\r\n this.modalContent.set(null as any);\r\n }\r\n}\r\n","<div id=\"sheet\" class=\"sheet\" aria-hidden=\"true\" data-testid=\"__modal-drawer-sheet\">\r\n <div class=\"overlay\" data-testid=\"__modal-drawer-overlay\"></div>\r\n <div class=\"contents\" data-testid=\"__modal-drawer-contents\">\r\n <div class=\"controls\" data-testid=\"__modal-drawer-controls\">\r\n <div class=\"draggable-area\" data-testid=\"__modal-drawer-draggable-area\">\r\n <div class=\"draggable-thumb\" data-testid=\"__modal-drawer-draggable-thumb\"></div>\r\n </div>\r\n <a class=\"close-sheet\" type=\"button\" title=\"Close the sheet\" (click)=\"closeSheet()\">\r\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n </div>\r\n <div class=\"body\" data-testid=\"__modal-drawer-body\">\r\n @if (modalContent()) {\r\n <ng-container>\r\n <ng-container *ngTemplateOutlet=\"modalContent()\"></ng-container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,inCAsBA,EAAA,MAAA,EAAA,CAAA,k+GAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDfY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;+BACE,iDAAiD,EAAA,OAAA,EAClD,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,inCAAA,EAAA,MAAA,EAAA,CAAA,k+GAAA,CAAA,EAAA;;sBA6BtB,WAAW;uBAAC,OAAO;;sBAMnB,WAAW;uBAAC,OAAO;;sBAsEnB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;;sBAOrC,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC;;sBAYpC,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;;;AEnItC;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { isPlatformBrowser, CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, PLATFORM_ID, DOCUMENT, ChangeDetectorRef, computed, HostBinding, HostListener, Component } from '@angular/core';
5
5
  import { ModalService } from '@rededor/site-front-end-lib/core';
6
- import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
6
+ import { CuraApiService } from '@rededor/cura-angular/api';
7
7
 
8
8
  class ModalComponent {
9
9
  constructor() {
@@ -58,11 +58,11 @@ class ModalComponent {
58
58
  }
59
59
  }
60
60
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: ModalComponent, isStandalone: true, selector: "dialog[rdsite-modal]#rdsite-modal", host: { listeners: { "document:keydown.escape": "closeModalOnEscape()", "click": "closeModalOnClick()" }, properties: { "style": "this.styleBinding" } }, ngImport: i0, template: "@if (modalContent) {\n <div class=\"rdsite-modal-container\">\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\n <a class=\"close-button\" (click)=\"close()\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\n </div>\n </div>\n}\n", styles: [":host{width:100vw;height:100vh;margin:auto;background-color:transparent}:host::backdrop{background:var(--backdrop-color, rgba(0, 47, 108, .9))}:host .rdsite-modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}:host .rdsite-modal-content{position:relative}:host .rdsite-modal-content .close-button{position:absolute;top:7px;right:7px;cursor:pointer}:host .rdsite-modal-content .close-button svg{stroke:var(--close-color, rgb(235, 87, 87));stroke-width:2px;fill:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: ModalComponent, isStandalone: true, selector: "dialog[rdsite-modal]#rdsite-modal", host: { listeners: { "document:keydown.escape": "closeModalOnEscape()", "click": "closeModalOnClick()" }, properties: { "style": "this.styleBinding" } }, ngImport: i0, template: "@if (modalContent) {\r\n <div class=\"rdsite-modal-container\">\r\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\r\n <a class=\"close-button\" (click)=\"close()\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\r\n </div>\r\n </div>\r\n}\r\n", styles: [":host{width:100vw;height:100vh;margin:auto;background-color:transparent}:host::backdrop{background:var(--backdrop-color, rgba(0, 47, 108, .9))}:host .rdsite-modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}:host .rdsite-modal-content{position:relative}:host .rdsite-modal-content .close-button{position:absolute;top:7px;right:7px;cursor:pointer}:host .rdsite-modal-content .close-button svg{stroke:var(--close-color, rgb(235, 87, 87));stroke-width:2px;fill:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
62
62
  }
63
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ModalComponent, decorators: [{
64
64
  type: Component,
65
- args: [{ selector: 'dialog[rdsite-modal]#rdsite-modal', imports: [CommonModule], template: "@if (modalContent) {\n <div class=\"rdsite-modal-container\">\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\n <a class=\"close-button\" (click)=\"close()\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\n </div>\n </div>\n}\n", styles: [":host{width:100vw;height:100vh;margin:auto;background-color:transparent}:host::backdrop{background:var(--backdrop-color, rgba(0, 47, 108, .9))}:host .rdsite-modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}:host .rdsite-modal-content{position:relative}:host .rdsite-modal-content .close-button{position:absolute;top:7px;right:7px;cursor:pointer}:host .rdsite-modal-content .close-button svg{stroke:var(--close-color, rgb(235, 87, 87));stroke-width:2px;fill:none}\n"] }]
65
+ args: [{ selector: 'dialog[rdsite-modal]#rdsite-modal', imports: [CommonModule], template: "@if (modalContent) {\r\n <div class=\"rdsite-modal-container\">\r\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\r\n <a class=\"close-button\" (click)=\"close()\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\r\n </div>\r\n </div>\r\n}\r\n", styles: [":host{width:100vw;height:100vh;margin:auto;background-color:transparent}:host::backdrop{background:var(--backdrop-color, rgba(0, 47, 108, .9))}:host .rdsite-modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}:host .rdsite-modal-content{position:relative}:host .rdsite-modal-content .close-button{position:absolute;top:7px;right:7px;cursor:pointer}:host .rdsite-modal-content .close-button svg{stroke:var(--close-color, rgb(235, 87, 87));stroke-width:2px;fill:none}\n"] }]
66
66
  }], propDecorators: { closeModalOnEscape: [{
67
67
  type: HostListener,
68
68
  args: ['document:keydown.escape']
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-modal.mjs","sources":["../../../projects/site-front-end-lib/components/modal/modal.component.ts","../../../projects/site-front-end-lib/components/modal/modal.component.html","../../../projects/site-front-end-lib/components/modal/rededor-site-front-end-lib-components-modal.ts"],"sourcesContent":["import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { Component, HostBinding, PLATFORM_ID, DOCUMENT, inject, HostListener, TemplateRef, ChangeDetectorRef, computed } from '@angular/core';\nimport { AbstractModalComponent, ModalService } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\n\n@Component({\n selector: 'dialog[rdsite-modal]#rdsite-modal',\n imports: [CommonModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n})\nexport class ModalComponent implements AbstractModalComponent {\n private readonly curaApiService = inject(CuraApiService);\n private readonly modalService = inject(ModalService);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly document = inject(DOCUMENT);\n private readonly cdr = inject(ChangeDetectorRef);\n\n // Controlado pelo ModalService\n modalContent: TemplateRef<any> | null = null;\n modalContentContext: Record<string, any> | null = null;\n\n modal!: HTMLDialogElement;\n\n @HostListener('document:keydown.escape')\n closeModalOnEscape() {\n if (this.modal.open) {\n this.close();\n }\n }\n\n @HostListener('click')\n closeModalOnClick() {\n if (this.modal.open) {\n this.close();\n }\n }\n\n @HostBinding('style') styleBinding = {\n '--backdrop-color': this.curaApiService.theme.colors.getColor('primary-base', 0.9),\n '--close-color': this.curaApiService.theme.colors.getColor('error-base'),\n };\n\n public assetsPath = computed(() => this.curaApiService.localAssetsPath());\n\n ngOnInit() {\n this.modal = this.document.getElementById('rdsite-modal') as HTMLDialogElement;\n }\n\n // Controlado pelo ModalService\n public open() {\n if (isPlatformBrowser(this.platformId)) {\n const body = this.document.querySelector('body');\n if (body) {\n body.style.overflowY = 'hidden';\n this.cdr.detectChanges();\n this.modal.showModal();\n }\n }\n }\n\n // Controlado pelo proprio componente e pelo ModalService\n public close() {\n if (isPlatformBrowser(this.platformId)) {\n const body = this.document.querySelector('body');\n if (body) {\n body.style.overflowY = 'auto';\n this.modalContent = null;\n this.modalContentContext = null;\n this.modal.close();\n }\n }\n }\n}\n","@if (modalContent) {\n <div class=\"rdsite-modal-container\">\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\n <a class=\"close-button\" (click)=\"close()\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\n </svg>\n </a>\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAWa,cAAc,CAAA;AAN3B,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AACnC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;;QAGhD,IAAA,CAAA,YAAY,GAA4B,IAAI;QAC5C,IAAA,CAAA,mBAAmB,GAA+B,IAAI;AAkBhC,QAAA,IAAA,CAAA,YAAY,GAAG;AACnC,YAAA,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC;AAClF,YAAA,eAAe,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;SACzE;AAEM,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,sDAAC;AA8B1E,IAAA;IAhDC,kBAAkB,GAAA;AAChB,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,KAAK,EAAE;QACd;IACF;IAGA,iBAAiB,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,KAAK,EAAE;QAC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A,CAAA,+fAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDLY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;+BACE,mCAAmC,EAAA,OAAA,EACpC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,uiBAAA,EAAA,MAAA,EAAA,CAAA,+fAAA,CAAA,EAAA;;sBAiBtB,YAAY;uBAAC,yBAAyB;;sBAOtC,YAAY;uBAAC,OAAO;;sBAOpB,WAAW;uBAAC,OAAO;;;AEtCtB;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-modal.mjs","sources":["../../../projects/site-front-end-lib/components/modal/modal.component.ts","../../../projects/site-front-end-lib/components/modal/modal.component.html","../../../projects/site-front-end-lib/components/modal/rededor-site-front-end-lib-components-modal.ts"],"sourcesContent":["import { CommonModule, isPlatformBrowser } from '@angular/common';\r\nimport { Component, HostBinding, PLATFORM_ID, DOCUMENT, inject, HostListener, TemplateRef, ChangeDetectorRef, computed } from '@angular/core';\r\nimport { AbstractModalComponent, ModalService } from '@rededor/site-front-end-lib/core';\r\nimport { CuraApiService } from '@rededor/cura-angular/api';\r\n\r\n@Component({\r\n selector: 'dialog[rdsite-modal]#rdsite-modal',\r\n imports: [CommonModule],\r\n templateUrl: './modal.component.html',\r\n styleUrl: './modal.component.scss',\r\n})\r\nexport class ModalComponent implements AbstractModalComponent {\r\n private readonly curaApiService = inject(CuraApiService);\r\n private readonly modalService = inject(ModalService);\r\n private readonly platformId = inject(PLATFORM_ID);\r\n private readonly document = inject(DOCUMENT);\r\n private readonly cdr = inject(ChangeDetectorRef);\r\n\r\n // Controlado pelo ModalService\r\n modalContent: TemplateRef<any> | null = null;\r\n modalContentContext: Record<string, any> | null = null;\r\n\r\n modal!: HTMLDialogElement;\r\n\r\n @HostListener('document:keydown.escape')\r\n closeModalOnEscape() {\r\n if (this.modal.open) {\r\n this.close();\r\n }\r\n }\r\n\r\n @HostListener('click')\r\n closeModalOnClick() {\r\n if (this.modal.open) {\r\n this.close();\r\n }\r\n }\r\n\r\n @HostBinding('style') styleBinding = {\r\n '--backdrop-color': this.curaApiService.theme.colors.getColor('primary-base', 0.9),\r\n '--close-color': this.curaApiService.theme.colors.getColor('error-base'),\r\n };\r\n\r\n public assetsPath = computed(() => this.curaApiService.localAssetsPath());\r\n\r\n ngOnInit() {\r\n this.modal = this.document.getElementById('rdsite-modal') as HTMLDialogElement;\r\n }\r\n\r\n // Controlado pelo ModalService\r\n public open() {\r\n if (isPlatformBrowser(this.platformId)) {\r\n const body = this.document.querySelector('body');\r\n if (body) {\r\n body.style.overflowY = 'hidden';\r\n this.cdr.detectChanges();\r\n this.modal.showModal();\r\n }\r\n }\r\n }\r\n\r\n // Controlado pelo proprio componente e pelo ModalService\r\n public close() {\r\n if (isPlatformBrowser(this.platformId)) {\r\n const body = this.document.querySelector('body');\r\n if (body) {\r\n body.style.overflowY = 'auto';\r\n this.modalContent = null;\r\n this.modalContentContext = null;\r\n this.modal.close();\r\n }\r\n }\r\n }\r\n}\r\n","@if (modalContent) {\r\n <div class=\"rdsite-modal-container\">\r\n <div class=\"rdsite-modal-content\" (click)=\"$event.stopPropagation()\">\r\n <a class=\"close-button\" (click)=\"close()\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\">\r\n <use [attr.xlink:href]=\"assetsPath() + '/icons/iconset-default.svg#close'\"></use>\r\n </svg>\r\n </a>\r\n <ng-container *ngTemplateOutlet=\"modalContent; context: modalContentContext\"></ng-container>\r\n </div>\r\n </div>\r\n}\r\n","/**\n * Gener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,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;+BACE,mCAAmC,EAAA,OAAA,EACpC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,+jBAAA,EAAA,MAAA,EAAA,CAAA,+fAAA,CAAA,EAAA;;sBAiBtB,YAAY;uBAAC,yBAAyB;;sBAOtC,YAAY;uBAAC,OAAO;;sBAOpB,WAAW;uBAAC,OAAO;;;AEtCtB;;AAEG;;;;"}
@@ -9,11 +9,11 @@ class OverlayComponent {
9
9
  this.overlayClick.emit(undefined);
10
10
  }
11
11
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: OverlayComponent, isStandalone: true, selector: "rdsite-overlay", outputs: { overlayClick: "overlayClick" }, ngImport: i0, template: "<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\n", styles: [":host{position:absolute;z-index:9999}.rdsite-overlay{position:absolute;top:0;right:0;width:100%;height:100%;z-index:9999}\n"] }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: OverlayComponent, isStandalone: true, selector: "rdsite-overlay", outputs: { overlayClick: "overlayClick" }, ngImport: i0, template: "<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\r\n", styles: [":host{position:absolute;z-index:9999}.rdsite-overlay{position:absolute;top:0;right:0;width:100%;height:100%;z-index:9999}\n"] }); }
13
13
  }
14
14
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OverlayComponent, decorators: [{
15
15
  type: Component,
16
- args: [{ selector: 'rdsite-overlay', imports: [], template: "<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\n", styles: [":host{position:absolute;z-index:9999}.rdsite-overlay{position:absolute;top:0;right:0;width:100%;height:100%;z-index:9999}\n"] }]
16
+ args: [{ selector: 'rdsite-overlay', imports: [], template: "<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\r\n", styles: [":host{position:absolute;z-index:9999}.rdsite-overlay{position:absolute;top:0;right:0;width:100%;height:100%;z-index:9999}\n"] }]
17
17
  }], propDecorators: { overlayClick: [{ type: i0.Output, args: ["overlayClick"] }] } });
18
18
 
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-overlay.mjs","sources":["../../../projects/site-front-end-lib/components/overlay/overlay.component.ts","../../../projects/site-front-end-lib/components/overlay/overlay.component.html","../../../projects/site-front-end-lib/components/overlay/rededor-site-front-end-lib-components-overlay.ts"],"sourcesContent":["import { Component, output } from '@angular/core';\n\n@Component({\n selector: 'rdsite-overlay',\n imports: [],\n templateUrl: './overlay.component.html',\n styleUrl: './overlay.component.scss',\n})\nexport class OverlayComponent {\n readonly overlayClick = output<any>();\n\n overlayClicked() {\n this.overlayClick.emit(undefined);\n }\n}\n","<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAQa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,YAAY,GAAG,MAAM,EAAO;AAKtC,IAAA;IAHC,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC;IACnC;+GALW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,qHCR7B,qEACA,EAAA,MAAA,EAAA,CAAA,6HAAA,CAAA,EAAA,CAAA,CAAA;;4FDOa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WACjB,EAAE,EAAA,QAAA,EAAA,qEAAA,EAAA,MAAA,EAAA,CAAA,6HAAA,CAAA,EAAA;;;AEJb;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-overlay.mjs","sources":["../../../projects/site-front-end-lib/components/overlay/overlay.component.ts","../../../projects/site-front-end-lib/components/overlay/overlay.component.html","../../../projects/site-front-end-lib/components/overlay/rededor-site-front-end-lib-components-overlay.ts"],"sourcesContent":["import { Component, output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'rdsite-overlay',\r\n imports: [],\r\n templateUrl: './overlay.component.html',\r\n styleUrl: './overlay.component.scss',\r\n})\r\nexport class OverlayComponent {\r\n readonly overlayClick = output<any>();\r\n\r\n overlayClicked() {\r\n this.overlayClick.emit(undefined);\r\n }\r\n}\r\n","<div class=\"rdsite-overlay\" (click)=\"overlayClicked()\"></div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAQa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,YAAY,GAAG,MAAM,EAAO;AAKtC,IAAA;IAHC,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC;IACnC;+GALW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,qHCR7B,uEACA,EAAA,MAAA,EAAA,CAAA,6HAAA,CAAA,EAAA,CAAA,CAAA;;4FDOa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WACjB,EAAE,EAAA,QAAA,EAAA,uEAAA,EAAA,MAAA,EAAA,CAAA,6HAAA,CAAA,EAAA;;;AEJb;;AAEG;;;;"}
@@ -2,9 +2,9 @@ import * as i0 from '@angular/core';
2
2
  import { inject, input, HostBinding, Component } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
5
+ import { CuraApiService } from '@rededor/cura-angular/api';
6
6
  import { BreadcrumbsComponent } from '@rededor/site-front-end-lib/components/breadcrumbs';
7
- import { CuraParagraphComponent } from '@rededor/site-front-end-lib/cura/texts/cura-paragraph';
7
+ import { CuraParagraphComponent } from '@rededor/cura-angular/texts/cura-paragraph';
8
8
  import { ImageComponent } from '@rededor/site-front-end-lib/components/image';
9
9
 
10
10
  class PageHeaderComponent {
@@ -34,11 +34,11 @@ class PageHeaderComponent {
34
34
  };
35
35
  }
36
36
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageHeaderComponent, isStandalone: true, selector: "rdsite-page-header", inputs: { preTitle: { classPropertyName: "preTitle", publicName: "preTitle", isSignal: true, isRequired: false, transformFunction: null }, pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, pageHeaderText: { classPropertyName: "pageHeaderText", publicName: "pageHeaderText", isSignal: true, isRequired: false, transformFunction: null }, hasPadding: { classPropertyName: "hasPadding", publicName: "hasPadding", isSignal: true, isRequired: false, transformFunction: null }, breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: false, transformFunction: null }, bgColor: { classPropertyName: "bgColor", publicName: "bgColor", isSignal: true, isRequired: false, transformFunction: null }, imgUrl: { classPropertyName: "imgUrl", publicName: "imgUrl", isSignal: true, isRequired: false, transformFunction: null }, imgMimeType: { classPropertyName: "imgMimeType", publicName: "imgMimeType", isSignal: true, isRequired: false, transformFunction: null }, imgAlt: { classPropertyName: "imgAlt", publicName: "imgAlt", isSignal: true, isRequired: false, transformFunction: null }, imgTitle: { classPropertyName: "imgTitle", publicName: "imgTitle", isSignal: true, isRequired: false, transformFunction: null }, starTheme: { classPropertyName: "starTheme", publicName: "starTheme", isSignal: true, isRequired: false, transformFunction: null }, breadcrumbsLabelIconColor: { classPropertyName: "breadcrumbsLabelIconColor", publicName: "breadcrumbsLabelIconColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "this.style" } }, ngImport: i0, template: "<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\n <div class=\"page-header-container\">\n @if (breadcrumbs().length) {\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\n }\n <div class=\"page-header-content\">\n @if (imgUrl()) {\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\n }\n\n <div class=\"page-header-content-info\">\n @if (preTitle()) {\n <h2>{{ preTitle() }}</h2>\n }\n @if (pageTitle()) {\n <h1>{{ pageTitle() }}</h1>\n }\n @if (pageHeaderText()) {\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\n }\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [".page-header{background-color:var(--bg-color)}.page-header-container{display:flex;flex-direction:column;gap:16px;padding:30px 0;box-sizing:border-box;width:90%;position:relative;max-width:1366px;margin-left:auto;margin-right:auto}.page-header-container.full-container{width:100%;max-width:100%}.page-header-container .page-header-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.page-header-container .page-header-content rdsite-image{width:120px;height:120px;border-radius:50%;margin-top:16px}.page-header-container .page-header-content-info{flex:1 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.page-header-container .page-header-content-info h2{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:19px;font-weight:700;line-height:28px;letter-spacing:0;text-transform:uppercase;padding-top:52px}.page-header-container .page-header-content-info h2:after{content:\"\";display:block;width:100%;height:1px;background-color:var(--primary-lighter);margin:8px auto 0}.page-header-container .page-header-content-info h1{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:32px;font-weight:700;line-height:--fonts-Display-S-lineHeight,43px;letter-spacing:-1.68px}@media screen and (min-width:769px){.page-header-container .page-header-content-info h1{font-size:48px;line-height:57px;letter-spacing:-1.92px}}@media screen and (min-width:769px){.page-header .page-header-container{gap:12px;padding:50px 0}.page-header .page-header-container .page-header-content{flex-direction:row;align-items:flex-start;gap:40px}.page-header .page-header-container .page-header-content rdsite-image{margin-top:0}.page-header .page-header-container .page-header-content-info{align-items:flex-start}.page-header.more-padding{padding-inline:102px}}.page-header.starTheme .page-header-container .page-header-content-info h2{color:var(--neutral-black);font-weight:300}.page-header.starTheme .page-header-container .page-header-content-info h1{color:var(--secondary-darker);font-weight:300}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BreadcrumbsComponent, selector: "rdsite-breadcrumbs", inputs: ["labelIconColor", "fontWeight", "breadcrumbs", "mobileBackView"] }, { kind: "component", type: CuraParagraphComponent, selector: "cura-paragraph", inputs: ["size", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }, { kind: "component", type: ImageComponent, selector: "rdsite-image", inputs: ["imageWebpSrc", "imageDefaultSrc", "imageSizes", "mimeType", "alt", "title", "loading"], outputs: ["imageDefaultSrcChange", "mimeTypeChange"] }] }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageHeaderComponent, isStandalone: true, selector: "rdsite-page-header", inputs: { preTitle: { classPropertyName: "preTitle", publicName: "preTitle", isSignal: true, isRequired: false, transformFunction: null }, pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, pageHeaderText: { classPropertyName: "pageHeaderText", publicName: "pageHeaderText", isSignal: true, isRequired: false, transformFunction: null }, hasPadding: { classPropertyName: "hasPadding", publicName: "hasPadding", isSignal: true, isRequired: false, transformFunction: null }, breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: false, transformFunction: null }, bgColor: { classPropertyName: "bgColor", publicName: "bgColor", isSignal: true, isRequired: false, transformFunction: null }, imgUrl: { classPropertyName: "imgUrl", publicName: "imgUrl", isSignal: true, isRequired: false, transformFunction: null }, imgMimeType: { classPropertyName: "imgMimeType", publicName: "imgMimeType", isSignal: true, isRequired: false, transformFunction: null }, imgAlt: { classPropertyName: "imgAlt", publicName: "imgAlt", isSignal: true, isRequired: false, transformFunction: null }, imgTitle: { classPropertyName: "imgTitle", publicName: "imgTitle", isSignal: true, isRequired: false, transformFunction: null }, starTheme: { classPropertyName: "starTheme", publicName: "starTheme", isSignal: true, isRequired: false, transformFunction: null }, breadcrumbsLabelIconColor: { classPropertyName: "breadcrumbsLabelIconColor", publicName: "breadcrumbsLabelIconColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "this.style" } }, ngImport: i0, template: "<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\r\n <div class=\"page-header-container\">\r\n @if (breadcrumbs().length) {\r\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\r\n }\r\n <div class=\"page-header-content\">\r\n @if (imgUrl()) {\r\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\r\n }\r\n\r\n <div class=\"page-header-content-info\">\r\n @if (preTitle()) {\r\n <h2>{{ preTitle() }}</h2>\r\n }\r\n @if (pageTitle()) {\r\n <h1>{{ pageTitle() }}</h1>\r\n }\r\n @if (pageHeaderText()) {\r\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\r\n }\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".page-header{background-color:var(--bg-color)}.page-header-container{display:flex;flex-direction:column;gap:16px;padding:30px 0;box-sizing:border-box;width:90%;position:relative;max-width:1366px;margin-left:auto;margin-right:auto}.page-header-container.full-container{width:100%;max-width:100%}.page-header-container .page-header-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.page-header-container .page-header-content rdsite-image{width:120px;height:120px;border-radius:50%;margin-top:16px}.page-header-container .page-header-content-info{flex:1 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.page-header-container .page-header-content-info h2{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:19px;font-weight:700;line-height:28px;letter-spacing:0;text-transform:uppercase;padding-top:52px}.page-header-container .page-header-content-info h2:after{content:\"\";display:block;width:100%;height:1px;background-color:var(--primary-lighter);margin:8px auto 0}.page-header-container .page-header-content-info h1{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:32px;font-weight:700;line-height:--fonts-Display-S-lineHeight,43px;letter-spacing:-1.68px}@media screen and (min-width: 769px){.page-header-container .page-header-content-info h1{font-size:48px;line-height:57px;letter-spacing:-1.92px}}@media screen and (min-width: 769px){.page-header .page-header-container{gap:12px;padding:50px 0}.page-header .page-header-container .page-header-content{flex-direction:row;align-items:flex-start;gap:40px}.page-header .page-header-container .page-header-content rdsite-image{margin-top:0}.page-header .page-header-container .page-header-content-info{align-items:flex-start}.page-header.more-padding{padding-inline:102px}}.page-header.starTheme .page-header-container .page-header-content-info h2{color:var(--neutral-black);font-weight:300}.page-header.starTheme .page-header-container .page-header-content-info h1{color:var(--secondary-darker);font-weight:300}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BreadcrumbsComponent, selector: "rdsite-breadcrumbs", inputs: ["labelIconColor", "fontWeight", "breadcrumbs", "mobileBackView"] }, { kind: "component", type: CuraParagraphComponent, selector: "cura-paragraph", inputs: ["size", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }, { kind: "component", type: ImageComponent, selector: "rdsite-image", inputs: ["imageWebpSrc", "imageDefaultSrc", "imageSizes", "mimeType", "alt", "title", "loading"], outputs: ["imageDefaultSrcChange", "mimeTypeChange"] }] }); }
38
38
  }
39
39
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageHeaderComponent, decorators: [{
40
40
  type: Component,
41
- args: [{ selector: 'rdsite-page-header', imports: [CommonModule, BreadcrumbsComponent, CuraParagraphComponent, ImageComponent], template: "<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\n <div class=\"page-header-container\">\n @if (breadcrumbs().length) {\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\n }\n <div class=\"page-header-content\">\n @if (imgUrl()) {\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\n }\n\n <div class=\"page-header-content-info\">\n @if (preTitle()) {\n <h2>{{ preTitle() }}</h2>\n }\n @if (pageTitle()) {\n <h1>{{ pageTitle() }}</h1>\n }\n @if (pageHeaderText()) {\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\n }\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [".page-header{background-color:var(--bg-color)}.page-header-container{display:flex;flex-direction:column;gap:16px;padding:30px 0;box-sizing:border-box;width:90%;position:relative;max-width:1366px;margin-left:auto;margin-right:auto}.page-header-container.full-container{width:100%;max-width:100%}.page-header-container .page-header-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.page-header-container .page-header-content rdsite-image{width:120px;height:120px;border-radius:50%;margin-top:16px}.page-header-container .page-header-content-info{flex:1 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.page-header-container .page-header-content-info h2{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:19px;font-weight:700;line-height:28px;letter-spacing:0;text-transform:uppercase;padding-top:52px}.page-header-container .page-header-content-info h2:after{content:\"\";display:block;width:100%;height:1px;background-color:var(--primary-lighter);margin:8px auto 0}.page-header-container .page-header-content-info h1{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:32px;font-weight:700;line-height:--fonts-Display-S-lineHeight,43px;letter-spacing:-1.68px}@media screen and (min-width:769px){.page-header-container .page-header-content-info h1{font-size:48px;line-height:57px;letter-spacing:-1.92px}}@media screen and (min-width:769px){.page-header .page-header-container{gap:12px;padding:50px 0}.page-header .page-header-container .page-header-content{flex-direction:row;align-items:flex-start;gap:40px}.page-header .page-header-container .page-header-content rdsite-image{margin-top:0}.page-header .page-header-container .page-header-content-info{align-items:flex-start}.page-header.more-padding{padding-inline:102px}}.page-header.starTheme .page-header-container .page-header-content-info h2{color:var(--neutral-black);font-weight:300}.page-header.starTheme .page-header-container .page-header-content-info h1{color:var(--secondary-darker);font-weight:300}\n"] }]
41
+ args: [{ selector: 'rdsite-page-header', imports: [CommonModule, BreadcrumbsComponent, CuraParagraphComponent, ImageComponent], template: "<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\r\n <div class=\"page-header-container\">\r\n @if (breadcrumbs().length) {\r\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\r\n }\r\n <div class=\"page-header-content\">\r\n @if (imgUrl()) {\r\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\r\n }\r\n\r\n <div class=\"page-header-content-info\">\r\n @if (preTitle()) {\r\n <h2>{{ preTitle() }}</h2>\r\n }\r\n @if (pageTitle()) {\r\n <h1>{{ pageTitle() }}</h1>\r\n }\r\n @if (pageHeaderText()) {\r\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\r\n }\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".page-header{background-color:var(--bg-color)}.page-header-container{display:flex;flex-direction:column;gap:16px;padding:30px 0;box-sizing:border-box;width:90%;position:relative;max-width:1366px;margin-left:auto;margin-right:auto}.page-header-container.full-container{width:100%;max-width:100%}.page-header-container .page-header-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.page-header-container .page-header-content rdsite-image{width:120px;height:120px;border-radius:50%;margin-top:16px}.page-header-container .page-header-content-info{flex:1 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.page-header-container .page-header-content-info h2{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:19px;font-weight:700;line-height:28px;letter-spacing:0;text-transform:uppercase;padding-top:52px}.page-header-container .page-header-content-info h2:after{content:\"\";display:block;width:100%;height:1px;background-color:var(--primary-lighter);margin:8px auto 0}.page-header-container .page-header-content-info h1{color:var(--neutral-purewhite);font-family:var(--font-family);font-size:32px;font-weight:700;line-height:--fonts-Display-S-lineHeight,43px;letter-spacing:-1.68px}@media screen and (min-width: 769px){.page-header-container .page-header-content-info h1{font-size:48px;line-height:57px;letter-spacing:-1.92px}}@media screen and (min-width: 769px){.page-header .page-header-container{gap:12px;padding:50px 0}.page-header .page-header-container .page-header-content{flex-direction:row;align-items:flex-start;gap:40px}.page-header .page-header-container .page-header-content rdsite-image{margin-top:0}.page-header .page-header-container .page-header-content-info{align-items:flex-start}.page-header.more-padding{padding-inline:102px}}.page-header.starTheme .page-header-container .page-header-content-info h2{color:var(--neutral-black);font-weight:300}.page-header.starTheme .page-header-container .page-header-content-info h1{color:var(--secondary-darker);font-weight:300}\n"] }]
42
42
  }], propDecorators: { preTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "preTitle", required: false }] }], pageTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageTitle", required: false }] }], pageHeaderText: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageHeaderText", required: false }] }], hasPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPadding", required: false }] }], breadcrumbs: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumbs", required: false }] }], bgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "bgColor", required: false }] }], imgUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgUrl", required: false }] }], imgMimeType: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgMimeType", required: false }] }], imgAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgAlt", required: false }] }], imgTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgTitle", required: false }] }], starTheme: [{ type: i0.Input, args: [{ isSignal: true, alias: "starTheme", required: false }] }], breadcrumbsLabelIconColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumbsLabelIconColor", required: false }] }], style: [{
43
43
  type: HostBinding,
44
44
  args: ['style']
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-page-header.mjs","sources":["../../../projects/site-front-end-lib/components/page-header/page-header.component.ts","../../../projects/site-front-end-lib/components/page-header/page-header.component.html","../../../projects/site-front-end-lib/components/page-header/rededor-site-front-end-lib-components-page-header.ts"],"sourcesContent":["import { Component, HostBinding, input, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BreadcrumbsItems } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { BreadcrumbsComponent } from '@rededor/site-front-end-lib/components/breadcrumbs';\nimport { CuraParagraphComponent } from '@rededor/site-front-end-lib/cura/texts/cura-paragraph';\nimport { ImageComponent } from '@rededor/site-front-end-lib/components/image';\n\n@Component({\n selector: 'rdsite-page-header',\n imports: [CommonModule, BreadcrumbsComponent, CuraParagraphComponent, ImageComponent],\n templateUrl: './page-header.component.html',\n styleUrls: ['./page-header.component.scss'],\n})\nexport class PageHeaderComponent {\n private readonly curaApiService = inject(CuraApiService);\n\n readonly preTitle = input<string>('');\n readonly pageTitle = input<string>('');\n readonly pageHeaderText = input<string>('');\n readonly hasPadding = input<boolean>(false);\n readonly breadcrumbs = input<BreadcrumbsItems[]>([]);\n readonly bgColor = input<string>('primary-base');\n readonly imgUrl = input<string>('');\n readonly imgMimeType = input<any>('');\n readonly imgAlt = input<string>('Imagem do header');\n readonly imgTitle = input<string>('Imagem do header');\n readonly starTheme = input<boolean>(false);\n readonly breadcrumbsLabelIconColor = input<string>('neutral-purewhite');\n\n @HostBinding('style') get style() {\n return {\n '--bg-color': this.starTheme() ? '#F7F5F1' : this.curaApiService.theme.colors.getColor(this.bgColor()),\n '--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),\n '--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),\n '--primary-lighter': this.curaApiService.theme.colors.getColor('primary-lighter'),\n '--secondary-darker': this.curaApiService.theme.colors.getColor('secondary-darker'),\n '--font-family': this.curaApiService.theme.fonts.getFamily(''),\n };\n }\n}\n","<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\n <div class=\"page-header-container\">\n @if (breadcrumbs().length) {\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\n }\n <div class=\"page-header-content\">\n @if (imgUrl()) {\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\n }\n\n <div class=\"page-header-content-info\">\n @if (preTitle()) {\n <h2>{{ preTitle() }}</h2>\n }\n @if (pageTitle()) {\n <h1>{{ pageTitle() }}</h1>\n }\n @if (pageHeaderText()) {\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\n }\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAca,mBAAmB,CAAA;AANhC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAE/C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC;AAC5B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,EAAE,qDAAC;AAC7B,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAAS,EAAE,0DAAC;AAClC,QA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MAAA,EAAA,CAAA,MAAA,EAAA,WAAA,EAAA,OAAA,EAAA,aAAA,EAAA,YAAA,EAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,cAAc,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,uBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIzE,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;+BACE,oBAAoB,EAAA,OAAA,EACrB,CAAC,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,ggCAAA,EAAA,MAAA,EAAA,CAAA,ugEAAA,CAAA,EAAA;;sBAoBpF,WAAW;uBAAC,OAAO;;;AE9BtB;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-page-header.mjs","sources":["../../../projects/site-front-end-lib/components/page-header/page-header.component.ts","../../../projects/site-front-end-lib/components/page-header/page-header.component.html","../../../projects/site-front-end-lib/components/page-header/rededor-site-front-end-lib-components-page-header.ts"],"sourcesContent":["import { Component, HostBinding, input, inject } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { BreadcrumbsItems } from '@rededor/site-front-end-lib/core';\r\nimport { CuraApiService } from '@rededor/cura-angular/api';\r\nimport { BreadcrumbsComponent } from '@rededor/site-front-end-lib/components/breadcrumbs';\r\nimport { CuraParagraphComponent } from '@rededor/cura-angular/texts/cura-paragraph';\r\nimport { ImageComponent } from '@rededor/site-front-end-lib/components/image';\r\n\r\n@Component({\r\n selector: 'rdsite-page-header',\r\n imports: [CommonModule, BreadcrumbsComponent, CuraParagraphComponent, ImageComponent],\r\n templateUrl: './page-header.component.html',\r\n styleUrls: ['./page-header.component.scss'],\r\n})\r\nexport class PageHeaderComponent {\r\n private readonly curaApiService = inject(CuraApiService);\r\n\r\n readonly preTitle = input<string>('');\r\n readonly pageTitle = input<string>('');\r\n readonly pageHeaderText = input<string>('');\r\n readonly hasPadding = input<boolean>(false);\r\n readonly breadcrumbs = input<BreadcrumbsItems[]>([]);\r\n readonly bgColor = input<string>('primary-base');\r\n readonly imgUrl = input<string>('');\r\n readonly imgMimeType = input<any>('');\r\n readonly imgAlt = input<string>('Imagem do header');\r\n readonly imgTitle = input<string>('Imagem do header');\r\n readonly starTheme = input<boolean>(false);\r\n readonly breadcrumbsLabelIconColor = input<string>('neutral-purewhite');\r\n\r\n @HostBinding('style') get style() {\r\n return {\r\n '--bg-color': this.starTheme() ? '#F7F5F1' : this.curaApiService.theme.colors.getColor(this.bgColor()),\r\n '--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),\r\n '--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),\r\n '--primary-lighter': this.curaApiService.theme.colors.getColor('primary-lighter'),\r\n '--secondary-darker': this.curaApiService.theme.colors.getColor('secondary-darker'),\r\n '--font-family': this.curaApiService.theme.fonts.getFamily(''),\r\n };\r\n }\r\n}\r\n","<div class=\"page-header\" [ngClass]=\"{ 'more-padding': hasPadding(), starTheme: starTheme() }\">\r\n <div class=\"page-header-container\">\r\n @if (breadcrumbs().length) {\r\n <rdsite-breadcrumbs [labelIconColor]=\"breadcrumbsLabelIconColor()\" [breadcrumbs]=\"breadcrumbs()\"></rdsite-breadcrumbs>\r\n }\r\n <div class=\"page-header-content\">\r\n @if (imgUrl()) {\r\n <rdsite-image [imageDefaultSrc]=\"imgUrl()\" [mimeType]=\"imgMimeType()\" [alt]=\"imgAlt()\" [title]=\"imgTitle()\" loading=\"eager\"></rdsite-image>\r\n }\r\n\r\n <div class=\"page-header-content-info\">\r\n @if (preTitle()) {\r\n <h2>{{ preTitle() }}</h2>\r\n }\r\n @if (pageTitle()) {\r\n <h1>{{ pageTitle() }}</h1>\r\n }\r\n @if (pageHeaderText()) {\r\n <cura-paragraph [color]=\"starTheme() ? 'neutral-black' : 'neutral-purewhite'\" marginBlock=\"0\">{{ pageHeaderText() }}</cura-paragraph>\r\n }\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAca,mBAAmB,CAAA;AANhC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAE/C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC;AAC5B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,EAAE,qDAAC;AAC7B,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAAS,EAAE,0DAAC;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,KAAK,sDAAC;AAClC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAqB,EAAE,uDAAC;AAC3C,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,cAAc,mDAAC;AACvC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,EAAE,kDAAC;AAC1B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAM,EAAE,uDAAC;AAC5B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,kBAAkB,kDAAC;AAC1C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,kBAAkB,oDAAC;AAC5C,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK,qDAAC;AACjC,QAAA,IAAA,CAAA,yBAAyB,GAAG,KAAK,CAAS,mBAAmB,qEAAC;AAYxE,IAAA;AAVC,IAAA,IAA0B,KAAK,GAAA;QAC7B,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,SAAS,EAA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class PageTemplateFullcontentComponent {
12
12
  this.isArticle = input(false, ...(ngDevMode ? [{ debugName: "isArticle" }] : []));
13
13
  }
14
14
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageTemplateFullcontentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageTemplateFullcontentComponent, isStandalone: true, selector: "rdsite-page-template-fullcontent", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, beforeContent: { classPropertyName: "beforeContent", publicName: "beforeContent", isSignal: true, isRequired: false, transformFunction: null }, pageContent: { classPropertyName: "pageContent", publicName: "pageContent", isSignal: true, isRequired: false, transformFunction: null }, afterContent: { classPropertyName: "afterContent", publicName: "afterContent", isSignal: true, isRequired: false, transformFunction: null }, isArticle: { classPropertyName: "isArticle", publicName: "isArticle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isArticle()) {\n <article class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n @if (pageContent()) {\n <div class=\"rdsite-template-container\">\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\n </section>\n </div>\n }\n</ng-template>\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: [".rdsite-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.rdsite-container{box-sizing:border-box;position:relative;width:90%;max-width:1366px;margin-left:auto;margin-right:auto}section.rdsite-template-content-full,article.rdsite-template-content-full{display:grid;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"pageheader pageheader pageheader\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\" \"aftercontent aftercontent aftercontent\"}@media screen and (min-width:1024px){section.rdsite-template-content-full,article.rdsite-template-content-full{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}section.rdsite-template-content-full .rdsite-template-header,article.rdsite-template-content-full .rdsite-template-header{grid-area:pageheader}section.rdsite-template-content-full .rdsite-template-before-content,article.rdsite-template-content-full .rdsite-template-before-content{grid-area:beforecontent}section.rdsite-template-content-full .rdsite-template-container,article.rdsite-template-content-full .rdsite-template-container{grid-area:pagecontent}section.rdsite-template-content-full .rdsite-template-after-content,article.rdsite-template-content-full .rdsite-template-after-content{grid-area:aftercontent}section.rdsite-template-content-full .rdsite-template-container .rdsite-content-container,article.rdsite-template-content-full .rdsite-template-container .rdsite-content-container{position:relative;max-width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageTemplateFullcontentComponent, isStandalone: true, selector: "rdsite-page-template-fullcontent", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, beforeContent: { classPropertyName: "beforeContent", publicName: "beforeContent", isSignal: true, isRequired: false, transformFunction: null }, pageContent: { classPropertyName: "pageContent", publicName: "pageContent", isSignal: true, isRequired: false, transformFunction: null }, afterContent: { classPropertyName: "afterContent", publicName: "afterContent", isSignal: true, isRequired: false, transformFunction: null }, isArticle: { classPropertyName: "isArticle", publicName: "isArticle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isArticle()) {\r\n <article class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n @if (pageContent()) {\r\n <div class=\"rdsite-template-container\">\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\r\n </section>\r\n </div>\r\n }\r\n</ng-template>\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n", styles: [".rdsite-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.rdsite-container{box-sizing:border-box;position:relative;width:90%;max-width:1366px;margin-left:auto;margin-right:auto}section.rdsite-template-content-full,article.rdsite-template-content-full{display:grid;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"pageheader pageheader pageheader\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\" \"aftercontent aftercontent aftercontent\"}@media screen and (min-width: 1024px){section.rdsite-template-content-full,article.rdsite-template-content-full{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}section.rdsite-template-content-full .rdsite-template-header,article.rdsite-template-content-full .rdsite-template-header{grid-area:pageheader}section.rdsite-template-content-full .rdsite-template-before-content,article.rdsite-template-content-full .rdsite-template-before-content{grid-area:beforecontent}section.rdsite-template-content-full .rdsite-template-container,article.rdsite-template-content-full .rdsite-template-container{grid-area:pagecontent}section.rdsite-template-content-full .rdsite-template-after-content,article.rdsite-template-content-full .rdsite-template-after-content{grid-area:aftercontent}section.rdsite-template-content-full .rdsite-template-container .rdsite-content-container,article.rdsite-template-content-full .rdsite-template-container .rdsite-content-container{position:relative;max-width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
16
16
  }
17
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageTemplateFullcontentComponent, decorators: [{
18
18
  type: Component,
19
- args: [{ selector: 'rdsite-page-template-fullcontent', imports: [CommonModule], template: "@if (isArticle()) {\n <article class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n @if (pageContent()) {\n <div class=\"rdsite-template-container\">\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\n </section>\n </div>\n }\n</ng-template>\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: [".rdsite-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.rdsite-container{box-sizing:border-box;position:relative;width:90%;max-width:1366px;margin-left:auto;margin-right:auto}section.rdsite-template-content-full,article.rdsite-template-content-full{display:grid;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"pageheader pageheader pageheader\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\" \"aftercontent aftercontent aftercontent\"}@media screen and (min-width:1024px){section.rdsite-template-content-full,article.rdsite-template-content-full{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}section.rdsite-template-content-full .rdsite-template-header,article.rdsite-template-content-full .rdsite-template-header{grid-area:pageheader}section.rdsite-template-content-full .rdsite-template-before-content,article.rdsite-template-content-full .rdsite-template-before-content{grid-area:beforecontent}section.rdsite-template-content-full .rdsite-template-container,article.rdsite-template-content-full .rdsite-template-container{grid-area:pagecontent}section.rdsite-template-content-full .rdsite-template-after-content,article.rdsite-template-content-full .rdsite-template-after-content{grid-area:aftercontent}section.rdsite-template-content-full .rdsite-template-container .rdsite-content-container,article.rdsite-template-content-full .rdsite-template-container .rdsite-content-container{position:relative;max-width:100%}\n"] }]
19
+ args: [{ selector: 'rdsite-page-template-fullcontent', imports: [CommonModule], template: "@if (isArticle()) {\r\n <article class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n @if (pageContent()) {\r\n <div class=\"rdsite-template-container\">\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\r\n </section>\r\n </div>\r\n }\r\n</ng-template>\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n", styles: [".rdsite-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.rdsite-container{box-sizing:border-box;position:relative;width:90%;max-width:1366px;margin-left:auto;margin-right:auto}section.rdsite-template-content-full,article.rdsite-template-content-full{display:grid;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"pageheader pageheader pageheader\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\" \"aftercontent aftercontent aftercontent\"}@media screen and (min-width: 1024px){section.rdsite-template-content-full,article.rdsite-template-content-full{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}section.rdsite-template-content-full .rdsite-template-header,article.rdsite-template-content-full .rdsite-template-header{grid-area:pageheader}section.rdsite-template-content-full .rdsite-template-before-content,article.rdsite-template-content-full .rdsite-template-before-content{grid-area:beforecontent}section.rdsite-template-content-full .rdsite-template-container,article.rdsite-template-content-full .rdsite-template-container{grid-area:pagecontent}section.rdsite-template-content-full .rdsite-template-after-content,article.rdsite-template-content-full .rdsite-template-after-content{grid-area:aftercontent}section.rdsite-template-content-full .rdsite-template-container .rdsite-content-container,article.rdsite-template-content-full .rdsite-template-container .rdsite-content-container{position:relative;max-width:100%}\n"] }]
20
20
  }], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], beforeContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "beforeContent", required: false }] }], pageContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageContent", required: false }] }], afterContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "afterContent", required: false }] }], isArticle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isArticle", required: false }] }] } });
21
21
 
22
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-page-template-fullcontent.mjs","sources":["../../../projects/site-front-end-lib/components/page-template-fullcontent/page-template-fullcontent.component.ts","../../../projects/site-front-end-lib/components/page-template-fullcontent/page-template-fullcontent.component.html","../../../projects/site-front-end-lib/components/page-template-fullcontent/rededor-site-front-end-lib-components-page-template-fullcontent.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, TemplateRef, input } from '@angular/core';\n\n@Component({\n selector: 'rdsite-page-template-fullcontent',\n imports: [CommonModule],\n templateUrl: './page-template-fullcontent.component.html',\n styleUrl: './page-template-fullcontent.component.scss',\n})\nexport class PageTemplateFullcontentComponent {\n readonly header = input<TemplateRef<any> | null>(null);\n readonly beforeContent = input<TemplateRef<any> | null>(null);\n readonly pageContent = input<TemplateRef<any> | null>(null);\n readonly afterContent = input<\n | {\n template: TemplateRef<any>;\n show: boolean;\n }[]\n | null\n >(null);\n readonly isArticle = input(false);\n}\n","@if (isArticle()) {\n <article class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-content-full\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n @if (pageContent()) {\n <div class=\"rdsite-template-container\">\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\n </section>\n </div>\n }\n</ng-template>\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,gCAAgC,CAAA;AAN7C,IAAA,WAAA,GAAA;AAOW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAA0B,IAAI,kDAAC;AAC7C,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA0B,IAAI,yDAAC;AACpD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAA0B,IAAI,uDAAC;AAClD,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAM3B,IAAI,wDAAC;AACE,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,qDAAC;AAClC,IAAA;+GAZY,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECT7C,qpCAqCA,EAAA,MAAA,EAAA,CAAA,8jDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDhCY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;+BACE,kCAAkC,EAAA,OAAA,EACnC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,qpCAAA,EAAA,MAAA,EAAA,CAAA,8jDAAA,CAAA,EAAA;;;AELzB;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-page-template-fullcontent.mjs","sources":["../../../projects/site-front-end-lib/components/page-template-fullcontent/page-template-fullcontent.component.ts","../../../projects/site-front-end-lib/components/page-template-fullcontent/page-template-fullcontent.component.html","../../../projects/site-front-end-lib/components/page-template-fullcontent/rededor-site-front-end-lib-components-page-template-fullcontent.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, TemplateRef, input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'rdsite-page-template-fullcontent',\r\n imports: [CommonModule],\r\n templateUrl: './page-template-fullcontent.component.html',\r\n styleUrl: './page-template-fullcontent.component.scss',\r\n})\r\nexport class PageTemplateFullcontentComponent {\r\n readonly header = input<TemplateRef<any> | null>(null);\r\n readonly beforeContent = input<TemplateRef<any> | null>(null);\r\n readonly pageContent = input<TemplateRef<any> | null>(null);\r\n readonly afterContent = input<\r\n | {\r\n template: TemplateRef<any>;\r\n show: boolean;\r\n }[]\r\n | null\r\n >(null);\r\n readonly isArticle = input(false);\r\n}\r\n","@if (isArticle()) {\r\n <article class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-content-full\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n @if (pageContent()) {\r\n <div class=\"rdsite-template-container\">\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"pageContent()\"></ng-container>\r\n </section>\r\n </div>\r\n }\r\n</ng-template>\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,gCAAgC,CAAA;AAN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KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECT7C,+tCAqCA,EAAA,MAAA,EAAA,CAAA,+jDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDhCY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;+BACE,kCAAkC,EAAA,OAAA,EACnC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,+tCAAA,EAAA,MAAA,EAAA,CAAA,+jDAAA,CAAA,EAAA;;;AELzB;;AAEG;;;;"}
@@ -15,11 +15,11 @@ class PageTemplateSidebarComponent {
15
15
  this.reverseSidebar = input(false, ...(ngDevMode ? [{ debugName: "reverseSidebar" }] : []));
16
16
  }
17
17
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageTemplateSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, stickyContent: { classPropertyName: "stickyContent", publicName: "stickyContent", isSignal: true, isRequired: false, transformFunction: null }, beforeContent: { classPropertyName: "beforeContent", publicName: "beforeContent", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, afterContent: { classPropertyName: "afterContent", publicName: "afterContent", isSignal: true, isRequired: false, transformFunction: null }, sidebarContent: { classPropertyName: "sidebarContent", publicName: "sidebarContent", isSignal: true, isRequired: false, transformFunction: null }, isArticle: { classPropertyName: "isArticle", publicName: "isArticle", isSignal: true, isRequired: false, transformFunction: null }, reverseSidebar: { classPropertyName: "reverseSidebar", publicName: "reverseSidebar", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isArticle()) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (stickyContent()) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\n </div>\n }\n\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content()) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\n </section>\n }\n\n @if (sidebarContent()) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, stickyContent: { classPropertyName: "stickyContent", publicName: "stickyContent", isSignal: true, isRequired: false, transformFunction: null }, beforeContent: { classPropertyName: "beforeContent", publicName: "beforeContent", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, afterContent: { classPropertyName: "afterContent", publicName: "afterContent", isSignal: true, isRequired: false, transformFunction: null }, sidebarContent: { classPropertyName: "sidebarContent", publicName: "sidebarContent", isSignal: true, isRequired: false, transformFunction: null }, isArticle: { classPropertyName: "isArticle", publicName: "isArticle", isSignal: true, isRequired: false, transformFunction: null }, reverseSidebar: { classPropertyName: "reverseSidebar", publicName: "reverseSidebar", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isArticle()) {\r\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (stickyContent()) {\r\n <div class=\"rdsite-template-sticky-content\">\r\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\r\n </div>\r\n }\r\n\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n <div class=\"rdsite-template-container\">\r\n @if (content()) {\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\r\n </section>\r\n }\r\n\r\n @if (sidebarContent()) {\r\n <aside class=\"rdsite-sidebar-content-container\">\r\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\r\n </aside>\r\n }\r\n </div>\r\n</ng-template>\r\n\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
19
19
  }
20
20
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PageTemplateSidebarComponent, decorators: [{
21
21
  type: Component,
22
- args: [{ selector: 'rdsite-page-template-sidebar', imports: [CommonModule], template: "@if (isArticle()) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (stickyContent()) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\n </div>\n }\n\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content()) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\n </section>\n }\n\n @if (sidebarContent()) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width:1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"] }]
22
+ args: [{ selector: 'rdsite-page-template-sidebar', imports: [CommonModule], template: "@if (isArticle()) {\r\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (stickyContent()) {\r\n <div class=\"rdsite-template-sticky-content\">\r\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\r\n </div>\r\n }\r\n\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n <div class=\"rdsite-template-container\">\r\n @if (content()) {\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\r\n </section>\r\n }\r\n\r\n @if (sidebarContent()) {\r\n <aside class=\"rdsite-sidebar-content-container\">\r\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\r\n </aside>\r\n }\r\n </div>\r\n</ng-template>\r\n\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"] }]
23
23
  }], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], stickyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyContent", required: false }] }], beforeContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "beforeContent", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], afterContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "afterContent", required: false }] }], sidebarContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarContent", required: false }] }], isArticle: [{ type: i0.Input, args: [{ isSignal: true, alias: "isArticle", required: false }] }], reverseSidebar: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverseSidebar", required: false }] }] } });
24
24
 
25
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rededor-site-front-end-lib-components-page-template-sidebar.mjs","sources":["../../../projects/site-front-end-lib/components/page-template-sidebar/page-template-sidebar.component.ts","../../../projects/site-front-end-lib/components/page-template-sidebar/page-template-sidebar.component.html","../../../projects/site-front-end-lib/components/page-template-sidebar/rededor-site-front-end-lib-components-page-template-sidebar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, TemplateRef, input } from '@angular/core';\n\n@Component({\n selector: 'rdsite-page-template-sidebar',\n imports: [CommonModule],\n templateUrl: './page-template-sidebar.component.html',\n styleUrl: './page-template-sidebar.component.scss',\n})\nexport class PageTemplateSidebarComponent {\n readonly header = input<TemplateRef<any> | null>(null);\n readonly stickyContent = input<TemplateRef<any> | null>(null);\n readonly beforeContent = input<TemplateRef<any> | null>(null);\n readonly content = input<TemplateRef<any> | null>(null);\n readonly afterContent = input<\n | {\n template: TemplateRef<any>;\n show: boolean;\n }[]\n | null\n >(null);\n readonly sidebarContent = input<TemplateRef<any> | null>(null);\n readonly isArticle = input(false);\n readonly reverseSidebar = input(false);\n}\n","@if (isArticle()) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header()) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\n </header>\n }\n @if (stickyContent()) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\n </div>\n }\n\n @if (beforeContent()) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content()) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\n </section>\n }\n\n @if (sidebarContent()) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent()?.length) {\n @for (tpl of afterContent(); track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,4BAA4B,CAAA;AANzC,IAAA,WAAA,GAAA;AAOW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAA0B,IAAI,kDAAC;AAC7C,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA0B,IAAI,yDAAC;AACpD,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA0B,IAAI,yDAAC;AACpD,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAA0B,IAAI,mDAAC;AAC9C,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAM3B,IAAI,wDAAC;AACE,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAA0B,IAAI,0DAAC;AACrD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,qDAAC;AACxB,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAAC,KAAK,0DAAC;AACvC,IAAA;+GAfY,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,I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AAA,EAAA,IAAA,ED7CY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBANxC,SAAS;+BACE,8BAA8B,EAAA,OAAA,EAC/B,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,2jDAAA,EAAA,MAAA,EAAA,CAAA,opFAAA,CAAA,EAAA;;;AELzB;;AAEG;;;;"}
1
+ {"version":3,"file":"rededor-site-front-end-lib-components-page-template-sidebar.mjs","sources":["../../../projects/site-front-end-lib/components/page-template-sidebar/page-template-sidebar.component.ts","../../../projects/site-front-end-lib/components/page-template-sidebar/page-template-sidebar.component.html","../../../projects/site-front-end-lib/components/page-template-sidebar/rededor-site-front-end-lib-components-page-template-sidebar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, TemplateRef, input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'rdsite-page-template-sidebar',\r\n imports: [CommonModule],\r\n templateUrl: './page-template-sidebar.component.html',\r\n styleUrl: './page-template-sidebar.component.scss',\r\n})\r\nexport class PageTemplateSidebarComponent {\r\n readonly header = input<TemplateRef<any> | null>(null);\r\n readonly stickyContent = input<TemplateRef<any> | null>(null);\r\n readonly beforeContent = input<TemplateRef<any> | null>(null);\r\n readonly content = input<TemplateRef<any> | null>(null);\r\n readonly afterContent = input<\r\n | {\r\n template: TemplateRef<any>;\r\n show: boolean;\r\n }[]\r\n | null\r\n >(null);\r\n readonly sidebarContent = input<TemplateRef<any> | null>(null);\r\n readonly isArticle = input(false);\r\n readonly reverseSidebar = input(false);\r\n}\r\n","@if (isArticle()) {\r\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </article>\r\n} @else {\r\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar()\">\r\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\r\n </section>\r\n}\r\n<ng-template #mainContent>\r\n @if (header()) {\r\n <header class=\"rdsite-template-header\">\r\n <ng-container *ngTemplateOutlet=\"header()\"></ng-container>\r\n </header>\r\n }\r\n @if (stickyContent()) {\r\n <div class=\"rdsite-template-sticky-content\">\r\n <ng-container *ngTemplateOutlet=\"stickyContent()\"></ng-container>\r\n </div>\r\n }\r\n\r\n @if (beforeContent()) {\r\n <div class=\"rdsite-template-before-content\">\r\n <ng-container *ngTemplateOutlet=\"beforeContent()\"></ng-container>\r\n </div>\r\n }\r\n <div class=\"rdsite-template-container\">\r\n @if (content()) {\r\n <section class=\"rdsite-content-container\">\r\n <ng-container *ngTemplateOutlet=\"content()\"></ng-container>\r\n </section>\r\n }\r\n\r\n @if (sidebarContent()) {\r\n <aside class=\"rdsite-sidebar-content-container\">\r\n <ng-container *ngTemplateOutlet=\"sidebarContent()\"></ng-container>\r\n </aside>\r\n }\r\n </div>\r\n</ng-template>\r\n\r\n@if (afterContent()?.length) {\r\n @for (tpl of afterContent(); track $index) {\r\n @if (tpl.show) {\r\n <aside class=\"rdsite-template-after-content\">\r\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\r\n </aside>\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,4BAA4B,CAAA;AANzC,IAAA,WAAA,GAAA;AAOW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAA0B,IAAI,kDAAC;AAC7C,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA0B,IAAI,yDAAC;AACpD,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAA0B,IAAI,yDAAC;AACpD,QAAA,IAAA,CAAA,OAAO,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