@progress/kendo-angular-navigation 22.1.0-develop.18 → 22.1.0-develop.19

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.
@@ -52,7 +52,7 @@ export declare class AppBarComponent implements AfterViewInit, OnDestroy {
52
52
  /**
53
53
  * Sets the theme color of the AppBar. The theme color is applied as the background color of the component.
54
54
  *
55
- * @default 'light'
55
+ * @default undefined
56
56
  */
57
57
  set themeColor(themeColor: AppBarThemeColor);
58
58
  get themeColor(): AppBarThemeColor;
@@ -58,7 +58,7 @@ export declare class BottomNavigationComponent implements OnInit, AfterViewInit,
58
58
  /**
59
59
  * Sets the fill style of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
60
60
  *
61
- * @default 'flat'
61
+ * @default undefined
62
62
  */
63
63
  set fill(fill: BottomNavigationFill);
64
64
  get fill(): BottomNavigationFill;
@@ -79,7 +79,7 @@ export declare class BottomNavigationComponent implements OnInit, AfterViewInit,
79
79
  /**
80
80
  * Sets the theme color of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
81
81
  *
82
- * @default 'primary'
82
+ * @default undefined
83
83
  */
84
84
  set themeColor(themeColor: BottomNavigationThemeColor);
85
85
  get themeColor(): BottomNavigationThemeColor;
@@ -10,3 +10,7 @@ export declare const BOTTOMNAVIGATION_ITEM_INDEX = "data-kendo-bottomnavigation-
10
10
  * @hidden
11
11
  */
12
12
  export declare const colors: string[];
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const fills: string[];
@@ -75,7 +75,7 @@ export declare class BreadCrumbComponent implements OnInit, AfterViewInit, OnDes
75
75
  /**
76
76
  * Determines the padding of all Breadcrumb elements.
77
77
  *
78
- * @default `medium`
78
+ * @default undefined
79
79
  */
80
80
  set size(size: BreadcrumbSize);
81
81
  get size(): BreadcrumbSize;
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * Represents the possible size options that control the padding of the Breadcrumb elements.
7
7
  */
8
- export type BreadcrumbSize = 'small' | 'medium' | 'large' | 'none';
8
+ export type BreadcrumbSize = 'small' | 'medium' | 'large';
@@ -26,11 +26,10 @@ const packageMetadata = {
26
26
  productCode: 'KENDOUIANGULAR',
27
27
  productCodes: ['KENDOUIANGULAR'],
28
28
  publishDate: 0,
29
- version: '22.1.0-develop.18',
29
+ version: '22.1.0-develop.19',
30
30
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
31
31
  };
32
32
 
33
- const DEFAULT_THEME_COLOR = 'light';
34
33
  const DEFAULT_POSITION = 'top';
35
34
  const DEFAULT_POSITION_MODE = 'static';
36
35
  /**
@@ -89,19 +88,18 @@ class AppBarComponent {
89
88
  /**
90
89
  * Sets the theme color of the AppBar. The theme color is applied as the background color of the component.
91
90
  *
92
- * @default 'light'
91
+ * @default undefined
93
92
  */
94
93
  set themeColor(themeColor) {
95
- const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
96
- this.handleHostClasses(newThemeColor, this.themeColor);
97
- this._themeColor = newThemeColor;
94
+ this.handleHostClasses(themeColor, this.themeColor);
95
+ this._themeColor = themeColor;
98
96
  }
99
97
  get themeColor() {
100
98
  return this._themeColor;
101
99
  }
102
100
  dynamicRTLSubscription;
103
101
  rtl = false;
104
- _themeColor = DEFAULT_THEME_COLOR;
102
+ _themeColor;
105
103
  _position = DEFAULT_POSITION;
106
104
  _positionMode = DEFAULT_POSITION_MODE;
107
105
  constructor(localizationService, host, renderer) {
@@ -1692,6 +1690,10 @@ const BOTTOMNAVIGATION_ITEM_INDEX = 'data-kendo-bottomnavigation-index';
1692
1690
  * @hidden
1693
1691
  */
1694
1692
  const colors = ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'];
1693
+ /**
1694
+ * @hidden
1695
+ */
1696
+ const fills = ['solid', 'flat'];
1695
1697
 
1696
1698
  /**
1697
1699
  * @hidden
@@ -1854,14 +1856,17 @@ class BottomNavigationComponent {
1854
1856
  /**
1855
1857
  * Sets the fill style of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
1856
1858
  *
1857
- * @default 'flat'
1859
+ * @default undefined
1858
1860
  */
1859
1861
  set fill(fill) {
1862
+ const newFill = fills.find(color => color === fill);
1860
1863
  this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}`);
1861
- this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this.themeColor}`);
1862
- this._fill = fill === 'solid' ? 'solid' : 'flat';
1863
- this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._fill}`);
1864
- this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._fill}-${this.themeColor}`);
1864
+ this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.themeColor}`);
1865
+ if (newFill) {
1866
+ this._fill = fill;
1867
+ this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._fill}`);
1868
+ this.themeColor && this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.themeColor}`);
1869
+ }
1865
1870
  }
1866
1871
  get fill() {
1867
1872
  return this._fill;
@@ -1895,14 +1900,14 @@ class BottomNavigationComponent {
1895
1900
  /**
1896
1901
  * Sets the theme color of the BottomNavigation ([see example]({% slug appearance_bottomnavigation %})).
1897
1902
  *
1898
- * @default 'primary'
1903
+ * @default undefined
1899
1904
  */
1900
1905
  set themeColor(themeColor) {
1901
1906
  const newColor = colors.find(color => color === themeColor);
1902
1907
  if (newColor) {
1903
- this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this._themeColor}`);
1908
+ this.renderer.removeClass(this._nativeHostElement, `k-bottom-nav-${this._themeColor}`);
1904
1909
  this._themeColor = themeColor;
