@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.
Files changed (161) hide show
  1. package/{dist/es2015/appbar → appbar}/appbar-section.component.d.ts +3 -0
  2. package/{dist/es2015/appbar → appbar}/appbar-spacer.component.d.ts +4 -1
  3. package/{dist/es2015/appbar → appbar}/appbar.component.d.ts +11 -8
  4. package/{dist/es2015/appbar → appbar}/models/position-mode.d.ts +0 -0
  5. package/{dist/es2015/appbar → appbar}/models/position.d.ts +0 -0
  6. package/{dist/es2015/appbar → appbar}/models/theme-color.d.ts +0 -0
  7. package/{dist/es2015/appbar.module.d.ts → appbar.module.d.ts} +8 -0
  8. package/{dist/es2015/bottomnavigation → bottomnavigation}/bottomnavigation-item.component.d.ts +11 -8
  9. package/{dist/es2015/bottomnavigation → bottomnavigation}/bottomnavigation.component.d.ts +13 -6
  10. package/{dist/es2015/bottomnavigation → bottomnavigation}/constants.d.ts +0 -0
  11. package/{dist/es2015/bottomnavigation → bottomnavigation}/events/select-event.d.ts +0 -0
  12. package/{dist/es2015/bottomnavigation → bottomnavigation}/templates/item-template.directive.d.ts +3 -0
  13. package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-fill.d.ts +0 -0
  14. package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-item-flow.d.ts +0 -0
  15. package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-item.d.ts +0 -0
  16. package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-position-mode.d.ts +0 -0
  17. package/{dist/es2015/bottomnavigation → bottomnavigation}/types/bottomnavigation-theme-color.d.ts +0 -0
  18. package/{dist/es2015/bottomnavigation.module.d.ts → bottomnavigation.module.d.ts} +8 -0
  19. package/{dist/es2015/breadcrumb → breadcrumb}/breadcrumb-item.component.d.ts +6 -3
  20. package/{dist/es2015/breadcrumb → breadcrumb}/breadcrumb.component.d.ts +9 -4
  21. package/{dist/es2015/breadcrumb → breadcrumb}/list.component.d.ts +3 -0
  22. package/{dist/es2015/breadcrumb → breadcrumb}/models/breadcrumb-item.interface.d.ts +0 -0
  23. package/{dist/es2015/breadcrumb → breadcrumb}/models/collapse-mode.d.ts +0 -0
  24. package/{dist/es2015/breadcrumb → breadcrumb}/models/constants.d.ts +0 -0
  25. package/{dist/es2015/breadcrumb → breadcrumb}/template-directives/item-template.directive.d.ts +3 -0
  26. package/{dist/es2015/breadcrumb → breadcrumb}/template-directives/separator.directive.d.ts +5 -1
  27. package/{dist/es2015/breadcrumb → breadcrumb}/util.d.ts +0 -0
  28. package/{dist/es2015/breadcrumb.module.d.ts → breadcrumb.module.d.ts} +11 -0
  29. package/bundles/kendo-angular-navigation.umd.js +5 -0
  30. package/{dist/es2015/common → common}/direction.d.ts +0 -0
  31. package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
  32. package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
  33. package/{dist/es2015/common → common}/util.d.ts +0 -0
  34. package/esm2015/appbar/appbar-section.component.js +45 -0
  35. package/{dist/es2015 → esm2015}/appbar/appbar-spacer.component.js +21 -25
  36. package/{dist/es2015 → esm2015}/appbar/appbar.component.js +65 -79
  37. package/{dist/es → esm2015}/appbar/models/position-mode.js +1 -0
  38. package/{dist/es2015 → esm2015}/appbar/models/position.js +1 -0
  39. package/{dist/es2015 → esm2015}/appbar/models/theme-color.js +1 -0
  40. package/{dist/es2015 → esm2015}/appbar.module.js +18 -11
  41. package/esm2015/bottomnavigation/bottomnavigation-item.component.js +101 -0
  42. package/{dist/es2015 → esm2015}/bottomnavigation/bottomnavigation.component.js +70 -88
  43. package/{dist/es2015 → esm2015}/bottomnavigation/constants.js +0 -0
  44. package/{dist/es2015 → esm2015}/bottomnavigation/events/select-event.js +0 -0
  45. package/esm2015/bottomnavigation/templates/item-template.directive.js +26 -0
  46. package/{dist/es2015 → esm2015}/bottomnavigation/types/bottomnavigation-fill.js +1 -0
  47. package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-item-flow.js +1 -0
  48. package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-item.js +1 -0
  49. package/{dist/es → esm2015}/bottomnavigation/types/bottomnavigation-position-mode.js +1 -0
  50. package/{dist/es2015 → esm2015}/bottomnavigation/types/bottomnavigation-theme-color.js +1 -0
  51. package/{dist/es2015 → esm2015}/bottomnavigation.module.js +14 -11
  52. package/esm2015/breadcrumb/breadcrumb-item.component.js +160 -0
  53. package/{dist/es2015 → esm2015}/breadcrumb/breadcrumb.component.js +88 -73
  54. package/esm2015/breadcrumb/list.component.js +91 -0
  55. package/{dist/es → esm2015}/breadcrumb/models/breadcrumb-item.interface.js +1 -0
  56. package/{dist/es → esm2015}/breadcrumb/models/collapse-mode.js +1 -0
  57. package/{dist/es2015 → esm2015}/breadcrumb/models/constants.js +0 -0
  58. package/esm2015/breadcrumb/template-directives/item-template.directive.js +27 -0
  59. package/esm2015/breadcrumb/template-directives/separator.directive.js +69 -0
  60. package/{dist/es2015 → esm2015}/breadcrumb/util.js +0 -3
  61. package/{dist/es2015 → esm2015}/breadcrumb.module.js +18 -11
  62. package/{dist/es → esm2015}/common/direction.js +1 -0
  63. package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -3
  64. package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
  65. package/{dist/es2015 → esm2015}/common/util.js +0 -0
  66. package/{dist/es/appbar/models/position.js → esm2015/kendo-angular-navigation.js} +4 -0
  67. package/{dist/es → esm2015}/main.js +2 -0
  68. package/{dist/es2015 → esm2015}/navigation.module.js +20 -13
  69. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  70. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-navigation.js} +581 -568
  71. package/{dist/es/breadcrumb/models/constants.js → kendo-angular-navigation.d.ts} +3 -2
  72. package/{dist/es2015/main.d.ts → main.d.ts} +2 -0
  73. package/{dist/es2015/navigation.module.d.ts → navigation.module.d.ts} +7 -0
  74. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  75. package/package.json +31 -107
  76. package/schematics/ngAdd/index.js +5 -2
  77. package/schematics/ngAdd/index.js.map +1 -1
  78. package/dist/cdn/js/kendo-angular-navigation.js +0 -20
  79. package/dist/cdn/main.js +0 -5
  80. package/dist/es/appbar/appbar-section.component.js +0 -41
  81. package/dist/es/appbar/appbar-spacer.component.js +0 -77
  82. package/dist/es/appbar/appbar.component.js +0 -202
  83. package/dist/es/appbar/models/theme-color.js +0 -4
  84. package/dist/es/appbar.module.js +0 -61
  85. package/dist/es/bottomnavigation/bottomnavigation-item.component.js +0 -136
  86. package/dist/es/bottomnavigation/bottomnavigation.component.js +0 -356
  87. package/dist/es/bottomnavigation/constants.js +0 -12
  88. package/dist/es/bottomnavigation/events/select-event.js +0 -17
  89. package/dist/es/bottomnavigation/templates/item-template.directive.js +0 -25
  90. package/dist/es/bottomnavigation/types/bottomnavigation-fill.js +0 -4
  91. package/dist/es/bottomnavigation/types/bottomnavigation-theme-color.js +0 -19
  92. package/dist/es/bottomnavigation.module.js +0 -57
  93. package/dist/es/breadcrumb/breadcrumb-item.component.js +0 -98
  94. package/dist/es/breadcrumb/breadcrumb.component.js +0 -274
  95. package/dist/es/breadcrumb/list.component.js +0 -80
  96. package/dist/es/breadcrumb/template-directives/item-template.directive.js +0 -26
  97. package/dist/es/breadcrumb/template-directives/separator.directive.js +0 -78
  98. package/dist/es/breadcrumb/util.js +0 -27
  99. package/dist/es/breadcrumb.module.js +0 -68
  100. package/dist/es/common/dom-queries.js +0 -25
  101. package/dist/es/common/preventable-event.js +0 -36
  102. package/dist/es/common/util.js +0 -17
  103. package/dist/es/index.js +0 -15
  104. package/dist/es/navigation.module.js +0 -55
  105. package/dist/es/package-metadata.js +0 -15
  106. package/dist/es2015/appbar/appbar-section.component.js +0 -60
  107. package/dist/es2015/appbar/models/position-mode.js +0 -4
  108. package/dist/es2015/bottomnavigation/bottomnavigation-item.component.js +0 -110
  109. package/dist/es2015/bottomnavigation/templates/item-template.directive.js +0 -24
  110. package/dist/es2015/bottomnavigation/types/bottomnavigation-item-flow.js +0 -4
  111. package/dist/es2015/bottomnavigation/types/bottomnavigation-item.js +0 -4
  112. package/dist/es2015/bottomnavigation/types/bottomnavigation-position-mode.js +0 -4
  113. package/dist/es2015/breadcrumb/breadcrumb-item.component.js +0 -128
  114. package/dist/es2015/breadcrumb/list.component.js +0 -98
  115. package/dist/es2015/breadcrumb/models/breadcrumb-item.interface.js +0 -4
  116. package/dist/es2015/breadcrumb/models/collapse-mode.js +0 -4
  117. package/dist/es2015/breadcrumb/template-directives/item-template.directive.js +0 -25
  118. package/dist/es2015/breadcrumb/template-directives/separator.directive.js +0 -71
  119. package/dist/es2015/common/direction.js +0 -4
  120. package/dist/es2015/index.d.ts +0 -15
  121. package/dist/es2015/index.js +0 -15
  122. package/dist/es2015/index.metadata.json +0 -1
  123. package/dist/es2015/main.js +0 -19
  124. package/dist/fesm5/index.js +0 -1633
  125. package/dist/npm/appbar/appbar-section.component.js +0 -43
  126. package/dist/npm/appbar/appbar-spacer.component.js +0 -79
  127. package/dist/npm/appbar/appbar.component.js +0 -204
  128. package/dist/npm/appbar/models/position-mode.js +0 -6
  129. package/dist/npm/appbar/models/position.js +0 -6
  130. package/dist/npm/appbar/models/theme-color.js +0 -6
  131. package/dist/npm/appbar.module.js +0 -63
  132. package/dist/npm/bottomnavigation/bottomnavigation-item.component.js +0 -138
  133. package/dist/npm/bottomnavigation/bottomnavigation.component.js +0 -358
  134. package/dist/npm/bottomnavigation/constants.js +0 -14
  135. package/dist/npm/bottomnavigation/events/select-event.js +0 -19
  136. package/dist/npm/bottomnavigation/templates/item-template.directive.js +0 -27
  137. package/dist/npm/bottomnavigation/types/bottomnavigation-fill.js +0 -6
  138. package/dist/npm/bottomnavigation/types/bottomnavigation-item-flow.js +0 -6
  139. package/dist/npm/bottomnavigation/types/bottomnavigation-item.js +0 -6
  140. package/dist/npm/bottomnavigation/types/bottomnavigation-position-mode.js +0 -6
  141. package/dist/npm/bottomnavigation/types/bottomnavigation-theme-color.js +0 -21
  142. package/dist/npm/bottomnavigation.module.js +0 -59
  143. package/dist/npm/breadcrumb/breadcrumb-item.component.js +0 -100
  144. package/dist/npm/breadcrumb/breadcrumb.component.js +0 -276
  145. package/dist/npm/breadcrumb/list.component.js +0 -82
  146. package/dist/npm/breadcrumb/models/breadcrumb-item.interface.js +0 -6
  147. package/dist/npm/breadcrumb/models/collapse-mode.js +0 -6
  148. package/dist/npm/breadcrumb/models/constants.js +0 -10
  149. package/dist/npm/breadcrumb/template-directives/item-template.directive.js +0 -28
  150. package/dist/npm/breadcrumb/template-directives/separator.directive.js +0 -80
  151. package/dist/npm/breadcrumb/util.js +0 -30
  152. package/dist/npm/breadcrumb.module.js +0 -70
  153. package/dist/npm/common/direction.js +0 -6
  154. package/dist/npm/common/dom-queries.js +0 -28
  155. package/dist/npm/common/preventable-event.js +0 -38
  156. package/dist/npm/common/util.js +0 -19
  157. package/dist/npm/index.js +0 -25
  158. package/dist/npm/main.js +0 -33
  159. package/dist/npm/navigation.module.js +0 -57
  160. package/dist/npm/package-metadata.js +0 -17
  161. package/dist/systemjs/kendo-angular-navigation.js +0 -5
