@inera/ids-angular 9.2.1 → 9.3.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 (182) hide show
  1. package/common/directives/click-outside.directive.d.ts +3 -3
  2. package/common/public-api.d.ts +1 -1
  3. package/components/accordion/accordion-header.component.d.ts +1 -1
  4. package/components/accordion/accordion.component.d.ts +5 -4
  5. package/components/alert/alert-header.component.d.ts +1 -1
  6. package/components/alert/alert.component.d.ts +2 -2
  7. package/components/box-link/box-link-button.component.d.ts +2 -2
  8. package/components/box-link/box-link.component.d.ts +1 -1
  9. package/components/breadcrumbs/breadcrumbs.component.d.ts +3 -4
  10. package/components/breadcrumbs/crumb.component.d.ts +1 -1
  11. package/components/carousel/carousel-item/carousel-item.component.d.ts +1 -1
  12. package/components/carousel/carousel.component.d.ts +4 -4
  13. package/components/control-button/control-button.directive.d.ts +5 -0
  14. package/components/control-button/index.d.ts +5 -0
  15. package/components/control-button/public-api.d.ts +1 -0
  16. package/components/dialog/dialog.component.d.ts +4 -4
  17. package/components/dropdown/dropdown.component.d.ts +1 -1
  18. package/components/footer-1177/footer-1177-col.component.d.ts +4 -4
  19. package/components/footer-1177/footer-1177.component.d.ts +6 -4
  20. package/components/footer-1177-admin/footer-1177-admin-col.component.d.ts +4 -4
  21. package/components/footer-1177-admin/footer-1177-admin.component.d.ts +5 -4
  22. package/components/footer-1177-pro/footer-1177-pro-col.component.d.ts +4 -4
  23. package/components/footer-1177-pro/footer-1177-pro.component.d.ts +6 -4
  24. package/components/footer-inera/footer-inera-col.component.d.ts +4 -4
  25. package/components/footer-inera/footer-inera.component.d.ts +5 -4
  26. package/components/footer-inera-admin/footer-inera-admin-col.component.d.ts +4 -4
  27. package/components/footer-inera-admin/footer-inera-admin.component.d.ts +5 -4
  28. package/components/footer-inera-general/footer-inera-general-col.component.d.ts +4 -4
  29. package/components/footer-inera-general/footer-inera-general.component.d.ts +6 -4
  30. package/components/form/checkbox-group/checkbox-group.component.d.ts +4 -4
  31. package/components/form/input/input-clear-button.component.d.ts +5 -0
  32. package/components/form/input/input.component.d.ts +7 -3
  33. package/components/form/input/public-api.d.ts +1 -0
  34. package/components/form/label-subtitle/index.d.ts +5 -0
  35. package/components/form/label-subtitle/label-subtitle.component.d.ts +5 -0
  36. package/components/form/label-subtitle/public-api.d.ts +1 -0
  37. package/components/form/radio/radio-group.component.d.ts +4 -4
  38. package/components/form/radio/radio.component.d.ts +1 -1
  39. package/components/form/radio-button/radio-button-group.component.d.ts +1 -2
  40. package/components/form/range/range.component.d.ts +1 -1
  41. package/components/form/select/select.component.d.ts +1 -1
  42. package/components/form/select-multiple/select-multiple.component.d.ts +3 -3
  43. package/components/form/textarea/textarea.component.d.ts +1 -1
  44. package/components/form/time/time.component.d.ts +1 -1
  45. package/components/global-alert/global-alert-actions.component.d.ts +1 -1
  46. package/components/global-alert/global-alert-header.component.d.ts +1 -1
  47. package/components/global-alert/global-alert.component.d.ts +2 -2
  48. package/components/header-1177/avatar/header-1177-avatar.component.d.ts +1 -1
  49. package/components/header-1177/header-1177.component.d.ts +6 -7
  50. package/components/header-1177/nav/header-1177-nav.component.d.ts +1 -1
  51. package/components/header-1177/nav-item/header-1177-nav-item.component.d.ts +5 -5
  52. package/components/header-1177/region-picker/header-1177-region-picker.component.d.ts +3 -3
  53. package/components/header-1177/region-picker-mobile/header-1177-region-picker-mobile.component.d.ts +3 -3
  54. package/components/header-1177-admin/avatar/header-1177-admin-avatar.component.d.ts +1 -1
  55. package/components/header-1177-admin/avatar-mobile/header-1177-admin-avatar-mobile.component.d.ts +1 -1
  56. package/components/header-1177-admin/header-1177-admin.component.d.ts +3 -3
  57. package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +4 -4
  58. package/components/header-1177-admin/nav-item/header-1177-admin-nav-item.component.d.ts +5 -5
  59. package/components/header-1177-pro/avatar/header-1177-pro-avatar.component.d.ts +1 -1
  60. package/components/header-1177-pro/avatar-mobile/header-1177-pro-avatar-mobile.component.d.ts +1 -1
  61. package/components/header-1177-pro/header-1177-pro.component.d.ts +3 -3
  62. package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +4 -4
  63. package/components/header-1177-pro/nav-item/header-1177-pro-nav-item.component.d.ts +5 -5
  64. package/components/header-1177-pro/region-picker/header-1177-pro-region-picker.component.d.ts +4 -4
  65. package/components/header-1177-pro/region-picker-mobile/header-1177-pro-region-picker-mobile.component.d.ts +1 -1
  66. package/components/header-inera/header-inera.component.d.ts +5 -6
  67. package/components/header-inera/nav/header-inera-nav.component.d.ts +2 -4
  68. package/components/header-inera/nav-item/header-inera-nav-item.component.d.ts +5 -5
  69. package/components/header-inera-admin/avatar/header-inera-admin-avatar.component.d.ts +1 -1
  70. package/components/header-inera-admin/avatar-mobile/header-inera-admin-avatar-mobile.component.d.ts +1 -1
  71. package/components/header-inera-admin/header-inera-admin.component.d.ts +6 -7
  72. package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +4 -4
  73. package/components/header-inera-admin/nav-item/header-inera-admin-nav-item.component.d.ts +4 -4
  74. package/components/header-inera-general/header-inera-general.component.d.ts +5 -6
  75. package/components/header-inera-general/nav/header-inera-general-nav.component.d.ts +1 -1
  76. package/components/header-inera-general/nav-item/header-inera-general-nav-item.component.d.ts +5 -5
  77. package/components/mobile/menu/item/mobile-menu-item.component.d.ts +3 -3
  78. package/components/mobile/menu/mobile-menu.component.d.ts +1 -2
  79. package/components/navigation/content/navigation-content-link.component.d.ts +1 -1
  80. package/components/navigation/content/navigation-content.component.d.ts +1 -2
  81. package/components/navigation/local/navigation-local-link.component.d.ts +1 -1
  82. package/components/navigation/local/navigation-local.component.d.ts +1 -2
  83. package/components/popover/popover.component.d.ts +4 -4
  84. package/components/puff-list/puff-list-item.component.d.ts +1 -1
  85. package/components/puff-list/puff-list.component.d.ts +1 -2
  86. package/components/side-menu/side-menu.component.d.ts +2 -2
  87. package/components/side-panel/side-panel.component.d.ts +7 -6
  88. package/components/stepper/stepper.component.d.ts +2 -2
  89. package/components/tabs/tab-group.component.d.ts +3 -2
  90. package/components/tabs/tab.component.d.ts +2 -2
  91. package/components/tag/tag.component.d.ts +1 -1
  92. package/components/tooltip/tooltip.component.d.ts +2 -2
  93. package/fesm2022/inera-ids-angular-common.mjs +8 -9
  94. package/fesm2022/inera-ids-angular-common.mjs.map +1 -1
  95. package/fesm2022/inera-ids-angular-components-accordion.mjs +19 -28
  96. package/fesm2022/inera-ids-angular-components-accordion.mjs.map +1 -1
  97. package/fesm2022/inera-ids-angular-components-alert.mjs +8 -14
  98. package/fesm2022/inera-ids-angular-components-alert.mjs.map +1 -1
  99. package/fesm2022/inera-ids-angular-components-box-link.mjs +8 -14
  100. package/fesm2022/inera-ids-angular-components-box-link.mjs.map +1 -1
  101. package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +15 -26
  102. package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs.map +1 -1
  103. package/fesm2022/inera-ids-angular-components-carousel.mjs +16 -23
  104. package/fesm2022/inera-ids-angular-components-carousel.mjs.map +1 -1
  105. package/fesm2022/inera-ids-angular-components-control-button.mjs +24 -0
  106. package/fesm2022/inera-ids-angular-components-control-button.mjs.map +1 -0
  107. package/fesm2022/inera-ids-angular-components-dialog.mjs +10 -17
  108. package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
  109. package/fesm2022/inera-ids-angular-components-dropdown.mjs +4 -7
  110. package/fesm2022/inera-ids-angular-components-dropdown.mjs.map +1 -1
  111. package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs +28 -35
  112. package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs.map +1 -1
  113. package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs +29 -35
  114. package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs.map +1 -1
  115. package/fesm2022/inera-ids-angular-components-footer-1177.mjs +29 -35
  116. package/fesm2022/inera-ids-angular-components-footer-1177.mjs.map +1 -1
  117. package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +28 -35
  118. package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs.map +1 -1
  119. package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs +30 -35
  120. package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs.map +1 -1
  121. package/fesm2022/inera-ids-angular-components-footer-inera.mjs +28 -35
  122. package/fesm2022/inera-ids-angular-components-footer-inera.mjs.map +1 -1
  123. package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs +9 -15
  124. package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs.map +1 -1
  125. package/fesm2022/inera-ids-angular-components-form-input.mjs +58 -34
  126. package/fesm2022/inera-ids-angular-components-form-input.mjs.map +1 -1
  127. package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs +25 -0
  128. package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs.map +1 -0
  129. package/fesm2022/inera-ids-angular-components-form-radio-button.mjs +6 -9
  130. package/fesm2022/inera-ids-angular-components-form-radio-button.mjs.map +1 -1
  131. package/fesm2022/inera-ids-angular-components-form-radio.mjs +11 -17
  132. package/fesm2022/inera-ids-angular-components-form-radio.mjs.map +1 -1
  133. package/fesm2022/inera-ids-angular-components-form-range.mjs +2 -2
  134. package/fesm2022/inera-ids-angular-components-form-range.mjs.map +1 -1
  135. package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs +8 -11
  136. package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs.map +1 -1
  137. package/fesm2022/inera-ids-angular-components-form-select.mjs +2 -2
  138. package/fesm2022/inera-ids-angular-components-form-select.mjs.map +1 -1
  139. package/fesm2022/inera-ids-angular-components-form-textarea.mjs +2 -2
  140. package/fesm2022/inera-ids-angular-components-form-textarea.mjs.map +1 -1
  141. package/fesm2022/inera-ids-angular-components-form-time.mjs +2 -2
  142. package/fesm2022/inera-ids-angular-components-form-time.mjs.map +1 -1
  143. package/fesm2022/inera-ids-angular-components-global-alert.mjs +11 -23
  144. package/fesm2022/inera-ids-angular-components-global-alert.mjs.map +1 -1
  145. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +29 -59
  146. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
  147. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +64 -91
  148. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
  149. package/fesm2022/inera-ids-angular-components-header-1177.mjs +74 -104
  150. package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
  151. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +31 -67
  152. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
  153. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs +22 -49
  154. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs.map +1 -1
  155. package/fesm2022/inera-ids-angular-components-header-inera.mjs +23 -54
  156. package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
  157. package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs +6 -12
  158. package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs.map +1 -1
  159. package/fesm2022/inera-ids-angular-components-mobile-menu.mjs +13 -22
  160. package/fesm2022/inera-ids-angular-components-mobile-menu.mjs.map +1 -1
  161. package/fesm2022/inera-ids-angular-components-navigation-content.mjs +7 -13
  162. package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
  163. package/fesm2022/inera-ids-angular-components-navigation-local.mjs +7 -13
  164. package/fesm2022/inera-ids-angular-components-navigation-local.mjs.map +1 -1
  165. package/fesm2022/inera-ids-angular-components-popover.mjs +106 -61
  166. package/fesm2022/inera-ids-angular-components-popover.mjs.map +1 -1
  167. package/fesm2022/inera-ids-angular-components-puff-list.mjs +16 -22
  168. package/fesm2022/inera-ids-angular-components-puff-list.mjs.map +1 -1
  169. package/fesm2022/inera-ids-angular-components-side-menu.mjs +9 -12
  170. package/fesm2022/inera-ids-angular-components-side-menu.mjs.map +1 -1
  171. package/fesm2022/inera-ids-angular-components-side-panel.mjs +91 -79
  172. package/fesm2022/inera-ids-angular-components-side-panel.mjs.map +1 -1
  173. package/fesm2022/inera-ids-angular-components-stepper.mjs +5 -8
  174. package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
  175. package/fesm2022/inera-ids-angular-components-tabs.mjs +14 -22
  176. package/fesm2022/inera-ids-angular-components-tabs.mjs.map +1 -1
  177. package/fesm2022/inera-ids-angular-components-tag.mjs +5 -5
  178. package/fesm2022/inera-ids-angular-components-tag.mjs.map +1 -1
  179. package/fesm2022/inera-ids-angular-components-tooltip.mjs +18 -24
  180. package/fesm2022/inera-ids-angular-components-tooltip.mjs.map +1 -1
  181. package/package.json +115 -107
  182. /package/common/services/{use-id.service.ts.d.ts → use-id.service.d.ts} +0 -0
