@inera/ids-angular 9.2.1 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/directives/click-outside.directive.d.ts +3 -3
- package/common/public-api.d.ts +1 -1
- package/components/accordion/accordion-header.component.d.ts +1 -1
- package/components/accordion/accordion.component.d.ts +5 -4
- package/components/alert/alert-header.component.d.ts +1 -1
- package/components/alert/alert.component.d.ts +2 -2
- package/components/box-link/box-link-button.component.d.ts +2 -2
- package/components/box-link/box-link.component.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.component.d.ts +3 -4
- package/components/breadcrumbs/crumb.component.d.ts +1 -1
- package/components/carousel/carousel-item/carousel-item.component.d.ts +1 -1
- package/components/carousel/carousel.component.d.ts +4 -4
- package/components/control-button/control-button.directive.d.ts +5 -0
- package/components/control-button/index.d.ts +5 -0
- package/components/control-button/public-api.d.ts +1 -0
- package/components/dialog/dialog.component.d.ts +4 -4
- package/components/dropdown/dropdown.component.d.ts +1 -1
- package/components/footer-1177/footer-1177-col.component.d.ts +4 -4
- package/components/footer-1177/footer-1177.component.d.ts +6 -4
- package/components/footer-1177-admin/footer-1177-admin-col.component.d.ts +4 -4
- package/components/footer-1177-admin/footer-1177-admin.component.d.ts +5 -4
- package/components/footer-1177-pro/footer-1177-pro-col.component.d.ts +4 -4
- package/components/footer-1177-pro/footer-1177-pro.component.d.ts +6 -4
- package/components/footer-inera/footer-inera-col.component.d.ts +4 -4
- package/components/footer-inera/footer-inera.component.d.ts +5 -4
- package/components/footer-inera-admin/footer-inera-admin-col.component.d.ts +4 -4
- package/components/footer-inera-admin/footer-inera-admin.component.d.ts +5 -4
- package/components/footer-inera-general/footer-inera-general-col.component.d.ts +4 -4
- package/components/footer-inera-general/footer-inera-general.component.d.ts +6 -4
- package/components/form/checkbox-group/checkbox-group.component.d.ts +4 -4
- package/components/form/input/input-clear-button.component.d.ts +5 -0
- package/components/form/input/input.component.d.ts +7 -3
- package/components/form/input/public-api.d.ts +1 -0
- package/components/form/label-subtitle/index.d.ts +5 -0
- package/components/form/label-subtitle/label-subtitle.component.d.ts +5 -0
- package/components/form/label-subtitle/public-api.d.ts +1 -0
- package/components/form/radio/radio-group.component.d.ts +4 -4
- package/components/form/radio/radio.component.d.ts +1 -1
- package/components/form/radio-button/radio-button-group.component.d.ts +1 -2
- package/components/form/range/range.component.d.ts +1 -1
- package/components/form/select/select.component.d.ts +1 -1
- package/components/form/select-multiple/select-multiple.component.d.ts +3 -3
- package/components/form/textarea/textarea.component.d.ts +1 -1
- package/components/form/time/time.component.d.ts +1 -1
- package/components/global-alert/global-alert-actions.component.d.ts +1 -1
- package/components/global-alert/global-alert-header.component.d.ts +1 -1
- package/components/global-alert/global-alert.component.d.ts +2 -2
- package/components/header-1177/avatar/header-1177-avatar.component.d.ts +1 -1
- package/components/header-1177/header-1177.component.d.ts +6 -7
- package/components/header-1177/nav/header-1177-nav.component.d.ts +1 -1
- package/components/header-1177/nav-item/header-1177-nav-item.component.d.ts +5 -5
- package/components/header-1177/region-picker/header-1177-region-picker.component.d.ts +3 -3
- package/components/header-1177/region-picker-mobile/header-1177-region-picker-mobile.component.d.ts +3 -3
- package/components/header-1177-admin/avatar/header-1177-admin-avatar.component.d.ts +1 -1
- package/components/header-1177-admin/avatar-mobile/header-1177-admin-avatar-mobile.component.d.ts +1 -1
- package/components/header-1177-admin/header-1177-admin.component.d.ts +3 -3
- package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +4 -4
- package/components/header-1177-admin/nav-item/header-1177-admin-nav-item.component.d.ts +5 -5
- package/components/header-1177-pro/avatar/header-1177-pro-avatar.component.d.ts +1 -1
- package/components/header-1177-pro/avatar-mobile/header-1177-pro-avatar-mobile.component.d.ts +1 -1
- package/components/header-1177-pro/header-1177-pro.component.d.ts +3 -3
- package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +4 -4
- package/components/header-1177-pro/nav-item/header-1177-pro-nav-item.component.d.ts +5 -5
- package/components/header-1177-pro/region-picker/header-1177-pro-region-picker.component.d.ts +4 -4
- package/components/header-1177-pro/region-picker-mobile/header-1177-pro-region-picker-mobile.component.d.ts +1 -1
- package/components/header-inera/header-inera.component.d.ts +5 -6
- package/components/header-inera/nav/header-inera-nav.component.d.ts +2 -4
- package/components/header-inera/nav-item/header-inera-nav-item.component.d.ts +5 -5
- package/components/header-inera-admin/avatar/header-inera-admin-avatar.component.d.ts +1 -1
- package/components/header-inera-admin/avatar-mobile/header-inera-admin-avatar-mobile.component.d.ts +1 -1
- package/components/header-inera-admin/header-inera-admin.component.d.ts +6 -7
- package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +4 -4
- package/components/header-inera-admin/nav-item/header-inera-admin-nav-item.component.d.ts +4 -4
- package/components/header-inera-general/header-inera-general.component.d.ts +5 -6
- package/components/header-inera-general/nav/header-inera-general-nav.component.d.ts +1 -1
- package/components/header-inera-general/nav-item/header-inera-general-nav-item.component.d.ts +5 -5
- package/components/mobile/menu/item/mobile-menu-item.component.d.ts +3 -3
- package/components/mobile/menu/mobile-menu.component.d.ts +1 -2
- package/components/navigation/content/navigation-content-link.component.d.ts +1 -1
- package/components/navigation/content/navigation-content.component.d.ts +1 -2
- package/components/navigation/local/navigation-local-link.component.d.ts +1 -1
- package/components/navigation/local/navigation-local.component.d.ts +1 -2
- package/components/popover/popover.component.d.ts +4 -4
- package/components/puff-list/puff-list-item.component.d.ts +1 -1
- package/components/puff-list/puff-list.component.d.ts +1 -2
- package/components/side-menu/side-menu.component.d.ts +2 -2
- package/components/side-panel/side-panel.component.d.ts +7 -6
- package/components/stepper/stepper.component.d.ts +2 -2
- package/components/tabs/tab-group.component.d.ts +3 -2
- package/components/tabs/tab.component.d.ts +2 -2
- package/components/tag/tag.component.d.ts +1 -1
- package/components/tooltip/tooltip.component.d.ts +2 -2
- package/fesm2022/inera-ids-angular-common.mjs +8 -9
- package/fesm2022/inera-ids-angular-common.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-accordion.mjs +19 -28
- package/fesm2022/inera-ids-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-alert.mjs +8 -14
- package/fesm2022/inera-ids-angular-components-alert.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-box-link.mjs +8 -14
- package/fesm2022/inera-ids-angular-components-box-link.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +15 -26
- package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-carousel.mjs +16 -23
- package/fesm2022/inera-ids-angular-components-carousel.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-control-button.mjs +24 -0
- package/fesm2022/inera-ids-angular-components-control-button.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-dialog.mjs +10 -17
- package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-dropdown.mjs +4 -7
- package/fesm2022/inera-ids-angular-components-dropdown.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs +28 -35
- package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs +29 -35
- package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177.mjs +29 -35
- package/fesm2022/inera-ids-angular-components-footer-1177.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +28 -35
- package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs +30 -35
- package/fesm2022/inera-ids-angular-components-footer-inera-general.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-inera.mjs +28 -35
- package/fesm2022/inera-ids-angular-components-footer-inera.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs +9 -15
- package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-input.mjs +58 -34
- package/fesm2022/inera-ids-angular-components-form-input.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs +25 -0
- package/fesm2022/inera-ids-angular-components-form-label-subtitle.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-form-radio-button.mjs +6 -9
- package/fesm2022/inera-ids-angular-components-form-radio-button.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-radio.mjs +11 -17
- package/fesm2022/inera-ids-angular-components-form-radio.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-range.mjs +2 -2
- package/fesm2022/inera-ids-angular-components-form-range.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs +8 -11
- package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-select.mjs +2 -2
- package/fesm2022/inera-ids-angular-components-form-select.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-textarea.mjs +2 -2
- package/fesm2022/inera-ids-angular-components-form-textarea.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-time.mjs +2 -2
- package/fesm2022/inera-ids-angular-components-form-time.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-global-alert.mjs +11 -23
- package/fesm2022/inera-ids-angular-components-global-alert.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +29 -59
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +64 -91
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177.mjs +74 -104
- package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +31 -67
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera-general.mjs +22 -49
- package/fesm2022/inera-ids-angular-components-header-inera-general.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera.mjs +23 -54
- package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs +6 -12
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs +13 -22
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs +7 -13
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-local.mjs +7 -13
- package/fesm2022/inera-ids-angular-components-navigation-local.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-popover.mjs +106 -61
- package/fesm2022/inera-ids-angular-components-popover.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-puff-list.mjs +16 -22
- package/fesm2022/inera-ids-angular-components-puff-list.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-side-menu.mjs +9 -12
- package/fesm2022/inera-ids-angular-components-side-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-side-panel.mjs +91 -79
- package/fesm2022/inera-ids-angular-components-side-panel.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-stepper.mjs +5 -8
- package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tabs.mjs +14 -22
- package/fesm2022/inera-ids-angular-components-tabs.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tag.mjs +5 -5
- package/fesm2022/inera-ids-angular-components-tag.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tooltip.mjs +18 -24
- package/fesm2022/inera-ids-angular-components-tooltip.mjs.map +1 -1
- package/package.json +115 -107
- /package/common/services/{use-id.service.ts.d.ts → use-id.service.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, TemplateRef, booleanAttribute,
|
|
2
|
+
import { EventEmitter, viewChild, TemplateRef, booleanAttribute, Output, Input, Component, contentChildren, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
@@ -8,9 +8,9 @@ class IDPuffListItemComponent {
|
|
|
8
8
|
interactive;
|
|
9
9
|
href;
|
|
10
10
|
clicked = new EventEmitter();
|
|
11
|
-
template;
|
|
11
|
+
template = viewChild.required(TemplateRef);
|
|
12
12
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDPuffListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDPuffListItemComponent, isStandalone: true, selector: "id-puff-list-item", inputs: { lean: ["lean", "lean", booleanAttribute], interactive: "interactive", href: "href" }, outputs: { clicked: "clicked" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDPuffListItemComponent, isStandalone: true, selector: "id-puff-list-item", inputs: { lean: ["lean", "lean", booleanAttribute], interactive: "interactive", href: "href" }, outputs: { clicked: "clicked" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
14
14
|
<ng-template>
|
|
15
15
|
<ng-template #header><ng-content></ng-content></ng-template>
|
|
16
16
|
<ng-template #content>
|
|
@@ -27,7 +27,7 @@ class IDPuffListItemComponent {
|
|
|
27
27
|
[attr.href]="href ? href : null"
|
|
28
28
|
(click)="clicked.emit($event)"
|
|
29
29
|
[attr.tabindex]="href ? null : 0"
|
|
30
|
-
[
|
|
30
|
+
[attr.aria-label]="interactive"
|
|
31
31
|
>
|
|
32
32
|
<div class="ids-puff-list-item__inner">
|
|
33
33
|
<ng-container>
|
|
@@ -102,7 +102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
102
102
|
[attr.href]="href ? href : null"
|
|
103
103
|
(click)="clicked.emit($event)"
|
|
104
104
|
[attr.tabindex]="href ? null : 0"
|
|
105
|
-
[
|
|
105
|
+
[attr.aria-label]="interactive"
|
|
106
106
|
>
|
|
107
107
|
<div class="ids-puff-list-item__inner">
|
|
108
108
|
<ng-container>
|
|
@@ -167,27 +167,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
167
167
|
type: Input
|
|
168
168
|
}], clicked: [{
|
|
169
169
|
type: Output
|
|
170
|
-
}], template: [{
|
|
171
|
-
type: ViewChild,
|
|
172
|
-
args: [TemplateRef]
|
|
173
170
|
}] } });
|
|
174
171
|
|
|
175
172
|
class IDPuffListComponent {
|
|
176
|
-
listItems;
|
|
173
|
+
listItems = contentChildren(IDPuffListItemComponent, { descendants: true });
|
|
177
174
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDPuffListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDPuffListComponent, isStandalone: true, selector: "id-puff-list", queries: [{ propertyName: "listItems", predicate: IDPuffListItemComponent, descendants: true }], ngImport: i0, template: `
|
|
179
|
-
@if (listItems.length > 1) {
|
|
175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDPuffListComponent, isStandalone: true, selector: "id-puff-list", queries: [{ propertyName: "listItems", predicate: IDPuffListItemComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
176
|
+
@if (listItems().length > 1) {
|
|
180
177
|
<ul class="ids-puff-list">
|
|
181
|
-
<li *ngFor="let item of listItems"
|
|
178
|
+
<li *ngFor="let item of listItems()"
|
|
182
179
|
class="ids-puff-list-item"
|
|
183
180
|
[class.ids-puff-list-item--interactive]="item.interactive"
|
|
184
181
|
[class.ids-puff-list-item--lean]="item.lean">
|
|
185
|
-
<ng-template [ngTemplateOutlet]="item.template"></ng-template>
|
|
182
|
+
<ng-template [ngTemplateOutlet]="item.template()"></ng-template>
|
|
186
183
|
</li>
|
|
187
184
|
</ul>
|
|
188
185
|
} @else {
|
|
189
186
|
<div class="ids-puff-list-item">
|
|
190
|
-
<ng-template [ngTemplateOutlet]="listItems.
|
|
187
|
+
<ng-template [ngTemplateOutlet]="listItems()[0].template()"></ng-template>
|
|
191
188
|
</div>
|
|
192
189
|
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
193
190
|
}
|
|
@@ -196,27 +193,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
196
193
|
args: [{
|
|
197
194
|
selector: 'id-puff-list',
|
|
198
195
|
template: `
|
|
199
|
-
@if (listItems.length > 1) {
|
|
196
|
+
@if (listItems().length > 1) {
|
|
200
197
|
<ul class="ids-puff-list">
|
|
201
|
-
<li *ngFor="let item of listItems"
|
|
198
|
+
<li *ngFor="let item of listItems()"
|
|
202
199
|
class="ids-puff-list-item"
|
|
203
200
|
[class.ids-puff-list-item--interactive]="item.interactive"
|
|
204
201
|
[class.ids-puff-list-item--lean]="item.lean">
|
|
205
|
-
<ng-template [ngTemplateOutlet]="item.template"></ng-template>
|
|
202
|
+
<ng-template [ngTemplateOutlet]="item.template()"></ng-template>
|
|
206
203
|
</li>
|
|
207
204
|
</ul>
|
|
208
205
|
} @else {
|
|
209
206
|
<div class="ids-puff-list-item">
|
|
210
|
-
<ng-template [ngTemplateOutlet]="listItems.
|
|
207
|
+
<ng-template [ngTemplateOutlet]="listItems()[0].template()"></ng-template>
|
|
211
208
|
</div>
|
|
212
209
|
}`,
|
|
213
210
|
standalone: true,
|
|
214
211
|
imports: [CommonModule]
|
|
215
212
|
}]
|
|
216
|
-
}]
|
|
217
|
-
type: ContentChildren,
|
|
218
|
-
args: [IDPuffListItemComponent, { descendants: true }]
|
|
219
|
-
}] } });
|
|
213
|
+
}] });
|
|
220
214
|
|
|
221
215
|
class IDPuffListItemHeaderComponent {
|
|
222
216
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDPuffListItemHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-puff-list.mjs","sources":["../../../projects/ids-angular/components/puff-list/puff-list-item.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-header.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-extra-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content-info.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-date-label.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.module.ts","../../../projects/ids-angular/components/puff-list/inera-ids-angular-components-puff-list.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item',\n template: `\n <ng-template>\n <ng-template #header><ng-content></ng-content></ng-template>\n <ng-template #content>\n <ng-content select=\"id-puff-list-item-content\"></ng-content>\n </ng-template>\n <ng-template #extraContent>\n <ng-content select=\"id-puff-list-item-extra-content\"></ng-content>\n </ng-template>\n <ng-template #dateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n <ng-template #puffListDateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n @if (interactive) {\n <a\n class=\"ids-puff-list-item__item-link\"\n [attr.href]=\"href ? href : null\"\n (click)=\"clicked.emit($event)\"\n [attr.tabindex]=\"href ? null : 0\"\n [ariaLabel]=\"interactive\"\n >\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n </a>\n } @else {\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n }\n </ng-template>\n `,\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDPuffListItemComponent {\n @Input({ transform: booleanAttribute }) lean: boolean;\n @Input() interactive: string;\n @Input() href: string;\n @Output() clicked = new EventEmitter<Event>();\n\n @ViewChild(TemplateRef) template: TemplateRef<any>;\n}\n","import { Component, ContentChildren, QueryList } from '@angular/core';\nimport {IDPuffListItemComponent} from './puff-list-item.component';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'id-puff-list',\n template: `\n @if (listItems.length > 1) {\n <ul class=\"ids-puff-list\">\n <li *ngFor=\"let item of listItems\" \n class=\"ids-puff-list-item\"\n [class.ids-puff-list-item--interactive]=\"item.interactive\"\n [class.ids-puff-list-item--lean]=\"item.lean\">\n <ng-template [ngTemplateOutlet]=\"item.template\"></ng-template>\n </li>\n </ul>\n } @else {\n <div class=\"ids-puff-list-item\">\n <ng-template [ngTemplateOutlet]=\"listItems.first.template\"></ng-template>\n </div>\n }`,\n standalone:true,\n imports: [CommonModule]\n})\nexport class IDPuffListComponent {\n\n @ContentChildren(IDPuffListItemComponent, { descendants: true })\n listItems!: QueryList<IDPuffListItemComponent>;\n\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-header\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-puff-list-item-header'\n },\n standalone: true\n})\nexport class IDPuffListItemHeaderComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-content\",\n template: `<ng-content></ng-content>`,\n standalone: true\n})\nexport class IDPuffListItemContentComponent {}\n","\nimport { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-extra-content\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__extra-content'\n }\n})\nexport class IDPuffListItemExtraContentComponent {}\n","import { Component, booleanAttribute, Input } from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item-content-info',\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: 'ids-puff-list-item__info',\n '[class.ids-puff-list-item__info--bottom]': 'bottom',\n },\n standalone: true,\n})\nexport class IDPuffListItemContentInfoComponent {\n @Input({ transform: booleanAttribute }) bottom: boolean = false;\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-date-label\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__date'\n }\n})\nexport class IDPuffListItemDateLabelComponent {}\n","import { NgModule } from \"@angular/core\";\n\nimport { IDPuffListComponent } from \"./puff-list.component\";\nimport { IDPuffListItemComponent } from \"./puff-list-item.component\";\nimport { IDPuffListItemHeaderComponent } from \"./puff-list-item-header.component\";\nimport { IDPuffListItemContentComponent } from \"./puff-list-item-content.component\";\nimport { IDPuffListItemExtraContentComponent } from \"./puff-list-item-extra-content.component\";\nimport { IDPuffListItemContentInfoComponent } from \"./puff-list-item-content-info.component\";\nimport { IDPuffListItemDateLabelComponent } from \"./puff-list-item-date-label.component\";\n\n@NgModule({\n imports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n exports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n})\nexport class IDPuffListModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAsFa,uBAAuB,CAAA;AACM,IAAA,IAAI;AACnC,IAAA,WAAW;AACX,IAAA,IAAI;AACH,IAAA,OAAO,GAAG,IAAI,YAAY,EAAS;AAErB,IAAA,QAAQ;wGANrB,uBAAu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AAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,mBAAmB;YACnB,uBAAuB;YACvB,6BAA6B;YAC7B,8BAA8B;YAC9B,mCAAmC;YACnC,kCAAkC;AAClC,YAAA,gCAAgC,aAGhC,mBAAmB;YACnB,uBAAuB;YACvB,6BAA6B;YAC7B,8BAA8B;YAC9B,mCAAmC;YACnC,kCAAkC;YAClC,gCAAgC,CAAA,EAAA,CAAA;AAGvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,mBAAmB;YACnB,uBAAuB,CAAA,EAAA,CAAA;;4FAiBd,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBApB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-puff-list.mjs","sources":["../../../projects/ids-angular/components/puff-list/puff-list-item.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-header.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-extra-content.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-content-info.component.ts","../../../projects/ids-angular/components/puff-list/puff-list-item-date-label.component.ts","../../../projects/ids-angular/components/puff-list/puff-list.module.ts","../../../projects/ids-angular/components/puff-list/inera-ids-angular-components-puff-list.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item',\n template: `\n <ng-template>\n <ng-template #header><ng-content></ng-content></ng-template>\n <ng-template #content>\n <ng-content select=\"id-puff-list-item-content\"></ng-content>\n </ng-template>\n <ng-template #extraContent>\n <ng-content select=\"id-puff-list-item-extra-content\"></ng-content>\n </ng-template>\n <ng-template #dateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n <ng-template #puffListDateLabel><ng-content select=\"id-date-label\"></ng-content></ng-template>\n @if (interactive) {\n <a\n class=\"ids-puff-list-item__item-link\"\n [attr.href]=\"href ? href : null\"\n (click)=\"clicked.emit($event)\"\n [attr.tabindex]=\"href ? null : 0\"\n [attr.aria-label]=\"interactive\"\n >\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n </a>\n } @else {\n <div class=\"ids-puff-list-item__inner\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"dateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__content-wrapper\">\n <div class=\"ids-puff-list-item__content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"puffListDateLabel\" />\n </ng-container>\n <div class=\"ids-puff-list-item__body\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"header\" />\n <ng-template [ngTemplateOutlet]=\"content\" />\n </ng-container>\n </div>\n </div>\n <div class=\"ids-puff-list-item__extra-content\">\n <ng-container>\n <ng-template [ngTemplateOutlet]=\"extraContent\" />\n </ng-container>\n </div>\n </div>\n </div>\n }\n </ng-template>\n `,\n standalone: true,\n imports: [CommonModule],\n})\nexport class IDPuffListItemComponent {\n @Input({ transform: booleanAttribute }) lean: boolean;\n @Input() interactive: string;\n @Input() href: string;\n @Output() clicked = new EventEmitter<Event>();\n\n template = viewChild.required(TemplateRef);\n}\n","import { Component, contentChildren } from '@angular/core';\nimport {IDPuffListItemComponent} from './puff-list-item.component';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'id-puff-list',\n template: `\n @if (listItems().length > 1) {\n <ul class=\"ids-puff-list\">\n <li *ngFor=\"let item of listItems()\" \n class=\"ids-puff-list-item\"\n [class.ids-puff-list-item--interactive]=\"item.interactive\"\n [class.ids-puff-list-item--lean]=\"item.lean\">\n <ng-template [ngTemplateOutlet]=\"item.template()\"></ng-template>\n </li>\n </ul>\n } @else {\n <div class=\"ids-puff-list-item\">\n <ng-template [ngTemplateOutlet]=\"listItems()[0].template()\"></ng-template>\n </div>\n }`,\n standalone:true,\n imports: [CommonModule]\n})\nexport class IDPuffListComponent {\n\n listItems = contentChildren(IDPuffListItemComponent, { descendants: true });\n\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-header\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-puff-list-item-header'\n },\n standalone: true\n})\nexport class IDPuffListItemHeaderComponent {}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-content\",\n template: `<ng-content></ng-content>`,\n standalone: true\n})\nexport class IDPuffListItemContentComponent {}\n","\nimport { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-extra-content\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__extra-content'\n }\n})\nexport class IDPuffListItemExtraContentComponent {}\n","import { Component, booleanAttribute, Input } from '@angular/core';\n\n@Component({\n selector: 'id-puff-list-item-content-info',\n template: `\n <ng-content></ng-content>\n `,\n host: {\n class: 'ids-puff-list-item__info',\n '[class.ids-puff-list-item__info--bottom]': 'bottom',\n },\n standalone: true,\n})\nexport class IDPuffListItemContentInfoComponent {\n @Input({ transform: booleanAttribute }) bottom: boolean = false;\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-puff-list-item-date-label\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n class: 'ids-puff-list-item__date'\n }\n})\nexport class IDPuffListItemDateLabelComponent {}\n","import { NgModule } from \"@angular/core\";\n\nimport { IDPuffListComponent } from \"./puff-list.component\";\nimport { IDPuffListItemComponent } from \"./puff-list-item.component\";\nimport { IDPuffListItemHeaderComponent } from \"./puff-list-item-header.component\";\nimport { IDPuffListItemContentComponent } from \"./puff-list-item-content.component\";\nimport { IDPuffListItemExtraContentComponent } from \"./puff-list-item-extra-content.component\";\nimport { IDPuffListItemContentInfoComponent } from \"./puff-list-item-content-info.component\";\nimport { IDPuffListItemDateLabelComponent } from \"./puff-list-item-date-label.component\";\n\n@NgModule({\n imports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n exports: [\n IDPuffListComponent,\n IDPuffListItemComponent,\n IDPuffListItemHeaderComponent,\n IDPuffListItemContentComponent,\n IDPuffListItemExtraContentComponent,\n IDPuffListItemContentInfoComponent,\n IDPuffListItemDateLabelComponent,\n ],\n})\nexport class IDPuffListModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-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AA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,mBAAmB;YACnB,uBAAuB;YACvB,6BAA6B;YAC7B,8BAA8B;YAC9B,mCAAmC;YACnC,kCAAkC;AAClC,YAAA,gCAAgC,aAGhC,mBAAmB;YACnB,uBAAuB;YACvB,6BAA6B;YAC7B,8BAA8B;YAC9B,mCAAmC;YACnC,kCAAkC;YAClC,gCAAgC,CAAA,EAAA,CAAA;AAGvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,mBAAmB;YACnB,uBAAuB,CAAA,EAAA,CAAA;;4FAiBd,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBApB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,6BAA6B;wBAC7B,8BAA8B;wBAC9B,mCAAmC;wBACnC,kCAAkC;wBAClC,gCAAgC;AACjC,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, inject, booleanAttribute,
|
|
2
|
+
import { EventEmitter, contentChildren, inject, booleanAttribute, Output, Input, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
|
|
5
5
|
class IDSideMenuComponent {
|
|
@@ -13,7 +13,7 @@ class IDSideMenuComponent {
|
|
|
13
13
|
expandedChange = new EventEmitter();
|
|
14
14
|
closed = new EventEmitter();
|
|
15
15
|
opened = new EventEmitter();
|
|
16
|
-
menuChildren;
|
|
16
|
+
menuChildren = contentChildren(IDSideMenuComponent);
|
|
17
17
|
parent = inject(IDSideMenuComponent, { optional: true, skipSelf: true });
|
|
18
18
|
constructor() {
|
|
19
19
|
if (this.parent) {
|
|
@@ -42,7 +42,7 @@ class IDSideMenuComponent {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDSideMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDSideMenuComponent, isStandalone: true, selector: "id-side-menu-item", inputs: { label: "label", srExpandText: "srExpandText", srCollapseText: "srCollapseText", level: "level", active: ["active", "active", booleanAttribute], icon: "icon", expanded: ["expanded", "expanded", booleanAttribute] }, outputs: { expandedChange: "expandedChange", closed: "closed", opened: "opened" }, host: { properties: { "class": "hostClasses" } }, queries: [{ propertyName: "menuChildren", predicate: IDSideMenuComponent }], ngImport: i0, template: `
|
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDSideMenuComponent, isStandalone: true, selector: "id-side-menu-item", inputs: { label: "label", srExpandText: "srExpandText", srCollapseText: "srCollapseText", level: "level", active: ["active", "active", booleanAttribute], icon: "icon", expanded: ["expanded", "expanded", booleanAttribute] }, outputs: { expandedChange: "expandedChange", closed: "closed", opened: "opened" }, host: { properties: { "class": "hostClasses" } }, queries: [{ propertyName: "menuChildren", predicate: IDSideMenuComponent, isSignal: true }], ngImport: i0, template: `
|
|
46
46
|
<ng-template #labelTemplate>
|
|
47
47
|
<div class="ids-side-menu__label">
|
|
48
48
|
{{ label }}
|
|
@@ -50,7 +50,7 @@ class IDSideMenuComponent {
|
|
|
50
50
|
</div>
|
|
51
51
|
</ng-template>
|
|
52
52
|
<ng-template #expandBtnTemplate>
|
|
53
|
-
@if (this.menuChildren.length > 0) {
|
|
53
|
+
@if (this.menuChildren().length > 0) {
|
|
54
54
|
<button
|
|
55
55
|
class="ids-side-menu__chevron-button"
|
|
56
56
|
[class.ids-side-menu__chevron-button--expanded]="expanded"
|
|
@@ -75,11 +75,11 @@ class IDSideMenuComponent {
|
|
|
75
75
|
|
|
76
76
|
<div
|
|
77
77
|
class="ids-side-menu__header"
|
|
78
|
-
[class.ids-side-menu--node-label]="this.menuChildren.length && this.label"
|
|
78
|
+
[class.ids-side-menu--node-label]="this.menuChildren().length && this.label"
|
|
79
79
|
[class.ids-side-menu--active]="active"
|
|
80
80
|
>
|
|
81
81
|
<div class="ids-side-menu__header-inner">
|
|
82
|
-
@if (this.label && this.menuChildren.length > 0) {
|
|
82
|
+
@if (this.label && this.menuChildren().length > 0) {
|
|
83
83
|
<button
|
|
84
84
|
class="ids-side-menu__label-button"
|
|
85
85
|
(click)="toggleExpanded($event)"
|
|
@@ -122,7 +122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
122
122
|
</div>
|
|
123
123
|
</ng-template>
|
|
124
124
|
<ng-template #expandBtnTemplate>
|
|
125
|
-
@if (this.menuChildren.length > 0) {
|
|
125
|
+
@if (this.menuChildren().length > 0) {
|
|
126
126
|
<button
|
|
127
127
|
class="ids-side-menu__chevron-button"
|
|
128
128
|
[class.ids-side-menu__chevron-button--expanded]="expanded"
|
|
@@ -147,11 +147,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
147
147
|
|
|
148
148
|
<div
|
|
149
149
|
class="ids-side-menu__header"
|
|
150
|
-
[class.ids-side-menu--node-label]="this.menuChildren.length && this.label"
|
|
150
|
+
[class.ids-side-menu--node-label]="this.menuChildren().length && this.label"
|
|
151
151
|
[class.ids-side-menu--active]="active"
|
|
152
152
|
>
|
|
153
153
|
<div class="ids-side-menu__header-inner">
|
|
154
|
-
@if (this.label && this.menuChildren.length > 0) {
|
|
154
|
+
@if (this.label && this.menuChildren().length > 0) {
|
|
155
155
|
<button
|
|
156
156
|
class="ids-side-menu__label-button"
|
|
157
157
|
(click)="toggleExpanded($event)"
|
|
@@ -209,9 +209,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
209
209
|
type: Output
|
|
210
210
|
}], opened: [{
|
|
211
211
|
type: Output
|
|
212
|
-
}], menuChildren: [{
|
|
213
|
-
type: ContentChildren,
|
|
214
|
-
args: [IDSideMenuComponent]
|
|
215
212
|
}] } });
|
|
216
213
|
|
|
217
214
|
class IDSideMenuLinkComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inera-ids-angular-components-side-menu.mjs","sources":["../../../projects/ids-angular/components/side-menu/side-menu.component.ts","../../../projects/ids-angular/components/side-menu/side-menu-link.component.ts","../../../projects/ids-angular/components/side-menu/side-menu-icon.component.ts","../../../projects/ids-angular/components/side-menu/side-menu.module.ts","../../../projects/ids-angular/components/side-menu/inera-ids-angular-components-side-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n Output,\n QueryList,\n booleanAttribute,\n inject,\n} from '@angular/core';\n\n@Component({\n selector: 'id-side-menu-item',\n template: `\n <ng-template #labelTemplate>\n <div class=\"ids-side-menu__label\">\n {{ label }}\n <slot name=\"label-notification\"></slot>\n </div>\n </ng-template>\n <ng-template #expandBtnTemplate>\n @if (this.menuChildren.length > 0) {\n <button\n class=\"ids-side-menu__chevron-button\"\n [class.ids-side-menu__chevron-button--expanded]=\"expanded\"\n (click)=\"toggleExpanded($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-label]=\"expanded ? srCollapseText : srExpandText\"\n ></button>\n } @else if (this.icon) {\n <div\n class=\"ids-side-menu__label-icon\"\n aria-hidden=\"true\"\n >\n <span\n class=\"ids-icon-{{ this.icon }}\"\n aria-hidden=\"true\"\n ></span>\n </div>\n } @else {\n <div class=\"ids-side-menu__chevron-button--empty\"></div>\n }\n </ng-template>\n\n <div\n class=\"ids-side-menu__header\"\n [class.ids-side-menu--node-label]=\"this.menuChildren.length && this.label\"\n [class.ids-side-menu--active]=\"active\"\n >\n <div class=\"ids-side-menu__header-inner\">\n @if (this.label && this.menuChildren.length > 0) {\n <button\n class=\"ids-side-menu__label-button\"\n (click)=\"toggleExpanded($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-label]=\"expanded ? srCollapseText : srExpandText\"\n >\n <div\n class=\"ids-side-menu__label-chevron\"\n [class.ids-side-menu__label-chevron--expanded]=\"expanded\"\n ></div>\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n </button>\n } @else if (this.label) {\n <div class=\"ids-side-menu__chevron-button--empty\"></div>\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n } @else {\n <ng-container [ngTemplateOutlet]=\"expandBtnTemplate\"></ng-container>\n <div class=\"ids-side-menu__link\">\n <ng-content></ng-content>\n </div>\n }\n </div>\n </div>\n @if (this.expanded) {\n <div class=\"ids-side-menu__children\">\n <ng-content select=\"id-side-menu-item\"></ng-content>\n </div>\n }\n `,\n host: {\n '[class]': 'hostClasses',\n },\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDSideMenuComponent {\n @Input() label: string = '';\n @Input() srExpandText: string = 'Expandera';\n @Input() srCollapseText: string = 'Minimera';\n @Input() level: number = 1;\n @Input({ transform: booleanAttribute }) active: boolean = false;\n @Input() icon: string = '';\n @Input({ transform: booleanAttribute }) expanded: boolean = false;\n @Output() expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n\n @ContentChildren(IDSideMenuComponent)\n menuChildren!: QueryList<IDSideMenuComponent>;\n\n private parent = inject(IDSideMenuComponent, { optional: true, skipSelf: true });\n\n constructor() {\n if (this.parent) {\n this.level = this.parent.level + 1;\n }\n }\n\n get hostClasses(): string {\n return `ids-side-menu ids-side-menu--level-${this.level}`;\n }\n\n hasClosed(event: Event) {\n this.expanded = false;\n this.expandedChange.emit(this.expanded);\n this.closed.emit(event);\n }\n hasOpened(event: Event) {\n this.expanded = true;\n this.expandedChange.emit(this.expanded);\n this.opened.emit(event);\n }\n\n toggleExpanded(e: Event) {\n if (this.expanded) {\n this.hasClosed(e);\n } else {\n this.hasOpened(e);\n }\n }\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-side-menu-item-link\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-side-menu__link'\n },\n standalone: true\n})\nexport class IDSideMenuLinkComponent {\n\n}\n","import { Component, Input } from \"@angular/core\";\n\n@Component({\n selector: \"id-side-menu-item-icon\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n '[class]': 'hostClasses',\n }\n})\nexport class IDSideMenuIconComponent {\n\n @Input() name: string\n\n get hostClasses(): string {\n return `ids-icon-${this.name} ids-side-menu--start-icon`;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { IDSideMenuComponent } from \"./side-menu.component\";\nimport { IDSideMenuLinkComponent } from \"./side-menu-link.component\";\nimport { IDSideMenuIconComponent } from \"./side-menu-icon.component\";\n\n@NgModule({\n imports: [\n IDSideMenuComponent,\n IDSideMenuLinkComponent,\n IDSideMenuIconComponent\n ],\n exports: [\n IDSideMenuComponent,\n IDSideMenuLinkComponent,\n IDSideMenuIconComponent\n ],\n})\nexport class IDSideMenuModule {}","/**\n * Generated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GAGd,gBAAgB,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAZ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB;AACD,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"inera-ids-angular-components-side-menu.mjs","sources":["../../../projects/ids-angular/components/side-menu/side-menu.component.ts","../../../projects/ids-angular/components/side-menu/side-menu-link.component.ts","../../../projects/ids-angular/components/side-menu/side-menu-icon.component.ts","../../../projects/ids-angular/components/side-menu/side-menu.module.ts","../../../projects/ids-angular/components/side-menu/inera-ids-angular-components-side-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, EventEmitter, Input, Output, booleanAttribute, inject, contentChildren } from '@angular/core';\n\n@Component({\n selector: 'id-side-menu-item',\n template: `\n <ng-template #labelTemplate>\n <div class=\"ids-side-menu__label\">\n {{ label }}\n <slot name=\"label-notification\"></slot>\n </div>\n </ng-template>\n <ng-template #expandBtnTemplate>\n @if (this.menuChildren().length > 0) {\n <button\n class=\"ids-side-menu__chevron-button\"\n [class.ids-side-menu__chevron-button--expanded]=\"expanded\"\n (click)=\"toggleExpanded($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-label]=\"expanded ? srCollapseText : srExpandText\"\n ></button>\n } @else if (this.icon) {\n <div\n class=\"ids-side-menu__label-icon\"\n aria-hidden=\"true\"\n >\n <span\n class=\"ids-icon-{{ this.icon }}\"\n aria-hidden=\"true\"\n ></span>\n </div>\n } @else {\n <div class=\"ids-side-menu__chevron-button--empty\"></div>\n }\n </ng-template>\n\n <div\n class=\"ids-side-menu__header\"\n [class.ids-side-menu--node-label]=\"this.menuChildren().length && this.label\"\n [class.ids-side-menu--active]=\"active\"\n >\n <div class=\"ids-side-menu__header-inner\">\n @if (this.label && this.menuChildren().length > 0) {\n <button\n class=\"ids-side-menu__label-button\"\n (click)=\"toggleExpanded($event)\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-label]=\"expanded ? srCollapseText : srExpandText\"\n >\n <div\n class=\"ids-side-menu__label-chevron\"\n [class.ids-side-menu__label-chevron--expanded]=\"expanded\"\n ></div>\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n </button>\n } @else if (this.label) {\n <div class=\"ids-side-menu__chevron-button--empty\"></div>\n <ng-container [ngTemplateOutlet]=\"labelTemplate\"></ng-container>\n } @else {\n <ng-container [ngTemplateOutlet]=\"expandBtnTemplate\"></ng-container>\n <div class=\"ids-side-menu__link\">\n <ng-content></ng-content>\n </div>\n }\n </div>\n </div>\n @if (this.expanded) {\n <div class=\"ids-side-menu__children\">\n <ng-content select=\"id-side-menu-item\"></ng-content>\n </div>\n }\n `,\n host: {\n '[class]': 'hostClasses',\n },\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class IDSideMenuComponent {\n @Input() label: string = '';\n @Input() srExpandText: string = 'Expandera';\n @Input() srCollapseText: string = 'Minimera';\n @Input() level: number = 1;\n @Input({ transform: booleanAttribute }) active: boolean = false;\n @Input() icon: string = '';\n @Input({ transform: booleanAttribute }) expanded: boolean = false;\n @Output() expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n @Output() closed: EventEmitter<Event> = new EventEmitter();\n @Output() opened: EventEmitter<Event> = new EventEmitter();\n\n menuChildren = contentChildren(IDSideMenuComponent);\n\n private parent = inject(IDSideMenuComponent, { optional: true, skipSelf: true });\n\n constructor() {\n if (this.parent) {\n this.level = this.parent.level + 1;\n }\n }\n\n get hostClasses(): string {\n return `ids-side-menu ids-side-menu--level-${this.level}`;\n }\n\n hasClosed(event: Event) {\n this.expanded = false;\n this.expandedChange.emit(this.expanded);\n this.closed.emit(event);\n }\n hasOpened(event: Event) {\n this.expanded = true;\n this.expandedChange.emit(this.expanded);\n this.opened.emit(event);\n }\n\n toggleExpanded(e: Event) {\n if (this.expanded) {\n this.hasClosed(e);\n } else {\n this.hasOpened(e);\n }\n }\n}\n","import { Component } from \"@angular/core\";\n\n@Component({\n selector: \"id-side-menu-item-link\",\n template: `<ng-content></ng-content>`,\n host: {\n class: 'ids-side-menu__link'\n },\n standalone: true\n})\nexport class IDSideMenuLinkComponent {\n\n}\n","import { Component, Input } from \"@angular/core\";\n\n@Component({\n selector: \"id-side-menu-item-icon\",\n template: `<ng-content></ng-content>`,\n standalone: true,\n host: {\n '[class]': 'hostClasses',\n }\n})\nexport class IDSideMenuIconComponent {\n\n @Input() name: string\n\n get hostClasses(): string {\n return `ids-icon-${this.name} ids-side-menu--start-icon`;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { IDSideMenuComponent } from \"./side-menu.component\";\nimport { IDSideMenuLinkComponent } from \"./side-menu-link.component\";\nimport { IDSideMenuIconComponent } from \"./side-menu-icon.component\";\n\n@NgModule({\n imports: [\n IDSideMenuComponent,\n IDSideMenuLinkComponent,\n IDSideMenuIconComponent\n ],\n exports: [\n IDSideMenuComponent,\n IDSideMenuLinkComponent,\n IDSideMenuIconComponent\n ],\n})\nexport class IDSideMenuModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MA8Ea,mBAAmB,CAAA;IACrB,KAAK,GAAW,EAAE;IAClB,YAAY,GAAW,WAAW;IAClC,cAAc,GAAW,UAAU;IACnC,KAAK,GAAW,CAAC;IACc,MAAM,GAAY,KAAK;IACtD,IAAI,GAAW,EAAE;IACc,QAAQ,GAAY,KAAK;AACvD,IAAA,cAAc,GAA0B,IAAI,YAAY,EAAW;AAEnE,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAChD,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE;AAExD,IAAA,YAAY,GAAG,eAAe,CAAC,mBAAmB,CAAC;AA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AA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,8JANxB,CAAA,yBAAA,CAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAM1B,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,CAAA,yBAAA,CAA2B;AACrC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,aAAa;AACzB;AACF,iBAAA;8BAGU,IAAI,EAAA,CAAA;sBAAZ;;;MCKU,gBAAgB,CAAA;wGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAVzB,mBAAmB;YACnB,uBAAuB;AACvB,YAAA,uBAAuB,aAGvB,mBAAmB;YACnB,uBAAuB;YACvB,uBAAuB,CAAA,EAAA,CAAA;yGAGd,gBAAgB,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAZ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB;AACD,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Input, Component, EventEmitter,
|
|
2
|
+
import { InjectionToken, Input, Component, EventEmitter, contentChild, viewChild, inject, ElementRef, booleanAttribute, Output, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { useEscapeKey } from '@inera/ids-angular/common';
|
|
@@ -78,14 +78,15 @@ class IDSidePanelComponent {
|
|
|
78
78
|
showChange = new EventEmitter();
|
|
79
79
|
elevated = false;
|
|
80
80
|
menu = false;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
noCloseButton = false;
|
|
82
|
+
srMobileDialogLabel = 'Sidopanel';
|
|
83
|
+
srCloseText = 'Stäng';
|
|
84
|
+
srOpenText = 'Öppna';
|
|
85
|
+
size = 'm';
|
|
85
86
|
opened = new EventEmitter();
|
|
86
87
|
closed = new EventEmitter();
|
|
87
|
-
footer;
|
|
88
|
-
hamburgerButton;
|
|
88
|
+
footer = contentChild('id-side-panel-footer');
|
|
89
|
+
hamburgerButton = viewChild('hamburger');
|
|
89
90
|
position = inject(POSITION);
|
|
90
91
|
el = inject(ElementRef);
|
|
91
92
|
resizeObserver;
|
|
@@ -113,12 +114,12 @@ class IDSidePanelComponent {
|
|
|
113
114
|
const isMobile = window.innerWidth <= 1024;
|
|
114
115
|
const host = this.el.nativeElement;
|
|
115
116
|
if (isMobile) {
|
|
116
|
-
host.setAttribute(
|
|
117
|
-
host.setAttribute(
|
|
118
|
-
host.setAttribute(
|
|
117
|
+
host.setAttribute('role', 'dialog');
|
|
118
|
+
host.setAttribute('aria-modal', 'true');
|
|
119
|
+
host.setAttribute('aria-label', this.srMobileDialogLabel);
|
|
119
120
|
}
|
|
120
121
|
else {
|
|
121
|
-
[
|
|
122
|
+
['role', 'aria-modal', 'aria-label'].forEach((a) => host.removeAttribute(a));
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
toggleExpansion() {
|
|
@@ -145,87 +146,101 @@ class IDSidePanelComponent {
|
|
|
145
146
|
this.show = false;
|
|
146
147
|
this.closed.emit();
|
|
147
148
|
if (this.menu && this.hamburgerButton) {
|
|
148
|
-
this.hamburgerButton
|
|
149
|
+
this.hamburgerButton()?.nativeElement.focus();
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
ngOnDestroy() {
|
|
152
153
|
this.resizeObserver?.disconnect();
|
|
153
154
|
}
|
|
154
155
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDSidePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
155
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDSidePanelComponent, isStandalone: true, selector: "id-side-panel", inputs: { show: ["show", "show", booleanAttribute], elevated: ["elevated", "elevated", booleanAttribute], menu: ["menu", "menu", booleanAttribute], srMobileDialogLabel: "srMobileDialogLabel", srCloseText: "srCloseText", srOpenText: "srOpenText", size: "size" }, outputs: { showChange: "showChange", opened: "opened", closed: "closed" }, host: { properties: { "class.ids-side-panel--menu": "menu", "class.ids-side-panel--regular": "!menu", "class.ids-side-panel--show": "show", "class.ids-side-panel--elevated": "elevated", "class.ids-side-panel--left": "position === \"left\" && !menu", "class": "sizeClass" }, classAttribute: "ids-side-panel ids-focus-trap--tablet" }, queries: [{ propertyName: "footer", first: true, predicate: ["id-side-panel-footer"], descendants: true }], viewQueries: [{ propertyName: "hamburgerButton", first: true, predicate: ["hamburger"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
<div class="ids-side-panel__inner">
|
|
180
|
-
<ng-content select="[slot='headline']"></ng-content>
|
|
181
|
-
<ng-content></ng-content>
|
|
156
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: IDSidePanelComponent, isStandalone: true, selector: "id-side-panel", inputs: { show: ["show", "show", booleanAttribute], elevated: ["elevated", "elevated", booleanAttribute], menu: ["menu", "menu", booleanAttribute], noCloseButton: ["noCloseButton", "noCloseButton", booleanAttribute], srMobileDialogLabel: "srMobileDialogLabel", srCloseText: "srCloseText", srOpenText: "srOpenText", size: "size" }, outputs: { showChange: "showChange", opened: "opened", closed: "closed" }, host: { properties: { "class.ids-side-panel--menu": "menu", "class.ids-side-panel--regular": "!menu", "class.ids-side-panel--show": "show", "class.ids-side-panel--elevated": "elevated", "class.ids-side-panel--left": "position === \"left\" && !menu", "class": "sizeClass" }, classAttribute: "ids-side-panel ids-focus-trap--tablet" }, queries: [{ propertyName: "footer", first: true, predicate: ["id-side-panel-footer"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "hamburgerButton", first: true, predicate: ["hamburger"], descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
157
|
+
<div class="ids-side-panel__panel" [class.ids-side-panel__panel--no-close-button]="noCloseButton">
|
|
158
|
+
<div class="ids-side-panel__actions">
|
|
159
|
+
@if (!noCloseButton) {
|
|
160
|
+
@if (menu) {
|
|
161
|
+
<button
|
|
162
|
+
class="ids-side-panel__hamburger"
|
|
163
|
+
[attr.aria-label]="show ? srCloseText : srOpenText"
|
|
164
|
+
[attr.aria-expanded]="show"
|
|
165
|
+
(click)="toggleExpansion()"
|
|
166
|
+
>
|
|
167
|
+
<div class="ids-hamburger">
|
|
168
|
+
<div class="ids-hamburger__lines"></div>
|
|
169
|
+
</div>
|
|
170
|
+
</button>
|
|
171
|
+
} @else {
|
|
172
|
+
<button
|
|
173
|
+
class="ids-side-panel__close-button"
|
|
174
|
+
[attr.aria-label]="srCloseText"
|
|
175
|
+
[attr.aria-expanded]="show"
|
|
176
|
+
(click)="didClose()"
|
|
177
|
+
></button>
|
|
178
|
+
}
|
|
179
|
+
}
|
|
182
180
|
</div>
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
|
|
182
|
+
<div
|
|
183
|
+
class="ids-side-panel__content"
|
|
184
|
+
tabindex="0"
|
|
185
|
+
>
|
|
186
|
+
<div class="ids-side-panel__inner">
|
|
187
|
+
<ng-content select="[slot='headline']"></ng-content>
|
|
188
|
+
<ng-content></ng-content>
|
|
189
|
+
</div>
|
|
190
|
+
@if (menu) {
|
|
191
|
+
<ng-content select="id-side-panel-footer"></ng-content>
|
|
185
192
|
}
|
|
193
|
+
</div>
|
|
186
194
|
</div>
|
|
187
|
-
|
|
195
|
+
`, isInline: true });
|
|
188
196
|
}
|
|
189
197
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: IDSidePanelComponent, decorators: [{
|
|
190
198
|
type: Component,
|
|
191
199
|
args: [{
|
|
192
|
-
selector:
|
|
200
|
+
selector: 'id-side-panel',
|
|
193
201
|
template: `
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<div class="ids-side-panel__inner">
|
|
218
|
-
<ng-content select="[slot='headline']"></ng-content>
|
|
219
|
-
<ng-content></ng-content>
|
|
202
|
+
<div class="ids-side-panel__panel" [class.ids-side-panel__panel--no-close-button]="noCloseButton">
|
|
203
|
+
<div class="ids-side-panel__actions">
|
|
204
|
+
@if (!noCloseButton) {
|
|
205
|
+
@if (menu) {
|
|
206
|
+
<button
|
|
207
|
+
class="ids-side-panel__hamburger"
|
|
208
|
+
[attr.aria-label]="show ? srCloseText : srOpenText"
|
|
209
|
+
[attr.aria-expanded]="show"
|
|
210
|
+
(click)="toggleExpansion()"
|
|
211
|
+
>
|
|
212
|
+
<div class="ids-hamburger">
|
|
213
|
+
<div class="ids-hamburger__lines"></div>
|
|
214
|
+
</div>
|
|
215
|
+
</button>
|
|
216
|
+
} @else {
|
|
217
|
+
<button
|
|
218
|
+
class="ids-side-panel__close-button"
|
|
219
|
+
[attr.aria-label]="srCloseText"
|
|
220
|
+
[attr.aria-expanded]="show"
|
|
221
|
+
(click)="didClose()"
|
|
222
|
+
></button>
|
|
223
|
+
}
|
|
224
|
+
}
|
|
220
225
|
</div>
|
|
221
|
-
|
|
222
|
-
|
|
226
|
+
|
|
227
|
+
<div
|
|
228
|
+
class="ids-side-panel__content"
|
|
229
|
+
tabindex="0"
|
|
230
|
+
>
|
|
231
|
+
<div class="ids-side-panel__inner">
|
|
232
|
+
<ng-content select="[slot='headline']"></ng-content>
|
|
233
|
+
<ng-content></ng-content>
|
|
234
|
+
</div>
|
|
235
|
+
@if (menu) {
|
|
236
|
+
<ng-content select="id-side-panel-footer"></ng-content>
|
|
223
237
|
}
|
|
238
|
+
</div>
|
|
224
239
|
</div>
|
|
225
|
-
|
|
240
|
+
`,
|
|
226
241
|
standalone: true,
|
|
227
242
|
host: {
|
|
228
|
-
|
|
243
|
+
class: 'ids-side-panel ids-focus-trap--tablet',
|
|
229
244
|
'[class.ids-side-panel--menu]': 'menu',
|
|
230
245
|
'[class.ids-side-panel--regular]': '!menu',
|
|
231
246
|
'[class.ids-side-panel--show]': 'show',
|
|
@@ -245,6 +260,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
245
260
|
}], menu: [{
|
|
246
261
|
type: Input,
|
|
247
262
|
args: [{ transform: booleanAttribute }]
|
|
263
|
+
}], noCloseButton: [{
|
|
264
|
+
type: Input,
|
|
265
|
+
args: [{ transform: booleanAttribute }]
|
|
248
266
|
}], srMobileDialogLabel: [{
|
|
249
267
|
type: Input
|
|
250
268
|
}], srCloseText: [{
|
|
@@ -257,12 +275,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
257
275
|
type: Output
|
|
258
276
|
}], closed: [{
|
|
259
277
|
type: Output
|
|
260
|
-
}], footer: [{
|
|
261
|
-
type: ContentChild,
|
|
262
|
-
args: ['id-side-panel-footer']
|
|
263
|
-
}], hamburgerButton: [{
|
|
264
|
-
type: ViewChild,
|
|
265
|
-
args: ['hamburger']
|
|
266
278
|
}] } });
|
|
267
279
|
|
|
268
280
|
class IDSidePanelFooterComponent {
|