@progress/kendo-angular-navigation 1.1.6 → 2.0.0-dev.202204141001

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 +102 -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 +161 -0
  53. package/{dist/es2015 → esm2015}/breadcrumb/breadcrumb.component.js +88 -73
  54. package/esm2015/breadcrumb/list.component.js +92 -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} +584 -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 +33 -109
  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
@@ -1,43 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- /**
10
- * Represents the [Kendo UI AppBarSection component for Angular]({% slug contentarrangement_appbar %}#toc-sections).
11
- *
12
- * @example
13
- *
14
- * ```ts-no-run
15
- * * _@Component({
16
- * selector: 'my-app',
17
- * template: `
18
- * <kendo-appbar>
19
- * <kendo-appbar-section>
20
- * <h2>Page Title</h2>
21
- * </kendo-appbar-section>
22
- * </kendo-appbar>
23
- * `
24
- * })
25
- * class AppComponent {}
26
- */
27
- var AppBarSectionComponent = /** @class */ (function () {
28
- function AppBarSectionComponent() {
29
- this.hostClass = true;
30
- }
31
- tslib_1.__decorate([
32
- core_1.HostBinding('class.k-appbar-section'),
33
- tslib_1.__metadata("design:type", Boolean)
34
- ], AppBarSectionComponent.prototype, "hostClass", void 0);
35
- AppBarSectionComponent = tslib_1.__decorate([
36
- core_1.Component({
37
- selector: 'kendo-appbar-section',
38
- template: "\n <ng-content></ng-content>\n "
39
- })
40
- ], AppBarSectionComponent);
41
- return AppBarSectionComponent;
42
- }());
43
- exports.AppBarSectionComponent = AppBarSectionComponent;
@@ -1,79 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var util_1 = require("../common/util");
10
- /**
11
- * Represents the [Kendo UI AppBarSpacer component for Angular]({% slug contentarrangement_appbar %}#toc-spacings).
12
- * Used to give additional white space between the AppBar sections and provides a way for customizing its width.
13
- *
14
- * @example
15
- *
16
- * ```ts-no-run
17
- * * _@Component({
18
- * selector: 'my-app',
19
- * template: `
20
- * <kendo-appbar>
21
- * <kendo-appbar-section>
22
- * <button kendoButton fillMode="flat">
23
- * <kendo-icon name="menu"></kendo-icon>
24
- * </button>
25
- * </kendo-appbar-section>
26
- *
27
- * <kendo-appbar-spacer></kendo-appbar-spacer>
28
- *
29
- * <kendo-appbar-section>
30
- * <h2>Page Title</h2>
31
- * </kendo-appbar-section>
32
- * </kendo-appbar>
33
- * `
34
- * })
35
- * class AppComponent {}
36
- * ```
37
- */
38
- var AppBarSpacerComponent = /** @class */ (function () {
39
- function AppBarSpacerComponent(renderer, element) {
40
- this.renderer = renderer;
41
- this.element = element;
42
- this.hostClass = true;
43
- }
44
- Object.defineProperty(AppBarSpacerComponent.prototype, "sizedClass", {
45
- get: function () {
46
- return util_1.isPresent(this.width);
47
- },
48
- enumerable: true,
49
- configurable: true
50
- });
51
- AppBarSpacerComponent.prototype.ngAfterViewInit = function () {
52
- if (util_1.isPresent(this.width)) {
53
- var element = this.element.nativeElement;
54
- this.renderer.setStyle(element, 'flexBasis', this.width);
55
- }
56
- };
57
- tslib_1.__decorate([
58
- core_1.HostBinding('class.k-appbar-spacer'),
59
- tslib_1.__metadata("design:type", Boolean)
60
- ], AppBarSpacerComponent.prototype, "hostClass", void 0);
61
- tslib_1.__decorate([
62
- core_1.HostBinding('class.k-appbar-spacer-sized'),
63
- tslib_1.__metadata("design:type", Boolean),
64
- tslib_1.__metadata("design:paramtypes", [])
65
- ], AppBarSpacerComponent.prototype, "sizedClass", null);
66
- tslib_1.__decorate([
67
- core_1.Input(),
68
- tslib_1.__metadata("design:type", String)
69
- ], AppBarSpacerComponent.prototype, "width", void 0);
70
- AppBarSpacerComponent = tslib_1.__decorate([
71
- core_1.Component({
72
- selector: 'kendo-appbar-spacer',
73
- template: ""
74
- }),
75
- tslib_1.__metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
76
- ], AppBarSpacerComponent);
77
- return AppBarSpacerComponent;
78
- }());
79
- exports.AppBarSpacerComponent = AppBarSpacerComponent;
@@ -1,204 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var kendo_licensing_1 = require("@progress/kendo-licensing");
11
- var package_metadata_1 = require("../package-metadata");
12
- /**
13
- * Represents the [Kendo UI AppBar component for Angular]({% slug overview_appbar %}).
14
- * Used to display information, actions, branding titles and additional navigation on the current screen.
15
- */
16
- var AppBarComponent = /** @class */ (function () {
17
- function AppBarComponent(localizationService) {
18
- var _this = this;
19
- this.localizationService = localizationService;
20
- this.hostClass = true;
21
- /**
22
- * Specifies the position of the AppBar
23
- * ([see example]({% slug positioning_appbar %}#toc-position)).
24
- *
25
- * * The possible values are:
26
- * * `top` (Default)&mdash;Positions the AppBar at the top of the content.
27
- * Setting the `position` property to `top` requires adding the Appbar component before the page content.
28
- * The position property applies CSS `top: 0` style in [`fixed mode`]({% slug api_navigation_appbarcomponent %}#toc-positionMode) and also adds a `box-shadow` to the bottom of the AppBar.
29
- *
30
- * * `bottom`&mdash;Positions the AppBar at the bottom of the content.
31
- * Setting the `position` property to `bottom` requires adding the Appbar component after the page content.
32
- * The position property applies CSS `bottom: 0` style in [`fixed mode`]({% slug api_navigation_appbarcomponent %}#toc-positionMode) and also adds a `box-shadow ` to the top of the AppBar.
33
- *
34
- */
35
- this.position = 'top';
36
- /**
37
- * Specifies the positionMode of the AppBar
38
- * ([see example]({% slug positioning_appbar %}#toc-positionmode)).
39
- *
40
- * * The possible values are:
41
- * * `static` (Default)&mdash;Does not position the AppBar in any special way. It is positioned according to the normal flow of the page.
42
- * * `sticky`&mdash;Positions the AppBar based on the user's scroll position. A sticky element toggles between static and fixed CSS [`position`](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property, depending on the scroll position.
43
- * * `fixed`&mdash;Positions the AppBar relative to the viewport. It always stays in the same place even if the page is scrolled.
44
- */
45
- this.positionMode = 'static';
46
- /**
47
- * Specifies the theme color of the AppBar.
48
- * The theme color will be applied as background color of the component.
49
- *
50
- *
51
- * * The possible values are:
52
- * * `light` (Default)&mdash;Applies coloring based on light theme color.
53
- * * `dark`&mdash;Applies coloring based on dark theme color.
54
- * * `inherit`&mdash; Applies inherited coloring value.
55
- *
56
- */
57
- this.themeColor = 'light';
58
- this.rtl = false;
59
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
60
- this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
61
- var rtl = _a.rtl;
62
- _this.rtl = rtl;
63
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
64
- });
65
- }
66
- Object.defineProperty(AppBarComponent.prototype, "topClass", {
67
- get: function () {
68
- return this.position === 'top';
69
- },
70
- enumerable: true,
71
- configurable: true
72
- });
73
- Object.defineProperty(AppBarComponent.prototype, "bottomClass", {
74
- get: function () {
75
- return this.position === 'bottom';
76
- },
77
- enumerable: true,
78
- configurable: true
79
- });
80
- Object.defineProperty(AppBarComponent.prototype, "stickyClass", {
81
- get: function () {
82
- return this.positionMode === 'sticky';
83
- },
84
- enumerable: true,
85
- configurable: true
86
- });
87
- Object.defineProperty(AppBarComponent.prototype, "fixedClass", {
88
- get: function () {
89
- return this.positionMode === 'fixed';
90
- },
91
- enumerable: true,
92
- configurable: true
93
- });
94
- Object.defineProperty(AppBarComponent.prototype, "staticClass", {
95
- get: function () {
96
- return this.positionMode === 'static';
97
- },
98
- enumerable: true,
99
- configurable: true
100
- });
101
- Object.defineProperty(AppBarComponent.prototype, "lightClass", {
102
- get: function () {
103
- return this.themeColor === 'light';
104
- },
105
- enumerable: true,
106
- configurable: true
107
- });
108
- Object.defineProperty(AppBarComponent.prototype, "darkClass", {
109
- get: function () {
110
- return this.themeColor === 'dark';
111
- },
112
- enumerable: true,
113
- configurable: true
114
- });
115
- Object.defineProperty(AppBarComponent.prototype, "inheritClass", {
116
- get: function () {
117
- return this.themeColor === 'inherit';
118
- },
119
- enumerable: true,
120
- configurable: true
121
- });
122
- AppBarComponent.prototype.ngOnDestroy = function () {
123
- if (this.dynamicRTLSubscription) {
124
- this.dynamicRTLSubscription.unsubscribe();
125
- }
126
- };
127
- tslib_1.__decorate([
128
- core_1.HostBinding('class.k-appbar'),
129
- tslib_1.__metadata("design:type", Boolean)
130
- ], AppBarComponent.prototype, "hostClass", void 0);
131
- tslib_1.__decorate([
132
- core_1.HostBinding('class.k-appbar-top'),
133
- tslib_1.__metadata("design:type", Boolean),
134
- tslib_1.__metadata("design:paramtypes", [])
135
- ], AppBarComponent.prototype, "topClass", null);
136
- tslib_1.__decorate([
137
- core_1.HostBinding('class.k-appbar-bottom'),
138
- tslib_1.__metadata("design:type", Boolean),
139
- tslib_1.__metadata("design:paramtypes", [])
140
- ], AppBarComponent.prototype, "bottomClass", null);
141
- tslib_1.__decorate([
142
- core_1.HostBinding('class.k-appbar-sticky'),
143
- tslib_1.__metadata("design:type", Boolean),
144
- tslib_1.__metadata("design:paramtypes", [])
145
- ], AppBarComponent.prototype, "stickyClass", null);
146
- tslib_1.__decorate([
147
- core_1.HostBinding('class.k-appbar-fixed'),
148
- tslib_1.__metadata("design:type", Boolean),
149
- tslib_1.__metadata("design:paramtypes", [])
150
- ], AppBarComponent.prototype, "fixedClass", null);
151
- tslib_1.__decorate([
152
- core_1.HostBinding('class.k-appbar-static'),
153
- tslib_1.__metadata("design:type", Boolean),
154
- tslib_1.__metadata("design:paramtypes", [])
155
- ], AppBarComponent.prototype, "staticClass", null);
156
- tslib_1.__decorate([
157
- core_1.HostBinding('class.k-appbar-light'),
158
- tslib_1.__metadata("design:type", Boolean),
159
- tslib_1.__metadata("design:paramtypes", [])
160
- ], AppBarComponent.prototype, "lightClass", null);
161
- tslib_1.__decorate([
162
- core_1.HostBinding('class.k-appbar-dark'),
163
- tslib_1.__metadata("design:type", Boolean),
164
- tslib_1.__metadata("design:paramtypes", [])
165
- ], AppBarComponent.prototype, "darkClass", null);
166
- tslib_1.__decorate([
167
- core_1.HostBinding('class.k-appbar-inherit'),
168
- tslib_1.__metadata("design:type", Boolean),
169
- tslib_1.__metadata("design:paramtypes", [])
170
- ], AppBarComponent.prototype, "inheritClass", null);
171
- tslib_1.__decorate([
172
- core_1.HostBinding('attr.dir'),
173
- tslib_1.__metadata("design:type", String)
174
- ], AppBarComponent.prototype, "direction", void 0);
175
- tslib_1.__decorate([
176
- core_1.Input(),
177
- tslib_1.__metadata("design:type", String)
178
- ], AppBarComponent.prototype, "position", void 0);
179
- tslib_1.__decorate([
180
- core_1.Input(),
181
- tslib_1.__metadata("design:type", String)
182
- ], AppBarComponent.prototype, "positionMode", void 0);
183
- tslib_1.__decorate([
184
- core_1.Input(),
185
- tslib_1.__metadata("design:type", String)
186
- ], AppBarComponent.prototype, "themeColor", void 0);
187
- AppBarComponent = tslib_1.__decorate([
188
- core_1.Component({
189
- exportAs: 'kendoAppBar',
190
- selector: 'kendo-appbar',
191
- template: "\n <ng-content></ng-content>\n ",
192
- providers: [
193
- kendo_angular_l10n_1.LocalizationService,
194
- {
195
- provide: kendo_angular_l10n_1.L10N_PREFIX,
196
- useValue: 'kendo.appbar.component'
197
- }
198
- ]
199
- }),
200
- tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
201
- ], AppBarComponent);
202
- return AppBarComponent;
203
- }());
204
- exports.AppBarComponent = AppBarComponent;
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,63 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var common_1 = require("@angular/common");
10
- var appbar_component_1 = require("./appbar/appbar.component");
11
- var appbar_section_component_1 = require("./appbar/appbar-section.component");
12
- var appbar_spacer_component_1 = require("./appbar/appbar-spacer.component");
13
- var exportedModules = [
14
- appbar_component_1.AppBarComponent,
15
- appbar_section_component_1.AppBarSectionComponent,
16
- appbar_spacer_component_1.AppBarSpacerComponent
17
- ];
18
- var declarations = exportedModules.slice();
19
- /**
20
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
21
- * definition for the AppBar component.
22
- *
23
- * * @example
24
- *
25
- * ```ts-no-run
26
- * // Import the AppBar module
27
- * import { AppBarModule } from '@progress/kendo-angular-navigation';
28
- *
29
- * // The browser platform with a compiler
30
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
31
- * import { BrowserModule } from '@angular/platform-browser';
32
- *
33
- * import { NgModule } from '@angular/core';
34
- *
35
- * // Import the app component
36
- * import { AppComponent } from './app.component';
37
- *
38
- * // Define the app module
39
- * _@NgModule({
40
- * declarations: [AppComponent], // declare app component
41
- * imports: [BrowserModule, AppBarModule], // import AppBar module
42
- * bootstrap: [AppComponent]
43
- * })
44
- * export class AppModule {}
45
- *
46
- * // Compile and launch the module
47
- * platformBrowserDynamic().bootstrapModule(AppModule);
48
- *
49
- * ```
50
- */
51
- var AppBarModule = /** @class */ (function () {
52
- function AppBarModule() {
53
- }
54
- AppBarModule = tslib_1.__decorate([
55
- core_1.NgModule({
56
- declarations: [declarations],
57
- exports: [exportedModules],
58
- imports: [common_1.CommonModule]
59
- })
60
- ], AppBarModule);
61
- return AppBarModule;
62
- }());
63
- exports.AppBarModule = AppBarModule;
@@ -1,138 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var item_template_directive_1 = require("./templates/item-template.directive");
9
- var core_1 = require("@angular/core");
10
- /**
11
- * @hidden
12
- */
13
- var BottomNavigationItemComponent = /** @class */ (function () {
14
- function BottomNavigationItemComponent() {
15
- }
16
- Object.defineProperty(BottomNavigationItemComponent.prototype, "disabledClass", {
17
- get: function () {
18
- return this.item.disabled;
19
- },
20
- enumerable: true,
21
- configurable: true
22
- });
23
- Object.defineProperty(BottomNavigationItemComponent.prototype, "horizontalItemClass", {
24
- get: function () {
25
- return this.orientation === 'horizontal';
26
- },
27
- enumerable: true,
28
- configurable: true
29
- });
30
- Object.defineProperty(BottomNavigationItemComponent.prototype, "verticalItemClass", {
31
- get: function () {
32
- return this.orientation === 'vertical';
33
- },
34
- enumerable: true,
35
- configurable: true
36
- });
37
- Object.defineProperty(BottomNavigationItemComponent.prototype, "label", {
38
- get: function () {
39
- return this.item.text ? this.item.text : null;
40
- },
41
- enumerable: true,
42
- configurable: true
43
- });
44
- Object.defineProperty(BottomNavigationItemComponent.prototype, "tabindex", {
45
- get: function () {
46
- return this.item.tabIndex ? this.item.tabIndex : 0;
47
- },
48
- enumerable: true,
49
- configurable: true
50
- });
51
- Object.defineProperty(BottomNavigationItemComponent.prototype, "selectedClass", {
52
- get: function () {
53
- return this.selectedIdx ? this.selectedIdx === this.index : this.item.selected;
54
- },
55
- enumerable: true,
56
- configurable: true
57
- });
58
- Object.defineProperty(BottomNavigationItemComponent.prototype, "itemIcon", {
59
- get: function () {
60
- return this.item.icon || this.item.iconClass ? true : false;
61
- },
62
- enumerable: true,
63
- configurable: true
64
- });
65
- Object.defineProperty(BottomNavigationItemComponent.prototype, "iconClasses", {
66
- get: function () {
67
- var kendoIcon = this.item.icon ? "k-icon k-i-" + this.item.icon : '';
68
- var customIcon = this.item.iconClass ? this.item.iconClass : '';
69
- return kendoIcon + " " + customIcon;
70
- },
71
- enumerable: true,
72
- configurable: true
73
- });
74
- tslib_1.__decorate([
75
- core_1.Input(),
76
- tslib_1.__metadata("design:type", item_template_directive_1.BottomNavigationItemTemplateDirective)
77
- ], BottomNavigationItemComponent.prototype, "itemTemplate", void 0);
78
- tslib_1.__decorate([
79
- core_1.Input(),
80
- tslib_1.__metadata("design:type", Object)
81
- ], BottomNavigationItemComponent.prototype, "item", void 0);
82
- tslib_1.__decorate([
83
- core_1.Input(),
84
- tslib_1.__metadata("design:type", Number)
85
- ], BottomNavigationItemComponent.prototype, "index", void 0);
86
- tslib_1.__decorate([
87
- core_1.Input(),
88
- tslib_1.__metadata("design:type", Boolean)
89
- ], BottomNavigationItemComponent.prototype, "disabledComponent", void 0);
90
- tslib_1.__decorate([
91
- core_1.Input(),
92
- tslib_1.__metadata("design:type", Number)
93
- ], BottomNavigationItemComponent.prototype, "selectedIdx", void 0);
94
- tslib_1.__decorate([
95
- core_1.Input(),
96
- tslib_1.__metadata("design:type", String)
97
- ], BottomNavigationItemComponent.prototype, "orientation", void 0);
98
- tslib_1.__decorate([
99
- core_1.HostBinding('attr.aria-disabled'),
100
- core_1.HostBinding('class.k-state-disabled'),
101
- tslib_1.__metadata("design:type", Boolean),
102
- tslib_1.__metadata("design:paramtypes", [])
103
- ], BottomNavigationItemComponent.prototype, "disabledClass", null);
104
- tslib_1.__decorate([
105
- core_1.HostBinding('class.k-hstack'),
106
- tslib_1.__metadata("design:type", Boolean),
107
- tslib_1.__metadata("design:paramtypes", [])
108
- ], BottomNavigationItemComponent.prototype, "horizontalItemClass", null);
109
- tslib_1.__decorate([
110
- core_1.HostBinding('class.k-vstack'),
111
- tslib_1.__metadata("design:type", Boolean),
112
- tslib_1.__metadata("design:paramtypes", [])
113
- ], BottomNavigationItemComponent.prototype, "verticalItemClass", null);
114
- tslib_1.__decorate([
115
- core_1.HostBinding('attr.aria-label'),
116
- tslib_1.__metadata("design:type", String),
117
- tslib_1.__metadata("design:paramtypes", [])
118
- ], BottomNavigationItemComponent.prototype, "label", null);
119
- tslib_1.__decorate([
120
- core_1.HostBinding('attr.tabindex'),
121
- tslib_1.__metadata("design:type", Number),
122
- tslib_1.__metadata("design:paramtypes", [])
123
- ], BottomNavigationItemComponent.prototype, "tabindex", null);
124
- tslib_1.__decorate([
125
- core_1.HostBinding('attr.aria-selected'),
126
- core_1.HostBinding('class.k-state-selected'),
127
- tslib_1.__metadata("design:type", Boolean),
128
- tslib_1.__metadata("design:paramtypes", [])
129
- ], BottomNavigationItemComponent.prototype, "selectedClass", null);
130
- BottomNavigationItemComponent = tslib_1.__decorate([
131
- core_1.Component({
132
- selector: '[kendoBottomNavigationItem]',
133
- template: "\n <ng-container *ngIf=\"!itemTemplate\">\n <span *ngIf=\"itemIcon\" class=\"k-bottom-nav-item-icon\" [ngClass]=\"iconClasses\"></span>\n <span *ngIf=\"item.text\" class=\"k-bottom-nav-item-text\">{{item.text}}</span>\n </ng-container>\n <ng-template *ngIf=\"itemTemplate\"\n [ngTemplateOutlet]=\"itemTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\">\n </ng-template>\n "
134
- })
135
- ], BottomNavigationItemComponent);
136
- return BottomNavigationItemComponent;
137
- }());
138
- exports.BottomNavigationItemComponent = BottomNavigationItemComponent;