@inera/ids-angular 9.1.0 → 9.2.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 (92) hide show
  1. package/components/accordion/accordion.component.d.ts +4 -3
  2. package/components/dropdown/dropdown.component.d.ts +5 -1
  3. package/components/footer-inera/footer-inera-sub-footer-mobile-text.component.d.ts +5 -0
  4. package/components/footer-inera/footer-inera.component.d.ts +1 -1
  5. package/components/footer-inera/footer-inera.module.d.ts +2 -1
  6. package/components/footer-inera/public-api.d.ts +1 -0
  7. package/components/footer-inera-admin/footer-inera-admin-sub-footer-mobile-text.component.d.ts +5 -0
  8. package/components/footer-inera-admin/footer-inera-admin.component.d.ts +1 -1
  9. package/components/footer-inera-admin/footer-inera-admin.module.d.ts +2 -1
  10. package/components/footer-inera-admin/public-api.d.ts +1 -0
  11. package/components/footer-inera-general/footer-inera-general-col.component.d.ts +13 -0
  12. package/components/footer-inera-general/footer-inera-general-sub-footer-left.component.d.ts +5 -0
  13. package/components/footer-inera-general/footer-inera-general-sub-footer-mobile-text.component.d.ts +5 -0
  14. package/components/footer-inera-general/footer-inera-general-sub-footer-mobile.component.d.ts +5 -0
  15. package/components/footer-inera-general/footer-inera-general-sub-footer-right.component.d.ts +5 -0
  16. package/components/footer-inera-general/footer-inera-general-text.component.d.ts +5 -0
  17. package/components/footer-inera-general/footer-inera-general.component.d.ts +12 -0
  18. package/components/footer-inera-general/footer-inera-general.module.d.ts +12 -0
  19. package/components/footer-inera-general/index.d.ts +5 -0
  20. package/components/footer-inera-general/public-api.d.ts +8 -0
  21. package/components/global-alert/global-alert.component.d.ts +1 -3
  22. package/components/header-1177-admin/avatar/header-1177-admin-avatar.component.d.ts +2 -2
  23. package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +1 -1
  24. package/components/header-1177-pro/avatar-mobile/header-1177-pro-avatar-mobile.component.d.ts +2 -2
  25. package/components/header-1177-pro/header-1177-pro.component.d.ts +4 -4
  26. package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +1 -1
  27. package/components/header-1177-pro/region-picker-mobile/header-1177-pro-region-picker-mobile.component.d.ts +4 -2
  28. package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +3 -1
  29. package/components/header-inera-general/brand-link/header-inera-general-brand-link.directive.d.ts +5 -0
  30. package/components/header-inera-general/header-inera-general.component.d.ts +18 -0
  31. package/components/header-inera-general/header-inera-general.module.d.ts +14 -0
  32. package/components/header-inera-general/index.d.ts +5 -0
  33. package/components/header-inera-general/item/header-inera-general-item.component.d.ts +10 -0
  34. package/components/header-inera-general/menu-mobile/header-inera-general-menu-mobile.component.d.ts +10 -0
  35. package/components/header-inera-general/nav/header-inera-general-nav.component.d.ts +9 -0
  36. package/components/header-inera-general/nav-item/header-inera-general-nav-item.component.d.ts +25 -0
  37. package/components/header-inera-general/nav-item-menu-link/header-inera-general-nav-item-menu-link.component.d.ts +5 -0
  38. package/components/header-inera-general/public-api.d.ts +9 -0
  39. package/components/header-inera-general/skip-to-content/header-inera-general-skip-to-content.component.d.ts +5 -0
  40. package/components/popover/popover-content.component.d.ts +4 -1
  41. package/components/popover/popover.component.d.ts +17 -8
  42. package/components/stepper/step.component.d.ts +2 -2
  43. package/components/toolbar/index.d.ts +5 -0
  44. package/components/toolbar/public-api.d.ts +1 -0
  45. package/components/toolbar/toolbar.component.d.ts +5 -0
  46. package/components/tooltip/tooltip.component.d.ts +17 -4
  47. package/eslint/rules/no-old-components.js +2 -2
  48. package/fesm2022/inera-ids-angular-components-accordion.mjs +10 -5
  49. package/fesm2022/inera-ids-angular-components-accordion.mjs.map +1 -1
  50. package/fesm2022/inera-ids-angular-components-action-link.mjs +25 -9
  51. package/fesm2022/inera-ids-angular-components-action-link.mjs.map +1 -1
  52. package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +2 -2
  53. package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs.map +1 -1
  54. package/fesm2022/inera-ids-angular-components-button.mjs +1 -1
  55. package/fesm2022/inera-ids-angular-components-button.mjs.map +1 -1
  56. package/fesm2022/inera-ids-angular-components-card.mjs +2 -2
  57. package/fesm2022/inera-ids-angular-components-card.mjs.map +1 -1
  58. package/fesm2022/inera-ids-angular-components-dialog.mjs +2 -2
  59. package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
  60. package/fesm2022/inera-ids-angular-components-dropdown.mjs +40 -13
  61. package/fesm2022/inera-ids-angular-components-dropdown.mjs.map +1 -1
  62. package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +25 -5
  63. package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs.map +1 -1
  64. package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs +214 -0
  65. package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs.map +1 -0
  66. package/fesm2022/inera-ids-angular-components-footer-inera.mjs +25 -5
  67. package/fesm2022/inera-ids-angular-components-footer-inera.mjs.map +1 -1
  68. package/fesm2022/inera-ids-angular-components-global-alert.mjs +3 -9
  69. package/fesm2022/inera-ids-angular-components-global-alert.mjs.map +1 -1
  70. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +95 -63
  71. package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
  72. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +110 -84
  73. package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
  74. package/fesm2022/inera-ids-angular-components-header-1177.mjs +2 -4
  75. package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
  76. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +15 -16
  77. package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
  78. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs +425 -0
  79. package/fesm2022/inera-ids-angular-components-header-inera-general.mjs.map +1 -0
  80. package/fesm2022/inera-ids-angular-components-header-inera.mjs +2 -4
  81. package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
  82. package/fesm2022/inera-ids-angular-components-popover.mjs +176 -50
  83. package/fesm2022/inera-ids-angular-components-popover.mjs.map +1 -1
  84. package/fesm2022/inera-ids-angular-components-puff-list.mjs +29 -17
  85. package/fesm2022/inera-ids-angular-components-puff-list.mjs.map +1 -1
  86. package/fesm2022/inera-ids-angular-components-stepper.mjs +7 -7
  87. package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
  88. package/fesm2022/inera-ids-angular-components-toolbar.mjs +18 -0
  89. package/fesm2022/inera-ids-angular-components-toolbar.mjs.map +1 -0
  90. package/fesm2022/inera-ids-angular-components-tooltip.mjs +139 -33
  91. package/fesm2022/inera-ids-angular-components-tooltip.mjs.map +1 -1
  92. package/package.json +72 -56