@@ -1,30 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, DestroyRef, HostBinding, ContentChildren, Component, Input, NgModule } from '@angular/core';
2
+ import { contentChildren, inject, DestroyRef, ChangeDetectorRef, afterNextRender, HostBinding, Component, effect, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
4
  import { IDLinkDirective } from '@inera/ids-angular/components/link';
6
5
 
7
6
  class IDFooter1177ProColComponent {
8
- links;
7
+ links = contentChildren(IDLinkDirective);
9
8
  columnClass;
10
9
  get hostClass() {
11
- return this.columnClass;
10
+ return `ids-footer-1177-pro__link-col ${this.columnClass || ''}`;
12
11
  }
13
12
  destroyRef = inject(DestroyRef);
14
- updateColumnClasses() {
15
- this.links.forEach((link) => {
16
- link.footer = true;
17
- link.block = true;
18
- });
19
- }
20
- ngAfterContentInit() {
21
- this.updateColumnClasses();
22
- this.links.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
23
- this.updateColumnClasses();
13
+ cdr = inject(ChangeDetectorRef);
14
+ constructor() {
15
+ afterNextRender(() => {
16
+ this.links().forEach((link) => {
17
+ link.footer = true;
18
+ link.block = true;
19
+ });
24
20
  });
25
21
  }
26
22
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ProColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDFooter1177ProColComponent, isStandalone: true, selector: "id-footer-1177-pro-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-1177-pro__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDFooter1177ProColComponent, isStandalone: true, selector: "id-footer-1177-pro-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-1177-pro__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
28
24
  }
29
25
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ProColComponent, decorators: [{
30
26
  type: Component,
@@ -36,10 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
36
32
  class: 'ids-footer-1177-pro__link-col'
37
33
  }
38
34
  }]
39
- }], propDecorators: { links: [{
40
- type: ContentChildren,
41
- args: [IDLinkDirective]
42
- }], hostClass: [{
35
+ }], ctorParameters: () => [], propDecorators: { hostClass: [{
43
36
  type: HostBinding,
44
37
  args: ['class']
45
38
  }] } });
