@progress/kendo-angular-navigation 21.4.1-develop.1 → 22.0.0-develop.1
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/fesm2022/progress-kendo-angular-navigation.mjs +83 -83
- package/package.json +11 -19
- package/esm2022/actionsheet/actionsheet-view.component.mjs +0 -173
- package/esm2022/actionsheet/actionsheet.component.mjs +0 -700
- package/esm2022/actionsheet/animation/animations.mjs +0 -23
- package/esm2022/actionsheet/item.component.mjs +0 -125
- package/esm2022/actionsheet/list.component.mjs +0 -95
- package/esm2022/actionsheet/models/actionsheet-action-layout.mjs +0 -5
- package/esm2022/actionsheet/models/actionsheet-action.mjs +0 -5
- package/esm2022/actionsheet/models/actionsheet-item.interface.mjs +0 -5
- package/esm2022/actionsheet/models/animation.mjs +0 -5
- package/esm2022/actionsheet/models/group.mjs +0 -5
- package/esm2022/actionsheet/models/index.mjs +0 -10
- package/esm2022/actionsheet/models/item-click.event.mjs +0 -19
- package/esm2022/actionsheet/templates/actionsheet-template.mjs +0 -37
- package/esm2022/actionsheet/templates/content-template.directive.mjs +0 -37
- package/esm2022/actionsheet/templates/footer-template.directive.mjs +0 -37
- package/esm2022/actionsheet/templates/header-template.directive.mjs +0 -37
- package/esm2022/actionsheet/templates/item-template.directive.mjs +0 -37
- package/esm2022/actionsheet.module.mjs +0 -48
- package/esm2022/appbar/appbar-section.component.mjs +0 -40
- package/esm2022/appbar/appbar-spacer.component.mjs +0 -69
- package/esm2022/appbar/appbar.component.mjs +0 -158
- package/esm2022/appbar/models/position-mode.mjs +0 -5
- package/esm2022/appbar/models/position.mjs +0 -5
- package/esm2022/appbar/models/theme-color.mjs +0 -5
- package/esm2022/appbar.module.mjs +0 -42
- package/esm2022/bottomnavigation/bottomnavigation-item.component.mjs +0 -122
- package/esm2022/bottomnavigation/bottomnavigation.component.mjs +0 -334
- package/esm2022/bottomnavigation/constants.mjs +0 -12
- package/esm2022/bottomnavigation/events/select-event.mjs +0 -33
- package/esm2022/bottomnavigation/templates/item-template.directive.mjs +0 -36
- package/esm2022/bottomnavigation/types/bottomnavigation-fill.mjs +0 -5
- package/esm2022/bottomnavigation/types/bottomnavigation-item-flow.mjs +0 -5
- package/esm2022/bottomnavigation/types/bottomnavigation-item.mjs +0 -5
- package/esm2022/bottomnavigation/types/bottomnavigation-position-mode.mjs +0 -5
- package/esm2022/bottomnavigation/types/bottomnavigation-theme-color.mjs +0 -20
- package/esm2022/bottomnavigation.module.mjs +0 -43
- package/esm2022/breadcrumb/breadcrumb-item.component.mjs +0 -186
- package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -362
- package/esm2022/breadcrumb/list.component.mjs +0 -107
- package/esm2022/breadcrumb/models/breadcrumb-item.interface.mjs +0 -5
- package/esm2022/breadcrumb/models/breadcrumb-size.mjs +0 -5
- package/esm2022/breadcrumb/models/collapse-mode.mjs +0 -5
- package/esm2022/breadcrumb/models/constants.mjs +0 -33
- package/esm2022/breadcrumb/template-directives/item-template.directive.mjs +0 -40
- package/esm2022/breadcrumb/template-directives/separator.directive.mjs +0 -108
- package/esm2022/breadcrumb/util.mjs +0 -22
- package/esm2022/breadcrumb.module.mjs +0 -44
- package/esm2022/common/direction.mjs +0 -5
- package/esm2022/common/dom-queries.mjs +0 -22
- package/esm2022/common/preventable-event.mjs +0 -34
- package/esm2022/common/util.mjs +0 -63
- package/esm2022/directives.mjs +0 -146
- package/esm2022/index.mjs +0 -27
- package/esm2022/navigation.module.mjs +0 -56
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-navigation.mjs +0 -8
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, HostBinding, Input, Output, EventEmitter, ElementRef, Renderer2, ContentChild, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { BottomNavigationSelectEvent } from './events/select-event';
|
|
11
|
-
import { BottomNavigationItemTemplateDirective } from './templates/item-template.directive';
|
|
12
|
-
import { closestItem, itemIndex } from '../common/dom-queries';
|
|
13
|
-
import { BOTTOMNAVIGATION_ITEM_INDEX, colors } from './constants';
|
|
14
|
-
import { packageMetadata } from '../package-metadata';
|
|
15
|
-
import { BottomNavigationItemComponent } from './bottomnavigation-item.component';
|
|
16
|
-
import { NgClass, NgStyle } from '@angular/common';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
19
|
-
/**
|
|
20
|
-
* Represents the [Kendo UI BottomNavigation component for Angular]({% slug overview_bottomnavigation %}).
|
|
21
|
-
*
|
|
22
|
-
* Use the BottomNavigation component to let users quickly switch between primary views in your app.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* @Component({
|
|
27
|
-
* selector: 'my-app',
|
|
28
|
-
* template: `
|
|
29
|
-
* <kendo-bottomnavigation [items]="items"></kendo-bottomnavigation>
|
|
30
|
-
* `
|
|
31
|
-
* })
|
|
32
|
-
* class AppComponent {
|
|
33
|
-
* public items: Array<any> = [
|
|
34
|
-
* { text: 'Inbox', icon: 'envelop', selected: true },
|
|
35
|
-
* { text: 'Calendar', icon: 'calendar'},
|
|
36
|
-
* { text: 'Profile', icon: 'user'}
|
|
37
|
-
* ];
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export class BottomNavigationComponent {
|
|
42
|
-
localization;
|
|
43
|
-
hostElement;
|
|
44
|
-
ngZone;
|
|
45
|
-
changeDetector;
|
|
46
|
-
renderer;
|
|
47
|
-
/**
|
|
48
|
-
* Provides the collection of items rendered in the BottomNavigation ([see example]({% slug items_bottomnavigation %})).
|
|
49
|
-
*/
|
|
50
|
-
items;
|
|
51
|
-
/**
|
|
52
|
-
* Shows a top border on the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
53
|
-
*
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
border = false;
|
|
57
|
-
/**
|
|
58
|
-
* Disables the entire BottomNavigation.
|
|
59
|
-
*
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
disabled = false;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the fill style of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
65
|
-
*
|
|
66
|
-
* @default 'flat'
|
|
67
|
-
*/
|
|
68
|
-
set fill(fill) {
|
|
69
|
-
this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}`);
|
|
70
|
-
this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this.themeColor}`);
|
|
71
|
-
this._fill = fill === 'solid' ? 'solid' : 'flat';
|
|
72
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._fill}`);
|
|
73
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._fill}-${this.themeColor}`);
|
|
74
|
-
}
|
|
75
|
-
get fill() {
|
|
76
|
-
return this._fill;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Controls how the icon and text label are positioned in the BottomNavigation items.
|
|
80
|
-
*
|
|
81
|
-
* @default 'vertical'
|
|
82
|
-
*/
|
|
83
|
-
set itemFlow(itemFlow) {
|
|
84
|
-
this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-item-flow-${this.itemFlow}`);
|
|
85
|
-
this._itemFlow = itemFlow === 'horizontal' ? 'horizontal' : 'vertical';
|
|
86
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-item-flow-${this._itemFlow}`);
|
|
87
|
-
}
|
|
88
|
-
get itemFlow() {
|
|
89
|
-
return this._itemFlow;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Sets the position and behavior of the BottomNavigation when the page is scrollable ([see example]({% slug positioning_bottomnavigation %})).
|
|
93
|
-
*
|
|
94
|
-
* @default 'fixed'
|
|
95
|
-
*/
|
|
96
|
-
set positionMode(positionMode) {
|
|
97
|
-
this.renderer.removeClass(this._nativeHostElement, `k-pos-${this.positionMode}`);
|
|
98
|
-
this._positionMode = positionMode === 'sticky' ? 'sticky' : 'fixed';
|
|
99
|
-
this.renderer.addClass(this._nativeHostElement, `k-pos-${this._positionMode}`);
|
|
100
|
-
}
|
|
101
|
-
get positionMode() {
|
|
102
|
-
return this._positionMode;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Sets the theme color of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
106
|
-
*
|
|
107
|
-
* @default 'primary'
|
|
108
|
-
*/
|
|
109
|
-
set themeColor(themeColor) {
|
|
110
|
-
const newColor = colors.find(color => color === themeColor);
|
|
111
|
-
if (newColor) {
|
|
112
|
-
this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this._themeColor}`);
|
|
113
|
-
this._themeColor = themeColor;
|
|
114
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this._themeColor}`);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
get themeColor() {
|
|
118
|
-
return this._themeColor;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Fires when a user selects an item. This event is preventable.
|
|
122
|
-
*/
|
|
123
|
-
select = new EventEmitter();
|
|
124
|
-
/**
|
|
125
|
-
* @hidden
|
|
126
|
-
*/
|
|
127
|
-
hostClass = true;
|
|
128
|
-
/**
|
|
129
|
-
* @hidden
|
|
130
|
-
*/
|
|
131
|
-
get borderClass() {
|
|
132
|
-
return this.border;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* @hidden
|
|
136
|
-
*/
|
|
137
|
-
get disabledClass() {
|
|
138
|
-
return this.disabled;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @hidden
|
|
142
|
-
*/
|
|
143
|
-
role = 'navigation';
|
|
144
|
-
/**
|
|
145
|
-
* @hidden
|
|
146
|
-
*/
|
|
147
|
-
direction;
|
|
148
|
-
/**
|
|
149
|
-
* @hidden
|
|
150
|
-
*/
|
|
151
|
-
itemTemplate;
|
|
152
|
-
/**
|
|
153
|
-
* @hidden
|
|
154
|
-
*/
|
|
155
|
-
selectedIdx;
|
|
156
|
-
_fill = 'flat';
|
|
157
|
-
_itemFlow = 'vertical';
|
|
158
|
-
_positionMode = 'fixed';
|
|
159
|
-
_themeColor = 'primary';
|
|
160
|
-
_nativeHostElement;
|
|
161
|
-
dynamicRTLSubscription;
|
|
162
|
-
subscriptions = new Subscription();
|
|
163
|
-
rtl = false;
|
|
164
|
-
constructor(localization, hostElement, ngZone, changeDetector, renderer) {
|
|
165
|
-
this.localization = localization;
|
|
166
|
-
this.hostElement = hostElement;
|
|
167
|
-
this.ngZone = ngZone;
|
|
168
|
-
this.changeDetector = changeDetector;
|
|
169
|
-
this.renderer = renderer;
|
|
170
|
-
validatePackage(packageMetadata);
|
|
171
|
-
this._nativeHostElement = this.hostElement.nativeElement;
|
|
172
|
-
this.dynamicRTLSubscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
173
|
-
this.rtl = rtl;
|
|
174
|
-
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* @hidden
|
|
179
|
-
*/
|
|
180
|
-
ngOnInit() {
|
|
181
|
-
this.initDomEvents();
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* @hidden
|
|
185
|
-
*/
|
|
186
|
-
ngAfterViewInit() {
|
|
187
|
-
this.applyClasses();
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
ngOnDestroy() {
|
|
193
|
-
if (this.dynamicRTLSubscription) {
|
|
194
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
195
|
-
}
|
|
196
|
-
this.subscriptions.unsubscribe();
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @hidden
|
|
200
|
-
*/
|
|
201
|
-
selectItem(idx, args) {
|
|
202
|
-
const eventArgs = new BottomNavigationSelectEvent({ ...args });
|
|
203
|
-
this.select.emit(eventArgs);
|
|
204
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
205
|
-
this.selectedIdx = idx;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
applyClasses() {
|
|
209
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}`);
|
|
210
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-item-flow-${this.itemFlow}`);
|
|
211
|
-
this.renderer.addClass(this._nativeHostElement, `k-pos-${this.positionMode}`);
|
|
212
|
-
this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this.themeColor}`);
|
|
213
|
-
}
|
|
214
|
-
initDomEvents() {
|
|
215
|
-
if (!this.hostElement) {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
this.ngZone.runOutsideAngular(() => {
|
|
219
|
-
this.subscriptions.add(this.renderer.listen(this._nativeHostElement, 'click', this.clickHandler.bind(this)));
|
|
220
|
-
this.subscriptions.add(this.renderer.listen(this._nativeHostElement, 'keydown', this.keyDownHandler.bind(this)));
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
clickHandler(e) {
|
|
224
|
-
const itemIdx = this.getBottomNavigationItemIndex(e.target);
|
|
225
|
-
const item = this.items[itemIdx];
|
|
226
|
-
if (!item) {
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
if (item.disabled) {
|
|
230
|
-
e.preventDefault();
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
const args = {
|
|
234
|
-
index: itemIdx,
|
|
235
|
-
item: item,
|
|
236
|
-
originalEvent: e,
|
|
237
|
-
sender: this
|
|
238
|
-
};
|
|
239
|
-
this.ngZone.run(() => {
|
|
240
|
-
this.selectItem(itemIdx, args);
|
|
241
|
-
this.changeDetector.markForCheck();
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
keyDownHandler(e) {
|
|
245
|
-
const isEnterOrSpace = e.code === Keys.Enter || e.code === Keys.NumpadEnter || e.code === Keys.Space;
|
|
246
|
-
if (!isEnterOrSpace) {
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
this.clickHandler(e);
|
|
250
|
-
}
|
|
251
|
-
getBottomNavigationItemIndex(target) {
|
|
252
|
-
const item = closestItem(target, BOTTOMNAVIGATION_ITEM_INDEX, this._nativeHostElement);
|
|
253
|
-
if (item) {
|
|
254
|
-
return itemIndex(item, BOTTOMNAVIGATION_ITEM_INDEX);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: BottomNavigationComponent, isStandalone: true, selector: "kendo-bottomnavigation", inputs: { items: "items", border: "border", disabled: "disabled", fill: "fill", itemFlow: "itemFlow", positionMode: "positionMode", themeColor: "themeColor" }, outputs: { select: "select" }, host: { properties: { "class.k-bottom-nav": "this.hostClass", "class.k-bottom-nav-border": "this.borderClass", "class.k-disabled": "this.disabledClass", "attr.role": "this.role", "attr.dir": "this.direction" } }, providers: [
|
|
259
|
-
LocalizationService,
|
|
260
|
-
{
|
|
261
|
-
provide: L10N_PREFIX,
|
|
262
|
-
useValue: 'kendo.bottomnavigation'
|
|
263
|
-
}
|
|
264
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: BottomNavigationItemTemplateDirective, descendants: true }], exportAs: ["kendoBottomNavigation"], ngImport: i0, template: "\n @if (items) {\n @for (item of items; track item; let idx = $index) {\n <span kendoBottomNavigationItem\n role=\"link\"\n class=\"k-bottom-nav-item\"\n [disabledComponent]=\"disabled\"\n [item]=\"item\"\n [index]=\"idx\"\n [selectedIdx]=\"selectedIdx\"\n [itemTemplate]=\"itemTemplate\"\n [attr.data-kendo-bottomnavigation-index]=\"idx\"\n [ngClass]=\"item.cssClass\"\n [ngStyle]=\"item.cssStyle\"\n [orientation]=\"itemFlow\">\n </span>\n }\n }\n ", isInline: true, dependencies: [{ kind: "component", type: BottomNavigationItemComponent, selector: "[kendoBottomNavigationItem]", inputs: ["itemTemplate", "item", "index", "disabledComponent", "selectedIdx", "orientation"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
265
|
-
}
|
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationComponent, decorators: [{
|
|
267
|
-
type: Component,
|
|
268
|
-
args: [{
|
|
269
|
-
exportAs: 'kendoBottomNavigation',
|
|
270
|
-
selector: 'kendo-bottomnavigation',
|
|
271
|
-
providers: [
|
|
272
|
-
LocalizationService,
|
|
273
|
-
{
|
|
274
|
-
provide: L10N_PREFIX,
|
|
275
|
-
useValue: 'kendo.bottomnavigation'
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
template: `
|
|
279
|
-
@if (items) {
|
|
280
|
-
@for (item of items; track item; let idx = $index) {
|
|
281
|
-
<span kendoBottomNavigationItem
|
|
282
|
-
role="link"
|
|
283
|
-
class="k-bottom-nav-item"
|
|
284
|
-
[disabledComponent]="disabled"
|
|
285
|
-
[item]="item"
|
|
286
|
-
[index]="idx"
|
|
287
|
-
[selectedIdx]="selectedIdx"
|
|
288
|
-
[itemTemplate]="itemTemplate"
|
|
289
|
-
[attr.${BOTTOMNAVIGATION_ITEM_INDEX}]="idx"
|
|
290
|
-
[ngClass]="item.cssClass"
|
|
291
|
-
[ngStyle]="item.cssStyle"
|
|
292
|
-
[orientation]="itemFlow">
|
|
293
|
-
</span>
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
`,
|
|
297
|
-
standalone: true,
|
|
298
|
-
imports: [BottomNavigationItemComponent, NgClass, NgStyle]
|
|
299
|
-
}]
|
|
300
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { items: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], border: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}], disabled: [{
|
|
305
|
-
type: Input
|
|
306
|
-
}], fill: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], itemFlow: [{
|
|
309
|
-
type: Input
|
|
310
|
-
}], positionMode: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], themeColor: [{
|
|
313
|
-
type: Input
|
|
314
|
-
}], select: [{
|
|
315
|
-
type: Output
|
|
316
|
-
}], hostClass: [{
|
|
317
|
-
type: HostBinding,
|
|
318
|
-
args: ['class.k-bottom-nav']
|
|
319
|
-
}], borderClass: [{
|
|
320
|
-
type: HostBinding,
|
|
321
|
-
args: ['class.k-bottom-nav-border']
|
|
322
|
-
}], disabledClass: [{
|
|
323
|
-
type: HostBinding,
|
|
324
|
-
args: ['class.k-disabled']
|
|
325
|
-
}], role: [{
|
|
326
|
-
type: HostBinding,
|
|
327
|
-
args: ['attr.role']
|
|
328
|
-
}], direction: [{
|
|
329
|
-
type: HostBinding,
|
|
330
|
-
args: ['attr.dir']
|
|
331
|
-
}], itemTemplate: [{
|
|
332
|
-
type: ContentChild,
|
|
333
|
-
args: [BottomNavigationItemTemplateDirective, { static: false }]
|
|
334
|
-
}] } });
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export const BOTTOMNAVIGATION_ITEM_INDEX = 'data-kendo-bottomnavigation-index';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export const colors = ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'];
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PreventableEvent } from '../../common/preventable-event';
|
|
6
|
-
/**
|
|
7
|
-
* Provides the arguments for the `select` event of the BottomNavigation.
|
|
8
|
-
*/
|
|
9
|
-
export class BottomNavigationSelectEvent extends PreventableEvent {
|
|
10
|
-
/**
|
|
11
|
-
* Represents the index of the selected item in the `items` collection.
|
|
12
|
-
*/
|
|
13
|
-
index;
|
|
14
|
-
/**
|
|
15
|
-
* Represents the selected BottomNavigation item.
|
|
16
|
-
*/
|
|
17
|
-
item;
|
|
18
|
-
/**
|
|
19
|
-
* Provides the DOM event that triggered the selection.
|
|
20
|
-
*/
|
|
21
|
-
originalEvent;
|
|
22
|
-
/**
|
|
23
|
-
* Provides a reference to the BottomNavigation instance that triggered the event.
|
|
24
|
-
*/
|
|
25
|
-
sender;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
constructor(args) {
|
|
30
|
-
super();
|
|
31
|
-
Object.assign(this, args);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the BottomNavigation items. Use this directive to customize the appearance of each navigation item.
|
|
9
|
-
* To define the template, nest an `<ng-template>` tag with the `kendoBottomNavigationItemTemplate` directive inside the `<kendo-bottomnavigation>` tag ([see example]({% slug templates_bottomnavigation %})).
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <kendo-bottomnavigation [items]="items">
|
|
14
|
-
* <ng-template kendoBottomNavigationItemTemplate let-item>
|
|
15
|
-
* <span>{{ item.text }}</span>
|
|
16
|
-
* </ng-template>
|
|
17
|
-
* </kendo-bottomnavigation>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export class BottomNavigationItemTemplateDirective {
|
|
21
|
-
templateRef;
|
|
22
|
-
constructor(templateRef) {
|
|
23
|
-
this.templateRef = templateRef;
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: BottomNavigationItemTemplateDirective, isStandalone: true, selector: "[kendoBottomNavigationItemTemplate]", ngImport: i0 });
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationItemTemplateDirective, decorators: [{
|
|
29
|
-
type: Directive,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: '[kendoBottomNavigationItemTemplate]',
|
|
32
|
-
standalone: true
|
|
33
|
-
}]
|
|
34
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
35
|
-
type: Optional
|
|
36
|
-
}] }] });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the possible theme colors of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* * `primary`—Applies coloring based on the primary theme color.
|
|
10
|
-
* * `secondary`—Applies coloring based on the secondary theme color.
|
|
11
|
-
* * `tertiary`—Applies coloring based on the tertiary theme color.
|
|
12
|
-
* * `info`—Applies coloring based on the info theme color.
|
|
13
|
-
* * `success`—Applies coloring based on the success theme color.
|
|
14
|
-
* * `warning`—Applies coloring based on the warning theme color.
|
|
15
|
-
* * `error`—Applies coloring based on the error theme color.
|
|
16
|
-
* * `dark`—Applies coloring based on the dark theme color.
|
|
17
|
-
* * `light`—Applies coloring based on the light theme color.
|
|
18
|
-
* * `inverse`—Applies coloring based on the inverted theme color.
|
|
19
|
-
*/
|
|
20
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
7
|
-
import { KENDO_BOTTOMNAVIGATION } from './directives';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "./bottomnavigation/bottomnavigation.component";
|
|
10
|
-
import * as i2 from "./bottomnavigation/templates/item-template.directive";
|
|
11
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
|
-
/**
|
|
13
|
-
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi'])
|
|
14
|
-
* definition for the BottomNavigation component.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import { BottomNavigationModule } from '@progress/kendo-angular-navigation';
|
|
19
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
20
|
-
* import { NgModule } from '@angular/core';
|
|
21
|
-
* import { AppComponent } from './app.component';
|
|
22
|
-
*
|
|
23
|
-
* @NgModule({
|
|
24
|
-
* declarations: [AppComponent],
|
|
25
|
-
* imports: [BrowserModule, BottomNavigationModule],
|
|
26
|
-
* bootstrap: [AppComponent]
|
|
27
|
-
* })
|
|
28
|
-
* export class AppModule {}
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export class BottomNavigationModule {
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
33
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationModule, imports: [i1.BottomNavigationComponent, i2.BottomNavigationItemTemplateDirective], exports: [i1.BottomNavigationComponent, i2.BottomNavigationItemTemplateDirective] });
|
|
34
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationModule, providers: [IconsService], imports: [i1.BottomNavigationComponent] });
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BottomNavigationModule, decorators: [{
|
|
37
|
-
type: NgModule,
|
|
38
|
-
args: [{
|
|
39
|
-
exports: [...KENDO_BOTTOMNAVIGATION],
|
|
40
|
-
imports: [...KENDO_BOTTOMNAVIGATION],
|
|
41
|
-
providers: [IconsService]
|
|
42
|
-
}]
|
|
43
|
-
}] });
|