@@ -175,29 +175,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
175
175
  class IDPuffListComponent {
176
176
  listItems;
177
177
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDPuffListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
178
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: IDPuffListComponent, isStandalone: true, selector: "id-puff-list", queries: [{ propertyName: "listItems", predicate: IDPuffListItemComponent, descendants: true }], ngImport: i0, template: `
179
- <ul class="ids-puff-list">
180
- <li *ngFor="let item of listItems"
181
- class="ids-puff-list-item"
182
- [class.ids-puff-list-item--interactive]="item.interactive"
183
- [class.ids-puff-list-item--lean]="item.lean">
184
- <ng-template [ngTemplateOutlet]="item.template"></ng-template>
185
- </li>
186
- </ul>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
178
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDPuffListComponent, isStandalone: true, selector: "id-puff-list", queries: [{ propertyName: "listItems", predicate: IDPuffListItemComponent, descendants: true }], ngImport: i0, template: `
179
+ @if (listItems.length > 1) {
180
+ <ul class="ids-puff-list">
181
+ <li *ngFor="let item of listItems"
182
+ class="ids-puff-list-item"
183
+ [class.ids-puff-list-item--interactive]="item.interactive"
184
+ [class.ids-puff-list-item--lean]="item.lean">
185
+ <ng-template [ngTemplateOutlet]="item.template"></ng-template>
186
+ </li>
187
+ </ul>
188
+ } @else {
189
+ <div class="ids-puff-list-item">
190
+ <ng-template [ngTemplateOutlet]="listItems.first.template"></ng-template>
191
+ </div>
192
+ }`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
187
193
  }
188
194
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDPuffListComponent, decorators: [{
189
195
  type: Component,
190
196
  args: [{
191
197
  selector: 'id-puff-list',
192
198
  template: `
193
- <ul class="ids-puff-list">
194
- <li *ngFor="let item of listItems"
195
- class="ids-puff-list-item"
196
- [class.ids-puff-list-item--interactive]="item.interactive"
197
- [class.ids-puff-list-item--lean]="item.lean">
198
- <ng-template [ngTemplateOutlet]="item.template"></ng-template>
199
- </li>
200
- </ul>`,
199
+ @if (listItems.length > 1) {
200
+ <ul class="ids-puff-list">
201
+ <li *ngFor="let item of listItems"
202
+ class="ids-puff-list-item"
203
+ [class.ids-puff-list-item--interactive]="item.interactive"
204
+ [class.ids-puff-list-item--lean]="item.lean">
205
+ <ng-template [ngTemplateOutlet]="item.template"></ng-template>
206
+ </li>
207
+ </ul>
208
+ } @else {
209
+ <div class="ids-puff-list-item">
210
+ <ng-template [ngTemplateOutlet]="listItems.first.template"></ng-template>
211
+ </div>
212
+ }`,
201
213
  standalone: true,
202
214
  imports: [CommonModule]
203
215
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-puff-list.mjs","sources":["../../../projects/ids-angular/components/puff-list/puff-list-item.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-header.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-extra-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content-info.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-date-label.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.module.ts","../../../projects/ids-angular/components/puff-list/inera-ids-angular-components-puff-list.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item',\n template: `\n <ng-template>\n <ng-template #header><ng-content></ng-content></ng-template>\n <ng-template #content>\n <ng-content select=\"id-puff-list-item-content\"></ng-content>\n </ng-template>\n <ng-template #extraContent>\n <ng-content select=\"id-puff-list-item-extra-content\"></ng-content>\n </ng-template>\n <ng-template #dateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n <ng-template #puffListDateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n @if (interactive) {\n <a\n class=\"ids-puff-list-item__item-link\"\n [attr.href]=\"href ? href : null\"\n (click)=\"clicked.emit($event)\"\n [attr.tabindex]=\"href ? null : 0\"\n [ariaLabel]=\"interactive\"\n >\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n </a>\n } @else {\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n }\n </ng-template>\n `,\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDPuffListItemComponent {\n @Input({ transform: booleanAttribute }) lean: boolean;\n @Input() interactive: string;\n @Input() href: string;\n @Output() clicked = new EventEmitter<Event>();\n\n @ViewChild(TemplateRef) template: TemplateRef<any>;\n}\n","import { Component, ContentChildren, QueryList } from '@angular/core';\nimport {IDPuffListItemComponent} from './puff-list-item.component';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'id-puff-list',\n template: `\n <ul class=\"ids-puff-list\">\n <li *ngFor=\"let item of listItems\" \n class=\"ids-puff-list-item\"\n [class.ids-puff-list-item--interactive]=\"item.interactive\"\n [class.ids-puff-list-item--lean]=\"item.lean\">\n <ng-template [ngTemplateOutlet]=\"item.template\"></ng-template>\n </li>\n </ul>`,\n standalone:true,\n imports: [CommonModule]\n})\nexport class IDPuffListComponent {\n\n @ContentChildren(IDPuffListItemComponent, { descendants: true })\n listItems!: QueryList<IDPuffListItemComponent>;\n\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-header\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-puff-list-item-header'\n },\n standalone: true\n})\nexport class IDPuffListItemHeaderComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-content\",\n template: `<ng-content></ng-content>`,\n standalone: true\n})\nexport class IDPuffListItemContentComponent {}\n","\nimport { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-extra-content\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__extra-content'\n }\n})\nexport class IDPuffListItemExtraContentComponent {}\n","import { Component, booleanAttribute, Input } from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item-content-info',\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: 'ids-puff-list-item__info',\n '[class.ids-puff-list-item__info--bottom]': 'bottom',\n },\n standalone: true,\n})\nexport class IDPuffListItemContentInfoComponent {\n @Input({ transform: booleanAttribute }) bottom: boolean = false;\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-date-label\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__date'\n }\n})\nexport class IDPuffListItemDateLabelComponent {}\n","import { NgModule } from \"@angular/core\";\n\nimport { IDPuffListComponent } from \"./puff-list.component\";\nimport { IDPuffListItemComponent } from \"./puff-list-item.component\";\nimport { IDPuffListItemHeaderComponent } from \"./puff-list-item-header.component\";\nimport { IDPuffListItemContentComponent } from \"./puff-list-item-content.component\";\nimport { IDPuffListItemExtraContentComponent } from \"./puff-list-item-extra-content.component\";\nimport { IDPuffListItemContentInfoComponent } from \"./puff-list-item-content-info.component\";\nimport { IDPuffListItemDateLabelComponent } from \"./puff-list-item-date-label.component\";\n\n@NgModule({\n imports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n exports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n})\nexport class IDPuffListModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAsFa,uBAAuB,CAAA;AACM,IAAA,IAAI;AACnC,IAAA,WAAW;AACX,IAAA,IAAI;AACH,IAAA,OAAO,GAAG,IAAI,YAAY,EAAS;AAErB,IAAA,QAAQ;wGANrB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EACd,gBAAgB,CAAA,EAAA,WAAA,EAAA,aAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAKzB,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,E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AE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-puff-list.mjs","sources":["../../../projects/ids-angular/components/puff-list/puff-list-item.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-header.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-extra-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content-info.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-date-label.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.module.ts","../../../projects/ids-angular/components/puff-list/inera-ids-angular-components-puff-list.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item',\n template: `\n <ng-template>\n <ng-template #header><ng-content></ng-content></ng-template>\n <ng-template #content>\n <ng-content select=\"id-puff-list-item-content\"></ng-content>\n </ng-template>\n <ng-template #extraContent>\n <ng-content select=\"id-puff-list-item-extra-content\"></ng-content>\n </ng-template>\n <ng-template #dateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n <ng-template #puffListDateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n @if (interactive) {\n <a\n class=\"ids-puff-list-item__item-link\"\n [attr.href]=\"href ? href : null\"\n (click)=\"clicked.emit($event)\"\n [attr.tabindex]=\"href ? null : 0\"\n [ariaLabel]=\"interactive\"\n >\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n </a>\n } @else {\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n }\n </ng-template>\n `,\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDPuffListItemComponent {\n @Input({ transform: booleanAttribute }) lean: boolean;\n @Input() interactive: string;\n @Input() href: string;\n @Output() clicked = new EventEmitter<Event>();\n\n @ViewChild(TemplateRef) template: TemplateRef<any>;\n}\n","import { Component, ContentChildren, QueryList } from '@angular/core';\nimport {IDPuffListItemComponent} from './puff-list-item.component';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'id-puff-list',\n template: `\n @if (listItems.length > 1) {\n <ul class=\"ids-puff-list\">\n <li *ngFor=\"let item of listItems\" \n class=\"ids-puff-list-item\"\n [class.ids-puff-list-item--interactive]=\"item.interactive\"\n [class.ids-puff-list-item--lean]=\"item.lean\">\n <ng-template [ngTemplateOutlet]=\"item.template\"></ng-template>\n </li>\n </ul>\n } @else {\n <div class=\"ids-puff-list-item\">\n <ng-template [ngTemplateOutlet]=\"listItems.first.template\"></ng-template>\n </div>\n }`,\n standalone:true,\n imports: [CommonModule]\n})\nexport class IDPuffListComponent {\n\n @ContentChildren(IDPuffListItemComponent, { descendants: true })\n listItems!: QueryList<IDPuffListItemComponent>;\n\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-header\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-puff-list-item-header'\n },\n standalone: true\n})\nexport class IDPuffListItemHeaderComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-content\",\n template: `<ng-content></ng-content>`,\n standalone: true\n})\nexport class IDPuffListItemContentComponent {}\n","\nimport { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-extra-content\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__extra-content'\n }\n})\nexport class IDPuffListItemExtraContentComponent {}\n","import { Component, booleanAttribute, Input } from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item-content-info',\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: 'ids-puff-list-item__info',\n '[class.ids-puff-list-item__info--bottom]': 'bottom',\n },\n standalone: true,\n})\nexport class IDPuffListItemContentInfoComponent {\n @Input({ transform: booleanAttribute }) bottom: boolean = false;\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-date-label\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__date'\n }\n})\nexport class IDPuffListItemDateLabelComponent {}\n","import { NgModule } from \"@angular/core\";\n\nimport { IDPuffListComponent } from \"./puff-list.component\";\nimport { IDPuffListItemComponent } from \"./puff-list-item.component\";\nimport { IDPuffListItemHeaderComponent } from \"./puff-list-item-header.component\";\nimport { IDPuffListItemContentComponent } from \"./puff-list-item-content.component\";\nimport { IDPuffListItemExtraContentComponent } from \"./puff-list-item-extra-content.component\";\nimport { IDPuffListItemContentInfoComponent } from \"./puff-list-item-content-info.component\";\nimport { IDPuffListItemDateLabelComponent } from \"./puff-list-item-date-label.component\";\n\n@NgModule({\n imports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n exports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n})\nexport class IDPuffListModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAsFa,uBAAuB,CAAA;AACM,IAAA,IAAI;AACnC,IAAA,WAAW;AACX,IAAA,IAAI;AACH,IAAA,OAAO,GAAG,IAAI,YAAY,EAAS;AAErB,IAAA,QAAQ;wGANrB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EACd,gBAAgB,CAAA,EAAA,WAAA,EAAA,aAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,O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AAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,mBAAmB;YACnB,uBAAuB,CAAA,EAAA,CAAA;;4FAiBd,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBApB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
@@ -5,7 +5,7 @@ class IDStepComponent {
5
5
  state = '';
6
6
  step = '';
7
7
  srIndicatorText = '';
8
- label = '';
8
+ subtitle = '';
9
9
  disabled = false;
10
10
  expanded = false;
11
11
  closed = new EventEmitter();
@@ -30,7 +30,7 @@ class IDStepComponent {
30
30
  this.opened.emit();
31
31
  }
32
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", label: "label", disabled: ["disabled", "disabled", booleanAttribute], expanded: ["expanded", "expanded", booleanAttribute] }, outputs: { closed: "closed", opened: "opened", expandedChange: "expandedChange" }, host: { classAttribute: "ids-step" }, ngImport: i0, template: `
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: `
34
34
  <button
35
35
  class="ids-step__button focusable"
36
36
  [class.ids-step__button--disabled]="disabled"
@@ -53,8 +53,8 @@ class IDStepComponent {
53
53
  <div class="ids-step__button-text">
54
54
  <div class="ids-step__headline-label">
55
55
  <ng-content select="id-step-header"></ng-content>
56
- @if (label) {
57
- <div class="ids-step__label">{{ label }}</div>
56
+ @if (subtitle) {
57
+ <div class="ids-step__subtitle">{{ subtitle }}</div>
58
58
  }
59
59
  </div>
60
60
  <div
@@ -99,8 +99,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
99
99
  <div class="ids-step__button-text">
100
100
  <div class="ids-step__headline-label">
101
101
  <ng-content select="id-step-header"></ng-content>
102
- @if (label) {
103
- <div class="ids-step__label">{{ label }}</div>
102
+ @if (subtitle) {
103
+ <div class="ids-step__subtitle">{{ subtitle }}</div>
104
104
  }
105
105
  </div>
106
106
  <div
@@ -128,7 +128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
128
128
  type: Input
129
129
  }], srIndicatorText: [{
130
130
  type: Input
131
- }], label: [{
131
+ }], subtitle: [{
132
132
  type: Input
133
133
  }], disabled: [{
134
134
  type: Input,
@@ -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 (label) {\n <div class=\"ids-step__label\">{{ label }}</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() label = '';\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, EventEmitter, Output, QueryList } 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 @ContentChildren(IDStepComponent)\n steps: QueryList<IDStepComponent>;\n\n ngAfterContentInit(): void {\n this.steps.toArray().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,KAAK,GAAG,EAAE;IACqB,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,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AAC/B,QAAA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AAA;;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 } 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, EventEmitter, Output, QueryList } 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 @ContentChildren(IDStepComponent)\n steps: QueryList<IDStepComponent>;\n\n ngAfterContentInit(): void {\n this.steps.toArray().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":[],"m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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;;;;"}
@@ -0,0 +1,18 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component } from '@angular/core';
3
+
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" });
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDToolbarComponent, decorators: [{
9
+ type: Component,
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
+ }] });
12
+
13
+ /**
14
+ * Generated bundle index. Do not edit.
15
+ */
16
+
17
+ export { IDToolbarComponent };
18
+ //# sourceMappingURL=inera-ids-angular-components-toolbar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inera-ids-angular-components-toolbar.mjs","sources":["../../../projects/ids-angular/components/toolbar/toolbar.component.ts","../../../projects/ids-angular/components/toolbar/toolbar.component.html","../../../projects/ids-angular/components/toolbar/inera-ids-angular-components-toolbar.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'id-toolbar',\n standalone: true,\n templateUrl: './toolbar.component.html',\n})\nexport class IDToolbarComponent {}\n","<div class=\"ids-toolbar\">\n <div class=\"ids-toolbar__content\">\n <ng-content></ng-content>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,sECP/B,wHAKA,EAAA,CAAA;;4FDEa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,QAAA,EAAA,wHAAA,EAAA;;;AEJlB;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, inject, Renderer2, booleanAttribute, HostListener, Input, ContentChild, ViewChild, Component, NgModule } from '@angular/core';
2
+ import { Directive, inject, ApplicationRef, Renderer2, booleanAttribute, HostListener, Input, ContentChild, ViewChild, Component, NgModule } from '@angular/core';
3
+ import { DOCUMENT } from '@angular/common';
4
+ import { DomPortalOutlet, DomPortal } from '@angular/cdk/portal';
3
5
  import { IDUseIdService } from '@inera/ids-angular/common';
4
6
 
5
7
  class IDTooltipTriggerDirective {
@@ -20,6 +22,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
20
22
 
21
23
  class IDTooltipComponent {
22
24
  idService = inject(IDUseIdService);
25
+ document = inject(DOCUMENT);
26
+ appRef = inject(ApplicationRef);
27
+ renderer = inject(Renderer2);
23
28
  tooltipId = this.idService.generateId('tooltip');
24
29
  tooltipContent;
25
30
  trigger;
@@ -27,13 +32,22 @@ class IDTooltipComponent {
27
32
  fixedPosition;
28
33
  position = 'top';
29
34
  tempPosition;
30
- onFocusIn(event) {
35
+ portalOutlet = null;
36
+ isAttached = false;
37
+ GAP = 8;
38
+ get win() {
39
+ return this.document.defaultView || window;
40
+ }
41
+ resizeHandler = () => this.applyPortalPosition();
42
+ onShow(event) {
31
43
  const target = event.target;
32
44
  if (target.closest('.ids-tooltip__trigger')) {
33
- this.calculatePosition();
45
+ this.attachPortal();
34
46
  }
35
47
  }
36
- renderer = inject(Renderer2);
48
+ onHide() {
49
+ this.detachPortal();
50
+ }
37
51
  get positionClass() {
38
52
  return `ids-tooltip__content--${this.tempPosition}`;
39
53
  }
@@ -42,41 +56,127 @@ class IDTooltipComponent {
42
56
  this.renderer.setAttribute(this.trigger.elementRef.nativeElement, 'aria-describedby', this.tooltipId);
43
57
  }
44
58
  }
45
- calculatePosition() {
46
- this.tempPosition = this.position;
47
- if (!this.fixedPosition) {
48
- requestAnimationFrame(() => {
49
- if (!this.tooltipContent)
50
- return;
51
- const el = this.tooltipContent.nativeElement;
52
- let rect = el.getBoundingClientRect();
53
- const vWidth = window.innerWidth;
54
- const vHeight = window.innerHeight;
55
- let [vertical, horizontal] = this.position.split('-');
56
- if (vertical === 'top' && rect.top < 0) {
57
- vertical = 'bottom';
58
- }
59
- else if (vertical === 'bottom' && rect.bottom > vHeight) {
60
- vertical = 'top';
61
- }
62
- if (rect.left < 0) {
63
- horizontal = 'left';
64
- }
65
- else if (rect.right > vWidth) {
66
- horizontal = 'right';
67
- }
68
- this.tempPosition = (horizontal ? `${vertical}-${horizontal}` : vertical);
69
- });
59
+ ngOnDestroy() {
60
+ this.detachPortal();
61
+ }
62
+ attachPortal() {
63
+ if (this.isAttached || !this.tooltipContent)
64
+ return;
65
+ this.isAttached = true;
66
+ const contentEl = this.tooltipContent.nativeElement;
67
+ contentEl.style.display = 'inline-block';
68
+ contentEl.style.opacity = '0';
69
+ const outletEl = this.document.createElement('div');
70
+ this.document.body.appendChild(outletEl);
71
+ this.portalOutlet = new DomPortalOutlet(outletEl, undefined, this.appRef, undefined, this.document);
72
+ this.portalOutlet.attach(new DomPortal(this.tooltipContent));
73
+ requestAnimationFrame(() => {
74
+ this.autoPosition();
75
+ this.applyPortalPosition();
76
+ contentEl.style.opacity = '';
77
+ });
78
+ this.win.addEventListener('resize', this.resizeHandler);
79
+ }
80
+ detachPortal() {
81
+ if (!this.isAttached)
82
+ return;
83
+ this.isAttached = false;
84
+ this.win.removeEventListener('resize', this.resizeHandler);
85
+ if (this.portalOutlet) {
86
+ this.portalOutlet.dispose();
87
+ this.portalOutlet = null;
88
+ }
89
+ if (this.tooltipContent) {
90
+ this.tooltipContent.nativeElement.style.cssText = 'display:none';
70
91
  }
71
92
  }
93
+ autoPosition() {
94
+ this.tempPosition = this.position;
95
+ if (this.fixedPosition || !this.trigger)
96
+ return;
97
+ const triggerRect = this.trigger.elementRef.nativeElement.getBoundingClientRect();
98
+ const contentRect = this.tooltipContent.nativeElement.getBoundingClientRect();
99
+ const { top, left } = this.calculatePosition(triggerRect, contentRect);
100
+ let [v, h] = this.position.split('-');
101
+ if (v === 'top' && top < 0)
102
+ v = 'bottom';
103
+ else if (v === 'bottom' && top + contentRect.height > this.win.innerHeight)
104
+ v = 'top';
105
+ if (left < 0)
106
+ h = 'left';
107
+ else if (left + contentRect.width > this.win.innerWidth)
108
+ h = 'right';
109
+ this.tempPosition = (h ? `${v}-${h}` : v);
110
+ }
111
+ calculatePosition(triggerRect, contentRect) {
112
+ const gap = this.GAP;
113
+ const pos = this.tempPosition;
114
+ const centerX = triggerRect.left + triggerRect.width / 2 - contentRect.width / 2;
115
+ const top = pos.startsWith('top') ? triggerRect.top - contentRect.height - gap : triggerRect.bottom + gap;
116
+ let left;
117
+ if (pos.endsWith('-left'))
118
+ left = triggerRect.left;
119
+ else if (pos.endsWith('-right'))
120
+ left = triggerRect.right - contentRect.width;
121
+ else
122
+ left = centerX;
123
+ return { top, left };
124
+ }
125
+ applyPortalPosition() {
126
+ if (!this.tooltipContent || !this.trigger)
127
+ return;
128
+ const triggerRect = this.trigger.elementRef.nativeElement.getBoundingClientRect();
129
+ const contentEl = this.tooltipContent.nativeElement;
130
+ const { top, left } = this.calculatePosition(triggerRect, contentEl.getBoundingClientRect());
131
+ const window = this.win;
132
+ Object.assign(contentEl.style, {
133
+ position: 'absolute',
134
+ top: `${top + window.scrollY}px`,
135
+ left: `${left + window.scrollX}px`,
136
+ bottom: 'auto', right: 'auto', transform: 'none', zIndex: '9999',
137
+ });
138
+ }
72
139
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
73
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.20", type: IDTooltipComponent, isStandalone: true, selector: "id-tooltip", inputs: { maxWidth: "maxWidth", fixedPosition: ["fixedPosition", "fixedPosition", booleanAttribute], position: "position" }, host: { listeners: { "focusin": "onFocusIn($event)", "mouseover": "onFocusIn($event)" }, classAttribute: "ids-tooltip" }, queries: [{ propertyName: "trigger", first: true, predicate: IDTooltipTriggerDirective, descendants: true }], viewQueries: [{ propertyName: "tooltipContent", first: true, predicate: ["tooltipContent"], descendants: true }], ngImport: i0, template: "<span \n class=\"ids-tooltip__trigger\">\n <ng-content select=\"[idTooltipTrigger]\"></ng-content>\n</span>\n<span \n #tooltipContent\n class=\"ids-tooltip__content\"\n [class]=\"positionClass\" \n [style.max-width]=\"maxWidth\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\">\n <ng-content></ng-content>\n</span>" });
140
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.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 }], viewQueries: [{ propertyName: "tooltipContent", first: true, predicate: ["tooltipContent"], descendants: true }], ngImport: i0, template: `
141
+ <span class="ids-tooltip__trigger">
142
+ <ng-content select="[idTooltipTrigger]"></ng-content>
143
+ </span>
144
+ <span
145
+ #tooltipContent
146
+ class="ids-tooltip__content"
147
+ [class]="positionClass"
148
+ [style.max-width]="maxWidth"
149
+ [style.display]="'none'"
150
+ role="tooltip"
151
+ [attr.id]="tooltipId">
152
+ <ng-content></ng-content>
153
+ </span>
154
+ `, isInline: true });
74
155
  }
75
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDTooltipComponent, decorators: [{
76
157
  type: Component,
77
- args: [{ selector: 'id-tooltip', standalone: true, host: {
158
+ args: [{
159
+ selector: 'id-tooltip',
160
+ standalone: true,
161
+ template: `
162
+ <span class="ids-tooltip__trigger">
163
+ <ng-content select="[idTooltipTrigger]"></ng-content>
164
+ </span>
165
+ <span
166
+ #tooltipContent
167
+ class="ids-tooltip__content"
168
+ [class]="positionClass"
169
+ [style.max-width]="maxWidth"
170
+ [style.display]="'none'"
171
+ role="tooltip"
172
+ [attr.id]="tooltipId">
173
+ <ng-content></ng-content>
174
+ </span>
175
+ `,
176
+ host: {
78
177
  class: 'ids-tooltip'
79
- }, template: "<span \n class=\"ids-tooltip__trigger\">\n <ng-content select=\"[idTooltipTrigger]\"></ng-content>\n</span>\n<span \n #tooltipContent\n class=\"ids-tooltip__content\"\n [class]=\"positionClass\" \n [style.max-width]=\"maxWidth\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\">\n <ng-content></ng-content>\n</span>" }]
178
+ }
179
+ }]
80
180
  }], propDecorators: { tooltipContent: [{
81
181
  type: ViewChild,
82
182
  args: ['tooltipContent']
@@ -90,12 +190,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
90
190
  args: [{ transform: booleanAttribute }]
91
191
  }], position: [{
92
192
  type: Input
93
- }], onFocusIn: [{
193
+ }], onShow: [{
94
194
  type: HostListener,
95
195
  args: ['focusin', ['$event']]
96
196
  }, {
97
197
  type: HostListener,
98
198
  args: ['mouseover', ['$event']]
199
+ }], onHide: [{
200
+ type: HostListener,
201
+ args: ['focusout']
202
+ }, {
203
+ type: HostListener,
204
+ args: ['mouseout']
99
205
  }] } });
100
206
 
101
207
  class IDTooltipModule {
@@ -1 +1 @@
1
- {"version":3,"file":"inera-ids-angular-components-tooltip.mjs","sources":["../../../projects/ids-angular/components/tooltip/tooltip-trigger.directive.ts","../../../projects/ids-angular/components/tooltip/tooltip.component.ts","../../../projects/ids-angular/components/tooltip/tooltip.component.html","../../../projects/ids-angular/components/tooltip/tooltip.module.ts","../../../projects/ids-angular/components/tooltip/inera-ids-angular-components-tooltip.ts"],"sourcesContent":["import { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[idTooltipTrigger]',\n standalone: true\n})\nexport class IDTooltipTriggerDirective {\n constructor(public elementRef: ElementRef) {}\n}","import { AfterContentInit, Component, ContentChild, ElementRef, HostListener, Input, Renderer2, ViewChild, booleanAttribute, inject } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\nimport { IDTooltipTriggerDirective } from './tooltip-trigger.directive';\n\n@Component({\n selector: 'id-tooltip',\n templateUrl: './tooltip.component.html',\n standalone: true,\n host: {\n class: 'ids-tooltip'\n }\n})\nexport class IDTooltipComponent implements AfterContentInit {\n private idService = inject(IDUseIdService);\n \n tooltipId = this.idService.generateId('tooltip');\n\n @ViewChild('tooltipContent') tooltipContent!: ElementRef<HTMLElement>;\n \n @ContentChild(IDTooltipTriggerDirective) \n trigger: IDTooltipTriggerDirective;\n\n @Input() maxWidth?: string;\n @Input({ transform: booleanAttribute }) fixedPosition: boolean;\n @Input() position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' = 'top';\n private tempPosition: string;\n\n @HostListener('focusin', ['$event'])\n @HostListener('mouseover', ['$event'])\n onFocusIn(event: FocusEvent) {\n const target = event.target as HTMLElement;\n if (target.closest('.ids-tooltip__trigger')) {\n this.calculatePosition();\n }\n }\n\n private renderer = inject(Renderer2);\n\n get positionClass () {\n return `ids-tooltip__content--${this.tempPosition}`;\n }\n\n ngAfterContentInit() {\n if(this.trigger) {\n this.renderer.setAttribute(this.trigger.elementRef.nativeElement, 'aria-describedby', this.tooltipId);\n }\n }\n\n private calculatePosition() {\n this.tempPosition = this.position;\n if(!this.fixedPosition){\n requestAnimationFrame(() => {\n if (!this.tooltipContent) return;\n\n const el = this.tooltipContent.nativeElement;\n\n let rect = el.getBoundingClientRect();\n const vWidth = window.innerWidth;\n const vHeight = window.innerHeight;\n\n let [vertical, horizontal] = this.position.split('-') as [string, string | undefined];\n\n if (vertical === 'top' && rect.top < 0) {\n vertical = 'bottom'; \n } else if (vertical === 'bottom' && rect.bottom > vHeight) {\n vertical = 'top';\n }\n if (rect.left < 0) { \n horizontal = 'left';\n }\n else if (rect.right > vWidth) { \n horizontal = 'right';\n }\n this.tempPosition = (horizontal ? `${vertical}-${horizontal}` : vertical) as any;\n });\n }\n }\n}","<span \n class=\"ids-tooltip__trigger\">\n <ng-content select=\"[idTooltipTrigger]\"></ng-content>\n</span>\n<span \n #tooltipContent\n class=\"ids-tooltip__content\"\n [class]=\"positionClass\" \n [style.max-width]=\"maxWidth\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\">\n <ng-content></ng-content>\n</span>","import { NgModule } from \"@angular/core\";\n\nimport { IDTooltipComponent } from \"./tooltip.component\";\nimport { IDTooltipTriggerDirective } from \"./tooltip-trigger.directive\";\n\n@NgModule({\n imports: [\n IDTooltipComponent,\n IDTooltipTriggerDirective,\n ],\n exports: [\n IDTooltipComponent,\n IDTooltipTriggerDirective,\n ],\n})\nexport class IDTooltipModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,yBAAyB,CAAA;AACjB,IAAA,UAAA;AAAnB,IAAA,WAAA,CAAmB,UAAsB,EAAA;QAAtB,IAAA,CAAA,UAAU,GAAV,UAAU;IAAe;wGADjC,yBAAyB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCOY,kBAAkB,CAAA;AACr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AAA;AACF,iBAAA;;;ACdD;;AAEG;;;;"}
1
+ {"version":3,"file":"inera-ids-angular-components-tooltip.mjs","sources":["../../../projects/ids-angular/components/tooltip/tooltip-trigger.directive.ts","../../../projects/ids-angular/components/tooltip/tooltip.component.ts","../../../projects/ids-angular/components/tooltip/tooltip.module.ts","../../../projects/ids-angular/components/tooltip/inera-ids-angular-components-tooltip.ts"],"sourcesContent":["import { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[idTooltipTrigger]',\n standalone: true\n})\nexport class IDTooltipTriggerDirective {\n constructor(public elementRef: ElementRef) {}\n}","import { AfterContentInit, ApplicationRef, Component, ContentChild, ElementRef, HostListener, Input, Renderer2, ViewChild, booleanAttribute, inject, OnDestroy } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { DomPortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { IDUseIdService } from '@inera/ids-angular/common';\nimport { IDTooltipTriggerDirective } from './tooltip-trigger.directive';\n\n@Component({\n selector: 'id-tooltip',\n standalone: true,\n template: `\n <span class=\"ids-tooltip__trigger\">\n <ng-content select=\"[idTooltipTrigger]\"></ng-content>\n </span>\n <span\n #tooltipContent\n class=\"ids-tooltip__content\"\n [class]=\"positionClass\"\n [style.max-width]=\"maxWidth\"\n [style.display]=\"'none'\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\">\n <ng-content></ng-content>\n </span>\n `,\n host: {\n class: 'ids-tooltip'\n }\n})\nexport class IDTooltipComponent implements AfterContentInit, OnDestroy {\n private idService = inject(IDUseIdService);\n private document = inject(DOCUMENT);\n private appRef = inject(ApplicationRef);\n private renderer = inject(Renderer2);\n\n tooltipId = this.idService.generateId('tooltip');\n\n @ViewChild('tooltipContent') tooltipContent!: ElementRef<HTMLElement>;\n\n @ContentChild(IDTooltipTriggerDirective)\n trigger: IDTooltipTriggerDirective;\n\n @Input() maxWidth?: string;\n @Input({ transform: booleanAttribute }) fixedPosition: boolean;\n @Input() position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' = 'top';\n private tempPosition: string;\n\n private portalOutlet: DomPortalOutlet | null = null;\n private isAttached = false;\n\n private readonly GAP = 8;\n\n private get win(): Window {\n return this.document.defaultView || window;\n }\n\n private resizeHandler = () => this.applyPortalPosition();\n\n @HostListener('focusin', ['$event'])\n @HostListener('mouseover', ['$event'])\n onShow(event: Event) {\n const target = event.target as HTMLElement;\n if (target.closest('.ids-tooltip__trigger')) {\n this.attachPortal();\n }\n }\n\n @HostListener('focusout')\n @HostListener('mouseout')\n onHide() {\n this.detachPortal();\n }\n\n get positionClass() {\n return `ids-tooltip__content--${this.tempPosition}`;\n }\n\n ngAfterContentInit() {\n if (this.trigger) {\n this.renderer.setAttribute(this.trigger.elementRef.nativeElement, 'aria-describedby', this.tooltipId);\n }\n }\n\n ngOnDestroy(): void {\n this.detachPortal();\n }\n\n private attachPortal(): void {\n if (this.isAttached || !this.tooltipContent) return;\n this.isAttached = true;\n\n const contentEl = this.tooltipContent.nativeElement;\n contentEl.style.display = 'inline-block';\n contentEl.style.opacity = '0';\n\n const outletEl = this.document.createElement('div');\n this.document.body.appendChild(outletEl);\n this.portalOutlet = new DomPortalOutlet(outletEl, undefined, this.appRef, undefined, this.document);\n this.portalOutlet.attach(new DomPortal(this.tooltipContent));\n\n requestAnimationFrame(() => {\n this.autoPosition();\n this.applyPortalPosition();\n contentEl.style.opacity = '';\n });\n\n this.win.addEventListener('resize', this.resizeHandler);\n }\n\n private detachPortal(): void {\n if (!this.isAttached) return;\n this.isAttached = false;\n this.win.removeEventListener('resize', this.resizeHandler);\n if (this.portalOutlet) {\n this.portalOutlet.dispose();\n this.portalOutlet = null;\n }\n if (this.tooltipContent) {\n this.tooltipContent.nativeElement.style.cssText = 'display:none';\n }\n }\n\n private autoPosition(): void {\n this.tempPosition = this.position;\n if (this.fixedPosition || !this.trigger) return;\n\n const triggerRect = this.trigger.elementRef.nativeElement.getBoundingClientRect();\n const contentRect = this.tooltipContent.nativeElement.getBoundingClientRect();\n const { top, left } = this.calculatePosition(triggerRect, contentRect);\n let [v, h] = this.position.split('-') as [string, string | undefined];\n\n if (v === 'top' && top < 0) v = 'bottom';\n else if (v === 'bottom' && top + contentRect.height > this.win.innerHeight) v = 'top';\n if (left < 0) h = 'left';\n else if (left + contentRect.width > this.win.innerWidth) h = 'right';\n\n this.tempPosition = (h ? `${v}-${h}` : v) as any;\n }\n\n private calculatePosition(triggerRect: DOMRect, contentRect: DOMRect): { top: number; left: number } {\n const gap = this.GAP;\n const pos = this.tempPosition;\n const centerX = triggerRect.left + triggerRect.width / 2 - contentRect.width / 2;\n\n const top = pos.startsWith('top') ? triggerRect.top - contentRect.height - gap : triggerRect.bottom + gap;\n\n let left: number;\n if (pos.endsWith('-left')) left = triggerRect.left;\n else if (pos.endsWith('-right')) left = triggerRect.right - contentRect.width;\n else left = centerX;\n\n return { top, left };\n }\n\n private applyPortalPosition(): void {\n if (!this.tooltipContent || !this.trigger) return;\n const triggerRect = this.trigger.elementRef.nativeElement.getBoundingClientRect();\n const contentEl = this.tooltipContent.nativeElement;\n const { top, left } = this.calculatePosition(triggerRect, contentEl.getBoundingClientRect());\n const window = this.win;\n\n Object.assign(contentEl.style, {\n position: 'absolute',\n top: `${top + window.scrollY}px`,\n left: `${left + window.scrollX}px`,\n bottom: 'auto', right: 'auto', transform: 'none', zIndex: '9999',\n });\n }\n}","import { NgModule } from \"@angular/core\";\n\nimport { IDTooltipComponent } from \"./tooltip.component\";\nimport { IDTooltipTriggerDirective } from \"./tooltip-trigger.directive\";\n\n@NgModule({\n imports: [\n IDTooltipComponent,\n IDTooltipTriggerDirective,\n ],\n exports: [\n IDTooltipComponent,\n IDTooltipTriggerDirective,\n ],\n})\nexport class IDTooltipModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAMa,yBAAyB,CAAA;AACjB,IAAA,UAAA;AAAnB,IAAA,WAAA,CAAmB,UAAsB,E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