@kirbydesign/designsystem 8.2.0 → 8.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/button/button.component.d.ts +2 -1
- package/button/public_api.d.ts +1 -1
- package/dropdown/keyboard-handler.service.d.ts +1 -1
- package/esm2020/button/button.component.mjs +3 -3
- package/esm2020/button/public_api.mjs +2 -2
- package/esm2020/card/card.component.mjs +2 -2
- package/esm2020/dropdown/dropdown.component.mjs +4 -4
- package/esm2020/dropdown/dropdown.module.mjs +1 -1
- package/esm2020/dropdown/keyboard-handler.service.mjs +12 -7
- package/esm2020/item/item.component.mjs +2 -2
- package/esm2020/lib/index.mjs +3 -1
- package/esm2020/lib/kirby.module.mjs +22 -5
- package/esm2020/list/list-item/list-item.component.mjs +2 -2
- package/esm2020/list/list.component.mjs +2 -2
- package/esm2020/menu/kirbydesign-designsystem-menu.mjs +5 -0
- package/esm2020/menu/menu.component.mjs +69 -0
- package/esm2020/menu/public_api.mjs +2 -0
- package/esm2020/modal/modal/footer/modal-footer.component.mjs +3 -3
- package/esm2020/modal/v2/footer/footer.component.mjs +2 -2
- package/esm2020/modal/v2/modal-routing/modal-routing.component.mjs +3 -3
- package/esm2020/page/page-footer/page-footer.component.mjs +2 -2
- package/esm2020/page/page.component.mjs +35 -13
- package/esm2020/page/public_api.mjs +2 -12
- package/esm2020/shared/floating/floating.directive.mjs +91 -24
- package/esm2020/shared/floating/public_api.mjs +2 -2
- package/esm2020/tab-navigation/kirbydesign-designsystem-tab-navigation.mjs +5 -0
- package/esm2020/tab-navigation/public_api.mjs +4 -0
- package/esm2020/tab-navigation/tab-navigation/tab-navigation.component.mjs +121 -0
- package/esm2020/tab-navigation/tab-navigation-item/tab-navigation-item.component.mjs +17 -0
- package/esm2020/tab-navigation/tab-navigation.module.mjs +19 -0
- package/fesm2015/kirbydesign-designsystem-button.mjs +2 -2
- package/fesm2015/kirbydesign-designsystem-button.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-card.mjs +2 -2
- package/fesm2015/kirbydesign-designsystem-card.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-dropdown.mjs +15 -10
- package/fesm2015/kirbydesign-designsystem-dropdown.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-item.mjs +2 -2
- package/fesm2015/kirbydesign-designsystem-item.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-list.mjs +4 -4
- package/fesm2015/kirbydesign-designsystem-list.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-menu.mjs +76 -0
- package/fesm2015/kirbydesign-designsystem-menu.mjs.map +1 -0
- package/fesm2015/kirbydesign-designsystem-modal-v2.mjs +4 -4
- package/fesm2015/kirbydesign-designsystem-modal-v2.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-modal.mjs +2 -2
- package/fesm2015/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-page.mjs +36 -14
- package/fesm2015/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-shared-floating.mjs +92 -24
- package/fesm2015/kirbydesign-designsystem-shared-floating.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-tab-navigation.mjs +156 -0
- package/fesm2015/kirbydesign-designsystem-tab-navigation.mjs.map +1 -0
- package/fesm2015/kirbydesign-designsystem.mjs +23 -4
- package/fesm2015/kirbydesign-designsystem.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-button.mjs +2 -2
- package/fesm2020/kirbydesign-designsystem-button.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-card.mjs +2 -2
- package/fesm2020/kirbydesign-designsystem-card.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-dropdown.mjs +15 -10
- package/fesm2020/kirbydesign-designsystem-dropdown.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-item.mjs +2 -2
- package/fesm2020/kirbydesign-designsystem-item.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-list.mjs +4 -4
- package/fesm2020/kirbydesign-designsystem-list.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-menu.mjs +76 -0
- package/fesm2020/kirbydesign-designsystem-menu.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem-modal-v2.mjs +4 -4
- package/fesm2020/kirbydesign-designsystem-modal-v2.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-modal.mjs +2 -2
- package/fesm2020/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-page.mjs +36 -14
- package/fesm2020/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-shared-floating.mjs +91 -24
- package/fesm2020/kirbydesign-designsystem-shared-floating.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-tab-navigation.mjs +155 -0
- package/fesm2020/kirbydesign-designsystem-tab-navigation.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem.mjs +23 -4
- package/fesm2020/kirbydesign-designsystem.mjs.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/kirby.module.d.ts +42 -39
- package/menu/index.d.ts +5 -0
- package/menu/menu.component.d.ts +31 -0
- package/menu/public_api.d.ts +1 -0
- package/package.json +18 -2
- package/page/page.component.d.ts +11 -3
- package/page/public_api.d.ts +1 -12
- package/shared/floating/floating.directive.d.ts +30 -4
- package/shared/floating/public_api.d.ts +1 -1
- package/tab-navigation/index.d.ts +5 -0
- package/tab-navigation/public_api.d.ts +3 -0
- package/tab-navigation/tab-navigation/tab-navigation.component.d.ts +30 -0
- package/tab-navigation/tab-navigation-item/tab-navigation-item.component.d.ts +7 -0
- package/tab-navigation/tab-navigation.module.d.ts +9 -0
package/page/public_api.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
export { PageComponent } from './page.component';
|
|
2
|
-
export { PageProgressComponent } from './page.component';
|
|
3
|
-
export { PageTitleComponent } from './page.component';
|
|
4
|
-
export { PageTitleDirective } from './page.component';
|
|
5
|
-
export { PageSubtitleDirective } from './page.component';
|
|
6
|
-
export { PageToolbarTitleDirective } from './page.component';
|
|
7
|
-
export { PageActionsDirective } from './page.component';
|
|
8
|
-
export { PageContentDirective } from './page.component';
|
|
9
|
-
export { PageContentComponent } from './page.component';
|
|
10
|
-
export { PageActionsComponent } from './page.component';
|
|
1
|
+
export { PageComponent, PageProgressComponent, PageTitleComponent, PageTitleDirective, PageSubtitleDirective, PageToolbarTitleDirective, PageActionsDirective, PageContentDirective, PageContentComponent, PageActionsComponent, PullToRefreshEvent, PageStickyContentDirective, PAGE_BACK_BUTTON_OVERRIDE, PageBackButtonOverride, } from './page.component';
|
|
11
2
|
export { PageFooterComponent } from './page-footer/page-footer.component';
|
|
12
3
|
export { PageModule } from './page.module';
|
|
13
|
-
export { PullToRefreshEvent } from './page.component';
|
|
14
|
-
export { PageStickyContentDirective } from './page.component';
|
|
@@ -10,6 +10,16 @@ export declare enum FloatingOffset {
|
|
|
10
10
|
small = 4,
|
|
11
11
|
medium = 8
|
|
12
12
|
}
|
|
13
|
+
export declare enum OutletSelector {
|
|
14
|
+
tag = "tag",
|
|
15
|
+
id = "id",
|
|
16
|
+
class = "class",
|
|
17
|
+
name = "name"
|
|
18
|
+
}
|
|
19
|
+
export interface PortalOutletConfig {
|
|
20
|
+
selector: OutletSelector;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
13
23
|
/**
|
|
14
24
|
* @summary FloatingDirective is a utility that lets you declarative anchor "popup" containers to another element.
|
|
15
25
|
*
|
|
@@ -50,6 +60,13 @@ export declare class FloatingDirective implements OnInit, OnDestroy {
|
|
|
50
60
|
* This should be used when there's issues with the stacking context, and not as a default option.
|
|
51
61
|
* */
|
|
52
62
|
set DOMPortalOutlet(outlet: HTMLElement | undefined);
|
|
63
|
+
get DOMPortalOutlet(): HTMLElement | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Defines how to automatically find and assign DOMPortalOutlet if none is provided in DOMPortalOutlet.
|
|
66
|
+
* If nothing is provided here and in DOMPortalOutlet, the provided strategy is used
|
|
67
|
+
* */
|
|
68
|
+
set portalOutletConfig(config: PortalOutletConfig | undefined);
|
|
69
|
+
get portalOutletConfig(): PortalOutletConfig | undefined;
|
|
53
70
|
/**
|
|
54
71
|
* Prevent host from being toggled if set.
|
|
55
72
|
* */
|
|
@@ -78,32 +95,41 @@ export declare class FloatingDirective implements OnInit, OnDestroy {
|
|
|
78
95
|
* */
|
|
79
96
|
displayChanged: EventEmitter<boolean>;
|
|
80
97
|
onEscapeKeyPressed(): void;
|
|
81
|
-
onMouseClick(event: Event): void;
|
|
82
98
|
private _placement;
|
|
83
99
|
private _strategy;
|
|
100
|
+
private _providedPortalOutlet;
|
|
101
|
+
private _portalOutletConfig;
|
|
84
102
|
private _triggers;
|
|
85
103
|
private _reference;
|
|
86
104
|
private autoUpdaterRef;
|
|
87
105
|
private isShown;
|
|
88
|
-
private
|
|
106
|
+
private referenceEventListenerDisposeFns;
|
|
107
|
+
private documentClickEventListenerDisposeFn;
|
|
89
108
|
private triggerEventMap;
|
|
109
|
+
private HTMLElements;
|
|
90
110
|
constructor(elementRef: ElementRef, renderer: Renderer2, portalDirective: PortalDirective);
|
|
91
111
|
ngOnInit(): void;
|
|
92
112
|
show(): void;
|
|
93
113
|
hide(): void;
|
|
94
114
|
toggleShow(): void;
|
|
115
|
+
private onDocumentClickWhileHostShown;
|
|
95
116
|
private addFloatStylingToHostElement;
|
|
117
|
+
private setDisplayStyling;
|
|
96
118
|
private updateHostElementPosition;
|
|
97
119
|
private getMiddlewareConfig;
|
|
98
120
|
private autoUpdatePosition;
|
|
99
121
|
private setPositionStylingOnHostElement;
|
|
100
122
|
private setupEventHandling;
|
|
123
|
+
private attachDocumentClickEvent;
|
|
101
124
|
private attachTriggerEventToReferenceElement;
|
|
102
125
|
private handleClickInsideHostElement;
|
|
103
126
|
private handleClickOutsideHostElement;
|
|
104
|
-
private
|
|
127
|
+
private getOutletElement;
|
|
128
|
+
private getHTMLElements;
|
|
129
|
+
private tearDownReferenceElementEventHandling;
|
|
130
|
+
private tearDownDocumentClickEventHandling;
|
|
105
131
|
private removeAutoUpdaterRef;
|
|
106
132
|
ngOnDestroy(): void;
|
|
107
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingDirective, never>;
|
|
108
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FloatingDirective, "[kirbyFloating]", never, { "reference": "reference"; "placement": "placement"; "strategy": "strategy"; "triggers": "triggers"; "DOMPortalOutlet": "DOMPortalOutlet"; "isDisabled": "isDisabled"; "offset": "offset"; "shift": "shift"; "autoPlacement": "autoPlacement"; "closeOnSelect": "closeOnSelect"; "closeOnEscapeKey": "closeOnEscapeKey"; "closeOnBackdrop": "closeOnBackdrop"; }, { "displayChanged": "displayChanged"; }, never, never, true, [{ directive: typeof i1.PortalDirective; inputs: {}; outputs: {}; }]>;
|
|
134
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FloatingDirective, "[kirbyFloating]", never, { "reference": "reference"; "placement": "placement"; "strategy": "strategy"; "triggers": "triggers"; "DOMPortalOutlet": "DOMPortalOutlet"; "portalOutletConfig": "portalOutletConfig"; "isDisabled": "isDisabled"; "offset": "offset"; "shift": "shift"; "autoPlacement": "autoPlacement"; "closeOnSelect": "closeOnSelect"; "closeOnEscapeKey": "closeOnEscapeKey"; "closeOnBackdrop": "closeOnBackdrop"; }, { "displayChanged": "displayChanged"; }, never, never, true, [{ directive: typeof i1.PortalDirective; inputs: {}; outputs: {}; }]>;
|
|
109
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FloatingDirective, TriggerEvent } from './floating.directive';
|
|
1
|
+
export { FloatingDirective, TriggerEvent, FloatingOffset, PortalOutletConfig, OutletSelector, } from './floating.directive';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { WindowRef } from '@kirbydesign/designsystem/types';
|
|
3
|
+
import { KeyboardHandlerService } from '@kirbydesign/designsystem/dropdown';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TabNavigationComponent implements AfterViewInit {
|
|
6
|
+
private window;
|
|
7
|
+
private keyboardHandlerService;
|
|
8
|
+
readonly DEBOUNCE_TIME_MS = 250;
|
|
9
|
+
private tabBar;
|
|
10
|
+
private tabs;
|
|
11
|
+
private tabBarElement;
|
|
12
|
+
private tabElements;
|
|
13
|
+
private tabButtonElements;
|
|
14
|
+
get selectedIndex(): number;
|
|
15
|
+
set selectedIndex(index: number);
|
|
16
|
+
private _selectedIndex;
|
|
17
|
+
get focusIndex(): number;
|
|
18
|
+
set focusIndex(index: number);
|
|
19
|
+
private _focusIndex;
|
|
20
|
+
selectedIndexChange: EventEmitter<number>;
|
|
21
|
+
constructor(window: WindowRef, keyboardHandlerService: KeyboardHandlerService);
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
onItemSelect(event: PointerEvent): void;
|
|
24
|
+
onKeydown(event: KeyboardEvent): void;
|
|
25
|
+
private selectTab;
|
|
26
|
+
private focusTab;
|
|
27
|
+
private scrollToTab;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabNavigationComponent, "kirby-tab-navigation", never, { "selectedIndex": "selectedIndex"; }, { "selectedIndexChange": "selectedIndexChange"; }, ["tabs"], ["*"], false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TabNavigationItemComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
constructor();
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationItemComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabNavigationItemComponent, "kirby-tab-navigation-item", never, { "label": "label"; }, {}, never, ["*"], false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tab-navigation/tab-navigation.component";
|
|
3
|
+
import * as i2 from "./tab-navigation-item/tab-navigation-item.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class TabNavigationModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TabNavigationModule, [typeof i1.TabNavigationComponent, typeof i2.TabNavigationItemComponent], [typeof i3.CommonModule], [typeof i1.TabNavigationComponent, typeof i2.TabNavigationItemComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TabNavigationModule>;
|
|
9
|
+
}
|