@@ -17,3 +17,4 @@
17
17
  * * `light` - Applies coloring based on the light theme color.
18
18
  * * `inverse` - Applies coloring based on the inverted theme color.
19
19
  */
20
+ export {};
@@ -2,12 +2,12 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
5
  import { BottomNavigationItemComponent } from './bottomnavigation/bottomnavigation-item.component';
7
6
  import { BottomNavigationItemTemplateDirective } from './bottomnavigation/templates/item-template.directive';
8
7
  import { NgModule } from '@angular/core';
9
8
  import { CommonModule } from '@angular/common';
10
9
  import { BottomNavigationComponent } from './bottomnavigation/bottomnavigation.component';
10
+ import * as i0 from "@angular/core";
11
11
  const templateDirectives = [BottomNavigationItemTemplateDirective];
12
12
  const exportedComponents = [BottomNavigationComponent, ...templateDirectives];
13
13
  const declarations = [BottomNavigationItemComponent, ...exportedComponents];
@@ -42,13 +42,16 @@ const declarations = [BottomNavigationItemComponent, ...exportedComponents];
42
42
  *
43
43
  * ```
44
44
  */
45
- let BottomNavigationModule = class BottomNavigationModule {
46
- };
47
- BottomNavigationModule = tslib_1.__decorate([
48
- NgModule({
49
- declarations: [declarations],
50
- exports: [exportedComponents],
51
- imports: [CommonModule]
52
- })
53
- ], BottomNavigationModule);
54
- export { BottomNavigationModule };
45
+ export class BottomNavigationModule {
46
+ }
47
+ BottomNavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BottomNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ BottomNavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BottomNavigationModule, declarations: [BottomNavigationItemComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective], imports: [CommonModule], exports: [BottomNavigationComponent, BottomNavigationItemTemplateDirective] });
49
+ BottomNavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BottomNavigationModule, imports: [[CommonModule]] });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BottomNavigationModule, decorators: [{
51
+ type: NgModule,
52
+ args: [{
53
+ declarations: [declarations],
54
+ exports: [exportedComponents],
55
+ imports: [CommonModule]
56
+ }]
57
+ }] });
@@ -0,0 +1,160 @@
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 { Component, Input, HostBinding } from '@angular/core';
6
+ import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
+ import { outerWidth } from '../common/util';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@angular/common";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class BreadCrumbItemComponent {
14
+ constructor(el) {
15
+ this.el = el;
16
+ this.index = -1;
17
+ this.hostClasses = true;
18
+ this.disabled = false;
19
+ }
20
+ get isRootItem() {
21
+ return this.item.context.isFirst;
22
+ }
23
+ get isDisabled() {
24
+ return this.disabled || null;
25
+ }
26
+ get isLastItem() {
27
+ return this.item.context.isLast;
28
+ }
29
+ ngOnInit() {
30
+ this.disabled = this.item.data && (this.item.data.disabled || this.item.context.isLast);
31
+ }
32
+ ngAfterViewInit() {
33
+ if (isDocumentAvailable()) {
34
+ this.width = outerWidth(this.el.nativeElement);
35
+ }
36
+ }
37
+ onImageLoad() {
38
+ if (isDocumentAvailable()) {
39
+ this.width = outerWidth(this.el.nativeElement);
40
+ }
41
+ }
42
+ }
43
+ BreadCrumbItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbItemComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
44
+ BreadCrumbItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadCrumbItemComponent, selector: "[kendoBreadCrumbItem]", inputs: { item: "item", collapseMode: "collapseMode", index: "index", itemTemplate: "itemTemplate" }, host: { properties: { "class.k-flex-none": "this.hostClasses", "class.k-breadcrumb-item": "this.hostClasses", "class.k-breadcrumb-root-item": "this.isRootItem", "attr.aria-disabled": "this.isDisabled", "class.k-breadcrumb-last-item": "this.isLastItem" } }, ngImport: i0, template: `
45
+ <ng-template #separator>
46
+ <ng-content select="[kendoBreadCrumbSeparator]"></ng-content>
47
+ </ng-template>
48
+
49
+ <ng-container *ngIf="collapseMode === 'wrap'">
50
+ <ng-container *ngTemplateOutlet="separator"></ng-container>
51
+ </ng-container>
52
+
53
+ <ng-container *ngIf="!item.context.collapsed">
54
+ <span
55
+ *ngIf="!itemTemplate"
56
+ [ngClass]="{
57
+ 'k-breadcrumb-root-link': item.context.isFirst,
58
+ 'k-breadcrumb-link': index !== 0,
59
+ 'k-breadcrumb-icontext-link': !!item.data.icon && !!item.data.text,
60
+ 'k-breadcrumb-icon-link': !!item.data.icon && !item.data.text,
61
+ 'k-state-disabled': disabled
62
+ }"
63
+ [title]="item.data.title || ''"
64
+ [tabindex]="disabled ? -1 : 0"
65
+ [attr.aria-current]="item.context.isLast ? true : null"
66
+ role="link"
67
+ class="k-cursor-pointer k-flex-none"
68
+ >
69
+ <img *ngIf="item.data.imageUrl" (load)="onImageLoad()" [src]="item.data.imageUrl" class="k-image" role="presentation" />
70
+ <span *ngIf="item.data.icon && !item.data.iconClass" class="k-icon k-i-{{ item.data.icon }}"></span>
71
+ <span *ngIf="item.data.iconClass" class="{{ item.data.iconClass }}"></span>
72
+ {{ item.data.text }}
73
+ </span>
74
+ <ng-template
75
+ *ngIf="itemTemplate"
76
+ [ngTemplateOutlet]="itemTemplate"
77
+ [ngTemplateOutletContext]="{
78
+ $implicit: item.data,
79
+ index: index
80
+ }"
81
+ ></ng-template>
82
+ </ng-container>
83
+
84
+ <ng-container *ngIf="collapseMode !== 'wrap'">
85
+ <ng-container *ngTemplateOutlet="separator"></ng-container>
86
+ </ng-container>
87
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbItemComponent, decorators: [{
89
+ type: Component,
90
+ args: [{
91
+ selector: '[kendoBreadCrumbItem]',
92
+ template: `
93
+ <ng-template #separator>
94
+ <ng-content select="[kendoBreadCrumbSeparator]"></ng-content>
95
+ </ng-template>
96
+
97
+ <ng-container *ngIf="collapseMode === 'wrap'">
98
+ <ng-container *ngTemplateOutlet="separator"></ng-container>
99
+ </ng-container>
100
+
101
+ <ng-container *ngIf="!item.context.collapsed">
102
+ <span
103
+ *ngIf="!itemTemplate"
104
+ [ngClass]="{
105
+ 'k-breadcrumb-root-link': item.context.isFirst,
106
+ 'k-breadcrumb-link': index !== 0,
107
+ 'k-breadcrumb-icontext-link': !!item.data.icon && !!item.data.text,
108
+ 'k-breadcrumb-icon-link': !!item.data.icon && !item.data.text,
109
+ 'k-state-disabled': disabled
110
+ }"
111
+ [title]="item.data.title || ''"
112
+ [tabindex]="disabled ? -1 : 0"
113
+ [attr.aria-current]="item.context.isLast ? true : null"
114
+ role="link"
115
+ class="k-cursor-pointer k-flex-none"
116
+ >
117
+ <img *ngIf="item.data.imageUrl" (load)="onImageLoad()" [src]="item.data.imageUrl" class="k-image" role="presentation" />
118
+ <span *ngIf="item.data.icon && !item.data.iconClass" class="k-icon k-i-{{ item.data.icon }}"></span>
119
+ <span *ngIf="item.data.iconClass" class="{{ item.data.iconClass }}"></span>
120
+ {{ item.data.text }}
121
+ </span>
122
+ <ng-template
123
+ *ngIf="itemTemplate"
124
+ [ngTemplateOutlet]="itemTemplate"
125
+ [ngTemplateOutletContext]="{
126
+ $implicit: item.data,
127
+ index: index
128
+ }"
129
+ ></ng-template>
130
+ </ng-container>
131
+
132
+ <ng-container *ngIf="collapseMode !== 'wrap'">
133
+ <ng-container *ngTemplateOutlet="separator"></ng-container>
134
+ </ng-container>
135
+ `
136
+ }]
137
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { item: [{
138
+ type: Input
139
+ }], collapseMode: [{
140
+ type: Input
141
+ }], index: [{
142
+ type: Input
143
+ }], itemTemplate: [{
144
+ type: Input
145
+ }], hostClasses: [{
146
+ type: HostBinding,
147
+ args: ['class.k-flex-none']
148
+ }, {
149
+ type: HostBinding,
150
+ args: ['class.k-breadcrumb-item']
151
+ }], isRootItem: [{
152
+ type: HostBinding,
153
+ args: ['class.k-breadcrumb-root-item']
154
+ }], isDisabled: [{
155
+ type: HostBinding,
156
+ args: ['attr.aria-disabled']
157
+ }], isLastItem: [{
158
+ type: HostBinding,
159
+ args: ['class.k-breadcrumb-last-item']
160
+ }] } });
@@ -2,11 +2,10 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Component, ContentChild, Input, Output, EventEmitter, ViewChild, HostBinding, ElementRef, ChangeDetectorRef, NgZone, ViewChildren, QueryList, isDevMode } from '@angular/core';
5
+ import { Component, ContentChild, Input, Output, EventEmitter, ViewChild, HostBinding, ElementRef, ViewChildren, isDevMode } from '@angular/core';
7
6
  import { Subscription, ReplaySubject, merge, Subject } from 'rxjs';
