@inera/ids-angular 9.3.0 → 9.4.1

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 (129) hide show
  1. package/components/box-link/box-link.component.d.ts +1 -1
  2. package/components/dialog/dialog.module.d.ts +12 -0
  3. package/components/dialog/public-api.d.ts +1 -0
  4. package/components/district-selector/district-selector.component.d.ts +14 -0
  5. package/components/district-selector/index.d.ts +5 -0
  6. package/components/district-selector/public-api.d.ts +1 -0
  7. package/components/form/spinner/spinner.component.d.ts +2 -1
  8. package/components/header-1177/region-picker/header-1177-region-picker.component.d.ts +1 -1
  9. package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +3 -1
  10. package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +3 -1
  11. package/components/header-inera/nav/header-inera-nav.component.d.ts +1 -1
  12. package/components/header-inera-admin/header-inera-admin.component.d.ts +6 -6
  13. package/components/header-inera-admin/header-inera-admin.module.d.ts +1 -1
  14. package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +3 -1
  15. package/components/header-inera-admin/public-api.d.ts +12 -12
  16. package/components/header-inera-general/avatar/header-inera-general-avatar.component.d.ts +26 -0
  17. package/components/header-inera-general/avatar-mobile/header-inera-general-avatar-mobile.component.d.ts +26 -0
  18. package/components/header-inera-general/header-inera-general.component.d.ts +6 -1
  19. package/components/header-inera-general/header-inera-general.module.d.ts +11 -8
  20. package/components/header-inera-general/item/header-inera-general-item.component.d.ts +3 -1
  21. package/components/header-inera-general/nav-item-mobile/header-inera-general-nav-item-mobile.component.d.ts +8 -0
  22. package/components/header-inera-general/nav-mobile/header-inera-general-nav-mobile.component.d.ts +7 -0
  23. package/components/header-inera-general/public-api.d.ts +5 -1
  24. package/components/message-avatar/index.d.ts +5 -0
  25. package/components/message-avatar/message-avatar.component.d.ts +10 -0
  26. package/components/message-avatar/public-api.d.ts +1 -0
  27. package/components/navigation/content/navigation-content-item.component.d.ts +24 -0
  28. package/components/navigation/content/navigation-content.component.d.ts +5 -1
  29. package/components/navigation/content/public-api.d.ts +1 -0
  30. package/components/side-menu/side-menu.component.d.ts +2 -0
  31. package/components/stepper/step.component.d.ts +2 -0
  32. package/components/tabs/tab-group.component.d.ts +3 -2
  33. package/fesm2022/inera-ids-angular-common.mjs +24 -24
  34. package/fesm2022/inera-ids-angular-components-accordion.mjs +6 -6
  35. package/fesm2022/inera-ids-angular-components-action-link.mjs +3 -3
  36. package/fesm2022/inera-ids-angular-components-alert.mjs +6 -6
  37. package/fesm2022/inera-ids-angular-components-badge.mjs +4 -4
  38. package/fesm2022/inera-ids-angular-components-badge.mjs.map +1 -1
  39. package/fesm2022/inera-ids-angular-components-box-link.mjs +13 -11
  40. package/fesm2022/inera-ids-angular-components-box-link.mjs.map +1 -1
  41. package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +6 -6
  42. package/fesm2022/inera-ids-angular-components-button-group.mjs +3 -3
  43. package/fesm2022/inera-ids-angular-components-button.mjs +3 -3
  44. package/fesm2022/inera-ids-angular-components-card.mjs +3 -3
  45. package/fesm2022/inera-ids-angular-components-carousel.mjs +7 -7
  46. package/fesm2022/inera-ids-angular-components-carousel.mjs.map +1 -1
  47. package/fesm2022/inera-ids-angular-components-control-button.mjs +3 -3
  48. package/fesm2022/inera-ids-angular-components-control-button.mjs.map +1 -1
  49. package/fesm2022/inera-ids-angular-components-date-label.mjs +3 -3
  50. package/fesm2022/inera-ids-angular-components-dialog.mjs +57 -20
  51. package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
  52. package/fesm2022/inera-ids-angular-components-district-selector.mjs +45 -0
  53. package/fesm2022/inera-ids-angular-components-district-selector.mjs.map +1 -0
  54. package/fesm2022/inera-ids-angular-components-dropdown.mjs +13 -13
  55. package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs +22 -22
  56. package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs +22 -22
  57. package/fesm2022/inera-ids-angular-components-footer-1177.mjs +22 -22
  58. package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +25 -25
  59. package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs +25 -25
  60. package/fesm2022/inera-ids-angular-components-footer-inera.mjs +25 -25
  61. package/fesm2022/inera-ids-angular-components-form-check-button.mjs +3 -3
  62. package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs +3 -3
  63. package/fesm2022/inera-ids-angular-components-form-checkbox.mjs +3 -3
  64. package/fesm2022/inera-ids-angular-components-form-darkmode-toggle.mjs +3 -3
  65. package/fesm2022/inera-ids-angular-components-form-error-message.mjs +3 -3
  66. package/fesm2022/inera-ids-angular-components-form-input.mjs +15 -15
  67. package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs +3 -3
  68. package/fesm2022/inera-ids-angular-components-form-radio-button.mjs +6 -6
  69. package/fesm2022/inera-ids-angular-components-form-radio.mjs +6 -6
  70. package/fesm2022/inera-ids-angular-components-form-range.mjs +3 -3
  71. package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs +3 -3
  72. package/fesm2022/inera-ids-angular-components-form-select.mjs +3 -3
  73. package/fesm2022/inera-ids-angular-components-form-spinner.mjs +7 -4
  74. package/fesm2022/inera-ids-angular-components-form-spinner.mjs.map +1 -1
  75. package/fesm2022/inera-ids-angular-components-form-textarea.mjs +6 -6
  76. package/fesm2022/inera-ids-angular-components-form-time.mjs +3 -3
  77. package/fesm2022/inera-ids-angular-components-form-toggle.mjs +3 -3
  78. package/fesm2022/inera-ids-angular-components-global-alert.mjs +9 -9
  79. package/fesm2022/inera-ids-angular-components-grid-column.mjs +3 -3
  80. package/fesm2022/inera-ids-angular-components-grid-container.mjs +3 -3
  81. package/fesm2022/inera-ids-angular-components-grid-layout-grid-column.mjs +3 -3
  82. package/fesm2022/inera-ids-angular-components-grid-layout-grid-container.mjs +3 -3
  83. package/fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs +3 -3
  84. package/fesm2022/inera-ids-angular-components-grid-layout.mjs +9 -9
  85. package/fesm2022/inera-ids-angular-components-grid-row.mjs +3 -3
  86. package/fesm2022/inera-ids-angular-components-grid.mjs +9 -9
  87. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +63 -55
  88. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
  89. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +67 -55
  90. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
  91. package/fesm2022/inera-ids-angular-components-header-1177.mjs +79 -87
  92. package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
  93. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +76 -72
  94. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
  95. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs +374 -36
  96. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs.map +1 -1
  97. package/fesm2022/inera-ids-angular-components-header-inera.mjs +36 -34
  98. package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
  99. package/fesm2022/inera-ids-angular-components-header-patient.mjs +6 -6
  100. package/fesm2022/inera-ids-angular-components-link.mjs +3 -3
  101. package/fesm2022/inera-ids-angular-components-message-avatar.mjs +35 -0
  102. package/fesm2022/inera-ids-angular-components-message-avatar.mjs.map +1 -0
  103. package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs +4 -4
  104. package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs.map +1 -1
  105. package/fesm2022/inera-ids-angular-components-mobile-menu.mjs +7 -7
  106. package/fesm2022/inera-ids-angular-components-mobile-menu.mjs.map +1 -1
  107. package/fesm2022/inera-ids-angular-components-navigation-content.mjs +77 -10
  108. package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
  109. package/fesm2022/inera-ids-angular-components-navigation-local.mjs +6 -6
  110. package/fesm2022/inera-ids-angular-components-notification-badge.mjs +5 -5
  111. package/fesm2022/inera-ids-angular-components-notification-badge.mjs.map +1 -1
  112. package/fesm2022/inera-ids-angular-components-pagination-data-pagination.mjs +6 -6
  113. package/fesm2022/inera-ids-angular-components-pagination-list-pagination.mjs +3 -3
  114. package/fesm2022/inera-ids-angular-components-popover.mjs +19 -19
  115. package/fesm2022/inera-ids-angular-components-progressbar.mjs +3 -3
  116. package/fesm2022/inera-ids-angular-components-puff-list.mjs +25 -25
  117. package/fesm2022/inera-ids-angular-components-region-icon.mjs +3 -3
  118. package/fesm2022/inera-ids-angular-components-side-menu.mjs +33 -20
  119. package/fesm2022/inera-ids-angular-components-side-menu.mjs.map +1 -1
  120. package/fesm2022/inera-ids-angular-components-side-panel.mjs +13 -13
  121. package/fesm2022/inera-ids-angular-components-stepper.mjs +21 -14
  122. package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
  123. package/fesm2022/inera-ids-angular-components-tabs.mjs +11 -7
  124. package/fesm2022/inera-ids-angular-components-tabs.mjs.map +1 -1
  125. package/fesm2022/inera-ids-angular-components-tag.mjs +6 -6
  126. package/fesm2022/inera-ids-angular-components-toolbar.mjs +3 -3
  127. package/fesm2022/inera-ids-angular-components-tooltip.mjs +10 -10
  128. package/package.json +115 -107
  129. /package/components/header-inera-admin/nav-item-mobile/{header-inera-admin-nav-item-mobile.d.ts → header-inera-admin-nav-item-mobile.component.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, booleanAttribute, Output, Input, Component, contentChildren, NgModule } from '@angular/core';
