@progress/kendo-angular-layout 11.0.0-develop.99 → 11.0.1-develop.1
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/NOTICE.txt +17 -17
- package/avatar/avatar.component.d.ts +9 -5
- package/avatar.module.d.ts +2 -1
- package/drawer/item.component.d.ts +6 -1
- package/drawer/models/drawer-item.interface.d.ts +11 -1
- package/drawer.module.d.ts +2 -1
- package/esm2020/avatar/avatar.component.mjs +33 -16
- package/esm2020/avatar.module.mjs +4 -3
- package/esm2020/drawer/drawer.component.mjs +1 -0
- package/esm2020/drawer/item.component.mjs +62 -21
- package/esm2020/drawer.module.mjs +4 -3
- package/esm2020/expansionpanel/expansionpanel.component.mjs +72 -9
- package/esm2020/expansionpanel.module.mjs +4 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/panelbar/panelbar-item.component.mjs +88 -25
- package/esm2020/panelbar/panelbar.component.mjs +3 -1
- package/esm2020/panelbar.module.mjs +4 -3
- package/esm2020/splitter/splitter-bar.component.mjs +60 -23
- package/esm2020/splitter.module.mjs +7 -3
- package/esm2020/stepper/list.component.mjs +10 -1
- package/esm2020/stepper/step.component.mjs +82 -20
- package/esm2020/stepper/stepper.component.mjs +24 -2
- package/esm2020/stepper.module.mjs +4 -3
- package/esm2020/tabstrip/constants.mjs +4 -4
- package/esm2020/tabstrip/models/scrollable-settings.mjs +4 -2
- package/esm2020/tabstrip/models/tabstrip-tab.component.mjs +5 -1
- package/esm2020/tabstrip/rendering/tab.component.mjs +41 -15
- package/esm2020/tabstrip/scrollable-button.component.mjs +55 -30
- package/esm2020/tabstrip/tabstrip.component.mjs +30 -6
- package/esm2020/tabstrip.module.mjs +5 -3
- package/expansionpanel/expansionpanel.component.d.ts +25 -2
- package/expansionpanel.module.d.ts +2 -1
- package/fesm2015/progress-kendo-angular-layout.mjs +582 -186
- package/fesm2020/progress-kendo-angular-layout.mjs +582 -186
- package/package.json +9 -7
- package/panelbar/panelbar-item-model.d.ts +6 -0
- package/panelbar/panelbar-item.component.d.ts +29 -1
- package/panelbar.module.d.ts +2 -1
- package/schematics/ngAdd/index.js +4 -2
- package/splitter/splitter-bar.component.d.ts +8 -5
- package/splitter.module.d.ts +2 -1
- package/stepper/list.component.d.ts +5 -1
- package/stepper/models/stepper-step.interface.d.ts +6 -0
- package/stepper/step.component.d.ts +13 -3
- package/stepper/stepper.component.d.ts +21 -1
- package/stepper.module.d.ts +2 -1
- package/tabstrip/models/scrollable-settings.d.ts +11 -0
- package/tabstrip/models/tabstrip-tab.component.d.ts +13 -3
- package/tabstrip/rendering/tab.component.d.ts +5 -1
- package/tabstrip/scrollable-button.component.d.ts +5 -1
- package/tabstrip/tabstrip.component.d.ts +14 -3
- package/tabstrip.module.d.ts +3 -1
package/NOTICE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Progress Kendo UI for Angular 2023
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © 2016-2023 Progress Software Corporation and/or one of its
|
|
4
4
|
subsidiaries or affiliates. All rights reserved.
|
|
5
5
|
|
|
6
6
|
Portions of the Product include certain open source and commercial third-party
|
|
@@ -65,7 +65,7 @@ the Product:
|
|
|
65
65
|
|
|
66
66
|
(1) The Apache Software License, Version 2.0:
|
|
67
67
|
|
|
68
|
-
Progress Kendo UI for Angular
|
|
68
|
+
Progress Kendo UI for Angular 2023 incorporates TsLib v1.9.3. Such technology
|
|
69
69
|
is subject to the following terms and conditions: Apache Software License Version 2.0.
|
|
70
70
|
|
|
71
71
|
Apache License
|
|
@@ -290,7 +290,7 @@ is subject to the following terms and conditions: Apache Software License Versio
|
|
|
290
290
|
|
|
291
291
|
(2) BSD-Style Licenses:
|
|
292
292
|
|
|
293
|
-
(a) Progress Kendo UI for Angular
|
|
293
|
+
(a) Progress Kendo UI for Angular 2023 incorporates xlf-translate v2.0.4. Such
|
|
294
294
|
technology is subject to the following terms and conditions:
|
|
295
295
|
|
|
296
296
|
BSD 3-Clause License
|
|
@@ -325,7 +325,7 @@ technology is subject to the following terms and conditions:
|
|
|
325
325
|
|
|
326
326
|
(3) The ISC License:
|
|
327
327
|
|
|
328
|
-
(a) Progress Kendo UI for Angular
|
|
328
|
+
(a) Progress Kendo UI for Angular 2023 incorporates glob v7.1.3. Such technology
|
|
329
329
|
is subject to the following terms and conditions:
|
|
330
330
|
|
|
331
331
|
The ISC License
|
|
@@ -352,7 +352,7 @@ is subject to the following terms and conditions:
|
|
|
352
352
|
|
|
353
353
|
(4) MIT-Style Licenses:
|
|
354
354
|
|
|
355
|
-
(a) Progress Kendo UI for Angular
|
|
355
|
+
(a) Progress Kendo UI for Angular 2023 incorporates HammerJS v2.0.8. Such
|
|
356
356
|
technology is subject to the following terms and conditions:
|
|
357
357
|
|
|
358
358
|
The MIT License (MIT)
|
|
@@ -377,7 +377,7 @@ technology is subject to the following terms and conditions:
|
|
|
377
377
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
378
378
|
SOFTWARE.
|
|
379
379
|
|
|
380
|
-
(b) Progress Kendo UI for Angular
|
|
380
|
+
(b) Progress Kendo UI for Angular 2023 incorporates prosemirror-commands v1*,
|
|
381
381
|
prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*,
|
|
382
382
|
prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*,
|
|
383
383
|
prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*,
|
|
@@ -404,7 +404,7 @@ subject to the following terms and conditions:
|
|
|
404
404
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
405
405
|
THE SOFTWARE.
|
|
406
406
|
|
|
407
|
-
(c) Progress Kendo UI for Angular
|
|
407
|
+
(c) Progress Kendo UI for Angular 2023 incorporates cheerio v0.2.2. Such technology is subject to the following terms and conditions:
|
|
408
408
|
|
|
409
409
|
MIT License
|
|
410
410
|
|
|
@@ -428,7 +428,7 @@ subject to the following terms and conditions:
|
|
|
428
428
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
429
429
|
SOFTWARE.
|
|
430
430
|
|
|
431
|
-
(d) Progress Kendo UI for Angular
|
|
431
|
+
(d) Progress Kendo UI for Angular 2023 incorporates @types/prosemirror-commands v1*,
|
|
432
432
|
@types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*,
|
|
433
433
|
@types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
434
434
|
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
|
|
@@ -457,7 +457,7 @@ subject to the following terms and conditions:
|
|
|
457
457
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
458
458
|
SOFTWARE.
|
|
459
459
|
|
|
460
|
-
(e) Progress Kendo UI for Angular
|
|
460
|
+
(e) Progress Kendo UI for Angular 2023 incorporates pako-esm v1.0.0. Such
|
|
461
461
|
technology is subject to the following terms and conditions:
|
|
462
462
|
|
|
463
463
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
@@ -483,7 +483,7 @@ technology is subject to the following terms and conditions:
|
|
|
483
483
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
484
484
|
THE SOFTWARE.
|
|
485
485
|
|
|
486
|
-
(f) Progress Kendo UI for Angular
|
|
486
|
+
(f) Progress Kendo UI for Angular 2023 incorporates jszip-esm v1.0.0. Such
|
|
487
487
|
technology is subject to the following terms and conditions:
|
|
488
488
|
|
|
489
489
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
@@ -510,7 +510,7 @@ technology is subject to the following terms and conditions:
|
|
|
510
510
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
511
511
|
THE SOFTWARE.
|
|
512
512
|
|
|
513
|
-
(g) Progress Kendo UI for Angular
|
|
513
|
+
(g) Progress Kendo UI for Angular 2023 incorporates data.task v3.1.2. Such
|
|
514
514
|
technology is subject to the following terms and conditions:
|
|
515
515
|
|
|
516
516
|
The MIT License
|
|
@@ -535,7 +535,7 @@ technology is subject to the following terms and conditions:
|
|
|
535
535
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
536
536
|
THE SOFTWARE.
|
|
537
537
|
|
|
538
|
-
(h) Progress Kendo UI for Angular
|
|
538
|
+
(h) Progress Kendo UI for Angular 2023 incorporates ramda v0.23. Such technology
|
|
539
539
|
is subject to the following terms and conditions:
|
|
540
540
|
|
|
541
541
|
The MIT License (MIT)
|
|
@@ -560,7 +560,7 @@ is subject to the following terms and conditions:
|
|
|
560
560
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
561
561
|
THE SOFTWARE.
|
|
562
562
|
|
|
563
|
-
(i) Progress Kendo UI for Angular
|
|
563
|
+
(i) Progress Kendo UI for Angular 2023 incorporates js-yaml v3.14.0. Such
|
|
564
564
|
technology is subject to the following terms and conditions:
|
|
565
565
|
|
|
566
566
|
(The MIT License)
|
|
@@ -587,7 +587,7 @@ technology is subject to the following terms and conditions:
|
|
|
587
587
|
|
|
588
588
|
(5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
|
|
589
589
|
|
|
590
|
-
Progress Kendo UI for Angular
|
|
590
|
+
Progress Kendo UI for Angular 2023 incorporates Unicode CLDR Database v33.
|
|
591
591
|
Such technology is subject to the following terms and conditions:
|
|
592
592
|
|
|
593
593
|
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
|
|
@@ -605,7 +605,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
605
605
|
|
|
606
606
|
COPYRIGHT AND PERMISSION NOTICE
|
|
607
607
|
|
|
608
|
-
Copyright © 1991-
|
|
608
|
+
Copyright © 1991-2019 Unicode, Inc. All rights reserved.
|
|
609
609
|
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
|
|
610
610
|
|
|
611
611
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -642,7 +642,7 @@ incorporated into the Product: NONE
|
|
|
642
642
|
|
|
643
643
|
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
|
-
(a) Progress Kendo UI for Angular
|
|
645
|
+
(a) Progress Kendo UI for Angular 2023 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
|
647
647
|
third-party license information.
|
|
648
648
|
|
|
@@ -651,4 +651,4 @@ the release notes or other documentation that accompanies updates received in
|
|
|
651
651
|
connection with support of the Product.
|
|
652
652
|
|
|
653
653
|
|
|
654
|
-
Updated
|
|
654
|
+
Updated 13.Jan.2023
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnInit, Renderer2, ElementRef, AfterViewInit } from '@angular/core';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import { AvatarFillMode, AvatarShape, AvatarSize, AvatarThemeColor, AvatarRounded } from './models/models';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
@@ -131,17 +132,20 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
|
|
|
131
132
|
* Sets the `image` source of the avatar.
|
|
132
133
|
*/
|
|
133
134
|
imageSrc: string;
|
|
135
|
+
/**
|
|
136
|
+
* Defines an SVGIcon to be rendered.
|
|
137
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
138
|
+
*/
|
|
139
|
+
set svgIcon(icon: SVGIcon);
|
|
140
|
+
get svgIcon(): SVGIcon;
|
|
134
141
|
private _themeColor;
|
|
135
142
|
private _size;
|
|
136
143
|
private _fillMode;
|
|
137
144
|
private _rounded;
|
|
145
|
+
private _svgIcon;
|
|
138
146
|
constructor(renderer: Renderer2, element: ElementRef);
|
|
139
147
|
ngOnInit(): void;
|
|
140
148
|
ngAfterViewInit(): void;
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
iconClasses(): string;
|
|
145
149
|
/**
|
|
146
150
|
* @hidden
|
|
147
151
|
*/
|
|
@@ -150,5 +154,5 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
|
|
|
150
154
|
private handleClasses;
|
|
151
155
|
private handleFillModeAndThemeColorClasses;
|
|
152
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
153
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "kendo-avatar", never, { "shape": "shape"; "size": "size"; "rounded": "rounded"; "themeColor": "themeColor"; "fillMode": "fillMode"; "fill": "fill"; "border": "border"; "iconClass": "iconClass"; "width": "width"; "height": "height"; "cssStyle": "cssStyle"; "initials": "initials"; "icon": "icon"; "imageSrc": "imageSrc"; }, {}, never, ["*"]>;
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "kendo-avatar", never, { "shape": "shape"; "size": "size"; "rounded": "rounded"; "themeColor": "themeColor"; "fillMode": "fillMode"; "fill": "fill"; "border": "border"; "iconClass": "iconClass"; "width": "width"; "height": "height"; "cssStyle": "cssStyle"; "initials": "initials"; "icon": "icon"; "imageSrc": "imageSrc"; "svgIcon": "svgIcon"; }, {}, never, ["*"]>;
|
|
154
158
|
}
|
package/avatar.module.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./avatar/avatar.component";
|
|
7
7
|
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
8
9
|
/**
|
|
9
10
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
10
11
|
* definition for the Avatar component.
|
|
11
12
|
*/
|
|
12
13
|
export declare class AvatarModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, [typeof i1.AvatarComponent], [typeof i2.CommonModule], [typeof i1.AvatarComponent]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, [typeof i1.AvatarComponent], [typeof i2.CommonModule, typeof i3.IconsModule], [typeof i1.AvatarComponent]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<AvatarModule>;
|
|
16
17
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef, ElementRef, Renderer2, AfterViewInit } from "@angular/core";
|
|
6
|
+
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
6
7
|
import { DrawerService } from './drawer.service';
|
|
7
8
|
import { DrawerViewItem } from "./models/drawer-view-item.interface";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
@@ -24,9 +25,13 @@ export declare class DrawerItemComponent implements AfterViewInit {
|
|
|
24
25
|
get disabledClass(): boolean;
|
|
25
26
|
get selectedClass(): boolean;
|
|
26
27
|
get label(): boolean;
|
|
28
|
+
arrowUpIcon: SVGIcon;
|
|
29
|
+
arrowDownIcon: SVGIcon;
|
|
27
30
|
constructor(drawerService: DrawerService, element: ElementRef, renderer: Renderer2);
|
|
28
31
|
ngAfterViewInit(): void;
|
|
29
|
-
get iconClasses(): string
|
|
32
|
+
get iconClasses(): string;
|
|
33
|
+
get innerCssClasses(): string;
|
|
34
|
+
get customIconClasses(): string;
|
|
30
35
|
get item(): any;
|
|
31
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerItemComponent, never>;
|
|
32
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerItemComponent, "[kendoDrawerItem]", never, { "viewItem": "viewItem"; "index": "index"; "itemTemplate": "itemTemplate"; "mini": "mini"; "expanded": "expanded"; "disabled": "disabled"; "cssClass": "cssClass"; "cssStyle": "cssStyle"; }, {}, never, never>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 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 { SVGIcon } from "@progress/kendo-svg-icons";
|
|
5
6
|
/**
|
|
6
7
|
* An interface for the Drawer items.
|
|
7
8
|
*/
|
|
@@ -22,7 +23,11 @@ export interface DrawerItem {
|
|
|
22
23
|
disabled?: boolean;
|
|
23
24
|
/**
|
|
24
25
|
* Defines the name for an existing icon in a Kendo UI theme.
|
|
25
|
-
* The icon is rendered inside the Drawer item by
|
|
26
|
+
* The icon is rendered inside the Drawer item by the `kendo-icon` element.
|
|
27
|
+
*
|
|
28
|
+
* NOTE: The icon input will no longer require the `k-i-` prefix in the icon name. Please provide only the name of the icon.
|
|
29
|
+
* To ensure backward compatibility, both syntaxes will be supported for a period of time, but the `k-i-` prefix is deprecated and
|
|
30
|
+
* you can expect it to be dropped in a future major version of the package.
|
|
26
31
|
*/
|
|
27
32
|
icon?: string;
|
|
28
33
|
/**
|
|
@@ -31,6 +36,11 @@ export interface DrawerItem {
|
|
|
31
36
|
* Allows the usage of custom icons.
|
|
32
37
|
*/
|
|
33
38
|
iconClass?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Defines an SVG icon to be rendered inside the Drawer Item.
|
|
41
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
42
|
+
*/
|
|
43
|
+
svgIcon?: SVGIcon;
|
|
34
44
|
/**
|
|
35
45
|
* Specifies the id of the Drawer item.
|
|
36
46
|
*/
|
package/drawer.module.d.ts
CHANGED
|
@@ -13,12 +13,13 @@ import * as i7 from "./drawer/template-directives/header-template.directive";
|
|
|
13
13
|
import * as i8 from "./drawer/template-directives/footer-template.directive";
|
|
14
14
|
import * as i9 from "./drawer/template-directives/item-template.directive";
|
|
15
15
|
import * as i10 from "@angular/common";
|
|
16
|
+
import * as i11 from "@progress/kendo-angular-icons";
|
|
16
17
|
/**
|
|
17
18
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
18
19
|
* definition for the Drawer component.
|
|
19
20
|
*/
|
|
20
21
|
export declare class DrawerModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof i1.DrawerItemComponent, typeof i2.DrawerListComponent, typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective], [typeof i10.CommonModule], [typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective]>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof i1.DrawerItemComponent, typeof i2.DrawerListComponent, typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective], [typeof i10.CommonModule, typeof i11.IconsModule], [typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>;
|
|
24
25
|
}
|
|
@@ -7,7 +7,8 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
7
7
|
import { getStylingClasses, mapShapeToRounded } from '../common/util';
|
|
8
8
|
import { packageMetadata } from '../package-metadata';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-icons";
|
|
11
|
+
import * as i2 from "@angular/common";
|
|
11
12
|
const DEFAULT_ROUNDED = 'full';
|
|
12
13
|
const DEFAULT_SIZE = 'medium';
|
|
13
14
|
const DEFAULT_THEME_COLOR = 'primary';
|
|
@@ -157,6 +158,19 @@ export class AvatarComponent {
|
|
|
157
158
|
get avatarHeight() {
|
|
158
159
|
return this.height;
|
|
159
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Defines an SVGIcon to be rendered.
|
|
163
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
164
|
+
*/
|
|
165
|
+
set svgIcon(icon) {
|
|
166
|
+
if (isDevMode() && icon && this.icon && this.iconClass) {
|
|
167
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
168
|
+
}
|
|
169
|
+
this._svgIcon = icon;
|
|
170
|
+
}
|
|
171
|
+
get svgIcon() {
|
|
172
|
+
return this._svgIcon;
|
|
173
|
+
}
|
|
160
174
|
ngOnInit() {
|
|
161
175
|
this.verifyProperties();
|
|
162
176
|
}
|
|
@@ -167,17 +181,6 @@ export class AvatarComponent {
|
|
|
167
181
|
});
|
|
168
182
|
this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
|
|
169
183
|
}
|
|
170
|
-
/**
|
|
171
|
-
* @hidden
|
|
172
|
-
*/
|
|
173
|
-
iconClasses() {
|
|
174
|
-
if (this.icon) {
|
|
175
|
-
return `k-icon k-i-${this.icon}`;
|
|
176
|
-
}
|
|
177
|
-
if (this.iconClass) {
|
|
178
|
-
return `${this.iconClass}`;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
184
|
/**
|
|
182
185
|
* @hidden
|
|
183
186
|
*/
|
|
@@ -227,7 +230,7 @@ export class AvatarComponent {
|
|
|
227
230
|
}
|
|
228
231
|
}
|
|
229
232
|
AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
230
|
-
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AvatarComponent, selector: "kendo-avatar", inputs: { shape: "shape", size: "size", rounded: "rounded", themeColor: "themeColor", fillMode: "fillMode", fill: "fill", border: "border", iconClass: "iconClass", width: "width", height: "height", cssStyle: "cssStyle", initials: "initials", icon: "icon", imageSrc: "imageSrc" }, host: { properties: { "class.k-avatar": "this.hostClass", "class.k-avatar-bordered": "this.borderClass", "style.flexBasis": "this.flexBasis", "style.width": "this.avatarWidth", "style.height": "this.avatarHeight" } }, ngImport: i0, template: `
|
|
233
|
+
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AvatarComponent, selector: "kendo-avatar", inputs: { shape: "shape", size: "size", rounded: "rounded", themeColor: "themeColor", fillMode: "fillMode", fill: "fill", border: "border", iconClass: "iconClass", width: "width", height: "height", cssStyle: "cssStyle", initials: "initials", icon: "icon", imageSrc: "imageSrc", svgIcon: "svgIcon" }, host: { properties: { "class.k-avatar": "this.hostClass", "class.k-avatar-bordered": "this.borderClass", "style.flexBasis": "this.flexBasis", "style.width": "this.avatarWidth", "style.height": "this.avatarHeight" } }, ngImport: i0, template: `
|
|
231
234
|
<ng-content *ngIf="customAvatar"></ng-content>
|
|
232
235
|
|
|
233
236
|
<ng-container *ngIf="imageSrc">
|
|
@@ -242,10 +245,16 @@ AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
242
245
|
|
|
243
246
|
<ng-container *ngIf="icon || iconClass">
|
|
244
247
|
<span class="k-avatar-icon">
|
|
245
|
-
<
|
|
248
|
+
<kendo-icon-wrapper
|
|
249
|
+
[ngStyle]="cssStyle"
|
|
250
|
+
[name]="icon"
|
|
251
|
+
[customFontClass]="iconClass"
|
|
252
|
+
[svgIcon]="svgIcon"
|
|
253
|
+
>
|
|
254
|
+
</kendo-icon-wrapper>
|
|
246
255
|
</span>
|
|
247
256
|
</ng-container>
|
|
248
|
-
`, isInline: true,
|
|
257
|
+
`, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
249
258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
250
259
|
type: Component,
|
|
251
260
|
args: [{
|
|
@@ -265,7 +274,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
265
274
|
|
|
266
275
|
<ng-container *ngIf="icon || iconClass">
|
|
267
276
|
<span class="k-avatar-icon">
|
|
268
|
-
<
|
|
277
|
+
<kendo-icon-wrapper
|
|
278
|
+
[ngStyle]="cssStyle"
|
|
279
|
+
[name]="icon"
|
|
280
|
+
[customFontClass]="iconClass"
|
|
281
|
+
[svgIcon]="svgIcon"
|
|
282
|
+
>
|
|
283
|
+
</kendo-icon-wrapper>
|
|
269
284
|
</span>
|
|
270
285
|
</ng-container>
|
|
271
286
|
`
|
|
@@ -313,4 +328,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
313
328
|
type: Input
|
|
314
329
|
}], imageSrc: [{
|
|
315
330
|
type: Input
|
|
331
|
+
}], svgIcon: [{
|
|
332
|
+
type: Input
|
|
316
333
|
}] } });
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
7
8
|
import { AvatarComponent } from './avatar/avatar.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
const exportedModules = [
|
|
@@ -19,13 +20,13 @@ const declarations = [
|
|
|
19
20
|
export class AvatarModule {
|
|
20
21
|
}
|
|
21
22
|
AvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
22
|
-
AvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, declarations: [AvatarComponent], imports: [CommonModule], exports: [AvatarComponent] });
|
|
23
|
-
AvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, imports: [[CommonModule]] });
|
|
23
|
+
AvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, declarations: [AvatarComponent], imports: [CommonModule, IconsModule], exports: [AvatarComponent] });
|
|
24
|
+
AvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, imports: [[CommonModule, IconsModule]] });
|
|
24
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AvatarModule, decorators: [{
|
|
25
26
|
type: NgModule,
|
|
26
27
|
args: [{
|
|
27
28
|
declarations: [declarations],
|
|
28
29
|
exports: [exportedModules],
|
|
29
|
-
imports: [CommonModule]
|
|
30
|
+
imports: [CommonModule, IconsModule]
|
|
30
31
|
}]
|
|
31
32
|
}] });
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, Output, isDevMode } from '@angular/core';
|
|
6
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
7
8
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Component, Input, TemplateRef, HostBinding, ElementRef, Renderer2 } from "@angular/core";
|
|
7
|
+
import { chevronDownIcon, chevronUpIcon } from "@progress/kendo-svg-icons";
|
|
6
8
|
import { DrawerService } from './drawer.service';
|
|
7
9
|
import { nestedLink, DRAWER_LINK_SELECTOR } from './util';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "./drawer.service";
|
|
10
|
-
import * as i2 from "@angular
|
|
12
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
13
|
+
import * as i3 from "@angular/common";
|
|
11
14
|
/**
|
|
12
15
|
* @hidden
|
|
13
16
|
*/
|
|
@@ -16,6 +19,8 @@ export class DrawerItemComponent {
|
|
|
16
19
|
this.drawerService = drawerService;
|
|
17
20
|
this.element = element;
|
|
18
21
|
this.renderer = renderer;
|
|
22
|
+
this.arrowUpIcon = chevronUpIcon;
|
|
23
|
+
this.arrowDownIcon = chevronDownIcon;
|
|
19
24
|
}
|
|
20
25
|
get disabledClass() {
|
|
21
26
|
return this.item.disabled;
|
|
@@ -34,14 +39,20 @@ export class DrawerItemComponent {
|
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
get iconClasses() {
|
|
37
|
-
const classes = [];
|
|
38
42
|
if (this.item.icon) {
|
|
39
|
-
|
|
43
|
+
const stripIcon = this.item.icon.replace('k-i-', '');
|
|
44
|
+
return `${stripIcon}`;
|
|
40
45
|
}
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
}
|
|
47
|
+
get innerCssClasses() {
|
|
48
|
+
if (this.item.iconClass && this.item.icon) {
|
|
49
|
+
return `${this.item.iconClass}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
get customIconClasses() {
|
|
53
|
+
if (!this.item.icon && this.item.iconClass) {
|
|
54
|
+
return this.item.iconClass;
|
|
43
55
|
}
|
|
44
|
-
return classes;
|
|
45
56
|
}
|
|
46
57
|
get item() {
|
|
47
58
|
return this.viewItem.item;
|
|
@@ -61,19 +72,34 @@ DrawerItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
61
72
|
|
|
62
73
|
<ng-template #defaultTemplate>
|
|
63
74
|
<ng-container *ngIf="expanded">
|
|
64
|
-
<
|
|
75
|
+
<kendo-icon-wrapper
|
|
76
|
+
[name]="iconClasses"
|
|
77
|
+
[customFontClass]="customIconClasses"
|
|
78
|
+
[svgIcon]="item.svgIcon"
|
|
79
|
+
[innerCssClass]="innerCssClasses"
|
|
80
|
+
>
|
|
81
|
+
</kendo-icon-wrapper>
|
|
82
|
+
|
|
65
83
|
<span class="k-item-text">{{ item.text }}</span>
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
84
|
+
<kendo-icon-wrapper
|
|
85
|
+
*ngIf="viewItem.hasChildren"
|
|
86
|
+
[name]="viewItem.isExpanded ? 'arrow-chevron-up' : 'arrow-chevron-down'"
|
|
87
|
+
innerCssClass="k-drawer-toggle"
|
|
88
|
+
[svgIcon]="viewItem.isExpanded ? arrowUpIcon : arrowDownIcon"
|
|
89
|
+
>
|
|
90
|
+
</kendo-icon-wrapper>
|
|
71
91
|
</ng-container>
|
|
72
92
|
<ng-container *ngIf="mini && !expanded">
|
|
73
|
-
<
|
|
93
|
+
<kendo-icon-wrapper
|
|
94
|
+
[name]="iconClasses"
|
|
95
|
+
[customFontClass]="customIconClasses"
|
|
96
|
+
[svgIcon]="item.svgIcon"
|
|
97
|
+
[innerCssClass]="innerCssClasses"
|
|
98
|
+
>
|
|
99
|
+
</kendo-icon-wrapper>
|
|
74
100
|
</ng-container>
|
|
75
101
|
</ng-template>
|
|
76
|
-
`, isInline: true,
|
|
102
|
+
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
77
103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DrawerItemComponent, decorators: [{
|
|
78
104
|
type: Component,
|
|
79
105
|
args: [{
|
|
@@ -92,16 +118,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
92
118
|
|
|
93
119
|
<ng-template #defaultTemplate>
|
|
94
120
|
<ng-container *ngIf="expanded">
|
|
95
|
-
<
|
|
121
|
+
<kendo-icon-wrapper
|
|
122
|
+
[name]="iconClasses"
|
|
123
|
+
[customFontClass]="customIconClasses"
|
|
124
|
+
[svgIcon]="item.svgIcon"
|
|
125
|
+
[innerCssClass]="innerCssClasses"
|
|
126
|
+
>
|
|
127
|
+
</kendo-icon-wrapper>
|
|
128
|
+
|
|
96
129
|
<span class="k-item-text">{{ item.text }}</span>
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
130
|
+
<kendo-icon-wrapper
|
|
131
|
+
*ngIf="viewItem.hasChildren"
|
|
132
|
+
[name]="viewItem.isExpanded ? 'arrow-chevron-up' : 'arrow-chevron-down'"
|
|
133
|
+
innerCssClass="k-drawer-toggle"
|
|
134
|
+
[svgIcon]="viewItem.isExpanded ? arrowUpIcon : arrowDownIcon"
|
|
135
|
+
>
|
|
136
|
+
</kendo-icon-wrapper>
|
|
102
137
|
</ng-container>
|
|
103
138
|
<ng-container *ngIf="mini && !expanded">
|
|
104
|
-
<
|
|
139
|
+
<kendo-icon-wrapper
|
|
140
|
+
[name]="iconClasses"
|
|
141
|
+
[customFontClass]="customIconClasses"
|
|
142
|
+
[svgIcon]="item.svgIcon"
|
|
143
|
+
[innerCssClass]="innerCssClasses"
|
|
144
|
+
>
|
|
145
|
+
</kendo-icon-wrapper>
|
|
105
146
|
</ng-container>
|
|
106
147
|
</ng-template>
|
|
107
148
|
`
|
|
@@ -9,6 +9,7 @@ import { DrawerComponent } from './drawer/drawer.component';
|
|
|
9
9
|
import { DrawerContentComponent } from './drawer/drawer-content.component';
|
|
10
10
|
import { DrawerItemComponent } from './drawer/item.component';
|
|
11
11
|
import { DrawerListComponent } from './drawer/list.component';
|
|
12
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
12
13
|
import { DrawerTemplateDirective, DrawerItemTemplateDirective, DrawerHeaderTemplateDirective, DrawerFooterTemplateDirective } from './drawer/template-directives';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
const templateDirectives = [
|
|
@@ -41,18 +42,18 @@ DrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
41
42
|
DrawerContentComponent, DrawerTemplateDirective,
|
|
42
43
|
DrawerHeaderTemplateDirective,
|
|
43
44
|
DrawerFooterTemplateDirective,
|
|
44
|
-
DrawerItemTemplateDirective], imports: [CommonModule], exports: [DrawerComponent,
|
|
45
|
+
DrawerItemTemplateDirective], imports: [CommonModule, IconsModule], exports: [DrawerComponent,
|
|
45
46
|
DrawerContainerComponent,
|
|
46
47
|
DrawerContentComponent, DrawerTemplateDirective,
|
|
47
48
|
DrawerHeaderTemplateDirective,
|
|
48
49
|
DrawerFooterTemplateDirective,
|
|
49
50
|
DrawerItemTemplateDirective] });
|
|
50
|
-
DrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DrawerModule, imports: [[CommonModule]] });
|
|
51
|
+
DrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DrawerModule, imports: [[CommonModule, IconsModule]] });
|
|
51
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DrawerModule, decorators: [{
|
|
52
53
|
type: NgModule,
|
|
53
54
|
args: [{
|
|
54
55
|
declarations: [declarations],
|
|
55
56
|
exports: [exportedModules],
|
|
56
|
-
imports: [CommonModule]
|
|
57
|
+
imports: [CommonModule, IconsModule]
|
|
57
58
|
}]
|
|
58
59
|
}] });
|