@inera/ids-angular 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/box-link/box-link.component.d.ts +1 -1
- package/components/dialog/dialog.module.d.ts +12 -0
- package/components/dialog/public-api.d.ts +1 -0
- package/components/district-selector/district-selector.component.d.ts +14 -0
- package/components/district-selector/index.d.ts +5 -0
- package/components/district-selector/public-api.d.ts +1 -0
- package/components/form/spinner/spinner.component.d.ts +2 -1
- package/components/header-1177/region-picker/header-1177-region-picker.component.d.ts +1 -1
- package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +3 -1
- package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +3 -1
- package/components/header-inera/nav/header-inera-nav.component.d.ts +1 -1
- package/components/header-inera-admin/header-inera-admin.component.d.ts +6 -6
- package/components/header-inera-admin/header-inera-admin.module.d.ts +1 -1
- package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +3 -1
- package/components/header-inera-admin/public-api.d.ts +12 -12
- package/components/header-inera-general/avatar/header-inera-general-avatar.component.d.ts +26 -0
- package/components/header-inera-general/avatar-mobile/header-inera-general-avatar-mobile.component.d.ts +26 -0
- package/components/header-inera-general/header-inera-general.component.d.ts +6 -1
- package/components/header-inera-general/header-inera-general.module.d.ts +11 -8
- package/components/header-inera-general/item/header-inera-general-item.component.d.ts +3 -1
- package/components/header-inera-general/nav-item-mobile/header-inera-general-nav-item-mobile.component.d.ts +8 -0
- package/components/header-inera-general/nav-mobile/header-inera-general-nav-mobile.component.d.ts +7 -0
- package/components/header-inera-general/public-api.d.ts +5 -1
- package/components/message-avatar/index.d.ts +5 -0
- package/components/message-avatar/message-avatar.component.d.ts +10 -0
- package/components/message-avatar/public-api.d.ts +1 -0
- package/components/navigation/content/navigation-content-item.component.d.ts +24 -0
- package/components/navigation/content/navigation-content.component.d.ts +5 -1
- package/components/navigation/content/public-api.d.ts +1 -0
- package/components/side-menu/side-menu.component.d.ts +2 -0
- package/components/stepper/step.component.d.ts +2 -0
- package/fesm2022/inera-ids-angular-common.mjs +24 -24
- package/fesm2022/inera-ids-angular-components-accordion.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-action-link.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-alert.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-badge.mjs +4 -4
- package/fesm2022/inera-ids-angular-components-badge.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-box-link.mjs +13 -11
- package/fesm2022/inera-ids-angular-components-box-link.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-button-group.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-button.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-card.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-carousel.mjs +7 -7
- package/fesm2022/inera-ids-angular-components-carousel.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-control-button.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-control-button.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-date-label.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-dialog.mjs +57 -20
- package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-district-selector.mjs +45 -0
- package/fesm2022/inera-ids-angular-components-district-selector.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-dropdown.mjs +13 -13
- package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs +22 -22
- package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs +22 -22
- package/fesm2022/inera-ids-angular-components-footer-1177.mjs +22 -22
- package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +25 -25
- package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs +25 -25
- package/fesm2022/inera-ids-angular-components-footer-inera.mjs +25 -25
- package/fesm2022/inera-ids-angular-components-form-check-button.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-checkbox.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-darkmode-toggle.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-error-message.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-input.mjs +15 -15
- package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-radio-button.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-form-radio.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-form-range.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-select.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-spinner.mjs +7 -4
- package/fesm2022/inera-ids-angular-components-form-spinner.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-textarea.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-form-time.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-form-toggle.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-global-alert.mjs +9 -9
- package/fesm2022/inera-ids-angular-components-grid-column.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid-container.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-column.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-container.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid-layout.mjs +9 -9
- package/fesm2022/inera-ids-angular-components-grid-row.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-grid.mjs +9 -9
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +63 -55
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +67 -55
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177.mjs +79 -87
- package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +76 -72
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera-general.mjs +374 -36
- package/fesm2022/inera-ids-angular-components-header-inera-general.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera.mjs +36 -34
- package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-patient.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-link.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-message-avatar.mjs +35 -0
- package/fesm2022/inera-ids-angular-components-message-avatar.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs +4 -4
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs +7 -7
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs +77 -10
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-local.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-notification-badge.mjs +5 -5
- package/fesm2022/inera-ids-angular-components-notification-badge.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-pagination-data-pagination.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-pagination-list-pagination.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-popover.mjs +19 -19
- package/fesm2022/inera-ids-angular-components-progressbar.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-puff-list.mjs +25 -25
- package/fesm2022/inera-ids-angular-components-region-icon.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-side-menu.mjs +33 -20
- package/fesm2022/inera-ids-angular-components-side-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-side-panel.mjs +13 -13
- package/fesm2022/inera-ids-angular-components-stepper.mjs +21 -14
- package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tabs.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-tag.mjs +6 -6
- package/fesm2022/inera-ids-angular-components-toolbar.mjs +3 -3
- package/fesm2022/inera-ids-angular-components-tooltip.mjs +10 -10
- package/package.json +102 -94
- /package/components/header-inera-admin/nav-item-mobile/{header-inera-admin-nav-item-mobile.d.ts → header-inera-admin-nav-item-mobile.component.d.ts} +0 -0
|
@@ -56,12 +56,12 @@ class IDMobileMenuItemComponent {
|
|
|
56
56
|
this.expanded = true;
|
|
57
57
|
this.opened.emit(event);
|
|
58
58
|
}
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDMobileMenuItemComponent, isStandalone: true, selector: "id-mobile-menu-item", inputs: { headline: "headline", expanded: ["expanded", "expanded", booleanAttribute], secondary: ["secondary", "secondary", booleanAttribute], active: ["active", "active", booleanAttribute], level: "level", srShowText: "srShowText", srHideText: "srHideText" }, outputs: { closed: "closed", opened: "opened" }, queries: [{ propertyName: "items", predicate: IDMobileMenuItemComponent, isSignal: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <li\n [class]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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"] }] });
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuItemComponent, decorators: [{
|
|
63
63
|
type: Component,
|
|
64
|
-
args: [{ selector: 'id-mobile-menu-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li
|
|
64
|
+
args: [{ selector: 'id-mobile-menu-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li\n [class]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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" }]
|
|
65
65
|
}], propDecorators: { headline: [{
|
|
66
66
|
type: Input
|
|
67
67
|
}], expanded: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-mobile-menu-item.mjs","sources":["../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.ts","../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.html","../../../projects/ids-angular/components/mobile/menu/item/inera-ids-angular-components-mobile-menu-item.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { AfterContentChecked, Component, EventEmitter, Input, Output, TemplateRef, viewChild, booleanAttribute, inject, contentChildren } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-mobile-menu-item',\n templateUrl: './mobile-menu-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDMobileMenuItemComponent implements AfterContentChecked {\n @Input() headline: string;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input({ transform: booleanAttribute }) secondary: boolean;\n @Input({ transform: booleanAttribute }) active: 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 items = contentChildren(IDMobileMenuItemComponent);\n\n template = viewChild.required(TemplateRef);\n \n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('mobile-menu');\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 get itemLevelClass() {\n switch (this.level) {\n case 1:\n return 'ids-mobile-menu-item';\n case 2:\n return 'ids-mobile-menu-item--2';\n case 3:\n return 'ids-mobile-menu-item--3';\n default:\n return 'ids-mobile-menu-item';\n }\n }\n\n getLevelClass = (className: string) => {\n return `${className}-${this.level}`;\n };\n\n toggleExpansion(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
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-mobile-menu-item.mjs","sources":["../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.ts","../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.html","../../../projects/ids-angular/components/mobile/menu/item/inera-ids-angular-components-mobile-menu-item.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { AfterContentChecked, Component, EventEmitter, Input, Output, TemplateRef, viewChild, booleanAttribute, inject, contentChildren } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-mobile-menu-item',\n templateUrl: './mobile-menu-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDMobileMenuItemComponent implements AfterContentChecked {\n @Input() headline: string;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input({ transform: booleanAttribute }) secondary: boolean;\n @Input({ transform: booleanAttribute }) active: 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 items = contentChildren(IDMobileMenuItemComponent);\n\n template = viewChild.required(TemplateRef);\n \n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('mobile-menu');\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 get itemLevelClass() {\n switch (this.level) {\n case 1:\n return 'ids-mobile-menu-item';\n case 2:\n return 'ids-mobile-menu-item--2';\n case 3:\n return 'ids-mobile-menu-item--3';\n default:\n return 'ids-mobile-menu-item';\n }\n }\n\n getLevelClass = (className: string) => {\n return `${className}-${this.level}`;\n };\n\n toggleExpansion(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]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAUa,yBAAyB,CAAA;AAC3B,IAAA,QAAQ;AACuB,IAAA,QAAQ;AACR,IAAA,SAAS;AACT,IAAA,MAAM;IACrC,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;AAExD,IAAA,KAAK,GAAG,eAAe,CAAC,yBAAyB,CAAC;AAEpD,IAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;AAElC,IAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;IACtC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC;IAEhD,qBAAqB,GAAA;QACnB,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;YAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAC,CAAC;AAC3B,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,IAAI,gBAAgB,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,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EAAE,SAAS,EAAE,gBAAgB,EAAE;gBAC7B,KAAK,EAAA,CAAA;sBAAb;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBAES,MAAM,EAAA,CAAA;sBAAf;gBACS,MAAM,EAAA,CAAA;sBAAf;;;AEpBH;;AAEG;;;;"}
|
|
@@ -57,12 +57,12 @@ class IDMobileMenuItemComponent {
|
|
|
57
57
|
this.expanded = true;
|
|
58
58
|
this.opened.emit(event);
|
|
59
59
|
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
61
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDMobileMenuItemComponent, isStandalone: true, selector: "id-mobile-menu-item", inputs: { headline: "headline", expanded: ["expanded", "expanded", booleanAttribute], secondary: ["secondary", "secondary", booleanAttribute], active: ["active", "active", booleanAttribute], level: "level", srShowText: "srShowText", srHideText: "srHideText" }, outputs: { closed: "closed", opened: "opened" }, queries: [{ propertyName: "items", predicate: IDMobileMenuItemComponent, isSignal: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template>\n <li\n [class]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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"] }] });
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuItemComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
|
-
args: [{ selector: 'id-mobile-menu-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li
|
|
65
|
+
args: [{ selector: 'id-mobile-menu-item', standalone: true, imports: [NgTemplateOutlet], template: "<ng-template>\n <li\n [class]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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" }]
|
|
66
66
|
}], propDecorators: { headline: [{
|
|
67
67
|
type: Input
|
|
68
68
|
}], expanded: [{
|
|
@@ -89,15 +89,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
89
89
|
class IDMobileMenuComponent {
|
|
90
90
|
items = contentChildren(IDMobileMenuItemComponent);
|
|
91
91
|
variation = 1;
|
|
92
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
93
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
93
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDMobileMenuComponent, isStandalone: true, selector: "id-mobile-menu", inputs: { variation: "variation" }, host: { properties: { "class.ids-mobile-menu--variation-1": "variation === 1", "class.ids-mobile-menu--variation-2": "variation === 2" }, classAttribute: "ids-mobile-menu" }, queries: [{ propertyName: "items", predicate: IDMobileMenuItemComponent, isSignal: true }], ngImport: i0, template: `
|
|
94
94
|
<ul>
|
|
95
95
|
@for (item of items(); track item; let i = $index) {
|
|
96
96
|
<ng-container [ngTemplateOutlet]="item.template()"></ng-container>
|
|
97
97
|
}
|
|
98
98
|
<ul>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
99
99
|
}
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDMobileMenuComponent, decorators: [{
|
|
101
101
|
type: Component,
|
|
102
102
|
args: [{
|
|
103
103
|
selector: 'id-mobile-menu',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-mobile-menu.mjs","sources":["../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.ts","../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.html","../../../projects/ids-angular/components/mobile/menu/mobile-menu.component.ts","../../../projects/ids-angular/components/mobile/menu/inera-ids-angular-components-mobile-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { AfterContentChecked, Component, EventEmitter, Input, Output, TemplateRef, viewChild, booleanAttribute, inject, contentChildren } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-mobile-menu-item',\n templateUrl: './mobile-menu-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDMobileMenuItemComponent implements AfterContentChecked {\n @Input() headline: string;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input({ transform: booleanAttribute }) secondary: boolean;\n @Input({ transform: booleanAttribute }) active: 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 items = contentChildren(IDMobileMenuItemComponent);\n\n template = viewChild.required(TemplateRef);\n \n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('mobile-menu');\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 get itemLevelClass() {\n switch (this.level) {\n case 1:\n return 'ids-mobile-menu-item';\n case 2:\n return 'ids-mobile-menu-item--2';\n case 3:\n return 'ids-mobile-menu-item--3';\n default:\n return 'ids-mobile-menu-item';\n }\n }\n\n getLevelClass = (className: string) => {\n return `${className}-${this.level}`;\n };\n\n toggleExpansion(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
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-mobile-menu.mjs","sources":["../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.ts","../../../projects/ids-angular/components/mobile/menu/item/mobile-menu-item.component.html","../../../projects/ids-angular/components/mobile/menu/mobile-menu.component.ts","../../../projects/ids-angular/components/mobile/menu/inera-ids-angular-components-mobile-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { AfterContentChecked, Component, EventEmitter, Input, Output, TemplateRef, viewChild, booleanAttribute, inject, contentChildren } from '@angular/core';\nimport { IDUseIdService } from '@inera/ids-angular/common';\n\n@Component({\n selector: 'id-mobile-menu-item',\n templateUrl: './mobile-menu-item.component.html',\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDMobileMenuItemComponent implements AfterContentChecked {\n @Input() headline: string;\n @Input({ transform: booleanAttribute }) expanded: boolean;\n @Input({ transform: booleanAttribute }) secondary: boolean;\n @Input({ transform: booleanAttribute }) active: 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 items = contentChildren(IDMobileMenuItemComponent);\n\n template = viewChild.required(TemplateRef);\n \n private useId = inject(IDUseIdService);\n subItemId = this.useId.generateId('mobile-menu');\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 get itemLevelClass() {\n switch (this.level) {\n case 1:\n return 'ids-mobile-menu-item';\n case 2:\n return 'ids-mobile-menu-item--2';\n case 3:\n return 'ids-mobile-menu-item--3';\n default:\n return 'ids-mobile-menu-item';\n }\n }\n\n getLevelClass = (className: string) => {\n return `${className}-${this.level}`;\n };\n\n toggleExpansion(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]=\"itemLevelClass\"\n [class.ids-mobile-menu-item--expanded]=\"expanded\"\n [class.ids-mobile-menu-item--active]=\"active\"\n [class.ids-mobile-menu-item--secondary]=\"secondary\"\n >\n <div\n class=\"ids-mobile-menu-item__inner\"\n [class]=\"getLevelClass('ids-mobile-menu-item__inner--level')\"\n >\n <ng-content select=\":not(id-mobile-menu-item)\"></ng-content>\n @if (this.items().length > 0) {\n <button\n [attr.aria-label]=\"headline ? '' : buttonToggleText\"\n (click)=\"toggleExpansion($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"subItemId\"\n [class]=\"\n getLevelClass('ids-mobile-menu-item__expand-btn--level') +\n ' ids-mobile-menu-item__expand-btn ids-mobile-menu-item__expand-btn--headline'\n \"\n [class.ids-mobile-menu__chevron--expanded]=\"expanded\"\n >\n {{ headline }}\n </button>\n }\n </div>\n @if (this.items().length > 0) {\n <ul\n [attr.id]=\"subItemId\"\n class=\"ids-mobile-menu-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 } from '@angular/core';\nimport { IDMobileMenuItemComponent } from './item/mobile-menu-item.component';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'id-mobile-menu',\n standalone: true,\n imports: [CommonModule],\n template: `\n <ul>\n @for (item of items(); track item; let i = $index) {\n <ng-container [ngTemplateOutlet]=\"item.template()\"></ng-container>\n }\n <ul>`,\n host: {\n class: 'ids-mobile-menu',\n '[class.ids-mobile-menu--variation-1]': 'variation === 1',\n '[class.ids-mobile-menu--variation-2]': 'variation === 2',\n },\n})\nexport class IDMobileMenuComponent {\n items = contentChildren(IDMobileMenuItemComponent);\n\n @Input() variation: number | undefined = 1;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAUa,yBAAyB,CAAA;AAC3B,IAAA,QAAQ;AACuB,IAAA,QAAQ;AACR,IAAA,SAAS;AACT,IAAA,MAAM;IACrC,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;AAExD,IAAA,KAAK,GAAG,eAAe,CAAC,yBAAyB,CAAC;AAEpD,IAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;AAElC,IAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;IACtC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC;IAEhD,qB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,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAaX,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,QAAQ,EAAE;;;;;AAKL,MAAA,CAAA;AACL,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,sCAAsC,EAAE,iBAAiB;AACzD,wBAAA,sCAAsC,EAAE,iBAAiB;AAC1D,qBAAA;AACF,iBAAA;8BAIU,SAAS,EAAA,CAAA;sBAAjB;;;ACvBH;;AAEG;;;;"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { viewChild, TemplateRef, Component,
|
|
2
|
+
import { viewChild, TemplateRef, Component, EventEmitter, inject, booleanAttribute, ContentChildren, Output, Input, contentChildren } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
|
+
import { IDUseIdService } from '@inera/ids-angular/common';
|
|
5
6
|
|
|
6
7
|
class IDNavigationContentLinkComponent {
|
|
7
8
|
template = viewChild.required(TemplateRef);
|
|
8
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
9
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDNavigationContentLinkComponent, isStandalone: true, selector: "id-navigation-content-link", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
10
11
|
<ng-template>
|
|
11
12
|
<li class="ids-navigation-content__link-wrapper">
|
|
12
13
|
<ng-content></ng-content>
|
|
13
14
|
</li>
|
|
14
15
|
</ng-template>`, isInline: true });
|
|
15
16
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentLinkComponent, decorators: [{
|
|
17
18
|
type: Component,
|
|
18
19
|
args: [{
|
|
19
20
|
selector: 'id-navigation-content-link',
|
|
@@ -27,16 +28,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
27
28
|
}]
|
|
28
29
|
}] });
|
|
29
30
|
|
|
31
|
+
class IDNavigationContentItemComponent {
|
|
32
|
+
selected;
|
|
33
|
+
expanded;
|
|
34
|
+
level = 1;
|
|
35
|
+
srShowText = 'Expandera';
|
|
36
|
+
srHideText = 'Minimera';
|
|
37
|
+
closed = new EventEmitter();
|
|
38
|
+
opened = new EventEmitter();
|
|
39
|
+
items;
|
|
40
|
+
template = viewChild.required(TemplateRef);
|
|
41
|
+
useId = inject(IDUseIdService);
|
|
42
|
+
subItemId = this.useId.generateId('navigation-content-item');
|
|
43
|
+
ngAfterContentChecked() {
|
|
44
|
+
this.items.forEach((item) => {
|
|
45
|
+
item.level = this.level + 1;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
get buttonToggleText() {
|
|
49
|
+
return this.expanded ? this.srHideText : this.srShowText;
|
|
50
|
+
}
|
|
51
|
+
toggleItem(event) {
|
|
52
|
+
if (this.expanded) {
|
|
53
|
+
this.hasClosed(event);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this.hasExpanded(event);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
hasClosed(event) {
|
|
60
|
+
this.expanded = false;
|
|
61
|
+
this.closed.emit(event);
|
|
62
|
+
}
|
|
63
|
+
hasExpanded(event) {
|
|
64
|
+
this.expanded = true;
|
|
65
|
+
this.opened.emit(event);
|
|
66
|
+
}
|
|
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"] }] });
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentItemComponent, decorators: [{
|
|
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" }]
|
|
73
|
+
}], propDecorators: { selected: [{
|
|
74
|
+
type: Input,
|
|
75
|
+
args: [{ transform: booleanAttribute }]
|
|
76
|
+
}], expanded: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: [{ transform: booleanAttribute }]
|
|
79
|
+
}], level: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], srShowText: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], srHideText: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], closed: [{
|
|
86
|
+
type: Output
|
|
87
|
+
}], opened: [{
|
|
88
|
+
type: Output
|
|
89
|
+
}], items: [{
|
|
90
|
+
type: ContentChildren,
|
|
91
|
+
args: [IDNavigationContentItemComponent]
|
|
92
|
+
}] } });
|
|
93
|
+
|
|
30
94
|
class IDNavigationContentComponent {
|
|
31
95
|
headline;
|
|
32
96
|
maxHeight;
|
|
97
|
+
useId = inject(IDUseIdService);
|
|
98
|
+
headerId = this.useId.generateId('navigation-content-headline');
|
|
33
99
|
linkComponents = contentChildren(IDNavigationContentLinkComponent);
|
|
34
|
-
|
|
35
|
-
static
|
|
100
|
+
itemComponents = contentChildren(IDNavigationContentItemComponent);
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDNavigationContentComponent, isStandalone: true, selector: "id-navigation-content", inputs: { headline: "headline", maxHeight: "maxHeight" }, queries: [{ propertyName: "linkComponents", predicate: IDNavigationContentLinkComponent, isSignal: true }, { propertyName: "itemComponents", predicate: IDNavigationContentItemComponent, isSignal: true }], ngImport: i0, template: "<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", 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"] }] });
|
|
36
103
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationContentComponent, decorators: [{
|
|
38
105
|
type: Component,
|
|
39
|
-
args: [{ selector: 'id-navigation-content', imports: [CommonModule], standalone: true, template: "<
|
|
106
|
+
args: [{ selector: 'id-navigation-content', imports: [CommonModule], standalone: true, template: "<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" }]
|
|
40
107
|
}], propDecorators: { headline: [{
|
|
41
108
|
type: Input
|
|
42
109
|
}], maxHeight: [{
|
|
@@ -47,5 +114,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
47
114
|
* Generated bundle index. Do not edit.
|
|
48
115
|
*/
|
|
49
116
|
|
|
50
|
-
export { IDNavigationContentComponent, IDNavigationContentLinkComponent };
|
|
117
|
+
export { IDNavigationContentComponent, IDNavigationContentItemComponent, IDNavigationContentLinkComponent };
|
|
51
118
|
//# sourceMappingURL=inera-ids-angular-components-navigation-content.mjs.map
|
|
@@ -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.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 {
|
|
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":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ild.required(TemplateRef);
|
|
8
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
9
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationLocalLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDNavigationLocalLinkComponent, isStandalone: true, selector: "id-navigation-local-link", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
10
10
|
<ng-template>
|
|
11
11
|
<ng-content></ng-content>
|
|
12
12
|
</ng-template>
|
|
13
13
|
`, isInline: true });
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationLocalLinkComponent, decorators: [{
|
|
16
16
|
type: Component,
|
|
17
17
|
args: [{
|
|
18
18
|
selector: 'id-navigation-local-link',
|
|
@@ -28,10 +28,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
28
28
|
class IDNavigationLocalComponent {
|
|
29
29
|
headline;
|
|
30
30
|
linkComponents = contentChildren(IDNavigationLocalLinkComponent);
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationLocalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: IDNavigationLocalComponent, isStandalone: true, selector: "id-navigation-local", inputs: { headline: "headline" }, queries: [{ propertyName: "linkComponents", predicate: IDNavigationLocalLinkComponent, isSignal: true }], ngImport: i0, template: "<div class=\"ids-navigation-local\">\n <h2 class=\"ids-navigation-local__headline\">{{headline}}</h2>\n <ul>\n <ng-container *ngFor=\"let link of linkComponents(); let i = index\">\n <li>\n <ng-container [ngTemplateOutlet]=\"link.template()\"></ng-container>\n </li>\n </ng-container>\n </ul>\n</div>", 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"] }] });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNavigationLocalComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: 'id-navigation-local', standalone: true, imports: [CommonModule], template: "<div class=\"ids-navigation-local\">\n <h2 class=\"ids-navigation-local__headline\">{{headline}}</h2>\n <ul>\n <ng-container *ngFor=\"let link of linkComponents(); let i = index\">\n <li>\n <ng-container [ngTemplateOutlet]=\"link.template()\"></ng-container>\n </li>\n </ng-container>\n </ul>\n</div>" }]
|
|
37
37
|
}], propDecorators: { headline: [{
|
|
@@ -7,22 +7,22 @@ class IDNotificationBadgeComponent {
|
|
|
7
7
|
get hostClasses() {
|
|
8
8
|
return `ids-notification-badge ids-notification-badge--${this.type}`;
|
|
9
9
|
}
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
11
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNotificationBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: IDNotificationBadgeComponent, isStandalone: true, selector: "id-notification-badge", inputs: { type: "type", icon: "icon" }, host: { properties: { "class": "hostClasses" } }, ngImport: i0, template: `
|
|
12
12
|
@if(icon) {
|
|
13
|
-
<span class="ids-icon-{{ icon }}"></span>
|
|
13
|
+
<span class="ids-icon-{{ icon }}-small"></span>
|
|
14
14
|
} @else {
|
|
15
15
|
<ng-content></ng-content>
|
|
16
16
|
}
|
|
17
17
|
`, isInline: true });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDNotificationBadgeComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{
|
|
22
22
|
selector: "id-notification-badge",
|
|
23
23
|
template: `
|
|
24
24
|
@if(icon) {
|
|
25
|
-
<span class="ids-icon-{{ icon }}"></span>
|
|
25
|
+
<span class="ids-icon-{{ icon }}-small"></span>
|
|
26
26
|
} @else {
|
|
27
27
|
<ng-content></ng-content>
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-notification-badge.mjs","sources":["../../../projects/ids-angular/components/notification-badge/notification-badge.component.ts","../../../projects/ids-angular/components/notification-badge/inera-ids-angular-components-notification-badge.ts"],"sourcesContent":["import { Component, Input } from \"@angular/core\";\n\n@Component({\n selector: \"id-notification-badge\",\n template: `\n @if(icon) {\n <span class=\"ids-icon-{{ icon }}\"></span>\n } @else {\n <ng-content></ng-content>\n }\n `,\n standalone: true,\n host: {\n '[class]': 'hostClasses',\n }\n})\nexport class IDNotificationBadgeComponent {\n\n @Input() type: \"primary\" | \"neutral\" | \"info\" | \"attention\" | \"success\" | \"error\" | \"secondary\" = \"primary\";\n @Input() icon?: string;\n\n get hostClasses(): string {\n return `ids-notification-badge ids-notification-badge--${this.type}`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAgBa,4BAA4B,CAAA;IAE9B,IAAI,GAAqF,SAAS;AAClG,IAAA,IAAI;AAEb,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,CAAA,+CAAA,EAAkD,IAAI,CAAC,IAAI,EAAE;IACtE;wGAPW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,aAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAZ7B;;;;;;AAMT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAMU,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAdxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,aAAa;AACzB;AACF,iBAAA;8BAGU,IAAI,EAAA,CAAA;sBAAZ;gBACQ,IAAI,EAAA,CAAA;sBAAZ;;;ACnBH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-notification-badge.mjs","sources":["../../../projects/ids-angular/components/notification-badge/notification-badge.component.ts","../../../projects/ids-angular/components/notification-badge/inera-ids-angular-components-notification-badge.ts"],"sourcesContent":["import { Component, Input } from \"@angular/core\";\n\n@Component({\n selector: \"id-notification-badge\",\n template: `\n @if(icon) {\n <span class=\"ids-icon-{{ icon }}-small\"></span>\n } @else {\n <ng-content></ng-content>\n }\n `,\n standalone: true,\n host: {\n '[class]': 'hostClasses',\n }\n})\nexport class IDNotificationBadgeComponent {\n\n @Input() type: \"primary\" | \"neutral\" | \"info\" | \"attention\" | \"success\" | \"error\" | \"secondary\" = \"primary\";\n @Input() icon?: string;\n\n get hostClasses(): string {\n return `ids-notification-badge ids-notification-badge--${this.type}`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAgBa,4BAA4B,CAAA;IAE9B,IAAI,GAAqF,SAAS;AAClG,IAAA,IAAI;AAEb,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,CAAA,+CAAA,EAAkD,IAAI,CAAC,IAAI,EAAE;IACtE;wGAPW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,aAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAZ7B;;;;;;AAMT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAMU,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAdxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,aAAa;AACzB;AACF,iBAAA;8BAGU,IAAI,EAAA,CAAA;sBAAZ;gBACQ,IAAI,EAAA,CAAA;sBAAZ;;;ACnBH;;AAEG;;;;"}
|
|
@@ -8,8 +8,8 @@ class IDDataPaginationComponent {
|
|
|
8
8
|
ofText = 'av';
|
|
9
9
|
total = 0;
|
|
10
10
|
light = false;
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
12
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDDataPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.25", type: IDDataPaginationComponent, isStandalone: true, selector: "id-data-pagination", inputs: { from: "from", to: "to", ofText: "ofText", total: "total", light: ["light", "light", booleanAttribute] }, ngImport: i0, template: `
|
|
13
13
|
<div class="ids-data-pagination" [class.ids-data-pagination--light]="light">
|
|
14
14
|
<ng-content select="id-data-pagination-select"></ng-content>
|
|
15
15
|
<div class="ids-data-pagination__summary">
|
|
@@ -32,7 +32,7 @@ class IDDataPaginationComponent {
|
|
|
32
32
|
</div>
|
|
33
33
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDDataPaginationComponent, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: 'id-data-pagination',
|
|
@@ -75,10 +75,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
75
75
|
}] } });
|
|
76
76
|
|
|
77
77
|
class IDDataPaginationSelectComponent {
|
|
78
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
79
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
78
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDDataPaginationSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: IDDataPaginationSelectComponent, isStandalone: true, selector: "id-data-pagination-select", host: { classAttribute: "ids-data-pagination__select" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
80
80
|
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDDataPaginationSelectComponent, decorators: [{
|
|
82
82
|
type: Component,
|
|
83
83
|
args: [{
|
|
84
84
|
selector: 'id-data-pagination-select',
|
|
@@ -53,8 +53,8 @@ class IDListPaginationComponent {
|
|
|
53
53
|
this.nextPage.emit(this.current);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
57
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDListPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: IDListPaginationComponent, isStandalone: true, selector: "id-list-pagination", inputs: { showingText: "showingText", from: "from", to: "to", ofText: "ofText", total: "total", current: "current", pages: "pages", srCurrentPage: "srCurrentPage", srGoToPage: "srGoToPage", srPrevious: "srPrevious", srNext: "srNext", srNav: "srNav" }, outputs: { pageChanged: "pageChanged", prevPage: "prevPage", nextPage: "nextPage" }, ngImport: i0, template: `
|
|
58
58
|
<div class="ids-list-pagination">
|
|
59
59
|
<div
|
|
60
60
|
class="ids-list-pagination__summary"
|
|
@@ -106,7 +106,7 @@ class IDListPaginationComponent {
|
|
|
106
106
|
</div>
|
|
107
107
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
108
108
|
}
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IDListPaginationComponent, decorators: [{
|
|
110
110
|
type: Component,
|
|
111
111
|
args: [{
|
|
112
112
|
selector: 'id-list-pagination',
|