@progress/kendo-angular-layout 17.3.0-develop.2 → 18.0.0-develop.10
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/esm2022/index.mjs +1 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/tabstrip/models/scrollable-settings.mjs +2 -1
- package/esm2022/tabstrip/models/size.mjs +5 -0
- package/esm2022/tabstrip/rendering/tab.component.mjs +4 -1
- package/esm2022/tabstrip/tabstrip-scroll.service.mjs +8 -30
- package/esm2022/tabstrip/tabstrip.component.mjs +191 -30
- package/esm2022/tabstrip/util.mjs +6 -1
- package/fesm2022/progress-kendo-angular-layout.mjs +212 -64
- package/index.d.ts +2 -1
- package/package.json +8 -8
- package/tabstrip/models/scrollable-settings.d.ts +15 -4
- package/tabstrip/models/size.d.ts +8 -0
- package/tabstrip/tabstrip-scroll.service.d.ts +1 -2
- package/tabstrip/tabstrip.component.d.ts +23 -4
- package/tabstrip/util.d.ts +5 -2
|
@@ -19,12 +19,11 @@ export declare class ScrollService {
|
|
|
19
19
|
get tabstripSize(): number;
|
|
20
20
|
get tablistOverflowSize(): number;
|
|
21
21
|
get tabsOverflow(): boolean;
|
|
22
|
-
get scrollButtonsSize(): number;
|
|
23
22
|
constructor(ngZone: NgZone);
|
|
24
23
|
toggleScrollButtonsState(): void;
|
|
25
24
|
scrollToSelectedTab(): void;
|
|
26
25
|
getScrollOffset(activeIndex: number): number;
|
|
27
|
-
|
|
26
|
+
onScroll(e: Event): void;
|
|
28
27
|
scrollTabs(direction: string): void;
|
|
29
28
|
calculateListPosition(direction: string, scrollSpeed: number): void;
|
|
30
29
|
restoreScrollPosition(): void;
|
|
@@ -11,11 +11,12 @@ import { ScrollService } from './tabstrip-scroll.service';
|
|
|
11
11
|
import { TabPosition } from './models/tab-position';
|
|
12
12
|
import { TabAlignment } from './models/tab-alignment';
|
|
13
13
|
import { Subscription } from 'rxjs';
|
|
14
|
-
import { TabStripScrollableSettings } from './models/scrollable-settings';
|
|
14
|
+
import { TabStripScrollableSettings, TabStripScrollButtonsPosition } from './models/scrollable-settings';
|
|
15
15
|
import { TabScrollEvent } from './events/tabscroll-event';
|
|
16
16
|
import { TabStripScrollableButtonComponent } from './scrollable-button.component';
|
|
17
17
|
import { ScrollButtonType } from './models/scroll-button-type';
|
|
18
18
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import { TabStripSize } from './models/size';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
/**
|
|
21
22
|
* Represents the [Kendo UI TabStrip component for Angular]({% slug overview_tabstrip %}).
|
|
@@ -74,6 +75,18 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
|
|
|
74
75
|
*/
|
|
75
76
|
set scrollable(value: boolean | TabStripScrollableSettings);
|
|
76
77
|
get scrollable(): boolean | TabStripScrollableSettings;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies the size of the TabStrip.
|
|
80
|
+
* ([see example](slug:api_layout_tabstripcomponent#toc-size).
|
|
81
|
+
*
|
|
82
|
+
* The possible values are:
|
|
83
|
+
* * `small`
|
|
84
|
+
* * `medium` (Default)
|
|
85
|
+
* * `large`
|
|
86
|
+
* * `none`
|
|
87
|
+
*/
|
|
88
|
+
set size(value: TabStripSize);
|
|
89
|
+
get size(): TabStripSize;
|
|
77
90
|
/**
|
|
78
91
|
* Defines the name for an existing font icon in the Kendo UI theme for the close icon.
|
|
79
92
|
*/
|
|
@@ -116,6 +129,7 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
|
|
|
116
129
|
get tabsAtLeft(): boolean;
|
|
117
130
|
get dir(): string;
|
|
118
131
|
get tabStripScrollable(): boolean;
|
|
132
|
+
get tabStripScrollableOverlay(): boolean;
|
|
119
133
|
/**
|
|
120
134
|
* A query list of all declared tabs.
|
|
121
135
|
*/
|
|
@@ -152,6 +166,7 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
|
|
|
152
166
|
private tabStripId;
|
|
153
167
|
private tabsChangesSub;
|
|
154
168
|
private activeStateChangeSub;
|
|
169
|
+
private _size;
|
|
155
170
|
constructor(localization: LocalizationService, renderer: Renderer2, wrapper: ElementRef, tabstripService: TabStripService, scrollService: ScrollService, ngZone: NgZone);
|
|
156
171
|
ngAfterViewInit(): void;
|
|
157
172
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -163,7 +178,10 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
|
|
|
163
178
|
/**
|
|
164
179
|
* @hidden
|
|
165
180
|
*/
|
|
166
|
-
get hasScrollButtons():
|
|
181
|
+
get hasScrollButtons(): {
|
|
182
|
+
visible: boolean;
|
|
183
|
+
position: TabStripScrollButtonsPosition;
|
|
184
|
+
};
|
|
167
185
|
/**
|
|
168
186
|
* @hidden
|
|
169
187
|
*/
|
|
@@ -203,7 +221,8 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
|
|
|
203
221
|
onScrollButtonClick(buttonType: ScrollButtonType): void;
|
|
204
222
|
private initDomEvents;
|
|
205
223
|
private toggleScrollButtons;
|
|
206
|
-
private
|
|
224
|
+
private attachTablistScrollHandler;
|
|
225
|
+
private setScrollableOverlayClasses;
|
|
207
226
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabStripComponent, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabStripComponent, "kendo-tabstrip", ["kendoTabStrip"], { "height": { "alias": "height"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "tabAlignment": { "alias": "tabAlignment"; "required": false; }; "tabPosition": { "alias": "tabPosition"; "required": false; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "closeIcon": { "alias": "closeIcon"; "required": false; }; "closeIconClass": { "alias": "closeIconClass"; "required": false; }; "closeSVGIcon": { "alias": "closeSVGIcon"; "required": false; }; "showContentArea": { "alias": "showContentArea"; "required": false; }; }, { "tabSelect": "tabSelect"; "tabClose": "tabClose"; "tabScroll": "tabScroll"; }, ["tabs"], never, true, never>;
|
|
227
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabStripComponent, "kendo-tabstrip", ["kendoTabStrip"], { "height": { "alias": "height"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "tabAlignment": { "alias": "tabAlignment"; "required": false; }; "tabPosition": { "alias": "tabPosition"; "required": false; }; "keepTabContent": { "alias": "keepTabContent"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "size": { "alias": "size"; "required": false; }; "closeIcon": { "alias": "closeIcon"; "required": false; }; "closeIconClass": { "alias": "closeIconClass"; "required": false; }; "closeSVGIcon": { "alias": "closeSVGIcon"; "required": false; }; "showContentArea": { "alias": "showContentArea"; "required": false; }; }, { "tabSelect": "tabSelect"; "tabClose": "tabClose"; "tabScroll": "tabScroll"; }, ["tabs"], never, true, never>;
|
|
209
228
|
}
|
package/tabstrip/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ElementRef, QueryList } from "@angular/core";
|
|
6
|
-
import { TabStripScrollableSettings } from './models/scrollable-settings';
|
|
6
|
+
import { TabStripScrollableSettings, TabStripScrollButtonsPosition } from './models/scrollable-settings';
|
|
7
7
|
import { TabStripTabComponent } from "./models/tabstrip-tab.component";
|
|
8
8
|
import { TabPosition } from './models/tab-position';
|
|
9
9
|
/**
|
|
@@ -23,7 +23,10 @@ export declare const isTabClosable: (tab: TabStripTabComponent, tabStripClosable
|
|
|
23
23
|
*
|
|
24
24
|
* Checks if the TabStrip scroll buttons will be rendered. Depends on the value of the TabStrip scrollable settings.
|
|
25
25
|
*/
|
|
26
|
-
export declare const tabStripHasScrollButtons: (scrollableSettings: TabStripScrollableSettings) =>
|
|
26
|
+
export declare const tabStripHasScrollButtons: (scrollableSettings: TabStripScrollableSettings) => {
|
|
27
|
+
visible: boolean;
|
|
28
|
+
position: TabStripScrollButtonsPosition;
|
|
29
|
+
};
|
|
27
30
|
/**
|
|
28
31
|
* @hidden
|
|
29
32
|
*
|