@progress/kendo-angular-navigation 1.1.6 → 2.0.0-next.202203211629
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/{dist/es2015/appbar → appbar}/appbar-section.component.d.ts +3 -0
- package/{dist/es2015/appbar → appbar}/appbar-spacer.component.d.ts +4 -1
- package/{dist/es2015/appbar → appbar}/appbar.component.d.ts +11 -8
- package/{dist/es2015/appbar → appbar}/models/position-mode.d.ts +0 -0
- package/{dist/es2015/appbar → appbar}/models/position.d.ts +0 -0
- package/{dist/es2015/appbar → appbar}/models/theme-color.d.ts +0 -0
- package/{dist/es2015/appbar.module.d.ts → appbar.module.d.ts} +8 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/bottomnavigation-item.component.d.ts +11 -8
- package/{dist/es2015/bottomnavigation → bottomnavigation}/bottomnavigation.component.d.ts +13 -6
- package/{dist/es2015/bottomnavigation → bottomnavigation}/constants.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/events/select-event.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/templates/item-template.directive.d.ts +3 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-fill.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-item-flow.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-item.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-position-mode.d.ts +0 -0
- package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-theme-color.d.ts +0 -0
- package/{dist/es2015/bottomnavigation.module.d.ts → bottomnavigation.module.d.ts} +8 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/breadcrumb-item.component.d.ts +6 -3
- package/{dist/es2015/breadcrumb → breadcrumb}/breadcrumb.component.d.ts +9 -4
- package/{dist/es2015/breadcrumb → breadcrumb}/list.component.d.ts +3 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/models/breadcrumb-item.interface.d.ts +0 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/models/collapse-mode.d.ts +0 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/models/constants.d.ts +0 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/template-directives/item-template.directive.d.ts +3 -0
- package/{dist/es2015/breadcrumb → breadcrumb}/template-directives/separator.directive.d.ts +5 -1
- package/{dist/es2015/breadcrumb → breadcrumb}/util.d.ts +0 -0
- package/{dist/es2015/breadcrumb.module.d.ts → breadcrumb.module.d.ts} +11 -0
- package/bundles/kendo-angular-navigation.umd.js +5 -0
- package/{dist/es2015/common → common}/direction.d.ts +0 -0
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/esm2015/appbar/appbar-section.component.js +45 -0
- package/{dist/es2015 → esm2015}/appbar/appbar-spacer.component.js +21 -25
- package/{dist/es2015 → esm2015}/appbar/appbar.component.js +65 -79
- package/{dist/es → esm2015}/appbar/models/position-mode.js +1 -0
- package/{dist/es2015 → esm2015}/appbar/models/position.js +1 -0
- package/{dist/es2015 → esm2015}/appbar/models/theme-color.js +1 -0
- package/{dist/es2015 → esm2015}/appbar.module.js +18 -11
- package/esm2015/bottomnavigation/bottomnavigation-item.component.js +101 -0
- package/{dist/es2015 → esm2015}/bottomnavigation/bottomnavigation.component.js +70 -88
- package/{dist/es2015 → esm2015}/bottomnavigation/constants.js +0 -0
- package/{dist/es2015 → esm2015}/bottomnavigation/events/select-event.js +0 -0
- package/esm2015/bottomnavigation/templates/item-template.directive.js +26 -0
- package/{dist/es2015 → esm2015}/bottomnavigation/types/bottomnavigation-fill.js +1 -0
- package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-item-flow.js +1 -0
- package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-item.js +1 -0
- package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-position-mode.js +1 -0
- package/{dist/es2015 → esm2015}/bottomnavigation/types/bottomnavigation-theme-color.js +1 -0
- package/{dist/es2015 → esm2015}/bottomnavigation.module.js +14 -11
- package/esm2015/breadcrumb/breadcrumb-item.component.js +160 -0
- package/{dist/es2015 → esm2015}/breadcrumb/breadcrumb.component.js +88 -73
- package/esm2015/breadcrumb/list.component.js +91 -0
- package/{dist/es → esm2015}/breadcrumb/models/breadcrumb-item.interface.js +1 -0
- package/{dist/es → esm2015}/breadcrumb/models/collapse-mode.js +1 -0
- package/{dist/es2015 → esm2015}/breadcrumb/models/constants.js +0 -0
- package/esm2015/breadcrumb/template-directives/item-template.directive.js +27 -0
- package/esm2015/breadcrumb/template-directives/separator.directive.js +69 -0
- package/{dist/es2015 → esm2015}/breadcrumb/util.js +0 -3
- package/{dist/es2015 → esm2015}/breadcrumb.module.js +18 -11
- package/{dist/es → esm2015}/common/direction.js +1 -0
- package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -3
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/common/util.js +0 -0
- package/{dist/es/appbar/models/position.js → esm2015/kendo-angular-navigation.js} +4 -0
- package/{dist/es → esm2015}/main.js +2 -0
- package/{dist/es2015 → esm2015}/navigation.module.js +20 -13
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-navigation.js} +581 -568
- package/{dist/es/breadcrumb/models/constants.js → kendo-angular-navigation.d.ts} +3 -2
- package/{dist/es2015/main.d.ts → main.d.ts} +2 -0
- package/{dist/es2015/navigation.module.d.ts → navigation.module.d.ts} +7 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +31 -107
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-navigation.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/appbar/appbar-section.component.js +0 -41
- package/dist/es/appbar/appbar-spacer.component.js +0 -77
- package/dist/es/appbar/appbar.component.js +0 -202
- package/dist/es/appbar/models/theme-color.js +0 -4
- package/dist/es/appbar.module.js +0 -61
- package/dist/es/bottomnavigation/bottomnavigation-item.component.js +0 -136
- package/dist/es/bottomnavigation/bottomnavigation.component.js +0 -356
- package/dist/es/bottomnavigation/constants.js +0 -12
- package/dist/es/bottomnavigation/events/select-event.js +0 -17
- package/dist/es/bottomnavigation/templates/item-template.directive.js +0 -25
- package/dist/es/bottomnavigation/types/bottomnavigation-fill.js +0 -4
- package/dist/es/bottomnavigation/types/bottomnavigation-theme-color.js +0 -19
- package/dist/es/bottomnavigation.module.js +0 -57
- package/dist/es/breadcrumb/breadcrumb-item.component.js +0 -98
- package/dist/es/breadcrumb/breadcrumb.component.js +0 -274
- package/dist/es/breadcrumb/list.component.js +0 -80
- package/dist/es/breadcrumb/template-directives/item-template.directive.js +0 -26
- package/dist/es/breadcrumb/template-directives/separator.directive.js +0 -78
- package/dist/es/breadcrumb/util.js +0 -27
- package/dist/es/breadcrumb.module.js +0 -68
- package/dist/es/common/dom-queries.js +0 -25
- package/dist/es/common/preventable-event.js +0 -36
- package/dist/es/common/util.js +0 -17
- package/dist/es/index.js +0 -15
- package/dist/es/navigation.module.js +0 -55
- package/dist/es/package-metadata.js +0 -15
- package/dist/es2015/appbar/appbar-section.component.js +0 -60
- package/dist/es2015/appbar/models/position-mode.js +0 -4
- package/dist/es2015/bottomnavigation/bottomnavigation-item.component.js +0 -110
- package/dist/es2015/bottomnavigation/templates/item-template.directive.js +0 -24
- package/dist/es2015/bottomnavigation/types/bottomnavigation-item-flow.js +0 -4
- package/dist/es2015/bottomnavigation/types/bottomnavigation-item.js +0 -4
- package/dist/es2015/bottomnavigation/types/bottomnavigation-position-mode.js +0 -4
- package/dist/es2015/breadcrumb/breadcrumb-item.component.js +0 -128
- package/dist/es2015/breadcrumb/list.component.js +0 -98
- package/dist/es2015/breadcrumb/models/breadcrumb-item.interface.js +0 -4
- package/dist/es2015/breadcrumb/models/collapse-mode.js +0 -4
- package/dist/es2015/breadcrumb/template-directives/item-template.directive.js +0 -25
- package/dist/es2015/breadcrumb/template-directives/separator.directive.js +0 -71
- package/dist/es2015/common/direction.js +0 -4
- package/dist/es2015/index.d.ts +0 -15
- package/dist/es2015/index.js +0 -15
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -19
- package/dist/fesm5/index.js +0 -1633
- package/dist/npm/appbar/appbar-section.component.js +0 -43
- package/dist/npm/appbar/appbar-spacer.component.js +0 -79
- package/dist/npm/appbar/appbar.component.js +0 -204
- package/dist/npm/appbar/models/position-mode.js +0 -6
- package/dist/npm/appbar/models/position.js +0 -6
- package/dist/npm/appbar/models/theme-color.js +0 -6
- package/dist/npm/appbar.module.js +0 -63
- package/dist/npm/bottomnavigation/bottomnavigation-item.component.js +0 -138
- package/dist/npm/bottomnavigation/bottomnavigation.component.js +0 -358
- package/dist/npm/bottomnavigation/constants.js +0 -14
- package/dist/npm/bottomnavigation/events/select-event.js +0 -19
- package/dist/npm/bottomnavigation/templates/item-template.directive.js +0 -27
- package/dist/npm/bottomnavigation/types/bottomnavigation-fill.js +0 -6
- package/dist/npm/bottomnavigation/types/bottomnavigation-item-flow.js +0 -6
- package/dist/npm/bottomnavigation/types/bottomnavigation-item.js +0 -6
- package/dist/npm/bottomnavigation/types/bottomnavigation-position-mode.js +0 -6
- package/dist/npm/bottomnavigation/types/bottomnavigation-theme-color.js +0 -21
- package/dist/npm/bottomnavigation.module.js +0 -59
- package/dist/npm/breadcrumb/breadcrumb-item.component.js +0 -100
- package/dist/npm/breadcrumb/breadcrumb.component.js +0 -276
- package/dist/npm/breadcrumb/list.component.js +0 -82
- package/dist/npm/breadcrumb/models/breadcrumb-item.interface.js +0 -6
- package/dist/npm/breadcrumb/models/collapse-mode.js +0 -6
- package/dist/npm/breadcrumb/models/constants.js +0 -10
- package/dist/npm/breadcrumb/template-directives/item-template.directive.js +0 -28
- package/dist/npm/breadcrumb/template-directives/separator.directive.js +0 -80
- package/dist/npm/breadcrumb/util.js +0 -30
- package/dist/npm/breadcrumb.module.js +0 -70
- package/dist/npm/common/direction.js +0 -6
- package/dist/npm/common/dom-queries.js +0 -28
- package/dist/npm/common/preventable-event.js +0 -38
- package/dist/npm/common/util.js +0 -19
- package/dist/npm/index.js +0 -25
- package/dist/npm/main.js +0 -33
- package/dist/npm/navigation.module.js +0 -57
- package/dist/npm/package-metadata.js +0 -17
- package/dist/systemjs/kendo-angular-navigation.js +0 -5
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, HostBinding, Input, Output, EventEmitter, ElementRef, Renderer2, ContentChild, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
8
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
|
-
import { Subscription } from 'rxjs';
|
|
11
|
-
import { BottomNavigationSelectEvent } from './events/select-event';
|
|
12
|
-
import { BottomNavigationItemTemplateDirective } from './templates/item-template.directive';
|
|
13
|
-
import { closestItem, itemIndex } from '../common/dom-queries';
|
|
14
|
-
import { BOTTOMNAVIGATION_ITEM_INDEX, colors } from './constants';
|
|
15
|
-
import { packageMetadata } from '../package-metadata';
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [Kendo UI BottomNavigation component for Angular]({% slug overview_bottomnavigation %}).
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts-no-run
|
|
21
|
-
* _@Component({
|
|
22
|
-
* selector: 'my-app',
|
|
23
|
-
* template: `
|
|
24
|
-
* <kendo-bottomnavigation [items]="items"></kendo-bottomnavigation>
|
|
25
|
-
* `
|
|
26
|
-
* })
|
|
27
|
-
* class AppComponent {
|
|
28
|
-
* public items: Array<any> = [
|
|
29
|
-
* { text: 'Inbox', icon: 'email', selected: true },
|
|
30
|
-
* { text: 'Calendar', icon: 'calendar'},
|
|
31
|
-
* { text: 'Profile', icon: 'user'}
|
|
32
|
-
* ]
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
var BottomNavigationComponent = /** @class */ (function () {
|
|
37
|
-
function BottomNavigationComponent(localization, hostElement, ngZone, changeDetector, renderer) {
|
|
38
|
-
var _this = this;
|
|
39
|
-
this.localization = localization;
|
|
40
|
-
this.hostElement = hostElement;
|
|
41
|
-
this.ngZone = ngZone;
|
|
42
|
-
this.changeDetector = changeDetector;
|
|
43
|
-
this.renderer = renderer;
|
|
44
|
-
/**
|
|
45
|
-
* Sets a top border to the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
46
|
-
*
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
this.border = false;
|
|
50
|
-
/**
|
|
51
|
-
* Disables the whole BottomNavigation.
|
|
52
|
-
*
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
this.disabled = false;
|
|
56
|
-
/**
|
|
57
|
-
* Fires each time an item is selected. This event is preventable.
|
|
58
|
-
*/
|
|
59
|
-
this.select = new EventEmitter();
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
this.hostClass = true;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
this.role = 'navigation';
|
|
68
|
-
this._fill = 'flat';
|
|
69
|
-
this._itemFlow = 'vertical';
|
|
70
|
-
this._positionMode = 'fixed';
|
|
71
|
-
this._themeColor = 'primary';
|
|
72
|
-
this._nativeHostElement = this.hostElement.nativeElement;
|
|
73
|
-
this.subscriptions = new Subscription();
|
|
74
|
-
this.rtl = false;
|
|
75
|
-
validatePackage(packageMetadata);
|
|
76
|
-
this.dynamicRTLSubscription = this.localization.changes.subscribe(function (_a) {
|
|
77
|
-
var rtl = _a.rtl;
|
|
78
|
-
_this.rtl = rtl;
|
|
79
|
-
_this.direction = _this.rtl ? 'rtl' : 'ltr';
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "fill", {
|
|
83
|
-
get: function () {
|
|
84
|
-
return this._fill;
|
|
85
|
-
},
|
|
86
|
-
/**
|
|
87
|
-
* The fill style of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
88
|
-
*
|
|
89
|
-
* * The possible values are:
|
|
90
|
-
* * (Default) `flat`
|
|
91
|
-
* * `solid`
|
|
92
|
-
*/
|
|
93
|
-
set: function (fill) {
|
|
94
|
-
this.renderer.removeClass(this._nativeHostElement, "k-bottom-nav-" + this.fill);
|
|
95
|
-
this._fill = fill === 'solid' ? 'solid' : 'flat';
|
|
96
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-" + this._fill);
|
|
97
|
-
},
|
|
98
|
-
enumerable: true,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "itemFlow", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this._itemFlow;
|
|
104
|
-
},
|
|
105
|
-
/**
|
|
106
|
-
* Specifies how the icon and text label are positioned in the BottomNavigation items ([see example]({% slug items_bottomnavigation %}#toc-itemflow)).
|
|
107
|
-
*
|
|
108
|
-
* The possible values are:
|
|
109
|
-
* * (Default) `vertical` - Renders the text below the icon.
|
|
110
|
-
* * `horizontal` - Renders the icon and the text on the same line.
|
|
111
|
-
*/
|
|
112
|
-
set: function (itemFlow) {
|
|
113
|
-
this.renderer.removeClass(this._nativeHostElement, "k-bottom-nav-item-flow-" + this.itemFlow);
|
|
114
|
-
this._itemFlow = itemFlow === 'horizontal' ? 'horizontal' : 'vertical';
|
|
115
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-item-flow-" + this._itemFlow);
|
|
116
|
-
},
|
|
117
|
-
enumerable: true,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "positionMode", {
|
|
121
|
-
get: function () {
|
|
122
|
-
return this._positionMode;
|
|
123
|
-
},
|
|
124
|
-
/**
|
|
125
|
-
* Specifies the position and behavior of the BottomNavigation when the page is scrollable ([see example]({% slug positioning_bottomnavigation %})).
|
|
126
|
-
*
|
|
127
|
-
* The possible values are:
|
|
128
|
-
* * (Default) `fixed` - The BottomNavigation always stays at the bottom of the viewport, regardless of the page scroll position.
|
|
129
|
-
* * `sticky` - Positions the BottomNavigation at the end of the scrollable container.
|
|
130
|
-
*/
|
|
131
|
-
set: function (positionMode) {
|
|
132
|
-
this.renderer.removeClass(this._nativeHostElement, "k-pos-" + this.positionMode);
|
|
133
|
-
this._positionMode = positionMode === 'sticky' ? 'sticky' : 'fixed';
|
|
134
|
-
this.renderer.addClass(this._nativeHostElement, "k-pos-" + this._positionMode);
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "themeColor", {
|
|
140
|
-
get: function () {
|
|
141
|
-
return this._themeColor;
|
|
142
|
-
},
|
|
143
|
-
/**
|
|
144
|
-
* Specifies the theme color of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
145
|
-
*
|
|
146
|
-
* * The possible values are:
|
|
147
|
-
* * (Default) `primary` - Applies coloring based on the primary theme color.
|
|
148
|
-
* * `secondary` - Applies coloring based on the secondary theme color.
|
|
149
|
-
* * `tertiary` - Applies coloring based on the tertiary theme color.
|
|
150
|
-
* * `info` - Applies coloring based on the info theme color.
|
|
151
|
-
* * `success` - Applies coloring based on the success theme color.
|
|
152
|
-
* * `warning` - Applies coloring based on the warning theme color.
|
|
153
|
-
* * `error` - Applies coloring based on the error theme color.
|
|
154
|
-
* * `dark` - Applies coloring based on the dark theme color.
|
|
155
|
-
* * `light` - Applies coloring based on the light theme color.
|
|
156
|
-
* * `inverse` - Applies coloring based on the inverted theme color.
|
|
157
|
-
*/
|
|
158
|
-
set: function (themeColor) {
|
|
159
|
-
var newColor = colors.find(function (color) { return color === themeColor; });
|
|
160
|
-
if (newColor) {
|
|
161
|
-
this.renderer.removeClass(this._nativeHostElement, "k-bottom-nav-" + this._themeColor);
|
|
162
|
-
this._themeColor = themeColor;
|
|
163
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-" + this._themeColor);
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
enumerable: true,
|
|
167
|
-
configurable: true
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "borderClass", {
|
|
170
|
-
/**
|
|
171
|
-
* @hidden
|
|
172
|
-
*/
|
|
173
|
-
get: function () {
|
|
174
|
-
return this.border;
|
|
175
|
-
},
|
|
176
|
-
enumerable: true,
|
|
177
|
-
configurable: true
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(BottomNavigationComponent.prototype, "disabledClass", {
|
|
180
|
-
/**
|
|
181
|
-
* @hidden
|
|
182
|
-
*/
|
|
183
|
-
get: function () {
|
|
184
|
-
return this.disabled;
|
|
185
|
-
},
|
|
186
|
-
enumerable: true,
|
|
187
|
-
configurable: true
|
|
188
|
-
});
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
BottomNavigationComponent.prototype.ngOnInit = function () {
|
|
193
|
-
this.initDomEvents();
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* @hidden
|
|
197
|
-
*/
|
|
198
|
-
BottomNavigationComponent.prototype.ngAfterViewInit = function () {
|
|
199
|
-
this.applyClasses();
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* @hidden
|
|
203
|
-
*/
|
|
204
|
-
BottomNavigationComponent.prototype.ngOnDestroy = function () {
|
|
205
|
-
if (this.dynamicRTLSubscription) {
|
|
206
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
207
|
-
}
|
|
208
|
-
this.subscriptions.unsubscribe();
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* @hidden
|
|
212
|
-
*/
|
|
213
|
-
BottomNavigationComponent.prototype.selectItem = function (idx, args) {
|
|
214
|
-
var eventArgs = new BottomNavigationSelectEvent(tslib_1.__assign({}, args));
|
|
215
|
-
this.select.emit(eventArgs);
|
|
216
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
217
|
-
this.selectedIdx = idx;
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
BottomNavigationComponent.prototype.applyClasses = function () {
|
|
221
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-" + this.fill);
|
|
222
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-item-flow-" + this.itemFlow);
|
|
223
|
-
this.renderer.addClass(this._nativeHostElement, "k-pos-" + this.positionMode);
|
|
224
|
-
this.renderer.addClass(this._nativeHostElement, "k-bottom-nav-" + this.themeColor);
|
|
225
|
-
};
|
|
226
|
-
BottomNavigationComponent.prototype.initDomEvents = function () {
|
|
227
|
-
var _this = this;
|
|
228
|
-
if (!this.hostElement) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
this.ngZone.runOutsideAngular(function () {
|
|
232
|
-
_this.subscriptions.add(_this.renderer.listen(_this._nativeHostElement, 'click', _this.clickHandler.bind(_this)));
|
|
233
|
-
_this.subscriptions.add(_this.renderer.listen(_this._nativeHostElement, 'keydown', _this.keyDownHandler.bind(_this)));
|
|
234
|
-
});
|
|
235
|
-
};
|
|
236
|
-
BottomNavigationComponent.prototype.clickHandler = function (e) {
|
|
237
|
-
var _this = this;
|
|
238
|
-
var itemIdx = this.getBottomNavigationItemIndex(e.target);
|
|
239
|
-
var item = this.items[itemIdx];
|
|
240
|
-
if (!item) {
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
if (item.disabled) {
|
|
244
|
-
e.preventDefault();
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
var args = {
|
|
248
|
-
index: itemIdx,
|
|
249
|
-
item: item,
|
|
250
|
-
originalEvent: e,
|
|
251
|
-
sender: this
|
|
252
|
-
};
|
|
253
|
-
this.ngZone.run(function () {
|
|
254
|
-
_this.selectItem(itemIdx, args);
|
|
255
|
-
_this.changeDetector.markForCheck();
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
|
-
BottomNavigationComponent.prototype.keyDownHandler = function (e) {
|
|
259
|
-
var isEnterOrSpace = e.keyCode === Keys.Enter || e.keyCode === Keys.Space;
|
|
260
|
-
if (!isEnterOrSpace) {
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
this.clickHandler(e);
|
|
264
|
-
};
|
|
265
|
-
BottomNavigationComponent.prototype.getBottomNavigationItemIndex = function (target) {
|
|
266
|
-
var item = closestItem(target, BOTTOMNAVIGATION_ITEM_INDEX, this._nativeHostElement);
|
|
267
|
-
if (item) {
|
|
268
|
-
return itemIndex(item, BOTTOMNAVIGATION_ITEM_INDEX);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
tslib_1.__decorate([
|
|
272
|
-
Input(),
|
|
273
|
-
tslib_1.__metadata("design:type", Array)
|
|
274
|
-
], BottomNavigationComponent.prototype, "items", void 0);
|
|
275
|
-
tslib_1.__decorate([
|
|
276
|
-
Input(),
|
|
277
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
278
|
-
], BottomNavigationComponent.prototype, "border", void 0);
|
|
279
|
-
tslib_1.__decorate([
|
|
280
|
-
Input(),
|
|
281
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
282
|
-
], BottomNavigationComponent.prototype, "disabled", void 0);
|
|
283
|
-
tslib_1.__decorate([
|
|
284
|
-
Input(),
|
|
285
|
-
tslib_1.__metadata("design:type", String),
|
|
286
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
287
|
-
], BottomNavigationComponent.prototype, "fill", null);
|
|
288
|
-
tslib_1.__decorate([
|
|
289
|
-
Input(),
|
|
290
|
-
tslib_1.__metadata("design:type", String),
|
|
291
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
292
|
-
], BottomNavigationComponent.prototype, "itemFlow", null);
|
|
293
|
-
tslib_1.__decorate([
|
|
294
|
-
Input(),
|
|
295
|
-
tslib_1.__metadata("design:type", String),
|
|
296
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
297
|
-
], BottomNavigationComponent.prototype, "positionMode", null);
|
|
298
|
-
tslib_1.__decorate([
|
|
299
|
-
Input(),
|
|
300
|
-
tslib_1.__metadata("design:type", String),
|
|
301
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
302
|
-
], BottomNavigationComponent.prototype, "themeColor", null);
|
|
303
|
-
tslib_1.__decorate([
|
|
304
|
-
Output(),
|
|
305
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
306
|
-
], BottomNavigationComponent.prototype, "select", void 0);
|
|
307
|
-
tslib_1.__decorate([
|
|
308
|
-
HostBinding('class.k-hstack'),
|
|
309
|
-
HostBinding('class.k-justify-content-stretch'),
|
|
310
|
-
HostBinding('class.k-bottom-nav'),
|
|
311
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
312
|
-
], BottomNavigationComponent.prototype, "hostClass", void 0);
|
|
313
|
-
tslib_1.__decorate([
|
|
314
|
-
HostBinding('class.k-bottom-nav-border'),
|
|
315
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
316
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
317
|
-
], BottomNavigationComponent.prototype, "borderClass", null);
|
|
318
|
-
tslib_1.__decorate([
|
|
319
|
-
HostBinding('class.k-state-disabled'),
|
|
320
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
321
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
322
|
-
], BottomNavigationComponent.prototype, "disabledClass", null);
|
|
323
|
-
tslib_1.__decorate([
|
|
324
|
-
HostBinding('attr.role'),
|
|
325
|
-
tslib_1.__metadata("design:type", String)
|
|
326
|
-
], BottomNavigationComponent.prototype, "role", void 0);
|
|
327
|
-
tslib_1.__decorate([
|
|
328
|
-
HostBinding('attr.dir'),
|
|
329
|
-
tslib_1.__metadata("design:type", String)
|
|
330
|
-
], BottomNavigationComponent.prototype, "direction", void 0);
|
|
331
|
-
tslib_1.__decorate([
|
|
332
|
-
ContentChild(BottomNavigationItemTemplateDirective, { static: false }),
|
|
333
|
-
tslib_1.__metadata("design:type", BottomNavigationItemTemplateDirective)
|
|
334
|
-
], BottomNavigationComponent.prototype, "itemTemplate", void 0);
|
|
335
|
-
BottomNavigationComponent = tslib_1.__decorate([
|
|
336
|
-
Component({
|
|
337
|
-
exportAs: 'kendoBottomNavigation',
|
|
338
|
-
selector: 'kendo-bottomnavigation',
|
|
339
|
-
providers: [
|
|
340
|
-
LocalizationService,
|
|
341
|
-
{
|
|
342
|
-
provide: L10N_PREFIX,
|
|
343
|
-
useValue: 'kendo.bottomnavigation'
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
template: "\n <ng-container *ngIf=\"items\">\n <span kendoBottomNavigationItem\n *ngFor=\"let item of items; let idx=index\"\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." + BOTTOMNAVIGATION_ITEM_INDEX + "]=\"idx\"\n [ngClass]=\"item.cssClass\"\n [ngStyle]=\"item.cssStyle\"\n [orientation]=\"itemFlow\">\n </span>\n </ng-container>\n "
|
|
347
|
-
}),
|
|
348
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService,
|
|
349
|
-
ElementRef,
|
|
350
|
-
NgZone,
|
|
351
|
-
ChangeDetectorRef,
|
|
352
|
-
Renderer2])
|
|
353
|
-
], BottomNavigationComponent);
|
|
354
|
-
return BottomNavigationComponent;
|
|
355
|
-
}());
|
|
356
|
-
export { BottomNavigationComponent };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 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 var BOTTOMNAVIGATION_ITEM_INDEX = 'data-kendo-bottomnavigation-index';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export var colors = ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { PreventableEvent } from '../../common/preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `select` event of the BottomNavigation.
|
|
9
|
-
*/
|
|
10
|
-
var BottomNavigationSelectEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(BottomNavigationSelectEvent, _super);
|
|
12
|
-
function BottomNavigationSelectEvent() {
|
|
13
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
return BottomNavigationSelectEvent;
|
|
16
|
-
}(PreventableEvent));
|
|
17
|
-
export { BottomNavigationSelectEvent };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the item content of the BottomNavigation.
|
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
|
10
|
-
* with the `kendoBottomNavigationItemTemplate` directive inside the `<kendo-bottomnavigation>` tag ([see example]({% slug templates_bottomnavigation %})).
|
|
11
|
-
*/
|
|
12
|
-
var BottomNavigationItemTemplateDirective = /** @class */ (function () {
|
|
13
|
-
function BottomNavigationItemTemplateDirective(templateRef) {
|
|
14
|
-
this.templateRef = templateRef;
|
|
15
|
-
}
|
|
16
|
-
BottomNavigationItemTemplateDirective = tslib_1.__decorate([
|
|
17
|
-
Directive({
|
|
18
|
-
selector: '[kendoBottomNavigationItemTemplate]'
|
|
19
|
-
}),
|
|
20
|
-
tslib_1.__param(0, Optional()),
|
|
21
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
22
|
-
], BottomNavigationItemTemplateDirective);
|
|
23
|
-
return BottomNavigationItemTemplateDirective;
|
|
24
|
-
}());
|
|
25
|
-
export { BottomNavigationItemTemplateDirective };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the theme color of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
|
|
7
|
-
*
|
|
8
|
-
* * The possible values are:
|
|
9
|
-
* * (Default) `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
|
-
*/
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { BottomNavigationItemComponent } from './bottomnavigation/bottomnavigation-item.component';
|
|
7
|
-
import { BottomNavigationItemTemplateDirective } from './bottomnavigation/templates/item-template.directive';
|
|
8
|
-
import { NgModule } from '@angular/core';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
import { BottomNavigationComponent } from './bottomnavigation/bottomnavigation.component';
|
|
11
|
-
var templateDirectives = [BottomNavigationItemTemplateDirective];
|
|
12
|
-
var exportedComponents = [BottomNavigationComponent].concat(templateDirectives);
|
|
13
|
-
var declarations = [BottomNavigationItemComponent].concat(exportedComponents);
|
|
14
|
-
/**
|
|
15
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
16
|
-
* definition for the BottomNavigation component.
|
|
17
|
-
* @example
|
|
18
|
-
*
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* // Import the BottomNavigation module
|
|
21
|
-
* import { BottomNavigationModule } from '@progress/kendo-angular-navigation';
|
|
22
|
-
*
|
|
23
|
-
* // The browser platform with a compiler
|
|
24
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
26
|
-
*
|
|
27
|
-
* import { NgModule } from '@angular/core';
|
|
28
|
-
*
|
|
29
|
-
* // Import the app component
|
|
30
|
-
* import { AppComponent } from './app.component';
|
|
31
|
-
*
|
|
32
|
-
* // Define the app module
|
|
33
|
-
* _@NgModule({
|
|
34
|
-
* declarations: [AppComponent], // declare app component
|
|
35
|
-
* imports: [BrowserModule, BottomNavigationModule], // import BottomNavigation module
|
|
36
|
-
* bootstrap: [AppComponent]
|
|
37
|
-
* })
|
|
38
|
-
* export class AppModule {}
|
|
39
|
-
*
|
|
40
|
-
* // Compile and launch the module
|
|
41
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
42
|
-
*
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
var BottomNavigationModule = /** @class */ (function () {
|
|
46
|
-
function BottomNavigationModule() {
|
|
47
|
-
}
|
|
48
|
-
BottomNavigationModule = tslib_1.__decorate([
|
|
49
|
-
NgModule({
|
|
50
|
-
declarations: [declarations],
|
|
51
|
-
exports: [exportedComponents],
|
|
52
|
-
imports: [CommonModule]
|
|
53
|
-
})
|
|
54
|
-
], BottomNavigationModule);
|
|
55
|
-
return BottomNavigationModule;
|
|
56
|
-
}());
|
|
57
|
-
export { BottomNavigationModule };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input, ElementRef, TemplateRef, HostBinding } from '@angular/core';
|
|
7
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
|
-
import { outerWidth } from '../common/util';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var BreadCrumbItemComponent = /** @class */ (function () {
|
|
13
|
-
function BreadCrumbItemComponent(el) {
|
|
14
|
-
this.el = el;
|
|
15
|
-
this.index = -1;
|
|
16
|
-
this.hostClasses = true;
|
|
17
|
-
this.disabled = false;
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(BreadCrumbItemComponent.prototype, "isRootItem", {
|
|
20
|
-
get: function () {
|
|
21
|
-
return this.item.context.isFirst;
|
|
22
|
-
},
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(BreadCrumbItemComponent.prototype, "isDisabled", {
|
|
27
|
-
get: function () {
|
|
28
|
-
return this.disabled || null;
|
|
29
|
-
},
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(BreadCrumbItemComponent.prototype, "isLastItem", {
|
|
34
|
-
get: function () {
|
|
35
|
-
return this.item.context.isLast;
|
|
36
|
-
},
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true
|
|
39
|
-
});
|
|
40
|
-
BreadCrumbItemComponent.prototype.ngOnInit = function () {
|
|
41
|
-
this.disabled = this.item.data && (this.item.data.disabled || this.item.context.isLast);
|
|
42
|
-
};
|
|
43
|
-
BreadCrumbItemComponent.prototype.ngAfterViewInit = function () {
|
|
44
|
-
if (isDocumentAvailable()) {
|
|
45
|
-
this.width = outerWidth(this.el.nativeElement);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
BreadCrumbItemComponent.prototype.onImageLoad = function () {
|
|
49
|
-
if (isDocumentAvailable()) {
|
|
50
|
-
this.width = outerWidth(this.el.nativeElement);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
Input(),
|
|
55
|
-
tslib_1.__metadata("design:type", Object)
|
|
56
|
-
], BreadCrumbItemComponent.prototype, "item", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
Input(),
|
|
59
|
-
tslib_1.__metadata("design:type", String)
|
|
60
|
-
], BreadCrumbItemComponent.prototype, "collapseMode", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
Input(),
|
|
63
|
-
tslib_1.__metadata("design:type", Number)
|
|
64
|
-
], BreadCrumbItemComponent.prototype, "index", void 0);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
Input(),
|
|
67
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
68
|
-
], BreadCrumbItemComponent.prototype, "itemTemplate", void 0);
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
HostBinding('class.k-flex-none'),
|
|
71
|
-
HostBinding('class.k-breadcrumb-item'),
|
|
72
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
73
|
-
], BreadCrumbItemComponent.prototype, "hostClasses", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
HostBinding('class.k-breadcrumb-root-item'),
|
|
76
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
77
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
78
|
-
], BreadCrumbItemComponent.prototype, "isRootItem", null);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
HostBinding('attr.aria-disabled'),
|
|
81
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
82
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
83
|
-
], BreadCrumbItemComponent.prototype, "isDisabled", null);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
HostBinding('class.k-breadcrumb-last-item'),
|
|
86
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
87
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
88
|
-
], BreadCrumbItemComponent.prototype, "isLastItem", null);
|
|
89
|
-
BreadCrumbItemComponent = tslib_1.__decorate([
|
|
90
|
-
Component({
|
|
91
|
-
selector: '[kendoBreadCrumbItem]',
|
|
92
|
-
template: "\n <ng-template #separator>\n <ng-content select=\"[kendoBreadCrumbSeparator]\"></ng-content>\n </ng-template>\n\n <ng-container *ngIf=\"collapseMode === 'wrap'\">\n <ng-container *ngTemplateOutlet=\"separator\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!item.context.collapsed\">\n <span\n *ngIf=\"!itemTemplate\"\n [ngClass]=\"{\n 'k-breadcrumb-root-link': item.context.isFirst,\n 'k-breadcrumb-link': index !== 0,\n 'k-breadcrumb-icontext-link': !!item.data.icon && !!item.data.text,\n 'k-breadcrumb-icon-link': !!item.data.icon && !item.data.text,\n 'k-state-disabled': disabled\n }\"\n [title]=\"item.data.title || ''\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-current]=\"item.context.isLast ? true : null\"\n role=\"link\"\n class=\"k-cursor-pointer k-flex-none\"\n >\n <img *ngIf=\"item.data.imageUrl\" (load)=\"onImageLoad()\" [src]=\"item.data.imageUrl\" class=\"k-image\" role=\"presentation\" />\n <span *ngIf=\"item.data.icon && !item.data.iconClass\" class=\"k-icon k-i-{{ item.data.icon }}\"></span>\n <span *ngIf=\"item.data.iconClass\" class=\"{{ item.data.iconClass }}\"></span>\n {{ item.data.text }}\n </span>\n <ng-template\n *ngIf=\"itemTemplate\"\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.data,\n index: index\n }\"\n ></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"collapseMode !== 'wrap'\">\n <ng-container *ngTemplateOutlet=\"separator\"></ng-container>\n </ng-container>\n "
|
|
93
|
-
}),
|
|
94
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef])
|
|
95
|
-
], BreadCrumbItemComponent);
|
|
96
|
-
return BreadCrumbItemComponent;
|
|
97
|
-
}());
|
|
98
|
-
export { BreadCrumbItemComponent };
|