2
+ import { EventEmitter, inject, booleanAttribute, Output, Input, Component, contentChildren, NgModule } from '@angular/core';
3
+ import { IDUseIdService } from '@inera/ids-angular/common';
3
4
 
4
5
  class IDStepComponent {
5
6
  state = '';
@@ -11,6 +12,8 @@ class IDStepComponent {
11
12
  closed = new EventEmitter();
12
13
  opened = new EventEmitter();
13
14
  expandedChange = new EventEmitter();
15
+ idService = inject(IDUseIdService);
16
+ contentId = this.idService.generateId('step');
14
17
  toggleExpansion() {
15
18
  if (this.expanded) {
16
19
  this.hasClosed();
@@ -29,12 +32,13 @@ class IDStepComponent {
29
32
  this.expandedChange.emit(true);
30
33
  this.opened.emit();
31
34
  }
32
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDStepComponent, isStandalone: true, selector: "id-step", inputs: { state: "state", step: "step", srIndicatorText: "srIndicatorText", subtitle: "subtitle", disabled: ["disabled", "disabled", booleanAttribute], expanded: ["expanded", "expanded", booleanAttribute] }, outputs: { closed: "closed", opened: "opened", expandedChange: "expandedChange" }, host: { classAttribute: "ids-step" }, ngImport: i0, template: `
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDStepComponent, isStandalone: true, selector: "id-step", inputs: { state: "state", step: "step", srIndicatorText: "srIndicatorText", subtitle: "subtitle", disabled: ["disabled", "disabled", booleanAttribute], expanded: ["expanded", "expanded", booleanAttribute] }, outputs: { closed: "closed", opened: "opened", expandedChange: "expandedChange" }, host: { classAttribute: "ids-step" }, ngImport: i0, template: `
34
37
  <button
35
38
  class="ids-step__button focusable"
36
39
  [class.ids-step__button--disabled]="disabled"
37
40
  [disabled]="disabled"
41
+ [attr.aria-controls]="contentId"
38
42
  (click)="toggleExpansion()"
39
43
  >
40
44
  <div class="ids-step__button-inner">
@@ -65,6 +69,7 @@ class IDStepComponent {
65
69
  </div>
66
70
  </button>
67
71
  <div
72
+ [id]="contentId"
68
73
  class="ids-step__content"
69
74
  [class.ids-step__content--expanded]="expanded"
70
75
  >
@@ -72,7 +77,7 @@ class IDStepComponent {
72
77
  </div>
73
78
  `, isInline: true });
74
79
  }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepComponent, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepComponent, decorators: [{
76
81
  type: Component,
77
82
  args: [{
78
83
  selector: 'id-step',
@@ -81,6 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
81
86
  class="ids-step__button focusable"
82
87
  [class.ids-step__button--disabled]="disabled"
83
88
  [disabled]="disabled"
89
+ [attr.aria-controls]="contentId"
84
90
  (click)="toggleExpansion()"
85
91
  >
86
92
  <div class="ids-step__button-inner">
@@ -111,6 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
111
117
  </div>
112
118
  </button>
113
119
  <div
120
+ [id]="contentId"
114
121
  class="ids-step__content"
115
122
  [class.ids-step__content--expanded]="expanded"
116
123
  >
@@ -153,10 +160,10 @@ class IDStepperComponent {
153
160
  }
154
161
  });
155
162
  }
156
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
157
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDStepperComponent, isStandalone: true, selector: "id-stepper", host: { classAttribute: "ids-stepper" }, queries: [{ propertyName: "steps", predicate: IDStepComponent, isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDStepperComponent, isStandalone: true, selector: "id-stepper", host: { classAttribute: "ids-stepper" }, queries: [{ propertyName: "steps", predicate: IDStepComponent, isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
158
165
  }
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepperComponent, decorators: [{
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepperComponent, decorators: [{
160
167
  type: Component,
161
168
  args: [{
162
169
  selector: "id-stepper",
@@ -169,10 +176,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
169
176
  }] });
170
177
 
171
178
  class IDStepHeaderComponent {
172
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
173
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDStepHeaderComponent, isStandalone: true, selector: "id-step-header", host: { classAttribute: "ids-step__headline" }, ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
179
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
180
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: IDStepHeaderComponent, isStandalone: true, selector: "id-step-header", host: { classAttribute: "ids-step__headline" }, ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
174
181
  }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepHeaderComponent, decorators: [{
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepHeaderComponent, decorators: [{
176
183
  type: Component,
177
184
  args: [{
178
185
  selector: "id-step-header",
@@ -185,15 +192,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
185
192
  }] });
186
193
 
187
194
  class IDStepperModule {
188
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
189
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: IDStepperModule, imports: [IDStepComponent,
195
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
196
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: IDStepperModule, imports: [IDStepComponent,
190
197
  IDStepperComponent,
191
198
  IDStepHeaderComponent], exports: [IDStepComponent,
192
199
  IDStepperComponent,
193
200
  IDStepHeaderComponent] });
194
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepperModule });
201
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepperModule });
195
202
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDStepperModule, decorators: [{
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDStepperModule, decorators: [{
197
204
  type: NgModule,
198
205
  args: [{
199
206
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-stepper.mjs","sources":["../../../projects/ids-angular/components/stepper/step.component.ts","../../../projects/ids-angular/components/stepper/stepper.component.ts","../../../projects/ids-angular/components/stepper/step-header.component.ts","../../../projects/ids-angular/components/stepper/stepper.module.ts","../../../projects/ids-angular/components/stepper/inera-ids-angular-components-stepper.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output, booleanAttribute } from '@angular/core';\n\n@Component({\n selector: 'id-step',\n template: `\n <button\n class=\"ids-step__button focusable\"\n [class.ids-step__button--disabled]=\"disabled\"\n [disabled]=\"disabled\"\n (click)=\"toggleExpansion()\"\n >\n <div class=\"ids-step__button-inner\">\n <div class=\"ids-step__indicator-wrapper\">\n <div\n [attr.aria-label]=\"this.srIndicatorText || this.step\"\n [attr.role-img-alt]=\"this.srIndicatorText || this.step\"\n role=\"img\"\n class=\"ids-step__indicator ids-step__indicator--{{ this.state }}\"\n >\n @if (this.state !== 'valid' && this.state !== 'invalid') {\n {{ step }}\n }\n </div>\n </div>\n <div class=\"ids-step__button-text\">\n <div class=\"ids-step__headline-label\">\n <ng-content select=\"id-step-header\"></ng-content>\n @if (subtitle) {\n <div class=\"ids-step__subtitle\">{{ subtitle }}</div>\n }\n </div>\n <div\n class=\"ids-step__chevron\"\n [class.ids-step__chevron--expanded]=\"expanded\"\n ></div>\n </div>\n </div>\n </button>\n <div\n class=\"ids-step__content\"\n [class.ids-step__content--expanded]=\"expanded\"\n >\n <ng-content></ng-content>\n </div>\n `,\n host: {\n class: 'ids-step',\n },\n standalone: true,\n})\nexport class IDStepComponent {\n @Input() state: '' | 'valid' | 'invalid' | 'selected' = '';\n @Input() step = '';\n @Input() srIndicatorText = '';\n @Input() subtitle = '';\n @Input({ transform: booleanAttribute }) disabled = false;\n @Input({ transform: booleanAttribute }) expanded = false;\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n @Output() expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n toggleExpansion() {\n if (this.expanded) {\n this.hasClosed();\n } else {\n this.hasExpanded();\n }\n }\n\n hasClosed() {\n this.expanded = false;\n this.expandedChange.emit(false);\n this.closed.emit();\n }\n hasExpanded() {\n this.expanded = true;\n this.expandedChange.emit(true);\n this.opened.emit();\n }\n}\n","import { AfterContentInit, Component, contentChildren } from '@angular/core';\nimport { IDStepComponent } from \"./step.component\";\n\n@Component({\n selector: \"id-stepper\",\n template: \"<ng-content></ng-content>\",\n standalone: true,\n host: {\n class: 'ids-stepper'\n }\n})\nexport class IDStepperComponent implements AfterContentInit {\n\n steps = contentChildren(IDStepComponent);\n\n ngAfterContentInit(): void {\n this.steps().forEach((step, index) => {\n if(!step.step) {\n step.step = \"\"+(index+1);\n }\n })\n }\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-step-header\",\n template: \"<ng-content></ng-content>\",\n standalone: true,\n host: {\n class: 'ids-step__headline'\n }\n})\nexport class IDStepHeaderComponent {}\n","import { NgModule } from '@angular/core';\n\nimport { IDStepComponent } from './step.component';\nimport { IDStepperComponent } from './stepper.component';\nimport { IDStepHeaderComponent } from './step-header.component';\n\n@NgModule({\n imports: [\n IDStepComponent,\n IDStepperComponent,\n IDStepHeaderComponent\n ],\n exports: [\n IDStepComponent,\n IDStepperComponent,\n IDStepHeaderComponent\n ],\n})\nexport class IDStepperModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAkDa,eAAe,CAAA;IACjB,KAAK,GAA0C,EAAE;IACjD,IAAI,GAAG,EAAE;IACT,eAAe,GAAG,EAAE;IACpB,QAAQ,GAAG,EAAE;IACkB,QAAQ,GAAG,KAAK;IAChB,QAAQ,GAAG,KAAK;AAE9C,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,cAAc,GAA0B,IAAI,YAAY,EAAW;IAE7E,eAAe,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,SAAS,EAAE;QAClB;aAAO;YACL,IAAI,CAAC,WAAW,EAAE;QACpB;IACF;IAEA,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;AACrB,QAAA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AAqB,CAAA,EAAA,CAAA;yGAGZ,eAAe,EAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAZ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;wBAClB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;wBAClB;AACD,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-stepper.mjs","sources":["../../../projects/ids-angular/components/stepper/step.component.ts","../../../projects/ids-angular/components/stepper/stepper.component.ts","../../../projects/ids-angular/components/stepper/step-header.component.ts","../../../projects/ids-angular/components/stepper/stepper.module.ts","../../../projects/ids-angular/components/stepper/inera-ids-angular-components-stepper.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output, booleanAttribute, inject } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n@Component({\n selector: 'id-step',\n template: `\n <button\n class=\"ids-step__button focusable\"\n [class.ids-step__button--disabled]=\"disabled\"\n [disabled]=\"disabled\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggleExpansion()\"\n >\n <div class=\"ids-step__button-inner\">\n <div class=\"ids-step__indicator-wrapper\">\n <div\n [attr.aria-label]=\"this.srIndicatorText || this.step\"\n [attr.role-img-alt]=\"this.srIndicatorText || this.step\"\n role=\"img\"\n class=\"ids-step__indicator ids-step__indicator--{{ this.state }}\"\n >\n @if (this.state !== 'valid' && this.state !== 'invalid') {\n {{ step }}\n }\n </div>\n </div>\n <div class=\"ids-step__button-text\">\n <div class=\"ids-step__headline-label\">\n <ng-content select=\"id-step-header\"></ng-content>\n @if (subtitle) {\n <div class=\"ids-step__subtitle\">{{ subtitle }}</div>\n }\n </div>\n <div\n class=\"ids-step__chevron\"\n [class.ids-step__chevron--expanded]=\"expanded\"\n ></div>\n </div>\n </div>\n </button>\n <div\n [id]=\"contentId\"\n class=\"ids-step__content\"\n [class.ids-step__content--expanded]=\"expanded\"\n >\n <ng-content></ng-content>\n </div>\n `,\n host: {\n class: 'ids-step',\n },\n standalone: true,\n})\nexport class IDStepComponent {\n @Input() state: '' | 'valid' | 'invalid' | 'selected' = '';\n @Input() step = '';\n @Input() srIndicatorText = '';\n @Input() subtitle = '';\n @Input({ transform: booleanAttribute }) disabled = false;\n @Input({ transform: booleanAttribute }) expanded = false;\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n @Output() expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n private idService = inject(IDUseIdService);\n contentId = this.idService.generateId('step');\n\n toggleExpansion() {\n if (this.expanded) {\n this.hasClosed();\n } else {\n this.hasExpanded();\n }\n }\n\n hasClosed() {\n this.expanded = false;\n this.expandedChange.emit(false);\n this.closed.emit();\n }\n hasExpanded() {\n this.expanded = true;\n this.expandedChange.emit(true);\n this.opened.emit();\n }\n}\n","import { AfterContentInit, Component, contentChildren } from '@angular/core';\nimport { IDStepComponent } from \"./step.component\";\n\n@Component({\n selector: \"id-stepper\",\n template: \"<ng-content></ng-content>\",\n standalone: true,\n host: {\n class: 'ids-stepper'\n }\n})\nexport class IDStepperComponent implements AfterContentInit {\n\n steps = contentChildren(IDStepComponent);\n\n ngAfterContentInit(): void {\n this.steps().forEach((step, index) => {\n if(!step.step) {\n step.step = \"\"+(index+1);\n }\n })\n }\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-step-header\",\n template: \"<ng-content></ng-content>\",\n standalone: true,\n host: {\n class: 'ids-step__headline'\n }\n})\nexport class IDStepHeaderComponent {}\n","import { NgModule } from '@angular/core';\n\nimport { IDStepComponent } from './step.component';\nimport { IDStepperComponent } from './stepper.component';\nimport { IDStepHeaderComponent } from './step-header.component';\n\n@NgModule({\n imports: [\n IDStepComponent,\n IDStepperComponent,\n IDStepHeaderComponent\n ],\n exports: [\n IDStepComponent,\n IDStepperComponent,\n IDStepHeaderComponent\n ],\n})\nexport class IDStepperModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAoDa,eAAe,CAAA;IACjB,KAAK,GAA0C,EAAE;IACjD,IAAI,GAAG,EAAE;IACT,eAAe,GAAG,EAAE;IACpB,QAAQ,GAAG,EAAE;IACkB,QAAQ,GAAG,KAAK;IAChB,QAAQ,GAAG,KAAK;AAE9C,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,cAAc,GAA0B,IAAI,YAAY,EAAW;AAErE,IAAA,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;IAC1C,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;IAE7C,eAAe,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,SAAS,EAAE;QAClB;aAAO;YACL,IAAI,CAAC,WAAW,EAAE;QACpB;IACF;IAEA,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;AACrB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AAC/B,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;IACpB;IACA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;AACpB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;IACpB;wGAhCW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,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EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,0HANtB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAM1B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE;AACR;AACF,iBAAA;;;MCSY,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAVxB,eAAe;YACf,kBAAkB;AAClB,YAAA,qBAAqB,aAGrB,eAAe;YACf,kBAAkB;YAClB,qBAAqB,CAAA,EAAA,CAAA;yGAGZ,eAAe,EAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAZ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;wBAClB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;wBAClB;AACD,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { contentChild, viewChild, TemplateRef, inject, Input, Component, contentChildren, ElementRef, booleanAttribute } from '@angular/core';
2
+ import { contentChild, viewChild, TemplateRef, inject, Input, Component, contentChildren, EventEmitter, ElementRef, booleanAttribute, Output } from '@angular/core';
3
3
  import { IDUseIdService } from '@inera/ids-angular/common';
4
4
  import { NgTemplateOutlet } from '@angular/common';
5
5
  import { IDNotificationBadgeComponent } from '@inera/ids-angular/components/notification-badge';
@@ -20,12 +20,12 @@ class IDTabComponent {
20
20
  this.tabId = this.idService.generateId('tab-id');
21
21
  }
22
22
  }
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDTabComponent, isStandalone: true, selector: "id-tab", inputs: { tabId: "tabId", label: "label", notices: "notices", icon: "icon", selected: "selected", noTabindex: "noTabindex", compact: "compact" }, queries: [{ propertyName: "labelTemplate", first: true, predicate: ["idTabLabel"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: `
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDTabComponent, isStandalone: true, selector: "id-tab", inputs: { tabId: "tabId", label: "label", notices: "notices", icon: "icon", selected: "selected", noTabindex: "noTabindex", compact: "compact" }, queries: [{ propertyName: "labelTemplate", first: true, predicate: ["idTabLabel"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: `
25
25
  <ng-template><ng-content></ng-content></ng-template>
26
26
  `, isInline: true });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTabComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{
31
31
  selector: 'id-tab',
@@ -66,6 +66,7 @@ class IDTabGroupComponent {
66
66
  light = false;
67
67
  compact = false;
68
68
  selectLabel;
69
+ tabChange = new EventEmitter();
69
70
  ref = inject(ElementRef);
70
71
  idService = inject(IDUseIdService);
71
72
  selectId = this.idService.generateId('tab-group');
@@ -75,6 +76,7 @@ class IDTabGroupComponent {
75
76
  this.tabs().forEach((tab, index) => {
76
77
  tab.selected = index === i;
77
78
  });
79
+ this.tabChange.emit(i);
78
80
  }
79
81
  onKeydown(event) {
80
82
  const key = event.key;
@@ -130,10 +132,10 @@ class IDTabGroupComponent {
130
132
  const hasFocusable = panelEl.querySelector(focusableSelectors) !== null;
131
133
  return hasFocusable ? -1 : 0;
132
134
  }
133
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
134
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDTabGroupComponent, isStandalone: true, selector: "id-tab-group", inputs: { responsive: "responsive", unresponsive: ["unresponsive", "unresponsive", booleanAttribute], light: ["light", "light", booleanAttribute], compact: ["compact", "compact", booleanAttribute], selectLabel: "selectLabel" }, host: { properties: { "class.ids-tabs--responsive-on-s": "responsive === 's'", "class.ids-tabs--unresponsive": "unresponsive" }, classAttribute: "ids-tabs" }, queries: [{ propertyName: "tabs", predicate: IDTabComponent, isSignal: true }], ngImport: i0, template: "<div class=\"ids-tabs__select\">\n <label\n [htmlFor]=\"selectId\"\n class=\"ids-label\"\n >\n {{ selectLabel || \"V\u00E4lj flik\" }}\n </label>\n <div class=\"ids-select__wrapper\">\n <select\n [id]=\"selectId\"\n (change)=\"selectTab(+$any($event.target).value)\"\n class=\"ids-select__select\"\n [class.ids-input--light]=\"light\"\n >\n @for (tab of tabs(); track tab; let i = $index) {\n <option\n [value]=\"i\"\n [selected]=\"i === selectedIndex\"\n >\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n ({{ tab.notices }})\n }\n </option>\n }\n </select>\n </div>\n</div>\n\n<div\n class=\"ids-tabs__tabs\"\n role=\"tablist\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (tab of tabs(); track tab; let i = $index) {\n <button\n role=\"tab\"\n (click)=\"selectTab(i)\"\n class=\"ids-tab\"\n [class.ids-tab--selected]=\"i === selectedIndex\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.id]=\"tab.tabId\"\n >\n <div class=\"ids-tab__label\">\n @if (tab.labelTemplate()) {\n <ng-container [ngTemplateOutlet]=\"tab.labelTemplate() ?? null\"></ng-container>\n } @else {\n @if (tab.icon) {\n <span class=\"ids-tab-icon ids-icon-{{ tab.icon }}\"></span>\n }\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n <id-notification-badge class=\"ids-ml-2\">{{ tab.notices }}</id-notification-badge>\n }\n }\n </div>\n </button>\n }\n</div>\n\n<div class=\"ids-tabs__panels\">\n <div\n role=\"tabpanel\"\n [attr.tabindex]=\"getTabPanelTabIndex(selectedIndex)\"\n [attr.aria-labelledby]=\"tabs()[selectedIndex]?.tabId\"\n [class.ids-tab-panel--compact]=\"compact || tabs()[selectedIndex]?.compact\"\n class=\"ids-tab-panel ids-tab-panel--selected\"\n >\n <ng-container [ngTemplateOutlet]=\"tabs()[selectedIndex]?.content() ?? null\"></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IDNotificationBadgeComponent, selector: "id-notification-badge", inputs: ["type", "icon"] }] });
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
136
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDTabGroupComponent, isStandalone: true, selector: "id-tab-group", inputs: { responsive: "responsive", unresponsive: ["unresponsive", "unresponsive", booleanAttribute], light: ["light", "light", booleanAttribute], compact: ["compact", "compact", booleanAttribute], selectLabel: "selectLabel" }, outputs: { tabChange: "tabChange" }, host: { properties: { "class.ids-tabs--responsive-on-s": "responsive === 's'", "class.ids-tabs--unresponsive": "unresponsive" }, classAttribute: "ids-tabs" }, queries: [{ propertyName: "tabs", predicate: IDTabComponent, isSignal: true }], ngImport: i0, template: "<div class=\"ids-tabs__select\">\n <label\n [htmlFor]=\"selectId\"\n class=\"ids-label\"\n >\n {{ selectLabel || \"V\u00E4lj flik\" }}\n </label>\n <div class=\"ids-select__wrapper\">\n <select\n [id]=\"selectId\"\n (change)=\"selectTab(+$any($event.target).value)\"\n class=\"ids-select__select\"\n [class.ids-input--light]=\"light\"\n >\n @for (tab of tabs(); track tab; let i = $index) {\n <option\n [value]=\"i\"\n [selected]=\"i === selectedIndex\"\n >\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n ({{ tab.notices }})\n }\n </option>\n }\n </select>\n </div>\n</div>\n\n<div\n class=\"ids-tabs__tabs\"\n role=\"tablist\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (tab of tabs(); track tab; let i = $index) {\n <button\n role=\"tab\"\n (click)=\"selectTab(i)\"\n class=\"ids-tab\"\n [class.ids-tab--selected]=\"i === selectedIndex\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.id]=\"tab.tabId\"\n >\n <div class=\"ids-tab__label\">\n @if (tab.labelTemplate()) {\n <ng-container [ngTemplateOutlet]=\"tab.labelTemplate() ?? null\"></ng-container>\n } @else {\n @if (tab.icon) {\n <span class=\"ids-tab-icon ids-icon-{{ tab.icon }}\"></span>\n }\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n <id-notification-badge class=\"ids-ml-2\">{{ tab.notices }}</id-notification-badge>\n }\n }\n </div>\n </button>\n }\n</div>\n\n<div class=\"ids-tabs__panels\">\n <div\n role=\"tabpanel\"\n [attr.tabindex]=\"getTabPanelTabIndex(selectedIndex)\"\n [attr.aria-labelledby]=\"tabs()[selectedIndex]?.tabId\"\n [class.ids-tab-panel--compact]=\"compact || tabs()[selectedIndex]?.compact\"\n class=\"ids-tab-panel ids-tab-panel--selected\"\n >\n <ng-container [ngTemplateOutlet]=\"tabs()[selectedIndex]?.content() ?? null\"></ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IDNotificationBadgeComponent, selector: "id-notification-badge", inputs: ["type", "icon"] }] });
135
137
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTabGroupComponent, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabGroupComponent, decorators: [{
137
139
  type: Component,
138
140
  args: [{ selector: 'id-tab-group', standalone: true, imports: [NgTemplateOutlet, IDNotificationBadgeComponent], host: {
139
141
  class: 'ids-tabs',
@@ -153,6 +155,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
153
155
  args: [{ transform: booleanAttribute }]
154
156
  }], selectLabel: [{
155
157
  type: Input
158
+ }], tabChange: [{
159
+ type: Output
156
160
  }] } });
157
161
 
158
162
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-tabs.mjs","sources":["../../../projects/ids-angular/components/tabs/tab.component.ts","../../../projects/ids-angular/components/tabs/tab-group.component.ts","../../../projects/ids-angular/components/tabs/tab-group.component.html","../../../projects/ids-angular/components/tabs/inera-ids-angular-components-tabs.ts"],"sourcesContent":["import { Component, Input, TemplateRef, viewChild, inject, contentChild } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-tab',\n template: `\n <ng-template><ng-content></ng-content></ng-template>\n `,\n standalone: true,\n})\nexport class IDTabComponent {\n @Input() tabId: string;\n @Input() label: string;\n @Input() notices: string = '';\n @Input() icon: string;\n @Input() selected: boolean;\n @Input() noTabindex: boolean;\n @Input() compact: boolean;\n\n labelTemplate = contentChild<TemplateRef<any>>('idTabLabel');\n\n content = viewChild.required(TemplateRef);\n\n private idService = inject(IDUseIdService);\n\n ngOnInit(): void {\n if (!this.tabId) {\n this.tabId = this.idService.generateId('tab-id');\n }\n }\n}\n","import { AfterContentInit, Component, ElementRef, Input, booleanAttribute, inject, contentChildren } from '@angular/core';\nimport { IDTabComponent } from './tab.component';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IDUseIdService } from '@inera/ids-angular/common';\nimport { IDNotificationBadgeComponent } from '@inera/ids-angular/components/notification-badge';\n\n@Component({\n selector: 'id-tab-group',\n templateUrl: './tab-group.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, IDNotificationBadgeComponent],\n host: {\n class: 'ids-tabs',\n '[class.ids-tabs--responsive-on-s]': \"responsive === 's'\",\n '[class.ids-tabs--unresponsive]': 'unresponsive',\n },\n})\nexport class IDTabGroupComponent implements AfterContentInit {\n tabs = contentChildren(IDTabComponent);\n selectedIndex = 0;\n focusedIndex = 0;\n\n ngAfterContentInit(): void {\n const tabsArray = this.tabs();\n const selectedTabIndex = tabsArray.findIndex((tab) => tab.selected);\n this.selectedIndex = selectedTabIndex >= 0 ? selectedTabIndex : 0;\n this.focusedIndex = this.selectedIndex;\n this.selectTab(this.selectedIndex);\n }\n\n @Input() responsive: 'm' | 's' = 'm';\n @Input({ transform: booleanAttribute }) unresponsive: boolean = false;\n @Input({ transform: booleanAttribute }) light: boolean = false;\n @Input({ transform: booleanAttribute }) compact: boolean = false;\n @Input() selectLabel?: string;\n private ref = inject(ElementRef);\n\n private idService = inject(IDUseIdService);\n selectId = this.idService.generateId('tab-group');\n\n selectTab(i: number) {\n this.selectedIndex = i;\n this.focusedIndex = i;\n\n this.tabs().forEach((tab, index) => {\n tab.selected = index === i;\n });\n }\n\n onKeydown(event: KeyboardEvent) {\n const key = event.key;\n const lastIndex = this.tabs().length - 1;\n\n let newIndex = this.focusedIndex;\n\n if (key === 'ArrowRight') {\n event.preventDefault();\n newIndex = this.focusedIndex < lastIndex ? this.focusedIndex + 1 : 0;\n }\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n newIndex = this.focusedIndex > 0 ? this.focusedIndex - 1 : lastIndex;\n }\n\n if (key === 'Home') {\n event.preventDefault();\n newIndex = 0;\n }\n\n if (key === 'End') {\n event.preventDefault();\n newIndex = lastIndex;\n }\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n this.selectTab(this.focusedIndex);\n return;\n }\n\n // Only move focus (NOT selection)\n if (newIndex !== this.focusedIndex) {\n this.focusedIndex = newIndex;\n\n queueMicrotask(() => {\n const tabs = this.ref.nativeElement.querySelectorAll('.ids-tab[role=\"tab\"]') as NodeListOf<HTMLElement>;\n tabs[newIndex]?.focus();\n });\n }\n }\n\n getTabPanelTabIndex(tabIndex: number): number | null {\n const tab = this.tabs()[tabIndex];\n if (!tab) return 0;\n\n if (tab.noTabindex) return null;\n\n const panelEl = document.querySelectorAll<HTMLElement>('.ids-tab-panel')[tabIndex];\n if (!panelEl) return 0;\n\n const focusableSelectors = [\n 'a[href]',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n ].join(', ');\n\n const hasFocusable = panelEl.querySelector(focusableSelectors) !== null;\n return hasFocusable ? -1 : 0;\n }\n}\n","<div class=\"ids-tabs__select\">\n <label\n [htmlFor]=\"selectId\"\n class=\"ids-label\"\n >\n {{ selectLabel || \"Välj flik\" }}\n </label>\n <div class=\"ids-select__wrapper\">\n <select\n [id]=\"selectId\"\n (change)=\"selectTab(+$any($event.target).value)\"\n class=\"ids-select__select\"\n [class.ids-input--light]=\"light\"\n >\n @for (tab of tabs(); track tab; let i = $index) {\n <option\n [value]=\"i\"\n [selected]=\"i === selectedIndex\"\n >\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n ({{ tab.notices }})\n }\n </option>\n }\n </select>\n </div>\n</div>\n\n<div\n class=\"ids-tabs__tabs\"\n role=\"tablist\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (tab of tabs(); track tab; let i = $index) {\n <button\n role=\"tab\"\n (click)=\"selectTab(i)\"\n class=\"ids-tab\"\n [class.ids-tab--selected]=\"i === selectedIndex\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.id]=\"tab.tabId\"\n >\n <div class=\"ids-tab__label\">\n @if (tab.labelTemplate()) {\n <ng-container [ngTemplateOutlet]=\"tab.labelTemplate() ?? null\"></ng-container>\n } @else {\n @if (tab.icon) {\n <span class=\"ids-tab-icon ids-icon-{{ tab.icon }}\"></span>\n }\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n <id-notification-badge class=\"ids-ml-2\">{{ tab.notices }}</id-notification-badge>\n }\n }\n </div>\n </button>\n }\n</div>\n\n<div class=\"ids-tabs__panels\">\n <div\n role=\"tabpanel\"\n [attr.tabindex]=\"getTabPanelTabIndex(selectedIndex)\"\n [attr.aria-labelledby]=\"tabs()[selectedIndex]?.tabId\"\n [class.ids-tab-panel--compact]=\"compact || tabs()[selectedIndex]?.compact\"\n class=\"ids-tab-panel ids-tab-panel--selected\"\n >\n <ng-container [ngTemplateOutlet]=\"tabs()[selectedIndex]?.content() ?? null\"></ng-container>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;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AAE;gBACE,OAAO,EAAA,CAAA;sBAA9C,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;gBAC7B,WAAW,EAAA,CAAA;sBAAnB;;;AElCH;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-tabs.mjs","sources":["../../../projects/ids-angular/components/tabs/tab.component.ts","../../../projects/ids-angular/components/tabs/tab-group.component.ts","../../../projects/ids-angular/components/tabs/tab-group.component.html","../../../projects/ids-angular/components/tabs/inera-ids-angular-components-tabs.ts"],"sourcesContent":["import { Component, Input, TemplateRef, viewChild, inject, contentChild } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-tab',\n template: `\n <ng-template><ng-content></ng-content></ng-template>\n `,\n standalone: true,\n})\nexport class IDTabComponent {\n @Input() tabId: string;\n @Input() label: string;\n @Input() notices: string = '';\n @Input() icon: string;\n @Input() selected: boolean;\n @Input() noTabindex: boolean;\n @Input() compact: boolean;\n\n labelTemplate = contentChild<TemplateRef<any>>('idTabLabel');\n\n content = viewChild.required(TemplateRef);\n\n private idService = inject(IDUseIdService);\n\n ngOnInit(): void {\n if (!this.tabId) {\n this.tabId = this.idService.generateId('tab-id');\n }\n }\n}\n","import { AfterContentInit, Component, ElementRef, Input, booleanAttribute, inject, contentChildren, EventEmitter, Output } from '@angular/core';\nimport { IDTabComponent } from './tab.component';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IDUseIdService } from '@inera/ids-angular/common';\nimport { IDNotificationBadgeComponent } from '@inera/ids-angular/components/notification-badge';\n\n@Component({\n selector: 'id-tab-group',\n templateUrl: './tab-group.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, IDNotificationBadgeComponent],\n host: {\n class: 'ids-tabs',\n '[class.ids-tabs--responsive-on-s]': \"responsive === 's'\",\n '[class.ids-tabs--unresponsive]': 'unresponsive',\n },\n})\nexport class IDTabGroupComponent implements AfterContentInit {\n tabs = contentChildren(IDTabComponent);\n selectedIndex = 0;\n focusedIndex = 0;\n\n ngAfterContentInit(): void {\n const tabsArray = this.tabs();\n const selectedTabIndex = tabsArray.findIndex((tab) => tab.selected);\n this.selectedIndex = selectedTabIndex >= 0 ? selectedTabIndex : 0;\n this.focusedIndex = this.selectedIndex;\n this.selectTab(this.selectedIndex);\n }\n\n @Input() responsive: 'm' | 's' = 'm';\n @Input({ transform: booleanAttribute }) unresponsive: boolean = false;\n @Input({ transform: booleanAttribute }) light: boolean = false;\n @Input({ transform: booleanAttribute }) compact: boolean = false;\n @Input() selectLabel?: string;\n @Output() tabChange: EventEmitter<number> = new EventEmitter<number>();\n private ref = inject(ElementRef);\n\n private idService = inject(IDUseIdService);\n selectId = this.idService.generateId('tab-group');\n\n selectTab(i: number) {\n this.selectedIndex = i;\n this.focusedIndex = i;\n\n this.tabs().forEach((tab, index) => {\n tab.selected = index === i;\n });\n this.tabChange.emit(i);\n }\n\n onKeydown(event: KeyboardEvent) {\n const key = event.key;\n const lastIndex = this.tabs().length - 1;\n\n let newIndex = this.focusedIndex;\n\n if (key === 'ArrowRight') {\n event.preventDefault();\n newIndex = this.focusedIndex < lastIndex ? this.focusedIndex + 1 : 0;\n }\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n newIndex = this.focusedIndex > 0 ? this.focusedIndex - 1 : lastIndex;\n }\n\n if (key === 'Home') {\n event.preventDefault();\n newIndex = 0;\n }\n\n if (key === 'End') {\n event.preventDefault();\n newIndex = lastIndex;\n }\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n this.selectTab(this.focusedIndex);\n return;\n }\n\n // Only move focus (NOT selection)\n if (newIndex !== this.focusedIndex) {\n this.focusedIndex = newIndex;\n\n queueMicrotask(() => {\n const tabs = this.ref.nativeElement.querySelectorAll('.ids-tab[role=\"tab\"]') as NodeListOf<HTMLElement>;\n tabs[newIndex]?.focus();\n });\n }\n }\n\n getTabPanelTabIndex(tabIndex: number): number | null {\n const tab = this.tabs()[tabIndex];\n if (!tab) return 0;\n\n if (tab.noTabindex) return null;\n\n const panelEl = document.querySelectorAll<HTMLElement>('.ids-tab-panel')[tabIndex];\n if (!panelEl) return 0;\n\n const focusableSelectors = [\n 'a[href]',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n ].join(', ');\n\n const hasFocusable = panelEl.querySelector(focusableSelectors) !== null;\n return hasFocusable ? -1 : 0;\n }\n}\n","<div class=\"ids-tabs__select\">\n <label\n [htmlFor]=\"selectId\"\n class=\"ids-label\"\n >\n {{ selectLabel || \"Välj flik\" }}\n </label>\n <div class=\"ids-select__wrapper\">\n <select\n [id]=\"selectId\"\n (change)=\"selectTab(+$any($event.target).value)\"\n class=\"ids-select__select\"\n [class.ids-input--light]=\"light\"\n >\n @for (tab of tabs(); track tab; let i = $index) {\n <option\n [value]=\"i\"\n [selected]=\"i === selectedIndex\"\n >\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n ({{ tab.notices }})\n }\n </option>\n }\n </select>\n </div>\n</div>\n\n<div\n class=\"ids-tabs__tabs\"\n role=\"tablist\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (tab of tabs(); track tab; let i = $index) {\n <button\n role=\"tab\"\n (click)=\"selectTab(i)\"\n class=\"ids-tab\"\n [class.ids-tab--selected]=\"i === selectedIndex\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.id]=\"tab.tabId\"\n >\n <div class=\"ids-tab__label\">\n @if (tab.labelTemplate()) {\n <ng-container [ngTemplateOutlet]=\"tab.labelTemplate() ?? null\"></ng-container>\n } @else {\n @if (tab.icon) {\n <span class=\"ids-tab-icon ids-icon-{{ tab.icon }}\"></span>\n }\n {{ tab.label }}\n @if (tab.notices !== \"\") {\n <id-notification-badge class=\"ids-ml-2\">{{ tab.notices }}</id-notification-badge>\n }\n }\n </div>\n </button>\n }\n</div>\n\n<div class=\"ids-tabs__panels\">\n <div\n role=\"tabpanel\"\n [attr.tabindex]=\"getTabPanelTabIndex(selectedIndex)\"\n [attr.aria-labelledby]=\"tabs()[selectedIndex]?.tabId\"\n [class.ids-tab-panel--compact]=\"compact || tabs()[selectedIndex]?.compact\"\n class=\"ids-tab-panel ids-tab-panel--selected\"\n >\n <ng-container [ngTemplateOutlet]=\"tabs()[selectedIndex]?.content() ?? null\"></ng-container>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAUa,cAAc,CAAA;AAChB,IAAA,KAAK;AACL,IAAA,KAAK;IACL,OAAO,GAAW,EAAE;AACpB,IAAA,IAAI;AACJ,IAAA,QAAQ;AACR,IAAA,UAAU;AACV,IAAA,OAAO;AAEhB,IAAA,aAAa,GAAG,YAAY,CAAmB,YAAY,CAAC;AAE5D,IAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;AAEjC,IAAA,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;IAE1C,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC;QAClD;IACF;wGAnBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAAA,OAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,YAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,eAAA,EAAA,KAAA,EAAA,IAA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,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,SAAS;+BACE,cAAc,EAAA,UAAA,EAEZ,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,EAAA,IAAA,EACnD;AACJ,wBAAA,KAAK,EAAE,UAAU;AACjB,wBAAA,mCAAmC,EAAE,oBAAoB;AACzD,wBAAA,gCAAgC,EAAE,cAAc;AACjD,qBAAA,EAAA,QAAA,EAAA,8kEAAA,EAAA;8BAeQ,UAAU,EAAA,CAAA;sBAAlB;gBACuC,YAAY,EAAA,CAAA;sBAAnD,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;gBACE,KAAK,EAAA,CAAA;sBAA5C,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;gBACE,OAAO,EAAA,CAAA;sBAA9C,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;gBAC7B,WAAW,EAAA,CAAA;sBAAnB;gBACS,SAAS,EAAA,CAAA;sBAAlB;;;AEnCH;;AAEG;;;;"}
@@ -5,10 +5,10 @@ class IDTagComponent {
5
5
  closeable = false;
6
6
  srCloseLabel = 'Stäng';
7
7
  closed = new EventEmitter();
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDTagComponent, isStandalone: true, selector: "id-tag", inputs: { closeable: ["closeable", "closeable", booleanAttribute], srCloseLabel: "srCloseLabel" }, outputs: { closed: "closed" }, host: { classAttribute: "ids-tag" }, ngImport: i0, template: "<div class=\"ids-tag__content\">\n <ng-content></ng-content>\n @if (closeable) {\n <button\n class=\"ids-tag__close-btn\"\n (closed)=\"closed.emit(true)\"\n [attr.aria-label]=\"srCloseLabel\"\n >\n <span\n class=\"ids-icon-close\"\n aria-hidden\n ></span>\n </button>\n }\n</div>\n" });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDTagComponent, isStandalone: true, selector: "id-tag", inputs: { closeable: ["closeable", "closeable", booleanAttribute], srCloseLabel: "srCloseLabel" }, outputs: { closed: "closed" }, host: { classAttribute: "ids-tag" }, ngImport: i0, template: "<div class=\"ids-tag__content\">\n <ng-content></ng-content>\n @if (closeable) {\n <button\n class=\"ids-tag__close-btn\"\n (closed)=\"closed.emit(true)\"\n [attr.aria-label]=\"srCloseLabel\"\n >\n <span\n class=\"ids-icon-close\"\n aria-hidden\n ></span>\n </button>\n }\n</div>\n" });
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTagComponent, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTagComponent, decorators: [{
12
12
  type: Component,
13
13
  args: [{ selector: 'id-tag', standalone: true, host: {
14
14
  class: 'ids-tag',
@@ -23,10 +23,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
23
23
  }] } });
24
24
 
25
25
  class IDTagDirective {
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTagDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: IDTagDirective, isStandalone: true, selector: "*[idTag]", host: { classAttribute: "ids-tag ids-tag--clickable" }, ngImport: i0 });
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTagDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: IDTagDirective, isStandalone: true, selector: "*[idTag]", host: { classAttribute: "ids-tag ids-tag--clickable" }, ngImport: i0 });
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTagDirective, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTagDirective, decorators: [{
30
30
  type: Directive,
31
31
  args: [{
32
32
  selector: "*[idTag]",
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { Component } from '@angular/core';
3
3
 
4
4
  class IDToolbarComponent {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDToolbarComponent, isStandalone: true, selector: "id-toolbar", ngImport: i0, template: "<div class=\"ids-toolbar\">\n <div class=\"ids-toolbar__content\">\n <ng-content></ng-content>\n </div>\n</div>\n" });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: IDToolbarComponent, isStandalone: true, selector: "id-toolbar", ngImport: i0, template: "<div class=\"ids-toolbar\">\n <div class=\"ids-toolbar__content\">\n <ng-content></ng-content>\n </div>\n</div>\n" });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDToolbarComponent, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDToolbarComponent, decorators: [{
9
9
  type: Component,
10
10
  args: [{ selector: 'id-toolbar', standalone: true, template: "<div class=\"ids-toolbar\">\n <div class=\"ids-toolbar__content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
11
11
  }] });
@@ -9,10 +9,10 @@ class IDTooltipTriggerDirective {
9
9
  constructor(elementRef) {
10
10
  this.elementRef = elementRef;
11
11
  }
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipTriggerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: IDTooltipTriggerDirective, isStandalone: true, selector: "[idTooltipTrigger]", ngImport: i0 });
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipTriggerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
13
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: IDTooltipTriggerDirective, isStandalone: true, selector: "[idTooltipTrigger]", ngImport: i0 });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipTriggerDirective, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipTriggerDirective, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  selector: '[idTooltipTrigger]',
@@ -136,8 +136,8 @@ class IDTooltipComponent {
136
136
  bottom: 'auto', right: 'auto', transform: 'none', zIndex: '9999',
137
137
  });
138
138
  }
139
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
140
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.20", type: IDTooltipComponent, isStandalone: true, selector: "id-tooltip", inputs: { maxWidth: "maxWidth", fixedPosition: ["fixedPosition", "fixedPosition", booleanAttribute], position: "position" }, host: { listeners: { "focusin": "onShow($event)", "mouseover": "onShow($event)", "focusout": "onHide()", "mouseout": "onHide()" }, classAttribute: "ids-tooltip" }, queries: [{ propertyName: "trigger", first: true, predicate: IDTooltipTriggerDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tooltipContent", first: true, predicate: ["tooltipContent"], descendants: true, isSignal: true }], ngImport: i0, template: `
139
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
140
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDTooltipComponent, isStandalone: true, selector: "id-tooltip", inputs: { maxWidth: "maxWidth", fixedPosition: ["fixedPosition", "fixedPosition", booleanAttribute], position: "position" }, host: { listeners: { "focusin": "onShow($event)", "mouseover": "onShow($event)", "focusout": "onHide()", "mouseout": "onHide()" }, classAttribute: "ids-tooltip" }, queries: [{ propertyName: "trigger", first: true, predicate: IDTooltipTriggerDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tooltipContent", first: true, predicate: ["tooltipContent"], descendants: true, isSignal: true }], ngImport: i0, template: `
141
141
  <span class="ids-tooltip__trigger">
142
142
  <ng-content select="[idTooltipTrigger]"></ng-content>
143
143
  </span>
@@ -153,7 +153,7 @@ class IDTooltipComponent {
153
153
  </span>
154
154
  `, isInline: true });
155
155
  }
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipComponent, decorators: [{
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipComponent, decorators: [{
157
157
  type: Component,
158
158
  args: [{
159
159
  selector: 'id-tooltip',
@@ -199,13 +199,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
199
199
  }] } });
200
200
 
201
201
  class IDTooltipModule {
202
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
203
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipModule, imports: [IDTooltipComponent,
202
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
203
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipModule, imports: [IDTooltipComponent,
204
204
  IDTooltipTriggerDirective], exports: [IDTooltipComponent,
205
205
  IDTooltipTriggerDirective] });
206
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipModule });
206
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipModule });
207
207
  }
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipModule, decorators: [{
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTooltipModule, decorators: [{
209
209
  type: NgModule,
210
210
  args: [{
211
211
  imports: [