1905
- this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this._themeColor}`);
1910
+ this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this._themeColor}`);
1906
1911
  }
1907
1912
  }
1908
1913
  get themeColor() {
@@ -1944,10 +1949,10 @@ class BottomNavigationComponent {
1944
1949
  * @hidden
1945
1950
  */
1946
1951
  selectedIdx;
1947
- _fill = 'flat';
1952
+ _fill;
1948
1953
  _itemFlow = 'vertical';
1949
1954
  _positionMode = 'fixed';
1950
- _themeColor = 'primary';
1955
+ _themeColor;
1951
1956
  _nativeHostElement;
1952
1957
  dynamicRTLSubscription;
1953
1958
  subscriptions = new Subscription();
@@ -1997,10 +2002,10 @@ class BottomNavigationComponent {
1997
2002
  }
1998
2003
  }
1999
2004
  applyClasses() {
2000
- this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}`);
2005
+ this.fill && this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}`);
2001
2006
  this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-item-flow-${this.itemFlow}`);
2002
2007
  this.renderer.addClass(this._nativeHostElement, `k-pos-${this.positionMode}`);
2003
- this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.fill}-${this.themeColor}`);
2008
+ this.themeColor && this.renderer.addClass(this._nativeHostElement, `k-bottom-nav-${this.themeColor}`);
2004
2009
  }
2005
2010
  initDomEvents() {
2006
2011
  if (!this.hostElement) {
@@ -2179,11 +2184,12 @@ const SIZES = {
2179
2184
  */
2180
2185
  const getStylingClasses = (stylingOption, previousValue, newValue) => {
2181
2186
  switch (stylingOption) {
2182
- case 'size':
2187
+ case 'size': {
2183
2188
  return {
2184
- toRemove: `k-breadcrumb-${SIZES[previousValue]}`,
2185
- toAdd: newValue !== 'none' ? `k-breadcrumb-${SIZES[newValue]}` : ''
2189
+ toRemove: previousValue ? `k-breadcrumb-${SIZES[previousValue]}` : null,
2190
+ toAdd: newValue ? `k-breadcrumb-${SIZES[newValue]}` : null
2186
2191
  };
2192
+ }
2187
2193
  default:
2188
2194
  break;
2189
2195
  }
@@ -2654,12 +2660,11 @@ class BreadCrumbComponent {
2654
2660
  /**
2655
2661
  * Determines the padding of all Breadcrumb elements.
2656
2662
  *
2657
- * @default `medium`
2663
+ * @default undefined
2658
2664
  */
2659
2665
  set size(size) {
2660
- const newSize = size ? size : DEFAULT_SIZE;
2661
- this.handleClasses(newSize, 'size');
2662
- this._size = newSize;
2666
+ this.handleClasses(size, 'size');
2667
+ this._size = size;
2663
2668
  }
2664
2669
  get size() {
2665
2670
  return this._size;
@@ -2696,7 +2701,7 @@ class BreadCrumbComponent {
2696
2701
  firstItem$;
2697
2702
  _items = [];
2698
2703
  _collapseMode = 'auto';
2699
- _size = DEFAULT_SIZE;
2704
+ _size;
2700
2705
  updateItems = new ReplaySubject();
2701
2706
  afterViewInit = new Subject();
2702
2707
  subscriptions = new Subscription();
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1770112313,
11
- "version": "22.1.0-develop.18",
10
+ "publishDate": 1770219677,
11
+ "version": "22.1.0-develop.19",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-navigation",
3
- "version": "22.1.0-develop.18",
3
+ "version": "22.1.0-develop.19",
4
4
  "description": "Kendo UI Navigation for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -17,7 +17,7 @@
17
17
  "package": {
18
18
  "productName": "Kendo UI for Angular",
19
19
  "productCode": "KENDOUIANGULAR",
20
- "publishDate": 1770112313,
20
+ "publishDate": 1770219677,
21
21
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
22
22
  }
23
23
  },
@@ -27,15 +27,15 @@
27
27
  "@angular/core": "19 - 21",
28
28
  "@angular/platform-browser": "19 - 21",
29
29
  "@progress/kendo-licensing": "^1.10.0",
30
- "@progress/kendo-angular-buttons": "22.1.0-develop.18",
31
- "@progress/kendo-angular-common": "22.1.0-develop.18",
32
- "@progress/kendo-angular-icons": "22.1.0-develop.18",
33
- "@progress/kendo-angular-l10n": "22.1.0-develop.18",
30
+ "@progress/kendo-angular-buttons": "22.1.0-develop.19",
31
+ "@progress/kendo-angular-common": "22.1.0-develop.19",
32
+ "@progress/kendo-angular-icons": "22.1.0-develop.19",
33
+ "@progress/kendo-angular-l10n": "22.1.0-develop.19",
34
34
  "rxjs": "^6.5.3 || ^7.0.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "tslib": "^2.3.1",
38
- "@progress/kendo-angular-schematics": "22.1.0-develop.18"
38
+ "@progress/kendo-angular-schematics": "22.1.0-develop.19"
39
39
  },
40
40
  "schematics": "./schematics/collection.json",
41
41
  "module": "fesm2022/progress-kendo-angular-navigation.mjs",