@inera/ids-angular 9.4.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.
- package/components/tabs/tab-group.component.d.ts +3 -2
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs +2 -2
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tabs.mjs +6 -2
- package/fesm2022/inera-ids-angular-components-tabs.mjs.map +1 -1
- package/package.json +55 -55
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { IDTabComponent } from './tab.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class IDTabGroupComponent implements AfterContentInit {
|
|
@@ -11,6 +11,7 @@ export declare class IDTabGroupComponent implements AfterContentInit {
|
|
|
11
11
|
light: boolean;
|
|
12
12
|
compact: boolean;
|
|
13
13
|
selectLabel?: string;
|
|
14
|
+
tabChange: EventEmitter<number>;
|
|
14
15
|
private ref;
|
|
15
16
|
private idService;
|
|
16
17
|
selectId: string;
|
|
@@ -18,7 +19,7 @@ export declare class IDTabGroupComponent implements AfterContentInit {
|
|
|
18
19
|
onKeydown(event: KeyboardEvent): void;
|
|
19
20
|
getTabPanelTabIndex(tabIndex: number): number | null;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<IDTabGroupComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDTabGroupComponent, "id-tab-group", never, { "responsive": { "alias": "responsive"; "required": false; }; "unresponsive": { "alias": "unresponsive"; "required": false; }; "light": { "alias": "light"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "selectLabel": { "alias": "selectLabel"; "required": false; }; }, {}, ["tabs"], never, true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IDTabGroupComponent, "id-tab-group", never, { "responsive": { "alias": "responsive"; "required": false; }; "unresponsive": { "alias": "unresponsive"; "required": false; }; "light": { "alias": "light"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "selectLabel": { "alias": "selectLabel"; "required": false; }; }, { "tabChange": "tabChange"; }, ["tabs"], never, true, never>;
|
|
22
23
|
static ngAcceptInputType_unresponsive: unknown;
|
|
23
24
|
static ngAcceptInputType_light: unknown;
|
|
24
25
|
static ngAcceptInputType_compact: unknown;
|
|
@@ -65,11 +65,11 @@ class IDNavigationContentItemComponent {
|
|
|
65
65
|
this.opened.emit(event);
|
|
66
66
|
}
|
|
67
67
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDNavigationContentItemComponent, isStandalone: true, selector: "id-navigation-content-item", inputs: { selected: ["selected", "selected", booleanAttribute], expanded: ["expanded", "expanded", booleanAttribute], level: "level", srShowText: "srShowText", srHideText: "srHideText" }, outputs: { closed: "closed", opened: "opened" }, queries: [{ propertyName: "items", predicate: IDNavigationContentItemComponent }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDNavigationContentItemComponent, isStandalone: true, selector: "id-navigation-content-item", inputs: { selected: ["selected", "selected", booleanAttribute], expanded: ["expanded", "expanded", booleanAttribute], level: "level", srShowText: "srShowText", srHideText: "srHideText" }, outputs: { closed: "closed", opened: "opened" }, queries: [{ propertyName: "items", predicate: IDNavigationContentItemComponent }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n [class.ids-navigation-content-item__expand-btn--expanded]=\"expanded\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
69
69
|
}
|
|
70
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentItemComponent, decorators: [{
|
|
71
71
|
type: Component,
|
|
72
|
-
args: [{ selector: 'id-navigation-content-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n" }]
|
|
72
|
+
args: [{ selector: 'id-navigation-content-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n [class.ids-navigation-content-item__expand-btn--expanded]=\"expanded\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n" }]
|
|
73
73
|
}], propDecorators: { selected: [{
|
|
74
74
|
type: Input,
|
|
75
75
|
args: [{ transform: booleanAttribute }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-navigation-content.mjs","sources":["../../../projects/ids-angular/components/navigation/content/navigation-content-link.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content-item.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content-item.component.html","../../../projects/ids-angular/components/navigation/content/navigation-content.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content.component.html","../../../projects/ids-angular/components/navigation/content/inera-ids-angular-components-navigation-content.ts"],"sourcesContent":["import { Component, TemplateRef, viewChild } from '@angular/core';\n\n@Component({\n selector: 'id-navigation-content-link',\n standalone: true,\n template: `\n <ng-template>\n <li class=\"ids-navigation-content__link-wrapper\">\n <ng-content></ng-content>\n </li>\n </ng-template>`\n})\nexport class IDNavigationContentLinkComponent {\n\n template = viewChild.required(TemplateRef);\n \n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentChecked,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n Output,\n QueryList,\n TemplateRef,\n inject,\n booleanAttribute,\n viewChild,\n} from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-navigation-content-item',\n templateUrl: './navigation-content-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDNavigationContentItemComponent implements AfterContentChecked {\n @Input({ transform: booleanAttribute }) selected: boolean;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input() level: number = 1;\n @Input() srShowText: string = 'Expandera';\n @Input() srHideText: string = 'Minimera';\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n\n @ContentChildren(IDNavigationContentItemComponent)\n items!: QueryList<IDNavigationContentItemComponent>;\n\n template = viewChild.required(TemplateRef);\n\n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('navigation-content-item');\n\n ngAfterContentChecked(): void {\n this.items.forEach((item) => {\n item.level = this.level + 1;\n });\n }\n\n get buttonToggleText() {\n return this.expanded ? this.srHideText : this.srShowText;\n }\n\n toggleItem(event: Event) {\n if (this.expanded) {\n this.hasClosed(event);\n } else {\n this.hasExpanded(event);\n }\n }\n\n hasClosed(event: Event) {\n this.expanded = false;\n this.closed.emit(event);\n }\n hasExpanded(event: Event) {\n this.expanded = true;\n this.opened.emit(event);\n }\n}\n","<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n","import { Component, Input, contentChildren, inject } from '@angular/core';\nimport { IDNavigationContentLinkComponent } from './navigation-content-link.component';\nimport { IDNavigationContentItemComponent } from './navigation-content-item.component';\nimport { CommonModule } from '@angular/common';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-navigation-content',\n templateUrl: './navigation-content.component.html',\n imports: [CommonModule],\n standalone: true,\n})\nexport class IDNavigationContentComponent {\n @Input() headline?: string;\n @Input() maxHeight?: string;\n\n private useId = inject(IDUseIdService);\n headerId = this.useId.generateId('navigation-content-headline');\n\n linkComponents = contentChildren(IDNavigationContentLinkComponent);\n itemComponents = contentChildren(IDNavigationContentItemComponent);\n}\n","<nav\n class=\"ids-navigation-content\"\n [class.ids-navigation-content--scrollable]=\"!!maxHeight\"\n [attr.aria-labelledby]=\"headerId\"\n>\n <div class=\"ids-navigation-content__inner\">\n <h2\n class=\"ids-navigation-content__inner__headline\"\n [id]=\"headerId\"\n >\n {{ headline }}\n </h2>\n <ul\n class=\"ids-navigation-content__links\"\n [style.maxHeight]=\"maxHeight\"\n >\n <ng-container *ngFor=\"let link of linkComponents(); let i = index\">\n <ng-container [ngTemplateOutlet]=\"link.template()\"></ng-container>\n </ng-container>\n <ng-container *ngFor=\"let item of itemComponents(); let i = index\">\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n </ng-container>\n </ul>\n </div>\n</nav>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAYa,gCAAgC,CAAA;AAE3C,IAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;wGAF/B,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,S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GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,0KAON,gCAAgC,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,SAAA,EAChC,gCAAgC,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBnE,+yBAyBA,2CDhBY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBANxC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,OAAA,EAExB,CAAC,YAAY,CAAC,cACX,IAAI,EAAA,QAAA,EAAA,+yBAAA,EAAA;8BAGP,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;;;AEdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-navigation-content.mjs","sources":["../../../projects/ids-angular/components/navigation/content/navigation-content-link.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content-item.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content-item.component.html","../../../projects/ids-angular/components/navigation/content/navigation-content.component.ts","../../../projects/ids-angular/components/navigation/content/navigation-content.component.html","../../../projects/ids-angular/components/navigation/content/inera-ids-angular-components-navigation-content.ts"],"sourcesContent":["import { Component, TemplateRef, viewChild } from '@angular/core';\n\n@Component({\n selector: 'id-navigation-content-link',\n standalone: true,\n template: `\n <ng-template>\n <li class=\"ids-navigation-content__link-wrapper\">\n <ng-content></ng-content>\n </li>\n </ng-template>`\n})\nexport class IDNavigationContentLinkComponent {\n\n template = viewChild.required(TemplateRef);\n \n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentChecked,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n Output,\n QueryList,\n TemplateRef,\n inject,\n booleanAttribute,\n viewChild,\n} from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-navigation-content-item',\n templateUrl: './navigation-content-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDNavigationContentItemComponent implements AfterContentChecked {\n @Input({ transform: booleanAttribute }) selected: boolean;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input() level: number = 1;\n @Input() srShowText: string = 'Expandera';\n @Input() srHideText: string = 'Minimera';\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n\n @ContentChildren(IDNavigationContentItemComponent)\n items!: QueryList<IDNavigationContentItemComponent>;\n\n template = viewChild.required(TemplateRef);\n\n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('navigation-content-item');\n\n ngAfterContentChecked(): void {\n this.items.forEach((item) => {\n item.level = this.level + 1;\n });\n }\n\n get buttonToggleText() {\n return this.expanded ? this.srHideText : this.srShowText;\n }\n\n toggleItem(event: Event) {\n if (this.expanded) {\n this.hasClosed(event);\n } else {\n this.hasExpanded(event);\n }\n }\n\n hasClosed(event: Event) {\n this.expanded = false;\n this.closed.emit(event);\n }\n hasExpanded(event: Event) {\n this.expanded = true;\n this.opened.emit(event);\n }\n}\n","<ng-template>\n <li\n class=\"ids-navigation-content-item\"\n [class.ids-navigation-content-item--expanded]=\"expanded\"\n >\n <div\n [class]=\"\n 'ids-navigation-content-item__item' + ' ids-navigation-content-item__item--level-' + level\n \"\n [class.ids-navigation-content-item__item--selected]=\"selected\"\n >\n <div class=\"ids-navigation-content-item__link\">\n <ng-content select=\":not(id-navigation-content-item)\"></ng-content>\n </div>\n @if (this.items.length > 0) {\n <button\n type=\"button\"\n [attr.aria-label]=\"buttonToggleText\"\n (click)=\"toggleItem($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n class=\"ids-navigation-content-item__expand-btn\"\n [class.ids-navigation-content-item__expand-btn--expanded]=\"expanded\"\n ></button>\n }\n </div>\n @if (this.items.length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-navigation-content-item__sub-items\"\n >\n @for (item of items; track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n </ul>\n }\n </li>\n</ng-template>\n","import { Component, Input, contentChildren, inject } from '@angular/core';\nimport { IDNavigationContentLinkComponent } from './navigation-content-link.component';\nimport { IDNavigationContentItemComponent } from './navigation-content-item.component';\nimport { CommonModule } from '@angular/common';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-navigation-content',\n templateUrl: './navigation-content.component.html',\n imports: [CommonModule],\n standalone: true,\n})\nexport class IDNavigationContentComponent {\n @Input() headline?: string;\n @Input() maxHeight?: string;\n\n private useId = inject(IDUseIdService);\n headerId = this.useId.generateId('navigation-content-headline');\n\n linkComponents = contentChildren(IDNavigationContentLinkComponent);\n itemComponents = contentChildren(IDNavigationContentItemComponent);\n}\n","<nav\n class=\"ids-navigation-content\"\n [class.ids-navigation-content--scrollable]=\"!!maxHeight\"\n [attr.aria-labelledby]=\"headerId\"\n>\n <div class=\"ids-navigation-content__inner\">\n <h2\n class=\"ids-navigation-content__inner__headline\"\n [id]=\"headerId\"\n >\n {{ headline }}\n </h2>\n <ul\n class=\"ids-navigation-content__links\"\n [style.maxHeight]=\"maxHeight\"\n >\n <ng-container *ngFor=\"let link of linkComponents(); let i = index\">\n <ng-container [ngTemplateOutlet]=\"link.template()\"></ng-container>\n </ng-container>\n <ng-container *ngFor=\"let item of itemComponents(); let i = index\">\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n </ng-container>\n </ul>\n </div>\n</nav>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAYa,gCAAgC,CAAA;AAE3C,IAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;wGAF/B,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAhC,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAEb,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAT/B;;;;;AAKO,kBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAEN,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAV5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE;;;;;AAKO,kBAAA;AAClB,iBAAA;;;MCWY,gCAAgC,CAAA;AACH,IAAA,QAAQ;AACR,IAAA,QAAQ;IACvC,KAAK,GAAW,CAAC;IACjB,UAAU,GAAW,WAAW;IAChC,UAAU,GAAW,UAAU;AAE9B,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAG1D,IAAA,KAAK;AAEL,IAAA,QAAQ,GAAG,S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AA,QAAA,EAAA,+yBAAA,EAAA;8BAGP,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;;;AEdH;;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';
|
|
@@ -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;
|
|
@@ -131,7 +133,7 @@ class IDTabGroupComponent {
|
|
|
131
133
|
return hasFocusable ? -1 : 0;
|
|
132
134
|
}
|
|
133
135
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
134
|
-
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" }, 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"] }] });
|
|
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
138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDTabGroupComponent, decorators: [{
|
|
137
139
|
type: Component,
|
|
@@ -153,6 +155,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", 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":";;;;;;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,IAAA,EAAA,SAAA,EAAA,CAAA,YAAA,CAAA,EAAA,WAAA,EAAA,IA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AAE,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;;;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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,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EClBvC,8kEAwEA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED9DY,gBAAgB,oJAAE,4BAA4B,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAO7C,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;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inera/ids-angular",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "*",
|
|
6
6
|
"@angular/core": "*",
|
|
@@ -78,10 +78,6 @@
|
|
|
78
78
|
"types": "./components/control-button/index.d.ts",
|
|
79
79
|
"default": "./fesm2022/inera-ids-angular-components-control-button.mjs"
|
|
80
80
|
},
|
|
81
|
-
"./components/date-label": {
|
|
82
|
-
"types": "./components/date-label/index.d.ts",
|
|
83
|
-
"default": "./fesm2022/inera-ids-angular-components-date-label.mjs"
|
|
84
|
-
},
|
|
85
81
|
"./components/dialog": {
|
|
86
82
|
"types": "./components/dialog/index.d.ts",
|
|
87
83
|
"default": "./fesm2022/inera-ids-angular-components-dialog.mjs"
|
|
@@ -90,22 +86,18 @@
|
|
|
90
86
|
"types": "./components/district-selector/index.d.ts",
|
|
91
87
|
"default": "./fesm2022/inera-ids-angular-components-district-selector.mjs"
|
|
92
88
|
},
|
|
93
|
-
"./components/dropdown": {
|
|
94
|
-
"types": "./components/dropdown/index.d.ts",
|
|
95
|
-
"default": "./fesm2022/inera-ids-angular-components-dropdown.mjs"
|
|
96
|
-
},
|
|
97
89
|
"./components/footer-1177": {
|
|
98
90
|
"types": "./components/footer-1177/index.d.ts",
|
|
99
91
|
"default": "./fesm2022/inera-ids-angular-components-footer-1177.mjs"
|
|
100
92
|
},
|
|
93
|
+
"./components/date-label": {
|
|
94
|
+
"types": "./components/date-label/index.d.ts",
|
|
95
|
+
"default": "./fesm2022/inera-ids-angular-components-date-label.mjs"
|
|
96
|
+
},
|
|
101
97
|
"./components/footer-1177-admin": {
|
|
102
98
|
"types": "./components/footer-1177-admin/index.d.ts",
|
|
103
99
|
"default": "./fesm2022/inera-ids-angular-components-footer-1177-admin.mjs"
|
|
104
100
|
},
|
|
105
|
-
"./components/footer-1177-pro": {
|
|
106
|
-
"types": "./components/footer-1177-pro/index.d.ts",
|
|
107
|
-
"default": "./fesm2022/inera-ids-angular-components-footer-1177-pro.mjs"
|
|
108
|
-
},
|
|
109
101
|
"./components/footer-inera": {
|
|
110
102
|
"types": "./components/footer-inera/index.d.ts",
|
|
111
103
|
"default": "./fesm2022/inera-ids-angular-components-footer-inera.mjs"
|
|
@@ -114,9 +106,13 @@
|
|
|
114
106
|
"types": "./components/footer-inera-admin/index.d.ts",
|
|
115
107
|
"default": "./fesm2022/inera-ids-angular-components-footer-inera-admin.mjs"
|
|
116
108
|
},
|
|
117
|
-
"./components/
|
|
118
|
-
"types": "./components/
|
|
119
|
-
"default": "./fesm2022/inera-ids-angular-components-
|
|
109
|
+
"./components/dropdown": {
|
|
110
|
+
"types": "./components/dropdown/index.d.ts",
|
|
111
|
+
"default": "./fesm2022/inera-ids-angular-components-dropdown.mjs"
|
|
112
|
+
},
|
|
113
|
+
"./components/footer-1177-pro": {
|
|
114
|
+
"types": "./components/footer-1177-pro/index.d.ts",
|
|
115
|
+
"default": "./fesm2022/inera-ids-angular-components-footer-1177-pro.mjs"
|
|
120
116
|
},
|
|
121
117
|
"./components/global-alert": {
|
|
122
118
|
"types": "./components/global-alert/index.d.ts",
|
|
@@ -142,6 +138,10 @@
|
|
|
142
138
|
"types": "./components/header-1177-pro/index.d.ts",
|
|
143
139
|
"default": "./fesm2022/inera-ids-angular-components-header-1177-pro.mjs"
|
|
144
140
|
},
|
|
141
|
+
"./components/footer-inera-general": {
|
|
142
|
+
"types": "./components/footer-inera-general/index.d.ts",
|
|
143
|
+
"default": "./fesm2022/inera-ids-angular-components-footer-inera-general.mjs"
|
|
144
|
+
},
|
|
145
145
|
"./components/header-inera": {
|
|
146
146
|
"types": "./components/header-inera/index.d.ts",
|
|
147
147
|
"default": "./fesm2022/inera-ids-angular-components-header-inera.mjs"
|
|
@@ -150,10 +150,6 @@
|
|
|
150
150
|
"types": "./components/header-inera-admin/index.d.ts",
|
|
151
151
|
"default": "./fesm2022/inera-ids-angular-components-header-inera-admin.mjs"
|
|
152
152
|
},
|
|
153
|
-
"./components/header-inera-general": {
|
|
154
|
-
"types": "./components/header-inera-general/index.d.ts",
|
|
155
|
-
"default": "./fesm2022/inera-ids-angular-components-header-inera-general.mjs"
|
|
156
|
-
},
|
|
157
153
|
"./components/header-patient": {
|
|
158
154
|
"types": "./components/header-patient/index.d.ts",
|
|
159
155
|
"default": "./fesm2022/inera-ids-angular-components-header-patient.mjs"
|
|
@@ -162,6 +158,10 @@
|
|
|
162
158
|
"types": "./components/link/index.d.ts",
|
|
163
159
|
"default": "./fesm2022/inera-ids-angular-components-link.mjs"
|
|
164
160
|
},
|
|
161
|
+
"./components/header-inera-general": {
|
|
162
|
+
"types": "./components/header-inera-general/index.d.ts",
|
|
163
|
+
"default": "./fesm2022/inera-ids-angular-components-header-inera-general.mjs"
|
|
164
|
+
},
|
|
165
165
|
"./components/message-avatar": {
|
|
166
166
|
"types": "./components/message-avatar/index.d.ts",
|
|
167
167
|
"default": "./fesm2022/inera-ids-angular-components-message-avatar.mjs"
|
|
@@ -170,14 +170,14 @@
|
|
|
170
170
|
"types": "./components/notification-badge/index.d.ts",
|
|
171
171
|
"default": "./fesm2022/inera-ids-angular-components-notification-badge.mjs"
|
|
172
172
|
},
|
|
173
|
-
"./components/popover": {
|
|
174
|
-
"types": "./components/popover/index.d.ts",
|
|
175
|
-
"default": "./fesm2022/inera-ids-angular-components-popover.mjs"
|
|
176
|
-
},
|
|
177
173
|
"./components/progressbar": {
|
|
178
174
|
"types": "./components/progressbar/index.d.ts",
|
|
179
175
|
"default": "./fesm2022/inera-ids-angular-components-progressbar.mjs"
|
|
180
176
|
},
|
|
177
|
+
"./components/popover": {
|
|
178
|
+
"types": "./components/popover/index.d.ts",
|
|
179
|
+
"default": "./fesm2022/inera-ids-angular-components-popover.mjs"
|
|
180
|
+
},
|
|
181
181
|
"./components/puff-list": {
|
|
182
182
|
"types": "./components/puff-list/index.d.ts",
|
|
183
183
|
"default": "./fesm2022/inera-ids-angular-components-puff-list.mjs"
|
|
@@ -186,10 +186,6 @@
|
|
|
186
186
|
"types": "./components/region-icon/index.d.ts",
|
|
187
187
|
"default": "./fesm2022/inera-ids-angular-components-region-icon.mjs"
|
|
188
188
|
},
|
|
189
|
-
"./components/side-menu": {
|
|
190
|
-
"types": "./components/side-menu/index.d.ts",
|
|
191
|
-
"default": "./fesm2022/inera-ids-angular-components-side-menu.mjs"
|
|
192
|
-
},
|
|
193
189
|
"./components/side-panel": {
|
|
194
190
|
"types": "./components/side-panel/index.d.ts",
|
|
195
191
|
"default": "./fesm2022/inera-ids-angular-components-side-panel.mjs"
|
|
@@ -198,10 +194,6 @@
|
|
|
198
194
|
"types": "./components/stepper/index.d.ts",
|
|
199
195
|
"default": "./fesm2022/inera-ids-angular-components-stepper.mjs"
|
|
200
196
|
},
|
|
201
|
-
"./components/tabs": {
|
|
202
|
-
"types": "./components/tabs/index.d.ts",
|
|
203
|
-
"default": "./fesm2022/inera-ids-angular-components-tabs.mjs"
|
|
204
|
-
},
|
|
205
197
|
"./components/tag": {
|
|
206
198
|
"types": "./components/tag/index.d.ts",
|
|
207
199
|
"default": "./fesm2022/inera-ids-angular-components-tag.mjs"
|
|
@@ -214,6 +206,10 @@
|
|
|
214
206
|
"types": "./components/tooltip/index.d.ts",
|
|
215
207
|
"default": "./fesm2022/inera-ids-angular-components-tooltip.mjs"
|
|
216
208
|
},
|
|
209
|
+
"./components/side-menu": {
|
|
210
|
+
"types": "./components/side-menu/index.d.ts",
|
|
211
|
+
"default": "./fesm2022/inera-ids-angular-components-side-menu.mjs"
|
|
212
|
+
},
|
|
217
213
|
"./components/form/check-button": {
|
|
218
214
|
"types": "./components/form/check-button/index.d.ts",
|
|
219
215
|
"default": "./fesm2022/inera-ids-angular-components-form-check-button.mjs"
|
|
@@ -222,14 +218,14 @@
|
|
|
222
218
|
"types": "./components/form/checkbox/index.d.ts",
|
|
223
219
|
"default": "./fesm2022/inera-ids-angular-components-form-checkbox.mjs"
|
|
224
220
|
},
|
|
225
|
-
"./components/form/checkbox-group": {
|
|
226
|
-
"types": "./components/form/checkbox-group/index.d.ts",
|
|
227
|
-
"default": "./fesm2022/inera-ids-angular-components-form-checkbox-group.mjs"
|
|
228
|
-
},
|
|
229
221
|
"./components/form/darkmode-toggle": {
|
|
230
222
|
"types": "./components/form/darkmode-toggle/index.d.ts",
|
|
231
223
|
"default": "./fesm2022/inera-ids-angular-components-form-darkmode-toggle.mjs"
|
|
232
224
|
},
|
|
225
|
+
"./components/form/checkbox-group": {
|
|
226
|
+
"types": "./components/form/checkbox-group/index.d.ts",
|
|
227
|
+
"default": "./fesm2022/inera-ids-angular-components-form-checkbox-group.mjs"
|
|
228
|
+
},
|
|
233
229
|
"./components/form/error-message": {
|
|
234
230
|
"types": "./components/form/error-message/index.d.ts",
|
|
235
231
|
"default": "./fesm2022/inera-ids-angular-components-form-error-message.mjs"
|
|
@@ -242,26 +238,30 @@
|
|
|
242
238
|
"types": "./components/form/label-subtitle/index.d.ts",
|
|
243
239
|
"default": "./fesm2022/inera-ids-angular-components-form-label-subtitle.mjs"
|
|
244
240
|
},
|
|
241
|
+
"./components/form/radio": {
|
|
242
|
+
"types": "./components/form/radio/index.d.ts",
|
|
243
|
+
"default": "./fesm2022/inera-ids-angular-components-form-radio.mjs"
|
|
244
|
+
},
|
|
245
245
|
"./components/form/radio-button": {
|
|
246
246
|
"types": "./components/form/radio-button/index.d.ts",
|
|
247
247
|
"default": "./fesm2022/inera-ids-angular-components-form-radio-button.mjs"
|
|
248
248
|
},
|
|
249
|
-
"./components/
|
|
250
|
-
"types": "./components/
|
|
251
|
-
"default": "./fesm2022/inera-ids-angular-components-
|
|
249
|
+
"./components/tabs": {
|
|
250
|
+
"types": "./components/tabs/index.d.ts",
|
|
251
|
+
"default": "./fesm2022/inera-ids-angular-components-tabs.mjs"
|
|
252
252
|
},
|
|
253
253
|
"./components/form/select": {
|
|
254
254
|
"types": "./components/form/select/index.d.ts",
|
|
255
255
|
"default": "./fesm2022/inera-ids-angular-components-form-select.mjs"
|
|
256
256
|
},
|
|
257
|
+
"./components/form/range": {
|
|
258
|
+
"types": "./components/form/range/index.d.ts",
|
|
259
|
+
"default": "./fesm2022/inera-ids-angular-components-form-range.mjs"
|
|
260
|
+
},
|
|
257
261
|
"./components/form/select-multiple": {
|
|
258
262
|
"types": "./components/form/select-multiple/index.d.ts",
|
|
259
263
|
"default": "./fesm2022/inera-ids-angular-components-form-select-multiple.mjs"
|
|
260
264
|
},
|
|
261
|
-
"./components/form/spinner": {
|
|
262
|
-
"types": "./components/form/spinner/index.d.ts",
|
|
263
|
-
"default": "./fesm2022/inera-ids-angular-components-form-spinner.mjs"
|
|
264
|
-
},
|
|
265
265
|
"./components/form/textarea": {
|
|
266
266
|
"types": "./components/form/textarea/index.d.ts",
|
|
267
267
|
"default": "./fesm2022/inera-ids-angular-components-form-textarea.mjs"
|
|
@@ -274,14 +274,14 @@
|
|
|
274
274
|
"types": "./components/form/toggle/index.d.ts",
|
|
275
275
|
"default": "./fesm2022/inera-ids-angular-components-form-toggle.mjs"
|
|
276
276
|
},
|
|
277
|
-
"./components/form/radio": {
|
|
278
|
-
"types": "./components/form/radio/index.d.ts",
|
|
279
|
-
"default": "./fesm2022/inera-ids-angular-components-form-radio.mjs"
|
|
280
|
-
},
|
|
281
277
|
"./components/grid/column": {
|
|
282
278
|
"types": "./components/grid/column/index.d.ts",
|
|
283
279
|
"default": "./fesm2022/inera-ids-angular-components-grid-column.mjs"
|
|
284
280
|
},
|
|
281
|
+
"./components/form/spinner": {
|
|
282
|
+
"types": "./components/form/spinner/index.d.ts",
|
|
283
|
+
"default": "./fesm2022/inera-ids-angular-components-form-spinner.mjs"
|
|
284
|
+
},
|
|
285
285
|
"./components/grid/container": {
|
|
286
286
|
"types": "./components/grid/container/index.d.ts",
|
|
287
287
|
"default": "./fesm2022/inera-ids-angular-components-grid-container.mjs"
|
|
@@ -290,6 +290,10 @@
|
|
|
290
290
|
"types": "./components/grid/row/index.d.ts",
|
|
291
291
|
"default": "./fesm2022/inera-ids-angular-components-grid-row.mjs"
|
|
292
292
|
},
|
|
293
|
+
"./components/grid-layout/grid-row": {
|
|
294
|
+
"types": "./components/grid-layout/grid-row/index.d.ts",
|
|
295
|
+
"default": "./fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs"
|
|
296
|
+
},
|
|
293
297
|
"./components/grid-layout/grid-column": {
|
|
294
298
|
"types": "./components/grid-layout/grid-column/index.d.ts",
|
|
295
299
|
"default": "./fesm2022/inera-ids-angular-components-grid-layout-grid-column.mjs"
|
|
@@ -298,18 +302,10 @@
|
|
|
298
302
|
"types": "./components/grid-layout/grid-container/index.d.ts",
|
|
299
303
|
"default": "./fesm2022/inera-ids-angular-components-grid-layout-grid-container.mjs"
|
|
300
304
|
},
|
|
301
|
-
"./components/grid-layout/grid-row": {
|
|
302
|
-
"types": "./components/grid-layout/grid-row/index.d.ts",
|
|
303
|
-
"default": "./fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs"
|
|
304
|
-
},
|
|
305
305
|
"./components/mobile/menu": {
|
|
306
306
|
"types": "./components/mobile/menu/index.d.ts",
|
|
307
307
|
"default": "./fesm2022/inera-ids-angular-components-mobile-menu.mjs"
|
|
308
308
|
},
|
|
309
|
-
"./components/navigation/content": {
|
|
310
|
-
"types": "./components/navigation/content/index.d.ts",
|
|
311
|
-
"default": "./fesm2022/inera-ids-angular-components-navigation-content.mjs"
|
|
312
|
-
},
|
|
313
309
|
"./components/navigation/local": {
|
|
314
310
|
"types": "./components/navigation/local/index.d.ts",
|
|
315
311
|
"default": "./fesm2022/inera-ids-angular-components-navigation-local.mjs"
|
|
@@ -325,6 +321,10 @@
|
|
|
325
321
|
"./components/pagination/data-pagination": {
|
|
326
322
|
"types": "./components/pagination/data-pagination/index.d.ts",
|
|
327
323
|
"default": "./fesm2022/inera-ids-angular-components-pagination-data-pagination.mjs"
|
|
324
|
+
},
|
|
325
|
+
"./components/navigation/content": {
|
|
326
|
+
"types": "./components/navigation/content/index.d.ts",
|
|
327
|
+
"default": "./fesm2022/inera-ids-angular-components-navigation-content.mjs"
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
"module": "fesm2022/inera-ids-angular.mjs",
|