@progress/kendo-angular-navigation 11.3.1-develop.1 → 11.4.0-develop.10

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.
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
13
13
  * Used to display a set of choices related to a task the user initiates.
14
14
  */
15
15
  export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, OnChanges {
16
- private element;
16
+ element: ElementRef;
17
17
  private ngZone;
18
18
  private renderer;
19
19
  private localizationService;
@@ -117,8 +117,10 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
117
117
  ngOnDestroy(): void;
118
118
  /**
119
119
  * Toggles the visibility of the ActionSheet.
120
+ *
121
+ * @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
120
122
  */
121
- toggle(): void;
123
+ toggle(expanded?: boolean): void;
122
124
  /**
123
125
  * @hidden
124
126
  */
@@ -140,6 +142,7 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
140
142
  */
141
143
  get shouldRenderSeparator(): boolean;
142
144
  private initDomEvents;
145
+ private setCssVariables;
143
146
  private onKeyDown;
144
147
  private handleInitialFocus;
145
148
  private keepFocusWithinComponent;
@@ -7,7 +7,7 @@ import { validatePackage } from '@progress/kendo-licensing';
7
7
  import { packageMetadata } from '../package-metadata';
8
8
  import { Subscription } from 'rxjs';
9
9
  import { ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective } from './models';
10
- import { Keys } from '@progress/kendo-angular-common';
10
+ import { isPresent, Keys } from '@progress/kendo-angular-common';
11
11
  import { getId, getActionSheetItemIndex, getFirstAndLastFocusable, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE } from '../common/util';
12
12
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
13
13
  import { AnimationBuilder } from '@angular/animations';
@@ -88,6 +88,7 @@ export class ActionSheetComponent {
88
88
  ;
89
89
  ngAfterViewInit() {
90
90
  this.initDomEvents();
91
+ this.setCssVariables();
91
92
  }
92
93
  ngOnChanges(changes) {
93
94
  if (changes['expanded'] && this.expanded) {
@@ -105,9 +106,15 @@ export class ActionSheetComponent {
105
106
  }
106
107
  /**
107
108
  * Toggles the visibility of the ActionSheet.
109
+ *
110
+ * @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
108
111
  */
109
- toggle() {
110
- const current = !this.expanded;
112
+ toggle(expanded) {
113
+ const previous = this.expanded;
114
+ const current = isPresent(expanded) ? expanded : !previous;
115
+ if (current === previous) {
116
+ return;
117
+ }
111
118
  if (current === true) {
112
119
  this.setExpanded(true);
113
120
  }
@@ -163,6 +170,12 @@ export class ActionSheetComponent {
163
170
  }));
164
171
  });
165
172
  }
173
+ setCssVariables() {
174
+ if (!this.element) {
175
+ return;
176
+ }
177
+ this.renderer.setAttribute(this.element.nativeElement, 'style', '--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none');
178
+ }
166
179
  onKeyDown(event) {
167
180
  const target = event.target;
168
181
  if (event.keyCode === Keys.Tab) {
@@ -203,7 +216,7 @@ export class ActionSheetComponent {
203
216
  }
204
217
  triggerItemClick(target, event) {
205
218
  const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
206
- const item = this.items[itemIndex];
219
+ const item = isPresent(itemIndex) ? this.items[itemIndex] : null;
207
220
  if (!item || item.disabled) {
208
221
  return;
209
222
  }
@@ -255,7 +268,6 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
255
268
  <div class="k-animation-container">
256
269
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
257
270
  <div class="k-actionsheet k-actionsheet-bottom"
258
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
259
271
  [ngClass]="cssClass"
260
272
  role="dialog"
261
273
  aria-modal="true"
@@ -329,7 +341,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
329
341
  <div class="k-animation-container">
330
342
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
331
343
  <div class="k-actionsheet k-actionsheet-bottom"
332
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
333
344
  [ngClass]="cssClass"
334
345
  role="dialog"
335
346
  aria-modal="true"
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-navigation',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1677750278,
13
- version: '11.3.1-develop.1',
12
+ publishDate: 1678804007,
13
+ version: '11.4.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -8,7 +8,7 @@ import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
10
10
  import * as i3 from '@progress/kendo-angular-common';
11
- import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSensorModule } from '@progress/kendo-angular-common';
11
+ import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSensorModule, isPresent as isPresent$1 } from '@progress/kendo-angular-common';
12
12
  import * as i2 from '@angular/common';
13
13
  import { CommonModule } from '@angular/common';
14
14
  import { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';
@@ -26,8 +26,8 @@ const packageMetadata = {
26
26
  name: '@progress/kendo-angular-navigation',
27
27
  productName: 'Kendo UI for Angular',
28
28
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
29
- publishDate: 1677750278,
30
- version: '11.3.1-develop.1',
29
+ publishDate: 1678804007,
30
+ version: '11.4.0-develop.10',
31
31
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
32
32
  };
33
33
 
@@ -2069,6 +2069,7 @@ class ActionSheetComponent {
2069
2069
  ;
2070
2070
  ngAfterViewInit() {
2071
2071
  this.initDomEvents();
2072
+ this.setCssVariables();
2072
2073
  }
2073
2074
  ngOnChanges(changes) {
2074
2075
  if (changes['expanded'] && this.expanded) {
@@ -2086,9 +2087,15 @@ class ActionSheetComponent {
2086
2087
  }
2087
2088
  /**
2088
2089
  * Toggles the visibility of the ActionSheet.
2090
+ *
2091
+ * @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
2089
2092
  */
2090
- toggle() {
2091
- const current = !this.expanded;
2093
+ toggle(expanded) {
2094
+ const previous = this.expanded;
2095
+ const current = isPresent$1(expanded) ? expanded : !previous;
2096
+ if (current === previous) {
2097
+ return;
2098
+ }
2092
2099
  if (current === true) {
2093
2100
  this.setExpanded(true);
2094
2101
  }
@@ -2147,6 +2154,12 @@ class ActionSheetComponent {
2147
2154
  }));
2148
2155
  });
2149
2156
  }
2157
+ setCssVariables() {
2158
+ if (!this.element) {
2159
+ return;
2160
+ }
2161
+ this.renderer.setAttribute(this.element.nativeElement, 'style', '--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none');
2162
+ }
2150
2163
  onKeyDown(event) {
2151
2164
  const target = event.target;
2152
2165
  if (event.keyCode === Keys.Tab) {
@@ -2187,7 +2200,7 @@ class ActionSheetComponent {
2187
2200
  }
2188
2201
  triggerItemClick(target, event) {
2189
2202
  const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
2190
- const item = this.items[itemIndex];
2203
+ const item = isPresent$1(itemIndex) ? this.items[itemIndex] : null;
2191
2204
  if (!item || item.disabled) {
2192
2205
  return;
2193
2206
  }
@@ -2239,7 +2252,6 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
2239
2252
  <div class="k-animation-container">
2240
2253
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2241
2254
  <div class="k-actionsheet k-actionsheet-bottom"
2242
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2243
2255
  [ngClass]="cssClass"
2244
2256
  role="dialog"
2245
2257
  aria-modal="true"
@@ -2313,7 +2325,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2313
2325
  <div class="k-animation-container">
2314
2326
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2315
2327
  <div class="k-actionsheet k-actionsheet-bottom"
2316
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2317
2328
  [ngClass]="cssClass"
2318
2329
  role="dialog"
2319
2330
  aria-modal="true"
@@ -8,7 +8,7 @@ import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
10
10
  import * as i3 from '@progress/kendo-angular-common';
11
- import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSensorModule } from '@progress/kendo-angular-common';
11
+ import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSensorModule, isPresent as isPresent$1 } from '@progress/kendo-angular-common';
12
12
  import * as i2 from '@angular/common';
13
13
  import { CommonModule } from '@angular/common';
14
14
  import { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';
@@ -26,8 +26,8 @@ const packageMetadata = {
26
26
  name: '@progress/kendo-angular-navigation',
27
27
  productName: 'Kendo UI for Angular',
28
28
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
29
- publishDate: 1677750278,
30
- version: '11.3.1-develop.1',
29
+ publishDate: 1678804007,
30
+ version: '11.4.0-develop.10',
31
31
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
32
32
  };
33
33
 
@@ -2055,6 +2055,7 @@ class ActionSheetComponent {
2055
2055
  ;
2056
2056
  ngAfterViewInit() {
2057
2057
  this.initDomEvents();
2058
+ this.setCssVariables();
2058
2059
  }
2059
2060
  ngOnChanges(changes) {
2060
2061
  if (changes['expanded'] && this.expanded) {
@@ -2072,9 +2073,15 @@ class ActionSheetComponent {
2072
2073
  }
2073
2074
  /**
2074
2075
  * Toggles the visibility of the ActionSheet.
2076
+ *
2077
+ * @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
2075
2078
  */
2076
- toggle() {
2077
- const current = !this.expanded;
2079
+ toggle(expanded) {
2080
+ const previous = this.expanded;
2081
+ const current = isPresent$1(expanded) ? expanded : !previous;
2082
+ if (current === previous) {
2083
+ return;
2084
+ }
2078
2085
  if (current === true) {
2079
2086
  this.setExpanded(true);
2080
2087
  }
@@ -2130,6 +2137,12 @@ class ActionSheetComponent {
2130
2137
  }));
2131
2138
  });
2132
2139
  }
2140
+ setCssVariables() {
2141
+ if (!this.element) {
2142
+ return;
2143
+ }
2144
+ this.renderer.setAttribute(this.element.nativeElement, 'style', '--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none');
2145
+ }
2133
2146
  onKeyDown(event) {
2134
2147
  const target = event.target;
2135
2148
  if (event.keyCode === Keys.Tab) {
@@ -2170,7 +2183,7 @@ class ActionSheetComponent {
2170
2183
  }
2171
2184
  triggerItemClick(target, event) {
2172
2185
  const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
2173
- const item = this.items[itemIndex];
2186
+ const item = isPresent$1(itemIndex) ? this.items[itemIndex] : null;
2174
2187
  if (!item || item.disabled) {
2175
2188
  return;
2176
2189
  }
@@ -2222,7 +2235,6 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
2222
2235
  <div class="k-animation-container">
2223
2236
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2224
2237
  <div class="k-actionsheet k-actionsheet-bottom"
2225
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2226
2238
  [ngClass]="cssClass"
2227
2239
  role="dialog"
2228
2240
  aria-modal="true"
@@ -2296,7 +2308,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2296
2308
  <div class="k-animation-container">
2297
2309
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2298
2310
  <div class="k-actionsheet k-actionsheet-bottom"
2299
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2300
2311
  [ngClass]="cssClass"
2301
2312
  role="dialog"
2302
2313
  aria-modal="true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-navigation",
3
- "version": "11.3.1-develop.1",
3
+ "version": "11.4.0-develop.10",
4
4
  "description": "Kendo UI Navigation for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -21,14 +21,14 @@
21
21
  "@angular/core": "13 - 15",
22
22
  "@angular/platform-browser": "13 - 15",
23
23
  "@progress/kendo-licensing": "^1.0.2",
24
- "@progress/kendo-angular-common": "11.3.1-develop.1",
25
- "@progress/kendo-angular-icons": "11.3.1-develop.1",
26
- "@progress/kendo-angular-l10n": "11.3.1-develop.1",
24
+ "@progress/kendo-angular-common": "11.4.0-develop.10",
25
+ "@progress/kendo-angular-icons": "11.4.0-develop.10",
26
+ "@progress/kendo-angular-l10n": "11.4.0-develop.10",
27
27
  "rxjs": "^6.5.3 || ^7.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.1",
31
- "@progress/kendo-angular-schematics": "11.3.1-develop.1"
31
+ "@progress/kendo-angular-schematics": "11.4.0-develop.10"
32
32
  },
33
33
  "schematics": "./schematics/collection.json",
34
34
  "module": "fesm2015/progress-kendo-angular-navigation.mjs",