8
7
  import { filter, map, share, startWith } from 'rxjs/operators';
9
- import { ResizeSensorComponent, isDocumentAvailable } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable } from '@progress/kendo-angular-common';
10
9
  import { validatePackage } from '@progress/kendo-licensing';
11
10
  import { packageMetadata } from '../package-metadata';
12
11
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
@@ -14,6 +13,11 @@ import { BreadCrumbItemTemplateDirective } from './template-directives/item-temp
14
13
  import { outerWidth } from '../common/util';
15
14
  import { BreadCrumbListComponent } from './list.component';
16
15
  import { collapsed, expanded, collapseFirst, expandFirst } from './util';
16
+ import * as i0 from "@angular/core";
17
+ import * as i1 from "@progress/kendo-angular-l10n";
18
+ import * as i2 from "./list.component";
19
+ import * as i3 from "@progress/kendo-angular-common";
20
+ import * as i4 from "@angular/common";
17
21
  /**
18
22
  * Represents the [Kendo UI Breadcrumb component for Angular]({% slug overview_breadcrumb %}).
19
23
  *
@@ -43,7 +47,7 @@ import { collapsed, expanded, collapseFirst, expandFirst } from './util';
43
47
  * }
44
48
  * ```
45
49
  */
46
- let BreadCrumbComponent = class BreadCrumbComponent {
50
+ export class BreadCrumbComponent {
47
51
  constructor(el, cdr, zone, localization) {
48
52
  this.el = el;
49
53
  this.cdr = cdr;
@@ -179,68 +183,52 @@ let BreadCrumbComponent = class BreadCrumbComponent {
179
183
  }));
180
184
  }));