@@ -47,39 +40,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
47
40
  class IDFooter1177ProComponent {
48
41
  headline;
49
42
  mobileHeadline;
50
- cols;
43
+ cols = contentChildren(IDFooter1177ProColComponent);
51
44
  destroyRef = inject(DestroyRef);
52
- updateColumnClasses() {
53
- const colLength = this.cols?.length || 0;
45
+ cdr = inject(ChangeDetectorRef);
46
+ constructor() {
47
+ effect(() => {
48
+ const cols = this.cols();
49
+ this.updateColumnClasses(cols);
50
+ });
51
+ }
52
+ ngAfterContentInit() {
53
+ this.updateColumnClasses(this.cols());
54
+ }
55
+ updateColumnClasses(cols) {
56
+ const colLength = cols.length;
54
57
  const classMap = {
55
58
  1: 'ids-footer-1177-pro__link-col--100',
56
59
  2: 'ids-footer-1177-pro__link-col--50',
57
60
  3: 'ids-footer-1177-pro__link-col--33',
58
61
  };
59
62
  const newClass = classMap[colLength] || classMap[1];
60
- this.cols?.forEach((col) => {
63
+ cols.forEach((col) => {
61
64
  col.columnClass = newClass;
62
65
  });
63
66
  }
64
- ngAfterContentInit() {
65
- this.updateColumnClasses();
66
- this.cols?.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
67
- this.updateColumnClasses();
68
- });
69
- }
70
67
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ProComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
71
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooter1177ProComponent, isStandalone: true, selector: "id-footer-1177-pro", inputs: { headline: "headline", mobileHeadline: "mobileHeadline" }, queries: [{ propertyName: "cols", predicate: IDFooter1177ProColComponent }], ngImport: i0, template: "\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> p\u00E5 uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooter1177ProComponent, isStandalone: true, selector: "id-footer-1177-pro", inputs: { headline: "headline", mobileHeadline: "mobileHeadline" }, queries: [{ propertyName: "cols", predicate: IDFooter1177ProColComponent, isSignal: true }], ngImport: i0, template: "\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> p\u00E5 uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
72
69
  }
73
70
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ProComponent, decorators: [{
74
71
  type: Component,
75
- args: [{ selector: 'id-footer-1177-pro', standalone: true, imports: [CommonModule], template: "\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> p\u00E5 uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>" }]
76
- }], propDecorators: { headline: [{
72
+ args: [{ selector: 'id-footer-1177-pro', standalone: true, imports: [CommonModule], template: "\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> p\u00E5 uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>" }]
73
+ }], ctorParameters: () => [], propDecorators: { headline: [{
77
74
  type: Input
78
75
  }], mobileHeadline: [{
79
76
  type: Input
80
- }], cols: [{
81
- type: ContentChildren,
82
- args: [IDFooter1177ProColComponent]
83
77
  }] } });
84
78
 
