@kirbydesign/designsystem 8.2.0-rc.2 → 8.2.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/README.md +7 -0
- package/action-group/action-group.component.d.ts +10 -6
- package/esm2020/action-group/action-group.component.mjs +25 -29
- package/esm2020/header/header.component.mjs +12 -26
- package/esm2020/header/public_api.mjs +2 -2
- package/esm2020/page/page.component.mjs +8 -23
- package/fesm2015/kirbydesign-designsystem-accordion.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-action-group.mjs +25 -30
- package/fesm2015/kirbydesign-designsystem-action-group.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-alert-experimental.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-avatar.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-button.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-calendar.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-card.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-chart.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-checkbox.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-data-table.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-divider.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-dropdown.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-empty-state.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-fab-sheet.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-flag.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-form-field.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-grid.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-header.mjs +12 -29
- package/fesm2015/kirbydesign-designsystem-header.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-helpers-scss.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-helpers.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-icon.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-item-group.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-item-sliding.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-item.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-kirby-app.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-kirby-ionic-module.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-list.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-loading-overlay.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-modal-v2.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-modal.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-page.mjs +7 -23
- package/fesm2015/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-popover.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-progress-circle.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-radio.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-range.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-reorder-list.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-router-outlet.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-section-header.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-shared-floating.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-shared-portal.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-shared.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-slide-button.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-slide.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-spinner.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-tabs.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-testing-jest.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-testing.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-toast.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-toggle-button.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-toggle.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem-types.mjs +0 -1
- package/fesm2015/kirbydesign-designsystem.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-accordion.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-action-group.mjs +25 -30
- package/fesm2020/kirbydesign-designsystem-action-group.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-alert-experimental.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-avatar.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-button.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-calendar.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-card.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-chart.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-checkbox.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-data-table.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-divider.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-dropdown.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-empty-state.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-fab-sheet.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-flag.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-form-field.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-grid.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-header.mjs +12 -27
- package/fesm2020/kirbydesign-designsystem-header.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-helpers-scss.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-helpers.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-icon.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-item-group.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-item-sliding.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-item.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-kirby-app.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-kirby-ionic-module.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-list.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-loading-overlay.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-modal-v2.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-modal.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-page.mjs +7 -23
- package/fesm2020/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-popover.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-progress-circle.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-radio.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-range.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-reorder-list.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-router-outlet.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-section-header.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-shared-floating.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-shared-portal.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-shared.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-slide-button.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-slide.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-spinner.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-tabs.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-testing-jest.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-testing.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-toast.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-toggle-button.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-toggle.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem-types.mjs +0 -1
- package/fesm2020/kirbydesign-designsystem.mjs +0 -1
- package/header/header.component.d.ts +5 -11
- package/header/public_api.d.ts +1 -1
- package/package.json +2 -2
- package/page/page.component.d.ts +3 -4
- package/icon/src/README.md +0 -16
|
@@ -47,4 +47,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
47
47
|
|
|
48
48
|
export { ToggleButtonComponent, ToggleButtonModule };
|
|
49
49
|
//# sourceMappingURL=kirbydesign-designsystem-toggle-button.mjs.map
|
|
50
|
-
//# sourceMappingURL=kirbydesign-designsystem-toggle-button.mjs.map
|
|
@@ -750,4 +750,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
750
750
|
|
|
751
751
|
export { KirbyBadge as BadgeComponent, KeyHandlerDirective, KirbyBadgeModule, KirbyExperimentalModule, KirbyModule, ModalRouterLinkDirective, PageLocalNavigationComponent, SegmentedControlComponent, SegmentedControlMode };
|
|
752
752
|
//# sourceMappingURL=kirbydesign-designsystem.mjs.map
|
|
753
|
-
//# sourceMappingURL=kirbydesign-designsystem.mjs.map
|
|
@@ -92,4 +92,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
92
92
|
|
|
93
93
|
export { AccordionDirective, AccordionItemComponent, AccordionModule };
|
|
94
94
|
//# sourceMappingURL=kirbydesign-designsystem-accordion.mjs.map
|
|
95
|
-
//# sourceMappingURL=kirbydesign-designsystem-accordion.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, ElementRef, Component, ChangeDetectionStrategy, Optional, Inject, Input,
|
|
3
|
+
import { InjectionToken, ElementRef, Component, ChangeDetectionStrategy, Optional, Inject, Input, ContentChildren, ViewChild, HostBinding } from '@angular/core';
|
|
4
4
|
import { ButtonComponent } from '@kirbydesign/designsystem/button';
|
|
5
5
|
import * as i1 from '@kirbydesign/designsystem/dropdown';
|
|
6
6
|
import { DropdownComponent, DropdownModule } from '@kirbydesign/designsystem/dropdown';
|
|
@@ -10,10 +10,12 @@ class ActionGroupComponent {
|
|
|
10
10
|
constructor(renderer, config) {
|
|
11
11
|
this.renderer = renderer;
|
|
12
12
|
this.config = config;
|
|
13
|
-
this.
|
|
13
|
+
this.align = 'end';
|
|
14
14
|
this._collapsedActions = [];
|
|
15
15
|
this._isResizeable = false;
|
|
16
|
-
|
|
16
|
+
}
|
|
17
|
+
get _align() {
|
|
18
|
+
return 'align-' + this.align;
|
|
17
19
|
}
|
|
18
20
|
ngAfterContentInit() {
|
|
19
21
|
if (this.config) {
|
|
@@ -27,22 +29,19 @@ class ActionGroupComponent {
|
|
|
27
29
|
this.initializeCollapsing();
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
|
|
31
|
-
const selectedIndex = this.dropdown.selectedIndex;
|
|
32
|
-
const selectedAction = this.hiddenButtons[selectedIndex];
|
|
32
|
+
onActionSelect(action) {
|
|
33
33
|
// Dropdown should not persist selected item, we want it to be re-selectable
|
|
34
34
|
this.dropdown.selectedIndex = -1;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
selectedAction.dispatchEvent(event);
|
|
42
|
-
}
|
|
35
|
+
const event = new PointerEvent('click', {
|
|
36
|
+
bubbles: true,
|
|
37
|
+
cancelable: true,
|
|
38
|
+
view: window,
|
|
39
|
+
});
|
|
40
|
+
action.button.dispatchEvent(event);
|
|
43
41
|
}
|
|
44
42
|
initializeCollapsing() {
|
|
45
|
-
|
|
43
|
+
const collapseThreshold = 2;
|
|
44
|
+
if (this.buttonElements.length <= collapseThreshold)
|
|
46
45
|
return;
|
|
47
46
|
this.moveButtons();
|
|
48
47
|
this.populateDropdown();
|
|
@@ -59,21 +58,18 @@ class ActionGroupComponent {
|
|
|
59
58
|
this._isCollapsed = hasHiddenButtons;
|
|
60
59
|
}
|
|
61
60
|
populateDropdown() {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*/
|
|
68
|
-
this.hiddenButtons = Array.from(this.hiddenLayer.nativeElement.children);
|
|
69
|
-
this._collapsedActions = this.hiddenButtons.map((button) => button.textContent.trim());
|
|
61
|
+
const hiddenButtons = Array.from(this.hiddenLayer.nativeElement.children);
|
|
62
|
+
this._collapsedActions = hiddenButtons.map((button) => ({
|
|
63
|
+
button,
|
|
64
|
+
text: button.textContent.trim(),
|
|
65
|
+
}));
|
|
70
66
|
}
|
|
71
67
|
}
|
|
72
68
|
/** @nocollapse */ ActionGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ActionGroupComponent, deps: [{ token: i0.Renderer2 }, { token: ACTIONGROUP_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
/** @nocollapse */ ActionGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ActionGroupComponent, isStandalone: true, selector: "kirby-action-group", inputs: { visibleActions: "visibleActions", emphasizeActions: "emphasizeActions",
|
|
69
|
+
/** @nocollapse */ ActionGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ActionGroupComponent, isStandalone: true, selector: "kirby-action-group", inputs: { visibleActions: "visibleActions", emphasizeActions: "emphasizeActions", align: "align" }, host: { properties: { "class.is-collapsed": "this._isCollapsed", "class.is-resizeable": "this._isResizeable", "class": "this._align" } }, queries: [{ propertyName: "buttonElements", predicate: ButtonComponent, read: ElementRef }, { propertyName: "buttons", predicate: ButtonComponent }], viewQueries: [{ propertyName: "hiddenLayer", first: true, predicate: ["hiddenLayer"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropdown", first: true, predicate: DropdownComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"button[kirby-button]\"></ng-content>\n\n<kirby-dropdown\n [items]=\"_collapsedActions\"\n [usePopover]=\"true\"\n [_isMoreMenu]=\"true\"\n popout=\"left\"\n (change)=\"onActionSelect($event)\"\n></kirby-dropdown>\n\n<div class=\"hidden-layer\" #hiddenLayer></div>\n", styles: [":host{display:flex;position:relative;overflow:hidden}:host(.align-end){justify-content:flex-end}:host(.align-end) .hidden-layer{order:-1}.hidden-layer{display:none;visibility:hidden}:host(.is-resizeable) .hidden-layer{display:flex;flex-direction:row;justify-content:flex-end}kirby-dropdown{margin:4px;display:none;z-index:1}:host(.is-collapsed) kirby-dropdown{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i1.DropdownComponent, selector: "kirby-dropdown", inputs: ["items", "selectedIndex", "focusedIndex", "itemTextProperty", "placeholder", "popout", "attentionLevel", "expand", "disabled", "hasError", "size", "tabindex", "usePopover", "_isMoreMenu"], outputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
74
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ActionGroupComponent, decorators: [{
|
|
75
71
|
type: Component,
|
|
76
|
-
args: [{ selector: 'kirby-action-group', standalone: true, imports: [CommonModule, ButtonComponent, DropdownModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"button[kirby-button]\"></ng-content>\n\n<kirby-dropdown\n [items]=\"_collapsedActions\"\n [usePopover]=\"true\"\n [_isMoreMenu]=\"true\"\n popout=\"left\"\n (change)=\"
|
|
72
|
+
args: [{ selector: 'kirby-action-group', standalone: true, imports: [CommonModule, ButtonComponent, DropdownModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"button[kirby-button]\"></ng-content>\n\n<kirby-dropdown\n [items]=\"_collapsedActions\"\n [usePopover]=\"true\"\n [_isMoreMenu]=\"true\"\n popout=\"left\"\n (change)=\"onActionSelect($event)\"\n></kirby-dropdown>\n\n<div class=\"hidden-layer\" #hiddenLayer></div>\n", styles: [":host{display:flex;position:relative;overflow:hidden}:host(.align-end){justify-content:flex-end}:host(.align-end) .hidden-layer{order:-1}.hidden-layer{display:none;visibility:hidden}:host(.is-resizeable) .hidden-layer{display:flex;flex-direction:row;justify-content:flex-end}kirby-dropdown{margin:4px;display:none;z-index:1}:host(.is-collapsed) kirby-dropdown{display:inline-block}\n"] }]
|
|
77
73
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
78
74
|
type: Optional
|
|
79
75
|
}, {
|
|
@@ -83,10 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
83
79
|
type: Input
|
|
84
80
|
}], emphasizeActions: [{
|
|
85
81
|
type: Input
|
|
86
|
-
}],
|
|
87
|
-
type: HostBinding,
|
|
88
|
-
args: ['class']
|
|
89
|
-
}, {
|
|
82
|
+
}], align: [{
|
|
90
83
|
type: Input
|
|
91
84
|
}], buttonElements: [{
|
|
92
85
|
type: ContentChildren,
|
|
@@ -106,6 +99,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
106
99
|
}], _isResizeable: [{
|
|
107
100
|
type: HostBinding,
|
|
108
101
|
args: ['class.is-resizeable']
|
|
102
|
+
}], _align: [{
|
|
103
|
+
type: HostBinding,
|
|
104
|
+
args: ['class']
|
|
109
105
|
}] } });
|
|
110
106
|
|
|
111
107
|
/**
|
|
@@ -114,4 +110,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
114
110
|
|
|
115
111
|
export { ACTIONGROUP_CONFIG, ActionGroupComponent };
|
|
116
112
|
//# sourceMappingURL=kirbydesign-designsystem-action-group.mjs.map
|
|
117
|
-
//# sourceMappingURL=kirbydesign-designsystem-action-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kirbydesign-designsystem-action-group.mjs","sources":["../../../../libs/designsystem/action-group/src/action-group.component.ts","../../../../libs/designsystem/action-group/src/action-group.component.html","../../../../libs/designsystem/action-group/src/kirbydesign-designsystem-action-group.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n HostBinding,\n Inject,\n InjectionToken,\n Input,\n Optional,\n QueryList,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@kirbydesign/designsystem/button';\nimport { DropdownComponent, DropdownModule } from '@kirbydesign/designsystem/dropdown';\n\nexport type ActionGroupConfig = {\n isResizable?: boolean;\n isCondensed?: boolean;\n visibleActions?: number;\n};\nexport const ACTIONGROUP_CONFIG = new InjectionToken<ActionGroupConfig>('action-group.config');\n\n@Component({\n selector: 'kirby-action-group',\n standalone: true,\n imports: [CommonModule, ButtonComponent, DropdownModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './action-group.component.html',\n styleUrls: ['./action-group.component.scss'],\n})\nexport class ActionGroupComponent implements AfterContentInit {\n @Input() visibleActions?: number;\n\n @Input() emphasizeActions?: boolean;\n\n @
|
|
1
|
+
{"version":3,"file":"kirbydesign-designsystem-action-group.mjs","sources":["../../../../libs/designsystem/action-group/src/action-group.component.ts","../../../../libs/designsystem/action-group/src/action-group.component.html","../../../../libs/designsystem/action-group/src/kirbydesign-designsystem-action-group.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n HostBinding,\n Inject,\n InjectionToken,\n Input,\n Optional,\n QueryList,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@kirbydesign/designsystem/button';\nimport { DropdownComponent, DropdownModule } from '@kirbydesign/designsystem/dropdown';\n\nexport type ActionGroupConfig = {\n isResizable?: boolean;\n isCondensed?: boolean;\n visibleActions?: number;\n};\nexport const ACTIONGROUP_CONFIG = new InjectionToken<ActionGroupConfig>('action-group.config');\n\ntype CollapsedAction = { button: HTMLButtonElement; text: string };\n\n@Component({\n selector: 'kirby-action-group',\n standalone: true,\n imports: [CommonModule, ButtonComponent, DropdownModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './action-group.component.html',\n styleUrls: ['./action-group.component.scss'],\n})\nexport class ActionGroupComponent implements AfterContentInit {\n @Input() visibleActions?: number;\n\n @Input() emphasizeActions?: boolean;\n\n @Input()\n align: 'start' | 'end' = 'end';\n\n @ContentChildren(ButtonComponent, { read: ElementRef }) private buttonElements?: QueryList<\n ElementRef<HTMLButtonElement>\n >;\n @ContentChildren(ButtonComponent) private buttons?: QueryList<ButtonComponent>;\n @ViewChild('hiddenLayer', { read: ElementRef, static: true })\n private hiddenLayer!: ElementRef<HTMLElement>;\n /*\n * TEMPORARY MORE-MENU\n * dropdown ViewChild is only used for temporary more-menu\n */\n @ViewChild(DropdownComponent) private dropdown!: DropdownComponent;\n\n @HostBinding('class.is-collapsed')\n _isCollapsed: boolean;\n _collapsedActions: CollapsedAction[] = [];\n\n @HostBinding('class.is-resizeable')\n _isResizeable = false;\n\n @HostBinding('class')\n get _align() {\n return 'align-' + this.align;\n }\n\n constructor(\n private renderer: Renderer2,\n @Optional() @Inject(ACTIONGROUP_CONFIG) private config: ActionGroupConfig\n ) {}\n\n ngAfterContentInit(): void {\n if (this.config) {\n this._isResizeable = this.config.isResizable;\n this.visibleActions = this.config.visibleActions;\n if (this.config.isCondensed) {\n this.buttons?.forEach((button) => (button.showIconOnly = true));\n }\n }\n\n if (this.visibleActions) {\n this.initializeCollapsing();\n }\n }\n\n onActionSelect(action: CollapsedAction) {\n // Dropdown should not persist selected item, we want it to be re-selectable\n this.dropdown.selectedIndex = -1;\n\n const event = new PointerEvent('click', {\n bubbles: true,\n cancelable: true,\n view: window,\n });\n\n action.button.dispatchEvent(event);\n }\n\n private initializeCollapsing() {\n const collapseThreshold = 2;\n if (this.buttonElements.length <= collapseThreshold) return;\n\n this.moveButtons();\n this.populateDropdown();\n this.toggleDropdown();\n }\n\n private moveButtons() {\n const buttonsToHide = [...this.buttonElements].slice(this.visibleActions);\n buttonsToHide.forEach((button) => {\n this.renderer.appendChild(this.hiddenLayer.nativeElement, button.nativeElement);\n });\n }\n\n private toggleDropdown() {\n const hasHiddenButtons = this.hiddenLayer.nativeElement.childElementCount > 0;\n this._isCollapsed = hasHiddenButtons;\n }\n\n private populateDropdown() {\n const hiddenButtons = Array.from(\n this.hiddenLayer.nativeElement.children\n ) as HTMLButtonElement[];\n\n this._collapsedActions = hiddenButtons.map((button) => ({\n button,\n text: button.textContent.trim(),\n }));\n }\n}\n","<ng-content select=\"button[kirby-button]\"></ng-content>\n\n<kirby-dropdown\n [items]=\"_collapsedActions\"\n [usePopover]=\"true\"\n [_isMoreMenu]=\"true\"\n popout=\"left\"\n (change)=\"onActionSelect($event)\"\n></kirby-dropdown>\n\n<div class=\"hidden-layer\" #hiddenLayer></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAwBa,kBAAkB,GAAG,IAAI,cAAc,CAAoB,qBAAqB,EAAE;MAYlF,oBAAoB,CAAA;IAgC/B,WACU,CAAA,QAAmB,EACqB,MAAyB,EAAA;QADjE,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QACqB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAmB;QA5B3E,IAAK,CAAA,KAAA,GAAoB,KAAK,CAAC;QAgB/B,IAAiB,CAAA,iBAAA,GAAsB,EAAE,CAAC;QAG1C,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;KAUlB;AARJ,IAAA,IACI,MAAM,GAAA;AACR,QAAA,OAAO,QAAQ,GAAG,IAAI,CAAC,KAAK,CAA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CAAA,EAAA,QAAA,EAAA,oBAAoB,EAClB,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,YAAY,EAAE,eAAe,EAAE,cAAc,CAAC,EACvC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qSAAA,EAAA,MAAA,EAAA,CAAA,iYAAA,CAAA,EAAA,CAAA;;0BAsC5C,QAAQ;;0BAAI,MAAM;2BAAC,kBAAkB,CAAA;4CAjC/B,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBAEG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBAGN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAG0D,cAAc,EAAA,CAAA;sBAA7E,eAAe;AAAC,gBAAA,IAAA,EAAA,CAAA,eAAe,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;gBAGZ,OAAO,EAAA,CAAA;sBAAhD,eAAe;uBAAC,eAAe,CAAA;gBAExB,WAAW,EAAA,CAAA;sBADlB,SAAS;uBAAC,aAAa,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;gBAMtB,QAAQ,EAAA,CAAA;sBAA7C,SAAS;uBAAC,iBAAiB,CAAA;gBAG5B,YAAY,EAAA,CAAA;sBADX,WAAW;uBAAC,oBAAoB,CAAA;gBAKjC,aAAa,EAAA,CAAA;sBADZ,WAAW;uBAAC,qBAAqB,CAAA;gBAI9B,MAAM,EAAA,CAAA;sBADT,WAAW;uBAAC,OAAO,CAAA;;;AE/DtB;;AAEG;;;;"}
|
|
@@ -155,4 +155,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
155
155
|
|
|
156
156
|
export { AlertExperimentalComponent, AlertExperimentalController, AlertExperimentalModule };
|
|
157
157
|
//# sourceMappingURL=kirbydesign-designsystem-alert-experimental.mjs.map
|
|
158
|
-
//# sourceMappingURL=kirbydesign-designsystem-alert-experimental.mjs.map
|
|
@@ -220,4 +220,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
220
220
|
|
|
221
221
|
export { CardAsButtonDirective, CardComponent, CardFooterComponent, CardHeaderComponent, CardModule };
|
|
222
222
|
//# sourceMappingURL=kirbydesign-designsystem-card.mjs.map
|
|
223
|
-
//# sourceMappingURL=kirbydesign-designsystem-card.mjs.map
|
|
@@ -1524,4 +1524,3 @@ const getChartStockShortDateTime = (dateInMiliseconds, locale) => {
|
|
|
1524
1524
|
|
|
1525
1525
|
export { BarChartConfig, BaseChartComponent, ChartComponent, ChartConfigService, ChartJSService, ChartsModule, StockChartComponent, StockChartConfig, TEST_CHART_ANNOTATIONS_CONFIG, TEST_CHART_TYPES_CONFIG, isNumberArray };
|
|
1526
1526
|
//# sourceMappingURL=kirbydesign-designsystem-chart.mjs.map
|
|
1527
|
-
//# sourceMappingURL=kirbydesign-designsystem-chart.mjs.map
|
|
@@ -70,4 +70,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
70
70
|
|
|
71
71
|
export { DataTableModule, TableComponent, TableRowComponent };
|
|
72
72
|
//# sourceMappingURL=kirbydesign-designsystem-data-table.mjs.map
|
|
73
|
-
//# sourceMappingURL=kirbydesign-designsystem-data-table.mjs.map
|
|
@@ -707,4 +707,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
707
707
|
|
|
708
708
|
export { DropdownComponent, DropdownModule, KeyboardHandlerService, OpenState, VerticalDirection };
|
|
709
709
|
//# sourceMappingURL=kirbydesign-designsystem-dropdown.mjs.map
|
|
710
|
-
//# sourceMappingURL=kirbydesign-designsystem-dropdown.mjs.map
|
|
@@ -69,4 +69,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
69
69
|
|
|
70
70
|
export { EmptyStateComponent, EmptyStateModule };
|
|
71
71
|
//# sourceMappingURL=kirbydesign-designsystem-empty-state.mjs.map
|
|
72
|
-
//# sourceMappingURL=kirbydesign-designsystem-empty-state.mjs.map
|
|
@@ -571,4 +571,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
571
571
|
|
|
572
572
|
export { AffixDirective, DateInputDirective, DecimalMaskDirective, FormFieldComponent, FormFieldMessageComponent, FormFieldModule, InputComponent, InputCounterComponent, InputSize, TextareaComponent };
|
|
573
573
|
//# sourceMappingURL=kirbydesign-designsystem-form-field.mjs.map
|
|
574
|
-
//# sourceMappingURL=kirbydesign-designsystem-form-field.mjs.map
|
|
@@ -135,4 +135,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
135
135
|
|
|
136
136
|
export { BreakpointHelperService, GridCardConfiguration, GridComponent };
|
|
137
137
|
//# sourceMappingURL=kirbydesign-designsystem-grid.mjs.map
|
|
138
|
-
//# sourceMappingURL=kirbydesign-designsystem-grid.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Directive, Injector, TemplateRef, ElementRef, Component, ChangeDetectionStrategy, HostBinding, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import { ACTIONGROUP_CONFIG } from '@kirbydesign/designsystem/action-group';
|
|
4
4
|
import { AvatarComponent } from '@kirbydesign/designsystem/avatar';
|
|
5
5
|
import { FlagComponent } from '@kirbydesign/designsystem/flag';
|
|
@@ -8,7 +8,6 @@ import { CommonModule } from '@angular/common';
|
|
|
8
8
|
import * as i2 from '@kirbydesign/designsystem/shared';
|
|
9
9
|
import { FitHeadingDirective } from '@kirbydesign/designsystem/shared';
|
|
10
10
|
|
|
11
|
-
const HEADER_CONFIG = new InjectionToken('header.config');
|
|
12
11
|
class HeaderActionsDirective {
|
|
13
12
|
}
|
|
14
13
|
/** @nocollapse */ HeaderActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -30,9 +29,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
30
29
|
}]
|
|
31
30
|
}] });
|
|
32
31
|
class HeaderComponent {
|
|
33
|
-
constructor(injector
|
|
32
|
+
constructor(injector) {
|
|
34
33
|
this.injector = injector;
|
|
35
|
-
this.config = config;
|
|
36
34
|
this.emphasizeActions = false;
|
|
37
35
|
this.title = null;
|
|
38
36
|
this.value = null;
|
|
@@ -41,11 +39,6 @@ class HeaderComponent {
|
|
|
41
39
|
this.subtitle2 = null;
|
|
42
40
|
}
|
|
43
41
|
ngOnInit() {
|
|
44
|
-
if (this.config) {
|
|
45
|
-
this.fitHeadingConfig = {
|
|
46
|
-
maxLines: this.config.titleMaxLines,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
42
|
this.actionGroupConfig = {
|
|
50
43
|
isResizable: this.emphasizeActions,
|
|
51
44
|
visibleActions: this.emphasizeActions ? undefined : 1,
|
|
@@ -59,6 +52,11 @@ class HeaderComponent {
|
|
|
59
52
|
],
|
|
60
53
|
parent: this.injector,
|
|
61
54
|
});
|
|
55
|
+
if (this.titleMaxLines > 0) {
|
|
56
|
+
this.fitHeadingConfig = {
|
|
57
|
+
maxLines: this.titleMaxLines,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
62
60
|
}
|
|
63
61
|
ngAfterContentInit() {
|
|
64
62
|
// If an avatar is present we default to centered layout - unless configured otherwise:
|
|
@@ -69,25 +67,13 @@ class HeaderComponent {
|
|
|
69
67
|
this.actionGroupConfig.isCondensed = true;
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
|
-
ngOnChanges(changes) {
|
|
73
|
-
if (changes.titleMaxLines) {
|
|
74
|
-
this.fitHeadingConfig = {
|
|
75
|
-
maxLines: changes.titleMaxLines.currentValue,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
70
|
}
|
|
80
|
-
/** @nocollapse */ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderComponent, deps: [{ token: i0.Injector }
|
|
81
|
-
/** @nocollapse */ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: HeaderComponent, selector: "kirby-header", inputs: { centered: "centered", titleMaxLines: "titleMaxLines", emphasizeActions: "emphasizeActions", title: "title", value: "value", valueUnit: "valueUnit", subtitle1: "subtitle1", subtitle2: "subtitle2" }, host: { properties: { "class.centered": "this.centered" } }, queries: [{ propertyName: "avatar", first: true, predicate: AvatarComponent, descendants: true }, { propertyName: "flag", first: true, predicate: FlagComponent, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: HeaderActionsDirective, descendants: true, read: (TemplateRef) }, { propertyName: "customSectionTemplate", first: true, predicate: HeaderCustomSectionDirective, descendants: true, read: (TemplateRef) }], viewQueries: [{ propertyName: "titleElement", first: true, predicate: ["titleElement"], descendants: true, read: ElementRef }, { propertyName: "actionsElement", first: true, predicate: ["actionsElement"], descendants: true, read: ElementRef }],
|
|
71
|
+
/** @nocollapse */ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
+
/** @nocollapse */ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: HeaderComponent, selector: "kirby-header", inputs: { centered: "centered", titleMaxLines: "titleMaxLines", emphasizeActions: "emphasizeActions", title: "title", value: "value", valueUnit: "valueUnit", subtitle1: "subtitle1", subtitle2: "subtitle2" }, host: { properties: { "class.centered": "this.centered" } }, queries: [{ propertyName: "avatar", first: true, predicate: AvatarComponent, descendants: true }, { propertyName: "flag", first: true, predicate: FlagComponent, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: HeaderActionsDirective, descendants: true, read: (TemplateRef) }, { propertyName: "customSectionTemplate", first: true, predicate: HeaderCustomSectionDirective, descendants: true, read: (TemplateRef) }], viewQueries: [{ propertyName: "titleElement", first: true, predicate: ["titleElement"], descendants: true, read: ElementRef }, { propertyName: "actionsElement", first: true, predicate: ["actionsElement"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div *ngIf=\"!!avatar\" class=\"avatar\">\n <ng-content select=\"kirby-avatar\"></ng-content>\n</div>\n\n<div *ngIf=\"!!flag\" class=\"flag\">\n <ng-content select=\"kirby-flag\"></ng-content>\n</div>\n\n<div class=\"container\">\n <div class=\"title-container\">\n <!-- Only title, no value: -->\n <h1 *ngIf=\"!!title && !value\" #titleElement class=\"title\" [kirbyFitHeading]=\"fitHeadingConfig\">\n {{ title }}\n </h1>\n \n <!-- Title and value: -->\n <h1 *ngIf=\"!!title && !!value\" #titleElement class=\"title kirby-text-medium\">\n {{ title }}\n </h1>\n <h3 *ngIf=\"!!value\" class=\"value kirby-text-display-3\" [kirbyFitHeading]=\"fitHeadingConfig\">{{ value }}<span class=\"value-unit semi-dark-text\" *ngIf=\"!!valueUnit\">{{ valueUnit }}</span></h3>\n \n <!-- Subtitles: -->\n <div *ngIf=\"!!subtitle1\" class=\"subtitle1 kirby-text-small\">\n {{ subtitle1 }}\n </div>\n <div *ngIf=\"!!subtitle2\" class=\"subtitle2 kirby-text-small\">\n {{ subtitle2 }}\n </div>\n\n <!-- Custom section -->\n <div\n *ngIf=\"!!customSectionTemplate\"\n class=\"custom-section\"\n >\n <ng-container *ngTemplateOutlet=\"customSectionTemplate\"></ng-container>\n </div>\n </div>\n \n <!-- Actions: -->\n <div\n *ngIf=\"!!actionsTemplate\"\n #actionsElement\n class=\"actions\"\n [class.emphasize]=\"emphasizeActions\"\n >\n <!-- HACK: Render hidden title so actions get pushed down to align with value heading: --> \n <h1 *ngIf=\"!!title && !!value\" class=\"title hidden kirby-text-medium\" aria-hidden=\"true\">\n {{ title }}\n </h1>\n <ng-container *ngTemplateOutlet=\"actionsTemplate; injector: _actionGroupInjector\"></ng-container>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column;margin-top:16px;margin-bottom:32px}@media (min-width: 721px){:host{margin-top:24px}}.container{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;overflow:hidden}@media (min-width: 721px){.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px}}:host(.centered){align-items:center}:host(.centered) .title-container{align-items:center;text-align:center}@media (min-width: 721px){:host(.centered) .container{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-self:stretch}:host(.centered) .title-container{grid-column-start:2}}.actions{margin:0 4px}@media (max-width: 720px){.actions{margin-top:24px}.actions:not(.emphasize){display:none}}.avatar,.flag,.title-container{padding:0 16px}.title-container{display:flex;flex-direction:column;overflow:hidden}.avatar{margin-bottom:16px}.flag{margin-bottom:4px}.title{margin-bottom:2px}.title.hidden{visibility:hidden;white-space:nowrap;max-width:100%;overflow:hidden}@media (max-width: 720px){.title.hidden{display:none}}.value{max-width:100%;margin-bottom:4px}.value-unit{font-weight:initial;color:var(--kirby-text-color-semi-dark);margin-left:4px;font-size:50%}.subtitle1,.subtitle2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.custom-section{margin-top:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.FitHeadingDirective, selector: "h1[kirbyFitHeading],h2[kirbyFitHeading],h3[kirbyFitHeading]", inputs: ["kirbyFitHeading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
82
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
83
74
|
type: Component,
|
|
84
|
-
args: [{ selector: 'kirby-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"!!avatar\" class=\"avatar\">\n <ng-content select=\"kirby-avatar\"></ng-content>\n</div>\n\n<div *ngIf=\"!!flag\" class=\"flag\">\n <ng-content select=\"kirby-flag\"></ng-content>\n</div>\n\n<div class=\"container\">\n <div class=\"title-container\">\n <!-- Only title, no value: -->\n <h1 *ngIf=\"!!title && !value\" #titleElement class=\"title\" [kirbyFitHeading]=\"fitHeadingConfig\">\n {{ title }}\n </h1>\n \n <!-- Title and value: -->\n <h1 *ngIf=\"!!title && !!value\" #titleElement class=\"title kirby-text-medium\">\n {{ title }}\n </h1>\n <h3 *ngIf=\"!!value\" class=\"value kirby-text-display-3\" [kirbyFitHeading]=\"fitHeadingConfig\">{{ value }}<span class=\"value-unit semi-dark-text\" *ngIf=\"!!valueUnit\">{{ valueUnit }}</span></h3>\n \n <!-- Subtitles: -->\n <div *ngIf=\"!!subtitle1\" class=\"subtitle1 kirby-text-small\">\n {{ subtitle1 }}\n </div>\n <div *ngIf=\"!!subtitle2\" class=\"subtitle2 kirby-text-small\">\n {{ subtitle2 }}\n </div>\n\n <!-- Custom section -->\n <div\n *ngIf=\"!!customSectionTemplate\"\n class=\"custom-section\"\n >\n <ng-container *ngTemplateOutlet=\"customSectionTemplate\"></ng-container>\n </div>\n </div>\n \n <!-- Actions: -->\n <div\n *ngIf=\"!!actionsTemplate\"\n #actionsElement\n class=\"actions\"\n [class.emphasize]=\"emphasizeActions\"\n >\n <!-- HACK: Render hidden title so actions get pushed down to align with value heading: --> \n <h1 *ngIf=\"!!title && !!value\" class=\"title hidden kirby-text-medium\" aria-hidden=\"true\">\n {{ title }}\n </h1>\n <ng-container *ngTemplateOutlet=\"actionsTemplate; injector: _actionGroupInjector\"></ng-container>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column;margin-top:16px;margin-bottom:32px}@media (min-width: 721px){:host{margin-top:24px}}.container{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;overflow:hidden}@media (min-width: 721px){.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px}}:host(.centered){align-items:center}:host(.centered) .title-container{align-items:center;text-align:center}@media (min-width: 721px){:host(.centered) .container{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-self:stretch}:host(.centered) .title-container{grid-column-start:2}}.actions{margin:0 4px}@media (max-width: 720px){.actions{margin-top:24px}.actions:not(.emphasize){display:none}}.avatar,.flag,.title-container{padding:0 16px}.title-container{display:flex;flex-direction:column;overflow:hidden}.avatar{margin-bottom:16px}.flag{margin-bottom:4px}.title{margin-bottom:2px}.title.hidden{visibility:hidden;white-space:nowrap;max-width:100%;overflow:hidden}@media (max-width: 720px){.title.hidden{display:none}}.value{max-width:100%;margin-bottom:4px}.value-unit{font-weight:initial;color:var(--kirby-text-color-semi-dark);margin-left:4px;font-size:50
|
|
85
|
-
}], ctorParameters: function () { return [{ type: i0.Injector },
|
|
86
|
-
type: Optional
|
|
87
|
-
}, {
|
|
88
|
-
type: Inject,
|
|
89
|
-
args: [HEADER_CONFIG]
|
|
90
|
-
}] }]; }, propDecorators: { centered: [{
|
|
75
|
+
args: [{ selector: 'kirby-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"!!avatar\" class=\"avatar\">\n <ng-content select=\"kirby-avatar\"></ng-content>\n</div>\n\n<div *ngIf=\"!!flag\" class=\"flag\">\n <ng-content select=\"kirby-flag\"></ng-content>\n</div>\n\n<div class=\"container\">\n <div class=\"title-container\">\n <!-- Only title, no value: -->\n <h1 *ngIf=\"!!title && !value\" #titleElement class=\"title\" [kirbyFitHeading]=\"fitHeadingConfig\">\n {{ title }}\n </h1>\n \n <!-- Title and value: -->\n <h1 *ngIf=\"!!title && !!value\" #titleElement class=\"title kirby-text-medium\">\n {{ title }}\n </h1>\n <h3 *ngIf=\"!!value\" class=\"value kirby-text-display-3\" [kirbyFitHeading]=\"fitHeadingConfig\">{{ value }}<span class=\"value-unit semi-dark-text\" *ngIf=\"!!valueUnit\">{{ valueUnit }}</span></h3>\n \n <!-- Subtitles: -->\n <div *ngIf=\"!!subtitle1\" class=\"subtitle1 kirby-text-small\">\n {{ subtitle1 }}\n </div>\n <div *ngIf=\"!!subtitle2\" class=\"subtitle2 kirby-text-small\">\n {{ subtitle2 }}\n </div>\n\n <!-- Custom section -->\n <div\n *ngIf=\"!!customSectionTemplate\"\n class=\"custom-section\"\n >\n <ng-container *ngTemplateOutlet=\"customSectionTemplate\"></ng-container>\n </div>\n </div>\n \n <!-- Actions: -->\n <div\n *ngIf=\"!!actionsTemplate\"\n #actionsElement\n class=\"actions\"\n [class.emphasize]=\"emphasizeActions\"\n >\n <!-- HACK: Render hidden title so actions get pushed down to align with value heading: --> \n <h1 *ngIf=\"!!title && !!value\" class=\"title hidden kirby-text-medium\" aria-hidden=\"true\">\n {{ title }}\n </h1>\n <ng-container *ngTemplateOutlet=\"actionsTemplate; injector: _actionGroupInjector\"></ng-container>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column;margin-top:16px;margin-bottom:32px}@media (min-width: 721px){:host{margin-top:24px}}.container{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;overflow:hidden}@media (min-width: 721px){.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px}}:host(.centered){align-items:center}:host(.centered) .title-container{align-items:center;text-align:center}@media (min-width: 721px){:host(.centered) .container{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-self:stretch}:host(.centered) .title-container{grid-column-start:2}}.actions{margin:0 4px}@media (max-width: 720px){.actions{margin-top:24px}.actions:not(.emphasize){display:none}}.avatar,.flag,.title-container{padding:0 16px}.title-container{display:flex;flex-direction:column;overflow:hidden}.avatar{margin-bottom:16px}.flag{margin-bottom:4px}.title{margin-bottom:2px}.title.hidden{visibility:hidden;white-space:nowrap;max-width:100%;overflow:hidden}@media (max-width: 720px){.title.hidden{display:none}}.value{max-width:100%;margin-bottom:4px}.value-unit{font-weight:initial;color:var(--kirby-text-color-semi-dark);margin-left:4px;font-size:50%}.subtitle1,.subtitle2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.custom-section{margin-top:8px}\n"] }]
|
|
76
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { centered: [{
|
|
91
77
|
type: HostBinding,
|
|
92
78
|
args: ['class.centered']
|
|
93
79
|
}, {
|
|
@@ -145,6 +131,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
145
131
|
* Generated bundle index. Do not edit.
|
|
146
132
|
*/
|
|
147
133
|
|
|
148
|
-
export {
|
|
149
|
-
//# sourceMappingURL=kirbydesign-designsystem-header.mjs.map
|
|
134
|
+
export { HeaderActionsDirective, HeaderComponent, HeaderCustomSectionDirective, HeaderModule };
|
|
150
135
|
//# sourceMappingURL=kirbydesign-designsystem-header.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kirbydesign-designsystem-header.mjs","sources":["../../../../libs/designsystem/header/src/header.component.ts","../../../../libs/designsystem/header/src/header.component.html","../../../../libs/designsystem/header/src/header.module.ts","../../../../libs/designsystem/header/src/kirbydesign-designsystem-header.ts"],"sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n InjectionToken,\n Injector,\n Input,\n OnChanges,\n OnInit,\n Optional,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport { ACTIONGROUP_CONFIG, ActionGroupConfig } from '@kirbydesign/designsystem/action-group';\nimport { AvatarComponent } from '@kirbydesign/designsystem/avatar';\nimport { FlagComponent } from '@kirbydesign/designsystem/flag';\nimport type { FitHeadingConfig } from '@kirbydesign/designsystem/shared';\n\nexport type HeaderConfig = { titleMaxLines?: number };\nexport const HEADER_CONFIG = new InjectionToken<HeaderConfig>('header.config');\n\n@Directive({\n selector: '[kirbyHeaderActions]',\n})\nexport class HeaderActionsDirective {}\n\n@Directive({\n selector: '[kirbyHeaderCustomSection]',\n})\nexport class HeaderCustomSectionDirective {}\n\n@Component({\n selector: 'kirby-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HeaderComponent implements AfterContentInit, OnChanges, OnInit {\n @HostBinding('class.centered')\n @Input()\n centered: boolean;\n\n @Input() titleMaxLines: number;\n @Input() emphasizeActions = false;\n\n fitHeadingConfig: FitHeadingConfig;\n\n @ContentChild(AvatarComponent)\n avatar: AvatarComponent;\n\n @ContentChild(FlagComponent)\n flag: FlagComponent;\n\n @ViewChild('titleElement', { read: ElementRef })\n titleElement?: ElementRef<HTMLHeadingElement>;\n\n @ViewChild('actionsElement', { read: ElementRef })\n actionsElement?: ElementRef<HTMLDivElement>;\n\n @ContentChild(HeaderActionsDirective, { read: TemplateRef<HeaderActionsDirective> })\n actionsTemplate?: TemplateRef<HeaderActionsDirective>;\n\n @ContentChild(HeaderCustomSectionDirective, { read: TemplateRef<HeaderCustomSectionDirective> })\n customSectionTemplate?: TemplateRef<HeaderCustomSectionDirective>;\n\n @Input() title: string = null;\n @Input() value: string = null;\n @Input() valueUnit: string = null;\n @Input() subtitle1: string = null;\n @Input() subtitle2: string = null;\n\n _actionGroupInjector: Injector;\n\n private actionGroupConfig: ActionGroupConfig;\n\n constructor(\n private injector: Injector,\n @Optional() @Inject(HEADER_CONFIG) private config?: HeaderConfig\n ) {}\n\n ngOnInit(): void {\n if (this.config) {\n this.fitHeadingConfig = {\n maxLines: this.config.titleMaxLines,\n };\n }\n\n this.actionGroupConfig = {\n isResizable: this.emphasizeActions,\n visibleActions: this.emphasizeActions ? undefined : 1,\n };\n\n this._actionGroupInjector = Injector.create({\n providers: [\n {\n provide: ACTIONGROUP_CONFIG,\n useValue: this.actionGroupConfig,\n },\n ],\n parent: this.injector,\n });\n }\n\n ngAfterContentInit(): void {\n // If an avatar is present we default to centered layout - unless configured otherwise:\n if (this.avatar && this.centered === undefined) {\n this.centered = true;\n }\n\n if (this.centered) {\n this.actionGroupConfig.isCondensed = true;\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.titleMaxLines) {\n this.fitHeadingConfig = {\n maxLines: changes.titleMaxLines.currentValue,\n };\n }\n }\n}\n","<div *ngIf=\"!!avatar\" class=\"avatar\">\n <ng-content select=\"kirby-avatar\"></ng-content>\n</div>\n\n<div *ngIf=\"!!flag\" class=\"flag\">\n <ng-content select=\"kirby-flag\"></ng-content>\n</div>\n\n<div class=\"container\">\n <div class=\"title-container\">\n <!-- Only title, no value: -->\n <h1 *ngIf=\"!!title && !value\" #titleElement class=\"title\" [kirbyFitHeading]=\"fitHeadingConfig\">\n {{ title }}\n </h1>\n \n <!-- Title and value: -->\n <h1 *ngIf=\"!!title && !!value\" #titleElement class=\"title kirby-text-medium\">\n {{ title }}\n </h1>\n <h3 *ngIf=\"!!value\" class=\"value kirby-text-display-3\" [kirbyFitHeading]=\"fitHeadingConfig\">{{ value }}<span class=\"value-unit semi-dark-text\" *ngIf=\"!!valueUnit\">{{ valueUnit }}</span></h3>\n \n <!-- Subtitles: -->\n <div *ngIf=\"!!subtitle1\" class=\"subtitle1 kirby-text-small\">\n {{ subtitle1 }}\n </div>\n <div *ngIf=\"!!subtitle2\" class=\"subtitle2 kirby-text-small\">\n {{ subtitle2 }}\n </div>\n\n <!-- Custom section -->\n <div\n *ngIf=\"!!customSectionTemplate\"\n class=\"custom-section\"\n >\n <ng-container *ngTemplateOutlet=\"customSectionTemplate\"></ng-container>\n </div>\n </div>\n \n <!-- Actions: -->\n <div\n *ngIf=\"!!actionsTemplate\"\n #actionsElement\n class=\"actions\"\n [class.emphasize]=\"emphasizeActions\"\n >\n <!-- HACK: Render hidden title so actions get pushed down to align with value heading: --> \n <h1 *ngIf=\"!!title && !!value\" class=\"title hidden kirby-text-medium\" aria-hidden=\"true\">\n {{ title }}\n </h1>\n <ng-container *ngTemplateOutlet=\"actionsTemplate; injector: _actionGroupInjector\"></ng-container>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FitHeadingDirective } from '@kirbydesign/designsystem/shared';\n\nimport {\n HeaderActionsDirective,\n HeaderComponent,\n HeaderCustomSectionDirective,\n} from './header.component';\n\nconst declarations = [HeaderComponent, HeaderActionsDirective, HeaderCustomSectionDirective];\n\n@NgModule({\n declarations: declarations,\n imports: [CommonModule, FitHeadingDirective],\n exports: declarations,\n})\nexport class HeaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;MAyBa,aAAa,GAAG,IAAI,cAAc,CAAe,eAAe,EAAE;MAKlE,sBAAsB,CAAA;;sIAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;0HAAtB,sBAAsB,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AACjC,iBAAA,CAAA;;MAMY,4BAA4B,CAAA;;4IAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;gIAA5B,4BAA4B,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,C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EAAA,EAAA,IAAA,EAAA,YAAY,EAPH,YAAA,EAAA,CAAA,eAAe,EAAE,sBAAsB,EAAE,4BAA4B,CAAA,EAAA,OAAA,EAAA,CAI/E,YAAY,EAAE,mBAAmB,CAJvB,EAAA,OAAA,EAAA,CAAA,eAAe,EAAE,sBAAsB,EAAE,4BAA4B,CAAA,EAAA,CAAA,CAAA;AAO9E,mBAAA,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHb,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGX,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,YAAY;AAC1B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;AAC5C,oBAAA,OAAO,EAAE,YAAY;AACtB,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"kirbydesign-designsystem-header.mjs","sources":["../../../../libs/designsystem/header/src/header.component.ts","../../../../libs/designsystem/header/src/header.component.html","../../../../libs/designsystem/header/src/header.module.ts","../../../../libs/designsystem/header/src/kirbydesign-designsystem-header.ts"],"sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n Directive,\n ElementRef,\n HostBinding,\n Injector,\n Input,\n OnInit,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport { ACTIONGROUP_CONFIG, ActionGroupConfig } from '@kirbydesign/designsystem/action-group';\nimport { AvatarComponent } from '@kirbydesign/designsystem/avatar';\nimport { FlagComponent } from '@kirbydesign/designsystem/flag';\nimport type { FitHeadingConfig } from '@kirbydesign/designsystem/shared';\n\n@Directive({\n selector: '[kirbyHeaderActions]',\n})\nexport class HeaderActionsDirective {}\n\n@Directive({\n selector: '[kirbyHeaderCustomSection]',\n})\nexport class HeaderCustomSectionDirective {}\n\n@Component({\n selector: 'kirby-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HeaderComponent implements AfterContentInit, OnInit {\n @HostBinding('class.centered')\n @Input()\n centered?: boolean;\n\n @Input() titleMaxLines: number;\n @Input() emphasizeActions = false;\n\n fitHeadingConfig: FitHeadingConfig;\n\n @ContentChild(AvatarComponent)\n avatar: AvatarComponent;\n\n @ContentChild(FlagComponent)\n flag: FlagComponent;\n\n @ViewChild('titleElement', { read: ElementRef })\n titleElement?: ElementRef<HTMLHeadingElement>;\n\n @ViewChild('actionsElement', { read: ElementRef })\n actionsElement?: ElementRef<HTMLDivElement>;\n\n @ContentChild(HeaderActionsDirective, { read: TemplateRef<HeaderActionsDirective> })\n actionsTemplate?: TemplateRef<HeaderActionsDirective>;\n\n @ContentChild(HeaderCustomSectionDirective, { read: TemplateRef<HeaderCustomSectionDirective> })\n customSectionTemplate?: TemplateRef<HeaderCustomSectionDirective>;\n\n @Input() title: string = null;\n @Input() value: string = null;\n @Input() valueUnit: string = null;\n @Input() subtitle1: string = null;\n @Input() subtitle2: string = null;\n\n _actionGroupInjector: Injector;\n\n private actionGroupConfig: ActionGroupConfig;\n\n constructor(private injector: Injector) {}\n\n ngOnInit(): void {\n this.actionGroupConfig = {\n isResizable: this.emphasizeActions,\n visibleActions: this.emphasizeActions ? undefined : 1,\n };\n\n this._actionGroupInjector = Injector.create({\n providers: [\n {\n provide: ACTIONGROUP_CONFIG,\n useValue: this.actionGroupConfig,\n },\n ],\n parent: this.injector,\n });\n\n if (this.titleMaxLines > 0) {\n this.fitHeadingConfig = {\n maxLines: this.titleMaxLines,\n };\n }\n }\n\n ngAfterContentInit(): void {\n // If an avatar is present we default to centered layout - unless configured otherwise:\n if (this.avatar && this.centered === undefined) {\n this.centered = true;\n }\n\n if (this.centered) {\n this.actionGroupConfig.isCondensed = true;\n }\n }\n}\n","<div *ngIf=\"!!avatar\" class=\"avatar\">\n <ng-content select=\"kirby-avatar\"></ng-content>\n</div>\n\n<div *ngIf=\"!!flag\" class=\"flag\">\n <ng-content select=\"kirby-flag\"></ng-content>\n</div>\n\n<div class=\"container\">\n <div class=\"title-container\">\n <!-- Only title, no value: -->\n <h1 *ngIf=\"!!title && !value\" #titleElement class=\"title\" [kirbyFitHeading]=\"fitHeadingConfig\">\n {{ title }}\n </h1>\n \n <!-- Title and value: -->\n <h1 *ngIf=\"!!title && !!value\" #titleElement class=\"title kirby-text-medium\">\n {{ title }}\n </h1>\n <h3 *ngIf=\"!!value\" class=\"value kirby-text-display-3\" [kirbyFitHeading]=\"fitHeadingConfig\">{{ value }}<span class=\"value-unit semi-dark-text\" *ngIf=\"!!valueUnit\">{{ valueUnit }}</span></h3>\n \n <!-- Subtitles: -->\n <div *ngIf=\"!!subtitle1\" class=\"subtitle1 kirby-text-small\">\n {{ subtitle1 }}\n </div>\n <div *ngIf=\"!!subtitle2\" class=\"subtitle2 kirby-text-small\">\n {{ subtitle2 }}\n </div>\n\n <!-- Custom section -->\n <div\n *ngIf=\"!!customSectionTemplate\"\n class=\"custom-section\"\n >\n <ng-container *ngTemplateOutlet=\"customSectionTemplate\"></ng-container>\n </div>\n </div>\n \n <!-- Actions: -->\n <div\n *ngIf=\"!!actionsTemplate\"\n #actionsElement\n class=\"actions\"\n [class.emphasize]=\"emphasizeActions\"\n >\n <!-- HACK: Render hidden title so actions get pushed down to align with value heading: --> \n <h1 *ngIf=\"!!title && !!value\" class=\"title hidden kirby-text-medium\" aria-hidden=\"true\">\n {{ title }}\n </h1>\n <ng-container *ngTemplateOutlet=\"actionsTemplate; injector: _actionGroupInjector\"></ng-container>\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FitHeadingDirective } from '@kirbydesign/designsystem/shared';\n\nimport {\n HeaderActionsDirective,\n HeaderComponent,\n HeaderCustomSectionDirective,\n} from './header.component';\n\nconst declarations = [HeaderComponent, HeaderActionsDirective, HeaderCustomSectionDirective];\n\n@NgModule({\n declarations: declarations,\n imports: [CommonModule, FitHeadingDirective],\n exports: declarations,\n})\nexport class HeaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;MAsBa,sBAAsB,CAAA;;sIAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;0HAAtB,sBAAsB,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AACjC,iBAAA,CAAA;;MAMY,4BAA4B,CAAA;;4IAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;gIAA5B,4BAA4B,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAHxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACvC,iBAAA,CAAA;;MASY,eAAe,CAAA;AAsC1B,IAAA,WAAA,CAAoB,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAhC7B,IAAgB,CAAA,gBAAA,GAAG,KAAK,CAAC;QAsBzB,IAAK,CAAA,KAAA,GAAW,IAAI,CAAC;QACrB,IAAK,CAAA,KAAA,GAAW,IAAI,CAAC;QACrB,IAAS,CAAA,SAAA,GAAW,IAAI,CAAC;QACzB,IAAS,CAAA,SA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BAAjB,KAAK;;;AEzDR,MAAM,YAAY,GAAG,CAAC,eAAe,EAAE,sBAAsB,EAAE,4BAA4B,CAAC,CAAC;MAOhF,YAAY,CAAA;;4HAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAZ,mBAAA,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EAPH,YAAA,EAAA,CAAA,eAAe,EAAE,sBAAsB,EAAE,4BAA4B,CAAA,EAAA,OAAA,EAAA,CAI/E,YAAY,EAAE,mBAAmB,CAJvB,EAAA,OAAA,EAAA,CAAA,eAAe,EAAE,sBAAsB,EAAE,4BAA4B,CAAA,EAAA,CAAA,CAAA;AAO9E,mBAAA,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHb,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGX,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,YAAY;AAC1B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;AAC5C,oBAAA,OAAO,EAAE,YAAY;AACtB,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -221,4 +221,3 @@ var KirbyAnimation;
|
|
|
221
221
|
|
|
222
222
|
export { KirbyAnimation, LineClampHelper, PlatformService, UniqueIdGenerator, chartConfigHasType, deepCopy, elementHasAncestor, mergeDeep, mergeDeepAll };
|
|
223
223
|
//# sourceMappingURL=kirbydesign-designsystem-helpers.mjs.map
|
|
224
|
-
//# sourceMappingURL=kirbydesign-designsystem-helpers.mjs.map
|
|
@@ -223,4 +223,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
223
223
|
|
|
224
224
|
export { IconComponent, IconModule, IconRegistryService, IconSize, defaultIcons, kirbyIconSettings };
|
|
225
225
|
//# sourceMappingURL=kirbydesign-designsystem-icon.mjs.map
|
|
226
|
-
//# sourceMappingURL=kirbydesign-designsystem-icon.mjs.map
|
|
@@ -97,4 +97,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
97
97
|
|
|
98
98
|
export { ItemComponent, ItemModule, ItemSize, LabelComponent };
|
|
99
99
|
//# sourceMappingURL=kirbydesign-designsystem-item.mjs.map
|
|
100
|
-
//# sourceMappingURL=kirbydesign-designsystem-item.mjs.map
|
|
@@ -665,4 +665,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
665
665
|
|
|
666
666
|
export { INFINITE_SCROLL_DEBOUNCE, InfiniteScrollDirective, ListComponent, ListExperimentalComponent, ListFooterDirective, ListHeaderComponent, ListHeaderDirective, ListHelper, ListItemColorDirective, ListItemComponent, ListItemTemplateDirective, ListModule, ListSectionHeaderComponent, ListSectionHeaderDirective };
|
|
667
667
|
//# sourceMappingURL=kirbydesign-designsystem-list.mjs.map
|
|
668
|
-
//# sourceMappingURL=kirbydesign-designsystem-list.mjs.map
|
|
@@ -76,4 +76,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
76
76
|
|
|
77
77
|
export { LoadingOverlayComponent, LoadingOverlayService };
|
|
78
78
|
//# sourceMappingURL=kirbydesign-designsystem-loading-overlay.mjs.map
|
|
79
|
-
//# sourceMappingURL=kirbydesign-designsystem-loading-overlay.mjs.map
|
|
@@ -255,4 +255,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
255
255
|
|
|
256
256
|
export { KirbyModalModule, ModalV2Component, ModalV2Controller, ModalV2FooterComponent, ModalV2RoutingComponent, ModalV2WrapperComponent };
|
|
257
257
|
//# sourceMappingURL=kirbydesign-designsystem-modal-v2.mjs.map
|
|
258
|
-
//# sourceMappingURL=kirbydesign-designsystem-modal-v2.mjs.map
|
|
@@ -1607,4 +1607,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1607
1607
|
|
|
1608
1608
|
export { ActionSheetComponent, ActionSheetHelper, AlertComponent, AlertHelper, COMPONENT_PROPS, DrawerSupplementaryAction, Modal, ModalCompactWrapperComponent, ModalController, ModalElementComponent, ModalElementType, ModalElementsAdvertiser, ModalFooterComponent, ModalHelper, ModalNavigationService, ModalWrapperComponent };
|
|
1609
1609
|
//# sourceMappingURL=kirbydesign-designsystem-modal.mjs.map
|
|
1610
|
-
//# sourceMappingURL=kirbydesign-designsystem-modal.mjs.map
|