181
185
  }
182
- };
183
- tslib_1.__decorate([
184
- Input(),
185
- tslib_1.__metadata("design:type", Array),
186
- tslib_1.__metadata("design:paramtypes", [Array])
187
- ], BreadCrumbComponent.prototype, "items", null);
188
- tslib_1.__decorate([
189
- Input(),
190
- tslib_1.__metadata("design:type", String)
191
- ], BreadCrumbComponent.prototype, "separatorIcon", void 0);
192
- tslib_1.__decorate([
193
- Input(),
194
- tslib_1.__metadata("design:type", String),
195
- tslib_1.__metadata("design:paramtypes", [String])
196
- ], BreadCrumbComponent.prototype, "collapseMode", null);
197
- tslib_1.__decorate([
198
- Output(),
199
- tslib_1.__metadata("design:type", EventEmitter)
200
- ], BreadCrumbComponent.prototype, "itemClick", void 0);
201
- tslib_1.__decorate([
202
- ViewChild('resizeSensor', { static: true }),
203
- tslib_1.__metadata("design:type", ResizeSensorComponent)
204
- ], BreadCrumbComponent.prototype, "resizeSensor", void 0);
205
- tslib_1.__decorate([
206
- ViewChildren('itemsContainer', { read: ElementRef }),
207
- tslib_1.__metadata("design:type", QueryList)
208
- ], BreadCrumbComponent.prototype, "itemsContainers", void 0);
209
- tslib_1.__decorate([
210
- ViewChild(BreadCrumbListComponent, { static: true }),
211
- tslib_1.__metadata("design:type", BreadCrumbListComponent)
212
- ], BreadCrumbComponent.prototype, "listComponent", void 0);
213
- tslib_1.__decorate([
214
- ContentChild(BreadCrumbItemTemplateDirective, { static: false }),
215
- tslib_1.__metadata("design:type", BreadCrumbItemTemplateDirective)
216
- ], BreadCrumbComponent.prototype, "itemTemplate", void 0);
217
- tslib_1.__decorate([
218
- HostBinding('class.k-widget'),
219
- HostBinding('class.k-breadcrumb'),
220
- tslib_1.__metadata("design:type", Boolean)
221
- ], BreadCrumbComponent.prototype, "hostClasses", void 0);
222
- tslib_1.__decorate([
223
- HostBinding('class.k-breadcrumb-wrap'),
224
- tslib_1.__metadata("design:type", Boolean),
225
- tslib_1.__metadata("design:paramtypes", [])
226
- ], BreadCrumbComponent.prototype, "wrapMode", null);
227
- tslib_1.__decorate([
228
- HostBinding('attr.dir'),
229
- tslib_1.__metadata("design:type", String),
230
- tslib_1.__metadata("design:paramtypes", [])
231
- ], BreadCrumbComponent.prototype, "getDir", null);
232
- BreadCrumbComponent = tslib_1.__decorate([
233
- Component({
234
- exportAs: 'kendoBreadCrumb',
235
- selector: 'kendo-breadcrumb',
236
- providers: [
237
- LocalizationService,
238
- {
239
- provide: L10N_PREFIX,
240
- useValue: 'kendo.breadcrumb'
241
- }
242
- ],
243
- template: `
186
+ }
187
+ BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
188
+ BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadCrumbComponent, selector: "kendo-breadcrumb", inputs: { items: "items", separatorIcon: "separatorIcon", collapseMode: "collapseMode" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-widget": "this.hostClasses", "class.k-breadcrumb": "this.hostClasses", "class.k-breadcrumb-wrap": "this.wrapMode", "attr.dir": "this.getDir" } }, providers: [
189
+ LocalizationService,
190
+ {
191
+ provide: L10N_PREFIX,
192
+ useValue: 'kendo.breadcrumb'
193
+ }
194
+ ], queries: [{ propertyName: "itemTemplate", first: true, predicate: BreadCrumbItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "resizeSensor", first: true, predicate: ["resizeSensor"], descendants: true, static: true }, { propertyName: "listComponent", first: true, predicate: BreadCrumbListComponent, descendants: true, static: true }, { propertyName: "itemsContainers", predicate: ["itemsContainer"], descendants: true, read: ElementRef }], exportAs: ["kendoBreadCrumb"], ngImport: i0, template: `
195
+ <ol
196
+ #itemsContainer
197
+ kendoBreadCrumbList
198
+ class="k-breadcrumb-root-item-container"
199
+ *ngIf="collapseMode === 'wrap'"
200
+ [items]="firstItem$ | async"
201
+ [itemTemplate]="itemTemplate?.templateRef"
202
+ [collapseMode]="collapseMode"
203
+ [separatorIcon]="separatorIcon"
204
+ (itemClick)="itemClick.emit($event)"
205
+ ></ol>
206
+ <ol
207
+ #itemsContainer
208
+ kendoBreadCrumbList
209
+ class="k-breadcrumb-container"
210
+ [items]="itemsData$ | async"
211
+ [itemTemplate]="itemTemplate?.templateRef"
212
+ [collapseMode]="collapseMode"
213
+ [separatorIcon]="separatorIcon"
214
+ (itemClick)="itemClick.emit($event)"
215
+ [ngClass]="{ 'k-flex-wrap': collapseMode === 'wrap', 'k-flex-none': collapseMode === 'none' }"
216
+ ></ol>
217
+ <kendo-resize-sensor [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>
218
+ `, isInline: true, components: [{ type: i2.BreadCrumbListComponent, selector: "[kendoBreadCrumbList]", inputs: ["items", "itemTemplate", "collapseMode", "separatorIcon"], outputs: ["itemClick"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i4.AsyncPipe } });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbComponent, decorators: [{
220
+ type: Component,
221
+ args: [{
222
+ exportAs: 'kendoBreadCrumb',
223
+ selector: 'kendo-breadcrumb',
224
+ providers: [
225
+ LocalizationService,
226
+ {
227
+ provide: L10N_PREFIX,
228
+ useValue: 'kendo.breadcrumb'
229
+ }
230
+ ],
231
+ template: `
244
232
  <ol
245
233
  #itemsContainer
246
234
  kendoBreadCrumbList
@@ -265,10 +253,37 @@ BreadCrumbComponent = tslib_1.__decorate([
265
253
  ></ol>
266
254
  <kendo-resize-sensor [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>
267
255
  `
268
- }),
269
- tslib_1.__metadata("design:paramtypes", [ElementRef,
270
- ChangeDetectorRef,
271
- NgZone,
272
- LocalizationService])
273
- ], BreadCrumbComponent);
274
- export { BreadCrumbComponent };
256
+ }]
257
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { items: [{
258
+ type: Input
259
+ }], separatorIcon: [{
260
+ type: Input
261
+ }], collapseMode: [{
262
+ type: Input
263
+ }], itemClick: [{
264
+ type: Output
265
+ }], resizeSensor: [{
266
+ type: ViewChild,
267
+ args: ['resizeSensor', { static: true }]
268
+ }], itemsContainers: [{
269
+ type: ViewChildren,
270
+ args: ['itemsContainer', { read: ElementRef }]
271
+ }], listComponent: [{
272
+ type: ViewChild,
273
+ args: [BreadCrumbListComponent, { static: true }]
274
+ }], itemTemplate: [{
275
+ type: ContentChild,
276
+ args: [BreadCrumbItemTemplateDirective, { static: false }]
277
+ }], hostClasses: [{
278
+ type: HostBinding,
279
+ args: ['class.k-widget']
280
+ }, {
281
+ type: HostBinding,
282
+ args: ['class.k-breadcrumb']
283
+ }], wrapMode: [{
284
+ type: HostBinding,
285
+ args: ['class.k-breadcrumb-wrap']
286
+ }], getDir: [{
287
+ type: HostBinding,
288
+ args: ['attr.dir']
289
+ }] } });
@@ -0,0 +1,91 @@
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 { Component, Output, Input, EventEmitter, ViewChildren } from '@angular/core';
6
+ import { fromEvent, merge } from 'rxjs';
7
+ import { filter, map } from 'rxjs/operators';
8
+ import { Keys } from '@progress/kendo-angular-common';
9
+ import { BREADCRUMB_ITEM_INDEX } from './models/constants';
10
+ import { BreadCrumbItemComponent } from './breadcrumb-item.component';
11
+ import { closestItem, itemIndex } from '../common/dom-queries';
12
+ import { isPresent } from '../common/util';
13
+ import * as i0 from "@angular/core";
14
+ import * as i1 from "./breadcrumb-item.component";
15
+ import * as i2 from "@angular/common";
16
+ import * as i3 from "./template-directives/separator.directive";
17
+ /**
18
+ * @hidden
19
+ */
20
+ export class BreadCrumbListComponent {
21
+ constructor(el, zone) {
22
+ this.el = el;
23
+ this.zone = zone;
24
+ this.items = [];
25
+ this.collapseMode = 'auto';
26
+ this.itemClick = new EventEmitter();
27
+ const element = this.el.nativeElement;
28
+ this.isRootItemContainer = element.classList.contains('k-breadcrumb-root-item-container');
29
+ this.zone.runOutsideAngular(() => {
30
+ const click$ = fromEvent(element, 'click');
31
+ const enterKey$ = fromEvent(element, 'keydown').pipe(filter((ev /* KeyboardEvent causes lint error */) => ev.keyCode === Keys.Enter));
32
+ this.domEventsSubscription = merge(click$, enterKey$)
33
+ .pipe(map((ev) => ev.target), filter(e => !e.classList.contains('k-breadcrumb-delimiter-icon')), // do not trigger handler when a separator is clicked
34
+ map(e => this.getItemIndex(e)), filter(isPresent), map(i => parseInt(i, 10)), map(i => this.items[i]), filter(item => !item.data.disabled && !item.context.isLast), map(item => item.data))
35
+ .subscribe(el => {
36
+ this.zone.run(() => this.itemClick.emit(el));
37
+ });
38
+ });
39
+ }
40
+ ngOnDestroy() {
41
+ this.domEventsSubscription.unsubscribe();
42
+ }
43
+ getItemIndex(target) {
44
+ const item = closestItem(target, BREADCRUMB_ITEM_INDEX, this.el.nativeElement);
45
+ if (item) {
46
+ return itemIndex(item, BREADCRUMB_ITEM_INDEX);
47
+ }
48
+ }
49
+ }
50
+ BreadCrumbListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbListComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
51
+ BreadCrumbListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadCrumbListComponent, selector: "[kendoBreadCrumbList]", inputs: { items: "items", itemTemplate: "itemTemplate", collapseMode: "collapseMode", separatorIcon: "separatorIcon" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "renderedItems", predicate: BreadCrumbItemComponent, descendants: true }], ngImport: i0, template: "\n <ng-container *ngFor=\"let item of items; let i = index; let isFirst = first; let isLast = last\">\n <li\n #renderedItem\n kendoBreadCrumbItem\n *ngIf=\"!(collapseMode === 'wrap' && isFirst) || isRootItemContainer\"\n [attr.data-kendo-breadcrumb-index]=\"i\"\n [item]=\"item\"\n [index]=\"i\"\n [collapseMode]=\"collapseMode\"\n [itemTemplate]=\"itemTemplate\"\n >\n <span kendoBreadCrumbSeparator [icon]=\"separatorIcon\" *ngIf=\"collapseMode === 'wrap' && !isFirst\"></span>\n <span\n kendoBreadCrumbSeparator\n [icon]=\"separatorIcon\"\n *ngIf=\"collapseMode !== 'wrap' && !isLast && !(item?.context.collapsed && items[i + 1]?.context.collapsed)\"\n ></span>\n </li>\n </ng-container>\n ", isInline: true, components: [{ type: i1.BreadCrumbItemComponent, selector: "[kendoBreadCrumbItem]", inputs: ["item", "collapseMode", "index", "itemTemplate"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.BreadCrumbSeparatorDirective, selector: "[kendoBreadCrumbSeparator]", inputs: ["icon"] }] });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbListComponent, decorators: [{
53
+ type: Component,
54
+ args: [{
55
+ selector: '[kendoBreadCrumbList]',
56
+ template: `
57
+ <ng-container *ngFor="let item of items; let i = index; let isFirst = first; let isLast = last">
58
+ <li
59
+ #renderedItem
60
+ kendoBreadCrumbItem
61
+ *ngIf="!(collapseMode === 'wrap' && isFirst) || isRootItemContainer"
62
+ [attr.${BREADCRUMB_ITEM_INDEX}]="i"
63
+ [item]="item"
64
+ [index]="i"
65
+ [collapseMode]="collapseMode"
66
+ [itemTemplate]="itemTemplate"
67
+ >
68
+ <span kendoBreadCrumbSeparator [icon]="separatorIcon" *ngIf="collapseMode === 'wrap' && !isFirst"></span>
69
+ <span
70
+ kendoBreadCrumbSeparator
71
+ [icon]="separatorIcon"
72
+ *ngIf="collapseMode !== 'wrap' && !isLast && !(item?.context.collapsed && items[i + 1]?.context.collapsed)"
73
+ ></span>
74
+ </li>
75
+ </ng-container>
76
+ `
77
+ }]
78
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { items: [{
79
+ type: Input
80
+ }], itemTemplate: [{
81
+ type: Input
82
+ }], collapseMode: [{
83
+ type: Input
84
+ }], separatorIcon: [{
85
+ type: Input
86
+ }], itemClick: [{
87
+ type: Output
88
+ }], renderedItems: [{
89
+ type: ViewChildren,
90
+ args: [BreadCrumbItemComponent]
91
+ }] } });
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,27 @@
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 { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the content of a Breadcrumb item.
9
+ * To define the template, nest an `<ng-template>` tag with the `kendoBreadCrumbItemTemplate` directive inside the `<kendo-breadcrumb>` tag.
10
+ *
11
+ * For more information and example refer to the [Templates]({% slug templates_breadcrumb %}) article.
12
+ */
13
+ export class BreadCrumbItemTemplateDirective {
14
+ constructor(templateRef) {
15
+ this.templateRef = templateRef;
16
+ }
17
+ }
18
+ BreadCrumbItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
19
+ BreadCrumbItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BreadCrumbItemTemplateDirective, selector: "[kendoBreadCrumbItemTemplate]", ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbItemTemplateDirective, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ selector: '[kendoBreadCrumbItemTemplate]'
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
26
+ type: Optional
27
+ }] }]; } });
@@ -0,0 +1,69 @@
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 { Directive, HostBinding, Input } from '@angular/core';
6
+ import { isPresent } from '../../common/util';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-l10n";
9
+ const DEFAULT_ICON = 'arrow-chevron-right';
10
+ const DEFAULT_RTL_ICON = 'arrow-chevron-left';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export class BreadCrumbSeparatorDirective {
15
+ constructor(el, localization) {
16
+ this.el = el;
17
+ this.localization = localization;
18
+ this.defaultClasses = true;
19
+ this.ariaHidden = true;
20
+ this.direction = 'ltr';
21
+ this.direction = this.localization.rtl ? 'rtl' : 'ltr';
22
+ }
23
+ set icon(icon) {
24
+ const element = this.el.nativeElement;
25
+ element.classList.remove(`k-i-${this._icon}`);
26
+ if (isPresent(icon)) {
27
+ this._icon = icon;
28
+ this.hasDefaultIcon = false;
29
+ }
30
+ else {
31
+ this._icon = this.direction === 'ltr' ? DEFAULT_ICON : DEFAULT_RTL_ICON;
32
+ this.hasDefaultIcon = true;
33
+ }
34
+ element.classList.add(`k-i-${this._icon}`);
35
+ }
36
+ get icon() {
37
+ return this._icon;
38
+ }
39
+ ngOnInit() {
40
+ this.localizationChangesSubscription = this.localization.changes.subscribe(({ rtl }) => {
41
+ this.direction = rtl ? 'rtl' : 'ltr';
42
+ if (this.hasDefaultIcon) {
43
+ this.icon = undefined;
44
+ }
45
+ });
46
+ }
47
+ ngOnDestroy() {
48
+ this.localizationChangesSubscription.unsubscribe();
49
+ }
50
+ }
51
+ BreadCrumbSeparatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbSeparatorDirective, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
52
+ BreadCrumbSeparatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BreadCrumbSeparatorDirective, selector: "[kendoBreadCrumbSeparator]", inputs: { icon: "icon" }, host: { properties: { "class.k-breadcrumb-delimiter-icon": "this.defaultClasses", "class.k-icon": "this.defaultClasses", "attr.aria-hidden": "this.ariaHidden" } }, ngImport: i0 });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadCrumbSeparatorDirective, decorators: [{
54
+ type: Directive,
55
+ args: [{
56
+ selector: '[kendoBreadCrumbSeparator]'
57
+ }]
58
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }]; }, propDecorators: { icon: [{
59
+ type: Input
60
+ }], defaultClasses: [{
61
+ type: HostBinding,
62
+ args: ['class.k-breadcrumb-delimiter-icon']
63
+ }, {
64
+ type: HostBinding,
65
+ args: ['class.k-icon']
66
+ }], ariaHidden: [{
67
+ type: HostBinding,
68
+ args: ['attr.aria-hidden']
69
+ }] } });
@@ -3,7 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  const getCollapsed = (itemComponent) => itemComponent.item.context.collapsed;
6
- const ɵ0 = getCollapsed;
7
6
  /**
8
7
  * @hidden
9
8
  */
@@ -13,7 +12,6 @@ export const collapsed = (itemComponent) => getCollapsed(itemComponent) === true
13
12
  */
14
13
  export const expanded = (itemComponent) => getCollapsed(itemComponent) === false;
15
14
  const toggleFirst = (collapsed) => (itemComponents) => (itemComponents.find(ic => getCollapsed(ic) === collapsed).item.context.collapsed = !collapsed);
16
- const ɵ1 = toggleFirst;
17
15
  /**
18
16
  * @hidden
19
17
  */
@@ -22,4 +20,3 @@ export const collapseFirst = toggleFirst(false);
22
20
  * @hidden
23
21
  */
24
22
  export const expandFirst = toggleFirst(true);
25
- export { ɵ0, ɵ1 };