85
79
  class IDFooter1177ProTextComponent {
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-footer-1177-pro.mjs","sources":["../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-col.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.component.html","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-text.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-right.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-left.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-mobile.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.module.ts","../../../projects/ids-angular/components/footer-1177-pro/inera-ids-angular-components-footer-1177-pro.ts"],"sourcesContent":["import { Component, ContentChildren, DestroyRef, HostBinding, inject, QueryList } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDLinkDirective } from '@inera/ids-angular/components/link';\n\n@Component({\n selector: 'id-footer-1177-pro-col',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__link-col'\n }\n})\nexport class IDFooter1177ProColComponent {\n @ContentChildren(IDLinkDirective) links: QueryList<IDLinkDirective>;\n \n columnClass: string;\n \n @HostBinding('class')\n get hostClass() {\n return this.columnClass;\n }\n\n private destroyRef = inject(DestroyRef);\n\n private updateColumnClasses(): void {\n this.links.forEach((link) => {\n link.footer = true;\n link.block = true;\n })\n }\n \n ngAfterContentInit(): void {\n this.updateColumnClasses();\n this.links.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateColumnClasses();\n });\n }\n}","import { CommonModule } from '@angular/common';\nimport { Component, ContentChildren, DestroyRef, inject, Input, QueryList } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDFooter1177ProColComponent } from './footer-1177-pro-col.component';\n\n@Component({\n selector: 'id-footer-1177-pro',\n templateUrl: './footer-1177-pro.component.html',\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDFooter1177ProComponent {\n @Input() headline: string;\n @Input() mobileHeadline: string;\n\n @ContentChildren(IDFooter1177ProColComponent)\n cols!: QueryList<IDFooter1177ProColComponent>;\n\n private destroyRef = inject(DestroyRef);\n\n private updateColumnClasses(): void {\n const colLength = this.cols?.length || 0;\n\n const classMap: Record<number, string> = {\n 1: 'ids-footer-1177-pro__link-col--100',\n 2: 'ids-footer-1177-pro__link-col--50',\n 3: 'ids-footer-1177-pro__link-col--33',\n };\n\n const newClass = classMap[colLength] || classMap[1];\n\n this.cols?.forEach((col) => {\n col.columnClass = newClass;\n });\n }\n\n ngAfterContentInit(): void {\n this.updateColumnClasses();\n this.cols?.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateColumnClasses();\n });\n }\n}\n","\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> på uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-text',\n standalone: true,\n template: `\n <ng-content></ng-content>\n <div class=\"ids-footer-1177-pro__darkmode-toggle\">\n <ng-content select=\"id-darkmode-toggle\"></ng-content>\n </div>\n `,\n host: {\n class: 'ids-footer-1177-pro__text',\n },\n})\nexport class IDFooter1177ProTextComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-right',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__sub-footer-right'\n }\n})\nexport class IDFooter1177ProSubFooterRightComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-left',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__sub-footer-left'\n }\n})\nexport class IDFooter1177ProSubFooterLeftComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-mobile',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__mobile-links'\n }\n})\nexport class IDFooter1177ProSubFooterMobileComponent {\n\n}","import { NgModule } from '@angular/core';\n\nimport { IDFooter1177ProComponent } from './footer-1177-pro.component';\nimport { IDFooter1177ProTextComponent } from './footer-1177-pro-text.component';\nimport { IDFooter1177ProColComponent } from './footer-1177-pro-col.component';\nimport { IDFooter1177ProSubFooterRightComponent } from './footer-1177-pro-sub-footer-right.component';\nimport { IDFooter1177ProSubFooterLeftComponent } from './footer-1177-pro-sub-footer-left.component';\nimport { IDFooter1177ProSubFooterMobileComponent } from './footer-1177-pro-sub-footer-mobile.component';\n\n@NgModule({\n imports: [\n IDFooter1177ProComponent,\n IDFooter1177ProTextComponent,\n IDFooter1177ProColComponent,\n IDFooter1177ProSubFooterRightComponent,\n IDFooter1177ProSubFooterLeftComponent,\n IDFooter1177ProSubFooterMobileComponent,\n ],\n exports: [\n IDFooter1177ProComponent,\n IDFooter1177ProTextComponent,\n IDFooter1177ProColComponent,\n IDFooter1177ProSubFooterRightComponent,\n IDFooter1177ProSubFooterLeftComponent,\n IDFooter1177ProSubFooterMobileComponent,\n ],\n})\nexport class IDFooter1177ProModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAYa,2BAA2B,CAAA;AACH,IAAA,KAAK;AAEtC,IAAA,WAAW;AAEX,IAAA,IACI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,WAAW;IACzB;AAEQ,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAE/B,mBAAmB,GAAA;QACzB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1B,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI;AAClB,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI;AACnB,QAAA,CAAC,CAAC;IACJ;IAEA,kBAAkB,GAAA;QAChB,IAAI,CAAC,mBAAmB,EAAE;AAC1B,QAAA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,MAAK;YAC1E,IAAI,CAAC,mBAAmB,EAAE;AAC5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AAA,CAA2B;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE;AACR;AACF,iBAAA;;;MCkBY,qBAAqB,CAAA;wGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAhB9B,wBAAwB;YACxB,4BAA4B;YAC5B,2BAA2B;YAC3B,sCAAsC;YACtC,qCAAqC;AACrC,YAAA,uCAAuC,aAGvC,wBAAwB;YACxB,4BAA4B;YAC5B,2BAA2B;YAC3B,sCAAsC;YACtC,qCAAqC;YACrC,uCAAuC,CAAA,EAAA,CAAA;AAG9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAhB9B,wBAAwB,CAAA,EAAA,CAAA;;4FAgBf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAlBjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,sCAAsC;wBACtC,qCAAqC;wBACrC,uCAAuC;AACxC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,sCAAsC;wBACtC,qCAAqC;wBACrC,uCAAuC;AACxC,qBAAA;AACF,iBAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-footer-1177-pro.mjs","sources":["../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-col.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.component.html","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-text.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-right.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-left.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro-sub-footer-mobile.component.ts","../../../projects/ids-angular/components/footer-1177-pro/footer-1177-pro.module.ts","../../../projects/ids-angular/components/footer-1177-pro/inera-ids-angular-components-footer-1177-pro.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectorRef, Component, contentChildren, DestroyRef, HostBinding, inject } from '@angular/core';\nimport { IDLinkDirective } from '@inera/ids-angular/components/link';\n\n@Component({\n selector: 'id-footer-1177-pro-col',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__link-col'\n }\n})\nexport class IDFooter1177ProColComponent {\n links = contentChildren(IDLinkDirective);\n \n columnClass: string;\n\n @HostBinding('class')\n get hostClass() {\n return `ids-footer-1177-pro__link-col ${this.columnClass || ''}`;\n }\n\n private destroyRef = inject(DestroyRef);\n cdr = inject(ChangeDetectorRef);\n\n constructor() {\n afterNextRender(() => {\n this.links().forEach((link) => {\n link.footer = true;\n link.block = true;\n });\n });\n }\n}","import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectorRef, Component, contentChildren, DestroyRef, effect, inject, Input } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDFooter1177ProColComponent } from './footer-1177-pro-col.component';\n\n@Component({\n selector: 'id-footer-1177-pro',\n templateUrl: './footer-1177-pro.component.html',\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDFooter1177ProComponent implements AfterContentInit {\n @Input() headline: string;\n @Input() mobileHeadline: string;\n\n cols = contentChildren(IDFooter1177ProColComponent);\n\n private destroyRef = inject(DestroyRef);\n private cdr = inject(ChangeDetectorRef);\n\n constructor() {\n effect(() => {\n const cols = this.cols();\n this.updateColumnClasses(cols);\n });\n }\n\n ngAfterContentInit(): void {\n this.updateColumnClasses(this.cols());\n }\n\n private updateColumnClasses(cols: readonly IDFooter1177ProColComponent[]) {\n const colLength = cols.length;\n\n const classMap: Record<number, string> = {\n 1: 'ids-footer-1177-pro__link-col--100',\n 2: 'ids-footer-1177-pro__link-col--50',\n 3: 'ids-footer-1177-pro__link-col--33',\n };\n\n const newClass = classMap[colLength] || classMap[1];\n\n cols.forEach((col) => {\n col.columnClass = newClass;\n });\n }\n}\n","\n<footer class=\"ids-footer-1177-pro\">\n <div class=\"ids-footer-1177-pro__inner-wrapper\">\n <div class=\"ids-footer-1177-pro__inner\">\n <div class=\"ids-footer-1177-pro__headline-wrapper\">\n <h1 class=\"ids-footer-1177-pro__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-1177-pro__content\">\n <ng-content select=\"id-footer-1177-pro-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177-pro__cols\">\n <ng-content select=\"id-footer-1177-pro-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer\">\n <div class=\"ids-footer-1177-pro__sub-footer-container\">\n <div class=\"ids-footer-1177-pro__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-pro-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-pro-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline-wrapper\">\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-logo\"></div>\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-headline\">{{mobileHeadline}}</div>\n </div>\n\n <div class=\"ids-footer-1177-pro__sub-footer-mobile-text\">\n <p> 1177 drivs av <a href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\">\n <span>Inera AB<span class=\"ids-icon-external-link-small ids-icon--text-end\"></span></span>\n </a> på uppdrag av Sveriges regioner</p>\n </div>\n </div>\n </div>\n</footer>","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-text',\n standalone: true,\n template: `\n <ng-content></ng-content>\n <div class=\"ids-footer-1177-pro__darkmode-toggle\">\n <ng-content select=\"id-darkmode-toggle\"></ng-content>\n </div>\n `,\n host: {\n class: 'ids-footer-1177-pro__text',\n },\n})\nexport class IDFooter1177ProTextComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-right',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__sub-footer-right'\n }\n})\nexport class IDFooter1177ProSubFooterRightComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-left',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__sub-footer-left'\n }\n})\nexport class IDFooter1177ProSubFooterLeftComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-pro-sub-footer-mobile',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177-pro__mobile-links'\n }\n})\nexport class IDFooter1177ProSubFooterMobileComponent {\n\n}","import { NgModule } from '@angular/core';\n\nimport { IDFooter1177ProComponent } from './footer-1177-pro.component';\nimport { IDFooter1177ProTextComponent } from './footer-1177-pro-text.component';\nimport { IDFooter1177ProColComponent } from './footer-1177-pro-col.component';\nimport { IDFooter1177ProSubFooterRightComponent } from './footer-1177-pro-sub-footer-right.component';\nimport { IDFooter1177ProSubFooterLeftComponent } from './footer-1177-pro-sub-footer-left.component';\nimport { IDFooter1177ProSubFooterMobileComponent } from './footer-1177-pro-sub-footer-mobile.component';\n\n@NgModule({\n imports: [\n IDFooter1177ProComponent,\n IDFooter1177ProTextComponent,\n IDFooter1177ProColComponent,\n IDFooter1177ProSubFooterRightComponent,\n IDFooter1177ProSubFooterLeftComponent,\n IDFooter1177ProSubFooterMobileComponent,\n ],\n exports: [\n IDFooter1177ProComponent,\n IDFooter1177ProTextComponent,\n IDFooter1177ProColComponent,\n IDFooter1177ProSubFooterRightComponent,\n IDFooter1177ProSubFooterLeftComponent,\n IDFooter1177ProSubFooterMobileComponent,\n ],\n})\nexport class IDFooter1177ProModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,2BAA2B,CAAA;AACtC,IAAA,KAAK,GAAG,eAAe,CAAC,eAAe,CAAC;AAExC,IAAA,WAAW;AAEX,IAAA,IACI,SAAS,GAAA;AACX,QAAA,OAAO,iCAAiC,IAAI,CAAC,WAAW,IAAI,EAAE,EAAE;IAClE;AAEQ,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AACvC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE/B,IAAA,WAAA,GAAA;QACE,eAAe,CAAC,MAAK;YACnB,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC5B,gBAAA,IAAI,CAAC,MAAM,GAAG,IAAI;AAClB,gBAAA,IAAI,CAAC,KAAK,GAAG,IAAI;AACnB,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;wGApBW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA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EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAhB9B,wBAAwB;YACxB,4BAA4B;YAC5B,2BAA2B;YAC3B,sCAAsC;YACtC,qCAAqC;AACrC,YAAA,uCAAuC,aAGvC,wBAAwB;YACxB,4BAA4B;YAC5B,2BAA2B;YAC3B,sCAAsC;YACtC,qCAAqC;YACrC,uCAAuC,CAAA,EAAA,CAAA;AAG9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAhB9B,wBAAwB,CAAA,EAAA,CAAA;;4FAgBf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAlBjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,sCAAsC;wBACtC,qCAAqC;wBACrC,uCAAuC;AACxC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;wBACxB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,sCAAsC;wBACtC,qCAAqC;wBACrC,uCAAuC;AACxC,qBAAA;AACF,iBAAA;;;AC1BD;;AAEG;;;;"}
@@ -1,29 +1,25 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, DestroyRef, HostBinding, ContentChildren, Component, Input, NgModule } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
2
+ import { contentChildren, inject, DestroyRef, ChangeDetectorRef, afterNextRender, HostBinding, Component, effect, Input, NgModule } from '@angular/core';
4
3
  import { IDLinkDirective } from '@inera/ids-angular/components/link';
