@progress/kendo-angular-buttons 8.2.2 → 11.0.0-develop.79
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 +3 -3
- package/README.md +7 -7
- package/button/{button.directive.d.ts → button.component.d.ts} +26 -29
- package/button/button.module.d.ts +4 -3
- package/button/button.service.d.ts +5 -5
- package/button/selection-settings.d.ts +1 -1
- package/buttongroup/buttongroup.component.d.ts +7 -7
- package/buttongroup/buttongroup.module.d.ts +1 -1
- package/buttons.module.d.ts +1 -1
- package/chip/chip-content-click-event-args.interface.d.ts +1 -1
- package/chip/chip-list-remove-event-args.interface.d.ts +1 -1
- package/chip/chip-list.component.d.ts +1 -1
- package/chip/chip-remove-event-args.interface.d.ts +1 -1
- package/chip/chip.component.d.ts +17 -3
- package/chip/chip.module.d.ts +3 -2
- package/chip/models/selection.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/styling-classes.d.ts +1 -1
- package/common/models/theme-color.d.ts +1 -1
- package/common/models.d.ts +1 -1
- package/direction.d.ts +1 -1
- package/dropdownbutton/dropdownbutton.component.d.ts +8 -3
- package/dropdownbutton/dropdownbutton.module.d.ts +1 -1
- package/{esm2015/button/button.directive.js → esm2020/button/button.component.mjs} +84 -149
- package/{esm2015/button/button.module.js → esm2020/button/button.module.mjs} +10 -8
- package/{esm2015/button/button.service.js → esm2020/button/button.service.mjs} +4 -4
- package/{esm2015/button/selection-settings.js → esm2020/button/selection-settings.mjs} +1 -1
- package/{esm2015/buttongroup/buttongroup.component.js → esm2020/buttongroup/buttongroup.component.mjs} +10 -10
- package/{esm2015/buttongroup/buttongroup.module.js → esm2020/buttongroup/buttongroup.module.mjs} +5 -5
- package/{esm2015/buttons.module.js → esm2020/buttons.module.mjs} +5 -5
- package/{esm2015/chip/chip-content-click-event-args.interface.js → esm2020/chip/chip-content-click-event-args.interface.mjs} +1 -1
- package/{esm2015/chip/chip-list-remove-event-args.interface.js → esm2020/chip/chip-list-remove-event-args.interface.mjs} +1 -1
- package/{esm2015/chip/chip-list.component.js → esm2020/chip/chip-list.component.mjs} +5 -5
- package/{esm2015/chip/chip-remove-event-args.interface.js → esm2020/chip/chip-remove-event-args.interface.mjs} +1 -1
- package/{esm2015/chip/chip.component.js → esm2020/chip/chip.component.mjs} +68 -71
- package/{esm2015/chip/chip.module.js → esm2020/chip/chip.module.mjs} +8 -7
- package/esm2020/chip/models/selection.mjs +5 -0
- package/esm2020/common/models/fillmode.mjs +5 -0
- package/esm2020/common/models/rounded.mjs +5 -0
- package/esm2020/common/models/size.mjs +5 -0
- package/esm2020/common/models/styling-classes.mjs +5 -0
- package/esm2020/common/models/theme-color.mjs +5 -0
- package/{esm2015/common/models.js → esm2020/common/models.mjs} +1 -1
- package/esm2020/direction.mjs +5 -0
- package/{esm2015/dropdownbutton/dropdownbutton.component.js → esm2020/dropdownbutton/dropdownbutton.component.mjs} +17 -11
- package/{esm2015/dropdownbutton/dropdownbutton.module.js → esm2020/dropdownbutton/dropdownbutton.module.mjs} +5 -5
- package/{esm2015/floatingactionbutton/animations/animations.js → esm2020/floatingactionbutton/animations/animations.mjs} +1 -1
- package/{esm2015/floatingactionbutton/dial-item.component.js → esm2020/floatingactionbutton/dial-item.component.mjs} +22 -10
- package/{esm2015/floatingactionbutton/dial-list.component.js → esm2020/floatingactionbutton/dial-list.component.mjs} +6 -5
- package/{esm2015/floatingactionbutton/floatingactionbutton.component.js → esm2020/floatingactionbutton/floatingactionbutton.component.mjs} +27 -12
- package/{esm2015/floatingactionbutton/floatingactionbutton.module.js → esm2020/floatingactionbutton/floatingactionbutton.module.mjs} +8 -7
- package/esm2020/floatingactionbutton/models/align.mjs +5 -0
- package/esm2020/floatingactionbutton/models/item-animation.interface.mjs +5 -0
- package/esm2020/floatingactionbutton/models/item-click.event.mjs +5 -0
- package/esm2020/floatingactionbutton/models/item.interface.mjs +5 -0
- package/esm2020/floatingactionbutton/models/offset.mjs +5 -0
- package/esm2020/floatingactionbutton/models/position-mode.mjs +5 -0
- package/{esm2015/floatingactionbutton/templates/dial-item-template.directive.js → esm2020/floatingactionbutton/templates/dial-item-template.directive.mjs} +5 -5
- package/{esm2015/floatingactionbutton/templates/fab-template.directive.js → esm2020/floatingactionbutton/templates/fab-template.directive.mjs} +5 -5
- package/{esm2015/floatingactionbutton/utils.js → esm2020/floatingactionbutton/utils.mjs} +3 -3
- package/{esm2015/focusable/focus.service.js → esm2020/focusable/focus.service.mjs} +4 -4
- package/{esm2015/focusable/focusable.directive.js → esm2020/focusable/focusable.directive.mjs} +6 -5
- package/{esm2015/main.js → esm2020/index.mjs} +2 -2
- package/{esm2015/listbutton/button-item-template.directive.js → esm2020/listbutton/button-item-template.directive.mjs} +5 -5
- package/{esm2015/listbutton/container.service.js → esm2020/listbutton/container.service.mjs} +4 -4
- package/{esm2015/listbutton/list-button.js → esm2020/listbutton/list-button.mjs} +15 -11
- package/esm2020/listbutton/list-item-model.mjs +5 -0
- package/{esm2015/listbutton/list.component.js → esm2020/listbutton/list.component.mjs} +5 -4
- package/{esm2015/listbutton/list.module.js → esm2020/listbutton/list.module.mjs} +5 -5
- package/esm2020/listbutton/popup-settings.mjs +5 -0
- package/{esm2015/listbutton/template-context.directive.js → esm2020/listbutton/template-context.directive.mjs} +5 -5
- package/{esm2015/navigation/key-events.js → esm2020/navigation/key-events.mjs} +1 -1
- package/{esm2015/navigation/navigation-action.js → esm2020/navigation/navigation-action.mjs} +1 -1
- package/{esm2015/navigation/navigation-config.js → esm2020/navigation/navigation-config.mjs} +1 -1
- package/{esm2015/navigation/navigation.service.js → esm2020/navigation/navigation.service.mjs} +4 -4
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-buttons.js → esm2020/progress-kendo-angular-buttons.mjs} +2 -2
- package/{esm2015/splitbutton/localization/custom-messages.component.js → esm2020/splitbutton/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/splitbutton/localization/localized-messages.directive.js → esm2020/splitbutton/localization/localized-messages.directive.mjs} +5 -4
- package/{esm2015/splitbutton/localization/messages.js → esm2020/splitbutton/localization/messages.mjs} +4 -4
- package/{esm2015/splitbutton/splitbutton.component.js → esm2020/splitbutton/splitbutton.component.mjs} +55 -25
- package/{esm2015/splitbutton/splitbutton.module.js → esm2020/splitbutton/splitbutton.module.mjs} +5 -5
- package/{esm2015/util.js → esm2020/util.mjs} +1 -1
- package/fesm2015/progress-kendo-angular-buttons.mjs +5251 -0
- package/{fesm2015/kendo-angular-buttons.js → fesm2020/progress-kendo-angular-buttons.mjs} +450 -464
- package/floatingactionbutton/animations/animations.d.ts +1 -1
- package/floatingactionbutton/dial-item.component.d.ts +4 -3
- package/floatingactionbutton/dial-list.component.d.ts +1 -1
- package/floatingactionbutton/floatingactionbutton.component.d.ts +9 -3
- package/floatingactionbutton/floatingactionbutton.module.d.ts +3 -2
- package/floatingactionbutton/models/align.d.ts +1 -1
- package/floatingactionbutton/models/item-animation.interface.d.ts +1 -1
- package/floatingactionbutton/models/item-click.event.d.ts +1 -1
- package/floatingactionbutton/models/item.interface.d.ts +6 -1
- package/floatingactionbutton/models/offset.d.ts +1 -1
- package/floatingactionbutton/models/position-mode.d.ts +1 -1
- package/floatingactionbutton/templates/dial-item-template.directive.d.ts +1 -1
- package/floatingactionbutton/templates/fab-template.directive.d.ts +1 -1
- package/floatingactionbutton/utils.d.ts +1 -1
- package/focusable/focus.service.d.ts +1 -1
- package/focusable/focusable.directive.d.ts +1 -1
- package/{main.d.ts → index.d.ts} +3 -2
- package/listbutton/button-item-template.directive.d.ts +1 -1
- package/listbutton/container.service.d.ts +1 -1
- package/listbutton/list-button.d.ts +1 -1
- package/listbutton/list-item-model.d.ts +1 -1
- package/listbutton/list.component.d.ts +1 -1
- package/listbutton/list.module.d.ts +1 -1
- package/listbutton/popup-settings.d.ts +1 -1
- package/listbutton/template-context.directive.d.ts +1 -1
- package/navigation/key-events.d.ts +1 -1
- package/navigation/navigation-action.d.ts +1 -1
- package/navigation/navigation-config.d.ts +1 -1
- package/navigation/navigation.service.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +30 -57
- package/preventable-event.d.ts +1 -1
- package/{kendo-angular-buttons.d.ts → progress-kendo-angular-buttons.d.ts} +2 -2
- package/schematics/ngAdd/index.js +5 -7
- package/splitbutton/localization/custom-messages.component.d.ts +1 -1
- package/splitbutton/localization/localized-messages.directive.d.ts +1 -1
- package/splitbutton/localization/messages.d.ts +1 -1
- package/splitbutton/splitbutton.component.d.ts +22 -3
- package/splitbutton/splitbutton.module.d.ts +1 -1
- package/util.d.ts +1 -1
- package/bundles/kendo-angular-buttons.umd.js +0 -5
- package/esm2015/chip/models/selection.js +0 -5
- package/esm2015/common/models/fillmode.js +0 -5
- package/esm2015/common/models/rounded.js +0 -5
- package/esm2015/common/models/size.js +0 -5
- package/esm2015/common/models/styling-classes.js +0 -5
- package/esm2015/common/models/theme-color.js +0 -5
- package/esm2015/direction.js +0 -5
- package/esm2015/floatingactionbutton/models/align.js +0 -5
- package/esm2015/floatingactionbutton/models/item-animation.interface.js +0 -5
- package/esm2015/floatingactionbutton/models/item-click.event.js +0 -5
- package/esm2015/floatingactionbutton/models/item.interface.js +0 -5
- package/esm2015/floatingactionbutton/models/offset.js +0 -5
- package/esm2015/floatingactionbutton/models/position-mode.js +0 -5
- package/esm2015/listbutton/list-item-model.js +0 -5
- package/esm2015/listbutton/popup-settings.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, HostBinding, Input, Output, EventEmitter, isDevMode } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, Input, Output, EventEmitter, ElementRef, Renderer2, NgZone, isDevMode } from '@angular/core';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
10
|
import { packageMetadata } from '../package-metadata';
|
|
11
|
-
import { closest, getStylingClasses, getThemeColorClasses
|
|
11
|
+
import { closest, getStylingClasses, getThemeColorClasses } from '../util';
|
|
12
|
+
import { xCircleIcon } from '@progress/kendo-svg-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
14
|
-
import * as i2 from "@angular
|
|
15
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
16
|
+
import * as i3 from "@angular/common";
|
|
17
|
+
const DEFAULT_SIZE = 'medium';
|
|
18
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
19
|
+
const DEFAULT_THEME_COLOR = 'base';
|
|
20
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
15
21
|
/**
|
|
16
22
|
* Displays a Chip that represents an input, attribute or an action.
|
|
17
23
|
*/
|
|
@@ -47,6 +53,10 @@ export class ChipComponent {
|
|
|
47
53
|
this.contentClick = new EventEmitter();
|
|
48
54
|
this.tabIndex = 0;
|
|
49
55
|
this.hostClass = true;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
this.defaultRemoveIcon = xCircleIcon;
|
|
50
60
|
this._size = 'medium';
|
|
51
61
|
this._rounded = 'medium';
|
|
52
62
|
this._fillMode = 'solid';
|
|
@@ -67,10 +77,9 @@ export class ChipComponent {
|
|
|
67
77
|
* * `none`
|
|
68
78
|
*/
|
|
69
79
|
set size(size) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.handleClasses(this._size, 'size');
|
|
80
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
81
|
+
this.handleClasses(newSize, 'size');
|
|
82
|
+
this._size = newSize;
|
|
74
83
|
}
|
|
75
84
|
get size() {
|
|
76
85
|
return this._size;
|
|
@@ -87,10 +96,9 @@ export class ChipComponent {
|
|
|
87
96
|
* * `none`
|
|
88
97
|
*/
|
|
89
98
|
set rounded(rounded) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
this.handleClasses(this._rounded, 'rounded');
|
|
99
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
100
|
+
this.handleClasses(newRounded, 'rounded');
|
|
101
|
+
this._rounded = newRounded;
|
|
94
102
|
}
|
|
95
103
|
get rounded() {
|
|
96
104
|
return this._rounded;
|
|
@@ -105,10 +113,9 @@ export class ChipComponent {
|
|
|
105
113
|
* * `none`
|
|
106
114
|
*/
|
|
107
115
|
set fillMode(fillMode) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.handleClasses(this._fillMode, 'fillMode');
|
|
116
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
117
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
118
|
+
this._fillMode = newFillMode;
|
|
112
119
|
}
|
|
113
120
|
get fillMode() {
|
|
114
121
|
return this._fillMode;
|
|
@@ -127,16 +134,15 @@ export class ChipComponent {
|
|
|
127
134
|
* * `none`
|
|
128
135
|
*/
|
|
129
136
|
set themeColor(themeColor) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.handleThemeColor(this._themeColor);
|
|
137
|
+
const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
|
|
138
|
+
this.handleThemeColor(newThemeColor);
|
|
139
|
+
this._themeColor = newThemeColor;
|
|
134
140
|
}
|
|
135
141
|
get themeColor() {
|
|
136
142
|
return this._themeColor;
|
|
137
143
|
}
|
|
138
144
|
get hasIconClass() {
|
|
139
|
-
return this.icon || this.iconClass || this.avatarClass
|
|
145
|
+
return Boolean(this.icon || this.iconClass || this.avatarClass);
|
|
140
146
|
}
|
|
141
147
|
get disabledClass() {
|
|
142
148
|
return this.disabled;
|
|
@@ -183,23 +189,20 @@ export class ChipComponent {
|
|
|
183
189
|
*/
|
|
184
190
|
get customIconClass() {
|
|
185
191
|
this.verifyIconSettings([this.icon, this.avatarClass]);
|
|
186
|
-
return
|
|
192
|
+
return this.iconClass;
|
|
187
193
|
}
|
|
188
194
|
/**
|
|
189
195
|
* @hidden
|
|
190
196
|
*/
|
|
191
197
|
get chipAvatarClass() {
|
|
192
198
|
this.verifyIconSettings([this.icon, this.iconClass]);
|
|
193
|
-
return
|
|
199
|
+
return this.avatarClass;
|
|
194
200
|
}
|
|
195
201
|
/**
|
|
196
202
|
* @hidden
|
|
197
203
|
*/
|
|
198
204
|
get removeIconClass() {
|
|
199
|
-
|
|
200
|
-
return `${this.removeIcon}`;
|
|
201
|
-
}
|
|
202
|
-
return `k-i-x-circle`;
|
|
205
|
+
return this.removeIcon ? this.removeIcon : 'k-i-x-circle';
|
|
203
206
|
}
|
|
204
207
|
/**
|
|
205
208
|
* Focuses the Chip component.
|
|
@@ -298,32 +301,28 @@ export class ChipComponent {
|
|
|
298
301
|
}
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
|
-
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
302
|
-
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
304
|
+
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "class.k-chip": "this.hostClass", "class.k-chip-has-icon": "this.hasIconClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
|
|
303
306
|
LocalizationService,
|
|
304
307
|
{
|
|
305
308
|
provide: L10N_PREFIX,
|
|
306
309
|
useValue: 'kendo.chip'
|
|
307
310
|
}
|
|
308
311
|
], usesOnChanges: true, ngImport: i0, template: `
|
|
309
|
-
<
|
|
310
|
-
*ngIf="icon"
|
|
311
|
-
|
|
312
|
-
[
|
|
313
|
-
|
|
314
|
-
</span>
|
|
312
|
+
<kendo-icon-wrapper
|
|
313
|
+
*ngIf="icon || svgIcon"
|
|
314
|
+
innerCssClass="k-chip-icon"
|
|
315
|
+
[name]="icon"
|
|
316
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
315
317
|
|
|
316
|
-
<
|
|
318
|
+
<kendo-icon-wrapper
|
|
317
319
|
*ngIf="iconClass"
|
|
318
|
-
|
|
319
|
-
[
|
|
320
|
-
>
|
|
321
|
-
</span>
|
|
320
|
+
innerCssClass="k-chip-icon"
|
|
321
|
+
[customFontClass]="customIconClass"></kendo-icon-wrapper>
|
|
322
322
|
|
|
323
323
|
<span
|
|
324
324
|
*ngIf="avatarClass"
|
|
325
|
-
class="k-chip-avatar k-avatar k-rounded-full"
|
|
326
|
-
>
|
|
325
|
+
class="k-chip-avatar k-avatar k-rounded-full">
|
|
327
326
|
<span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
|
|
328
327
|
</span>
|
|
329
328
|
|
|
@@ -337,39 +336,34 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
337
336
|
<span class="k-chip-actions">
|
|
338
337
|
<span class="k-chip-action k-chip-remove-action"
|
|
339
338
|
*ngIf="removable"
|
|
340
|
-
(click)="onRemoveClick($event)"
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
[
|
|
345
|
-
|
|
346
|
-
</span>
|
|
339
|
+
(click)="onRemoveClick($event)">
|
|
340
|
+
<kendo-icon-wrapper
|
|
341
|
+
name="x-circle"
|
|
342
|
+
[svgIcon]="defaultRemoveIcon || removeSvgIcon"
|
|
343
|
+
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
344
|
+
|
|
347
345
|
</span>
|
|
348
346
|
</span>
|
|
349
|
-
`, isInline: true,
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
347
|
+
`, 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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipComponent, decorators: [{
|
|
351
349
|
type: Component,
|
|
352
350
|
args: [{
|
|
353
351
|
selector: 'kendo-chip',
|
|
354
352
|
template: `
|
|
355
|
-
<
|
|
356
|
-
*ngIf="icon"
|
|
357
|
-
|
|
358
|
-
[
|
|
359
|
-
|
|
360
|
-
</span>
|
|
353
|
+
<kendo-icon-wrapper
|
|
354
|
+
*ngIf="icon || svgIcon"
|
|
355
|
+
innerCssClass="k-chip-icon"
|
|
356
|
+
[name]="icon"
|
|
357
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
361
358
|
|
|
362
|
-
<
|
|
359
|
+
<kendo-icon-wrapper
|
|
363
360
|
*ngIf="iconClass"
|
|
364
|
-
|
|
365
|
-
[
|
|
366
|
-
>
|
|
367
|
-
</span>
|
|
361
|
+
innerCssClass="k-chip-icon"
|
|
362
|
+
[customFontClass]="customIconClass"></kendo-icon-wrapper>
|
|
368
363
|
|
|
369
364
|
<span
|
|
370
365
|
*ngIf="avatarClass"
|
|
371
|
-
class="k-chip-avatar k-avatar k-rounded-full"
|
|
372
|
-
>
|
|
366
|
+
class="k-chip-avatar k-avatar k-rounded-full">
|
|
373
367
|
<span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
|
|
374
368
|
</span>
|
|
375
369
|
|
|
@@ -383,13 +377,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
383
377
|
<span class="k-chip-actions">
|
|
384
378
|
<span class="k-chip-action k-chip-remove-action"
|
|
385
379
|
*ngIf="removable"
|
|
386
|
-
(click)="onRemoveClick($event)"
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
[
|
|
391
|
-
|
|
392
|
-
</span>
|
|
380
|
+
(click)="onRemoveClick($event)">
|
|
381
|
+
<kendo-icon-wrapper
|
|
382
|
+
name="x-circle"
|
|
383
|
+
[svgIcon]="defaultRemoveIcon || removeSvgIcon"
|
|
384
|
+
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
385
|
+
|
|
393
386
|
</span>
|
|
394
387
|
</span>
|
|
395
388
|
`,
|
|
@@ -405,6 +398,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
405
398
|
type: Input
|
|
406
399
|
}], icon: [{
|
|
407
400
|
type: Input
|
|
401
|
+
}], svgIcon: [{
|
|
402
|
+
type: Input
|
|
408
403
|
}], iconClass: [{
|
|
409
404
|
type: Input
|
|
410
405
|
}], avatarClass: [{
|
|
@@ -415,6 +410,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
415
410
|
type: Input
|
|
416
411
|
}], removeIcon: [{
|
|
417
412
|
type: Input
|
|
413
|
+
}], removeSvgIcon: [{
|
|
414
|
+
type: Input
|
|
418
415
|
}], disabled: [{
|
|
419
416
|
type: Input
|
|
420
417
|
}], size: [{
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { ChipComponent } from '../chip/chip.component';
|
|
8
8
|
import { ChipListComponent } from './chip-list.component';
|
|
9
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
const exportedModules = [
|
|
11
12
|
ChipComponent,
|
|
@@ -44,16 +45,16 @@ const declarations = [
|
|
|
44
45
|
*/
|
|
45
46
|
export class ChipModule {
|
|
46
47
|
}
|
|
47
|
-
ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
48
|
-
ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
49
|
-
ChipListComponent], imports: [CommonModule], exports: [ChipComponent,
|
|
48
|
+
ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipModule, declarations: [ChipComponent,
|
|
50
|
+
ChipListComponent], imports: [CommonModule, IconsModule], exports: [ChipComponent,
|
|
50
51
|
ChipListComponent] });
|
|
51
|
-
ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
52
|
+
ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipModule, imports: [[CommonModule, IconsModule]] });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipModule, decorators: [{
|
|
53
54
|
type: NgModule,
|
|
54
55
|
args: [{
|
|
55
56
|
declarations: [declarations],
|
|
56
57
|
exports: [exportedModules],
|
|
57
|
-
imports: [CommonModule]
|
|
58
|
+
imports: [CommonModule, IconsModule]
|
|
58
59
|
}]
|
|
59
60
|
}] });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export * from './models/size';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, ContentChild, ViewChild, ViewContainerRef, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core';
|
|
5
|
+
import { Component, ContentChild, TemplateRef, ViewChild, ViewContainerRef, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
7
8
|
import { isDocumentAvailable, guid, Keys } from '@progress/kendo-angular-common';
|
|
8
9
|
import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
|
|
9
10
|
import { closest } from '../util';
|
|
10
11
|
import { ListButton } from '../listbutton/list-button';
|
|
12
|
+
import { ListComponent } from '../listbutton/list.component';
|
|
11
13
|
import { FocusService } from '../focusable/focus.service';
|
|
12
14
|
import { NavigationService } from '../navigation/navigation.service';
|
|
13
15
|
import { NAVIGATION_CONFIG } from '../navigation/navigation-config';
|
|
@@ -18,8 +20,8 @@ import * as i2 from "../navigation/navigation.service";
|
|
|
18
20
|
import * as i3 from "@progress/kendo-angular-popup";
|
|
19
21
|
import * as i4 from "@progress/kendo-angular-l10n";
|
|
20
22
|
import * as i5 from "../listbutton/container.service";
|
|
21
|
-
import * as i6 from "../
|
|
22
|
-
import * as i7 from "../
|
|
23
|
+
import * as i6 from "../button/button.component";
|
|
24
|
+
import * as i7 from "../listbutton/list.component";
|
|
23
25
|
import * as i8 from "@angular/common";
|
|
24
26
|
const NAVIGATION_SETTINGS = {
|
|
25
27
|
useLeftRightArrows: true
|
|
@@ -62,7 +64,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
62
64
|
super(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService);
|
|
63
65
|
this.containerService = containerService;
|
|
64
66
|
/**
|
|
65
|
-
* Defines the name of an existing icon in
|
|
67
|
+
* Defines the name of an existing icon in the Kendo UI theme.
|
|
66
68
|
*/
|
|
67
69
|
this.icon = '';
|
|
68
70
|
/**
|
|
@@ -274,8 +276,8 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
274
276
|
|| (this.popupRef && this.popupRef.popupElement.contains(element));
|
|
275
277
|
}
|
|
276
278
|
}
|
|
277
|
-
DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
278
|
-
DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
279
|
+
DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i5.PopupContainerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
280
|
+
DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: { icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", textField: "textField", data: "data", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { itemClick: "itemClick", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "class.k-dropdown-button": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
|
|
279
281
|
FocusService,
|
|
280
282
|
NavigationService,
|
|
281
283
|
NAVIGATION_SETTINGS_PROVIDER,
|
|
@@ -285,7 +287,7 @@ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
285
287
|
useValue: 'kendo.dropdownbutton'
|
|
286
288
|
},
|
|
287
289
|
PopupContainerService
|
|
288
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], exportAs: ["kendoDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
290
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, read: ElementRef }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], exportAs: ["kendoDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
289
291
|
<button kendoButton #button
|
|
290
292
|
type="button"
|
|
291
293
|
[id]="buttonId"
|
|
@@ -293,6 +295,7 @@ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
293
295
|
[class.k-active]="active"
|
|
294
296
|
[disabled]="disabled"
|
|
295
297
|
[icon]="icon"
|
|
298
|
+
[svgIcon]="svgIcon"
|
|
296
299
|
[iconClass]="iconClass"
|
|
297
300
|
[imageUrl]="imageUrl"
|
|
298
301
|
[ngClass]="buttonClass"
|
|
@@ -327,8 +330,8 @@ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
327
330
|
</kendo-button-list>
|
|
328
331
|
</ng-template>
|
|
329
332
|
<ng-container #container></ng-container>
|
|
330
|
-
`, isInline: true, components: [{ type: i6.
|
|
331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
333
|
+
`, isInline: true, components: [{ type: i6.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonComponent, decorators: [{
|
|
332
335
|
type: Component,
|
|
333
336
|
args: [{
|
|
334
337
|
exportAs: 'kendoDropDownButton',
|
|
@@ -352,6 +355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
352
355
|
[class.k-active]="active"
|
|
353
356
|
[disabled]="disabled"
|
|
354
357
|
[icon]="icon"
|
|
358
|
+
[svgIcon]="svgIcon"
|
|
355
359
|
[iconClass]="iconClass"
|
|
356
360
|
[imageUrl]="imageUrl"
|
|
357
361
|
[ngClass]="buttonClass"
|
|
@@ -390,6 +394,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
390
394
|
}]
|
|
391
395
|
}], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i5.PopupContainerService }]; }, propDecorators: { icon: [{
|
|
392
396
|
type: Input
|
|
397
|
+
}], svgIcon: [{
|
|
398
|
+
type: Input
|
|
393
399
|
}], iconClass: [{
|
|
394
400
|
type: Input
|
|
395
401
|
}], imageUrl: [{
|
|
@@ -428,7 +434,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
428
434
|
args: [ButtonItemTemplateDirective]
|
|
429
435
|
}], button: [{
|
|
430
436
|
type: ViewChild,
|
|
431
|
-
args: ['button']
|
|
437
|
+
args: ['button', { read: ElementRef }]
|
|
432
438
|
}], buttonList: [{
|
|
433
439
|
type: ViewChild,
|
|
434
440
|
args: ['buttonList']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { NgModule } from '@angular/core';
|
|
@@ -19,10 +19,10 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
*/
|
|
20
20
|
export class DropDownButtonModule {
|
|
21
21
|
}
|
|
22
|
-
DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
24
|
-
DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonModule, declarations: [DropDownButtonComponent], imports: [CommonModule, PopupModule, ListModule, ButtonModule], exports: [DropDownButtonComponent, ListModule] });
|
|
24
|
+
DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownButtonModule, decorators: [{
|
|
26
26
|
type: NgModule,
|
|
27
27
|
args: [{
|
|
28
28
|
declarations: [DropDownButtonComponent],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { animate, query, sequence, stagger, style } from '@angular/animations';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, HostBinding, Input } from "@angular/core";
|
|
5
|
+
import { Component, ElementRef, HostBinding, Input, Renderer2, TemplateRef } from "@angular/core";
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
8
|
-
import * as i2 from "@angular
|
|
9
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
10
|
+
import * as i3 from "@angular/common";
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
@@ -22,7 +24,7 @@ export class DialItemComponent {
|
|
|
22
24
|
}
|
|
23
25
|
get title() {
|
|
24
26
|
const label = this.item.label;
|
|
25
|
-
return label
|
|
27
|
+
return label || this.itemTitle;
|
|
26
28
|
}
|
|
27
29
|
get indexAttr() {
|
|
28
30
|
return this.index;
|
|
@@ -58,8 +60,8 @@ export class DialItemComponent {
|
|
|
58
60
|
return directions[dir][align];
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
DialItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
63
|
+
DialItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
+
DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DialItemComponent, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
|
|
63
65
|
<ng-template *ngIf="dialItemTemplate"
|
|
64
66
|
[ngTemplateOutlet]="dialItemTemplate"
|
|
65
67
|
[ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
|
|
@@ -68,10 +70,15 @@ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
68
70
|
|
|
69
71
|
<ng-container *ngIf="!dialItemTemplate">
|
|
70
72
|
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
71
|
-
<
|
|
73
|
+
<kendo-icon-wrapper
|
|
74
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
75
|
+
[name]="item.icon"
|
|
76
|
+
innerCssClass="k-fab-item-icon"
|
|
77
|
+
[customFontClass]="item.iconClass"
|
|
78
|
+
[svgIcon]="item.svgIcon"></kendo-icon-wrapper>
|
|
72
79
|
</ng-container>
|
|
73
|
-
`, isInline: true,
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
`, 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"] }] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DialItemComponent, decorators: [{
|
|
75
82
|
type: Component,
|
|
76
83
|
args: [{
|
|
77
84
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -85,7 +92,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
85
92
|
|
|
86
93
|
<ng-container *ngIf="!dialItemTemplate">
|
|
87
94
|
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
88
|
-
<
|
|
95
|
+
<kendo-icon-wrapper
|
|
96
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
97
|
+
[name]="item.icon"
|
|
98
|
+
innerCssClass="k-fab-item-icon"
|
|
99
|
+
[customFontClass]="item.iconClass"
|
|
100
|
+
[svgIcon]="item.svgIcon"></kendo-icon-wrapper>
|
|
89
101
|
</ng-container>
|
|
90
102
|
`
|
|
91
103
|
}]
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, HostBinding, Input } from "@angular/core";
|
|
5
|
+
import { ChangeDetectorRef, Component, HostBinding, Input, TemplateRef } from "@angular/core";
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
|
+
import { FocusService } from '../focusable/focus.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "../focusable/focus.service";
|
|
9
10
|
import * as i2 from "./dial-item.component";
|
|
@@ -33,8 +34,8 @@ export class DialListComponent {
|
|
|
33
34
|
this.subscriptions.unsubscribe();
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
37
|
+
DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DialListComponent, deps: [{ token: i1.FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DialListComponent, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
|
|
38
39
|
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
39
40
|
<li
|
|
40
41
|
kendoButtonFocusable
|
|
@@ -50,7 +51,7 @@ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
50
51
|
</li>
|
|
51
52
|
</ng-container>
|
|
52
53
|
`, isInline: true, components: [{ type: i2.DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DialListComponent, decorators: [{
|
|
54
55
|
type: Component,
|
|
55
56
|
args: [{
|
|
56
57
|
// eslint-disable-next-line @angular-eslint/component-selector
|