@progress/kendo-angular-navigation 11.3.1-develop.1 → 11.4.0-develop.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsheet/actionsheet.component.d.ts +4 -2
- package/esm2020/actionsheet/actionsheet.component.mjs +10 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-navigation.mjs +12 -6
- package/fesm2020/progress-kendo-angular-navigation.mjs +12 -6
- package/package.json +5 -5
|
@@ -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
|
-
|
|
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
|
*/
|
|
@@ -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';
|
|
@@ -105,9 +105,15 @@ export class ActionSheetComponent {
|
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Toggles the visibility of the ActionSheet.
|
|
108
|
+
*
|
|
109
|
+
* @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
|
|
108
110
|
*/
|
|
109
|
-
toggle() {
|
|
110
|
-
const
|
|
111
|
+
toggle(expanded) {
|
|
112
|
+
const previous = this.expanded;
|
|
113
|
+
const current = isPresent(expanded) ? expanded : !previous;
|
|
114
|
+
if (current === previous) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
111
117
|
if (current === true) {
|
|
112
118
|
this.setExpanded(true);
|
|
113
119
|
}
|
|
@@ -203,7 +209,7 @@ export class ActionSheetComponent {
|
|
|
203
209
|
}
|
|
204
210
|
triggerItemClick(target, event) {
|
|
205
211
|
const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
206
|
-
const item = this.items[itemIndex];
|
|
212
|
+
const item = isPresent(itemIndex) ? this.items[itemIndex] : null;
|
|
207
213
|
if (!item || item.disabled) {
|
|
208
214
|
return;
|
|
209
215
|
}
|
|
@@ -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:
|
|
13
|
-
version: '11.
|
|
12
|
+
publishDate: 1678129779,
|
|
13
|
+
version: '11.4.0-develop.3',
|
|
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:
|
|
30
|
-
version: '11.
|
|
29
|
+
publishDate: 1678129779,
|
|
30
|
+
version: '11.4.0-develop.3',
|
|
31
31
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -2086,9 +2086,15 @@ class ActionSheetComponent {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Toggles the visibility of the ActionSheet.
|
|
2089
|
+
*
|
|
2090
|
+
* @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
|
|
2089
2091
|
*/
|
|
2090
|
-
toggle() {
|
|
2091
|
-
const
|
|
2092
|
+
toggle(expanded) {
|
|
2093
|
+
const previous = this.expanded;
|
|
2094
|
+
const current = isPresent$1(expanded) ? expanded : !previous;
|
|
2095
|
+
if (current === previous) {
|
|
2096
|
+
return;
|
|
2097
|
+
}
|
|
2092
2098
|
if (current === true) {
|
|
2093
2099
|
this.setExpanded(true);
|
|
2094
2100
|
}
|
|
@@ -2187,7 +2193,7 @@ class ActionSheetComponent {
|
|
|
2187
2193
|
}
|
|
2188
2194
|
triggerItemClick(target, event) {
|
|
2189
2195
|
const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
2190
|
-
const item = this.items[itemIndex];
|
|
2196
|
+
const item = isPresent$1(itemIndex) ? this.items[itemIndex] : null;
|
|
2191
2197
|
if (!item || item.disabled) {
|
|
2192
2198
|
return;
|
|
2193
2199
|
}
|
|
@@ -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:
|
|
30
|
-
version: '11.
|
|
29
|
+
publishDate: 1678129779,
|
|
30
|
+
version: '11.4.0-develop.3',
|
|
31
31
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -2072,9 +2072,15 @@ class ActionSheetComponent {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
/**
|
|
2074
2074
|
* Toggles the visibility of the ActionSheet.
|
|
2075
|
+
*
|
|
2076
|
+
* @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
|
|
2075
2077
|
*/
|
|
2076
|
-
toggle() {
|
|
2077
|
-
const
|
|
2078
|
+
toggle(expanded) {
|
|
2079
|
+
const previous = this.expanded;
|
|
2080
|
+
const current = isPresent$1(expanded) ? expanded : !previous;
|
|
2081
|
+
if (current === previous) {
|
|
2082
|
+
return;
|
|
2083
|
+
}
|
|
2078
2084
|
if (current === true) {
|
|
2079
2085
|
this.setExpanded(true);
|
|
2080
2086
|
}
|
|
@@ -2170,7 +2176,7 @@ class ActionSheetComponent {
|
|
|
2170
2176
|
}
|
|
2171
2177
|
triggerItemClick(target, event) {
|
|
2172
2178
|
const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
2173
|
-
const item = this.items[itemIndex];
|
|
2179
|
+
const item = isPresent$1(itemIndex) ? this.items[itemIndex] : null;
|
|
2174
2180
|
if (!item || item.disabled) {
|
|
2175
2181
|
return;
|
|
2176
2182
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-navigation",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.0-develop.3",
|
|
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.
|
|
25
|
-
"@progress/kendo-angular-icons": "11.
|
|
26
|
-
"@progress/kendo-angular-l10n": "11.
|
|
24
|
+
"@progress/kendo-angular-common": "11.4.0-develop.3",
|
|
25
|
+
"@progress/kendo-angular-icons": "11.4.0-develop.3",
|
|
26
|
+
"@progress/kendo-angular-l10n": "11.4.0-develop.3",
|
|
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.
|
|
31
|
+
"@progress/kendo-angular-schematics": "11.4.0-develop.3"
|
|
32
32
|
},
|
|
33
33
|
"schematics": "./schematics/collection.json",
|
|
34
34
|
"module": "fesm2015/progress-kendo-angular-navigation.mjs",
|