5
4
 
6
5
  class IDFooter1177ColComponent {
7
- links;
6
+ links = contentChildren(IDLinkDirective);
8
7
  columnClass;
9
8
  get hostClass() {
10
- return this.columnClass;
9
+ return `ids-footer-1177__link-col ${this.columnClass || ''}`;
11
10
  }
12
11
  destroyRef = inject(DestroyRef);
13
- updateColumnClasses() {
14
- this.links.forEach((link) => {
15
- link.footer = true;
16
- link.block = true;
17
- });
18
- }
19
- ngAfterContentInit() {
20
- this.updateColumnClasses();
21
- this.links.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
22
- this.updateColumnClasses();
12
+ cdr = inject(ChangeDetectorRef);
13
+ constructor() {
14
+ afterNextRender(() => {
15
+ this.links().forEach((link) => {
16
+ link.footer = true;
17
+ link.block = true;
18
+ });
23
19
  });
24
20
  }
25
21
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDFooter1177ColComponent, isStandalone: true, selector: "id-footer-1177-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-1177__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDFooter1177ColComponent, isStandalone: true, selector: "id-footer-1177-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-1177__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
27
23
  }
28
24
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177ColComponent, decorators: [{
29
25
  type: Component,
@@ -35,10 +31,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
35
31
  class: 'ids-footer-1177__link-col',
36
32
  }
37
33
  }]
38
- }], propDecorators: { links: [{
39
- type: ContentChildren,
40
- args: [IDLinkDirective]
41
- }], hostClass: [{
34
+ }], ctorParameters: () => [], propDecorators: { hostClass: [{
42
35
  type: HostBinding,
43
36
  args: ['class']
44
37
  }] } });
@@ -46,39 +39,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
46
39
  class IDFooter1177Component {
47
40
  headline = '';
48
41
  subHeadline = '';
49
- cols;
42
+ cols = contentChildren(IDFooter1177ColComponent);
50
43
  destroyRef = inject(DestroyRef);
51
- updateColumnClasses() {
52
- const colLength = this.cols?.length || 0;
44
+ cdr = inject(ChangeDetectorRef);
45
+ constructor() {
46
+ effect(() => {
47
+ const cols = this.cols();
48
+ this.updateColumnClasses(cols);
49
+ });
50
+ }
51
+ ngAfterContentInit() {
52
+ this.updateColumnClasses(this.cols());
53
+ }
54
+ updateColumnClasses(cols) {
55
+ const colLength = cols.length;
53
56
  const classMap = {
54
57
  1: "ids-footer-1177__link-col--100",
55
58
  2: "ids-footer-1177__link-col--50",
56
59
  3: "ids-footer-1177__link-col--33"
57
60
  };
58
61
  const newClass = classMap[colLength] || classMap[1];
59
- this.cols?.forEach((col) => {
62
+ cols.forEach((col) => {
60
63
  col.columnClass = newClass;
61
64
  });
62
65
  }
63
- ngAfterContentInit() {
64
- this.updateColumnClasses();
65
- this.cols?.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
66
- this.updateColumnClasses();
67
- });
68
- }
69
66
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
70
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooter1177Component, isStandalone: true, selector: "id-footer-1177", inputs: { headline: "headline", subHeadline: "subHeadline" }, queries: [{ propertyName: "cols", predicate: IDFooter1177ColComponent }], ngImport: i0, template: "<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n p\u00E5 uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n" });
67
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooter1177Component, isStandalone: true, selector: "id-footer-1177", inputs: { headline: "headline", subHeadline: "subHeadline" }, queries: [{ propertyName: "cols", predicate: IDFooter1177ColComponent, isSignal: true }], ngImport: i0, template: "<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n p\u00E5 uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n" });
71
68
  }
72
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooter1177Component, decorators: [{
73
70
  type: Component,
74
- args: [{ selector: 'id-footer-1177', standalone: true, template: "<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n p\u00E5 uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n" }]
75
- }], propDecorators: { headline: [{
71
+ args: [{ selector: 'id-footer-1177', standalone: true, template: "<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n p\u00E5 uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n" }]
72
+ }], ctorParameters: () => [], propDecorators: { headline: [{
76
73
  type: Input
77
74
  }], subHeadline: [{
78
75
  type: Input
79
- }], cols: [{
80
- type: ContentChildren,
81
- args: [IDFooter1177ColComponent]
82
76
  }] } });
83
77
 
84
78
  class IDFooter1177TextComponent {
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-footer-1177.mjs","sources":["../../../projects/ids-angular/components/footer-1177/footer-1177-col.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.component.html","../../../projects/ids-angular/components/footer-1177/footer-1177-text.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-right.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-left.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-mobile.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.module.ts","../../../projects/ids-angular/components/footer-1177/inera-ids-angular-components-footer-1177.ts"],"sourcesContent":["import { Component, ContentChildren, DestroyRef, HostBinding, inject, QueryList } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDLinkDirective } from '@inera/ids-angular/components/link';\n\n@Component({\n selector: 'id-footer-1177-col',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__link-col',\n }\n})\nexport class IDFooter1177ColComponent {\n @ContentChildren(IDLinkDirective) links: QueryList<IDLinkDirective>;\n\n columnClass: string;\n\n @HostBinding('class')\n get hostClass() {\n return this.columnClass;\n }\n\n private destroyRef = inject(DestroyRef);\n\n private updateColumnClasses(): void {\n this.links.forEach((link) => {\n link.footer = true;\n link.block = true;\n })\n }\n\n ngAfterContentInit(): void {\n this.updateColumnClasses();\n this.links.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateColumnClasses();\n });\n }\n}","import { Component, ContentChildren, DestroyRef, inject, Input, QueryList } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDFooter1177ColComponent } from './footer-1177-col.component';\n\n@Component({\n selector: 'id-footer-1177',\n templateUrl: './footer-1177.component.html',\n standalone: true,\n})\nexport class IDFooter1177Component {\n\n @Input() headline: string = '';\n @Input() subHeadline: string = '';\n\n @ContentChildren(IDFooter1177ColComponent) \n cols!: QueryList<IDFooter1177ColComponent>;\n\n private destroyRef = inject(DestroyRef);\n\n private updateColumnClasses(): void {\n const colLength = this.cols?.length || 0;\n \n const classMap: Record<number, string> = {\n 1: \"ids-footer-1177__link-col--100\",\n 2: \"ids-footer-1177__link-col--50\",\n 3: \"ids-footer-1177__link-col--33\"\n };\n\n const newClass = classMap[colLength] || classMap[1];\n\n this.cols?.forEach((col) => {\n col.columnClass = newClass;\n });\n }\n\n ngAfterContentInit(): void {\n this.updateColumnClasses();\n this.cols?.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateColumnClasses();\n });\n }\n \n}\n","<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n på uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-text',\n standalone: true,\n template: `\n <ng-content></ng-content>\n <div class=\"ids-footer-1177__darkmode-toggle\">\n <ng-content select=\"id-darkmode-toggle\"></ng-content>\n </div>\n `,\n host: {\n class: 'ids-footer-1177__text',\n },\n})\nexport class IDFooter1177TextComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: 'id-footer-1177-sub-footer-right',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__sub-footer-right'\n }\n})\nexport class IDFooter1177SubFooterRightComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-sub-footer-left',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__sub-footer-left'\n }\n})\nexport class IDFooter1177SubFooterLeftComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-sub-footer-mobile',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__mobile-links'\n }\n})\nexport class IDFooter1177SubFooterMobileComponent {\n\n}","import { NgModule } from '@angular/core';\n\nimport { IDFooter1177Component } from './footer-1177.component';\nimport { IDFooter1177TextComponent } from './footer-1177-text.component';\nimport { IDFooter1177ColComponent } from './footer-1177-col.component';\nimport { IDFooter1177SubFooterRightComponent } from './footer-1177-sub-footer-right.component';\nimport { IDFooter1177SubFooterLeftComponent } from './footer-1177-sub-footer-left.component';\nimport { IDFooter1177SubFooterMobileComponent } from './footer-1177-sub-footer-mobile.component';\n\n\n@NgModule({\n imports: [\n IDFooter1177Component,\n IDFooter1177TextComponent,\n IDFooter1177ColComponent,\n IDFooter1177SubFooterRightComponent,\n IDFooter1177SubFooterLeftComponent,\n IDFooter1177SubFooterMobileComponent,\n ],\n exports: [\n IDFooter1177Component,\n IDFooter1177TextComponent,\n IDFooter1177ColComponent,\n IDFooter1177SubFooterRightComponent,\n IDFooter1177SubFooterLeftComponent,\n IDFooter1177SubFooterMobileComponent,\n ],\n})\nexport class IDFooter1177Module {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,wBAAwB,CAAA;AACD,IAAA,KAAK;AAEvC,IAAA,WAAW;AAEX,IAAA,IACI,SAAS,GAAA;QACX,OAAO,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AkC;wBAClC,oCAAoC;AACrC,qBAAA;AACF,iBAAA;;;AC3BD;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-footer-1177.mjs","sources":["../../../projects/ids-angular/components/footer-1177/footer-1177-col.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.component.html","../../../projects/ids-angular/components/footer-1177/footer-1177-text.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-right.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-left.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177-sub-footer-mobile.component.ts","../../../projects/ids-angular/components/footer-1177/footer-1177.module.ts","../../../projects/ids-angular/components/footer-1177/inera-ids-angular-components-footer-1177.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectorRef, Component, contentChildren, DestroyRef, HostBinding, inject } from '@angular/core';\nimport { IDLinkDirective } from '@inera/ids-angular/components/link';\n\n@Component({\n selector: 'id-footer-1177-col',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__link-col',\n }\n})\nexport class IDFooter1177ColComponent {\n links = contentChildren(IDLinkDirective);\n\n columnClass: string;\n\n @HostBinding('class')\n get hostClass() {\n return `ids-footer-1177__link-col ${this.columnClass || ''}`;\n }\n\n private destroyRef = inject(DestroyRef);\n cdr = inject(ChangeDetectorRef);\n\n constructor() {\n afterNextRender(() => {\n this.links().forEach((link) => {\n link.footer = true;\n link.block = true;\n });\n });\n }\n}","import { AfterContentInit, ChangeDetectorRef, Component, contentChildren, DestroyRef, effect, inject, Input } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { IDFooter1177ColComponent } from './footer-1177-col.component';\n\n@Component({\n selector: 'id-footer-1177',\n templateUrl: './footer-1177.component.html',\n standalone: true,\n})\nexport class IDFooter1177Component implements AfterContentInit {\n\n @Input() headline: string = '';\n @Input() subHeadline: string = '';\n\n cols = contentChildren(IDFooter1177ColComponent);\n\n private destroyRef = inject(DestroyRef);\n private cdr = inject(ChangeDetectorRef);\n\n constructor() {\n effect(() => {\n const cols = this.cols();\n this.updateColumnClasses(cols);\n });\n }\n\n ngAfterContentInit(): void {\n this.updateColumnClasses(this.cols());\n }\n\n private updateColumnClasses(cols: readonly IDFooter1177ColComponent[]) {\n const colLength = cols.length;\n \n const classMap: Record<number, string> = {\n 1: \"ids-footer-1177__link-col--100\",\n 2: \"ids-footer-1177__link-col--50\",\n 3: \"ids-footer-1177__link-col--33\"\n };\n\n const newClass = classMap[colLength] || classMap[1];\n\n cols.forEach((col) => {\n col.columnClass = newClass;\n });\n }\n \n}\n","<footer class=\"ids-footer-1177\">\n <div class=\"ids-footer-1177__inner-wrapper\">\n <div class=\"ids-footer-1177__inner\">\n <div class=\"ids-footer-1177__headline-wrapper\">\n <h1 class=\"ids-footer-1177__headline\">\n {{ headline }}\n <span class=\"ids-footer-1177__headline--sub\">{{ subHeadline }}</span>\n </h1>\n </div>\n\n <div class=\"ids-footer-1177__content\">\n <ng-content select=\"id-footer-1177-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-1177__cols\">\n <ng-content select=\"id-footer-1177-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer\">\n <div class=\"ids-footer-1177__sub-footer-container\">\n <div class=\"ids-footer-1177__sub-footer-inner\">\n <ng-content select=\"id-footer-1177-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-1177-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-1177__sub-footer-mobile\">\n <div class=\"ids-footer-1177__sub-footer-mobile-text\">\n <p>\n 1177 drivs av\n <a\n href=\"https://www.inera.se\"\n class=\"ids-link ids-link--icon ids-link--small ids-link--underlined ids-link--color-3\"\n >\n <span>\n Inera AB\n <span class=\"ids-icon-external-link-small ids-icon--text-end\"></span>\n </span>\n </a>\n på uppdrag av Sveriges regioner\n </p>\n </div>\n </div>\n </div>\n</footer>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-text',\n standalone: true,\n template: `\n <ng-content></ng-content>\n <div class=\"ids-footer-1177__darkmode-toggle\">\n <ng-content select=\"id-darkmode-toggle\"></ng-content>\n </div>\n `,\n host: {\n class: 'ids-footer-1177__text',\n },\n})\nexport class IDFooter1177TextComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: 'id-footer-1177-sub-footer-right',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__sub-footer-right'\n }\n})\nexport class IDFooter1177SubFooterRightComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-sub-footer-left',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__sub-footer-left'\n }\n})\nexport class IDFooter1177SubFooterLeftComponent {\n\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'id-footer-1177-sub-footer-mobile',\n standalone: true,\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-footer-1177__mobile-links'\n }\n})\nexport class IDFooter1177SubFooterMobileComponent {\n\n}","import { NgModule } from '@angular/core';\n\nimport { IDFooter1177Component } from './footer-1177.component';\nimport { IDFooter1177TextComponent } from './footer-1177-text.component';\nimport { IDFooter1177ColComponent } from './footer-1177-col.component';\nimport { IDFooter1177SubFooterRightComponent } from './footer-1177-sub-footer-right.component';\nimport { IDFooter1177SubFooterLeftComponent } from './footer-1177-sub-footer-left.component';\nimport { IDFooter1177SubFooterMobileComponent } from './footer-1177-sub-footer-mobile.component';\n\n\n@NgModule({\n imports: [\n IDFooter1177Component,\n IDFooter1177TextComponent,\n IDFooter1177ColComponent,\n IDFooter1177SubFooterRightComponent,\n IDFooter1177SubFooterLeftComponent,\n IDFooter1177SubFooterMobileComponent,\n ],\n exports: [\n IDFooter1177Component,\n IDFooter1177TextComponent,\n IDFooter1177ColComponent,\n IDFooter1177SubFooterRightComponent,\n IDFooter1177SubFooterLeftComponent,\n IDFooter1177SubFooterMobileComponent,\n ],\n})\nexport class IDFooter1177Module {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,wBAAwB,CAAA;AACnC,IAAA,KAAK,GAAG,eAAe,CAAC,eAAe,CAAC;AAExC,IAAA,WAAW;AAEX,IAAA,IACI,SAAS,GAAA;AACX,QAAA,OAAO,6BAA6B,IAAI,CAAC,WAAW,IAAI,EAAE,EAAE;IAC9D;AAEQ,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AACvC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE/B,IAAA,WAAA,GAAA;QACE,eAAe,CAAC,MAAK;YACnB,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC5B,gBAAA,IAAI,CAAC,MAAM,GAAG,IAAI;AAClB,gBAAA,IAAI,CAAC,KAAK,GAAG,IAAI;AACnB,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;wGApBW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,EAAA,cAAA,EAAA,2BAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,OAAA,EAAA,SAAA,EACX,eAAe,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN7B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G3B,kBAAkB,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,mCAAmC;wBACnC,kCAAkC;wBAClC,oCAAoC;AACrC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,mCAAmC;wBACnC,kCAAkC;wBAClC,oCAAoC;AACrC,qBAAA;AACF,iBAAA;;;AC3BD;;AAEG;;;;"}
@@ -1,31 +1,27 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, DestroyRef, HostBinding, ContentChildren, Component, Input, NgModule } from '@angular/core';
2
+ import { contentChildren, inject, ElementRef, DestroyRef, ChangeDetectorRef, afterNextRender, HostBinding, Component, effect, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
4
  import { IDLinkDirective } from '@inera/ids-angular/components/link';
6
5
 
7
6
  class IDFooterIneraAdminColComponent {
8
- links;
7
+ links = contentChildren(IDLinkDirective);
9
8
  columnClass;
10
9
  get hostClass() {
11
- return this.columnClass;
10
+ return `ids-footer-inera-admin__link-col ${this.columnClass || ''}`;
12
11
  }
13
12
  elementRef = inject(ElementRef);
14
13
  destroyRef = inject(DestroyRef);
15
- updateColumnClasses() {
16
- this.links.forEach((link) => {
17
- link.colorPreset = 2;
18
- link.block = true;
19
- });
20
- }
21
- ngAfterContentInit() {
22
- this.updateColumnClasses();
23
- this.links.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
24
- this.updateColumnClasses();
14
+ cdr = inject(ChangeDetectorRef);
15
+ constructor() {
16
+ afterNextRender(() => {
17
+ this.links().forEach((link) => {
18
+ link.colorPreset = 2;
19
+ link.block = true;
20
+ });
25
21
  });
26
22
  }
27
23
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooterIneraAdminColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDFooterIneraAdminColComponent, isStandalone: true, selector: "id-footer-inera-admin-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-inera-admin__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDFooterIneraAdminColComponent, isStandalone: true, selector: "id-footer-inera-admin-col", host: { properties: { "class": "this.hostClass" }, classAttribute: "ids-footer-inera-admin__link-col" }, queries: [{ propertyName: "links", predicate: IDLinkDirective, isSignal: true }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
29
25
  }
30
26
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooterIneraAdminColComponent, decorators: [{
31
27
  type: Component,
@@ -37,47 +33,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
37
33
  class: 'ids-footer-inera-admin__link-col'
38
34
  }
39
35
  }]
40
- }], propDecorators: { links: [{
41
- type: ContentChildren,
42
- args: [IDLinkDirective]
43
- }], hostClass: [{
36
+ }], ctorParameters: () => [], propDecorators: { hostClass: [{
44
37
  type: HostBinding,
45
38
  args: ['class']
46
39
  }] } });
47
40
 
48
41
  class IDFooterIneraAdminComponent {
49
42
  headline = '';
50
- cols;
43
+ cols = contentChildren(IDFooterIneraAdminColComponent);
51
44
  destroyRef = inject(DestroyRef);
52
- updateColumnClasses() {
53
- const colLength = this.cols?.length || 0;
45
+ constructor() {
46
+ effect(() => {
47
+ const cols = this.cols();
48
+ this.updateColumnClasses(cols);
49
+ });
50
+ }
51
+ ngAfterContentInit() {
52
+ this.updateColumnClasses(this.cols());
53
+ }
54
+ updateColumnClasses(cols) {
55
+ const colLength = cols.length;
54
56
  const classMap = {
55
57
  1: "ids-footer-inera-admin__link-col--100",
56
58
  2: "ids-footer-inera-admin__link-col--50",
57
59
  3: "ids-footer-inera-admin__link-col--33"
58
60
  };
59
61
  const newClass = classMap[colLength] || classMap[1];
60
- this.cols?.forEach((col) => {
62
+ cols.forEach((col) => {
61
63
  col.columnClass = newClass;
62
64
  });
63
65
  }
64
- ngAfterContentInit() {
65
- this.updateColumnClasses();
66
- this.cols?.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
67
- this.updateColumnClasses();
68
- });
69
- }
70
66
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooterIneraAdminComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
71
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooterIneraAdminComponent, isStandalone: true, selector: "id-footer-inera-admin", inputs: { headline: "headline" }, queries: [{ propertyName: "cols", predicate: IDFooterIneraAdminColComponent }], ngImport: i0, template: "\n<footer class=\"ids-footer-inera-admin\">\n <div class=\"ids-footer-inera-admin__inner-wrapper\">\n <div class=\"ids-footer-inera-admin__inner\">\n <div class=\"ids-footer-inera-admin__headline-wrapper\">\n <h1 class=\"ids-footer-inera-admin__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-inera-admin__content\">\n <ng-content select=\"id-footer-inera-admin-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-inera-admin__cols\">\n <ng-content select=\"id-footer-inera-admin-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer\">\n <div class=\"ids-footer-inera-admin__sub-footer-container\">\n <div class=\"ids-footer-inera-admin__sub-footer-inner\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer-mobile\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile-text\"></ng-content>\n </div>\n </div>\n</footer>", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
67
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDFooterIneraAdminComponent, isStandalone: true, selector: "id-footer-inera-admin", inputs: { headline: "headline" }, queries: [{ propertyName: "cols", predicate: IDFooterIneraAdminColComponent, isSignal: true }], ngImport: i0, template: "\n<footer class=\"ids-footer-inera-admin\">\n <div class=\"ids-footer-inera-admin__inner-wrapper\">\n <div class=\"ids-footer-inera-admin__inner\">\n <div class=\"ids-footer-inera-admin__headline-wrapper\">\n <h1 class=\"ids-footer-inera-admin__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-inera-admin__content\">\n <ng-content select=\"id-footer-inera-admin-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-inera-admin__cols\">\n <ng-content select=\"id-footer-inera-admin-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer\">\n <div class=\"ids-footer-inera-admin__sub-footer-container\">\n <div class=\"ids-footer-inera-admin__sub-footer-inner\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer-mobile\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile-text\"></ng-content>\n </div>\n </div>\n</footer>", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
72
68
  }
73
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDFooterIneraAdminComponent, decorators: [{
74
70
  type: Component,
75
- args: [{ selector: 'id-footer-inera-admin', standalone: true, imports: [CommonModule], template: "\n<footer class=\"ids-footer-inera-admin\">\n <div class=\"ids-footer-inera-admin__inner-wrapper\">\n <div class=\"ids-footer-inera-admin__inner\">\n <div class=\"ids-footer-inera-admin__headline-wrapper\">\n <h1 class=\"ids-footer-inera-admin__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-inera-admin__content\">\n <ng-content select=\"id-footer-inera-admin-text\"></ng-content>\n @if(cols.length > 0) {\n <div class=\"ids-footer-inera-admin__cols\">\n <ng-content select=\"id-footer-inera-admin-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer\">\n <div class=\"ids-footer-inera-admin__sub-footer-container\">\n <div class=\"ids-footer-inera-admin__sub-footer-inner\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer-mobile\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile-text\"></ng-content>\n </div>\n </div>\n</footer>" }]
76
- }], propDecorators: { headline: [{
71
+ args: [{ selector: 'id-footer-inera-admin', standalone: true, imports: [CommonModule], template: "\n<footer class=\"ids-footer-inera-admin\">\n <div class=\"ids-footer-inera-admin__inner-wrapper\">\n <div class=\"ids-footer-inera-admin__inner\">\n <div class=\"ids-footer-inera-admin__headline-wrapper\">\n <h1 class=\"ids-footer-inera-admin__headline\">\n {{headline}}\n </h1>\n </div>\n\n <div class=\"ids-footer-inera-admin__content\">\n <ng-content select=\"id-footer-inera-admin-text\"></ng-content>\n @if(cols().length > 0) {\n <div class=\"ids-footer-inera-admin__cols\">\n <ng-content select=\"id-footer-inera-admin-col\"></ng-content>\n </div>\n }\n </div>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__mobile-menu\">\n <ng-content select=\"id-mobile-menu\"></ng-content>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer\">\n <div class=\"ids-footer-inera-admin__sub-footer-container\">\n <div class=\"ids-footer-inera-admin__sub-footer-inner\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-left\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-right\"></ng-content>\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile\"></ng-content>\n </div>\n </div>\n\n <div class=\"ids-footer-inera-admin__sub-footer-mobile\">\n <ng-content select=\"id-footer-inera-admin-sub-footer-mobile-text\"></ng-content>\n </div>\n </div>\n</footer>" }]
72
+ }], ctorParameters: () => [], propDecorators: { headline: [{
77
73
  type: Input
78
- }], cols: [{
79
- type: ContentChildren,
80
- args: [IDFooterIneraAdminColComponent]
81
74
  }] } });
82
75
 
83
76
  class IDFooterIneraAdminTextComponent {